From 8bb90fe5d311045b23bed0b67691f651b92b03ac Mon Sep 17 00:00:00 2001
From: acoffman
Date: Tue, 12 Apr 2022 21:21:10 +0000
Subject: [PATCH] Automated frontend build
---
...1650f6c554.js => 1457.91c95cefa3cfff40.js} | 2 +-
server/public/2033.98c7d970352312a5.js | 1 +
server/public/3021.7c78e6391c41d18d.js | 1 -
server/public/3179.ea3e6bc0a3ac79f8.js | 1 -
server/public/3218.9a2a6eae0aa809aa.js | 1 +
server/public/3218.c3517fe66324250b.js | 1 -
server/public/3482.0effe2652c710328.js | 1 -
server/public/3482.ed6f7f94eb7c422d.js | 1 +
server/public/3730.7141625c22d9cd58.js | 1 +
server/public/3730.ac4e30b97f660758.js | 1 -
...158d4b219e.js => 4024.5e7368279f79aeb4.js} | 121 +++++-------------
server/public/4292.431ce70ec225de05.js | 1 -
server/public/4292.73f4c12168601c38.js | 1 +
server/public/4376.d1c8d351b50a66d5.js | 1 -
server/public/4584.94bce0e7cd7772b3.js | 1 +
...b6eacdd605.js => 4658.0b2f1cd78524e647.js} | 2 +-
server/public/5632.b4048d1a94cb9e29.js | 1 +
server/public/5787.5ff21f0a9c6baf5f.js | 1 -
server/public/5787.6afd9133542c6e90.js | 1 +
server/public/605.0b7e1919acad6432.js | 1 +
server/public/605.96b969c7e87e0600.js | 1 -
server/public/6303.39a638159b50f07b.js | 1 -
server/public/6303.e5fe598bc8a5dfd2.js | 1 +
...8cc8bfeed0c.js => 681.80f46e569d77955f.js} | 2 +-
server/public/6875.9a3f371a86467784.js | 1 +
server/public/7012.f719422393652a3a.js | 1 +
...67a5a564b7.js => 7559.f6ca9a429933f621.js} | 2 +-
server/public/7598.72692bbf9e6a5d2a.js | 1 -
server/public/7893.09cc89d441456629.js | 1 +
...3ea68943616b.js => 79.88f59fde8cf78eea.js} | 2 +-
server/public/8571.5eda17590c08c24e.js | 1 -
server/public/8571.600728d2995f4bfc.js | 1 +
server/public/8776.ed869c164e41c284.js | 1 -
...b29104dae0.js => 9020.4a98dc48a9af4544.js} | 2 +-
server/public/9081.0ab72e89b7403f00.js | 1 -
server/public/9484.aee7e3e6cb2747e5.js | 1 -
server/public/9484.eba4a2cb1d41b5d4.js | 1 +
...0d942857de.js => 9636.fb2df4966b3986b1.js} | 2 +-
...est-8354fbb7c7cf2522fbdf49603160eca2.json} | 2 +-
...2676d49df561c3d06723770321fd441977c.css.gz | Bin 388 -> 388 bytes
...06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz | Bin 7762 -> 7762 bytes
...8e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz | Bin 1281094 -> 1281094 bytes
...86c9a957a5e40713d58f54be71b66954a1ff.js.gz | Bin 24 -> 24 bytes
...3f5eae961b616b07904fa27002eed3dd8a7b.js.gz | Bin 113438 -> 113438 bytes
...45370e53e4bf243a32c9a471cb83a00f7d3.css.gz | Bin 56693 -> 56693 bytes
...35ef376b55d125bb4516cebeb14ce788597.css.gz | Bin 20 -> 20 bytes
...a57c6cc3f1043baf75e29c8349022a42907.svg.gz | Bin 254576 -> 254576 bytes
...8dda939e190a18149f57d5bc1fe4ac11b8d.ttf.gz | Bin 92666 -> 92666 bytes
...5e1158f767541186b9c692faa9394475059.eot.gz | Bin 92791 -> 92791 bytes
...42356f7b5da951980969a599e81f99a2a93.svg.gz | Bin 37143 -> 37143 bytes
...8f4da228f1906de09c095bf39735b77c989.ttf.gz | Bin 16740 -> 16740 bytes
...0f5156015904c2e55d0a76eadeb1ad4f519.eot.gz | Bin 16794 -> 16794 bytes
...161c2c575664a13ef43d2cae15ee7d92221.eot.gz | Bin 105059 -> 105059 bytes
...58870cb59968ec411d70f060d6bc684f721.svg.gz | Bin 255574 -> 255574 bytes
...0495c34782e75988e02e1b0f971b4d0bfdf.ttf.gz | Bin 104966 -> 104966 bytes
...54f56146915dca7ba28284b8405562d3ec8.css.gz | Bin 287 -> 287 bytes
...d2d74af01039bdc68eb5031fcb20817623f.css.gz | Bin 2193 -> 2193 bytes
server/public/common.0319ec8b62184fc2.js | 1 +
server/public/common.acceea69d48490b4.js | 1 -
server/public/index.html | 2 +-
server/public/main.8b48a5649d5fb513.js | 1 +
server/public/main.f13c0355e8f1931c.js | 1 -
server/public/runtime.2fa38d3546d84168.js | 1 -
server/public/runtime.b073059867a5e47b.js | 1 +
64 files changed, 62 insertions(+), 113 deletions(-)
rename server/public/{1457.519fd91650f6c554.js => 1457.91c95cefa3cfff40.js} (73%)
create mode 100644 server/public/2033.98c7d970352312a5.js
delete mode 100644 server/public/3021.7c78e6391c41d18d.js
delete mode 100644 server/public/3179.ea3e6bc0a3ac79f8.js
create mode 100644 server/public/3218.9a2a6eae0aa809aa.js
delete mode 100644 server/public/3218.c3517fe66324250b.js
delete mode 100644 server/public/3482.0effe2652c710328.js
create mode 100644 server/public/3482.ed6f7f94eb7c422d.js
create mode 100644 server/public/3730.7141625c22d9cd58.js
delete mode 100644 server/public/3730.ac4e30b97f660758.js
rename server/public/{4024.9ef20c158d4b219e.js => 4024.5e7368279f79aeb4.js} (56%)
delete mode 100644 server/public/4292.431ce70ec225de05.js
create mode 100644 server/public/4292.73f4c12168601c38.js
delete mode 100644 server/public/4376.d1c8d351b50a66d5.js
create mode 100644 server/public/4584.94bce0e7cd7772b3.js
rename server/public/{4658.e20841b6eacdd605.js => 4658.0b2f1cd78524e647.js} (96%)
create mode 100644 server/public/5632.b4048d1a94cb9e29.js
delete mode 100644 server/public/5787.5ff21f0a9c6baf5f.js
create mode 100644 server/public/5787.6afd9133542c6e90.js
create mode 100644 server/public/605.0b7e1919acad6432.js
delete mode 100644 server/public/605.96b969c7e87e0600.js
delete mode 100644 server/public/6303.39a638159b50f07b.js
create mode 100644 server/public/6303.e5fe598bc8a5dfd2.js
rename server/public/{681.507ad8cc8bfeed0c.js => 681.80f46e569d77955f.js} (97%)
create mode 100644 server/public/6875.9a3f371a86467784.js
create mode 100644 server/public/7012.f719422393652a3a.js
rename server/public/{7559.a5a35b67a5a564b7.js => 7559.f6ca9a429933f621.js} (79%)
delete mode 100644 server/public/7598.72692bbf9e6a5d2a.js
create mode 100644 server/public/7893.09cc89d441456629.js
rename server/public/{79.45fe3ea68943616b.js => 79.88f59fde8cf78eea.js} (95%)
delete mode 100644 server/public/8571.5eda17590c08c24e.js
create mode 100644 server/public/8571.600728d2995f4bfc.js
delete mode 100644 server/public/8776.ed869c164e41c284.js
rename server/public/{9020.4668e5b29104dae0.js => 9020.4a98dc48a9af4544.js} (65%)
delete mode 100644 server/public/9081.0ab72e89b7403f00.js
delete mode 100644 server/public/9484.aee7e3e6cb2747e5.js
create mode 100644 server/public/9484.eba4a2cb1d41b5d4.js
rename server/public/{9636.8eed820d942857de.js => 9636.fb2df4966b3986b1.js} (55%)
rename server/public/assets/{.sprockets-manifest-0b0c8677246b646bb0889aeddbe910a3.json => .sprockets-manifest-8354fbb7c7cf2522fbdf49603160eca2.json} (83%)
create mode 100644 server/public/common.0319ec8b62184fc2.js
delete mode 100644 server/public/common.acceea69d48490b4.js
create mode 100644 server/public/main.8b48a5649d5fb513.js
delete mode 100644 server/public/main.f13c0355e8f1931c.js
delete mode 100644 server/public/runtime.2fa38d3546d84168.js
create mode 100644 server/public/runtime.b073059867a5e47b.js
diff --git a/server/public/1457.519fd91650f6c554.js b/server/public/1457.91c95cefa3cfff40.js
similarity index 73%
rename from server/public/1457.519fd91650f6c554.js
rename to server/public/1457.91c95cefa3cfff40.js
index 5a876ca46..f4ae70a63 100644
--- a/server/public/1457.519fd91650f6c554.js
+++ b/server/public/1457.91c95cefa3cfff40.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1457],{7946:(S,_,t)=>{t.d(_,{x:()=>E});var h=t(9808),n=t(897),o=t(8481),z=t(3610),T=t(8018),P=t(3580),x=t(9476),O=t(5e3);let E=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275mod=O.oAB({type:f}),f.\u0275inj=O.cJS({imports:[[h.ez,o.X,z.$6,n.$,T.e,P.Q,x.L]]}),f})()},8664:(S,_,t)=>{t.d(_,{I:()=>b});var h=t(6654),n=t(5e3),o=t(9808),z=t(325),T=t(8481),P=t(3610),x=t(4850),O=t(712),E=t(7484),f=t(647),y=t(3193),C=t(3098),M=t(6550),e=t(1894),A=t(8144),v=t(6949);function I(a,l){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const r=n.oxw().ngIf;n.xp6(1),n.hij(" ",r.name," ")}}function D(a,l){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const r=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",r.gene)}}function V(a,l){1&a&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function N(a,l){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,V,2,0,"span",1),n.qZA()),2&a){const r=l.$implicit,m=l.last;n.xp6(1),n.hij(" ",r,""),n.xp6(1),n.Q6J("ngIf",!m)}}function L(a,l){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,N,3,2,"span",16),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.variantAliases)}}function B(a,l){if(1&a&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",r.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",r.alleleRegistryId," ")}}function R(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/flags"),n.xp6(3),n.hij(" Flags (",r.flags.totalCount,") ")}}function J(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",r.revisions.totalCount,") ")}}function s(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/comments"),n.xp6(3),n.hij(" Comments (",r.comments.totalCount,") ")}}function u(a,l){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,I,2,1,"ng-template",null,3,n.W1O),n.YNc(4,D,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,L,2,1,"nz-descriptions-item",6),n.YNc(8,B,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,R,4,2,"a",12),n.YNc(15,J,4,2,"a",12),n.YNc(16,s,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const r=l.ngIf,m=n.MAs(3),U=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",m)("nzExtra",U),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",r.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",r.alleleRegistryId),n.xp6(2),n.hij(" ",r.evidenceItems.totalCount," ")}}let c=(()=>{class a{constructor(r){this.gql=r}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,x.U)(({data:r})=>r.variant))}}return a.\u0275fac=function(r){return new(r||a)(n.Y36(O.ZYZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(r,m){1&r&&(n.TgZ(0,"div",0),n.YNc(1,u,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,m.variant$)))},directives:[o.O5,E.bd,f.Ls,y.H,C.R7,C.uj,o.sg,M.l,e.SK,e.t3,A.NU,A.$1,z.yS,T.j],pipes:[v.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}"]}),a})();function d(a,l){}function Z(a,l){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,d,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const r=n.oxw(),m=n.MAs(2);n.xp6(1),n.Q6J("routerLink",r.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function Q(a,l){}function Y(a,l){if(1&a){const r=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(U){return n.CHM(r),n.oxw(2).itemClosed(U)}),n.YNc(1,Q,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const r=n.MAs(2),m=n.oxw(),U=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",m.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",m.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function i(a,l){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const r=n.oxw(3);n.Q6J("variantId",r.variant.id)}}function p(a,l){if(1&a&&n.YNc(0,i,1,1,"cvc-variant-popover",10),2&a){const r=n.oxw(2);n.Q6J("ngIf",r.enablePopover)}}function g(a,l){if(1&a&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,p,1,1,"ng-template",null,8,n.W1O)),2&a){const r=n.oxw(),m=n.MAs(4);n.Q6J("ngIf",r.enablePopover)("ngIfElse",m)}}function W(a,l){}function w(a,l){if(1&a){const r=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(U){return n.CHM(r),n.oxw().itemClosed(U)}),n.YNc(1,W,0,0,"ng-template",6),n.qZA()}if(2&a){const r=n.oxw(),m=n.MAs(8);n.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function F(a,l){}function K(a,l){if(1&a&&n.YNc(0,F,0,0,"ng-template",6),2&a){n.oxw();const r=n.MAs(2);n.Q6J("ngTemplateOutlet",r)}}function j(a,l){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const r=n.oxw();n.xp6(1),n.hij(" ",r.variant.name,"\n")}}let b=(()=>{class a extends h.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(r,m){if(1&r&&(n.YNc(0,Z,3,2,"ng-container",0),n.YNc(1,g,3,2,"ng-template",null,1,n.W1O),n.YNc(3,w,2,2,"ng-template",null,2,n.W1O),n.YNc(5,K,1,1,"ng-template",null,3,n.W1O),n.YNc(7,j,2,1,"ng-template",null,4,n.W1O)),2&r){const U=n.MAs(6);n.Q6J("ngIf",m.linked)("ngIfElse",U)}},directives:[o.O5,z.yS,o.tP,T.j,P.lU,c,f.Ls],styles:[""]}),a})()},4867:(S,_,t)=>{t.d(_,{Q:()=>A});var h=t(9808),n=t(325),o=t(8481),z=t(647),T=t(3610),P=t(6949),x=t(7484),O=t(1894),E=t(3098),f=t(8144),y=t(3309),C=t(3630),M=t(5e3);let e=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=M.oAB({type:v}),v.\u0275inj=M.cJS({imports:[[h.ez,n.Bz,P.WG,x.vh,O.Jb,E.q6,o.X,z.PV,f.zf,y.U,C.X]]}),v})(),A=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=M.oAB({type:v}),v.\u0275inj=M.cJS({imports:[[h.ez,n.Bz,o.X,T.$6,z.PV,e]]}),v})()},3154:(S,_,t)=>{t.d(_,{_:()=>n});var h=t(712);function n(o){var z;switch(o.value){case"ascend":z=h.SrV.Asc;break;case"descend":z=h.SrV.Desc;break;default:return}return{column:o.key,direction:z}}},7727:(S,_,t)=>{t.r(_),t.d(_,{EvidenceModule:()=>Y});var h=t(9808),n=t(325),o=t(5630),z=t(1945),T=t(1894),P=t(647),x=t(767),O=t(3309),E=t(6949),f=t(6462),y=t(6042),C=t(8144),M=t(3618),e=t(5e3);let A=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.ez,n.Bz,E.WG,y.sL,f.m,z.KJ,T.Jb,P.PV,C.zf,M.ZJ,o.D,O.U,x.Q]]}),i})();var v=t(9350),I=t(8992),D=t(2643),V=t(2683),N=t(8965);function L(i,p){1&i&&(e.TgZ(0,"button",15),e._UZ(1,"i",16),e._uU(2," Submit New Evidence "),e.qZA())}function B(i,p){if(1&i&&(e.ynx(0),e.YNc(1,L,3,0,"button",14),e.BQk()),2&i){const g=p.ngrxLet;e.xp6(1),e.Q6J("ngIf",g.signedIn)}}function R(i,p){if(1&i&&e.YNc(0,B,2,1,"ng-container",13),2&i){const g=e.oxw();e.Q6J("ngrxLet",g.viewer$)}}function J(i,p){1&i&&(e.TgZ(0,"a",17),e._UZ(1,"i",18),e._uU(2," View Evidence Model Docs "),e.qZA())}function s(i,p){1&i&&(e.TgZ(0,"a",19),e._UZ(1,"i",18),e._uU(2," View Evidence Curation Docs "),e.qZA())}function u(i,p){1&i&&(e.TgZ(0,"nz-row"),e.TgZ(1,"div",20),e.TgZ(2,"div",21),e._UZ(3,"cvc-evidence-table",22),e.qZA(),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.Q6J("nzSpan",24))}const Z=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-evidence"]],decls:1,vars:0,template:function(g,W){1&g&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(g){this.viewerService=g,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return i.\u0275fac=function(g){return new(g||i)(e.Y36(v.a))},i.\u0275cmp=e.Xpm({type:i,selectors:[["evidence-home"]],decls:18,vars:3,consts:[[3,"actionsTpl"],["evidenceActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:evidence"],["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/model/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[4,"ngIf"],[4,"ngrxLet"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Evidence"]],template:function(g,W){if(1&g&&(e._UZ(0,"cvc-section-navigation",0),e.YNc(1,R,1,1,"ng-template",null,1,e.W1O),e.TgZ(3,"nz-page-header",2),e.TgZ(4,"nz-page-header-content"),e.TgZ(5,"nz-row",3),e.TgZ(6,"nz-col",4),e._UZ(7,"i",5),e.qZA(),e.TgZ(8,"nz-col",6),e.TgZ(9,"h2"),e._uU(10,"Evidence Items"),e.qZA(),e.TgZ(11,"p",7),e._uU(12,"The clinical evidence statement is a piece of information that has been manually curated from trustable medical literature about a variant or genomic \u2018event\u2019 that has implications in cancer predisposition, diagnosis (aka molecular classification), prognosis, or predictive response to therapy."),e.qZA(),e.qZA(),e.TgZ(13,"nz-col",8),e.TgZ(14,"nz-space",9),e.YNc(15,J,3,0,"a",10),e.YNc(16,s,3,0,"a",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,u,4,1,"nz-row",12),e.qZA(),e.qZA()),2&g){const w=e.MAs(2);e.Q6J("actionsTpl",w),e.xp6(11),e.Q6J("nzEllipsisRows",2),e.xp6(6),e.Q6J("ngIf",W.tableView)}},directives:[I.I,E.eJ,h.O5,y.ix,D.dQ,n.rH,V.w,P.Ls,z.$O,z.u5,T.SK,T.t3,M.ZU,C.NU,C.$1,N.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{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%]{position:relative}"]}),i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(1679),t.e(3021),t.e(8776),t.e(4376),t.e(3730),t.e(8592),t.e(7559)]).then(t.bind(t,7559)).then(i=>i.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(2826),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(3883),t.e(2043),t.e(3482),t.e(775),t.e(8592),t.e(9636)]).then(t.bind(t,9636)).then(i=>i.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(1679),t.e(3021),t.e(8776),t.e(4376),t.e(3730),t.e(8592),t.e(8571)]).then(t.bind(t,8571)).then(i=>i.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Q=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(Z),A],n.Bz]}),i})(),Y=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.ez,Q]]}),i})()},6462:(S,_,t)=>{t.d(_,{i:()=>R,m:()=>J});var h=t(655),n=t(1159),o=t(5e3),z=t(4182),T=t(8929),P=t(3753),x=t(7625),O=t(9439),E=t(1721),f=t(5664),y=t(226),C=t(2643),M=t(9808),e=t(647),A=t(969);const v=["switchElement"];function I(s,u){1&s&&o._UZ(0,"i",8)}function D(s,u){if(1&s&&(o.ynx(0),o._uU(1),o.BQk()),2&s){const c=o.oxw(2);o.xp6(1),o.Oqu(c.nzCheckedChildren)}}function V(s,u){if(1&s&&(o.ynx(0),o.YNc(1,D,2,1,"ng-container",9),o.BQk()),2&s){const c=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",c.nzCheckedChildren)}}function N(s,u){if(1&s&&(o.ynx(0),o._uU(1),o.BQk()),2&s){const c=o.oxw(2);o.xp6(1),o.Oqu(c.nzUnCheckedChildren)}}function L(s,u){if(1&s&&o.YNc(0,N,2,1,"ng-container",9),2&s){const c=o.oxw();o.Q6J("nzStringTemplateOutlet",c.nzUnCheckedChildren)}}let R=(()=>{class s{constructor(c,d,Z,Q,Y,i){this.nzConfigService=c,this.host=d,this.ngZone=Z,this.cdr=Q,this.focusMonitor=Y,this.directionality=i,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new T.xQ}updateValue(c){this.isChecked!==c&&(this.isChecked=c,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,x.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,P.R)(this.host.nativeElement,"click").pipe((0,x.R)(this.destroy$)).subscribe(c=>{c.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,P.R)(this.switchElement.nativeElement,"keydown").pipe((0,x.R)(this.destroy$)).subscribe(c=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:d}=c;d!==n.oh&&d!==n.SV&&d!==n.L_&&d!==n.K5||(c.preventDefault(),this.ngZone.run(()=>{d===n.oh?this.updateValue(!1):d===n.SV?this.updateValue(!0):(d===n.L_||d===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,x.R)(this.destroy$)).subscribe(c=>{c||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(c){this.isChecked=c,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=c,this.cdr.markForCheck()}}return s.\u0275fac=function(c){return new(c||s)(o.Y36(O.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(f.tE),o.Y36(y.Is,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-switch"]],viewQuery:function(c,d){if(1&c&&o.Gf(v,7),2&c){let Z;o.iGM(Z=o.CRH())&&(d.switchElement=Z.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:z.JU,useExisting:(0,o.Gpc)(()=>s),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(c,d){if(1&c&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,I,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,V,2,1,"ng-container",5),o.YNc(6,L,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&c){const Z=o.MAs(7);o.ekj("ant-switch-checked",d.isChecked)("ant-switch-loading",d.nzLoading)("ant-switch-disabled",d.nzDisabled)("ant-switch-small","small"===d.nzSize)("ant-switch-rtl","rtl"===d.dir),o.Q6J("disabled",d.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",d.nzLoading),o.xp6(2),o.Q6J("ngIf",d.isChecked)("ngIfElse",Z)}},directives:[C.dQ,M.O5,e.Ls,A.f],encapsulation:2,changeDetection:0}),(0,h.gn)([(0,E.yF)()],s.prototype,"nzLoading",void 0),(0,h.gn)([(0,E.yF)()],s.prototype,"nzDisabled",void 0),(0,h.gn)([(0,E.yF)()],s.prototype,"nzControl",void 0),(0,h.gn)([(0,O.oS)()],s.prototype,"nzSize",void 0),s})(),J=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[y.vT,M.ez,C.vG,e.PV,A.T]]}),s})()}}]);
\ No newline at end of file
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1457],{7946:(S,_,t)=>{t.d(_,{x:()=>E});var h=t(9808),n=t(897),o=t(8481),z=t(3610),T=t(8018),P=t(3580),x=t(9476),O=t(5e3);let E=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275mod=O.oAB({type:f}),f.\u0275inj=O.cJS({imports:[[h.ez,o.X,z.$6,n.$,T.e,P.Q,x.L]]}),f})()},8664:(S,_,t)=>{t.d(_,{I:()=>b});var h=t(6654),n=t(5e3),o=t(9808),z=t(325),T=t(8481),P=t(3610),x=t(4850),O=t(712),E=t(7484),f=t(647),y=t(3193),C=t(3098),M=t(6550),e=t(1894),A=t(8144),v=t(6949);function I(a,l){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const r=n.oxw().ngIf;n.xp6(1),n.hij(" ",r.name," ")}}function D(a,l){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const r=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",r.gene)}}function V(a,l){1&a&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function N(a,l){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,V,2,0,"span",1),n.qZA()),2&a){const r=l.$implicit,m=l.last;n.xp6(1),n.hij(" ",r,""),n.xp6(1),n.Q6J("ngIf",!m)}}function L(a,l){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,N,3,2,"span",16),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.variantAliases)}}function B(a,l){if(1&a&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",r.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",r.alleleRegistryId," ")}}function R(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/flags"),n.xp6(3),n.hij(" Flags (",r.flags.totalCount,") ")}}function J(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",r.revisions.totalCount,") ")}}function s(a,l){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&a){const r=n.oxw().ngIf;n.MGl("routerLink","/variants/",r.id,"/comments"),n.xp6(3),n.hij(" Comments (",r.comments.totalCount,") ")}}function u(a,l){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,I,2,1,"ng-template",null,3,n.W1O),n.YNc(4,D,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,L,2,1,"nz-descriptions-item",6),n.YNc(8,B,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,R,4,2,"a",12),n.YNc(15,J,4,2,"a",12),n.YNc(16,s,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const r=l.ngIf,m=n.MAs(3),U=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",m)("nzExtra",U),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",r.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",r.alleleRegistryId),n.xp6(2),n.hij(" ",r.evidenceItems.totalCount," ")}}let c=(()=>{class a{constructor(r){this.gql=r}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,x.U)(({data:r})=>r.variant))}}return a.\u0275fac=function(r){return new(r||a)(n.Y36(O.ZYZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(r,m){1&r&&(n.TgZ(0,"div",0),n.YNc(1,u,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,m.variant$)))},directives:[o.O5,E.bd,f.Ls,y.H,C.R7,C.uj,o.sg,M.l,e.SK,e.t3,A.NU,A.$1,z.yS,T.j],pipes:[v.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}"]}),a})();function d(a,l){}function Z(a,l){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,d,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const r=n.oxw(),m=n.MAs(2);n.xp6(1),n.Q6J("routerLink",r.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function Q(a,l){}function Y(a,l){if(1&a){const r=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(U){return n.CHM(r),n.oxw(2).itemClosed(U)}),n.YNc(1,Q,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const r=n.MAs(2),m=n.oxw(),U=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",m.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",m.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function i(a,l){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const r=n.oxw(3);n.Q6J("variantId",r.variant.id)}}function p(a,l){if(1&a&&n.YNc(0,i,1,1,"cvc-variant-popover",10),2&a){const r=n.oxw(2);n.Q6J("ngIf",r.enablePopover)}}function g(a,l){if(1&a&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,p,1,1,"ng-template",null,8,n.W1O)),2&a){const r=n.oxw(),m=n.MAs(4);n.Q6J("ngIf",r.enablePopover)("ngIfElse",m)}}function W(a,l){}function w(a,l){if(1&a){const r=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(U){return n.CHM(r),n.oxw().itemClosed(U)}),n.YNc(1,W,0,0,"ng-template",6),n.qZA()}if(2&a){const r=n.oxw(),m=n.MAs(8);n.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function F(a,l){}function K(a,l){if(1&a&&n.YNc(0,F,0,0,"ng-template",6),2&a){n.oxw();const r=n.MAs(2);n.Q6J("ngTemplateOutlet",r)}}function j(a,l){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const r=n.oxw();n.xp6(1),n.hij(" ",r.variant.name,"\n")}}let b=(()=>{class a extends h.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(r,m){if(1&r&&(n.YNc(0,Z,3,2,"ng-container",0),n.YNc(1,g,3,2,"ng-template",null,1,n.W1O),n.YNc(3,w,2,2,"ng-template",null,2,n.W1O),n.YNc(5,K,1,1,"ng-template",null,3,n.W1O),n.YNc(7,j,2,1,"ng-template",null,4,n.W1O)),2&r){const U=n.MAs(6);n.Q6J("ngIf",m.linked)("ngIfElse",U)}},directives:[o.O5,z.yS,o.tP,T.j,P.lU,c,f.Ls],styles:[""]}),a})()},4867:(S,_,t)=>{t.d(_,{Q:()=>A});var h=t(9808),n=t(325),o=t(8481),z=t(647),T=t(3610),P=t(6949),x=t(7484),O=t(1894),E=t(3098),f=t(8144),y=t(3309),C=t(3630),M=t(5e3);let e=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=M.oAB({type:v}),v.\u0275inj=M.cJS({imports:[[h.ez,n.Bz,P.WG,x.vh,O.Jb,E.q6,o.X,z.PV,f.zf,y.U,C.X]]}),v})(),A=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=M.oAB({type:v}),v.\u0275inj=M.cJS({imports:[[h.ez,n.Bz,o.X,T.$6,z.PV,e]]}),v})()},3154:(S,_,t)=>{t.d(_,{_:()=>n});var h=t(712);function n(o){var z;switch(o.value){case"ascend":z=h.SrV.Asc;break;case"descend":z=h.SrV.Desc;break;default:return}return{column:o.key,direction:z}}},7727:(S,_,t)=>{t.r(_),t.d(_,{EvidenceModule:()=>Y});var h=t(9808),n=t(325),o=t(5630),z=t(1945),T=t(1894),P=t(647),x=t(767),O=t(3309),E=t(6949),f=t(6462),y=t(6042),C=t(8144),M=t(3618),e=t(5e3);let A=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.ez,n.Bz,E.WG,y.sL,f.m,z.KJ,T.Jb,P.PV,C.zf,M.ZJ,o.D,O.U,x.Q]]}),i})();var v=t(9350),I=t(8992),D=t(2643),V=t(2683),N=t(8965);function L(i,p){1&i&&(e.TgZ(0,"button",15),e._UZ(1,"i",16),e._uU(2," Submit New Evidence "),e.qZA())}function B(i,p){if(1&i&&(e.ynx(0),e.YNc(1,L,3,0,"button",14),e.BQk()),2&i){const g=p.ngrxLet;e.xp6(1),e.Q6J("ngIf",g.signedIn)}}function R(i,p){if(1&i&&e.YNc(0,B,2,1,"ng-container",13),2&i){const g=e.oxw();e.Q6J("ngrxLet",g.viewer$)}}function J(i,p){1&i&&(e.TgZ(0,"a",17),e._UZ(1,"i",18),e._uU(2," View Evidence Model Docs "),e.qZA())}function s(i,p){1&i&&(e.TgZ(0,"a",19),e._UZ(1,"i",18),e._uU(2," View Evidence Curation Docs "),e.qZA())}function u(i,p){1&i&&(e.TgZ(0,"nz-row"),e.TgZ(1,"div",20),e.TgZ(2,"div",21),e._UZ(3,"cvc-evidence-table",22),e.qZA(),e.qZA(),e.qZA()),2&i&&(e.xp6(1),e.Q6J("nzSpan",24))}const Z=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-evidence"]],decls:1,vars:0,template:function(g,W){1&g&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(g){this.viewerService=g,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return i.\u0275fac=function(g){return new(g||i)(e.Y36(v.a))},i.\u0275cmp=e.Xpm({type:i,selectors:[["evidence-home"]],decls:18,vars:3,consts:[[3,"actionsTpl"],["evidenceActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:evidence"],["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/model/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[4,"ngIf"],[4,"ngrxLet"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Evidence"]],template:function(g,W){if(1&g&&(e._UZ(0,"cvc-section-navigation",0),e.YNc(1,R,1,1,"ng-template",null,1,e.W1O),e.TgZ(3,"nz-page-header",2),e.TgZ(4,"nz-page-header-content"),e.TgZ(5,"nz-row",3),e.TgZ(6,"nz-col",4),e._UZ(7,"i",5),e.qZA(),e.TgZ(8,"nz-col",6),e.TgZ(9,"h2"),e._uU(10,"Evidence Items"),e.qZA(),e.TgZ(11,"p",7),e._uU(12,"The clinical evidence statement is a piece of information that has been manually curated from trustable medical literature about a variant or genomic \u2018event\u2019 that has implications in cancer predisposition, diagnosis (aka molecular classification), prognosis, or predictive response to therapy."),e.qZA(),e.qZA(),e.TgZ(13,"nz-col",8),e.TgZ(14,"nz-space",9),e.YNc(15,J,3,0,"a",10),e.YNc(16,s,3,0,"a",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,u,4,1,"nz-row",12),e.qZA(),e.qZA()),2&g){const w=e.MAs(2);e.Q6J("actionsTpl",w),e.xp6(11),e.Q6J("nzEllipsisRows",2),e.xp6(6),e.Q6J("ngIf",W.tableView)}},directives:[I.I,E.eJ,h.O5,y.ix,D.dQ,n.rH,V.w,P.Ls,z.$O,z.u5,T.SK,T.t3,M.ZU,C.NU,C.$1,N.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{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%]{position:relative}"]}),i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(1679),t.e(6875),t.e(2033),t.e(3730),t.e(8592),t.e(7559)]).then(t.bind(t,7559)).then(i=>i.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(2826),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(3883),t.e(2043),t.e(3482),t.e(775),t.e(8592),t.e(9636)]).then(t.bind(t,9636)).then(i=>i.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(1679),t.e(6875),t.e(2033),t.e(3730),t.e(8592),t.e(8571)]).then(t.bind(t,8571)).then(i=>i.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Q=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(Z),A],n.Bz]}),i})(),Y=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[h.ez,Q]]}),i})()},6462:(S,_,t)=>{t.d(_,{i:()=>R,m:()=>J});var h=t(655),n=t(1159),o=t(5e3),z=t(4182),T=t(8929),P=t(3753),x=t(7625),O=t(9439),E=t(1721),f=t(5664),y=t(226),C=t(2643),M=t(9808),e=t(647),A=t(969);const v=["switchElement"];function I(s,u){1&s&&o._UZ(0,"i",8)}function D(s,u){if(1&s&&(o.ynx(0),o._uU(1),o.BQk()),2&s){const c=o.oxw(2);o.xp6(1),o.Oqu(c.nzCheckedChildren)}}function V(s,u){if(1&s&&(o.ynx(0),o.YNc(1,D,2,1,"ng-container",9),o.BQk()),2&s){const c=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",c.nzCheckedChildren)}}function N(s,u){if(1&s&&(o.ynx(0),o._uU(1),o.BQk()),2&s){const c=o.oxw(2);o.xp6(1),o.Oqu(c.nzUnCheckedChildren)}}function L(s,u){if(1&s&&o.YNc(0,N,2,1,"ng-container",9),2&s){const c=o.oxw();o.Q6J("nzStringTemplateOutlet",c.nzUnCheckedChildren)}}let R=(()=>{class s{constructor(c,d,Z,Q,Y,i){this.nzConfigService=c,this.host=d,this.ngZone=Z,this.cdr=Q,this.focusMonitor=Y,this.directionality=i,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new T.xQ}updateValue(c){this.isChecked!==c&&(this.isChecked=c,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,x.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,P.R)(this.host.nativeElement,"click").pipe((0,x.R)(this.destroy$)).subscribe(c=>{c.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,P.R)(this.switchElement.nativeElement,"keydown").pipe((0,x.R)(this.destroy$)).subscribe(c=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:d}=c;d!==n.oh&&d!==n.SV&&d!==n.L_&&d!==n.K5||(c.preventDefault(),this.ngZone.run(()=>{d===n.oh?this.updateValue(!1):d===n.SV?this.updateValue(!0):(d===n.L_||d===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,x.R)(this.destroy$)).subscribe(c=>{c||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(c){this.isChecked=c,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=c,this.cdr.markForCheck()}}return s.\u0275fac=function(c){return new(c||s)(o.Y36(O.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(f.tE),o.Y36(y.Is,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-switch"]],viewQuery:function(c,d){if(1&c&&o.Gf(v,7),2&c){let Z;o.iGM(Z=o.CRH())&&(d.switchElement=Z.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:z.JU,useExisting:(0,o.Gpc)(()=>s),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(c,d){if(1&c&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,I,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,V,2,1,"ng-container",5),o.YNc(6,L,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&c){const Z=o.MAs(7);o.ekj("ant-switch-checked",d.isChecked)("ant-switch-loading",d.nzLoading)("ant-switch-disabled",d.nzDisabled)("ant-switch-small","small"===d.nzSize)("ant-switch-rtl","rtl"===d.dir),o.Q6J("disabled",d.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",d.nzLoading),o.xp6(2),o.Q6J("ngIf",d.isChecked)("ngIfElse",Z)}},directives:[C.dQ,M.O5,e.Ls,A.f],encapsulation:2,changeDetection:0}),(0,h.gn)([(0,E.yF)()],s.prototype,"nzLoading",void 0),(0,h.gn)([(0,E.yF)()],s.prototype,"nzDisabled",void 0),(0,h.gn)([(0,E.yF)()],s.prototype,"nzControl",void 0),(0,h.gn)([(0,O.oS)()],s.prototype,"nzSize",void 0),s})(),J=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[y.vT,M.ez,C.vG,e.PV,A.T]]}),s})()}}]);
\ No newline at end of file
diff --git a/server/public/2033.98c7d970352312a5.js b/server/public/2033.98c7d970352312a5.js
new file mode 100644
index 000000000..ecd669f05
--- /dev/null
+++ b/server/public/2033.98c7d970352312a5.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2033],{8926:($,Q,n)=>{n.d(Q,{A:()=>C});var y=n(5e3),N=n(2313);let C=(()=>{class I{constructor(S){this.sanitizer=S}transform(S,D){if(!D||""==D)return S;const A=new RegExp(D,"gi"),e=S.match(A);if(!e)return S;let M=S.replace(A,`${e[0]}`);return this.sanitizer.bypassSecurityTrustHtml(M)}}return I.\u0275fac=function(S){return new(S||I)(y.Y36(N.H7,16))},I.\u0275pipe=y.Yjl({name:"highlightTypeahead",type:I,pure:!0}),I})()},3416:($,Q,n)=>{n.d(Q,{g:()=>P});var y=n(9808),N=n(4182),C=n(8776),I=n(3793),J=n(8054),S=n(7338),D=n(8006),A=n(8390),e=n(915);const F={name:"disease-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Disease",helpText:"Please enter a disease name. If you are unable to locate the disease in the dropdown, please check the 'Could not find disease' checkbox below and enter the disease in the field that appears.",required:!1,addText:"Add a Disease",destroy$:new(n(8929).xQ)},fieldArray:{type:"cvc-disease-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(t,d,h)=>{var V,k;const w=null===(k=null===(V=null==h?void 0:h.parent)||void 0===V?void 0:V.templateOptions)||void 0===k?void 0:k.allowCreate;return void 0===w||w}}},defaultValue:[],validation:{messages:{required:(t,d)=>{const h=(null==d?void 0:d.form)?d.form.get("evidenceType"):null;return h?`${(0,e.E)(h.value)} Evidence requires a disease to be specified.`:"Disease is required."}}},hooks:{onInit:t=>{var d;const h=t.templateOptions,V=null===(d=null==t?void 0:t.options)||void 0===d?void 0:d.formState,k=(null==t?void 0:t.form)?t.form.get("evidenceType"):null;!k||(h.vcSub=k.valueChanges.subscribe(w=>{V.requiresDisease(w)?(h.hidden=!1,h.required=!0):(h.hidden=!0,h.required=!1,t.model.length>0&&(t.model.splice(1),h.remove(0)))}))},onDestroy:t=>{const d=t.templateOptions;d.vcSub&&d.vcSub.unsubscribe()}}}};var v=n(5e3);let P=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=v.oAB({type:t}),t.\u0275inj=v.cJS({imports:[[y.ez,N.u5,N.UX,J.LV,S.z,I.F,C.X0.forChild({types:[F]}),D.I,A.N]]}),t})()},8006:($,Q,n)=>{n.d(Q,{I:()=>g});var y=n(9808),N=n(8776),C=n(7625),I=n(373),J=n(4850),S=n(8929),D=n(591),A=n(6123),e=n(5e3),M=n(712),L=n(9169),F=n(8054),v=n(4182),P=n(6949),t=n(8144),d=n(3618),h=n(4022),V=n(822),k=n(2683),w=n(1047),U=n(6042),c=n(2643),p=n(8926);function r(a,T){if(1&a&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&a){const o=e.oxw().$implicit,u=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,u.to.searchString),e.oJD)}}function _(a,T){if(1&a&&(e._UZ(0,"span",11),e.ALo(1,"highlightTypeahead")),2&a){const o=e.oxw().$implicit,u=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.disease.diseaseAliases.join(", "),u.to.searchString),e.oJD)}}function B(a,T){if(1&a&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,r,2,4,"span",8),e.YNc(3,_,2,4,"span",9),e.qZA(),e.qZA()),2&a){const o=T.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.disease)}}function l(a,T){if(1&a&&(e.ynx(0),e.YNc(1,B,4,2,"nz-option",6),e.BQk()),2&a){const o=T.ngrxLet;e.xp6(1),e.Q6J("ngForOf",o)}}function E(a,T){1&a&&e._uU(0," No disease found in CIViC that matches the string provided. ")}function f(a,T){if(1&a){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(2,l,2,1,"ng-container",4),e.qZA(),e.YNc(3,E,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&a){const o=e.MAs(4),u=e.oxw(),m=e.MAs(4);e.xp6(1),e.Q6J("formControl",u.formControl)("formlyAttributes",u.field)("nzPlaceHolder",u.to.placeholder?u.to.placeholder:null)("nzDropdownRender",u.to.allowCreate?m:null)("nzNotFoundContent",o)("nzShowArrow",u.to.showArrow)("nzFilterOption",u.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",u.diseases$)}}function Z(a,T){if(1&a&&e._UZ(0,"cvc-disease-tag",12),2&a){const o=e.oxw();e.Q6J("disease",o.formControl.value)}}function b(a,T){if(1&a&&e._UZ(0,"cvc-form-errors-alert",18),2&a){const o=e.oxw(4);e.Q6J("errors",o.errorMessages)}}function H(a,T){if(1&a){const o=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(o);const m=e.oxw(4);return m.addDisease(m.to.searchString)}),e._UZ(1,"i",20),e._uU(2,"No Existing CIViC Disease\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Disease? "),e.qZA()}if(2&a){const o=e.oxw(4);e.Q6J("nzLoading",o.loading),e.xp6(4),e.Oqu(o.to.searchString)}}function R(a,T){if(1&a){const o=e.EpF();e.ynx(0),e.YNc(1,b,1,1,"cvc-form-errors-alert",14),e.TgZ(2,"nz-input-group",15),e.TgZ(3,"input",16),e.NdJ("ngModelChange",function(m){return e.CHM(o),e.oxw(3).enteredDoid=m}),e.qZA(),e.qZA(),e.YNc(4,H,6,2,"button",17),e.BQk()}if(2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.errorMessages.length>0),e.xp6(2),e.Q6J("ngModel",o.enteredDoid),e.xp6(1),e.Q6J("ngIf",0==o.errorMessages.length)}}function j(a,T){if(1&a&&(e.ynx(0),e.YNc(1,R,5,3,"ng-container",13),e.BQk()),2&a){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==o.to.searchString&&o.to.searchString.length>=5)}}function W(a,T){if(1&a&&(e.YNc(0,j,2,1,"ng-container",13),e.ALo(1,"ngrxPush")),2&a){const o=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,o.displayAdd$))}}const s={name:"cvc-disease-input",component:(()=>{class a extends N.fS{constructor(o,u,m){super(),this.diseaseTypeaheadQuery=o,this.networkErrorService=u,this.addDiseaseGQL=m,this.destroy$=new S.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.enteredDoid="",this.displayAdd$=new D.X(!1),this.addDiseaseMutator=new A.U(u),this.defaultOptions={templateOptions:{placeholder:"Search Diseases",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.diseaseTypeaheadQuery.watch({name:"zzzz"}),this.diseases$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,I.j)("data","diseaseTypeahead"),(0,J.U)(o=>o.map(m=>{let x=m.doid?`DOID:${m.doid}`:"no DOID",Y=m.diseaseAliases.length>0?`Aliases: ${m.diseaseAliases.join(", ")}`:"";return{value:m.id,tooltip:`${m.displayName} (${x}) ${Y}`,label:`${m.displayName} (${x})`,disease:m}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{this.displayAdd$.next(0==u.data.diseaseTypeahead.filter(m=>m.displayName.toUpperCase()==o.toUpperCase()).length)}))}}addDisease(o){if(o&&""!=o){let m=this.addDiseaseMutator.mutate(this.addDiseaseGQL,{name:o,doid:+this.enteredDoid?+this.enteredDoid:void 0},x=>{var Y;null===(Y=this.field.formControl)||void 0===Y||Y.setValue({id:x.addDisease.disease.id,name:x.addDisease.disease.name}),this.to.searchString="",this.to.searchLength=0});m.submitSuccess$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{x&&(this.success=!0)}),m.submitError$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{x&&(this.errorMessages=x,this.success=!1)}),m.isSubmitting$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{this.loading=x})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return a.\u0275fac=function(o){return new(o||a)(e.Y36(M.kv3),e.Y36(L.Y),e.Y36(M.KNk))},a.\u0275cmp=e.Xpm({type:a,selectors:[["cvc-disease-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["diseaseListItem",""],["addDiseaseTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml",4,"nzSpaceItem"],[3,"innerHtml"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"disease"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nzAddOnBefore","DOID:"],["type","text","nz-input","","placeholder","Optional DOID",3,"ngModel","ngModelChange"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(o,u){if(1&o&&(e.YNc(0,f,5,8,"ng-container",0),e.YNc(1,Z,1,1,"ng-template",null,1,e.W1O),e.YNc(3,W,2,3,"ng-template",null,2,e.W1O)),2&o){const m=e.MAs(2);e.Q6J("ngIf",!(null!=u.formControl.value&&u.formControl.value.id))("ngIfElse",m)}},directives:[y.O5,F.Vq,v.JJ,v.oH,N.VQ,P.eJ,y.sg,F.Ip,t.NU,t.$1,d.ZU,h.n,V.V,k.w,w.gB,w.Zp,v.Fj,v.On,U.ix,c.dQ],pipes:[p.A,P.fM],styles:[""]}),a})()};var O=n(3580),i=n(7008),z=n(9444);let g=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[y.ez,v.UX,P.WG,N.X0.forChild({types:[s]}),F.LV,O.Q,d.ZJ,t.zf,U.sL,i.B,w.o7,v.u5,z.s]]}),a})()},5926:($,Q,n)=>{n.d(Q,{J:()=>F});var y=n(9808),N=n(4182),C=n(8776),I=n(3793),J=n(304),S=n(8054),D=n(4181),A=n(8390);const M={name:"variant-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant",helpText:"Description of the type of variant (e.g., V600E, BCR-ABL fusion, Loss-of-function, exon 12 mutations). Should be as specific as possible (i.e., specific amino acid changes).",required:!1,addText:"Specify a Variant"},fieldArray:{type:"variant-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(v,P,t)=>{var d,h;const V=null===(h=null===(d=null==t?void 0:t.parent)||void 0===d?void 0:d.templateOptions)||void 0===h?void 0:h.allowCreate;return void 0===V||V}}},hideExpression:(v,P,t)=>{const d=(null==t?void 0:t.form)?t.form.get("gene"):null;return!d||!d.value||!d.value[0]},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Variant be specified."}}}};var L=n(5e3);let F=(()=>{class v{}return v.\u0275fac=function(t){return new(t||v)},v.\u0275mod=L.oAB({type:v}),v.\u0275inj=L.cJS({imports:[[y.ez,N.u5,N.UX,S.LV,J.F,I.F,C.X0.forChild({types:[M]}),D.O,A.N]]}),v})()},4181:($,Q,n)=>{n.d(Q,{O:()=>X});var y=n(9808),N=n(6123),C=n(8776),I=n(8929),J=n(591),S=n(373),D=n(4850),A=n(7625),e=n(5e3),M=n(712),L=n(9169),F=n(8054),v=n(4182),P=n(8664),t=n(822),d=n(6042),h=n(2643),V=n(2683),k=n(647),w=n(6949),U=n(8926);function c(s,O){if(1&s&&(e.TgZ(0,"nz-option",6),e._UZ(1,"span",7),e.ALo(2,"highlightTypeahead"),e.qZA()),2&s){const i=O.$implicit,z=e.oxw(2);e.Q6J("nzValue",i.variant),e.xp6(1),e.Q6J("innerHtml",e.xi3(2,2,i.label,z.to.searchString),e.oJD)}}function p(s,O){1&s&&e._uU(0," No variant found in CIViC that matches the string provided. ")}function r(s,O){if(1&s){const i=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(g){return e.CHM(i),e.oxw().to.onSearch(g)}),e.YNc(2,c,3,5,"nz-option",4),e.ALo(3,"ngrxPush"),e.qZA(),e.YNc(4,p,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&s){const i=e.MAs(5),z=e.oxw(),g=e.MAs(4);e.xp6(1),e.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzDropdownRender",z.to.allowCreate?g:null)("nzNotFoundContent",i)("nzShowArrow",z.to.showArrow),e.xp6(1),e.Q6J("ngForOf",e.lcZ(3,7,z.variants$))}}function _(s,O){if(1&s&&e._UZ(0,"cvc-variant-tag",8),2&s){const i=e.oxw();e.Q6J("variant",i.formControl.value)}}function B(s,O){if(1&s&&e._UZ(0,"cvc-form-errors-alert",12),2&s){const i=e.oxw(4);e.Q6J("errors",i.errorMessages)}}function l(s,O){if(1&s){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(i);const g=e.oxw(4);return g.addVariant(g.to.searchString)}),e._UZ(1,"i",14),e._uU(2,"No Existing CIViC Variant\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Variant? "),e.qZA()}if(2&s){const i=e.oxw(4);e.Q6J("nzLoading",i.loading),e.xp6(4),e.Oqu(i.to.searchString)}}function E(s,O){if(1&s&&(e.ynx(0),e.YNc(1,B,1,1,"cvc-form-errors-alert",10),e.YNc(2,l,6,2,"button",11),e.BQk()),2&s){const i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==i.errorMessages.length)}}function f(s,O){if(1&s&&(e.ynx(0),e.YNc(1,E,3,2,"ng-container",9),e.BQk()),2&s){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==i.to.searchString)}}function Z(s,O){if(1&s&&(e.YNc(0,f,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&s){const i=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,i.displayAdd$))}}const H={name:"variant-input",component:(()=>{class s extends C.fS{constructor(i,z,g){super(),this.variantTypeaheadQuery=i,this.networkErrorService=z,this.addVariantGQL=g,this.destroy$=new I.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new J.X(!1),this.addVariantMutator=new N.U(z),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(a,T,o)=>{var u,m;let x=null===(m=null===(u=null==o?void 0:o.parent)||void 0===u?void 0:u.parent)||void 0===m?void 0:m.model;if(x&&x.gene&&x.gene[0])return x.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,S.j)("data","variants","nodes"),(0,D.U)(i=>i.map(g=>({value:g.id,label:g.name,variant:g}))))}ngAfterViewInit(){this.to.onSearch=i=>{i.length{this.displayAdd$.next(0==z.data.variants.nodes.filter(g=>g.name.toUpperCase()==i.toUpperCase()).length)}))}}addVariant(i){if(i&&""!=i&&this.to.geneId){let z=this.addVariantMutator.mutate(this.addVariantGQL,{name:i,geneId:this.to.geneId},g=>{var a;null===(a=this.field.formControl)||void 0===a||a.setValue({id:g.addVariant.variant.id,name:g.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});z.submitSuccess$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{g&&(this.success=!0)}),z.submitError$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{g&&(this.errorMessages=g,this.success=!1)}),z.isSubmitting$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{this.loading=g})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return s.\u0275fac=function(i){return new(i||s)(e.Y36(M._eC),e.Y36(L.Y),e.Y36(M.LUc))},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-variant-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(i,z){if(1&i&&(e.YNc(0,r,6,9,"ng-container",0),e.YNc(1,_,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Z,2,3,"ng-template",null,2,e.W1O)),2&i){const g=e.MAs(2);e.Q6J("ngIf",!(null!=z.formControl.value&&z.formControl.value.id))("ngIfElse",g)}},directives:[y.O5,F.Vq,v.JJ,v.oH,C.VQ,y.sg,F.Ip,P.I,t.V,d.ix,h.dQ,V.w,k.Ls],pipes:[w.fM,U.A],styles:[""],changeDetection:0}),s})()};var R=n(4867),j=n(7008),W=n(9444);let X=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[y.ez,v.UX,w.WG,C.X0.forChild({types:[H]}),F.LV,d.sL,k.PV,R.Q,j.B,W.s]]}),s})()},7338:($,Q,n)=>{n.d(Q,{z:()=>B});var y=n(9808),N=n(9444),C=n(6949),I=n(8776),J=n(7484),S=n(5482),D=n(4546),A=n(1894),e=n(647),M=n(3610),L=n(8144),F=n(3618),v=n(5109),P=n(6789),t=n(5e3),d=n(2313);let h=(()=>{class l{constructor(f){this.sanitizer=f}transform(f){return this.sanitizer.bypassSecurityTrustHtml(f)}}return l.\u0275fac=function(f){return new(f||l)(t.Y36(d.H7,16))},l.\u0275pipe=t.Yjl({name:"sanitizeHtml",type:l,pure:!0}),l})();function V(l,E){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const f=t.oxw(2);t.xp6(1),t.Oqu(f.to.label)}}function k(l,E){if(1&l&&t._UZ(0,"i",11),2&l){t.oxw();const f=t.MAs(3);t.Q6J("nzPopoverContent",f)}}function w(l,E){if(1&l&&(t._UZ(0,"span",12),t.ALo(1,"sanitizeHtml")),2&l){const f=t.oxw(3);t.Q6J("innerHtml",t.lcZ(1,1,f.to.helpText),t.oJD)}}function U(l,E){1&l&&(t.ynx(0),t.YNc(1,k,1,1,"i",9),t.YNc(2,w,2,3,"ng-template",null,10,t.W1O),t.BQk())}function c(l,E){if(1&l&&(t.ynx(0),t.TgZ(1,"nz-form-label",7),t.TgZ(2,"nz-space"),t.YNc(3,V,2,1,"span",8),t.YNc(4,U,4,0,"ng-container",1),t.qZA(),t.qZA(),t.BQk()),2&l){const f=t.oxw();t.xp6(1),t.Q6J("nzRequired",f.to.required&&!0!==f.to.hideRequiredMarker)("nzFor",f.id),t.xp6(3),t.Q6J("ngIf",f.to.helpText)}}const p=function(l){return{hidden:l}},_={wrappers:[{name:"form-field",component:(()=>{class l extends I.n2{get errorState(){return this.showError?"error":""}}return l.\u0275fac=function(){let E;return function(Z){return(E||(E=t.n5z(l)))(Z||l)}}(),l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-form-field-wrapper"]],features:[t.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(f,Z){1&f&&(t.TgZ(0,"div",0),t.TgZ(1,"nz-form-item"),t.YNc(2,c,5,3,"ng-container",1),t.TgZ(3,"nz-form-control",2),t.GkF(4,null,3),t.qZA(),t.TgZ(6,"nz-typography",4),t._UZ(7,"formly-validation-message",5),t.qZA(),t.TgZ(8,"nz-typography",6),t._uU(9),t.qZA(),t.qZA(),t.qZA()),2&f&&(t.Q6J("ngClass",t.VKq(5,p,!0===Z.to.hidden)),t.xp6(2),t.Q6J("ngIf",Z.to.label&&!0!==Z.to.hideLabel),t.xp6(1),t.Q6J("nzValidateStatus",Z.errorState),t.xp6(4),t.Q6J("field",Z.field),t.xp6(2),t.hij(" ",Z.to.optionText," "))},directives:[y.mk,A.SK,D.Nx,y.O5,A.t3,D.iK,L.NU,L.$1,e.Ls,M.lU,D.Fd,F.ZU,I.u_],pipes:[h],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),l})()}]};let B=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[y.ez,C.WG,I.X0.forChild(_),A.Jb,J.vh,S.cD,P._,v.s,D.U5,e.PV,L.zf,M.$6,N.s,F.ZJ]]}),l})()},6559:($,Q,n)=>{n.d(Q,{H0:()=>U});var y=n(5e3),N=n(9808),C=n(226);let U=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=y.oAB({type:c}),c.\u0275inj=y.cJS({imports:[[C.vT,N.ez]]}),c})()}}]);
\ No newline at end of file
diff --git a/server/public/3021.7c78e6391c41d18d.js b/server/public/3021.7c78e6391c41d18d.js
deleted file mode 100644
index 77d6bb9a0..000000000
--- a/server/public/3021.7c78e6391c41d18d.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3021],{4889:(P,N,l)=>{l.d(N,{E:()=>v});var _=l(9808),x=l(4182),e=l(325),S=l(8776),O=l(304),b=l(6042),t=l(5e3),M=l(2643),E=l(2683);const Z={name:"cancel-button",component:(()=>{class g extends S.fS{constructor(){super(...arguments),this.redirectPath="/"}ngOnInit(){var y,F;(null===(y=this.field.templateOptions)||void 0===y?void 0:y.redirectPath)&&(this.redirectPath=null===(F=this.field.templateOptions)||void 0===F?void 0:F.redirectPath)}}return g.\u0275fac=function(){let C;return function(F){return(C||(C=t.n5z(g)))(F||g)}}(),g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-cancel-button"]],features:[t.qOj],decls:2,vars:1,consts:[["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"routerLink"]],template:function(y,F){1&y&&(t.TgZ(0,"button",0),t._uU(1,"Cancel"),t.qZA()),2&y&&t.Q6J("routerLink",F.redirectPath)},directives:[b.ix,M.dQ,E.w,e.rH],styles:[".cancel-button[_ngcontent-%COMP%]{float:left}"]}),g})()};let v=(()=>{class g{}return g.\u0275fac=function(y){return new(y||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[_.ez,x.u5,x.UX,b.sL,e.Bz,O.F,S.X0.forChild({types:[Z]})]]}),g})()},8979:(P,N,l)=>{l.d(N,{N:()=>Z});var _=l(9808),x=l(8776),e=l(5e3),S=l(6042),O=l(2643),b=l(2683);const M={name:"cvc-multi-field-add-btn",component:(()=>{class v extends x.fS{constructor(){super()}}return v.\u0275fac=function(C){return new(C||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["cvc-multi-field-add-btn-type"]],features:[e.qOj],decls:2,vars:2,consts:[["type","submit","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"disabled"]],template:function(C,y){1&C&&(e.TgZ(0,"button",0),e._uU(1),e.qZA()),2&C&&(e.Q6J("disabled",y.to.disabled),e.xp6(1),e.Oqu(y.to.label))},directives:[S.ix,O.dQ,b.w],styles:[""],encapsulation:2,changeDetection:0}),v})()};var E=l(9139),T=l(4546);let Z=(()=>{class v{}return v.\u0275fac=function(C){return new(C||v)},v.\u0275mod=e.oAB({type:v}),v.\u0275inj=e.cJS({imports:[[_.ez,E.u,x.X0.forChild({types:[M]}),T.U5,S.sL]]}),v})()},8390:(P,N,l)=>{l.d(N,{N:()=>z});var _=l(9808),x=l(4182),e=l(8776),S=l(4546),O=l(1047),b=l(647),t=l(5e3),M=l(1894),E=l(8481),T=l(2683),Z=l(6042),v=l(2643);function g(c,f){if(1&c&&t._UZ(0,"formly-validation-message",7),2&c){const s=t.oxw(2);t.Q6J("field",s.field)}}function C(c,f){if(1&c){const s=t.EpF();t.TgZ(0,"nz-form-item"),t.TgZ(1,"nz-form-control",3),t.TgZ(2,"nz-tag",4),t.NdJ("click",function(L){return t.CHM(s),t.oxw().addField(L)}),t._UZ(3,"i",5),t._uU(4),t.qZA(),t.YNc(5,g,1,1,"ng-template",null,6,t.W1O),t.qZA(),t.qZA()}if(2&c){const s=t.MAs(6),h=t.oxw();t.xp6(1),t.Q6J("nzValidateStatus",h.errorState)("nzErrorTip",s),t.xp6(3),t.hij(" ",h.to.addText," ")}}function y(c,f){if(1&c){const s=t.EpF();t.TgZ(0,"nz-tag",4),t.NdJ("click",function(L){return t.CHM(s),t.oxw(4).addField(L)}),t._UZ(1,"i",5),t._uU(2),t.qZA()}if(2&c){const s=t.oxw(4);t.xp6(2),t.hij(" ",s.to.addText," ")}}function F(c,f){if(1&c&&(t.TgZ(0,"div",12),t.YNc(1,y,3,1,"nz-tag",13),t.qZA()),2&c){const s=t.oxw(2).$implicit,h=t.oxw();t.xp6(1),t.Q6J("ngIf",0==h.to.maxCount||h.to.maxCount>s.model.length)}}function U(c,f){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"nz-tag",9),t.TgZ(2,"i",10),t.NdJ("click",function(){t.CHM(s);const L=t.oxw().index;return t.oxw().remove(L)}),t.qZA(),t.qZA(),t.YNc(3,F,2,1,"div",11),t.BQk()}if(2&c){const s=t.oxw().last;t.xp6(3),t.Q6J("ngIf",s)}}function V(c,f){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"div",14),t.TgZ(2,"button",15),t.NdJ("click",function(){t.CHM(s);const L=t.oxw().index;return t.oxw().remove(L)}),t._UZ(3,"i",16),t.qZA(),t.qZA(),t.BQk()}}function I(c,f){if(1&c&&(t.TgZ(0,"nz-form-item"),t.TgZ(1,"div",8),t.TgZ(2,"div",0),t._UZ(3,"formly-field",7),t.qZA(),t.YNc(4,U,4,1,"ng-container",1),t.YNc(5,V,4,0,"ng-container",1),t.qZA(),t.qZA()),2&c){const s=f.$implicit,h=f.index;t.xp6(2),t.Q6J("ngClass",s.model[h]?"selected-field-col":"default-field-col"),t.xp6(1),t.Q6J("field",s),t.xp6(1),t.Q6J("ngIf",s.model[h]),t.xp6(1),t.Q6J("ngIf",!s.model[h])}}const J=function(c){return{hidden:c}},Q={name:"multi-field",component:(()=>{class c extends e.hv{constructor(){super(),this.defaultOptions={templateOptions:{maxCount:0}}}get errorState(){return this.showError?"error":""}addField(s){s&&s.preventDefault(),this.add()}ngOnInit(){this.to.add=this.add.bind(this),this.to.remove=this.remove.bind(this)}}return c.\u0275fac=function(s){return new(s||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-multi-field-type"]],features:[t.qOj],decls:3,vars:5,consts:[[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzValidateStatus","nzErrorTip"],["nzNoAnimation","",1,"editable-tag",3,"click"],["nz-icon","","nzType","plus"],["errorTpl",""],[3,"field"],["ngClass","field-display"],[1,"close-tag"],["nz-icon","","nzType","close",3,"click"],["class","field-add-btn",4,"ngIf"],[1,"field-add-btn"],["class","editable-tag","nzNoAnimation","",3,"click",4,"ngIf"],[1,"field-cancel-btn"],["nz-button","","nzBlock","","nzType","default","nzSize","small","nzDanger","",3,"click"],["nz-icon","","nzType","close"]],template:function(s,h){1&s&&(t.TgZ(0,"div",0),t.YNc(1,C,7,3,"nz-form-item",1),t.YNc(2,I,6,4,"nz-form-item",2),t.qZA()),2&s&&(t.Q6J("ngClass",t.VKq(3,J,!0===h.to.hidden)),t.xp6(1),t.Q6J("ngIf",0===(null==h.field.fieldGroup?null:h.field.fieldGroup.length)),t.xp6(1),t.Q6J("ngForOf",h.field.fieldGroup))},directives:[_.mk,_.O5,M.SK,S.Nx,M.t3,S.Fd,E.j,b.Ls,T.w,e.u_,_.sg,e.cw,Z.ix,v.dQ],styles:["[_nghost-%COMP%]{display:block}nz-form-item[_ngcontent-%COMP%]{margin-bottom:.25em}nz-form-item[_ngcontent-%COMP%]:last-child{margin-bottom:16px}.hidden[_ngcontent-%COMP%]{display:none}.editable-tag[_ngcontent-%COMP%]{background:#ffffff;border-style:dashed;cursor:pointer}.field-display[_ngcontent-%COMP%]{margin-top:.5em;display:inline-block} > nz-form-item[_ngcontent-%COMP%]{margin-bottom:0}.selected-field-col[_ngcontent-%COMP%]{display:inline-block}.default-field-col[_ngcontent-%COMP%]{display:inline-block;width:calc(100% - (2*(10px + 1em)))}.field-add-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em}.close-tag[_ngcontent-%COMP%]{margin-left:-9px;cursor:pointer}.field-cancel-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em;width:calc(20px + 1em)}"]}),c})()};function A(c,f){if(1&c&&t._UZ(0,"formly-validation-message",3),2&c){const s=t.oxw();t.Q6J("field",s.field)}}const r={name:"cvc-field-errors",component:(()=>{class c extends e.n2{get errorState(){return this.showError?"error":""}}return c.\u0275fac=function(){let f;return function(h){return(f||(f=t.n5z(c)))(h||c)}}(),c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-field-errors-wrapper"]],features:[t.qOj],decls:7,vars:3,consts:[[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"field"]],template:function(s,h){if(1&s&&(t.TgZ(0,"nz-form-control",0),t.TgZ(1,"p"),t._uU(2),t.qZA(),t.GkF(3,null,1),t.YNc(5,A,1,1,"ng-template",null,2,t.W1O),t.qZA()),2&s){const L=t.MAs(6);t.Q6J("nzValidateStatus",h.errorState)("nzErrorTip",L),t.xp6(2),t.hij("errorState: ",h.errorState,"")}},directives:[M.t3,S.Fd,e.u_],encapsulation:2,changeDetection:0}),c})()};let d=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[[_.ez,x.UX,S.U5,e.X0.forChild({wrappers:[r]})]]}),c})();var m=l(5109);let z=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[[_.ez,x.u5,e.X0.forChild({types:[Q]}),x.UX,d,S.U5,O.o7,b.PV,Z.sL,m.s,E.X]]}),c})()},3773:(P,N,l)=>{l.d(N,{g:()=>de});var _=l(9808),x=l(8776),e=l(5e3),S=l(4182),O=l(712),b=l(6530),t=l(444);const M={sourceType:void 0,citationId:void 0};let E=(()=>{class o{constructor(){this.sourceSelected=new e.vpe,this.model=M,this.form=new S.cw({}),this.options={},this.fields=[{key:"id"},{key:"citation",defaultValue:""},{key:"sourceType",type:"select",className:"source-type-field",defaultValue:O.yic.Pubmed,templateOptions:{required:!0,placeholder:"Select Type",options:(0,t.o6)(O.yic).map((n,a)=>({value:n,label:(0,b.c)(n)}))}},{key:"citationId",className:"citation-id-field",type:"source-selector-typeahead",templateOptions:{maxLength:10,required:!0,triggerParentSubmit:()=>{this.onSubmit()}},expressionProperties:{"templateOptions.disabled":"!model.sourceType","templateOptions.placeholder":'!model.sourceType ? "Select source type before searching" : "Search " + model.sourceType + " sources"',"templateOptions.sourceType":"model.sourceType","templateOptions.sourceTypeKey":n=>{if(n.sourceType)return(0,t.o6)(O.yic).getKeyOrThrow(n.sourceType)}}},{type:"cvc-multi-field-add-btn",className:"add-button",templateOptions:{label:"Add Source"},expressionProperties:{"templateOptions.disabled":"!model.citationId"}}]}ngOnInit(){}onSubmit(){console.log("source-select form submitted."),this.sourceSelected.emit(this.model)}ngOnDestroy(){console.log("source-selector onDestroy called.")}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector"]],outputs:{sourceSelected:"sourceSelected"},decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[1,"formly-form",3,"model","fields","options","form","modelChange"]],template:function(n,a){1&n&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return a.onSubmit()}),e.TgZ(1,"formly-form",1),e.NdJ("modelChange",function(w){return a.model=w}),e.qZA(),e.qZA()),2&n&&(e.Q6J("formGroup",a.form),e.xp6(1),e.Q6J("model",a.model)("fields",a.fields)("options",a.options)("form",a.form))},directives:[S._Y,S.JL,S.sg,x.T7],styles:[":host{display:block}cvc-source-input .formly-form{width:100%}cvc-source-input .source-type-field{display:inline-block;width:10em}cvc-source-input .citation-id-field{display:inline-block;margin-left:.5em;width:calc(100% - 19em)}cvc-source-input .add-button{display:inline-block;margin-left:.5em;width:8em}\n"],encapsulation:2}),o})();var T=l(6906);function Z(o,u){if(1&o){const n=e.EpF();e.ynx(0),e.TgZ(1,"cvc-source-selector",2),e.NdJ("sourceSelected",function(p){return e.CHM(n),e.oxw().onSourceSelected(p)}),e.qZA(),e.BQk()}}function v(o,u){if(1&o&&e._UZ(0,"cvc-source-tag",3),2&o){const n=e.oxw();e.Q6J("source",n.formControl.value)}}const C={name:"source-input",component:(()=>{class o extends x.fS{constructor(){super()}onSourceSelected(n){console.log(n),this.formControl.setValue(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["sourceListItem",""],[3,"sourceSelected"],[3,"source"]],template:function(n,a){if(1&n&&(e.YNc(0,Z,2,0,"ng-container",0),e.YNc(1,v,1,1,"ng-template",null,1,e.W1O)),2&n){const p=e.MAs(2);e.Q6J("ngIf",!(null!=a.formControl.value&&a.formControl.value.id))("ngIfElse",p)}},directives:[_.O5,E,T.T],styles:[""],changeDetection:0}),o})()};var y=l(9139),F=l(6042),U=l(8054),V=l(537),I=l(8144),J=l(2359),Y=l(1894),Q=l(4546),A=l(822),i=l(2643),r=l(2683);function d(o,u){if(1&o&&e._UZ(0,"nz-alert",6),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function m(o,u){if(1&o&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function z(o,u){1&o&&(e.ynx(0),e.YNc(1,d,1,1,"nz-alert",4),e.YNc(2,m,3,1,"ng-template",null,5,e.W1O),e.BQk())}function c(o,u){if(1&o&&e._UZ(0,"nz-alert",9),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function f(o,u){if(1&o&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function s(o,u){1&o&&(e.ynx(0),e.YNc(1,c,1,1,"nz-alert",7),e.YNc(2,f,4,1,"ng-template",null,8,e.W1O),e.BQk())}function h(o,u){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function L(o,u){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(p){return e.CHM(n),e.oxw(3).onCreateSourceStub(p)}),e._uU(1," Create\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 CIViC Source "),e.qZA()}if(2&o){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function B(o,u){1&o&&(e.ynx(0),e.YNc(1,L,5,2,"button",11),e.BQk())}function j(o,u){if(1&o){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(p){return e.CHM(n),e.oxw(3).onAcceptSource(p)}),e._uU(1," Add Source to List "),e.qZA()}}function k(o,u){1&o&&(e.ynx(0),e.YNc(1,j,2,0,"button",13),e.BQk())}function K(o,u){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,z,4,0,"ng-container",3),e.YNc(3,s,4,0,"ng-container",3),e.YNc(4,h,2,1,"nz-form-item",3),e.YNc(5,B,2,0,"ng-container",3),e.YNc(6,k,2,0,"ng-container",3),e.qZA(),e.BQk()),2&o){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function D(o,u){if(1&o&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function X(o,u){1&o&&(e.ynx(0),e.YNc(1,D,3,1,"span",15),e.BQk())}function H(o,u){if(1&o&&e._uU(0),2&o){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function R(o,u){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,H,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&o){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function G(o,u){1&o&&(e.ynx(0),e.YNc(1,R,4,1,"span",18),e.BQk())}function $(o,u){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(p){return e.CHM(n),e.oxw(2).onExistenceQuery(p)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function q(o,u){if(1&o&&(e.TgZ(0,"nz-space",2),e.YNc(1,X,2,0,"ng-container",3),e.YNc(2,G,2,0,"ng-container",3),e.YNc(3,$,4,3,"button",11),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let ee=(()=>{class o{constructor(n,a,p){this.existenceCheckQuery=n,this.createSourceStubQuery=a,this.changeDetectorRef=p,this.modelUpdate=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceError=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,t.o6)(O.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,V.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:a}})=>{null!==a?this.foundCitation=a:(this.showPrompt=!1,this.existenceFail=!0)},error:a=>{this.showPrompt=!1,this.existenceError=a.graphQLErrors.map(p=>p.message)},complete:()=>{this.existenceError=[]}})}onCreateSourceStub(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,V.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:a})=>{var p;console.log(a);const w=null===(p=null==a?void 0:a.addRemoteCitation)||void 0===p?void 0:p.newSource;this.sourceStub=w,this.createSuccess=!0},error:a=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=a.graphQLErrors.map(p=>p.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),console.log("source accepted");const a=Object.assign(Object.assign({},this.model),{id:this.sourceStub.id,citation:this.foundCitation,citationId:this.citationId});this.modelUpdate.emit(a)}ngAfterContentInit(){console.log("model")}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(O.fpJ),e.Y36(O.JQ3),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{modelUpdate:"modelUpdate",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,a){if(1&n&&(e.YNc(0,K,7,5,"ng-container",0),e.YNc(1,q,4,2,"ng-template",null,1,e.W1O)),2&n){const p=e.MAs(2);e.Q6J("ngIf",a.foundCitation)("ngIfElse",p)}},directives:[_.O5,I.NU,I.$1,J.r,Y.SK,Q.Nx,A.V,F.ix,i.dQ,r.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),o})();function te(o,u){if(1&o&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&o){const n=u.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function ne(o,u){if(1&o&&(e.TgZ(0,"div",5),e._uU(1," Citation: "),e.TgZ(2,"span",6),e._uU(3),e.qZA(),e.qZA()),2&o){const n=e.oxw();e.xp6(3),e.hij(" ",n.model.citation," ")}}function oe(o,u){if(1&o&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.hij(" Enter a ",n.to.sourceTypeKey," citation ID to search CIViC sources ")}}function re(o,u){if(1&o){const n=e.EpF();e.TgZ(0,"cvc-source-loader",10),e.NdJ("modelUpdate",function(p){return e.CHM(n),e.oxw(2).onModelUpdated(p)})("sourceTypeChange",function(p){return e.CHM(n),e.oxw(2).model.sourceType=p})("citationIdChange",function(p){return e.CHM(n),e.oxw(2).to.fieldValue=p}),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.fieldValue)}}function ie(o,u){if(1&o&&(e.ynx(0,7),e.YNc(1,oe,2,1,"div",8),e.YNc(2,re,1,3,"cvc-source-loader",9),e.BQk()),2&o){const n=e.oxw();e.Q6J("ngSwitch",n.to.fieldLength>0&&n.to.fieldLength>=n.to.minLengthSearch),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const ce={name:"source-selector-typeahead",component:(()=>{class o extends x.fS{constructor(n,a){super(),this.sourceTypeaheadQuery=n,this.changeDetectorRef=a,this.selectedValue=null,this.nzFilterOption=()=>!0,this.defaultOptions={templateOptions:{placeholder:"Search",sourceType:void 0,showArrow:!1,onSearch:()=>{},filterOption:()=>{},modelChange:()=>{},triggerParentSubmit:()=>{},minLengthSearch:1,fieldLength:0,fieldValue:"",optionList:[]}}}ngAfterViewInit(){this.to.filterOption=()=>!0,this.to.modelChange=n=>{if(this.to.optionList.length>0){const{source:a}=this.to.optionList.find(p=>p.value===+n);a?this.form.patchValue({citation:a.citation,id:a.id}):console.error("Could not find selected citation in list?")}},this.to.onSearch=n=>{this.to.fieldValue=n,this.to.fieldLength=n.length,!(n.lengththis.to.maxLength)&&this.sourceTypeaheadQuery.fetch({sourceType:this.to.sourceType,partialCitationId:+n},{fetchPolicy:"network-only"}).subscribe(({data:{sourceTypeahead:a}})=>{this.to.optionList=a.map(p=>({value:p.citationId,label:p.citationId,source:p})),this.changeDetectorRef.detectChanges()})}}onModelUpdated(n){this.form.patchValue(n),this.changeDetectorRef.detectChanges(),this.to.triggerParentSubmit()}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(O.k2T),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector-typeahead-type"]],features:[e.qOj],decls:5,vars:8,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","ngModelChange","nzOnSearch"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["class","ant-form-item-explain",4,"ngIf"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue"],[1,"ant-form-item-explain"],[1,"source-citation"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange"]],template:function(n,a){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("ngModelChange",function(w){return a.to.modelChange(w)})("nzOnSearch",function(w){return a.to.onSearch(w)}),e.YNc(1,te,2,4,"nz-option",1),e.qZA(),e.YNc(2,ne,4,1,"div",2),e.YNc(3,ie,3,3,"ng-template",null,3,e.W1O)),2&n){const p=e.MAs(4);e.Q6J("formControl",a.formControl)("formlyAttributes",a.field)("nzPlaceHolder",a.to.placeholder?a.to.placeholder:null)("nzNotFoundContent",p)("nzShowArrow",a.to.showArrow)("nzFilterOption",a.to.filterOption),e.xp6(1),e.Q6J("ngForOf",a.to.optionList),e.xp6(1),e.Q6J("ngIf",a.model.citation.length>0)}},directives:[U.Vq,S.JJ,S.oH,x.VQ,_.sg,U.Ip,_.O5,_.RF,_.n9,ee],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),o})(),wrappers:["form-field"]};var le=l(7008);let W=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,I.zf,J.L,Q.U5,le.B,F.sL]]}),o})(),ae=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,S.UX,x.X0.forChild({types:[ce]}),U.LV,W]]}),o})();var se=l(8979);let ue=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,S.UX,x.X0,y.u,F.sL,W,ae,se.N]]}),o})();var pe=l(9779);let de=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[_.ez,x.X0.forChild({types:[C]}),ue,pe.s]]}),o})()},444:(P,N,l)=>{function _(i){return i!==String(parseFloat(i))}l.d(N,{o6:()=>A});var O=Object.getOwnPropertyNames?function x(i){return Object.getOwnPropertyNames(i).filter(function(r){return i.propertyIsEnumerable(r)&&_(r)})}:Object.keys?function e(i){return Object.keys(i).filter(_)}:function S(i){var r=[];for(var d in i)i.hasOwnProperty(d)&&i.propertyIsEnumerable(d)&&_(d)&&r.push(d);return r},b=function(){function i(r){this.enumObj=r,this.keysList=Object.freeze(O(r));for(var d=this.keysList.length,m=new Array(d),z=new Map,c=0;c=d.length,value:d.keysList[m]};return++m,c}})[Symbol.iterator]=function(){return this},r},i.prototype.values=function(){var r,d=this,m=0;return(r={next:function(){var c={done:m>=d.length,value:d.valuesList[m]};return++m,c}})[Symbol.iterator]=function(){return this},r},i.prototype.entries=function(){var r,d=this,m=0;return(r={next:function(){var c={done:m>=d.length,value:d[m]};return++m,c}})[Symbol.iterator]=function(){return this},r},i.prototype[Symbol.iterator]=function(){return this.entries()},i.prototype.forEach=function(r,d){for(var m=this.length,z=0;z{n.d(C,{u:()=>e});var t=n(5e3),f=n(685),p=n(1912),g=n(3618),u=n(647);function z(d,v){1&d&&(t.TgZ(0,"span"),t._uU(1," You must be logged in to view this page. "),t.qZA())}function S(d,v){1&d&&t._UZ(0,"cvc-login-button")}function a(d,v){1&d&&(t.TgZ(0,"nz-typography",4),t._UZ(1,"i",5),t.qZA())}let e=(()=>{class d{}return d.\u0275fac=function(y){return new(y||d)},d.\u0275cmp=t.Xpm({type:d,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(y,O){if(1&y&&(t.TgZ(0,"nz-empty",0),t.YNc(1,z,2,0,"ng-template",null,1,t.W1O),t.YNc(3,S,1,0,"ng-template",null,2,t.W1O),t.qZA(),t.YNc(5,a,2,0,"ng-template",null,3,t.W1O)),2&y){const x=t.MAs(2),P=t.MAs(4),D=t.MAs(6);t.Q6J("nzNotFoundImage",D)("nzNotFoundContent",x)("nzNotFoundFooter",P)}},directives:[f.p9,p.s,g.ZU,u.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),d})()},9386:(E,C,n)=>{n.d(C,{a:()=>S});var t=n(9808),f=n(1844),p=n(685),g=n(647),u=n(3618),z=n(5e3);let S=(()=>{class a{}return a.\u0275fac=function(d){return new(d||a)},a.\u0275mod=z.oAB({type:a}),a.\u0275inj=z.cJS({imports:[[t.ez,f.B,p.Xo,g.PV,u.ZJ]]}),a})()},9180:(E,C,n)=>{n.d(C,{Z:()=>p});var t=n(5e3);const f=["*"];let p=(()=>{class g{constructor(){}ngOnInit(){}}return g.\u0275fac=function(z){return new(z||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-form-buttons"]],ngContentSelectors:f,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(z,S){1&z&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:["[_nghost-%COMP%]{display:block}.form-buttons[_ngcontent-%COMP%]{text-align:right}"]}),g})()},4375:(E,C,n)=>{n.d(C,{R:()=>p});var t=n(9808),f=n(5e3);let p=(()=>{class g{}return g.\u0275fac=function(z){return new(z||g)},g.\u0275mod=f.oAB({type:g}),g.\u0275inj=f.cJS({imports:[[t.ez]]}),g})()},8227:(E,C,n)=>{n.d(C,{q:()=>_});var t=n(5e3),f=n(8929),p=n(4850),g=n(373),u=n(2868),z=n(7625),S=n(1793),a=n(9350),e=n(9808),d=n(6042),v=n(2683),y=n(2643),O=n(3677),x=n(8144),P=n(6699),D=n(4219);function N(o,i){1&o&&t.Hsn(0)}function G(o,i){1&o&&t.GkF(0)}function L(o,i){if(1&o&&(t.ynx(0),t.YNc(1,G,1,0,"ng-container",5),t.BQk()),2&o){t.oxw(2);const l=t.MAs(1);t.xp6(1),t.Q6J("ngTemplateOutlet",l)}}function I(o,i){1&o&&t.GkF(0)}function U(o,i){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-button-group",6),t.YNc(2,I,1,0,"ng-container",5),t.TgZ(3,"button",7),t.TgZ(4,"nz-space",8),t.TgZ(5,"span"),t._uU(6,"for"),t.qZA(),t._UZ(7,"nz-avatar",9),t._UZ(8,"i",10),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&o){t.oxw();const l=t.MAs(4),T=t.oxw(),R=t.MAs(1);t.xp6(1),t.Q6J("nzSize",T.nzSize),t.xp6(1),t.Q6J("ngTemplateOutlet",R),t.xp6(1),t.Q6J("nzType",T.buttonType)("nzDanger",T.nzDanger)("disabled",T.disabled)("nzDropdownMenu",l),t.xp6(1),t.Q6J("nzSize",4),t.xp6(3),t.Q6J("nzSrc",null==T.selectedOrg?null:T.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function A(o,i){if(1&o){const l=t.EpF();t.TgZ(0,"li",11),t.NdJ("click",function(){const Z=t.CHM(l).$implicit;return t.oxw(2).selectOrg(Z)}),t._UZ(1,"nz-avatar",12),t._uU(2),t.qZA()}if(2&o){const l=i.$implicit,T=t.oxw(2);t.Q6J("nzSelected",(null==T.selectedOrg?null:T.selectedOrg.id)===l.id),t.xp6(1),t.Q6J("nzSrc",null==l?null:l.profileImagePath)("nzSize",10)("nzShape","square"),t.xp6(1),t.hij(" ",l.name," ")}}function B(o,i){if(1&o&&(t.ynx(0),t.YNc(1,L,2,1,"ng-container",1),t.YNc(2,U,9,10,"ng-container",1),t.TgZ(3,"nz-dropdown-menu",null,2),t.TgZ(5,"ul",3),t.YNc(6,A,3,5,"li",4),t.qZA(),t.qZA(),t.BQk()),2&o){const l=i.ngIf;t.xp6(1),t.Q6J("ngIf",l.length<=1),t.xp6(1),t.Q6J("ngIf",l.length>1),t.xp6(4),t.Q6J("ngForOf",l)}}const c=["*"];let _=(()=>{class o{constructor(l){this.viewerService=l,this.selectedOrgChange=new t.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new f.xQ}get disabled(){return this.button.disabled}selectOrg(l){this.selectedOrg=l,this.selectedOrgChange.emit(l)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,p.U)(l=>l.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,g.j)("mostRecentOrg"),(0,u.b)(l=>{l&&(this.selectedOrg=l,this.selectedOrgChange.emit(l))})),this.mostRecentOrg$.pipe((0,z.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(l){return new(l||o)(t.Y36(a.a))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(l,T,R){if(1&l&&t.Suo(R,S.m,5),2&l){let Z;t.iGM(Z=t.CRH())&&(T.button=Z.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:c,decls:4,vars:3,consts:[["submitButton",""],[4,"ngIf"],["orgMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[4,"ngTemplateOutlet"],[3,"nzSize"],["type","button","nz-button","","nz-dropdown","",1,"org-dropdown-btn",3,"nzType","nzDanger","disabled","nzDropdownMenu"],["nzDirection","horizontal",3,"nzSize"],[3,"nzSrc","nzSize","nzShape"],["nz-icon","","nzType","down"],["nz-menu-item","",3,"nzSelected","click"],[2,"background-color","#f0f5ff",3,"nzSrc","nzSize","nzShape"]],template:function(l,T){1&l&&(t.F$t(),t.YNc(0,N,1,0,"ng-template",null,0,t.W1O),t.YNc(2,B,7,3,"ng-container",1),t.ALo(3,"async")),2&l&&(t.xp6(2),t.Q6J("ngIf",t.lcZ(3,1,T.organizations$)))},directives:[e.O5,e.tP,d.fY,v.w,d.ix,y.dQ,O.wA,O.cm,x.NU,P.Dz,O.RR,D.wO,e.sg,D.r9],pipes:[e.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),o})()},1825:(E,C,n)=>{n.d(C,{A:()=>S});var t=n(9808),f=n(6042),p=n(6699),g=n(3677),u=n(8144),z=n(5e3);let S=(()=>{class a{}return a.\u0275fac=function(d){return new(d||a)},a.\u0275mod=z.oAB({type:a}),a.\u0275inj=z.cJS({imports:[[t.ez,f.sL,p.Rt,g.b1,u.zf]]}),a})()},1793:(E,C,n)=>{n.d(C,{m:()=>f});var t=n(5e3);let f=(()=>{class p{constructor(u){this.el=u,this.observer=new MutationObserver(([z])=>this.disabled=z.target.disabled),this.observer.observe(this.el.nativeElement,{attributeFilter:["disabled"],childList:!1,subtree:!1})}ngOnDestroy(){this.observer.disconnect()}}return p.\u0275fac=function(u){return new(u||p)(t.Y36(t.SBq))},p.\u0275dir=t.lG2({type:p,selectors:[["button","cvcOrgSelectorBtn",""]],hostVars:2,hostBindings:function(u,z){2&u&&t.ekj("ant-btn-dangerous",z.nzDanger)}}),p})()},4623:(E,C,n)=>{n.d(C,{K:()=>d});var t=n(9808),f=n(8776),p=n(5e3),g=n(1047),u=n(4182);const S={name:"comment-textarea",component:(()=>{class v extends f.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(O,x)=>{var P;return`Comments must be at least ${null===(P=x.templateOptions)||void 0===P?void 0:P.minLength} characters in length.`}}},templateOptions:{rows:4}}}}return v.\u0275fac=function(){let y;return function(x){return(y||(y=p.n5z(v)))(x||v)}}(),v.\u0275cmp=p.Xpm({type:v,selectors:[["comment-textarea-type"]],features:[p.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(O,x){1&O&&p._UZ(0,"textarea",0),2&O&&p.Q6J("formControl",x.formControl)("formlyAttributes",x.field)},directives:[g.Zp,u.Fj,u.JJ,u.oH,f.VQ],styles:[""],changeDetection:0}),v})(),wrappers:["form-field"]};var a=n(4546),e=n(9139);let d=(()=>{class v{}return v.\u0275fac=function(O){return new(O||v)},v.\u0275mod=p.oAB({type:v}),v.\u0275inj=p.cJS({imports:[[t.ez,u.UX,f.X0.forChild({types:[S]}),e.u,a.U5,g.o7]]}),v})()},7462:(E,C,n)=>{n.d(C,{o:()=>a});var t=n(9808),f=n(8776),p=n(5e3),g=n(1047),u=n(4182);const S={name:"cvc-textarea",component:(()=>{class e extends f.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return e.\u0275fac=function(){let d;return function(y){return(d||(d=p.n5z(e)))(y||e)}}(),e.\u0275cmp=p.Xpm({type:e,selectors:[["cvc-textarea-base-type"]],features:[p.qOj],decls:1,vars:3,consts:[["nz-input","",3,"nzAutosize","formControl","formlyAttributes"]],template:function(v,y){1&v&&p._UZ(0,"textarea",0),2&v&&p.Q6J("nzAutosize",y.to.autosize)("formControl",y.formControl)("formlyAttributes",y.field)},directives:[g.Zp,g.rh,u.Fj,u.JJ,u.oH,f.VQ],styles:[""],changeDetection:0}),e})(),wrappers:["form-field"]};let a=(()=>{class e{}return e.\u0275fac=function(v){return new(v||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({imports:[[t.ez,u.u5,u.UX,f.X0.forChild({types:[S]}),g.o7]]}),e})()},6738:(E,C,n)=>{function t(a){let e={value:void 0,unset:void 0};return a&&a.trim().length>0?e.value=a.trim():e.unset=!0,e}function f(a){let e={value:void 0,unset:void 0};return void 0!==a?e.value=a:e.unset=!0,e}function p(a){let e,d;return a&&a.includes("N/A")?(a=void 0,d=void 0,e=!0):a||(a=void 0,e=void 0,d=!0),{ids:a?a.map(v=>+v):void 0,noneFound:d,notApplicable:e}}function g(a){return{chromosome:z(a.chromosome),representativeTranscript:z(a.representativeTranscript),start:a.start?+a.start:void 0,stop:a.stop?+a.stop:void 0}}function u(a){let e={value:void 0,unset:void 0};return a?e.value=a:e.unset=!0,e}function z(a){let e;return e=a&&a.length>0?a:void 0,e}n.d(C,{aP:()=>S,Zg:()=>p,_$:()=>g,uP:()=>f,dh:()=>u,xt:()=>t});const S=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},3179:(E,C,n)=>{n.r(C),n.d(C,{GenesReviseModule:()=>Ee});var t=n(9808),f=n(325),p=n(5630),g=n(1945),u=n(647),z=n(373),S=n(1059),a=n(4850),e=n(5e3),d=n(712),v=n(9350),y=n(8992),O=n(1894),x=n(8616),P=n(6949);function D(r,h){1&r&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function N(r,h){1&r&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function G(r,h){if(1&r&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,D,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,N,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&r){const s=h.ngIf,m=e.MAs(14),M=e.oxw();e.xp6(1),e.Q6J("displayName",s.name),e.xp6(5),e.hij(" ",s.name," "),e.xp6(2),e.hij(" ",s.officialName," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,M.isSignedIn$))("ngIfElse",m)}}let L=(()=>{class r{constructor(s,m,M){this.gql=s,this.route=m,this.viewerService=M,this.routeSub=this.route.params.subscribe(b=>{let $=this.gql.watch({geneId:+b.geneId}).valueChanges;this.loading$=$.pipe((0,z.j)("loading"),(0,S.O)(!0)),this.gene$=$.pipe((0,z.j)("data","gene")),this.commentsTotal$=this.gene$.pipe((0,z.j)("comments","totalCount")),this.flagsTotal$=this.gene$.pipe((0,z.j)("flags","totalCount")),this.revisionsTotal$=this.gene$.pipe((0,z.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,a.U)(s=>s.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return r.\u0275fac=function(s){return new(s||r)(e.Y36(d.TNk),e.Y36(f.gz),e.Y36(v.a))},r.\u0275cmp=e.Xpm({type:r,selectors:[["genes-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:gene"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(s,m){1&s&&(e.YNc(0,G,15,7,"ng-container",0),e.ALo(1,"async")),2&s&&e.Q6J("ngIf",e.lcZ(1,1,m.gene$))},directives:[t.O5,y.I,g.$O,g.u9,u.Ls,g.yG,g.u5,f.lC,O.SK,O.t3,x.u],pipes:[t.Ov,P.fM],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{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}"]}),r})();var I=n(8144),U=n(6559),A=n(4182),B=n(4546),c=n(2359),_=n(8776),o=n(1825),i=n(7008),l=n(4375),T=n(6042),R=n(8390),Z=n(3773),w=n(5109),W=n(4623),Y=n(7462),K=n(4889);let j=(()=>{class r{}return r.\u0275fac=function(s){return new(s||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[t.ez,f.Bz,A.UX,w.s,B.U5,c.L,O.Jb,T.sL,_.X0,o.A,i.B,l.R,W.K,R.N,Z.g,Y.o,K.E]]}),r})();var J=n(7484);let X=(()=>{class r{}return r.\u0275fac=function(s){return new(s||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[t.ez,P.WG,J.vh,O.Jb,I.zf,U.H0,g.KJ,j,p.D]]}),r})();var Q=n(8929),F=n(7625),V=n(6738),k=n(591),H=n(5284),q=n(537),ee=n(9169);let te=(()=>{class r{constructor(s,m){this.suggestGeneRevisionGQL=s,this.networkErrorService=m,this.destroy$=new Q.xQ,this.isSubmitting$=new k.X(!1),this.submitSuccess$=new k.X(!1),this.submitError$=new k.X([])}suggest(s){this.storeObj={id:s.id,__typename:(0,H.e)("Gene")},this.isSubmitting$.next(!0),this.suggestGeneRevisionGQL.mutate({input:s},{update:(m,{data:{suggestGeneRevision:M}})=>{m.modify({id:m.identify(this.storeObj),fields:{revisions:(b=[])=>M.gene.revisions}})}}).pipe((0,F.R)(this.destroy$),(0,q.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:m=>{m.graphQLErrors.length>0?this.submitError$.next(m.graphQLErrors.map(M=>M.message)):m.networkError&&this.networkErrorService.networkError$.next(m.networkError)},complete:()=>{this.submitError$.next([]),this.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0)}})}cleanup(){this.submitError$.next([]),this.submitSuccess$.next(!1),this.isSubmitting$.next(!1),this.networkErrorService.networkError$.next(void 0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return r.\u0275fac=function(s){return new(s||r)(e.LFG(d.D9L),e.LFG(ee.Y))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var ne=n(822),oe=n(9180),re=n(8227),se=n(2643),ae=n(1793),ie=n(2683);function le(r,h){if(1&r&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",3),e.qZA()),2&r){const s=e.oxw().ngIf;e.xp6(1),e.Q6J("errors",s)}}function ce(r,h){if(1&r&&(e.ynx(0),e.YNc(1,le,2,1,"nz-form-item",1),e.BQk()),2&r){const s=h.ngIf;e.xp6(1),e.Q6J("ngIf",s.length>0)}}function ge(r,h){1&r&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",7),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4," or suggest another revision below."),e.qZA())}function pe(r,h){if(1&r&&(e.ynx(0),e._UZ(1,"nz-alert",4),e.YNc(2,ge,5,0,"ng-template",5,6,e.W1O),e.BQk()),2&r){const s=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",s)}}function de(r,h){if(1&r){const s=e.EpF();e.TgZ(0,"nz-form-item"),e.TgZ(1,"nz-form-control"),e.TgZ(2,"cvc-form-buttons"),e.TgZ(3,"cvc-org-selector-btn-group",8),e.NdJ("selectedOrgChange",function(M){return e.CHM(s),e.oxw().mostRecentOrg=M}),e.TgZ(4,"button",9),e._uU(5," Suggest Revision "),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&r){const s=e.oxw();e.xp6(3),e.Q6J("selectedOrg",s.mostRecentOrg),e.xp6(1),e.Q6J("disabled",!s.formGroup.valid)}}let ue=(()=>{class r{constructor(s,m,M){this.viewerService=s,this.revisionService=m,this.revisableFieldsGQL=M,this.destroy$=new Q.xQ,this.formGroup=new A.cw({}),this.formOptions={},this.viewerService.viewer$.pipe((0,F.R)(this.destroy$)).subscribe(b=>{this.organizations=b.organizations,this.mostRecentOrg=b.mostRecentOrg}),this.submitError$=this.revisionService.submitError$,this.isSubmitting$=this.revisionService.isSubmitting$,this.submitSuccess$=this.revisionService.submitSuccess$,this.formFields=[{key:"id",type:"input",hide:!0},{key:"fields.description",type:"cvc-textarea",templateOptions:{label:"Description",placeholder:"Enter a description for this gene.",required:!1}},{key:"fields.sources",type:"multi-field",templateOptions:{label:"Sources",addText:"Add another Source"},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}}],this.submitSuccess$.pipe((0,F.R)(this.destroy$)).subscribe(b=>{b&&this.formOptions.resetModel&&this.formOptions.resetModel()})}ngOnInit(){this.revisableFieldsGQL.fetch({geneId:this.geneId}).subscribe(({data:{gene:s}})=>{s?this.formModel=this.toFormModel(s):console.error("Could not retrieve gene."),this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue()})}toFormModel(s){return{id:s.id,fields:Object.assign({},s),comment:""}}selectOrg(s){this.mostRecentOrg=s}submitRevision(s){this.revisionService.suggest(this.toRevisionInput(s))}toRevisionInput(s){return Object.assign(Object.assign({},s),{fields:{description:(0,V.xt)(s.fields.description),sourceIds:s.fields.sources.map(m=>+m.id)},organizationId:void 0===this.mostRecentOrg?void 0:this.mostRecentOrg.id})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.revisionService.cleanup()}}return r.\u0275fac=function(s){return new(s||r)(e.Y36(v.a),e.Y36(te),e.Y36(d.FOU))},r.\u0275cmp=e.Xpm({type:r,selectors:[["cvc-gene-revise-form"]],inputs:{geneId:"geneId"},decls:8,vars:14,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngIf"],[3,"form","fields","model","options","modelChange"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(s,m){1&s&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return m.submitRevision(m.formModel)}),e.YNc(1,ce,2,1,"ng-container",1),e.ALo(2,"async"),e.YNc(3,pe,4,1,"ng-container",1),e.ALo(4,"async"),e.TgZ(5,"formly-form",2),e.NdJ("modelChange",function(b){return m.formModel=b}),e.qZA(),e.YNc(6,de,6,2,"nz-form-item",1),e.ALo(7,"async"),e.qZA()),2&s&&(e.Q6J("formGroup",m.formGroup),e.xp6(1),e.Q6J("ngIf",e.lcZ(2,8,m.submitError$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,10,m.submitSuccess$)),e.xp6(2),e.Q6J("form",m.formGroup)("fields",m.formFields)("model",m.formModel)("options",m.formOptions),e.xp6(1),e.Q6J("ngIf",!e.lcZ(7,12,m.submitSuccess$)))},directives:[A._Y,A.JL,B.Lr,A.sg,t.O5,O.SK,B.Nx,ne.V,c.r,f.yS,_.T7,O.t3,B.Fd,oe.Z,re.q,T.ix,se.dQ,ae.m,ie.w],pipes:[t.Ov],styles:["[_nghost-%COMP%]{display:block}"]}),r})();function me(r,h){if(1&r&&(e.ynx(0),e._UZ(1,"cvc-gene-revise-form",8),e.BQk()),2&r){const s=e.oxw();e.xp6(1),e.Q6J("geneId",s.geneId)}}function fe(r,h){1&r&&e._uU(0,"Loading Gene...")}const he=function(){return{rows:1}};function ve(r,h){1&r&&e._UZ(0,"nz-skeleton",9),2&r&&e.Q6J("nzParagraph",e.DdM(1,he))}const _e=function(){return{rows:3}};function ze(r,h){1&r&&e._UZ(0,"nz-skeleton",9),2&r&&e.Q6J("nzParagraph",e.DdM(1,_e))}const Ce=function(){return{rows:4}};function ye(r,h){1&r&&e._UZ(0,"nz-skeleton",9),2&r&&e.Q6J("nzParagraph",e.DdM(1,Ce))}const Oe=function(){return{rows:5}};function Se(r,h){1&r&&e._UZ(0,"nz-skeleton",9),2&r&&e.Q6J("nzParagraph",e.DdM(1,Oe))}function Te(r,h){1&r&&e._uU(0,"Loading gene...")}const Me=[{path:"",component:L,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class r{constructor(s){this.route=s,this.routeParams$=this.route.params.subscribe(m=>{this.geneId=+m.geneId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return r.\u0275fac=function(s){return new(s||r)(e.Y36(f.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["cvc-genes-suggest"]],decls:14,vars:3,consts:[[3,"nzGutter"],["nzSpan","16"],[4,"ngIf","ngIfElse"],["loadingGene",""],["nzSpan","8"],["nzTitle","Instructions","nz-type","inner"],["nzDirection","vertical",2,"width","100%"],[3,"nzParagraph",4,"nzSpaceItem"],[3,"geneId"],[3,"nzParagraph"]],template:function(s,m){if(1&s&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.YNc(2,me,2,1,"ng-container",2),e.YNc(3,fe,1,0,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(5,"nz-col",4),e.TgZ(6,"nz-card",5),e.TgZ(7,"nz-space",6),e.YNc(8,ve,1,2,"nz-skeleton",7),e.YNc(9,ze,1,2,"nz-skeleton",7),e.YNc(10,ye,1,2,"nz-skeleton",7),e.YNc(11,Se,1,2,"nz-skeleton",7),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.YNc(12,Te,1,0,"ng-template",null,3,e.W1O)),2&s){const M=e.MAs(4);e.Q6J("nzGutter",16),e.xp6(2),e.Q6J("ngIf",m.geneId)("ngIfElse",M)}},directives:[O.SK,O.t3,t.O5,ue,J.bd,I.NU,I.$1,U.ng],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{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}"]}),r})(),data:{breadcrumb:"Suggest Revision"}}]}];let xe=(()=>{class r{}return r.\u0275fac=function(s){return new(s||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[f.Bz.forChild(Me),X]]}),r})();var Pe=n(9386);let Ee=(()=>{class r{}return r.\u0275fac=function(s){return new(s||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[t.ez,xe,f.Bz,p.D,g.KJ,u.PV,P.WG,O.Jb,Pe.a]]}),r})()},6559:(E,C,n)=>{n.d(C,{ng:()=>A,H0:()=>B});var t=n(5e3),f=n(1721),p=n(655),g=n(9808),u=n(226);const S=["nzType","avatar"];function d(c,_){if(1&c&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&c){const o=t.oxw(2);t.xp6(1),t.Q6J("nzSize",o.avatar.size||"default")("nzShape",o.avatar.shape||"circle")}}function v(c,_){if(1&c&&t._UZ(0,"h3",7),2&c){const o=t.oxw(2);t.Udp("width",o.toCSSUnit(o.title.width))}}function y(c,_){if(1&c&&t._UZ(0,"li"),2&c){const o=_.index,i=t.oxw(3);t.Udp("width",i.toCSSUnit(i.widthList[o]))}}function O(c,_){if(1&c&&(t.TgZ(0,"ul",8),t.YNc(1,y,1,2,"li",9),t.qZA()),2&c){const o=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",o.rowsList)}}function x(c,_){if(1&c&&(t.ynx(0),t.YNc(1,d,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,v,1,2,"h3",3),t.YNc(4,O,2,1,"ul",4),t.qZA(),t.BQk()),2&c){const o=t.oxw();t.xp6(1),t.Q6J("ngIf",!!o.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!o.nzTitle),t.xp6(1),t.Q6J("ngIf",!!o.nzParagraph)}}function P(c,_){1&c&&(t.ynx(0),t.Hsn(1),t.BQk())}const D=["*"];let N=(()=>{class c{constructor(){this.nzActive=!1,this.nzBlock=!1}}return c.\u0275fac=function(o){return new(o||c)},c.\u0275dir=t.lG2({type:c,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(o,i){2&o&&t.ekj("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,p.gn)([(0,f.yF)()],c.prototype,"nzBlock",void 0),c})(),L=(()=>{class c{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(o){if(o.nzSize&&"number"==typeof this.nzSize){const i=`${this.nzSize}px`;this.styleMap={width:i,height:i,"line-height":i}}else this.styleMap={}}}return c.\u0275fac=function(o){return new(o||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:S,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(o,i){1&o&&t._UZ(0,"span",0),2&o&&(t.ekj("ant-skeleton-avatar-square","square"===i.nzShape)("ant-skeleton-avatar-circle","circle"===i.nzShape)("ant-skeleton-avatar-lg","large"===i.nzSize)("ant-skeleton-avatar-sm","small"===i.nzSize),t.Q6J("ngStyle",i.styleMap))},directives:[g.PC],encapsulation:2,changeDetection:0}),c})(),A=(()=>{class c{constructor(o,i,l){this.cdr=o,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],i.addClass(l.nativeElement,"ant-skeleton")}toCSSUnit(o=""){return(0,f.WX)(o)}getTitleProps(){const o=!!this.nzAvatar,i=!!this.nzParagraph;let l="";return!o&&i?l="38%":o&&i&&(l="50%"),Object.assign({width:l},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const o=!!this.nzAvatar,i=!!this.nzTitle,l={};return(!o||!i)&&(l.width="61%"),l.rows=!o&&i?3:2,Object.assign(Object.assign({},l),this.getProps(this.nzParagraph))}getProps(o){return o&&"object"==typeof o?o:{}}getWidthList(){const{width:o,rows:i}=this.paragraph;let l=[];return o&&Array.isArray(o)?l=o:o&&!Array.isArray(o)&&(l=[],l[i-1]=o),l}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(o){(o.nzTitle||o.nzAvatar||o.nzParagraph)&&this.updateProps()}}return c.\u0275fac=function(o){return new(o||c)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},c.\u0275cmp=t.Xpm({type:c,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(o,i){2&o&&t.ekj("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",!!i.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:D,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(o,i){1&o&&(t.F$t(),t.YNc(0,x,5,3,"ng-container",0),t.YNc(1,P,2,0,"ng-container",0)),2&o&&(t.Q6J("ngIf",i.nzLoading),t.xp6(1),t.Q6J("ngIf",!i.nzLoading))},directives:[L,g.O5,N,g.sg],encapsulation:2,changeDetection:0}),c})(),B=(()=>{class c{}return c.\u0275fac=function(o){return new(o||c)},c.\u0275mod=t.oAB({type:c}),c.\u0275inj=t.cJS({imports:[[u.vT,g.ez]]}),c})()}}]);
\ No newline at end of file
diff --git a/server/public/3218.9a2a6eae0aa809aa.js b/server/public/3218.9a2a6eae0aa809aa.js
new file mode 100644
index 000000000..73b149b01
--- /dev/null
+++ b/server/public/3218.9a2a6eae0aa809aa.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3218],{5749:(oe,O,a)=>{a.d(O,{m:()=>te});var i=a(5e3),M=a(9808),n=a(325),z=a(8481),J=a(3610),T=a(4850),S=a(712),Z=a(7484),m=a(7881),e=a(1894),b=a(3098),U=a(6550),Q=a(6949);const P=function(u,h){return{displayName:u,profileImagePath:h}};function L(u,h){if(1&u&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&u){const _=i.oxw().ngIf;i.Q6J("user",i.WLB(2,P,_.name,_.profileImagePath)),i.xp6(2),i.Oqu(_.name)}}function Y(u,h){if(1&u&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&u){const _=h.ngIf;i.xp6(1),i.Oqu(_)}}function F(u,h){if(1&u&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&u){const _=i.oxw().ngIf;i.xp6(1),i.Q6J("href",_.url),i.xp6(1),i.hij(" ",_.name," ")}}function G(u,h){if(1&u&&(i.ynx(0),i.TgZ(1,"nz-card",4),i.YNc(2,L,3,5,"ng-template",null,5,i.W1O),i.TgZ(4,"nz-row"),i.TgZ(5,"nz-col",6),i.TgZ(6,"div",7),i.TgZ(7,"p",8),i.YNc(8,Y,2,1,"span",9),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"nz-descriptions",10),i.TgZ(10,"nz-descriptions-item",11),i.YNc(11,F,3,2,"ng-container",9),i.qZA(),i.qZA(),i.qZA(),i.BQk()),2&u){const _=h.ngIf,y=i.MAs(3);i.oxw();const A=i.MAs(4),W=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",y),i.xp6(7),i.Q6J("ngIf",_.description)("ngIfElse",A),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",_.url)("ngIfElse",W)}}function X(u,h){1&u&&i._uU(0," Organization has not provided a description.\n")}function D(u,h){1&u&&i._uU(0," --\n")}let v=(()=>{class u{constructor(_){this.gql=_}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,T.U)(({data:_})=>_.organization))}}return u.\u0275fac=function(_){return new(_||u)(i.Y36(S.X5f))},u.\u0275cmp=i.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(_,y){1&_&&(i.TgZ(0,"div",0),i.YNc(1,G,12,6,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA(),i.YNc(3,X,1,0,"ng-template",null,2,i.W1O),i.YNc(5,D,1,0,"ng-template",null,3,i.W1O)),2&_&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,y.org$)))},directives:[M.O5,Z.bd,m.L,e.SK,e.t3,b.R7,b.uj,U.l],pipes:[Q.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})();var k=a(647);function w(u,h){}function $(u,h){if(1&u&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,w,0,0,"ng-template",6),i.qZA(),i.BQk()),2&u){const _=i.oxw(),y=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",_.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",y)}}function R(u,h){}function B(u,h){if(1&u&&i._UZ(0,"cvc-organization-popover",10),2&u){const _=i.oxw(3);i.Q6J("orgId",_.org.id)}}function j(u,h){if(1&u&&i.YNc(0,B,1,1,"cvc-organization-popover",9),2&u){const _=i.oxw(2);i.Q6J("ngIf",_.enablePopover)}}function K(u,h){if(1&u&&(i.TgZ(0,"nz-tag",7),i.YNc(1,R,0,0,"ng-template",6),i.qZA(),i.YNc(2,j,1,1,"ng-template",null,8,i.W1O)),2&u){const _=i.MAs(3);i.oxw();const y=i.MAs(8);i.Q6J("nzPopoverContent",_),i.xp6(1),i.Q6J("ngTemplateOutlet",y)}}function q(u,h){}function ee(u,h){if(1&u&&(i.TgZ(0,"nz-tag"),i.YNc(1,q,0,0,"ng-template",6),i.qZA()),2&u){i.oxw();const _=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",_)}}function ne(u,h){}function H(u,h){if(1&u&&i.YNc(0,ne,0,0,"ng-template",6),2&u){i.oxw();const _=i.MAs(2);i.Q6J("ngTemplateOutlet",_)}}function C(u,h){if(1&u&&(i._UZ(0,"i",11),i._uU(1)),2&u){const _=i.oxw();i.xp6(1),i.hij(" ",_.org.name,"\n")}}let te=(()=>{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(_){return new(_||u)},u.\u0275cmp=i.Xpm({type:u,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["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(_,y){if(1&_&&(i.YNc(0,$,3,2,"ng-container",0),i.YNc(1,K,4,2,"ng-template",null,1,i.W1O),i.YNc(3,ee,2,1,"ng-template",null,2,i.W1O),i.YNc(5,H,1,1,"ng-template",null,3,i.W1O),i.YNc(7,C,2,1,"ng-template",null,4,i.W1O)),2&_){const A=i.MAs(6);i.Q6J("ngIf",y.linked)("ngIfElse",A)}},directives:[M.O5,n.yS,M.tP,z.j,J.lU,v,k.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),u})()},9058:(oe,O,a)=>{a.d(O,{j:()=>n});var i=a(712),M=a(5e3);let n=(()=>{class z{transform(T){switch(T){case"ASSERTION":case"Assertion":case i.o71.Assertion:return"civic:assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case i.o71.EvidenceItem:return"civic:evidence";case"GENE":case"Gene":case i.o71.Gene:return"civic:gene";case i.o71.Revision:case"REVISION":case"Revision":return"civic:revision";case i.o71.Variant:case"VARIANT":case"Variant":return"civic:variant";case i.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGrou":return"civic:variant-group";default:return console.log("String No icon name found for "+T),"border-outer"}}}return z.\u0275fac=function(T){return new(T||z)},z.\u0275pipe=M.Yjl({name:"iconNameForSubscribableEntity",type:z,pure:!0}),z})()},6738:(oe,O,a)=>{function i(m){let e={value:void 0,unset:void 0};return m&&m.trim().length>0?e.value=m.trim():e.unset=!0,e}function M(m){let e={value:void 0,unset:void 0};return void 0!==m?e.value=m:e.unset=!0,e}a.d(O,{aP:()=>Z,li:()=>n,Zg:()=>z,_$:()=>J,uP:()=>M,dh:()=>T,xt:()=>i});var n=(()=>{return(m=n||(n={}))[m.NotApplicable=0]="NotApplicable",m[m.NoneFound=1]="NoneFound",m[m.Found=2]="Found",n;var m})();function z(m,e){let b,U,Q;return e==n.Found?(b=void 0,U=void 0,Q=m):e==n.NoneFound?(U=!0,b=void 0,Q=void 0):(b=!0,U=void 0,Q=void 0),{ids:Q?Q.map(P=>+P):void 0,noneFound:U,notApplicable:b}}function J(m){return m?{chromosome:S(m.chromosome),representativeTranscript:S(m.representativeTranscript),start:m.start?+m.start:void 0,stop:m.stop?+m.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function T(m){let e={value:void 0,unset:void 0};return m?e.value=m:e.unset=!0,e}function S(m){let e;return e=m&&m.length>0?m:void 0,e}const Z=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7600:(oe,O,a)=>{a.r(O),a.d(O,{UsersDetailModule:()=>Sn});var i=a(9808),M=a(5630),n=a(1945),z=a(325),J=a(8762),T=a(8144),S=a(5473),Z=a(6042),m=a(647),e=a(5e3);let b=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,Z.sL,m.PV]]}),o})();var U=a(3098),Q=a(9476),P=a(1894),L=a(9444),Y=a(6949),F=a(7484),G=a(5249),X=a(5737),D=a(3640),v=a(4182),k=a(2359),w=a(4546),$=a(7008),R=a(3868),B=a(7525),j=a(8054);let K=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,v.u5,w.U5,v.UX,Y.WG,F.vh,k.L,R.aF,Z.sL,B.j,j.LV,$.B]]}),o})();var q=a(330),ee=a(5013),ne=a(3756);let H=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-assertions-table",0),2&t&&e.Q6J("userId",r.userId)},directives:[ne.x],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var C=a(712),te=a(2011);let u=(()=>{class o{constructor(t){this.route=t,this.mode=C.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(t,r){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("userId",r.userId)("mode",r.mode)},directives:[te.o],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var h=a(8965);let _=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-evidence-table",0),2&t&&e.Q6J("userId",r.userId)},directives:[h.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var y=a(6123),A=a(4850),W=a(1059),ie=a(9169),V=a(2683),ae=a(2643),ge=a(8747),ue=a(6114),se=a(2712),de=a(2347),_e=a(404),me=a(2937),fe=a(9058);function he(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",t.iconName),e.xp6(1),e.hij(" ",t.displayName," ")}}function ze(o,l){1&o&&(e._uU(0),e.ALo(1,"eventVerbiage")),2&o&&e.hij(" ",e.xi3(1,1,l.$implicit.id,"action-filter")," ")}function De(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e.ALo(2,"iconNameForSubscribableEntity"),e._uU(3),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",e.lcZ(2,3,t.subjectWithCount.subject.__typename)),e.xp6(2),e.AsE(" ",t.subjectWithCount.subject.name," (",t.subjectWithCount.occuranceCount,") ")}}function Re(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.hij(" ",t.displayName," ")}}function Ce(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function ve(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkMarkRead()}),e._UZ(1,"i",19),e._uU(2,"Mark as read "),e.qZA(),e.TgZ(3,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkMarkUnread()}),e._UZ(4,"i",19),e._uU(5,"Mark as unread "),e.qZA(),e.TgZ(6,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkUnsubscribe()}),e._UZ(7,"i",20),e._uU(8,"Unsubscribe "),e.qZA(),e._uU(9," Check all "),e.TgZ(10,"label",21),e.NdJ("ngModelChange",function(c){return e.CHM(t),e.oxw(2).allChecked=c})("nzCheckedChange",function(c){return e.CHM(t),e.oxw(2).onCheckAllCheckBoxClicked(c)}),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(3),e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(3),e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(4),e.Q6J("ngModel",t.allChecked)("nzIndeterminate",t.someChecked)}}function Te(o,l){if(1&o&&e._UZ(0,"i",32),2&o){const t=e.oxw().$implicit;e.Q6J("nzType","SUBSCRIPTION"===t.key.type?"book":"notification")("nzTheme",t.key.seen?"outline":"twotone")}}function xe(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",33),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).markAsUnread(c.key.id)}),e._UZ(2,"i",34),e.qZA(),e.BQk()}}function Ze(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"button",35),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).markAsRead(c.key.id)}),e._UZ(1,"i",19),e.qZA()}}function be(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",36),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).unsubscribe(c.key.subscription.subscribable.id,c.key.subscription.subscribable.__typename)}),e._UZ(2,"i",20),e.qZA(),e.BQk()}if(2&o){const t=e.oxw().$implicit;e.xp6(1),e.MGl("nzTooltipTitle","You received this notification because you are subscribed to ",t.key.subscription.subscribable.name,". Click to unsubscribe.")}}function re(o,l){1&o&&(e.TgZ(0,"button",37),e._UZ(1,"i",20),e.qZA())}function Ue(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-timeline-item",23),e.YNc(2,Te,1,2,"ng-template",null,24,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",25),e._UZ(6,"cvc-event-timeline-item",26),e.qZA(),e.TgZ(7,"nz-col",27),e.YNc(8,xe,3,0,"ng-container",28),e.YNc(9,Ze,2,0,"ng-template",null,29,e.W1O),e.qZA(),e.TgZ(11,"nz-col",27),e.YNc(12,be,3,1,"ng-container",28),e.YNc(13,re,2,0,"ng-template",null,30,e.W1O),e.TgZ(15,"label",31),e.NdJ("ngModelChange",function(c){return e.CHM(t).$implicit.value.checked=c})("nzCheckedChange",function(c){const x=e.CHM(t).$implicit;return e.oxw(3).onNotificationCheckBoxClicked(x.key.id,c)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&o){const t=l.$implicit,r=e.MAs(3),c=e.MAs(10),g=e.MAs(14);e.xp6(1),e.Q6J("nzDot",r)("nzColor",t.key.seen?"gray":"blue"),e.xp6(5),e.Q6J("event",t.key.event),e.xp6(2),e.Q6J("ngIf",t.key.seen)("ngIfElse",c),e.xp6(4),e.Q6J("ngIf",t.key.subscription)("ngIfElse",g),e.xp6(3),e.Q6J("ngModel",t.value.checked)}}function ye(o,l){if(1&o&&(e.TgZ(0,"nz-timeline"),e.YNc(1,Ue,16,8,"ng-container",22),e.ALo(2,"keyvalue"),e.qZA()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,t))}}function Me(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",39),e.TgZ(1,"button",40),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().ngIf;return e.oxw(2).fetchMore(c.endCursor)}),e._uU(2,"Load More "),e.qZA(),e.qZA()}}function Ae(o,l){if(1&o&&(e.ynx(0),e.YNc(1,Me,3,0,"div",38),e.BQk()),2&o){const t=l.ngIf;e.xp6(1),e.Q6J("ngIf",t.hasNextPage)}}function Ne(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-row",2),e.TgZ(2,"nz-col",3),e.TgZ(3,"nz-row"),e.TgZ(4,"nz-button-group",4),e.TgZ(5,"button",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().setIncludeRead(!1)}),e._uU(6,"Unread"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().setIncludeRead(!0)}),e._uU(8,"All"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"nz-row"),e.TgZ(10,"nz-col",6),e.TgZ(11,"cvc-participant-list",7),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onNotificationReasonSelected(c)}),e.YNc(12,he,3,2,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(14,"cvc-participant-list",9),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onActionSelected(c)}),e.ALo(15,"ngrxPush"),e.YNc(16,ze,2,4,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(18,"cvc-participant-list",10),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onNotificationSubjectSelected(c)}),e.ALo(19,"ngrxPush"),e.YNc(20,De,4,5,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(22,"cvc-participant-list",11),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onOriginatingUserSelected(c)}),e.ALo(23,"ngrxPush"),e.YNc(24,Re,2,1,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(26,"cvc-participant-list",12),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onOrganizationSelected(c)}),e.ALo(27,"ngrxPush"),e.YNc(28,Ce,2,1,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"nz-col",13),e.TgZ(31,"nz-card",14),e.YNc(32,ve,11,5,"ng-template",null,15,e.W1O),e.TgZ(34,"nz-row",2),e.TgZ(35,"nz-col",16),e.YNc(36,ye,3,3,"nz-timeline",1),e.YNc(37,Ae,2,1,"ng-container",1),e.ALo(38,"ngrxPush"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&o){const t=l.ngIf,r=e.MAs(33),c=e.oxw();e.xp6(1),e.Q6J("nzGutter",25),e.xp6(4),e.Q6J("nzType",c.includeReadInput?"default":"primary"),e.xp6(2),e.Q6J("nzType",c.includeReadInput?"primary":"default"),e.xp6(4),e.Q6J("participantList",c.notificationTypes),e.xp6(3),e.Q6J("participantList",e.lcZ(15,12,c.actions$)),e.xp6(4),e.Q6J("participantList",e.lcZ(19,14,c.notificationSubjects$)),e.xp6(4),e.Q6J("participantList",e.lcZ(23,16,c.originatingUsers$)),e.xp6(4),e.Q6J("participantList",e.lcZ(27,18,c.organizations$)),e.xp6(5),e.Q6J("nzExtra",r),e.xp6(3),e.Q6J("nzGutter",16),e.xp6(2),e.Q6J("ngIf",t.size>0),e.xp6(1),e.Q6J("ngIf",e.lcZ(38,20,c.pageInfo$))}}let Ie=(()=>{class o{constructor(t,r,c,g,x){this.route=t,this.gql=r,this.networkErrorService=c,this.updateNotificationStatusMuation=g,this.unsubscribeMutation=x,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:C.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:C.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new y.U(c),this.unsubscribeMutator=new y.U(c)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.pageInfo)),this.notificationStateObservable$=this.results$.pipe((0,A.U)(({data:t})=>{let r=new Map;return t.notifications.edges.forEach(c=>{if(c.node){let g={checked:!1};r.set(c.node,g),this.notificationState.set(c.node,g)}}),r})),this.notificationSubjects$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.notificationSubjects.map(r=>{var c,g;return{id:`${null===(c=r.subject)||void 0===c?void 0:c.__typename}:${null===(g=r.subject)||void 0===g?void 0:g.id}`,subjectWithCount:r}}))),this.originatingUsers$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.eventTypes.map(r=>({id:r})))),this.organizations$=this.results$.pipe((0,A.U)(({data:t})=>t.notifications.organizations)),this.isLoading$=this.results$.pipe((0,A.U)(({loading:t})=>t),(0,W.O)(!0))}fetchMore(t){this.queryRef.fetchMore({variables:{after:t}})}setIncludeRead(t){this.includeReadInput=t,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(t){this.queryRef.refetch({notificationReason:t?t.type:void 0})}onNotificationSubjectSelected(t){var r;let c;if(void 0!==t){let g=null===(r=t.subjectWithCount.subject)||void 0===r?void 0:r.__typename;c={id:t.subjectWithCount.subject.id,entityType:C.o71[g]}}this.queryRef.refetch({originatingObject:c})}onOriginatingUserSelected(t){this.queryRef.refetch({originatingUserId:null==t?void 0:t.id})}onActionSelected(t){this.queryRef.refetch({eventType:t?t.id:void 0})}onOrganizationSelected(t){this.queryRef.refetch({organizationId:null==t?void 0:t.id})}markAsRead(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:C.NQC.Read}})}markAsUnread(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:C.NQC.Unread}})}unsubscribe(t,r){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:t,entityType:C.o71[r]}]}})}onNotificationCheckBoxClicked(t,r){let c=Array.from(this.notificationState.keys()).find(g=>g.id===t);if(c){let g=this.notificationState.get(c);g&&(g.checked=r)}r?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(g=>g.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(g=>g.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(g=>!g.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(t){t?this.checkAll():this.uncheckAll()}getCheckedIds(){let t=[];return this.notificationState.forEach((r,c)=>{r.checked&&t.push(c.id)}),t}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,r)=>{t.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,r)=>{t.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:C.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:C.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let t=[];this.notificationState.forEach((r,c)=>{r.checked&&c.subscription&&t.push({id:c.subscription.subscribable.id,entityType:C.o71[c.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:t}}).submitSuccess$.subscribe(r=>{r&&this.queryRef.refetch()}),this.uncheckAll()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz),e.Y36(C.yqR),e.Y36(ie.Y),e.Y36(C.LiH),e.Y36(C.m$d))},o.\u0275cmp=e.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(t,r){1&t&&(e.TgZ(0,"nz-spin",0),e.ALo(1,"ngrxPush"),e.YNc(2,Ne,39,22,"ng-container",1),e.ALo(3,"async"),e.qZA()),2&t&&(e.Q6J("nzSpinning",e.lcZ(1,2,r.isLoading$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,4,r.notificationStateObservable$)))},directives:[B.W,i.O5,P.SK,P.t3,Z.fY,V.w,Z.ix,ae.dQ,ge.l,m.Ls,F.bd,ue.Ie,v.JJ,v.On,se.PD,i.sg,se.Zv,de.t,_e.SY],pipes:[Y.fM,i.Ov,me.R,fe.j,i.Nd],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 Se=a(9814);let Pe=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-source-suggestions-table",0),2&t&&e.Q6J("submitterId",r.userId)},directives:[Se.O],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var ce=a(373),le=a(591),Oe=a(9350),Je=a(8992),Qe=a(7881),pe=a(3618),Ee=a(520);let ke=(()=>{class o{constructor(t){this.http=t,this.uploadComplete=new e.vpe}processProfileImage(t){if(t&&t[0]){let r=new FormData;r.append("image",t[0],t[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",r).subscribe(c=>this.uploadComplete.emit(!0),c=>this.uploadComplete.emit(!1))}}ngOnDestroy(){var t;null===(t=this.uploadSubscription)||void 0===t||t.unsubscribe()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Ee.eN))},o.\u0275cmp=e.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","link",3,"click"]],template:function(t,r){if(1&t){const c=e.EpF();e.TgZ(0,"input",0,1),e.NdJ("change",function(){e.CHM(c);const x=e.MAs(1);return r.processProfileImage(x.files)}),e.qZA(),e.TgZ(2,"button",2),e.NdJ("click",function(){return e.CHM(c),e.MAs(1).click()}),e._uU(3,"Upload Image\n"),e.qZA()}},directives:[Z.ix,V.w],styles:[""]}),o})();var Ye=a(5749),Fe=a(7893),qe=a(2233),E=a(6738),Le=a(8929),s=a(7625),d=a(822);function p(o,l){1&o&&e._UZ(0,"nz-alert",13)}function f(o,l){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",14),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("errors",t.errorMessages)}}function N(o,l){if(1&o&&e._UZ(0,"nz-option",15),2&o){const t=l.$implicit;e.Q6J("nzLabel",t.name)("nzValue",t.id)}}let I=(()=>{class o{constructor(t,r,c){this.updateProfileGql=t,this.profileUpdatedEvent=new e.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Le.xQ,this.updateProfileMutator=new y.U(c),this.countries$=r.fetch().pipe((0,A.U)(({data:g})=>g.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 t={username:this.username,email:this.email,name:(0,E.xt)(this.name),areaOfExpertise:(0,E.uP)(this.areaOfExpertise),orcid:(0,E.xt)(this.orcid),url:(0,E.xt)(this.url),bio:(0,E.xt)(this.bio),countryId:(0,E.uP)(this.countryId),twitterHandle:(0,E.xt)(this.twitterHandle),facebookProfile:(0,E.xt)(this.facebookProfile),linkedinProfile:(0,E.xt)(this.linkedinProfile)},r=this.updateProfileMutator.mutate(this.updateProfileGql,{input:t});r.submitSuccess$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{c&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),r.submitError$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),r.isSubmitting$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}setInitialFormFields(){var t;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=null===(t=this.user.country)||void 0===t?void 0:t.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.wbP),e.Y36(C.l4w),e.Y36(ie.Y))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:56,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"],["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(t,r){1&t&&(e.TgZ(0,"nz-card"),e.YNc(1,p,1,0,"nz-alert",0),e.YNc(2,f,2,1,"nz-form-item",1),e.TgZ(3,"nz-spin",2),e.TgZ(4,"nz-form-item"),e.TgZ(5,"nz-form-label",3),e._uU(6,"Username"),e.qZA(),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(g){return r.username=g}),e.qZA(),e.qZA(),e.TgZ(8,"nz-form-item"),e.TgZ(9,"nz-form-label"),e._uU(10,"Name"),e.qZA(),e.TgZ(11,"input",4),e.NdJ("ngModelChange",function(g){return r.name=g}),e.qZA(),e.qZA(),e.TgZ(12,"nz-form-item"),e.TgZ(13,"nz-form-label",3),e._uU(14,"Email"),e.qZA(),e.TgZ(15,"input",4),e.NdJ("ngModelChange",function(g){return r.email=g}),e.qZA(),e.qZA(),e.TgZ(16,"nz-form-item"),e.TgZ(17,"nz-form-label"),e._uU(18,"User Bio"),e.qZA(),e.TgZ(19,"textarea",5),e.NdJ("ngModelChange",function(g){return r.bio=g}),e.qZA(),e.qZA(),e.TgZ(20,"nz-form-item"),e.TgZ(21,"nz-form-label"),e._uU(22,"Country"),e.qZA(),e.TgZ(23,"nz-select",6),e.NdJ("ngModelChange",function(g){return r.countryId=g}),e.YNc(24,N,1,2,"nz-option",7),e.ALo(25,"ngrxPush"),e.qZA(),e.qZA(),e.TgZ(26,"nz-form-item"),e.TgZ(27,"nz-form-label"),e._uU(28,"Area of Expertise"),e.qZA(),e.TgZ(29,"nz-select",8),e.NdJ("ngModelChange",function(g){return r.areaOfExpertise=g}),e._UZ(30,"nz-option",9),e._UZ(31,"nz-option",10),e._UZ(32,"nz-option",11),e.qZA(),e.qZA(),e.TgZ(33,"nz-form-item"),e.TgZ(34,"nz-form-label"),e._uU(35,"ORCID Identifier"),e.qZA(),e.TgZ(36,"input",4),e.NdJ("ngModelChange",function(g){return r.orcid=g}),e.qZA(),e.qZA(),e.TgZ(37,"nz-form-item"),e.TgZ(38,"nz-form-label"),e._uU(39,"Personal Website"),e.qZA(),e.TgZ(40,"input",4),e.NdJ("ngModelChange",function(g){return r.url=g}),e.qZA(),e.qZA(),e.TgZ(41,"nz-form-item"),e.TgZ(42,"nz-form-label"),e._uU(43,"Twitter Handle"),e.qZA(),e.TgZ(44,"input",4),e.NdJ("ngModelChange",function(g){return r.twitterHandle=g}),e.qZA(),e.qZA(),e.TgZ(45,"nz-form-item"),e.TgZ(46,"nz-form-label"),e._uU(47,"Facebook Profile"),e.qZA(),e.TgZ(48,"input",4),e.NdJ("ngModelChange",function(g){return r.facebookProfile=g}),e.qZA(),e.qZA(),e.TgZ(49,"nz-form-item"),e.TgZ(50,"nz-form-label"),e._uU(51,"LinkedIn Profile"),e.qZA(),e.TgZ(52,"input",4),e.NdJ("ngModelChange",function(g){return r.linkedinProfile=g}),e.qZA(),e.qZA(),e.TgZ(53,"nz-form-item"),e.TgZ(54,"button",12),e.NdJ("click",function(){return r.updateProfile()}),e._uU(55," Update Profile "),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",r.success),e.xp6(1),e.Q6J("ngIf",r.errorMessages.length>0),e.xp6(1),e.Q6J("nzSpinning",r.loading),e.xp6(4),e.Q6J("ngModel",r.username),e.xp6(4),e.Q6J("ngModel",r.name),e.xp6(4),e.Q6J("ngModel",r.email),e.xp6(4),e.Q6J("ngModel",r.bio),e.xp6(4),e.Q6J("ngModel",r.countryId),e.xp6(1),e.Q6J("ngForOf",e.lcZ(25,16,r.countries$)),e.xp6(5),e.Q6J("ngModel",r.areaOfExpertise),e.xp6(7),e.Q6J("ngModel",r.orcid),e.xp6(4),e.Q6J("ngModel",r.url),e.xp6(4),e.Q6J("ngModel",r.twitterHandle),e.xp6(4),e.Q6J("ngModel",r.facebookProfile),e.xp6(4),e.Q6J("ngModel",r.linkedinProfile),e.xp6(2),e.Q6J("disabled",r.loading||!r.username||!r.email))},directives:[F.bd,i.O5,k.r,P.SK,w.Nx,d.V,B.W,P.t3,w.iK,v.Fj,v.JJ,v.On,j.Vq,i.sg,j.Ip,Z.ix,ae.dQ,V.w],pipes:[Y.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 $e=a(8785),Be=a(1243);function je(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"nz-alert",35),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(2).uploadError=!1}),e.qZA()}}function He(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(2).updateSuccess=!1}),e.qZA()}}function We(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"cvc-avatar-uploader",37),e.NdJ("uploadComplete",function(c){return e.CHM(t),e.oxw(2).profileUploadComplete(c)}),e.qZA(),e.BQk()}}function Ve(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",40),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://twitter.com/",t.twitterHandle,"",e.LSH)}}function Ge(o,l){1&o&&(e.ynx(0),e.YNc(1,Ve,2,1,"a",38),e.BQk())}function Xe(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",41),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://facebook.com/",t.facebookProfile,"",e.LSH)}}function Ke(o,l){1&o&&(e.ynx(0),e.YNc(1,Xe,2,1,"a",38),e.BQk())}function en(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",42),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://linkedin.com/in/",t.linkedinProfile,"",e.LSH)}}function nn(o,l){1&o&&(e.ynx(0),e.YNc(1,en,2,1,"a",38),e.BQk())}function tn(o,l){if(1&o&&(e.TgZ(0,"a",39),e.TgZ(1,"span"),e._uU(2,"ID"),e.qZA(),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","https://orcid.org/",t.orcid,"",e.LSH)}}function on(o,l){1&o&&(e.ynx(0),e.YNc(1,tn,3,1,"a",38),e.BQk())}function an(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",43),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).updateProfileModalVisible=!0}),e._uU(2," Edit Profile "),e.qZA(),e.BQk()}}function sn(o,l){if(1&o&&(e.YNc(0,an,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&o){const t=e.oxw(2);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function rn(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.ALo(2,"enumToTitle"),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.areaOfExpertise)," ")}}function cn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function ln(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",null==t.country?null:t.country.name," ")}}function pn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function gn(o,l){1&o&&e._UZ(0,"cvc-organization-tag",46),2&o&&e.Q6J("org",l.$implicit)}function un(o,l){if(1&o&&(e.ynx(0),e.YNc(1,gn,1,1,"cvc-organization-tag",45),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.organizations)}}function dn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"User is not a member of any Organizations."),e.qZA(),e.qZA(),e.BQk())}function _n(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",t.bio," ")}}function mn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"User has not provided a bio."),e.qZA(),e.qZA(),e.BQk())}function fn(o,l){1&o&&e._uU(0," Editor Conflict of Interest Statement ")}function hn(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",50),e.NdJ("click",function(){return e.CHM(t),e.oxw(4).updateCoiModalVisible=!0}),e._uU(2," Update COI "),e.qZA(),e.BQk()}}function zn(o,l){if(1&o&&(e.YNc(0,hn,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&o){const t=e.oxw(3);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function Cn(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(3).ngIf;e.xp6(1),e.hij(" ",t.mostRecentConflictOfInterestStatement.coiStatement," ")}}function vn(o,l){1&o&&e._uU(0," I do not have any potential conflicts of interest. ")}function Tn(o,l){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2),e.ALo(3,"enumToTitle"),e.qZA(),e.TgZ(4,"nz-descriptions-item",52),e._uU(5),e.ALo(6,"date"),e.qZA(),e.TgZ(7,"nz-descriptions-item",53),e._uU(8),e.ALo(9,"date"),e.qZA(),e.TgZ(10,"nz-descriptions-item",54),e.YNc(11,Cn,2,1,"ng-container",55),e.YNc(12,vn,1,0,"ng-template",null,56,e.W1O),e.qZA(),e.BQk()),2&o){const t=e.MAs(13),r=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(3,9,r.mostRecentConflictOfInterestStatement.coiStatus)," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(6,11,r.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(9,14,r.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",3),e.xp6(1),e.Q6J("ngIf",r.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",t)}}function xn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2,"None on file."),e.qZA(),e.BQk()),2&o&&(e.xp6(1),e.Q6J("nzSpan",3))}function Zn(o,l){if(1&o&&(e.TgZ(0,"nz-descriptions",47),e.YNc(1,fn,1,0,"ng-template",null,48,e.W1O),e.YNc(3,zn,2,3,"ng-template",null,49,e.W1O),e.YNc(5,Tn,14,17,"ng-container",0),e.YNc(6,xn,3,1,"ng-container",0),e.qZA()),2&o){const t=e.MAs(2),r=e.MAs(4),c=e.oxw().ngIf;e.Q6J("nzTitle",t)("nzExtra",r)("nzColumn",3),e.xp6(5),e.Q6J("ngIf",c.mostRecentConflictOfInterestStatement),e.xp6(1),e.Q6J("ngIf",!c.mostRecentConflictOfInterestStatement)}}function bn(o,l){1&o&&(e.TgZ(0,"span"),e._uU(1,"Edit Profile"),e.qZA())}function Un(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"cvc-user-profile-form",57),e.NdJ("profileUpdatedEvent",function(){return e.CHM(t),e.oxw(2).profileUpdated()}),e.qZA()}if(2&o){const t=e.oxw().ngIf;e.Q6J("user",t)}}function yn(o,l){if(1&o){const t=e.EpF();e.ynx(0),e._UZ(1,"cvc-section-navigation",4),e.TgZ(2,"nz-page-header",5),e.TgZ(3,"nz-page-header-content"),e.YNc(4,je,1,0,"nz-alert",6),e.YNc(5,He,1,0,"nz-alert",7),e.TgZ(6,"div",8),e.TgZ(7,"nz-row",9),e.TgZ(8,"nz-col",10),e.TgZ(9,"div",11),e._UZ(10,"cvc-user-avatar",12),e.qZA(),e.TgZ(11,"div",13),e.TgZ(12,"span",14),e.TgZ(13,"strong"),e._uU(14),e.qZA(),e.qZA(),e.YNc(15,We,2,0,"ng-container",0),e.ALo(16,"ngrxPush"),e.qZA(),e.TgZ(17,"div",15),e.TgZ(18,"nz-space",16),e.YNc(19,Ge,2,0,"ng-container",0),e.YNc(20,Ke,2,0,"ng-container",0),e.YNc(21,nn,2,0,"ng-container",0),e.YNc(22,on,2,0,"ng-container",0),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"nz-col",10),e.TgZ(24,"nz-card",17),e.YNc(25,sn,2,3,"ng-template",null,18,e.W1O),e.TgZ(27,"nz-descriptions",19),e.TgZ(28,"nz-descriptions-item",20),e._uU(29),e.qZA(),e.TgZ(30,"nz-descriptions-item",21),e._uU(31),e.qZA(),e.TgZ(32,"nz-descriptions-item",22),e._uU(33),e.ALo(34,"enumToTitle"),e.qZA(),e.TgZ(35,"nz-descriptions-item",23),e.YNc(36,rn,3,3,"ng-container",0),e.YNc(37,cn,4,0,"ng-container",0),e.qZA(),e.TgZ(38,"nz-descriptions-item",24),e.YNc(39,ln,2,1,"ng-container",0),e.YNc(40,pn,4,0,"ng-container",0),e.qZA(),e.TgZ(41,"nz-descriptions-item",25),e.YNc(42,un,2,1,"ng-container",0),e.YNc(43,dn,4,0,"ng-container",0),e.qZA(),e.qZA(),e.TgZ(44,"nz-descriptions",26),e.TgZ(45,"nz-descriptions-item",27),e.YNc(46,_n,2,1,"ng-container",0),e.YNc(47,mn,4,0,"ng-container",0),e.qZA(),e.qZA(),e.YNc(48,Zn,7,5,"nz-descriptions",28),e.qZA(),e.qZA(),e.TgZ(49,"nz-col",10),e.TgZ(50,"nz-card",29),e._UZ(51,"cvc-stats-card",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(52,"cvc-tab-navigation",31),e.ALo(53,"ngrxPush"),e.TgZ(54,"div",32),e._UZ(55,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"nz-modal",1),e.NdJ("nzVisibleChange",function(c){return e.CHM(t),e.oxw().updateProfileModalVisible=c})("nzOnCancel",function(){return e.CHM(t),e.oxw().handleProfileModalCancel()}),e.YNc(57,bn,2,0,"ng-template",null,33,e.W1O),e.YNc(59,Un,1,1,"ng-template",null,34,e.W1O),e.qZA(),e.BQk()}if(2&o){const t=l.ngIf,r=e.MAs(26),c=e.MAs(58),g=e.MAs(60),x=e.oxw();e.xp6(1),e.Q6J("displayName",t.displayName),e.xp6(3),e.Q6J("ngIf",x.uploadError),e.xp6(1),e.Q6J("ngIf",x.updateSuccess),e.xp6(2),e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzSpan",3),e.xp6(2),e.Q6J("user",t)("size",128),e.xp6(4),e.Oqu(t.name),e.xp6(1),e.Q6J("ngIf",e.lcZ(16,42,x.ownProfile$)),e.xp6(4),e.Q6J("ngIf",t.twitterHandle),e.xp6(1),e.Q6J("ngIf",t.facebookProfile),e.xp6(1),e.Q6J("ngIf",t.linkedinProfile),e.xp6(1),e.Q6J("ngIf",t.orcid),e.xp6(1),e.Q6J("nzSpan",13),e.xp6(1),e.Q6J("nzExtra",r),e.xp6(3),e.Q6J("nzColumn",7),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.hij(" ",t.name," "),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.hij(" ",t.username," "),e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(34,44,t.role)," "),e.xp6(2),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",t.areaOfExpertise),e.xp6(1),e.Q6J("ngIf",!t.areaOfExpertise),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",t.country),e.xp6(1),e.Q6J("ngIf",!t.country),e.xp6(1),e.Q6J("nzSpan",5),e.xp6(1),e.Q6J("ngIf",t.organizations.length>0),e.xp6(1),e.Q6J("ngIf",0===t.organizations.length),e.xp6(2),e.Q6J("nzSpan",4),e.xp6(1),e.Q6J("ngIf",t.bio),e.xp6(1),e.Q6J("ngIf",!t.bio),e.xp6(1),e.Q6J("ngIf","EDITOR"===t.role||"ADMIN"===t.role),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(2),e.Q6J("stats",t.statsHash),e.xp6(1),e.Q6J("tabs",e.lcZ(53,46,x.tabs$)),e.xp6(4),e.Q6J("nzVisible",x.updateProfileModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}}function Mn(o,l){1&o&&(e.TgZ(0,"span"),e._uU(1,"Update your Conflict of Interest Statement"),e.qZA())}function An(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"cvc-user-coi-form",58),e.NdJ("coiUpdatedEvent",function(){return e.CHM(t),e.oxw().coiUpdated()}),e.qZA()}}const Nn=[{path:"",component:(()=>{class o{constructor(t,r,c){this.gql=t,this.viewerService=r,this.route=c,this.ownProfile$=new le.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 le.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(g=>{this.queryRef=this.gql.watch({userId:+g.userId});let x=this.queryRef.valueChanges;this.loading$=x.pipe((0,ce.j)("loading"),(0,W.O)(!0)),this.user$=x.pipe((0,ce.j)("data","user")),this.viewerSub=this.viewerService.viewer$.subscribe(we=>{we.id===+g.userId&&(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0))})})}ngOnDestroy(){var t;this.routeSub.unsubscribe(),null===(t=this.viewerSub)||void 0===t||t.unsubscribe()}profileUploadComplete(t){var r;t?(null===(r=this.queryRef)||void 0===r||r.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){var t;this.updateCoiModalVisible=!1,null===(t=this.queryRef)||void 0===t||t.refetch()}profileUpdated(){var t;this.updateProfileModalVisible=!1,null===(t=this.queryRef)||void 0===t||t.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.sLD),e.Y36(Oe.a),e.Y36(z.gz))},o.\u0275cmp=e.Xpm({type:o,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"],["nzType","error","nzCloseable","","nzMessage","There was an error updating your profile image.",3,"nzOnClose",4,"ngIf"],["nzType","success","nzCloseable","","nzMessage","Profile image successfully updated.",3,"nzOnClose",4,"ngIf"],[1,"profile-content"],[3,"nzGutter"],[3,"nzSpan"],[1,"user-avatar"],[3,"user","size"],[1,"user-name"],["nz-typography",""],[1,"user-socials"],["nzAlign","center"],["nzTitle","Profile","nzSize","small",1,"user-profile",3,"nzExtra"],["updateProfile",""],["nzBordered","","nzLayout","vertical","nzSize","small",3,"nzColumn"],["nzTitle","Name",3,"nzSpan"],["nzTitle","User Name",3,"nzSpan"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],["nzTitle","Organizations",3,"nzSpan"],["nzBordered","","nzLayout","vertical","nzSize","small",1,"user-bio"],["nzTitle","Bio",3,"nzSpan"],["nzBordered","","class","user-coi","nzSize","small",3,"nzTitle","nzExtra","nzColumn",4,"ngIf"],["nzSize","small","nzTitle","Curation Stats"],["header","User Statistics",3,"stats"],[3,"tabs"],[1,"content"],["profileModalTitle",""],["profileModalContent",""],["nzType","error","nzCloseable","","nzMessage","There was an error updating your profile image.",3,"nzOnClose"],["nzType","success","nzCloseable","","nzMessage","Profile image successfully updated.",3,"nzOnClose"],[3,"uploadComplete"],["target","_blank",3,"href",4,"nzSpaceItem"],["target","_blank",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-button","","nzSize","small","nzType","link",3,"click"],["nz-typography","","nzType","secondary"],[3,"org",4,"ngFor","ngForOf"],[3,"org"],["nzBordered","","nzSize","small",1,"user-coi",3,"nzTitle","nzExtra","nzColumn"],["coiTitle",""],["updateCoi",""],["nz-button","","nzType","link","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noStatement",""],[3,"user","profileUpdatedEvent"],[3,"coiUpdatedEvent"]],template:function(t,r){if(1&t&&(e.YNc(0,yn,61,48,"ng-container",0),e.ALo(1,"ngrxPush"),e.TgZ(2,"nz-modal",1),e.NdJ("nzVisibleChange",function(g){return r.updateCoiModalVisible=g})("nzOnCancel",function(){return r.handleCoiModalCancel()}),e.YNc(3,Mn,2,0,"ng-template",null,2,e.W1O),e.YNc(5,An,1,0,"ng-template",null,3,e.W1O),e.qZA()),2&t){const c=e.MAs(4),g=e.MAs(6);e.Q6J("ngIf",e.lcZ(1,5,r.user$)),e.xp6(2),e.Q6J("nzVisible",r.updateCoiModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}},directives:[i.O5,Je.I,n.$O,n.u5,k.r,P.SK,P.t3,Qe.L,pe.ZU,ke,T.NU,T.$1,m.Ls,V.w,F.bd,Z.ix,U.R7,U.uj,i.sg,Ye.m,Fe.z,qe.P,z.lC,D.du,I,$e.t],pipes:[Y.fM,Be.I,i.uU],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{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%] .user-profile .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .user-profile .ant-descriptions-view{border:none}[_nghost-%COMP%] .user-profile nz-descriptions.is-editor .ant-descriptions-view{border-bottom:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-bio .ant-descriptions-view{border-top:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-header{margin:0;padding:0 12px;border-top:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-header .ant-descriptions-title{padding:6px 0;font-weight:400;font-size:12px;font-weight:500}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-view{border-top:1px solid #f0f0f0}[_nghost-%COMP%] .profile-content{margin-top:8px;margin-bottom:16px}[_nghost-%COMP%] .content{margin-bottom:8px}[_nghost-%COMP%] .user-avatar{text-align:center}[_nghost-%COMP%] .user-socials{text-align:center}[_nghost-%COMP%] .user-name{text-align:center;font-size:120%}"]}),o})(),data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:_,data:{breadcrumb:"Evidence"}},{path:"assertions",component:H,data:{breadcrumb:"Assertions"}},{path:"activity",component:u,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Pe,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Ie,data:{breadcrumb:"Notifications"}}]}];let In=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[z.Bz.forChild(Nn)],z.Bz]}),o})(),Sn=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,z.Bz,In,Y.WG,k.L,P.Jb,n.KJ,T.zf,U.q6,F.vh,X.S,D.Qp,G.A2,m.PV,pe.ZJ,Z.sL,q.e,K,L.s,M.D,J.c,S.H,b,Q.L,ee.C]]}),o})()},3218:(oe,O,a)=>{a.r(O),a.d(O,{UsersModule:()=>Le});var i=a(9808),M=a(325),n=a(5e3),z=a(8992),J=a(1945),T=a(1894),S=a(647),Z=a(2683),m=a(3618),e=a(8144),b=a(6042),U=a(712),Q=a(3154),P=a(8929),L=a(373),Y=a(1059),F=a(4850),G=a(2986),X=a(13),D=a(7484),v=a(1132),k=a(404),w=a(2166),$=a(8054),R=a(4182),B=a(125),j=a(6715),K=a(5749),q=a(6949),ee=a(2643),ne=a(1243),H=a(8625);function C(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.BQk()),2&s){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",p.name," ")}}function te(s,d){1&s&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function u(s,d){if(1&s&&(n.TgZ(0,"span"),n._UZ(1,"cvc-organization-tag",25),n.qZA()),2&s){const p=d.$implicit;n.xp6(1),n.Q6J("org",p)}}function h(s,d){if(1&s&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,u,2,1,"span",17),n.qZA(),n.qZA()),2&s){const p=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",p.organizations)}}function _(s,d){1&s&&(n.TgZ(0,"i"),n._uU(1,"--"),n.qZA())}function y(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&s){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,p.mostRecentActionTimestamp)," ")}}function A(s,d){1&s&&n._uU(0," -- ")}function W(s,d){if(1&s&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-user-tag",20),n.qZA(),n.TgZ(3,"td"),n.YNc(4,C,2,1,"ng-container",21),n.YNc(5,te,2,0,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(7,"td"),n.YNc(8,h,3,1,"div",21),n.YNc(9,_,2,0,"ng-template",null,23,n.W1O),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.ALo(13,"enumToTitle"),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.TgZ(16,"td"),n._uU(17),n.qZA(),n.TgZ(18,"td"),n.YNc(19,y,3,3,"ng-container",21),n.YNc(20,A,1,0,"ng-template",null,24,n.W1O),n.qZA(),n.qZA()),2&s){const p=d.$implicit,f=n.MAs(6),N=n.MAs(10),I=n.MAs(21);n.xp6(2),n.Q6J("user",p),n.xp6(2),n.Q6J("ngIf",p.name)("ngIfElse",f),n.xp6(4),n.Q6J("ngIf",p.organizations.length>0)("ngIfElse",N),n.xp6(4),n.hij(" ",n.lcZ(13,10,p.role)," "),n.xp6(3),n.hij(" ",p.statsHash.submittedEvidenceItems," "),n.xp6(2),n.hij(" ",p.statsHash.revisions," "),n.xp6(2),n.Q6J("ngIf",p.mostRecentActionTimestamp)("ngIfElse",I)}}function ie(s,d){if(1&s){const p=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(p);const N=n.oxw(2).ngrxLet;return n.oxw().loadMore(N.endCursor)}),n._uU(1),n.qZA()}if(2&s){const p=n.oxw(3);n.xp6(1),n.hij("Load ",p.initialPageSize," More")}}function V(s,d){if(1&s&&(n.TgZ(0,"tr"),n.TgZ(1,"td",27),n.YNc(2,ie,2,1,"button",28),n.qZA(),n.qZA()),2&s){const p=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",p.hasNextPage)}}function ae(s,d){if(1&s&&(n.ynx(0),n.YNc(1,V,3,1,"tr",26),n.BQk()),2&s){const p=d.ngrxLet;n.xp6(1),n.Q6J("ngIf",p.hasNextPage)}}function ge(s,d){}function ue(s,d){if(1&s&&(n.ynx(0),n.YNc(1,ge,0,0,"ng-template",33),n.BQk()),2&s){const p=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",p.cvcTitleTemplate)}}function se(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.BQk()),2&s){const p=n.oxw(2);n.xp6(1),n.hij(" ",p.cvcTitle," ")}}function de(s,d){if(1&s&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&s){const p=n.oxw().ngIf;n.xp6(1),n.hij(" of ",p," filtered")}}function _e(s,d){if(1&s&&(n.TgZ(0,"span",34),n._uU(1),n.YNc(2,de,2,1,"span",26),n._uU(3,") "),n.qZA()),2&s){const p=d.ngIf,f=n.oxw(2);n.xp6(1),n.AsE(" (",f.totalCount," total, showing ",f.visibleCount,""),n.xp6(1),n.Q6J("ngIf",f.totalCount&&p{class s{constructor(p){this.gql=p,this.debouncedQuery=new P.xQ,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.sortColumns=U.IRu}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:U.IRu.LastAction,direction:U.SrV.Desc}});let p=this.queryRef.valueChanges;this.isLoading$=p.pipe((0,L.j)("loading"),(0,Y.O)(!0)),this.users$=p.pipe((0,L.j)("data","users","edges"),(0,F.U)(f=>f.map(N=>N.node))),this.filteredCount$=p.pipe((0,L.j)("data","users","totalCount")),this.filteredCount$.pipe((0,G.q)(1)).subscribe(f=>this.totalCount=f),this.filteredCount$.subscribe(f=>{ff&&(this.visibleCount=f))}),this.pageInfo$=p.pipe((0,L.j)("data","users","pageInfo")),this.debouncedQuery.pipe((0,X.b)(500)).subscribe(f=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){this.loadedPages=1,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})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(p){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,Q._)(p)})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(p){this.queryRef.fetchMore({variables:{first:this.fetchMorePageSize,after:p}}),this.loadedPages+=1}}return s.\u0275fac=function(p){return new(p||s)(n.Y36(U.tJ6))},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-users-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:40,vars:23,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["userTable",""],[3,"nzSortOrderChange"],["nzWidth","5%"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],[3,"nzColumnKey","nzSortFn"],["nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count"],["nz-icon","","nzType","civic:evidence"],["nzRight","","nz-tooltip","","nzTooltipTitle","Revision Count"],["nz-icon","","nzType","civic:revision"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Orgs",3,"inputModel","onInputChanged","inputModelChange"],["nzAllowClear","","nzPlaceHolder","All",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","ADMIN","nzLabel","ADMIN"],["nzValue","CURATOR","nzLabel","CURATOR"],["nzValue","EDITOR","nzLabel","EDITOR"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"user"],[4,"ngIf","ngIfElse"],["nameElse",""],["orgElse",""],["eventElse",""],[3,"org"],[4,"ngIf"],["colspan","20"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:user"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(p,f){if(1&p&&(n.TgZ(0,"nz-card",0),n.TgZ(1,"nz-table",1,2),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",3),n.NdJ("nzSortOrderChange",function(I){return f.onSortChanged(I)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Username "),n.qZA(),n.TgZ(9,"th",5),n._uU(10," Name "),n.qZA(),n.TgZ(11,"th"),n._uU(12," Organizations "),n.qZA(),n.TgZ(13,"th",6),n._uU(14," Role "),n.qZA(),n.TgZ(15,"th",7),n._UZ(16,"i",8),n.qZA(),n.TgZ(17,"th",9),n._UZ(18,"i",10),n.qZA(),n.TgZ(19,"th",6),n._uU(20," Last Action "),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n._UZ(22,"th"),n.TgZ(23,"th"),n.TgZ(24,"cvc-clearable-input-filter",11),n.NdJ("inputModelChange",function(I){return f.nameInput=I}),n.qZA(),n.qZA(),n.TgZ(25,"th"),n.TgZ(26,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(I){return f.orgNameInput=I}),n.qZA(),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-select",13),n.NdJ("ngModelChange",function(){return f.onModelChanged()})("ngModelChange",function(I){return f.roleInput=I}),n._UZ(29,"nz-option",14),n._UZ(30,"nz-option",15),n._UZ(31,"nz-option",16),n.qZA(),n.qZA(),n._UZ(32,"th"),n._UZ(33,"th"),n._UZ(34,"th"),n.qZA(),n.qZA(),n.TgZ(35,"tbody"),n.YNc(36,W,22,12,"tr",17),n.YNc(37,ae,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(38,fe,7,6,"ng-template",null,19,n.W1O)),2&p){const N=n.MAs(2),I=n.MAs(39);n.Q6J("nzTitle",I),n.xp6(1),n.Q6J("nzData",n.lcZ(3,19,f.users$))("nzLoading",n.lcZ(4,21,f.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",f.sortColumns.Name)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",f.sortColumns.Role)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",f.sortColumns.LastAction)("nzSortFn",!0),n.xp6(5),n.Q6J("inputModel",f.nameInput)("onInputChanged",f.textInputCallback),n.xp6(2),n.Q6J("inputModel",f.orgNameInput)("onInputChanged",f.textInputCallback),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",f.roleInput),n.xp6(8),n.Q6J("ngForOf",N.data),n.xp6(1),n.Q6J("ngrxLet",f.pageInfo$)}},directives:[D.bd,v.N8,v.Om,v.$Z,v.Uo,v._C,v.qD,v.qn,k.SY,S.Ls,Z.w,w.p,$.Vq,R.JJ,R.On,$.Ip,v.p0,i.sg,B.I,i.O5,j.$,K.m,q.eJ,b.ix,ee.dQ,i.tP,m.ZU],pipes:[q.fM,ne.I,H.wr],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),s})();function ze(s,d){1&s&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Contributor Docs "),n.qZA())}const Ce=[{path:"",component:(()=>{class s{constructor(){}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["app-users"]],decls:1,vars:0,template:function(p,f){1&p&&n._UZ(0,"router-outlet")},directives:[M.lC],styles:[""]}),s})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["users-home"]],decls:18,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:user"],["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/users.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["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(p,f){1&p&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0),n.TgZ(2,"nz-page-header-content"),n.TgZ(3,"nz-row",1),n.TgZ(4,"nz-col",2),n._UZ(5,"i",3),n.qZA(),n.TgZ(6,"nz-col",4),n.TgZ(7,"h2"),n._uU(8,"Contributors"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"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.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,ze,3,0,"a",8),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",9),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n._UZ(17,"cvc-users-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&p&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(6),n.Q6J("nzSpan",24))},directives:[z.I,J.$O,J.u5,T.SK,T.t3,S.Ls,Z.w,m.ZU,e.NU,e.$1,b.ix,he],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{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}"]}),s})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,7600)).then(s=>s.UsersDetailModule)}]}]}];let ve=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[M.Bz.forChild(Ce)],M.Bz]}),s})();var Te=a(4125),xe=a(3630),Ze=a(7345),be=a(9476),re=a(9444),Ue=a(7026),ye=a(897);let Me=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,R.u5,q.WG,S.PV,b.sL,k.cg,v.HQ,$.LV,D.vh,m.ZJ,ye.$,Te.k,xe.X,Ze.W,re.s,H.$L.forChild({formatter:{useClass:Ue.x,provide:H.KP}}),be.L]]}),s})();var Ae=a(5630);let Ne=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,J.KJ,S.PV,T.Jb,b.sL,e.zf,m.ZJ,Ae.D,Me]]}),s})();var Ie=a(9441);let Se=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,S.PV,Ie.s]]}),s})();var Pe=a(7600),ce=a(4292);let le=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,ce.t]]}),s})();var Oe=a(767);let Je=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,Oe.Q]]}),s})();var Qe=a(2832);let pe=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,Qe.W]]}),s})();var Ee=a(7525),ke=a(1150),Ye=a(6114),Fe=a(2712),qe=a(3212);let E=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,R.u5,q.WG,k.cg,Ee.j,T.Jb,b.sL,D.vh,S.PV,Ye.Wr,Fe.FT,qe.E,re.s,ke.N]]}),s})(),Le=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,M.Bz,q.WG,ve,Ne,Se,Pe.UsersDetailModule,le,Je,pe,E]]}),s})()}}]);
\ No newline at end of file
diff --git a/server/public/3218.c3517fe66324250b.js b/server/public/3218.c3517fe66324250b.js
deleted file mode 100644
index 4c16824a6..000000000
--- a/server/public/3218.c3517fe66324250b.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3218],{5749:(oe,S,a)=>{a.d(S,{m:()=>te});var i=a(5e3),U=a(9808),n=a(325),C=a(8481),O=a(3610),x=a(4850),N=a(712),m=a(7484),h=a(7881),e=a(1894),I=a(3098),Q=a(6550),V=a(6949);const P=function(u,z){return{displayName:u,profileImagePath:z}};function F(u,z){if(1&u&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&u){const _=i.oxw().ngIf;i.Q6J("user",i.WLB(2,P,_.name,_.profileImagePath)),i.xp6(2),i.Oqu(_.name)}}function k(u,z){if(1&u&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&u){const _=z.ngIf;i.xp6(1),i.Oqu(_)}}function Y(u,z){if(1&u&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&u){const _=i.oxw().ngIf;i.xp6(1),i.Q6J("href",_.url),i.xp6(1),i.hij(" ",_.name," ")}}function G(u,z){if(1&u&&(i.ynx(0),i.TgZ(1,"nz-card",4),i.YNc(2,F,3,5,"ng-template",null,5,i.W1O),i.TgZ(4,"nz-row"),i.TgZ(5,"nz-col",6),i.TgZ(6,"div",7),i.TgZ(7,"p",8),i.YNc(8,k,2,1,"span",9),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"nz-descriptions",10),i.TgZ(10,"nz-descriptions-item",11),i.YNc(11,Y,3,2,"ng-container",9),i.qZA(),i.qZA(),i.qZA(),i.BQk()),2&u){const _=z.ngIf,b=i.MAs(3);i.oxw();const y=i.MAs(4),H=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",b),i.xp6(7),i.Q6J("ngIf",_.description)("ngIfElse",y),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",_.url)("ngIfElse",H)}}function X(u,z){1&u&&i._uU(0," Organization has not provided a description.\n")}function L(u,z){1&u&&i._uU(0," --\n")}let T=(()=>{class u{constructor(_){this.gql=_}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,x.U)(({data:_})=>_.organization))}}return u.\u0275fac=function(_){return new(_||u)(i.Y36(N.X5f))},u.\u0275cmp=i.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(_,b){1&_&&(i.TgZ(0,"div",0),i.YNc(1,G,12,6,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA(),i.YNc(3,X,1,0,"ng-template",null,2,i.W1O),i.YNc(5,L,1,0,"ng-template",null,3,i.W1O)),2&_&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,b.org$)))},directives:[U.O5,m.bd,h.L,e.SK,e.t3,I.R7,I.uj,Q.l],pipes:[V.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})();var E=a(647);function R(u,z){}function w(u,z){if(1&u&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,R,0,0,"ng-template",6),i.qZA(),i.BQk()),2&u){const _=i.oxw(),b=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",_.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",b)}}function D(u,z){}function $(u,z){if(1&u&&i._UZ(0,"cvc-organization-popover",10),2&u){const _=i.oxw(3);i.Q6J("orgId",_.org.id)}}function B(u,z){if(1&u&&i.YNc(0,$,1,1,"cvc-organization-popover",9),2&u){const _=i.oxw(2);i.Q6J("ngIf",_.enablePopover)}}function K(u,z){if(1&u&&(i.TgZ(0,"nz-tag",7),i.YNc(1,D,0,0,"ng-template",6),i.qZA(),i.YNc(2,B,1,1,"ng-template",null,8,i.W1O)),2&u){const _=i.MAs(3);i.oxw();const b=i.MAs(8);i.Q6J("nzPopoverContent",_),i.xp6(1),i.Q6J("ngTemplateOutlet",b)}}function q(u,z){}function ee(u,z){if(1&u&&(i.TgZ(0,"nz-tag"),i.YNc(1,q,0,0,"ng-template",6),i.qZA()),2&u){i.oxw();const _=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",_)}}function ne(u,z){}function j(u,z){if(1&u&&i.YNc(0,ne,0,0,"ng-template",6),2&u){i.oxw();const _=i.MAs(2);i.Q6J("ngTemplateOutlet",_)}}function v(u,z){if(1&u&&(i._UZ(0,"i",11),i._uU(1)),2&u){const _=i.oxw();i.xp6(1),i.hij(" ",_.org.name,"\n")}}let te=(()=>{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(_){return new(_||u)},u.\u0275cmp=i.Xpm({type:u,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["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(_,b){if(1&_&&(i.YNc(0,w,3,2,"ng-container",0),i.YNc(1,K,4,2,"ng-template",null,1,i.W1O),i.YNc(3,ee,2,1,"ng-template",null,2,i.W1O),i.YNc(5,j,1,1,"ng-template",null,3,i.W1O),i.YNc(7,v,2,1,"ng-template",null,4,i.W1O)),2&_){const y=i.MAs(6);i.Q6J("ngIf",b.linked)("ngIfElse",y)}},directives:[U.O5,n.yS,U.tP,C.j,O.lU,T,E.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),u})()},9058:(oe,S,a)=>{a.d(S,{j:()=>n});var i=a(712),U=a(5e3);let n=(()=>{class C{transform(x){switch(x){case"ASSERTION":case"Assertion":case i.o71.Assertion:return"civic:assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case i.o71.EvidenceItem:return"civic:evidence";case"GENE":case"Gene":case i.o71.Gene:return"civic:gene";case i.o71.Revision:case"REVISION":case"Revision":return"civic:revision";case i.o71.Variant:case"VARIANT":case"Variant":return"civic:variant";case i.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGrou":return"civic:variant-group";default:return console.log("String No icon name found for "+x),"border-outer"}}}return C.\u0275fac=function(x){return new(x||C)},C.\u0275pipe=U.Yjl({name:"iconNameForSubscribableEntity",type:C,pure:!0}),C})()},6738:(oe,S,a)=>{function i(m){let h={value:void 0,unset:void 0};return m&&m.trim().length>0?h.value=m.trim():h.unset=!0,h}function U(m){let h={value:void 0,unset:void 0};return void 0!==m?h.value=m:h.unset=!0,h}function n(m){let h,e;return m&&m.includes("N/A")?(m=void 0,e=void 0,h=!0):m||(m=void 0,h=void 0,e=!0),{ids:m?m.map(I=>+I):void 0,noneFound:e,notApplicable:h}}function C(m){return{chromosome:x(m.chromosome),representativeTranscript:x(m.representativeTranscript),start:m.start?+m.start:void 0,stop:m.stop?+m.stop:void 0}}function O(m){let h={value:void 0,unset:void 0};return m?h.value=m:h.unset=!0,h}function x(m){let h;return h=m&&m.length>0?m:void 0,h}a.d(S,{aP:()=>N,Zg:()=>n,_$:()=>C,uP:()=>U,dh:()=>O,xt:()=>i});const N=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7600:(oe,S,a)=>{a.r(S),a.d(S,{UsersDetailModule:()=>Sn});var i=a(9808),U=a(5630),n=a(1945),C=a(325),O=a(8762),x=a(8144),N=a(5473),m=a(6042),h=a(647),e=a(5e3);let I=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,m.sL,h.PV]]}),o})();var Q=a(3098),V=a(9476),P=a(1894),F=a(9444),k=a(6949),Y=a(7484),G=a(5249),X=a(5737),L=a(3640),T=a(4182),E=a(2359),R=a(4546),w=a(7008),D=a(3868),$=a(7525),B=a(8054);let K=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,T.u5,R.U5,T.UX,k.WG,Y.vh,E.L,D.aF,m.sL,$.j,B.LV,w.B]]}),o})();var q=a(330),ee=a(5013),ne=a(3756);let j=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-assertions-table",0),2&t&&e.Q6J("userId",r.userId)},directives:[ne.x],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var v=a(712),te=a(2011);let u=(()=>{class o{constructor(t){this.route=t,this.mode=v.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(t,r){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("userId",r.userId)("mode",r.mode)},directives:[te.o],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var z=a(8965);let _=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-evidence-table",0),2&t&&e.Q6J("userId",r.userId)},directives:[z.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var b=a(6123),y=a(4850),H=a(1059),ie=a(9169),W=a(2683),ae=a(2643),ge=a(8747),ue=a(6114),se=a(2712),de=a(2347),_e=a(404),me=a(2937),fe=a(9058);function he(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",t.iconName),e.xp6(1),e.hij(" ",t.displayName," ")}}function ze(o,l){1&o&&(e._uU(0),e.ALo(1,"eventVerbiage")),2&o&&e.hij(" ",e.xi3(1,1,l.$implicit.id,"action-filter")," ")}function De(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e.ALo(2,"iconNameForSubscribableEntity"),e._uU(3),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",e.lcZ(2,3,t.subjectWithCount.subject.__typename)),e.xp6(2),e.AsE(" ",t.subjectWithCount.subject.name," (",t.subjectWithCount.occuranceCount,") ")}}function Re(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.hij(" ",t.displayName," ")}}function Ce(o,l){if(1&o&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&o){const t=l.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function ve(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkMarkRead()}),e._UZ(1,"i",19),e._uU(2,"Mark as read "),e.qZA(),e.TgZ(3,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkMarkUnread()}),e._UZ(4,"i",19),e._uU(5,"Mark as unread "),e.qZA(),e.TgZ(6,"button",18),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).bulkUnsubscribe()}),e._UZ(7,"i",20),e._uU(8,"Unsubscribe "),e.qZA(),e._uU(9," Check all "),e.TgZ(10,"label",21),e.NdJ("ngModelChange",function(c){return e.CHM(t),e.oxw(2).allChecked=c})("nzCheckedChange",function(c){return e.CHM(t),e.oxw(2).onCheckAllCheckBoxClicked(c)}),e.qZA()}if(2&o){const t=e.oxw(2);e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(3),e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(3),e.Q6J("disabled",!t.bulkMarkEnabled),e.xp6(4),e.Q6J("ngModel",t.allChecked)("nzIndeterminate",t.someChecked)}}function Te(o,l){if(1&o&&e._UZ(0,"i",32),2&o){const t=e.oxw().$implicit;e.Q6J("nzType","SUBSCRIPTION"===t.key.type?"book":"notification")("nzTheme",t.key.seen?"outline":"twotone")}}function xe(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",33),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).markAsUnread(c.key.id)}),e._UZ(2,"i",34),e.qZA(),e.BQk()}}function Ze(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"button",35),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).markAsRead(c.key.id)}),e._UZ(1,"i",19),e.qZA()}}function be(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",36),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().$implicit;return e.oxw(3).unsubscribe(c.key.subscription.subscribable.id,c.key.subscription.subscribable.__typename)}),e._UZ(2,"i",20),e.qZA(),e.BQk()}if(2&o){const t=e.oxw().$implicit;e.xp6(1),e.MGl("nzTooltipTitle","You received this notification because you are subscribed to ",t.key.subscription.subscribable.name,". Click to unsubscribe.")}}function re(o,l){1&o&&(e.TgZ(0,"button",37),e._UZ(1,"i",20),e.qZA())}function Ue(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-timeline-item",23),e.YNc(2,Te,1,2,"ng-template",null,24,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",25),e._UZ(6,"cvc-event-timeline-item",26),e.qZA(),e.TgZ(7,"nz-col",27),e.YNc(8,xe,3,0,"ng-container",28),e.YNc(9,Ze,2,0,"ng-template",null,29,e.W1O),e.qZA(),e.TgZ(11,"nz-col",27),e.YNc(12,be,3,1,"ng-container",28),e.YNc(13,re,2,0,"ng-template",null,30,e.W1O),e.TgZ(15,"label",31),e.NdJ("ngModelChange",function(c){return e.CHM(t).$implicit.value.checked=c})("nzCheckedChange",function(c){const Z=e.CHM(t).$implicit;return e.oxw(3).onNotificationCheckBoxClicked(Z.key.id,c)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&o){const t=l.$implicit,r=e.MAs(3),c=e.MAs(10),g=e.MAs(14);e.xp6(1),e.Q6J("nzDot",r)("nzColor",t.key.seen?"gray":"blue"),e.xp6(5),e.Q6J("event",t.key.event),e.xp6(2),e.Q6J("ngIf",t.key.seen)("ngIfElse",c),e.xp6(4),e.Q6J("ngIf",t.key.subscription)("ngIfElse",g),e.xp6(3),e.Q6J("ngModel",t.value.checked)}}function ye(o,l){if(1&o&&(e.TgZ(0,"nz-timeline"),e.YNc(1,Ue,16,8,"ng-container",22),e.ALo(2,"keyvalue"),e.qZA()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,t))}}function Me(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"div",39),e.TgZ(1,"button",40),e.NdJ("click",function(){e.CHM(t);const c=e.oxw().ngIf;return e.oxw(2).fetchMore(c.endCursor)}),e._uU(2,"Load More "),e.qZA(),e.qZA()}}function Ae(o,l){if(1&o&&(e.ynx(0),e.YNc(1,Me,3,0,"div",38),e.BQk()),2&o){const t=l.ngIf;e.xp6(1),e.Q6J("ngIf",t.hasNextPage)}}function Ne(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-row",2),e.TgZ(2,"nz-col",3),e.TgZ(3,"nz-row"),e.TgZ(4,"nz-button-group",4),e.TgZ(5,"button",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().setIncludeRead(!1)}),e._uU(6,"Unread"),e.qZA(),e.TgZ(7,"button",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().setIncludeRead(!0)}),e._uU(8,"All"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"nz-row"),e.TgZ(10,"nz-col",6),e.TgZ(11,"cvc-participant-list",7),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onNotificationReasonSelected(c)}),e.YNc(12,he,3,2,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(14,"cvc-participant-list",9),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onActionSelected(c)}),e.ALo(15,"ngrxPush"),e.YNc(16,ze,2,4,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(18,"cvc-participant-list",10),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onNotificationSubjectSelected(c)}),e.ALo(19,"ngrxPush"),e.YNc(20,De,4,5,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(22,"cvc-participant-list",11),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onOriginatingUserSelected(c)}),e.ALo(23,"ngrxPush"),e.YNc(24,Re,2,1,"ng-template",null,8,e.W1O),e.qZA(),e.TgZ(26,"cvc-participant-list",12),e.NdJ("participantSelectedEvent",function(c){return e.CHM(t),e.oxw().onOrganizationSelected(c)}),e.ALo(27,"ngrxPush"),e.YNc(28,Ce,2,1,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(30,"nz-col",13),e.TgZ(31,"nz-card",14),e.YNc(32,ve,11,5,"ng-template",null,15,e.W1O),e.TgZ(34,"nz-row",2),e.TgZ(35,"nz-col",16),e.YNc(36,ye,3,3,"nz-timeline",1),e.YNc(37,Ae,2,1,"ng-container",1),e.ALo(38,"ngrxPush"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&o){const t=l.ngIf,r=e.MAs(33),c=e.oxw();e.xp6(1),e.Q6J("nzGutter",25),e.xp6(4),e.Q6J("nzType",c.includeReadInput?"default":"primary"),e.xp6(2),e.Q6J("nzType",c.includeReadInput?"primary":"default"),e.xp6(4),e.Q6J("participantList",c.notificationTypes),e.xp6(3),e.Q6J("participantList",e.lcZ(15,12,c.actions$)),e.xp6(4),e.Q6J("participantList",e.lcZ(19,14,c.notificationSubjects$)),e.xp6(4),e.Q6J("participantList",e.lcZ(23,16,c.originatingUsers$)),e.xp6(4),e.Q6J("participantList",e.lcZ(27,18,c.organizations$)),e.xp6(5),e.Q6J("nzExtra",r),e.xp6(3),e.Q6J("nzGutter",16),e.xp6(2),e.Q6J("ngIf",t.size>0),e.xp6(1),e.Q6J("ngIf",e.lcZ(38,20,c.pageInfo$))}}let Ie=(()=>{class o{constructor(t,r,c,g,Z){this.route=t,this.gql=r,this.networkErrorService=c,this.updateNotificationStatusMuation=g,this.unsubscribeMutation=Z,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:v.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:v.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new b.U(c),this.unsubscribeMutator=new b.U(c)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.pageInfo)),this.notificationStateObservable$=this.results$.pipe((0,y.U)(({data:t})=>{let r=new Map;return t.notifications.edges.forEach(c=>{if(c.node){let g={checked:!1};r.set(c.node,g),this.notificationState.set(c.node,g)}}),r})),this.notificationSubjects$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.notificationSubjects.map(r=>{var c,g;return{id:`${null===(c=r.subject)||void 0===c?void 0:c.__typename}:${null===(g=r.subject)||void 0===g?void 0:g.id}`,subjectWithCount:r}}))),this.originatingUsers$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.eventTypes.map(r=>({id:r})))),this.organizations$=this.results$.pipe((0,y.U)(({data:t})=>t.notifications.organizations)),this.isLoading$=this.results$.pipe((0,y.U)(({loading:t})=>t),(0,H.O)(!0))}fetchMore(t){this.queryRef.fetchMore({variables:{after:t}})}setIncludeRead(t){this.includeReadInput=t,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(t){this.queryRef.refetch({notificationReason:t?t.type:void 0})}onNotificationSubjectSelected(t){var r;let c;if(void 0!==t){let g=null===(r=t.subjectWithCount.subject)||void 0===r?void 0:r.__typename;c={id:t.subjectWithCount.subject.id,entityType:v.o71[g]}}this.queryRef.refetch({originatingObject:c})}onOriginatingUserSelected(t){this.queryRef.refetch({originatingUserId:null==t?void 0:t.id})}onActionSelected(t){this.queryRef.refetch({eventType:t?t.id:void 0})}onOrganizationSelected(t){this.queryRef.refetch({organizationId:null==t?void 0:t.id})}markAsRead(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:v.NQC.Read}})}markAsUnread(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:v.NQC.Unread}})}unsubscribe(t,r){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:t,entityType:v.o71[r]}]}})}onNotificationCheckBoxClicked(t,r){let c=Array.from(this.notificationState.keys()).find(g=>g.id===t);if(c){let g=this.notificationState.get(c);g&&(g.checked=r)}r?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(g=>g.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(g=>g.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(g=>!g.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(t){t?this.checkAll():this.uncheckAll()}getCheckedIds(){let t=[];return this.notificationState.forEach((r,c)=>{r.checked&&t.push(c.id)}),t}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,r)=>{t.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,r)=>{t.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:v.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:v.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let t=[];this.notificationState.forEach((r,c)=>{r.checked&&c.subscription&&t.push({id:c.subscription.subscribable.id,entityType:v.o71[c.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:t}}).submitSuccess$.subscribe(r=>{r&&this.queryRef.refetch()}),this.uncheckAll()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz),e.Y36(v.yqR),e.Y36(ie.Y),e.Y36(v.LiH),e.Y36(v.m$d))},o.\u0275cmp=e.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(t,r){1&t&&(e.TgZ(0,"nz-spin",0),e.ALo(1,"ngrxPush"),e.YNc(2,Ne,39,22,"ng-container",1),e.ALo(3,"async"),e.qZA()),2&t&&(e.Q6J("nzSpinning",e.lcZ(1,2,r.isLoading$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,4,r.notificationStateObservable$)))},directives:[$.W,i.O5,P.SK,P.t3,m.fY,W.w,m.ix,ae.dQ,ge.l,h.Ls,Y.bd,ue.Ie,T.JJ,T.On,se.PD,i.sg,se.Zv,de.t,_e.SY],pipes:[k.fM,i.Ov,me.R,fe.j,i.Nd],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 Se=a(9814);let Oe=(()=>{class o{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(t,r){1&t&&e._UZ(0,"cvc-source-suggestions-table",0),2&t&&e.Q6J("submitterId",r.userId)},directives:[Se.O],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var ce=a(373),le=a(591),Pe=a(9350),Je=a(8992),Qe=a(7881),pe=a(3618),Ee=a(520);let ke=(()=>{class o{constructor(t){this.http=t,this.uploadComplete=new e.vpe}processProfileImage(t){if(t&&t[0]){let r=new FormData;r.append("image",t[0],t[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",r).subscribe(c=>this.uploadComplete.emit(!0),c=>this.uploadComplete.emit(!1))}}ngOnDestroy(){var t;null===(t=this.uploadSubscription)||void 0===t||t.unsubscribe()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Ee.eN))},o.\u0275cmp=e.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","link",3,"click"]],template:function(t,r){if(1&t){const c=e.EpF();e.TgZ(0,"input",0,1),e.NdJ("change",function(){e.CHM(c);const Z=e.MAs(1);return r.processProfileImage(Z.files)}),e.qZA(),e.TgZ(2,"button",2),e.NdJ("click",function(){return e.CHM(c),e.MAs(1).click()}),e._uU(3,"Upload Image\n"),e.qZA()}},directives:[m.ix,W.w],styles:[""]}),o})();var Ye=a(5749),qe=a(7893),Fe=a(2233),J=a(6738),Le=a(8929),s=a(7625),d=a(822);function p(o,l){1&o&&e._UZ(0,"nz-alert",13)}function f(o,l){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",14),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("errors",t.errorMessages)}}function M(o,l){if(1&o&&e._UZ(0,"nz-option",15),2&o){const t=l.$implicit;e.Q6J("nzLabel",t.name)("nzValue",t.id)}}let A=(()=>{class o{constructor(t,r,c){this.updateProfileGql=t,this.profileUpdatedEvent=new e.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Le.xQ,this.updateProfileMutator=new b.U(c),this.countries$=r.fetch().pipe((0,y.U)(({data:g})=>g.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 t={username:this.username,email:this.email,name:(0,J.xt)(this.name),areaOfExpertise:(0,J.uP)(this.areaOfExpertise),orcid:(0,J.xt)(this.orcid),url:(0,J.xt)(this.url),bio:(0,J.xt)(this.bio),countryId:(0,J.uP)(this.countryId),twitterHandle:(0,J.xt)(this.twitterHandle),facebookProfile:(0,J.xt)(this.facebookProfile),linkedinProfile:(0,J.xt)(this.linkedinProfile)},r=this.updateProfileMutator.mutate(this.updateProfileGql,{input:t});r.submitSuccess$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{c&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),r.submitError$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),r.isSubmitting$.pipe((0,s.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}setInitialFormFields(){var t;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=null===(t=this.user.country)||void 0===t?void 0:t.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(v.wbP),e.Y36(v.l4w),e.Y36(ie.Y))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:56,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"],["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(t,r){1&t&&(e.TgZ(0,"nz-card"),e.YNc(1,p,1,0,"nz-alert",0),e.YNc(2,f,2,1,"nz-form-item",1),e.TgZ(3,"nz-spin",2),e.TgZ(4,"nz-form-item"),e.TgZ(5,"nz-form-label",3),e._uU(6,"Username"),e.qZA(),e.TgZ(7,"input",4),e.NdJ("ngModelChange",function(g){return r.username=g}),e.qZA(),e.qZA(),e.TgZ(8,"nz-form-item"),e.TgZ(9,"nz-form-label"),e._uU(10,"Name"),e.qZA(),e.TgZ(11,"input",4),e.NdJ("ngModelChange",function(g){return r.name=g}),e.qZA(),e.qZA(),e.TgZ(12,"nz-form-item"),e.TgZ(13,"nz-form-label",3),e._uU(14,"Email"),e.qZA(),e.TgZ(15,"input",4),e.NdJ("ngModelChange",function(g){return r.email=g}),e.qZA(),e.qZA(),e.TgZ(16,"nz-form-item"),e.TgZ(17,"nz-form-label"),e._uU(18,"User Bio"),e.qZA(),e.TgZ(19,"textarea",5),e.NdJ("ngModelChange",function(g){return r.bio=g}),e.qZA(),e.qZA(),e.TgZ(20,"nz-form-item"),e.TgZ(21,"nz-form-label"),e._uU(22,"Country"),e.qZA(),e.TgZ(23,"nz-select",6),e.NdJ("ngModelChange",function(g){return r.countryId=g}),e.YNc(24,M,1,2,"nz-option",7),e.ALo(25,"ngrxPush"),e.qZA(),e.qZA(),e.TgZ(26,"nz-form-item"),e.TgZ(27,"nz-form-label"),e._uU(28,"Area of Expertise"),e.qZA(),e.TgZ(29,"nz-select",8),e.NdJ("ngModelChange",function(g){return r.areaOfExpertise=g}),e._UZ(30,"nz-option",9),e._UZ(31,"nz-option",10),e._UZ(32,"nz-option",11),e.qZA(),e.qZA(),e.TgZ(33,"nz-form-item"),e.TgZ(34,"nz-form-label"),e._uU(35,"ORCID Identifier"),e.qZA(),e.TgZ(36,"input",4),e.NdJ("ngModelChange",function(g){return r.orcid=g}),e.qZA(),e.qZA(),e.TgZ(37,"nz-form-item"),e.TgZ(38,"nz-form-label"),e._uU(39,"Personal Website"),e.qZA(),e.TgZ(40,"input",4),e.NdJ("ngModelChange",function(g){return r.url=g}),e.qZA(),e.qZA(),e.TgZ(41,"nz-form-item"),e.TgZ(42,"nz-form-label"),e._uU(43,"Twitter Handle"),e.qZA(),e.TgZ(44,"input",4),e.NdJ("ngModelChange",function(g){return r.twitterHandle=g}),e.qZA(),e.qZA(),e.TgZ(45,"nz-form-item"),e.TgZ(46,"nz-form-label"),e._uU(47,"Facebook Profile"),e.qZA(),e.TgZ(48,"input",4),e.NdJ("ngModelChange",function(g){return r.facebookProfile=g}),e.qZA(),e.qZA(),e.TgZ(49,"nz-form-item"),e.TgZ(50,"nz-form-label"),e._uU(51,"LinkedIn Profile"),e.qZA(),e.TgZ(52,"input",4),e.NdJ("ngModelChange",function(g){return r.linkedinProfile=g}),e.qZA(),e.qZA(),e.TgZ(53,"nz-form-item"),e.TgZ(54,"button",12),e.NdJ("click",function(){return r.updateProfile()}),e._uU(55," Update Profile "),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",r.success),e.xp6(1),e.Q6J("ngIf",r.errorMessages.length>0),e.xp6(1),e.Q6J("nzSpinning",r.loading),e.xp6(4),e.Q6J("ngModel",r.username),e.xp6(4),e.Q6J("ngModel",r.name),e.xp6(4),e.Q6J("ngModel",r.email),e.xp6(4),e.Q6J("ngModel",r.bio),e.xp6(4),e.Q6J("ngModel",r.countryId),e.xp6(1),e.Q6J("ngForOf",e.lcZ(25,16,r.countries$)),e.xp6(5),e.Q6J("ngModel",r.areaOfExpertise),e.xp6(7),e.Q6J("ngModel",r.orcid),e.xp6(4),e.Q6J("ngModel",r.url),e.xp6(4),e.Q6J("ngModel",r.twitterHandle),e.xp6(4),e.Q6J("ngModel",r.facebookProfile),e.xp6(4),e.Q6J("ngModel",r.linkedinProfile),e.xp6(2),e.Q6J("disabled",r.loading||!r.username||!r.email))},directives:[Y.bd,i.O5,E.r,P.SK,R.Nx,d.V,$.W,P.t3,R.iK,T.Fj,T.JJ,T.On,B.Vq,i.sg,B.Ip,m.ix,ae.dQ,W.w],pipes:[k.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 $e=a(8785),Be=a(1243);function je(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"nz-alert",35),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(2).uploadError=!1}),e.qZA()}}function He(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(2).updateSuccess=!1}),e.qZA()}}function We(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"cvc-avatar-uploader",37),e.NdJ("uploadComplete",function(c){return e.CHM(t),e.oxw(2).profileUploadComplete(c)}),e.qZA(),e.BQk()}}function Ve(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",40),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://twitter.com/",t.twitterHandle,"",e.LSH)}}function Ge(o,l){1&o&&(e.ynx(0),e.YNc(1,Ve,2,1,"a",38),e.BQk())}function Xe(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",41),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://facebook.com/",t.facebookProfile,"",e.LSH)}}function Ke(o,l){1&o&&(e.ynx(0),e.YNc(1,Xe,2,1,"a",38),e.BQk())}function en(o,l){if(1&o&&(e.TgZ(0,"a",39),e._UZ(1,"i",42),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","http://linkedin.com/in/",t.linkedinProfile,"",e.LSH)}}function nn(o,l){1&o&&(e.ynx(0),e.YNc(1,en,2,1,"a",38),e.BQk())}function tn(o,l){if(1&o&&(e.TgZ(0,"a",39),e.TgZ(1,"span"),e._uU(2,"ID"),e.qZA(),e.qZA()),2&o){const t=e.oxw(2).ngIf;e.MGl("href","https://orcid.org/",t.orcid,"",e.LSH)}}function on(o,l){1&o&&(e.ynx(0),e.YNc(1,tn,3,1,"a",38),e.BQk())}function an(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",43),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).updateProfileModalVisible=!0}),e._uU(2," Edit Profile "),e.qZA(),e.BQk()}}function sn(o,l){if(1&o&&(e.YNc(0,an,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&o){const t=e.oxw(2);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function rn(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.ALo(2,"enumToTitle"),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.areaOfExpertise)," ")}}function cn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function ln(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",null==t.country?null:t.country.name," ")}}function pn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function gn(o,l){1&o&&e._UZ(0,"cvc-organization-tag",46),2&o&&e.Q6J("org",l.$implicit)}function un(o,l){if(1&o&&(e.ynx(0),e.YNc(1,gn,1,1,"cvc-organization-tag",45),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.organizations)}}function dn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"User is not a member of any Organizations."),e.qZA(),e.qZA(),e.BQk())}function _n(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",t.bio," ")}}function mn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"User has not provided a bio."),e.qZA(),e.qZA(),e.BQk())}function fn(o,l){1&o&&e._uU(0," Editor Conflict of Interest Statement ")}function hn(o,l){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"button",50),e.NdJ("click",function(){return e.CHM(t),e.oxw(4).updateCoiModalVisible=!0}),e._uU(2," Update COI "),e.qZA(),e.BQk()}}function zn(o,l){if(1&o&&(e.YNc(0,hn,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&o){const t=e.oxw(3);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function Cn(o,l){if(1&o&&(e.ynx(0),e._uU(1),e.BQk()),2&o){const t=e.oxw(3).ngIf;e.xp6(1),e.hij(" ",t.mostRecentConflictOfInterestStatement.coiStatement," ")}}function vn(o,l){1&o&&e._uU(0," I do not have any potential conflicts of interest. ")}function Tn(o,l){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2),e.ALo(3,"enumToTitle"),e.qZA(),e.TgZ(4,"nz-descriptions-item",52),e._uU(5),e.ALo(6,"date"),e.qZA(),e.TgZ(7,"nz-descriptions-item",53),e._uU(8),e.ALo(9,"date"),e.qZA(),e.TgZ(10,"nz-descriptions-item",54),e.YNc(11,Cn,2,1,"ng-container",55),e.YNc(12,vn,1,0,"ng-template",null,56,e.W1O),e.qZA(),e.BQk()),2&o){const t=e.MAs(13),r=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(3,9,r.mostRecentConflictOfInterestStatement.coiStatus)," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(6,11,r.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(9,14,r.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",3),e.xp6(1),e.Q6J("ngIf",r.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",t)}}function xn(o,l){1&o&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2,"None on file."),e.qZA(),e.BQk()),2&o&&(e.xp6(1),e.Q6J("nzSpan",3))}function Zn(o,l){if(1&o&&(e.TgZ(0,"nz-descriptions",47),e.YNc(1,fn,1,0,"ng-template",null,48,e.W1O),e.YNc(3,zn,2,3,"ng-template",null,49,e.W1O),e.YNc(5,Tn,14,17,"ng-container",0),e.YNc(6,xn,3,1,"ng-container",0),e.qZA()),2&o){const t=e.MAs(2),r=e.MAs(4),c=e.oxw().ngIf;e.Q6J("nzTitle",t)("nzExtra",r)("nzColumn",3),e.xp6(5),e.Q6J("ngIf",c.mostRecentConflictOfInterestStatement),e.xp6(1),e.Q6J("ngIf",!c.mostRecentConflictOfInterestStatement)}}function bn(o,l){1&o&&(e.TgZ(0,"span"),e._uU(1,"Edit Profile"),e.qZA())}function Un(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"cvc-user-profile-form",57),e.NdJ("profileUpdatedEvent",function(){return e.CHM(t),e.oxw(2).profileUpdated()}),e.qZA()}if(2&o){const t=e.oxw().ngIf;e.Q6J("user",t)}}function yn(o,l){if(1&o){const t=e.EpF();e.ynx(0),e._UZ(1,"cvc-section-navigation",4),e.TgZ(2,"nz-page-header",5),e.TgZ(3,"nz-page-header-content"),e.YNc(4,je,1,0,"nz-alert",6),e.YNc(5,He,1,0,"nz-alert",7),e.TgZ(6,"div",8),e.TgZ(7,"nz-row",9),e.TgZ(8,"nz-col",10),e.TgZ(9,"div",11),e._UZ(10,"cvc-user-avatar",12),e.qZA(),e.TgZ(11,"div",13),e.TgZ(12,"span",14),e.TgZ(13,"strong"),e._uU(14),e.qZA(),e.qZA(),e.YNc(15,We,2,0,"ng-container",0),e.ALo(16,"ngrxPush"),e.qZA(),e.TgZ(17,"div",15),e.TgZ(18,"nz-space",16),e.YNc(19,Ge,2,0,"ng-container",0),e.YNc(20,Ke,2,0,"ng-container",0),e.YNc(21,nn,2,0,"ng-container",0),e.YNc(22,on,2,0,"ng-container",0),e.qZA(),e.qZA(),e.qZA(),e.TgZ(23,"nz-col",10),e.TgZ(24,"nz-card",17),e.YNc(25,sn,2,3,"ng-template",null,18,e.W1O),e.TgZ(27,"nz-descriptions",19),e.TgZ(28,"nz-descriptions-item",20),e._uU(29),e.qZA(),e.TgZ(30,"nz-descriptions-item",21),e._uU(31),e.qZA(),e.TgZ(32,"nz-descriptions-item",22),e._uU(33),e.ALo(34,"enumToTitle"),e.qZA(),e.TgZ(35,"nz-descriptions-item",23),e.YNc(36,rn,3,3,"ng-container",0),e.YNc(37,cn,4,0,"ng-container",0),e.qZA(),e.TgZ(38,"nz-descriptions-item",24),e.YNc(39,ln,2,1,"ng-container",0),e.YNc(40,pn,4,0,"ng-container",0),e.qZA(),e.TgZ(41,"nz-descriptions-item",25),e.YNc(42,un,2,1,"ng-container",0),e.YNc(43,dn,4,0,"ng-container",0),e.qZA(),e.qZA(),e.TgZ(44,"nz-descriptions",26),e.TgZ(45,"nz-descriptions-item",27),e.YNc(46,_n,2,1,"ng-container",0),e.YNc(47,mn,4,0,"ng-container",0),e.qZA(),e.qZA(),e.YNc(48,Zn,7,5,"nz-descriptions",28),e.qZA(),e.qZA(),e.TgZ(49,"nz-col",10),e.TgZ(50,"nz-card",29),e._UZ(51,"cvc-stats-card",30),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e._UZ(52,"cvc-tab-navigation",31),e.ALo(53,"ngrxPush"),e.TgZ(54,"div",32),e._UZ(55,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(56,"nz-modal",1),e.NdJ("nzVisibleChange",function(c){return e.CHM(t),e.oxw().updateProfileModalVisible=c})("nzOnCancel",function(){return e.CHM(t),e.oxw().handleProfileModalCancel()}),e.YNc(57,bn,2,0,"ng-template",null,33,e.W1O),e.YNc(59,Un,1,1,"ng-template",null,34,e.W1O),e.qZA(),e.BQk()}if(2&o){const t=l.ngIf,r=e.MAs(26),c=e.MAs(58),g=e.MAs(60),Z=e.oxw();e.xp6(1),e.Q6J("displayName",t.displayName),e.xp6(3),e.Q6J("ngIf",Z.uploadError),e.xp6(1),e.Q6J("ngIf",Z.updateSuccess),e.xp6(2),e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzSpan",3),e.xp6(2),e.Q6J("user",t)("size",128),e.xp6(4),e.Oqu(t.name),e.xp6(1),e.Q6J("ngIf",e.lcZ(16,42,Z.ownProfile$)),e.xp6(4),e.Q6J("ngIf",t.twitterHandle),e.xp6(1),e.Q6J("ngIf",t.facebookProfile),e.xp6(1),e.Q6J("ngIf",t.linkedinProfile),e.xp6(1),e.Q6J("ngIf",t.orcid),e.xp6(1),e.Q6J("nzSpan",13),e.xp6(1),e.Q6J("nzExtra",r),e.xp6(3),e.Q6J("nzColumn",7),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.hij(" ",t.name," "),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.hij(" ",t.username," "),e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(34,44,t.role)," "),e.xp6(2),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",t.areaOfExpertise),e.xp6(1),e.Q6J("ngIf",!t.areaOfExpertise),e.xp6(1),e.Q6J("nzSpan",2),e.xp6(1),e.Q6J("ngIf",t.country),e.xp6(1),e.Q6J("ngIf",!t.country),e.xp6(1),e.Q6J("nzSpan",5),e.xp6(1),e.Q6J("ngIf",t.organizations.length>0),e.xp6(1),e.Q6J("ngIf",0===t.organizations.length),e.xp6(2),e.Q6J("nzSpan",4),e.xp6(1),e.Q6J("ngIf",t.bio),e.xp6(1),e.Q6J("ngIf",!t.bio),e.xp6(1),e.Q6J("ngIf","EDITOR"===t.role||"ADMIN"===t.role),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(2),e.Q6J("stats",t.statsHash),e.xp6(1),e.Q6J("tabs",e.lcZ(53,46,Z.tabs$)),e.xp6(4),e.Q6J("nzVisible",Z.updateProfileModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}}function Mn(o,l){1&o&&(e.TgZ(0,"span"),e._uU(1,"Update your Conflict of Interest Statement"),e.qZA())}function An(o,l){if(1&o){const t=e.EpF();e.TgZ(0,"cvc-user-coi-form",58),e.NdJ("coiUpdatedEvent",function(){return e.CHM(t),e.oxw().coiUpdated()}),e.qZA()}}const Nn=[{path:"",component:(()=>{class o{constructor(t,r,c){this.gql=t,this.viewerService=r,this.route=c,this.ownProfile$=new le.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 le.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(g=>{this.queryRef=this.gql.watch({userId:+g.userId});let Z=this.queryRef.valueChanges;this.loading$=Z.pipe((0,ce.j)("loading"),(0,H.O)(!0)),this.user$=Z.pipe((0,ce.j)("data","user")),this.viewerSub=this.viewerService.viewer$.subscribe(we=>{we.id===+g.userId&&(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0))})})}ngOnDestroy(){var t;this.routeSub.unsubscribe(),null===(t=this.viewerSub)||void 0===t||t.unsubscribe()}profileUploadComplete(t){var r;t?(null===(r=this.queryRef)||void 0===r||r.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){var t;this.updateCoiModalVisible=!1,null===(t=this.queryRef)||void 0===t||t.refetch()}profileUpdated(){var t;this.updateProfileModalVisible=!1,null===(t=this.queryRef)||void 0===t||t.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(v.sLD),e.Y36(Pe.a),e.Y36(C.gz))},o.\u0275cmp=e.Xpm({type:o,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"],["nzType","error","nzCloseable","","nzMessage","There was an error updating your profile image.",3,"nzOnClose",4,"ngIf"],["nzType","success","nzCloseable","","nzMessage","Profile image successfully updated.",3,"nzOnClose",4,"ngIf"],[1,"profile-content"],[3,"nzGutter"],[3,"nzSpan"],[1,"user-avatar"],[3,"user","size"],[1,"user-name"],["nz-typography",""],[1,"user-socials"],["nzAlign","center"],["nzTitle","Profile","nzSize","small",1,"user-profile",3,"nzExtra"],["updateProfile",""],["nzBordered","","nzLayout","vertical","nzSize","small",3,"nzColumn"],["nzTitle","Name",3,"nzSpan"],["nzTitle","User Name",3,"nzSpan"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],["nzTitle","Organizations",3,"nzSpan"],["nzBordered","","nzLayout","vertical","nzSize","small",1,"user-bio"],["nzTitle","Bio",3,"nzSpan"],["nzBordered","","class","user-coi","nzSize","small",3,"nzTitle","nzExtra","nzColumn",4,"ngIf"],["nzSize","small","nzTitle","Curation Stats"],["header","User Statistics",3,"stats"],[3,"tabs"],[1,"content"],["profileModalTitle",""],["profileModalContent",""],["nzType","error","nzCloseable","","nzMessage","There was an error updating your profile image.",3,"nzOnClose"],["nzType","success","nzCloseable","","nzMessage","Profile image successfully updated.",3,"nzOnClose"],[3,"uploadComplete"],["target","_blank",3,"href",4,"nzSpaceItem"],["target","_blank",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-button","","nzSize","small","nzType","link",3,"click"],["nz-typography","","nzType","secondary"],[3,"org",4,"ngFor","ngForOf"],[3,"org"],["nzBordered","","nzSize","small",1,"user-coi",3,"nzTitle","nzExtra","nzColumn"],["coiTitle",""],["updateCoi",""],["nz-button","","nzType","link","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noStatement",""],[3,"user","profileUpdatedEvent"],[3,"coiUpdatedEvent"]],template:function(t,r){if(1&t&&(e.YNc(0,yn,61,48,"ng-container",0),e.ALo(1,"ngrxPush"),e.TgZ(2,"nz-modal",1),e.NdJ("nzVisibleChange",function(g){return r.updateCoiModalVisible=g})("nzOnCancel",function(){return r.handleCoiModalCancel()}),e.YNc(3,Mn,2,0,"ng-template",null,2,e.W1O),e.YNc(5,An,1,0,"ng-template",null,3,e.W1O),e.qZA()),2&t){const c=e.MAs(4),g=e.MAs(6);e.Q6J("ngIf",e.lcZ(1,5,r.user$)),e.xp6(2),e.Q6J("nzVisible",r.updateCoiModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}},directives:[i.O5,Je.I,n.$O,n.u5,E.r,P.SK,P.t3,Qe.L,pe.ZU,ke,x.NU,x.$1,h.Ls,W.w,Y.bd,m.ix,Q.R7,Q.uj,i.sg,Ye.m,qe.z,Fe.P,C.lC,L.du,A,$e.t],pipes:[k.fM,Be.I,i.uU],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{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%] .user-profile .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .user-profile .ant-descriptions-view{border:none}[_nghost-%COMP%] .user-profile nz-descriptions.is-editor .ant-descriptions-view{border-bottom:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-bio .ant-descriptions-view{border-top:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-header{margin:0;padding:0 12px;border-top:1px solid #f0f0f0}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-header .ant-descriptions-title{padding:6px 0;font-weight:400;font-size:12px;font-weight:500}[_nghost-%COMP%] .user-profile .user-coi .ant-descriptions-view{border-top:1px solid #f0f0f0}[_nghost-%COMP%] .profile-content{margin-top:8px;margin-bottom:16px}[_nghost-%COMP%] .content{margin-bottom:8px}[_nghost-%COMP%] .user-avatar{text-align:center}[_nghost-%COMP%] .user-socials{text-align:center}[_nghost-%COMP%] .user-name{text-align:center;font-size:120%}"]}),o})(),data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:_,data:{breadcrumb:"Evidence"}},{path:"assertions",component:j,data:{breadcrumb:"Assertions"}},{path:"activity",component:u,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Oe,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Ie,data:{breadcrumb:"Notifications"}}]}];let In=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[C.Bz.forChild(Nn)],C.Bz]}),o})(),Sn=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[i.ez,C.Bz,In,k.WG,E.L,P.Jb,n.KJ,x.zf,Q.q6,Y.vh,X.S,L.Qp,G.A2,h.PV,pe.ZJ,m.sL,q.e,K,F.s,U.D,O.c,N.H,I,V.L,ee.C]]}),o})()},3218:(oe,S,a)=>{a.r(S),a.d(S,{UsersModule:()=>Le});var i=a(9808),U=a(325),n=a(5e3),C=a(8992),O=a(1945),x=a(1894),N=a(647),m=a(2683),h=a(3618),e=a(8144),I=a(6042),Q=a(712),V=a(3154),P=a(8929),F=a(373),k=a(1059),Y=a(4850),G=a(2986),X=a(13),L=a(7484),T=a(1132),E=a(404),R=a(2166),w=a(8054),D=a(4182),$=a(125),B=a(6715),K=a(5749),q=a(6949),ee=a(2643),ne=a(1243),j=a(8625);function v(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.BQk()),2&s){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",p.name," ")}}function te(s,d){1&s&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function u(s,d){if(1&s&&(n.TgZ(0,"span"),n._UZ(1,"cvc-organization-tag",25),n.qZA()),2&s){const p=d.$implicit;n.xp6(1),n.Q6J("org",p)}}function z(s,d){if(1&s&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,u,2,1,"span",17),n.qZA(),n.qZA()),2&s){const p=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",p.organizations)}}function _(s,d){1&s&&(n.TgZ(0,"i"),n._uU(1,"--"),n.qZA())}function b(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&s){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,p.mostRecentActionTimestamp)," ")}}function y(s,d){1&s&&n._uU(0," -- ")}function H(s,d){if(1&s&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-user-tag",20),n.qZA(),n.TgZ(3,"td"),n.YNc(4,v,2,1,"ng-container",21),n.YNc(5,te,2,0,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(7,"td"),n.YNc(8,z,3,1,"div",21),n.YNc(9,_,2,0,"ng-template",null,23,n.W1O),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.ALo(13,"enumToTitle"),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.TgZ(16,"td"),n._uU(17),n.qZA(),n.TgZ(18,"td"),n.YNc(19,b,3,3,"ng-container",21),n.YNc(20,y,1,0,"ng-template",null,24,n.W1O),n.qZA(),n.qZA()),2&s){const p=d.$implicit,f=n.MAs(6),M=n.MAs(10),A=n.MAs(21);n.xp6(2),n.Q6J("user",p),n.xp6(2),n.Q6J("ngIf",p.name)("ngIfElse",f),n.xp6(4),n.Q6J("ngIf",p.organizations.length>0)("ngIfElse",M),n.xp6(4),n.hij(" ",n.lcZ(13,10,p.role)," "),n.xp6(3),n.hij(" ",p.statsHash.submittedEvidenceItems," "),n.xp6(2),n.hij(" ",p.statsHash.revisions," "),n.xp6(2),n.Q6J("ngIf",p.mostRecentActionTimestamp)("ngIfElse",A)}}function ie(s,d){if(1&s){const p=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(p);const M=n.oxw(2).ngrxLet;return n.oxw().loadMore(M.endCursor)}),n._uU(1),n.qZA()}if(2&s){const p=n.oxw(3);n.xp6(1),n.hij("Load ",p.initialPageSize," More")}}function W(s,d){if(1&s&&(n.TgZ(0,"tr"),n.TgZ(1,"td",27),n.YNc(2,ie,2,1,"button",28),n.qZA(),n.qZA()),2&s){const p=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",p.hasNextPage)}}function ae(s,d){if(1&s&&(n.ynx(0),n.YNc(1,W,3,1,"tr",26),n.BQk()),2&s){const p=d.ngrxLet;n.xp6(1),n.Q6J("ngIf",p.hasNextPage)}}function ge(s,d){}function ue(s,d){if(1&s&&(n.ynx(0),n.YNc(1,ge,0,0,"ng-template",33),n.BQk()),2&s){const p=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",p.cvcTitleTemplate)}}function se(s,d){if(1&s&&(n.ynx(0),n._uU(1),n.BQk()),2&s){const p=n.oxw(2);n.xp6(1),n.hij(" ",p.cvcTitle," ")}}function de(s,d){if(1&s&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&s){const p=n.oxw().ngIf;n.xp6(1),n.hij(" of ",p," filtered")}}function _e(s,d){if(1&s&&(n.TgZ(0,"span",34),n._uU(1),n.YNc(2,de,2,1,"span",26),n._uU(3,") "),n.qZA()),2&s){const p=d.ngIf,f=n.oxw(2);n.xp6(1),n.AsE(" (",f.totalCount," total, showing ",f.visibleCount,""),n.xp6(1),n.Q6J("ngIf",f.totalCount&&p{class s{constructor(p){this.gql=p,this.debouncedQuery=new P.xQ,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.sortColumns=Q.IRu}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:Q.IRu.LastAction,direction:Q.SrV.Desc}});let p=this.queryRef.valueChanges;this.isLoading$=p.pipe((0,F.j)("loading"),(0,k.O)(!0)),this.users$=p.pipe((0,F.j)("data","users","edges"),(0,Y.U)(f=>f.map(M=>M.node))),this.filteredCount$=p.pipe((0,F.j)("data","users","totalCount")),this.filteredCount$.pipe((0,G.q)(1)).subscribe(f=>this.totalCount=f),this.filteredCount$.subscribe(f=>{ff&&(this.visibleCount=f))}),this.pageInfo$=p.pipe((0,F.j)("data","users","pageInfo")),this.debouncedQuery.pipe((0,X.b)(500)).subscribe(f=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){this.loadedPages=1,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})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(p){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,V._)(p)})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(p){this.queryRef.fetchMore({variables:{first:this.fetchMorePageSize,after:p}}),this.loadedPages+=1}}return s.\u0275fac=function(p){return new(p||s)(n.Y36(Q.tJ6))},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-users-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:40,vars:23,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["userTable",""],[3,"nzSortOrderChange"],["nzWidth","5%"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],[3,"nzColumnKey","nzSortFn"],["nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count"],["nz-icon","","nzType","civic:evidence"],["nzRight","","nz-tooltip","","nzTooltipTitle","Revision Count"],["nz-icon","","nzType","civic:revision"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Orgs",3,"inputModel","onInputChanged","inputModelChange"],["nzAllowClear","","nzPlaceHolder","All",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","ADMIN","nzLabel","ADMIN"],["nzValue","CURATOR","nzLabel","CURATOR"],["nzValue","EDITOR","nzLabel","EDITOR"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"user"],[4,"ngIf","ngIfElse"],["nameElse",""],["orgElse",""],["eventElse",""],[3,"org"],[4,"ngIf"],["colspan","20"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:user"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(p,f){if(1&p&&(n.TgZ(0,"nz-card",0),n.TgZ(1,"nz-table",1,2),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",3),n.NdJ("nzSortOrderChange",function(A){return f.onSortChanged(A)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Username "),n.qZA(),n.TgZ(9,"th",5),n._uU(10," Name "),n.qZA(),n.TgZ(11,"th"),n._uU(12," Organizations "),n.qZA(),n.TgZ(13,"th",6),n._uU(14," Role "),n.qZA(),n.TgZ(15,"th",7),n._UZ(16,"i",8),n.qZA(),n.TgZ(17,"th",9),n._UZ(18,"i",10),n.qZA(),n.TgZ(19,"th",6),n._uU(20," Last Action "),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n._UZ(22,"th"),n.TgZ(23,"th"),n.TgZ(24,"cvc-clearable-input-filter",11),n.NdJ("inputModelChange",function(A){return f.nameInput=A}),n.qZA(),n.qZA(),n.TgZ(25,"th"),n.TgZ(26,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(A){return f.orgNameInput=A}),n.qZA(),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-select",13),n.NdJ("ngModelChange",function(){return f.onModelChanged()})("ngModelChange",function(A){return f.roleInput=A}),n._UZ(29,"nz-option",14),n._UZ(30,"nz-option",15),n._UZ(31,"nz-option",16),n.qZA(),n.qZA(),n._UZ(32,"th"),n._UZ(33,"th"),n._UZ(34,"th"),n.qZA(),n.qZA(),n.TgZ(35,"tbody"),n.YNc(36,H,22,12,"tr",17),n.YNc(37,ae,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(38,fe,7,6,"ng-template",null,19,n.W1O)),2&p){const M=n.MAs(2),A=n.MAs(39);n.Q6J("nzTitle",A),n.xp6(1),n.Q6J("nzData",n.lcZ(3,19,f.users$))("nzLoading",n.lcZ(4,21,f.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",f.sortColumns.Name)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",f.sortColumns.Role)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",f.sortColumns.LastAction)("nzSortFn",!0),n.xp6(5),n.Q6J("inputModel",f.nameInput)("onInputChanged",f.textInputCallback),n.xp6(2),n.Q6J("inputModel",f.orgNameInput)("onInputChanged",f.textInputCallback),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",f.roleInput),n.xp6(8),n.Q6J("ngForOf",M.data),n.xp6(1),n.Q6J("ngrxLet",f.pageInfo$)}},directives:[L.bd,T.N8,T.Om,T.$Z,T.Uo,T._C,T.qD,T.qn,E.SY,N.Ls,m.w,R.p,w.Vq,D.JJ,D.On,w.Ip,T.p0,i.sg,$.I,i.O5,B.$,K.m,q.eJ,I.ix,ee.dQ,i.tP,h.ZU],pipes:[q.fM,ne.I,j.wr],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),s})();function ze(s,d){1&s&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Contributor Docs "),n.qZA())}const Ce=[{path:"",component:(()=>{class s{constructor(){}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["app-users"]],decls:1,vars:0,template:function(p,f){1&p&&n._UZ(0,"router-outlet")},directives:[U.lC],styles:[""]}),s})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["users-home"]],decls:18,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:user"],["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/users.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["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(p,f){1&p&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0),n.TgZ(2,"nz-page-header-content"),n.TgZ(3,"nz-row",1),n.TgZ(4,"nz-col",2),n._UZ(5,"i",3),n.qZA(),n.TgZ(6,"nz-col",4),n.TgZ(7,"h2"),n._uU(8,"Contributors"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"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.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,ze,3,0,"a",8),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"div",9),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n._UZ(17,"cvc-users-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&p&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(6),n.Q6J("nzSpan",24))},directives:[C.I,O.$O,O.u5,x.SK,x.t3,N.Ls,m.w,h.ZU,e.NU,e.$1,I.ix,he],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{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}"]}),s})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,7600)).then(s=>s.UsersDetailModule)}]}]}];let ve=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[U.Bz.forChild(Ce)],U.Bz]}),s})();var Te=a(4125),xe=a(3630),Ze=a(7345),be=a(9476),re=a(9444),Ue=a(7026),ye=a(897);let Me=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,D.u5,q.WG,N.PV,I.sL,E.cg,T.HQ,w.LV,L.vh,h.ZJ,ye.$,Te.k,xe.X,Ze.W,re.s,j.$L.forChild({formatter:{useClass:Ue.x,provide:j.KP}}),be.L]]}),s})();var Ae=a(5630);let Ne=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,O.KJ,N.PV,x.Jb,I.sL,e.zf,h.ZJ,Ae.D,Me]]}),s})();var Ie=a(9441);let Se=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,N.PV,Ie.s]]}),s})();var Oe=a(7600),ce=a(4292);let le=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,ce.t]]}),s})();var Pe=a(767);let Je=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,Pe.Q]]}),s})();var Qe=a(2832);let pe=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,Qe.W]]}),s})();var Ee=a(7525),ke=a(1150),Ye=a(6114),qe=a(2712),Fe=a(3212);let J=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,D.u5,q.WG,E.cg,Ee.j,x.Jb,I.sL,L.vh,N.PV,Ye.Wr,qe.FT,Fe.E,re.s,ke.N]]}),s})(),Le=(()=>{class s{}return s.\u0275fac=function(p){return new(p||s)},s.\u0275mod=n.oAB({type:s}),s.\u0275inj=n.cJS({imports:[[i.ez,U.Bz,q.WG,ve,Ne,Se,Oe.UsersDetailModule,le,Je,pe,J]]}),s})()}}]);
\ No newline at end of file
diff --git a/server/public/3482.0effe2652c710328.js b/server/public/3482.0effe2652c710328.js
deleted file mode 100644
index f3f19bb54..000000000
--- a/server/public/3482.0effe2652c710328.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3482],{7036:(H,N,i)=>{i.d(N,{L:()=>gt});var _=i(712),a=i(373),u=i(4850),t=i(5e3),n=i(9808),m=i(1894),C=i(8144),T=i(8929),y=i(7625),M=i(9350),I=i(2359),$=i(7484),h=i(7948),Q=i(5737),Y=i(6123),w=i(9169),x=i(6949),Z=i(404),R=i(6042),L=i(2643),b=i(2683),J=i(3610),V=i(647),K=i(4182),W=i(4546),z=i(9383),E=i(7525),A=i(9180),B=i(8227),G=i(1793);function f(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",4),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function P(c,p){}function O(c,p){1&c&&t.YNc(0,P,0,0,"ng-template")}function j(c,p){if(1&c&&(t.ynx(0),t.YNc(1,O,1,0,void 0,9),t.BQk()),2&c){t.oxw(2);const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function k(c,p){if(1&c&&(t.ynx(0),t.YNc(1,j,2,1,"ng-container",5),t.BQk()),2&c){const s=t.oxw().ngrxLet,g=t.MAs(5),v=t.oxw();t.xp6(1),t.Q6J("ngIf",s.isEditor||s.isAdmin||v.flag.flaggingUser.id===s.id)("ngIfElse",g)}}function en(c,p){}function sn(c,p){1&c&&t.YNc(0,en,0,0,"ng-template")}function cn(c,p){if(1&c&&(t.TgZ(0,"span",10),t.YNc(1,sn,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function on(c,p){}function ln(c,p){1&c&&t.YNc(0,on,0,0,"ng-template")}function U(c,p){if(1&c&&(t.TgZ(0,"span",11),t.YNc(1,ln,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function X(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",13),t.NdJ("nzPopoverVisibleChange",function(v){return t.CHM(s),t.oxw(3).flagResolvePopoverVisible=v})("click",function(){t.CHM(s);const v=t.oxw(3);return v.flagResolvePopoverVisible=!v.flagResolvePopoverVisible}),t._uU(1," Resolve Flag "),t._UZ(2,"i",14),t.qZA()}if(2&c){const s=t.oxw(2).ngrxLet,g=t.oxw(),v=t.MAs(3),D=t.MAs(5);t.Q6J("nzPopoverTitle",v)("nzPopoverVisible",g.flagResolvePopoverVisible)("nzPopoverContent",D)("nzPopoverTrigger",void 0)("disabled",!s.signedIn||s.isCurator&&g.flag.flaggingUser.id!=s.id)}}function q(c,p){if(1&c&&t.YNc(0,X,3,5,"button",12),2&c){const s=t.oxw(2);t.Q6J("ngIf",!s.success)}}function S(c,p){if(1&c&&(t.ynx(0),t.YNc(1,k,2,2,"ng-container",5),t.YNc(2,cn,2,1,"ng-template",null,6,t.W1O),t.YNc(4,U,2,1,"ng-template",null,7,t.W1O),t.YNc(6,q,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&c){const s=p.ngrxLet,g=t.MAs(3);t.xp6(1),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}const nn=function(){return{float:"right"}};function tn(c,p){if(1&c){const s=t.EpF();t._uU(0," Resolve Flag "),t.TgZ(1,"span",15),t.TgZ(2,"i",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw();return v.flagResolvePopoverVisible=!1,v.errorMessages=[]}),t.qZA(),t.qZA()}2&c&&(t.xp6(1),t.Q6J("ngStyle",t.DdM(1,nn)))}function fn(c,p){if(1&c&&t._UZ(0,"nz-alert",25),2&c){t.oxw();const s=t.MAs(2);t.Q6J("nzDescription",s)}}function un(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function zn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,un,2,1,"li",26),t.qZA()),2&c){const s=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Cn(c,p){if(1&c){const s=t.EpF();t.YNc(0,fn,1,1,"nz-alert",17),t.YNc(1,zn,2,1,"ng-template",null,18,t.W1O),t.TgZ(3,"nz-card",19),t.TgZ(4,"form",20),t.NdJ("ngSubmit",function(){return t.CHM(s),t.oxw().resolveFlag()}),t.TgZ(5,"cvc-comment-input-form",21),t.NdJ("commentChange",function(v){return t.CHM(s),t.oxw().comment=v}),t.qZA(),t.TgZ(6,"nz-spin",22),t.TgZ(7,"nz-form-item"),t.TgZ(8,"nz-form-control"),t.TgZ(9,"cvc-form-buttons"),t.TgZ(10,"cvc-org-selector-btn-group",23),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.TgZ(11,"button",24),t._uU(12," Resolve "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&c){const s=t.oxw();t.Q6J("ngIf",s.errorMessages.length>0),t.xp6(5),t.Q6J("comment",s.comment),t.xp6(1),t.Q6J("nzSpinning",s.loading),t.xp6(5),t.Q6J("disabled",!(void 0!==s.comment&&s.comment.length>=10))}}let _n=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.destroy$=new T.xQ,this.resolveFlagMutator=new Y.U(v)}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg})}onOrgSelected(s){this.selectedOrg=s}resolveFlag(){var s;if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id}});g.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{v&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.success=!1,this.errorMessages=v)}),g.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{this.loading=v})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.EwB),t.Y36(M.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["noPermissions",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to resolve flag."],["nz-tooltip","","nzTooltipTitle","If you are not an editor, you can only resolve flags you opened."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click",4,"ngIf"],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(s,g){1&s&&(t.YNc(0,f,1,0,"nz-alert",0),t.YNc(1,S,8,2,"ng-container",1),t.YNc(2,tn,3,2,"ng-template",null,2,t.W1O),t.YNc(4,Cn,13,4,"ng-template",null,3,t.W1O)),2&s&&(t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngrxLet",g.viewer$))},directives:[n.O5,I.r,x.eJ,n.tP,Z.SY,R.ix,L.dQ,b.w,J.lU,V.Ls,n.PC,n.sg,$.bd,K._Y,K.JL,K.F,W.Lr,z.b,E.W,m.SK,W.Nx,m.t3,W.Fd,A.Z,B.q,G.m],styles:[""]}),c})();var gn=i(3618),Tn=i(125),xn=i(4590),pn=i(685),hn=i(8625);function yn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",5),t.NdJ("nzOnClose",function(){const D=t.CHM(s).$implicit;return t.oxw().onErrorBannerClose(D)}),t.qZA()}2&c&&t.Q6J("nzMessage",p.$implicit)}function mn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}if(2&c){const s=t.oxw();t.MGl("nzMessage","Revision(s) successfully ",s.success,".")}}function dn(c,p){if(1&c&&t._UZ(0,"cvc-comment-body",15),2&c){const s=t.oxw(2).$implicit;t.Q6J("commentBodySegments",s.openComment.parsedComment)}}function Zn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-flag-resolve-form",16),t.BQk()),2&c){const s=t.oxw(2).$implicit,g=t.oxw(2);t.xp6(1),t.Q6J("flag",s)("flagResolvedCallback",g.flagResolvedCallback)}}function An(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-comment-body",15),t.BQk()),2&c){const s=t.oxw(3).$implicit;t.xp6(1),t.Q6J("commentBodySegments",s.resolutionComment.parsedComment)}}function On(c,p){if(1&c&&t._UZ(0,"cvc-user-tag",21),2&c){const s=t.oxw(3).$implicit;t.Q6J("user",s.resolvingUser)}}function vn(c,p){if(1&c&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",17),t.YNc(2,An,2,1,"ng-container",18),t.qZA(),t.TgZ(3,"nz-col",19),t._uU(4," Resolved By "),t.YNc(5,On,1,1,"cvc-user-tag",20),t._uU(6),t.ALo(7,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngIf",s.resolutionComment),t.xp6(3),t.Q6J("ngIf",void 0!==s.resolvingUser),t.xp6(1),t.hij(" ",t.lcZ(7,3,s.resolvedAt)," ")}}function Rn(c,p){if(1&c&&(t._UZ(0,"i",22),t._uU(1)),2&c){const s=t.oxw(2).$implicit;t.xp6(1),t.hij(" FID",s.id," ")}}function Fn(c,p){if(1&c&&(t.TgZ(0,"span"),t.TgZ(1,"span",26),t._uU(2,"Flagged By"),t.qZA(),t._UZ(3,"cvc-user-tag",21),t.TgZ(4,"span",26),t._uU(5),t.ALo(6,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(3).$implicit;t.xp6(3),t.Q6J("user",s.flaggingUser),t.xp6(2),t.Oqu(t.lcZ(6,2,s.createdAt))}}function Ln(c,p){if(1&c&&t._UZ(0,"cvc-status-tag",27),2&c){const s=t.oxw(3).$implicit;t.Q6J("status",s.state)}}function Mn(c,p){1&c&&(t.TgZ(0,"nz-space",23),t.YNc(1,Fn,7,4,"span",24),t.YNc(2,Ln,1,1,"cvc-status-tag",25),t.qZA())}function bn(c,p){if(1&c&&(t.TgZ(0,"nz-card",10),t.YNc(1,dn,1,1,"cvc-comment-body",11),t._UZ(2,"nz-divider"),t.YNc(3,Zn,2,2,"ng-container",3),t.YNc(4,vn,8,5,"ng-template",null,12,t.W1O),t.YNc(6,Rn,2,1,"ng-template",null,13,t.W1O),t.YNc(8,Mn,3,0,"ng-template",null,14,t.W1O),t.qZA()),2&c){const s=t.MAs(5),g=t.MAs(7),v=t.MAs(9),D=t.oxw().$implicit;t.Q6J("nzTitle",g)("nzExtra",v),t.xp6(1),t.Q6J("ngIf",D.openComment),t.xp6(2),t.Q6J("ngIf","OPEN"==D.state)("ngIfElse",s)}}function En(c,p){1&c&&(t.ynx(0),t.YNc(1,bn,10,5,"nz-card",9),t.BQk())}function an(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"nz-space",7),t.YNc(2,En,2,0,"ng-container",8),t.qZA(),t.BQk()),2&c){const s=t.oxw();t.xp6(2),t.Q6J("ngForOf",s.flags)}}function Sn(c,p){1&c&&t._UZ(0,"nz-empty",28)}let Nn=(()=>{class c{constructor(s){this.viewerService=s,this.isLoading=!1,this.success=!1,this.destroy$=new T.xQ}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.mostRecentOrg=s.mostRecentOrg})}setupMutationResultHandlers(s,g){s.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{v&&(this.isLoading=!1,this.errors=void 0,this.success=g)}),s.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.isLoading=!1,this.success=!1,this.errors=v)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(s){var g;this.errors=null===(g=this.errors)||void 0===g?void 0:g.filter(v=>v!=s)}onSuccessBannerClose(){this.success=!1}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(M.a))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzTitle","Flags",1,"card-list"],[4,"ngIf","ngIfElse"],["noFlags",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],[3,"commentBodySegments"],[3,"flag","flagResolvedCallback"],["nzSpan","16"],[4,"ngIf"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"user"],["nz-icon","","nzType","civic:flag"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(s,g){if(1&s&&(t.YNc(0,yn,1,1,"nz-alert",0),t.YNc(1,mn,1,1,"nz-alert",1),t.TgZ(2,"nz-card",2),t.YNc(3,an,3,1,"ng-container",3),t.YNc(4,Sn,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&s){const v=t.MAs(5);t.Q6J("ngForOf",g.errors),t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(2),t.Q6J("ngIf",g.flags&&g.flags.length>0)("ngIfElse",v)}},directives:[n.sg,I.r,n.O5,$.bd,C.NU,C.$1,h.m,Q.g,_n,m.SK,m.t3,gn.ZU,Tn.I,V.Ls,b.w,xn.h,pn.p9],pipes:[hn.wr],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})();var Pn=i(1243);function In(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",8),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function Qn(c,p){if(1&c&&t._UZ(0,"nz-alert",9),2&c){t.oxw();const s=t.MAs(4);t.Q6J("nzDescription",s)}}function Jn(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function Yn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,Jn,2,1,"li",10),t.qZA()),2&c){const s=t.oxw();t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Un(c,p){}function Dn(c,p){1&c&&t.YNc(0,Un,0,0,"ng-template")}function $n(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Dn,1,0,void 0,15),t.BQk()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Bn(c,p){}function wn(c,p){1&c&&t.YNc(0,Bn,0,0,"ng-template")}function jn(c,p){if(1&c&&(t.TgZ(0,"span",16),t.YNc(1,wn,1,0,void 0,15),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Wn(c,p){if(1&c&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"enumToTitle"),t.qZA()),2&c){const s=t.oxw().ngrxLet,g=t.oxw();t.Q6J("disabled",!(void 0!==g.comment&&g.comment.length>=10&&s.signedIn)),t.xp6(1),t.hij(" Flag ",t.lcZ(2,2,g.flaggable.entityType)," ")}}function Vn(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"cvc-form-buttons"),t.TgZ(2,"cvc-org-selector-btn-group",11),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.YNc(3,$n,2,1,"ng-container",12),t.YNc(4,jn,2,1,"ng-template",null,13,t.W1O),t.YNc(6,Wn,3,4,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=p.ngrxLet,g=t.MAs(5);t.xp6(3),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}let Kn=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.destroy$=new T.xQ,this.addFlagMutator=new Y.U(v)}ngOnInit(){if(this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg}),void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(s){this.selectedOrg=s}submitFlag(){var s;this.errorMessages=[];let g={comment:this.comment,subject:this.flaggable,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id},v=this.addFlagMutator.mutate(this.gql,{input:g});v.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(D=>{D&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),v.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(D=>{D.length>0&&(this.errorMessages=D)}),v.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(D=>{this.loading=D})}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.B0s),t.Y36(M.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"selectedOrgChange"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to flag entity."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(s,g){1&s&&(t.TgZ(0,"nz-card",0),t.YNc(1,In,1,0,"nz-alert",1),t.YNc(2,Qn,1,1,"nz-alert",2),t.YNc(3,Yn,2,1,"ng-template",null,3,t.W1O),t.TgZ(5,"form",4),t.NdJ("ngSubmit",function(){return g.submitFlag()}),t.TgZ(6,"cvc-comment-input-form",5),t.NdJ("commentChange",function(D){return g.comment=D}),t.qZA(),t.TgZ(7,"nz-spin",6),t.TgZ(8,"nz-form-item"),t.TgZ(9,"nz-form-control"),t.YNc(10,Vn,8,2,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngIf",g.errorMessages.length>0),t.xp6(4),t.Q6J("comment",g.comment),t.xp6(1),t.Q6J("nzSpinning",g.loading),t.xp6(3),t.Q6J("ngrxLet",g.viewer$))},directives:[$.bd,n.O5,I.r,n.sg,K._Y,K.JL,K.F,W.Lr,z.b,E.W,m.SK,W.Nx,m.t3,W.Fd,x.eJ,A.Z,B.q,n.tP,Z.SY,R.ix,L.dQ,G.m,b.w],pipes:[Pn.I],styles:[""]}),c})();var Hn=i(8747),Gn=i(6699);function kn(c,p){if(1&c&&(t._UZ(0,"cvc-flag-list",13),t.ALo(1,"ngrxPush")),2&c){const s=t.oxw(2);t.Q6J("flags",t.lcZ(1,2,s.flags$))("flagResolvedCallback",s.refresh)}}function Xn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw(2).ngrxLet;return t.oxw(2).loadMore(null==v?null:v.endCursor)}),t._uU(1,"Load More"),t.qZA()}}function qn(c,p){1&c&&(t.ynx(0),t.YNc(1,Xn,2,0,"button",15),t.BQk())}function nt(c,p){if(1&c&&(t.ynx(0),t.YNc(1,qn,2,0,"ng-container",14),t.BQk()),2&c){const s=p.ngrxLet;t.xp6(1),t.Q6J("ngIf",null==s?null:s.hasNextPage)}}function tt(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw(2);t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}function et(c,p){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.Oqu(s.displayName)}}function ot(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function it(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function at(c,p){if(1&c&&(t.YNc(0,ot,1,1,"nz-avatar",18),t.YNc(1,it,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function st(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function ct(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function lt(c,p){if(1&c&&(t.YNc(0,st,1,1,"nz-avatar",18),t.YNc(1,ct,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function rt(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,kn,2,4,"cvc-flag-list",5),t.YNc(5,nt,2,1,"ng-container",6),t.YNc(6,tt,1,2,"cvc-flag-add-form",7),t.qZA(),t.qZA(),t.TgZ(7,"nz-col",8),t.TgZ(8,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onStateSelected(v)}),t.YNc(9,et,2,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onFlaggingUsersSelected(v)}),t.ALo(12,"ngrxPush"),t.YNc(13,at,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(15,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onResolvingUsersSelected(v)}),t.ALo(16,"ngrxPush"),t.YNc(17,lt,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(4),t.Q6J("ngrxLet",s.pageInfo$),t.xp6(3),t.Q6J("preselectedOption",s.selectableStates[0])("participantList",s.selectableStates),t.xp6(3),t.Q6J("participantList",t.lcZ(12,6,s.uniqueFlaggingUsers$)),t.xp6(4),t.Q6J("participantList",t.lcZ(16,8,s.uniqueResolvingUsers$))}}function _t(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw();t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}let gt=(()=>{class c{constructor(s){this.gql=s,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:_.BQZ.Open},{id:2,displayName:"Resolved",value:_.BQZ.Resolved}]}ngOnInit(){if(null==this.flaggable)throw new Error("Must pass a flaggable into flag list");this.queryRef=this.gql.watch({first:this.defaultPageSize,flaggable:this.flaggable,state:_.BQZ.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,a.j)("data","flags","edges"),(0,u.U)(s=>s.map(g=>g.node))),this.pageInfo$=this.results$.pipe((0,a.j)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,a.j)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,u.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueFlaggingUsers})),this.uniqueResolvingUsers$=this.results$.pipe((0,u.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueResolvingUsers}))}onFlaggingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:s?s.id:void 0})}onResolvingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:s?s.id:void 0})}onStateSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:s?s.value:void 0})}loadMore(s){var g;null===(g=this.queryRef)||void 0===g||g.fetchMore({variables:{first:this.defaultPageSize,after:s}})}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.rzy))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noFlags",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"flags","flagResolvedCallback",4,"nzSpaceItem"],[4,"ngrxLet"],[3,"flaggable","flagAddedCallback",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Flag State",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"]],template:function(s,g){if(1&s&&(t.YNc(0,rt,19,10,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,_t,1,2,"ng-template",null,1,t.W1O)),2&s){const v=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,g.unfilteredCount$))("ngIfElse",v)}},directives:[n.O5,m.SK,m.t3,C.NU,C.$1,Nn,x.eJ,R.ix,L.dQ,b.w,Kn,Hn.l,Gn.Dz],pipes:[x.fM,n.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})()},4271:(H,N,i)=>{i.d(N,{M:()=>q});var _=i(9808),a=i(6949),u=i(3868),t=i(7345),n=i(7484),m=i(4546),C=i(3762),T=i(8625),y=i(4182),M=i(1825),I=i(6042),$=i(4375),h=i(2359),Q=i(404),Y=i(9444),w=i(4509),x=i(7525),Z=i(5e3);let R=(()=>{class S{}return S.\u0275fac=function(tn){return new(tn||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({imports:[[_.ez,y.u5,y.UX,a.WG,m.U5,I.sL,n.vh,h.L,Q.cg,x.j,M.A,$.R,Y.s,w.w]]}),S})();var L=i(9779),b=i(8144),J=i(1894),V=i(8481),K=i(3618),W=i(6699),z=i(3580),E=i(8018),A=i(6286),B=i(4867),G=i(8645),f=i(685),P=i(592),O=i(6114),j=i(5737),k=i(647),en=i(3610),sn=i(1047);let cn=(()=>{class S{}return S.\u0275fac=function(tn){return new(tn||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({imports:[[_.ez,y.UX,a.WG,I.sL,m.U5,y.u5,h.L,n.vh,en.$6,k.PV,Q.cg,x.j,w.w,$.R,M.A]]}),S})();var on=i(7026),ln=i(8909);let U=(()=>{class S{}return S.\u0275fac=function(tn){return new(tn||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({imports:[[_.ez,J.Jb,C.Ph,n.vh,b.zf,V.X,K.ZJ,W.Rt,f.Xo,O.Wr,j.S,Q.cg,C.Ph,en.$6,k.PV,sn.o7,y.u5,T.$L.forChild({formatter:{useClass:on.x,provide:T.KP}}),M.A,L.s,t.W,z.Q,E.e,A.y,B.Q,G.M,P.x,I.sL,h.L,a.WG,cn,j.S,ln.m]]}),S})();var X=i(1150);let q=(()=>{class S{}return S.\u0275fac=function(tn){return new(tn||S)},S.\u0275mod=Z.oAB({type:S}),S.\u0275inj=Z.cJS({imports:[[_.ez,y.u5,a.WG,T.$L.forChild({formatter:{useClass:on.x,provide:T.KP}}),I.sL,m.U5,u.aF,I.sL,t.W,C.Ph,n.vh,R,U,f.Xo,X.N,W.Rt,b.zf]]}),S})()},8168:(H,N,i)=>{i.d(N,{Y:()=>a});var _=i(5e3);let a=(()=>{class u{constructor(){}}return u.\u0275fac=function(n){return new(n||u)},u.\u0275dir=_.lG2({type:u,selectors:[["","cvcFlaggableOptions",""]]}),u})()},5623:(H,N,i)=>{i.d(N,{o:()=>w});var _=i(5e3),a=i(8168),u=i(9808),t=i(4401),n=i(647),m=i(404);const C=["cvcFlaggable",""];function T(x,Z){1&x&&_.Hsn(0)}function y(x,Z){1&x&&_.GkF(0)}function M(x,Z){if(1&x&&(_.ynx(0),_.YNc(1,y,1,0,"ng-container",2),_.BQk()),2&x){_.oxw();const R=_.MAs(1);_.xp6(1),_.Q6J("ngTemplateOutlet",R)}}function I(x,Z){if(1&x&&(_.TgZ(0,"a",6),_._UZ(1,"i",7),_.qZA()),2&x){_.oxw();const R=_.MAs(5);_.xp6(1),_.Q6J("nzTooltipTitle",R)}}function $(x,Z){if(1&x&&_._uU(0),2&x){const R=_.oxw(2);_.hij(" ",R.flags," open flags ")}}function h(x,Z){1&x&&_.GkF(0)}function Q(x,Z){if(1&x&&(_.ynx(0),_.TgZ(1,"nz-ribbon",3),_.YNc(2,I,2,1,"ng-template",null,4,_.W1O),_.YNc(4,$,1,1,"ng-template",null,5,_.W1O),_.YNc(6,h,1,0,"ng-container",2),_.qZA(),_.BQk()),2&x){const R=_.MAs(3);_.oxw();const L=_.MAs(1);_.xp6(1),_.Q6J("nzText",R),_.xp6(5),_.Q6J("ngTemplateOutlet",L)}}const Y=["*"];let w=(()=>{class x{constructor(R){this.renderer=R}ngOnChanges(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}ngAfterViewInit(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}addFlagged(){this.flaggedChild&&this.renderer.addClass(this.flaggedChild.nativeElement,"flaggedChild")}removeFlagged(){this.flaggedChild&&this.renderer.removeClass(this.flaggedChild.nativeElement,"flaggedChild")}}return x.\u0275fac=function(R){return new(R||x)(_.Y36(_.Qsj))},x.\u0275cmp=_.Xpm({type:x,selectors:[["","cvcFlaggable",""]],contentQueries:function(R,L,b){if(1&R&&_.Suo(b,a.Y,5,_.SBq),2&R){let J;_.iGM(J=_.CRH())&&(L.flaggedChild=J.first)}},inputs:{flags:"flags",entity:"entity"},features:[_.TTD],attrs:C,ngContentSelectors:Y,decls:4,vars:2,consts:[["flaggedContent",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["flaggedText",""],["flaggedTooltip",""],["routerLink","flags",2,"color","#FFF"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(R,L){1&R&&(_.F$t(),_.YNc(0,T,1,0,"ng-template",null,0,_.W1O),_.YNc(2,M,2,1,"ng-container",1),_.YNc(3,Q,7,2,"ng-container",1)),2&R&&(_.xp6(2),_.Q6J("ngIf",0===L.flags),_.xp6(1),_.Q6J("ngIf",L.flags))},directives:[u.O5,u.tP,t.F9,n.Ls,m.SY],styles:[""]}),x})()},4682:(H,N,i)=>{i.d(N,{m:()=>C});var _=i(9808),a=i(404),u=i(3618),t=i(4401),n=i(647),m=i(5e3);let C=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275mod=m.oAB({type:T}),T.\u0275inj=m.cJS({imports:[[_.ez,n.PV,t.mS,a.cg,u.ZJ]]}),T})()},1835:(H,N,i)=>{i.d(N,{i:()=>ln});var _=i(9808),a=i(7484),u=i(3762),t=i(1894),n=i(5e3);let m=(()=>{class U{}return U.\u0275fac=function(q){return new(q||U)},U.\u0275mod=n.oAB({type:U}),U.\u0275inj=n.cJS({imports:[[_.ez,t.Jb]]}),U})();var C=i(8144);let T=(()=>{class U{}return U.\u0275fac=function(q){return new(q||U)},U.\u0275mod=n.oAB({type:U}),U.\u0275inj=n.cJS({imports:[[_.ez,a.vh,u.Ph,t.Jb,C.zf]]}),U})();var y=i(9779),M=i(1825),I=i(8481),$=i(3618),h=i(6699),Q=i(8625),Y=i(7345),w=i(3580),x=i(8018),Z=i(6286),R=i(4867),L=i(8645),b=i(5482),J=i(685),V=i(592),K=i(6114),W=i(5737),z=i(404),E=i(6042),A=i(2359),B=i(6949),G=i(647),f=i(3610),P=i(1047),O=i(4182),j=i(9444),k=i(3098),en=i(7026),sn=i(4509),cn=i(8909),on=i(209);let ln=(()=>{class U{}return U.\u0275fac=function(q){return new(q||U)},U.\u0275mod=n.oAB({type:U}),U.\u0275inj=n.cJS({imports:[[_.ez,t.Jb,u.Ph,a.vh,C.zf,I.X,$.ZJ,h.Rt,J.Xo,K.Wr,W.S,z.cg,u.Ph,f.$6,G.PV,P.o7,k.q6,W.S,O.u5,Q.$L.forChild({formatter:{useClass:en.x,provide:Q.KP}}),M.A,T,y.s,m,Y.W,w.Q,x.e,Z.y,R.Q,on.i,L.M,V.x,sn.w,j.s,cn.m,b.cD,E.sL,A.L,B.WG]]}),U})()},8291:(H,N,i)=>{i.d(N,{a:()=>xe});var _=i(712),a=i(373),u=i(4850),t=i(1059),n=i(5e3),m=i(325),C=i(9808),T=i(1894),y=i(8144),M=i(8929),I=i(6123),$=i(7625),h=i(9350),Q=i(9169),Y=i(2359),w=i(6949),x=i(7484),Z=i(5482),R=i(3762);const L=["itemTemplate"],b=function(e){return{$implicit:e}};function J(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",9),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function V(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}function K(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",14),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function W(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Removed")}}function z(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,K,3,4,"nz-list-item",13),n.YNc(2,W,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Removed ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.removedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.removedObjects.length)}}function E(e,l){1&e&&(n.ynx(0),n.YNc(1,z,3,3,"nz-list",7),n.BQk())}function A(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",16),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(2);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function B(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(2);n.MGl("nzNoResult","No ",o.entityType," Added")}}function G(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,A,3,4,"nz-list-item",15),n.YNc(2,B,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw();n.MGl("nzHeader","Added ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.addedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.addedObjects.length)}}function f(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",18),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function P(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Kept")}}function O(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,f,3,4,"nz-list-item",17),n.YNc(2,P,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Kept ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.keptObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.keptObjects.length)}}function j(e,l){1&e&&(n.ynx(0),n.YNc(1,O,3,3,"nz-list",7),n.BQk())}function k(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",19),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,b,o))}}function en(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}let sn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.diffObject)throw new Error("Must specify a diffObject.");if(void 0===this.entityType)throw new Error("Must specify an entityType.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(o,r,d){if(1&o&&n.Suo(d,L,5),2&o){let F;n.iGM(F=n.CRH())&&(r.itemTemplateRef=F.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:12,consts:[[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader"],["ngClass","current",4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nzDirection","vertical"],[4,"ngIf"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader",4,"nzSpaceItem"],["ngClass","suggested",4,"ngFor","ngForOf"],["ngClass","current"],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoResult"],["ngClass","removed",4,"ngFor","ngForOf"],["ngClass","removed"],["ngClass","added",4,"ngFor","ngForOf"],["ngClass","added"],["ngClass","kept",4,"ngFor","ngForOf"],["ngClass","kept"],["ngClass","suggested"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"nz-list",2),n.YNc(3,J,3,4,"nz-list-item",3),n.YNc(4,V,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"nz-space",5),n.YNc(7,E,2,0,"ng-container",6),n.YNc(8,G,3,3,"nz-list",7),n.YNc(9,j,2,0,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(10,"nz-col",1),n.TgZ(11,"nz-list",2),n.YNc(12,k,3,4,"nz-list-item",8),n.YNc(13,en,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Original ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.currentObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.currentObjects.length),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Revised ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.suggestedObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.suggestedObjects.length))},directives:[T.SK,T.t3,R.n_,C.sg,R.AA,C.mk,C.tP,C.O5,R.I2,y.NU,y.$1],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})();var cn=i(6906),on=i(4022),ln=i(7469),U=i(8481),X=i(7701),q=i(7956),S=i(8664),nn=i(9001);let tn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.left)throw new Error("Must provide a left side of the diff.");if(void 0===this.right)throw new Error("Must provide a right side of the diff.");if(void 0===this.entityType)throw new Error("Must provide a diff.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-value-diff"]],inputs:{currentValue:"currentValue",suggestedValue:"suggestedValue",left:"left",right:"right",entityType:"entityType"},decls:15,vars:10,consts:[[3,"nzGutter"],[3,"nzSpan"],[3,"innerHtml"],[1,"diff","suggested"],[1,"background"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"h4"),n._uU(3),n.qZA(),n._UZ(4,"div",2),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"h4"),n._uU(7),n.qZA(),n._UZ(8,"div",2),n.qZA(),n.TgZ(9,"nz-col",1),n.TgZ(10,"h4"),n._uU(11),n.qZA(),n.TgZ(12,"div",3),n.TgZ(13,"div",4),n._uU(14),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Original ",r.entityType,""),n.xp6(1),n.Q6J("innerHtml",r.left,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("",r.entityType," Diff"),n.xp6(1),n.Q6J("innerHtml",r.right,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Revised ",r.entityType,""),n.xp6(3),n.hij(" ",r.suggestedValue," "))},directives:[T.SK,T.t3],styles:[":host{display:block}.diff{overflow:auto;width:100%}.diff .background{padding:4px 8px}.diff.insertions .background{background:#f6ffed;color:#237804}.diff.deletions .background{background:#fff1f0;color:#a8071a}.diff.suggested .background,.diff.original .background{background:#f0f5ff;color:#10239e}.diff del,.diff ins{text-decoration:none}.diff del strong{font-weight:400;background:#fcc}.diff ins strong{font-weight:400;background:#9f9}.diff .del{font-weight:400;background:#fee;color:#b00}.diff .ins{font-weight:400;background:#dfd;color:#080}ul{list-style:none}\n"],encapsulation:2}),e})();var fn=i(5737),un=i(7948),zn=i(3618),Cn=i(125),_n=i(647),gn=i(2683),Tn=i(3610),xn=i(4590),pn=i(6042),hn=i(6114),yn=i(404),mn=i(685),dn=i(2643),Zn=i(9383),An=i(8227),On=i(1793),vn=i(3098),Rn=i(1243),Fn=i(8625);function Ln(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",4),n.NdJ("nzOnClose",function(){const F=n.CHM(o).$implicit;return n.oxw().onErrorBannerClose(F)}),n.qZA()}2&e&&n.Q6J("nzMessage",l.$implicit)}function Mn(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",5),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw().onSuccessBannerClose()}),n.qZA()}if(2&e){const o=n.oxw();n.MGl("nzMessage","Revision(s) successfully ",o.success,".")}}function bn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function En(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",18),n.YNc(2,bn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const an=function(e,l,o){return{id:e,name:l,link:o}};function Sn(e,l){if(1&e&&n._UZ(0,"cvc-disease-tag",22),2&e){const o=l.$implicit;n.Q6J("disease",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Nn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",21),n.YNc(2,Sn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Pn(e,l){if(1&e&&n._UZ(0,"cvc-drug-tag",24),2&e){const o=l.$implicit;n.Q6J("drug",n.kEZ(1,an,o.id,o.displayName,o.link))}}function In(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",23),n.YNc(2,Pn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Qn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Jn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",25),n.YNc(2,Qn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Yn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Un(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",26),n.YNc(2,Yn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Dn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function $n(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,Dn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Bn(e,l){if(1&e&&n._UZ(0,"cvc-variant-type-tag",29),2&e){const o=l.$implicit;n.Q6J("variantType",n.kEZ(1,an,o.id,o.displayName,o.link))}}function wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",28),n.YNc(2,Bn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function jn(e,l){if(1&e&&n._UZ(0,"cvc-phenotype-tag",31),2&e){const o=l.$implicit;n.Q6J("phenotype",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",30),n.YNc(2,jn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Vn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Kn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",32),n.YNc(2,Vn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Hn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Gn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",34),n.YNc(2,Hn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function kn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function Xn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",35),n.YNc(2,kn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const qn=function(e,l,o,r){return{id:e,name:l,link:o,status:r}};function nt(e,l){if(1&e&&n._UZ(0,"cvc-evidence-tag",37),2&e){const o=l.$implicit;n.Q6J("evidence",n.l5B(1,qn,o.id,o.displayName,o.link,o.status))}}function tt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",36),n.YNc(2,nt,1,6,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function et(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-revision-value-diff",38),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("currentValue",o.currentValue)("suggestedValue",o.suggestedValue)("left",o.linkoutData.diffValue.left)("right",o.linkoutData.diffValue.right)("entityType",o.linkoutData.name)}}function ot(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-comment-body",42),n.BQk()),2&e){const o=n.oxw(2).$implicit;n.xp6(1),n.Q6J("commentBodySegments",o.resolutionComment.parsedComment)}}function it(e,l){if(1&e&&n._UZ(0,"cvc-user-tag",43),2&e){const o=n.oxw(2).$implicit;n.Q6J("user",o.resolver)}}function at(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"nz-divider"),n.TgZ(2,"nz-row"),n.TgZ(3,"nz-col",39),n.YNc(4,ot,2,1,"ng-container",15),n.qZA(),n.TgZ(5,"nz-col",40),n._uU(6),n.ALo(7,"enumToTitle"),n.YNc(8,it,1,1,"cvc-user-tag",41),n._uU(9),n.ALo(10,"timeago"),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(4),n.Q6J("ngIf",o.resolutionComment),n.xp6(2),n.hij(" ",n.lcZ(7,4,o.status)," By "),n.xp6(2),n.Q6J("ngIf",void 0!==o.resolver),n.xp6(1),n.hij(" ",n.lcZ(10,6,o.resolvedAt)," ")}}function st(e,l){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"i",45),n._uU(2),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.qZA()),2&e){const o=n.oxw(2).$implicit;n.xp6(2),n.hij(" RID",o.id," "),n.xp6(2),n.hij("",o.linkoutData.name," Updated")}}function ct(e,l){if(1&e&&n._UZ(0,"i",48),2&e){n.oxw();const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function lt(e,l){if(1&e&&n._UZ(0,"cvc-comment-body",42),2&e){const o=n.oxw(3).$implicit;n.Q6J("commentBodySegments",o.creationComment.parsedComment)}}function rt(e,l){1&e&&(n.ynx(0),n.YNc(1,ct,1,1,"i",46),n.YNc(2,lt,1,1,"ng-template",null,47,n.W1O),n.BQk())}function _t(e,l){if(1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,st,5,2,"span",44),n.YNc(2,rt,4,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",o.creationComment)}}function gt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",55),n._uU(2,"Submitted By"),n.qZA(),n._UZ(3,"cvc-user-tag",43),n.BQk()),2&e){const o=n.oxw(3).$implicit;n.xp6(3),n.Q6J("user",o.revisor)}}function c(e,l){1&e&&(n.TgZ(0,"span",55),n._uU(1,"Submitted"),n.qZA())}function p(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,gt,4,1,"ng-container",53),n.YNc(2,c,2,0,"ng-template",null,54,n.W1O),n.TgZ(4,"span",55),n._uU(5),n.ALo(6,"timeago"),n.qZA(),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",r.revisor)("ngIfElse",o),n.xp6(4),n.Oqu(n.lcZ(6,3,r.createdAt))}}function s(e,l){if(1&e&&n._UZ(0,"cvc-status-tag",56),2&e){const o=n.oxw(2).$implicit;n.Q6J("status",o.status)}}function g(e,l){1&e&&n._UZ(0,"nz-divider",57)}function v(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"a",58),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).$implicit;return n.oxw(3).onChangesetSelected(d.revisionsetId)}),n._uU(1,"Show Group"),n.qZA()}}function D(e,l){1&e&&n._UZ(0,"nz-divider",57)}function pt(e,l){1&e&&n._UZ(0,"label",61),2&e&&n.Q6J("nzDisabled",!0)}function mt(e,l){1&e&&n._UZ(0,"label",64),2&e&&n.Q6J("nzDisabled",!0)}function dt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"label",65),n.NdJ("nzCheckedChange",function(d){n.CHM(o);const F=n.oxw(5).$implicit;return n.oxw(3).onRevisionCheckboxClicked(d,F.id)}),n.qZA()}}function vt(e,l){if(1&e&&(n.YNc(0,mt,1,1,"label",62),n.YNc(1,dt,1,0,"ng-template",null,63,n.W1O)),2&e){const o=n.MAs(2),r=n.oxw(4).$implicit,d=n.oxw(2).ngrxLet;n.Q6J("ngIf",d.isCurator&&d.id!=(null==r.revisor?null:r.revisor.id))("ngIfElse",o)}}function ft(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,pt,1,1,"label",59),n.YNc(2,vt,3,2,"ng-template",null,60,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(5).ngrxLet;n.xp6(1),n.Q6J("ngIf",!r.signedIn)("ngIfElse",o)}}function ut(e,l){1&e&&(n.ynx(0),n.YNc(1,D,1,0,"nz-divider",51),n.YNc(2,ft,4,2,"span",44),n.BQk())}function zt(e,l){if(1&e&&(n.TgZ(0,"nz-space",49),n.NdJ("click",function(r){return r.stopPropagation()}),n.YNc(1,p,7,5,"span",44),n.YNc(2,s,1,1,"cvc-status-tag",50),n.YNc(3,g,1,0,"nz-divider",51),n.YNc(4,v,2,0,"a",52),n.YNc(5,ut,3,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(5),n.Q6J("ngIf","NEW"===o.status)}}function Ct(e,l){if(1&e&&(n.TgZ(0,"nz-collapse-panel",11),n.ynx(1,12),n.YNc(2,En,4,1,"ng-container",13),n.YNc(3,Nn,4,1,"ng-container",13),n.YNc(4,In,4,1,"ng-container",13),n.YNc(5,Jn,4,1,"ng-container",13),n.YNc(6,Un,4,1,"ng-container",13),n.YNc(7,$n,4,1,"ng-container",13),n.YNc(8,wn,4,1,"ng-container",13),n.YNc(9,Wn,4,1,"ng-container",13),n.YNc(10,Kn,4,1,"ng-container",13),n.YNc(11,Gn,4,1,"ng-container",13),n.YNc(12,Xn,4,1,"ng-container",13),n.YNc(13,tt,4,1,"ng-container",13),n.YNc(14,et,2,5,"ng-container",14),n.BQk(),n.YNc(15,at,11,8,"ng-container",15),n.YNc(16,_t,3,1,"ng-template",null,16,n.W1O),n.YNc(18,zt,6,1,"ng-template",null,17,n.W1O),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(17),d=n.MAs(19);n.Q6J("nzHeader",r)("nzExtra",d)("nzActive",!0),n.xp6(1),n.Q6J("ngSwitch",o.fieldName),n.xp6(1),n.Q6J("ngSwitchCase","source_ids"),n.xp6(1),n.Q6J("ngSwitchCase","disease_id"),n.xp6(1),n.Q6J("ngSwitchCase","drug_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clinvar_entry_ids"),n.xp6(1),n.Q6J("ngSwitchCase","hgvs_expression_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_type_ids"),n.xp6(1),n.Q6J("ngSwitchCase","phenotype_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_id"),n.xp6(1),n.Q6J("ngSwitchCase","variant_ids"),n.xp6(1),n.Q6J("ngSwitchCase","source_id"),n.xp6(1),n.Q6J("ngSwitchCase","evidence_item_ids"),n.xp6(2),n.Q6J("ngIf","NEW"!==o.status)}}function Tt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse",9),n.YNc(1,Ct,20,17,"nz-collapse-panel",10),n.qZA()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",o.untypedRevisons)}}function xt(e,l){1&e&&n._UZ(0,"nz-empty",66)}function ht(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",6),n.YNc(2,Tt,2,1,"nz-collapse",7),n.YNc(3,xt,1,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.MAs(4),r=n.oxw(),d=n.MAs(4);n.xp6(1),n.Q6J("nzExtra",d),n.xp6(1),n.Q6J("ngIf",r.revisions&&r.revisions.length>0)("ngIfElse",o)}}function yt(e,l){}function Zt(e,l){1&e&&n.YNc(0,yt,0,0,"ng-template")}function At(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Zt,1,0,void 0,75),n.BQk()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Ot(e,l){}function Rt(e,l){1&e&&n.YNc(0,Ot,0,0,"ng-template")}function Ft(e,l){if(1&e&&(n.TgZ(0,"span",76),n.YNc(1,Rt,1,0,void 0,75),n.qZA()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Lt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",77),n.NdJ("nzPopoverVisibleChange",function(d){return n.CHM(o),n.oxw(7).validationPopoverVisible=d})("click",function(){n.CHM(o);const d=n.oxw(7);return d.validationPopoverVisible=!d.validationPopoverVisible}),n._uU(1," Review Selected Revisions "),n._UZ(2,"i",78),n.qZA()}if(2&e){const o=n.oxw(2).ngrxLet,r=n.MAs(7),d=n.MAs(9),F=n.oxw(5);n.Q6J("nzPopoverTitle",r)("nzPopoverVisible",F.validationPopoverVisible)("nzPopoverContent",d)("nzPopoverTrigger",void 0)("disabled",0===F.selectedRevisionIds.length||!o.signedIn)}}function Mt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,At,2,1,"ng-container",53),n.YNc(2,Ft,2,1,"ng-template",null,73,n.W1O),n.YNc(4,Lt,3,5,"ng-template",null,74,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)("ngIfElse",o)}}function bt(e,l){if(1&e&&n._UZ(0,"i",80),2&e){n.oxw(4);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Et(e,l){1&e&&(n.ynx(0),n.YNc(1,bt,1,1,"i",79),n.BQk())}const St=function(){return{float:"right"}};function Nt(e,l){if(1&e){const o=n.EpF();n._uU(0," Review Selected Revisions "),n.TgZ(1,"span",81),n.TgZ(2,"i",82),n.NdJ("click",function(){return n.CHM(o),n.oxw(6).validationPopoverVisible=!1}),n.qZA(),n.qZA()}2&e&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,St)))}function Pt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-comment-input-form",85),n.NdJ("commentChange",function(d){return n.CHM(o),n.oxw(7).revisionComment=d}),n.qZA()}if(2&e){const o=n.oxw(7);n.Q6J("comment",o.revisionComment)}}function It(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",87),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onRejectRevisionsClicked()}),n._uU(3," Reject Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(8);n.xp6(1),n.Q6J("selectedOrg",o.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",o.isLoading)("disabled",void 0===o.revisionComment||o.revisionComment.length<10)}}function Qt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",88),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onAcceptRevisionClicked()}),n._uU(3," Accept Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(4).ngrxLet,r=n.oxw(4);n.xp6(1),n.Q6J("selectedOrg",r.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",r.isLoading)("disabled",!(0==o&&(void 0===r.revisionComment||""===r.revisionComment||r.revisionComment.length>=10)))}}function Jt(e,l){if(1&e&&n._UZ(0,"i",90),2&e){n.oxw(6);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Yt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Jt,1,1,"i",89),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(1),n.Q6J("ngIf",o>0)}}function Ut(e,l){1&e&&(n.TgZ(0,"span"),n.TgZ(1,"nz-space"),n.YNc(2,It,4,3,"span",44),n.YNc(3,Qt,4,3,"span",44),n.YNc(4,Yt,2,1,"span",44),n.qZA(),n.qZA())}function Dt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Pt,1,1,"cvc-comment-input-form",84),n.YNc(2,Ut,5,0,"span",44),n.qZA())}function $t(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"div",68),n.TgZ(2,"div",69),n.TgZ(3,"nz-space",70),n.YNc(4,Mt,6,2,"span",44),n.YNc(5,Et,2,0,"ng-container",15),n.qZA(),n.YNc(6,Nt,3,2,"ng-template",null,71,n.W1O),n.YNc(8,Dt,3,0,"ng-template",null,72,n.W1O),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().ngrxLet;n.xp6(5),n.Q6J("ngIf",o>0)}}function Bt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,$t,10,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(4);n.xp6(1),n.Q6J("ngrxLet",o.viewer$)}}function wt(e,l){if(1&e&&(n.TgZ(0,"nz-list-item"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o)}}function jt(e,l){if(1&e&&(n.TgZ(0,"nz-card",92),n.TgZ(1,"nz-list",93),n.YNc(2,wt,2,1,"nz-list-item",94),n.qZA(),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Wt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,jt,3,1,"nz-card",91),n.qZA()),2&e){const o=n.oxw(2).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Vt(e,l){if(1&e&&(n.TgZ(0,"nz-descriptions-item",99),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.Q6J("nzTitle",o.fieldName),n.xp6(1),n.Oqu(o.error)}}function Kt(e,l){if(1&e&&(n.TgZ(0,"nz-card",96),n.TgZ(1,"nz-descriptions",97),n.YNc(2,Vt,2,2,"nz-descriptions-item",98),n.qZA(),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Ht(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Kt,3,1,"nz-card",95),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Gt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Wt,2,1,"span",44),n.YNc(2,Ht,2,1,"span",44),n.qZA())}function kt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Bt,2,1,"ng-container",2),n.YNc(2,Gt,3,0,"ng-template",null,67,n.W1O),n.BQk()),2&e){const o=n.oxw(3);n.xp6(1),n.Q6J("ngrxLet",o.totalErrorCount$)}}function Xt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,kt,4,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",o.genericErrors$)}}function qt(e,l){if(1&e&&n.YNc(0,Xt,2,1,"ng-container",2),2&e){const o=n.oxw();n.Q6J("ngrxLet",o.validationErrors$)}}let ne=(()=>{class e{constructor(o,r,d,F,rn){this.viewerService=o,this.networkErrorService=r,this.acceptRevisionsGql=d,this.rejectRevisionsGql=F,this.validationGql=rn,this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new M.xQ,this.revisionSetSelectedEvent=new n.vpe,this.revisionMutationCompleted=new n.vpe,this.acceptRevisionsMutator=new I.U(r),this.rejectRevisionsMutator=new I.U(r)}ngOnChanges(o){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(o=>{this.mostRecentOrg=o.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,u.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors)),this.validationErrors$=this.queryRef.valueChanges.pipe((0,u.U)(({data:o})=>o.validateRevisionsForAcceptance.validationErrors)),this.totalErrorCount$=this.queryRef.valueChanges.pipe((0,u.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors.length+o.validateRevisionsForAcceptance.validationErrors.length),(0,t.O)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(o){this.revisionSetSelectedEvent.emit(o)}onRevisionCheckboxClicked(o,r){o?this.selectedRevisionIds.push(r):this.selectedRevisionIds=this.selectedRevisionIds.filter(d=>d!=r),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(o,r){o.submitSuccess$.pipe((0,$.R)(this.destroy$)).subscribe(d=>{d&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=r,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])}),o.submitError$.pipe((0,$.R)(this.destroy$)).subscribe(d=>{d.length>0&&(this.isLoading=!1,this.success=!1,this.errors=d,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){var o;if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let r=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:this.revisionComment}});this.setupMutationResultHandlers(r,"rejected")}}onAcceptRevisionClicked(){var o;this.isLoading=!0;let r=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:""===this.revisionComment?void 0:this.revisionComment}});this.setupMutationResultHandlers(r,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(o){var r;this.errors=null===(r=this.errors)||void 0===r?void 0:r.filter(d=>d!=o)}onSuccessBannerClose(){this.success=!1}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(h.a),n.Y36(Q.Y),n.Y36(_.ti),n.Y36(_.VZq),n.Y36(_.Qzn))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.TTD],decls:5,vars:3,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["moderationButtons",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],["noRevisions",""],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["entityType","Sources",3,"diffObject"],["itemTemplate",""],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Drugs",3,"diffObject"],[3,"drug"],["entityType","Variant Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","HGVS Expressions",3,"diffObject"],["entityType","Variant Types",3,"diffObject"],[3,"variantType"],["entityType","Phenotypes",3,"diffObject"],[3,"phenotype"],["entityType","Variant",3,"diffObject"],[3,"variant"],["entityType","Variants",3,"diffObject"],["entityType","Source",3,"diffObject"],["entityType","Evidence",3,"diffObject"],[3,"evidence"],[3,"currentValue","suggestedValue","left","right","entityType"],["nzSpan","16"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"commentBodySegments"],[3,"user"],[4,"nzSpaceItem"],["nz-icon","","nzType","civic:revision"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent",4,"nzSpaceItem"],["creationCommentTemplate",""],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent"],["nzSize","small",3,"click"],[3,"status",4,"nzSpaceItem"],["nzType","vertical",4,"nzSpaceItem"],["nz-button","","nzType","link",3,"click",4,"nzSpaceItem"],[4,"ngIf","ngIfElse"],["noRevisor",""],["nz-typography","","nzType","secondary"],[3,"status"],["nzType","vertical"],["nz-button","","nzType","link",3,"click"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["loggedIn",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["canRevise",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Select Revision for Acceptance/Rejection",3,"nzCheckedChange"],["nzNotFoundImage","simple","nzNotFoundContent","No Revisions matching filters"],["validationErrorTemplate",""],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzDirection","vertical"],[3,"comment","commentChange",4,"nzSpaceItem"],[3,"comment","commentChange"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","",3,"nzLoading","disabled","click"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small",3,"nzLoading","disabled","click"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"ngIf"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],["nzTitle","Errors",4,"ngIf"],["nzTitle","Errors"],["nzSize","small"],[4,"ngFor","ngForOf"],["nzTitle","Validation Errors",4,"ngIf"],["nzTitle","Validation Errors"],["nzBordered",""],[3,"nzTitle",4,"ngFor","ngForOf"],[3,"nzTitle"]],template:function(o,r){1&o&&(n.YNc(0,Ln,1,1,"nz-alert",0),n.YNc(1,Mn,1,1,"nz-alert",1),n.YNc(2,ht,5,3,"ng-container",2),n.YNc(3,qt,1,1,"ng-template",null,3,n.W1O)),2&o&&(n.Q6J("ngForOf",r.errors),n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(1),n.Q6J("ngrxLet",r.viewer$))},directives:[C.sg,Y.r,C.O5,w.eJ,x.bd,Z.yH,Z.Zv,C.RF,C.n9,sn,cn.T,on.n,ln.u,U.j,X.j,q.i,S.I,nn.O,C.ED,tn,fn.g,T.SK,T.t3,un.m,zn.ZU,Cn.I,y.NU,y.$1,_n.Ls,gn.w,Tn.lU,xn.h,pn.ix,hn.Ie,yn.SY,mn.p9,C.tP,dn.dQ,C.PC,Zn.b,An.q,On.m,R.n_,R.AA,vn.R7,vn.uj],pipes:[Rn.I,Fn.wr],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}"]}),e})();var te=i(8747),ee=i(6699);function oe(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-revision-list",14),n.NdJ("revisionSetSelectedEvent",function(d){return n.CHM(o),n.oxw(2).onRevisionSetSelected(d)})("revisionMutationCompleted",function(){return n.CHM(o),n.oxw(2).refresh()}),n.ALo(1,"ngrxPush"),n.qZA()}if(2&e){const o=n.oxw(2);n.Q6J("revisions",n.lcZ(1,1,o.revisions$))}}function ie(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(null==d?null:d.endCursor)}),n._uU(1,"Load More"),n.qZA()}}function ae(e,l){1&e&&(n.ynx(0),n.YNc(1,ie,2,0,"button",16),n.BQk())}function se(e,l){if(1&e&&(n.ynx(0),n.YNc(1,ae,2,0,"ng-container",15),n.BQk()),2&e){const o=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",null==o?null:o.hasNextPage)}}function ce(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-row"),n.TgZ(1,"nz-tag",19),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw(3).onSetFilterClearClicked()}),n._uU(2),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(3);n.xp6(2),n.hij("Group: ",o.filteredSet,"")}}function le(e,l){1&e&&(n.TgZ(0,"nz-space",4),n.YNc(1,ce,3,1,"nz-row",18),n.qZA())}function re(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function _e(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ge(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function pe(e,l){if(1&e&&(n.YNc(0,_e,1,1,"nz-avatar",20),n.YNc(1,ge,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function me(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function de(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ve(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function fe(e,l){if(1&e&&(n.YNc(0,de,1,1,"nz-avatar",20),n.YNc(1,ve,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function ue(e,l){if(1&e){const o=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2),n.TgZ(2,"nz-col",3),n.TgZ(3,"nz-space",4),n.YNc(4,oe,2,3,"cvc-revision-list",5),n.YNc(5,se,2,1,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",7),n.YNc(7,le,2,0,"nz-space",8),n.TgZ(8,"cvc-participant-list",9),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onStatusSelected(d)}),n.YNc(9,re,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onRevisorSelected(d)}),n.ALo(12,"ngrxPush"),n.YNc(13,pe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onFieldNameSelected(d)}),n.ALo(16,"ngrxPush"),n.YNc(17,me,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",13),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onResolverSelected(d)}),n.ALo(20,"ngrxPush"),n.YNc(21,fe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&e){const o=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(4),n.Q6J("ngrxLet",o.pageInfo$),n.xp6(2),n.Q6J("ngIf",o.filteredSet),n.xp6(1),n.Q6J("preselectedOption",o.selectableStatuses[0])("participantList",o.selectableStatuses),n.xp6(3),n.Q6J("participantList",n.lcZ(12,8,o.uniqueRevisors$)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,10,o.revisionFields$)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,12,o.uniqueResolvers$))}}function ze(e,l){1&e&&(n.ynx(0),n.TgZ(1,"nz-row",25),n._UZ(2,"i",26),n.qZA(),n.BQk())}function Ce(e,l){1&e&&n._UZ(0,"nz-empty",27)}function Te(e,l){if(1&e&&(n.YNc(0,ze,3,0,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ce,1,0,"ng-template",null,24,n.W1O)),2&e){const o=n.MAs(3),r=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,r.isLoading$))("ngIfElse",o)}}let xe=(()=>{class e{constructor(o,r){this.gql=o,this.route=r,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:_.FJi.New},{id:1,displayName:"Accepted",value:_.FJi.Accepted},{id:2,displayName:"Rejected",value:_.FJi.Rejected},{id:3,displayName:"Superseded",value:_.FJi.Superseded}],this.defaultPageSize=10}ngOnInit(){this.routeSub=this.route.params.subscribe(o=>{this.queryRef=this.gql.watch({first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:_.FJi.New});let r=this.queryRef.valueChanges;this.revisions$=r.pipe((0,a.j)("data","revisions","edges"),(0,u.U)(d=>d.map(F=>F.node))),this.isLoading$=r.pipe((0,u.U)(d=>d.loading),(0,t.O)(!0)),this.pageInfo$=r.pipe((0,a.j)("data","revisions","pageInfo")),this.uniqueRevisors$=r.pipe((0,u.U)(({data:d})=>{var F;return null===(F=d.revisions)||void 0===F?void 0:F.uniqueRevisors})),this.uniqueResolvers$=r.pipe((0,u.U)(({data:d})=>{var F;return null===(F=d.revisions)||void 0===F?void 0:F.uniqueResolvers})),this.revisionFields$=r.pipe((0,u.U)(({data:d})=>{var F;return null===(F=d.revisions)||void 0===F?void 0:F.revisedFieldNames.map((rn,he)=>Object.assign(Object.assign({},rn),{id:he}))})),this.unfilteredCount$=r.pipe((0,a.j)("data","revisions","unfilteredCountForSubject"))})}ngOnDestroy(){var o;null===(o=this.routeSub)||void 0===o||o.unsubscribe()}onFieldNameSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},fieldName:o?o.name:void 0})}onRevisorSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},originatingUserId:o?o.id:void 0})}onResolverSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},resolvingUserId:o?o.id:void 0})}onStatusSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},status:o?o.value:void 0})}onRevisionSetSelected(o){this.filteredSet=o,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:o||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(o){var r;null===(r=this.queryRef)||void 0===r||r.fetchMore({variables:{first:this.defaultPageSize,after:o}})}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(_.L5n),n.Y36(m.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{id:"id",entityType:"entityType"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noRevisions",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"revisions","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Revision Status",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Revisors",3,"participantList","participantSelectedEvent"],["listTitle","Fields Revised",3,"participantList","participantSelectedEvent"],["listTitle","Resolvers",3,"participantList","participantSelectedEvent"],[3,"revisions","revisionSetSelectedEvent","revisionMutationCompleted"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[4,"nzSpaceItem"],["nzMode","closeable",3,"nzOnClose"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["noneFound",""],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(o,r){if(1&o&&(n.YNc(0,ue,23,14,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Te,4,4,"ng-template",null,1,n.W1O)),2&o){const d=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",d)}},directives:[C.O5,T.SK,T.t3,y.NU,y.$1,ne,w.eJ,pn.ix,dn.dQ,gn.w,U.j,te.l,ee.Dz,_n.Ls,mn.p9],pipes:[w.fM,C.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})()},2914:(H,N,i)=>{i.d(N,{A:()=>w});var _=i(9808),a=i(6949),u=i(1894),t=i(3762),n=i(7484),m=i(8144),C=i(8481),T=i(3618),y=i(1150),M=i(6699),I=i(1835),$=i(685),h=i(6042),Q=i(647),Y=i(5e3);let w=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=Y.oAB({type:x}),x.\u0275inj=Y.cJS({imports:[[_.ez,a.WG,u.Jb,t.Ph,n.vh,m.zf,C.X,T.ZJ,M.Rt,$.Xo,h.sL,Q.PV,y.N,I.i]]}),x})()},759:(H,N,i)=>{i.d(N,{N:()=>W});var _=i(373),a=i(5e3),u=i(712),t=i(3618),n=i(9808),m=i(325),C=i(6699),T=i(3610),y=i(6265),M=i(3098),I=i(2937);function $(z,E){1&z&&(a.ynx(0),a._uU(1,", "),a.BQk())}function h(z,E){if(1&z&&(a.ynx(0),a._uU(1),a.ALo(2,"eventVerbiage"),a.YNc(3,$,2,0,"ng-container",12),a.BQk()),2&z){const A=E.$implicit,B=E.last;a.xp6(1),a.hij(" ",a.Dn7(2,2,A.action,"contributor-card",A.count),""),a.xp6(2),a.Q6J("ngIf",!B)}}function Q(z,E){if(1&z&&(a.TgZ(0,"nz-descriptions",8),a.TgZ(1,"nz-descriptions-item",9),a.YNc(2,h,4,6,"ng-container",10),a.qZA(),a.TgZ(3,"nz-descriptions-item",11),a._uU(4),a.ALo(5,"date"),a.qZA(),a.qZA()),2&z){const A=a.oxw(2).$implicit;a.Q6J("nzColumn",1),a.xp6(2),a.Q6J("ngForOf",A.uniqueActions),a.xp6(2),a.hij(" ",a.lcZ(5,3,A.lastActionDate)," ")}}function Y(z,E){if(1&z&&(a.TgZ(0,"cvc-user-popover",6),a.YNc(1,Q,6,5,"ng-template",null,7,a.W1O),a.qZA()),2&z){const A=a.oxw().$implicit;a.Q6J("userId",A.user.id)}}function w(z,E){if(1&z&&(a.TgZ(0,"a",3),a._UZ(1,"nz-avatar",4),a.YNc(2,Y,3,1,"ng-template",null,5,a.W1O),a.qZA()),2&z){const A=E.$implicit,B=a.MAs(3);a.MGl("routerLink","/users/",A.user.id,""),a.xp6(1),a.Q6J("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",B)("nzSrc",A.user.profileImagePath)}}function x(z,E){if(1&z&&(a.ynx(0),a.YNc(1,w,4,5,"a",2),a.BQk()),2&z){const A=a.oxw();a.xp6(1),a.Q6J("ngForOf",A.sortedContributors)}}function Z(z,E){1&z&&a._uU(0," None\n")}let R=(()=>{class z{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((A,B)=>B.totalActionCount-A.totalActionCount)}}return z.\u0275fac=function(A){return new(A||z)},z.\u0275cmp=a.Xpm({type:z,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noContributors",""],["class","avatar",3,"routerLink",4,"ngFor","ngForOf"],[1,"avatar",3,"routerLink"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","bottomRight","nzIcon","user","nzSize","small",3,"nzSize","nzPopoverMouseEnterDelay","nzPopoverContent","nzSrc"],["curatorPopover",""],[3,"userId"],["additionalMetadata",""],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(A,B){if(1&A&&(a.YNc(0,x,2,1,"ng-container",0),a.YNc(1,Z,1,0,"ng-template",null,1,a.W1O)),2&A){const G=a.MAs(2);a.Q6J("ngIf",B.sortedContributors&&B.sortedContributors.length>0)("ngIfElse",G)}},directives:[n.O5,n.sg,m.yS,C.Dz,T.lU,y.q,M.R7,M.uj],pipes:[I.R,n.uU],styles:[""]}),z})();var L=i(6949);function b(z,E){if(1&z&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&z){const A=E.ngIf;a.xp6(1),a.Q6J("contributors",A)}}function J(z,E){1&z&&a._uU(0," None ")}function V(z,E){if(1&z&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&z){const A=E.ngIf;a.xp6(1),a.Q6J("contributors",A)}}function K(z,E){1&z&&a._uU(0," None ")}let W=(()=>{class z{constructor(A){this.gql=A}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let A=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=A.pipe((0,_.j)("data","contributors","curators")),this.editors$=A.pipe((0,_.j)("data","contributors","editors"))}}return z.\u0275fac=function(A){return new(A||z)(a.Y36(u.kQf))},z.\u0275cmp=a.Xpm({type:z,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],["noCurators",""],["noEditors",""],[3,"contributors"]],template:function(A,B){if(1&A&&(a.TgZ(0,"span",0),a._uU(1,"Curators:"),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,b,2,1,"ng-container",2),a.ALo(4,"ngrxPush"),a.YNc(5,J,1,0,"ng-template",null,3,a.W1O),a.qZA(),a.TgZ(7,"span",0),a._uU(8,"Editors:"),a.qZA(),a.TgZ(9,"div",1),a.YNc(10,V,2,1,"ng-container",2),a.ALo(11,"ngrxPush"),a.YNc(12,K,1,0,"ng-template",null,4,a.W1O),a.qZA()),2&A){const G=a.MAs(6),f=a.MAs(13);a.xp6(3),a.Q6J("ngIf",a.lcZ(4,4,B.curators$))("ngIfElse",G),a.xp6(7),a.Q6J("ngIf",a.lcZ(11,6,B.editors$))("ngIfElse",f)}},directives:[t.ZU,n.O5,R],pipes:[L.fM],styles:["[_nghost-%COMP%]{display:inline-block}.role-group-label[_ngcontent-%COMP%]{margin-left:12px}.role-group[_ngcontent-%COMP%]{display:inline-block}.role-group[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{display:inline-block;margin-left:2px}"]}),z})()},5750:(H,N,i)=>{i.d(N,{Z:()=>$});var _=i(9808),a=i(6949),u=i(3618),t=i(325),n=i(6699),m=i(3610),C=i(9444),T=i(6081),y=i(3098),M=i(5e3);let I=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=M.oAB({type:h}),h.\u0275inj=M.cJS({imports:[[_.ez,t.Bz,n.Rt,m.$6,y.q6,C.s,T.J]]}),h})(),$=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=M.oAB({type:h}),h.\u0275inj=M.cJS({imports:[[_.ez,a.WG,u.ZJ,I]]}),h})()},9077:(H,N,i)=>{i.d(N,{Q:()=>x});var _=i(6123),a=i(712),u=i(8929),t=i(4850),n=i(7625),m=i(5e3),C=i(9169),T=i(9808),y=i(6042),M=i(2643),I=i(2683),$=i(404),h=i(647),Q=i(6949);function Y(Z,R){if(1&Z){const L=m.EpF();m.ynx(0),m.TgZ(1,"button",2),m.NdJ("click",function(){return m.CHM(L),m.oxw().unsubscribe()}),m._UZ(2,"i",3),m.qZA(),m.BQk()}if(2&Z){const L=m.oxw();m.xp6(1),m.Q6J("nzLoading",L.isSubmitting)}}function w(Z,R){if(1&Z){const L=m.EpF();m.TgZ(0,"button",4),m.NdJ("click",function(){return m.CHM(L),m.oxw().subscribe()}),m._UZ(1,"i",5),m.qZA()}if(2&Z){const L=m.oxw();m.Q6J("nzLoading",L.isSubmitting)}}let x=(()=>{class Z{constructor(L,b,J,V){this.isSubscribedGQL=L,this.unsubscribeMutation=b,this.subscribeMutation=J,this.networkErrorService=V,this.isSubmitting=!1,this.destroy$=new u.xQ,this.unsubscribeMutator=new _.U(V),this.subscribeMutator=new _.U(V)}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.typename)throw new Error("Must pass in a typename to the CvcEntitySubscriptionButtonComponent");if(void 0===this.subscribableId)throw new Error("Must pass in a subscribableId to the CvcEntitySubscriptionButtonComponent");this.subscribable={id:this.subscribableId,entityType:a.o71[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,t.U)(({data:b})=>b.subscriptionForEntity))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(b=>{var J;b&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}unsubscribe(){this.subscribable&&(this.isSubmitting=!0,this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(b=>{var J;b&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Z.\u0275fac=function(L){return new(L||Z)(m.Y36(a.A4J),m.Y36(a.m$d),m.Y36(a.jMx),m.Y36(C.Y))},Z.\u0275cmp=m.Xpm({type:Z,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noSub",""],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(L,b){if(1&L&&(m.YNc(0,Y,3,1,"ng-container",0),m.ALo(1,"ngrxPush"),m.YNc(2,w,2,1,"ng-template",null,1,m.W1O)),2&L){const J=m.MAs(3);m.Q6J("ngIf",m.lcZ(1,2,b.existingSubscription$))("ngIfElse",J)}},directives:[T.O5,y.ix,M.dQ,I.w,$.SY,h.Ls],pipes:[Q.fM],styles:["[_nghost-%COMP%]{display:block}"]}),Z})()},4609:(H,N,i)=>{i.d(N,{g:()=>C});var _=i(9808),a=i(6042),u=i(6949),t=i(647),n=i(404),m=i(5e3);let C=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275mod=m.oAB({type:T}),T.\u0275inj=m.cJS({imports:[[_.ez,a.sL,t.PV,n.cg,u.WG]]}),T})()},7701:(H,N,i)=>{i.d(N,{j:()=>G});var _=i(6654),a=i(5e3),u=i(9808),t=i(325),n=i(8481),m=i(3610),C=i(4850),T=i(712),y=i(7484),M=i(647),I=i(6550),$=i(3098),h=i(6949);function Q(f,P){if(1&f&&(a._UZ(0,"i",7),a._uU(1)),2&f){const O=a.oxw().ngIf;a.xp6(1),a.hij(" ",O.name," ")}}function Y(f,P){if(1&f&&(a.TgZ(0,"cvc-link-tag",9),a._uU(1),a.qZA()),2&f){const O=a.oxw(2).ngIf;a.Q6J("href",O.url),a.xp6(1),a.hij(" ",O.soid," ")}}function w(f,P){if(1&f&&a.YNc(0,Y,2,2,"cvc-link-tag",8),2&f){const O=a.oxw().ngIf;a.Q6J("ngIf","N/A"!=O.soid)}}function x(f,P){if(1&f&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,Q,2,1,"ng-template",null,3,a.W1O),a.YNc(4,w,1,1,"ng-template",null,4,a.W1O),a.TgZ(6,"nz-descriptions",5),a.TgZ(7,"nz-descriptions-item",6),a._uU(8),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&f){const O=P.ngIf,j=a.MAs(3),k=a.MAs(5);a.xp6(1),a.Q6J("nzTitle",j)("nzExtra",k),a.xp6(5),a.Q6J("nzColumn",2),a.xp6(2),a.hij(" ",O.variantCount," ")}}let Z=(()=>{class f{constructor(O){this.gql=O}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,C.U)(({data:O})=>O.variantTypePopover))}}return f.\u0275fac=function(O){return new(O||f)(a.Y36(T.tw_))},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(O,j){1&O&&(a.TgZ(0,"div",0),a.YNc(1,x,9,4,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&O&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,j.variantType$)))},directives:[u.O5,y.bd,M.Ls,I.l,$.R7,$.uj],pipes:[h.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}"]}),f})();function R(f,P){}function L(f,P){if(1&f&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,R,0,0,"ng-template",6),a.qZA(),a.BQk()),2&f){const O=a.oxw(),j=a.MAs(2);a.xp6(1),a.Q6J("routerLink",O.variantType.link),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function b(f,P){}function J(f,P){if(1&f&&(a.TgZ(0,"nz-tag",9),a.YNc(1,b,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const O=a.MAs(2);a.oxw();const j=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",O),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function V(f,P){if(1&f&&a._UZ(0,"cvc-variant-type-popover",10),2&f){const O=a.oxw(2);a.Q6J("variantTypeId",O.variantType.id)}}function K(f,P){if(1&f&&(a.YNc(0,J,2,3,"nz-tag",7),a.YNc(1,V,1,1,"ng-template",null,8,a.W1O)),2&f){const O=a.oxw(),j=a.MAs(6);a.Q6J("ngIf",O.enablePopover)("ngIfElse",j)}}function W(f,P){}function z(f,P){if(1&f&&a.YNc(0,W,0,0,"ng-template",6),2&f){a.oxw();const O=a.MAs(2);a.Q6J("ngTemplateOutlet",O)}}function E(f,P){}function A(f,P){if(1&f&&(a.TgZ(0,"nz-tag"),a.YNc(1,E,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const O=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",O)}}function B(f,P){if(1&f&&(a._UZ(0,"i",11),a._uU(1)),2&f){const O=a.oxw();a.xp6(1),a.hij(" ",O.variantType.name,"\n")}}let G=(()=>{class f extends _.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return f.\u0275fac=function(O){return new(O||f)},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[a.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(O,j){if(1&O&&(a.YNc(0,L,3,2,"ng-container",0),a.YNc(1,K,3,2,"ng-template",null,1,a.W1O),a.YNc(3,z,1,1,"ng-template",null,2,a.W1O),a.YNc(5,A,2,1,"ng-template",null,3,a.W1O),a.YNc(7,B,2,1,"ng-template",null,4,a.W1O)),2&O){const k=a.MAs(4);a.Q6J("ngIf",j.linked)("ngIfElse",k)}},directives:[u.O5,t.yS,u.tP,n.j,m.lU,Z,M.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),f})()},8645:(H,N,i)=>{i.d(N,{M:()=>$});var _=i(9808),a=i(325),u=i(8481),t=i(7484),n=i(3630),m=i(3098),C=i(6949),T=i(647),y=i(5e3);let M=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[[_.ez,C.WG,T.PV,t.vh,m.q6,n.X]]}),h})();var I=i(3610);let $=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[[_.ez,a.Bz,T.PV,u.X,I.$6,M]]}),h})()},1243:(H,N,i)=>{i.d(N,{I:()=>a});var _=i(5e3);let a=(()=>{class u{transform(n){if(n){let C=n.toLowerCase().replace(/_/g," ").split(" ");for(var m=0;m{i.d(P,{L:()=>gt});var _=i(712),a=i(373),z=i(4850),t=i(5e3),n=i(9808),m=i(1894),T=i(8144),O=i(8929),x=i(7625),L=i(9350),S=i(2359),D=i(7484),y=i(7948),I=i(5737),Q=i(6123),w=i(9169),B=i(6949),u=i(404),M=i(6042),h=i(2643),F=i(2683),J=i(3610),W=i(647),K=i(4182),V=i(4546),C=i(9383),b=i(7525),Z=i(9180),$=i(8227),G=i(1793);function f(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",4),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function N(c,p){}function A(c,p){1&c&&t.YNc(0,N,0,0,"ng-template")}function j(c,p){if(1&c&&(t.ynx(0),t.YNc(1,A,1,0,void 0,9),t.BQk()),2&c){t.oxw(2);const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function k(c,p){if(1&c&&(t.ynx(0),t.YNc(1,j,2,1,"ng-container",5),t.BQk()),2&c){const s=t.oxw().ngrxLet,g=t.MAs(5),v=t.oxw();t.xp6(1),t.Q6J("ngIf",s.isEditor||s.isAdmin||v.flag.flaggingUser.id===s.id)("ngIfElse",g)}}function en(c,p){}function sn(c,p){1&c&&t.YNc(0,en,0,0,"ng-template")}function cn(c,p){if(1&c&&(t.TgZ(0,"span",10),t.YNc(1,sn,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function on(c,p){}function ln(c,p){1&c&&t.YNc(0,on,0,0,"ng-template")}function Y(c,p){if(1&c&&(t.TgZ(0,"span",11),t.YNc(1,ln,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function X(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",13),t.NdJ("nzPopoverVisibleChange",function(v){return t.CHM(s),t.oxw(3).flagResolvePopoverVisible=v})("click",function(){t.CHM(s);const v=t.oxw(3);return v.flagResolvePopoverVisible=!v.flagResolvePopoverVisible}),t._uU(1," Resolve Flag "),t._UZ(2,"i",14),t.qZA()}if(2&c){const s=t.oxw(2).ngrxLet,g=t.oxw(),v=t.MAs(3),U=t.MAs(5);t.Q6J("nzPopoverTitle",v)("nzPopoverVisible",g.flagResolvePopoverVisible)("nzPopoverContent",U)("nzPopoverTrigger",void 0)("disabled",!s.signedIn||s.isCurator&&g.flag.flaggingUser.id!=s.id)}}function q(c,p){if(1&c&&t.YNc(0,X,3,5,"button",12),2&c){const s=t.oxw(2);t.Q6J("ngIf",!s.success)}}function E(c,p){if(1&c&&(t.ynx(0),t.YNc(1,k,2,2,"ng-container",5),t.YNc(2,cn,2,1,"ng-template",null,6,t.W1O),t.YNc(4,Y,2,1,"ng-template",null,7,t.W1O),t.YNc(6,q,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&c){const s=p.ngrxLet,g=t.MAs(3);t.xp6(1),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}const nn=function(){return{float:"right"}};function tn(c,p){if(1&c){const s=t.EpF();t._uU(0," Resolve Flag "),t.TgZ(1,"span",15),t.TgZ(2,"i",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw();return v.flagResolvePopoverVisible=!1,v.errorMessages=[]}),t.qZA(),t.qZA()}2&c&&(t.xp6(1),t.Q6J("ngStyle",t.DdM(1,nn)))}function fn(c,p){if(1&c&&t._UZ(0,"nz-alert",25),2&c){t.oxw();const s=t.MAs(2);t.Q6J("nzDescription",s)}}function un(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function zn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,un,2,1,"li",26),t.qZA()),2&c){const s=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Cn(c,p){if(1&c){const s=t.EpF();t.YNc(0,fn,1,1,"nz-alert",17),t.YNc(1,zn,2,1,"ng-template",null,18,t.W1O),t.TgZ(3,"nz-card",19),t.TgZ(4,"form",20),t.NdJ("ngSubmit",function(){return t.CHM(s),t.oxw().resolveFlag()}),t.TgZ(5,"cvc-comment-input-form",21),t.NdJ("commentChange",function(v){return t.CHM(s),t.oxw().comment=v}),t.qZA(),t.TgZ(6,"nz-spin",22),t.TgZ(7,"nz-form-item"),t.TgZ(8,"nz-form-control"),t.TgZ(9,"cvc-form-buttons"),t.TgZ(10,"cvc-org-selector-btn-group",23),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.TgZ(11,"button",24),t._uU(12," Resolve "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&c){const s=t.oxw();t.Q6J("ngIf",s.errorMessages.length>0),t.xp6(5),t.Q6J("comment",s.comment),t.xp6(1),t.Q6J("nzSpinning",s.loading),t.xp6(5),t.Q6J("disabled",!(void 0!==s.comment&&s.comment.length>=10))}}let _n=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.destroy$=new O.xQ,this.resolveFlagMutator=new Q.U(v)}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg})}onOrgSelected(s){this.selectedOrg=s}resolveFlag(){var s;if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id}});g.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.success=!1,this.errorMessages=v)}),g.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{this.loading=v})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.EwB),t.Y36(L.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["noPermissions",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to resolve flag."],["nz-tooltip","","nzTooltipTitle","If you are not an editor, you can only resolve flags you opened."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click",4,"ngIf"],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(s,g){1&s&&(t.YNc(0,f,1,0,"nz-alert",0),t.YNc(1,E,8,2,"ng-container",1),t.YNc(2,tn,3,2,"ng-template",null,2,t.W1O),t.YNc(4,Cn,13,4,"ng-template",null,3,t.W1O)),2&s&&(t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngrxLet",g.viewer$))},directives:[n.O5,S.r,B.eJ,n.tP,u.SY,M.ix,h.dQ,F.w,J.lU,W.Ls,n.PC,n.sg,D.bd,K._Y,K.JL,K.F,V.Lr,C.b,b.W,m.SK,V.Nx,m.t3,V.Fd,Z.Z,$.q,G.m],styles:[""]}),c})();var gn=i(3618),Tn=i(125),xn=i(4590),pn=i(685),hn=i(8625);function yn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",5),t.NdJ("nzOnClose",function(){const U=t.CHM(s).$implicit;return t.oxw().onErrorBannerClose(U)}),t.qZA()}2&c&&t.Q6J("nzMessage",p.$implicit)}function mn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}if(2&c){const s=t.oxw();t.MGl("nzMessage","Revision(s) successfully ",s.success,".")}}function dn(c,p){if(1&c&&t._UZ(0,"cvc-comment-body",15),2&c){const s=t.oxw(2).$implicit;t.Q6J("commentBodySegments",s.openComment.parsedComment)}}function Zn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-flag-resolve-form",16),t.BQk()),2&c){const s=t.oxw(2).$implicit,g=t.oxw(2);t.xp6(1),t.Q6J("flag",s)("flagResolvedCallback",g.flagResolvedCallback)}}function An(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-comment-body",15),t.BQk()),2&c){const s=t.oxw(3).$implicit;t.xp6(1),t.Q6J("commentBodySegments",s.resolutionComment.parsedComment)}}function On(c,p){if(1&c&&t._UZ(0,"cvc-user-tag",21),2&c){const s=t.oxw(3).$implicit;t.Q6J("user",s.resolvingUser)}}function vn(c,p){if(1&c&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",17),t.YNc(2,An,2,1,"ng-container",18),t.qZA(),t.TgZ(3,"nz-col",19),t._uU(4," Resolved By "),t.YNc(5,On,1,1,"cvc-user-tag",20),t._uU(6),t.ALo(7,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngIf",s.resolutionComment),t.xp6(3),t.Q6J("ngIf",void 0!==s.resolvingUser),t.xp6(1),t.hij(" ",t.lcZ(7,3,s.resolvedAt)," ")}}function Rn(c,p){if(1&c&&(t._UZ(0,"i",22),t._uU(1)),2&c){const s=t.oxw(2).$implicit;t.xp6(1),t.hij(" FID",s.id," ")}}function Fn(c,p){if(1&c&&(t.TgZ(0,"span"),t.TgZ(1,"span",26),t._uU(2,"Flagged By"),t.qZA(),t._UZ(3,"cvc-user-tag",21),t.TgZ(4,"span",26),t._uU(5),t.ALo(6,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(3).$implicit;t.xp6(3),t.Q6J("user",s.flaggingUser),t.xp6(2),t.Oqu(t.lcZ(6,2,s.createdAt))}}function Mn(c,p){if(1&c&&t._UZ(0,"cvc-status-tag",27),2&c){const s=t.oxw(3).$implicit;t.Q6J("status",s.state)}}function Ln(c,p){1&c&&(t.TgZ(0,"nz-space",23),t.YNc(1,Fn,7,4,"span",24),t.YNc(2,Mn,1,1,"cvc-status-tag",25),t.qZA())}function bn(c,p){if(1&c&&(t.TgZ(0,"nz-card",10),t.YNc(1,dn,1,1,"cvc-comment-body",11),t._UZ(2,"nz-divider"),t.YNc(3,Zn,2,2,"ng-container",3),t.YNc(4,vn,8,5,"ng-template",null,12,t.W1O),t.YNc(6,Rn,2,1,"ng-template",null,13,t.W1O),t.YNc(8,Ln,3,0,"ng-template",null,14,t.W1O),t.qZA()),2&c){const s=t.MAs(5),g=t.MAs(7),v=t.MAs(9),U=t.oxw().$implicit;t.Q6J("nzTitle",g)("nzExtra",v),t.xp6(1),t.Q6J("ngIf",U.openComment),t.xp6(2),t.Q6J("ngIf","OPEN"==U.state)("ngIfElse",s)}}function En(c,p){1&c&&(t.ynx(0),t.YNc(1,bn,10,5,"nz-card",9),t.BQk())}function an(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"nz-space",7),t.YNc(2,En,2,0,"ng-container",8),t.qZA(),t.BQk()),2&c){const s=t.oxw();t.xp6(2),t.Q6J("ngForOf",s.flags)}}function Sn(c,p){1&c&&t._UZ(0,"nz-empty",28)}let Pn=(()=>{class c{constructor(s){this.viewerService=s,this.isLoading=!1,this.success=!1,this.destroy$=new O.xQ}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.mostRecentOrg=s.mostRecentOrg})}setupMutationResultHandlers(s,g){s.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v&&(this.isLoading=!1,this.errors=void 0,this.success=g)}),s.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.isLoading=!1,this.success=!1,this.errors=v)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(s){var g;this.errors=null===(g=this.errors)||void 0===g?void 0:g.filter(v=>v!=s)}onSuccessBannerClose(){this.success=!1}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(L.a))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzTitle","Flags",1,"card-list"],[4,"ngIf","ngIfElse"],["noFlags",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],[3,"commentBodySegments"],[3,"flag","flagResolvedCallback"],["nzSpan","16"],[4,"ngIf"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"user"],["nz-icon","","nzType","civic:flag"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(s,g){if(1&s&&(t.YNc(0,yn,1,1,"nz-alert",0),t.YNc(1,mn,1,1,"nz-alert",1),t.TgZ(2,"nz-card",2),t.YNc(3,an,3,1,"ng-container",3),t.YNc(4,Sn,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&s){const v=t.MAs(5);t.Q6J("ngForOf",g.errors),t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(2),t.Q6J("ngIf",g.flags&&g.flags.length>0)("ngIfElse",v)}},directives:[n.sg,S.r,n.O5,D.bd,T.NU,T.$1,y.m,I.g,_n,m.SK,m.t3,gn.ZU,Tn.I,W.Ls,F.w,xn.h,pn.p9],pipes:[hn.wr],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})();var Nn=i(1243);function In(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",8),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function Qn(c,p){if(1&c&&t._UZ(0,"nz-alert",9),2&c){t.oxw();const s=t.MAs(4);t.Q6J("nzDescription",s)}}function Jn(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function Yn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,Jn,2,1,"li",10),t.qZA()),2&c){const s=t.oxw();t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Un(c,p){}function Dn(c,p){1&c&&t.YNc(0,Un,0,0,"ng-template")}function Bn(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Dn,1,0,void 0,15),t.BQk()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function $n(c,p){}function wn(c,p){1&c&&t.YNc(0,$n,0,0,"ng-template")}function jn(c,p){if(1&c&&(t.TgZ(0,"span",16),t.YNc(1,wn,1,0,void 0,15),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Wn(c,p){if(1&c&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"enumToTitle"),t.qZA()),2&c){const s=t.oxw().ngrxLet,g=t.oxw();t.Q6J("disabled",!(void 0!==g.comment&&g.comment.length>=10&&s.signedIn)),t.xp6(1),t.hij(" Flag ",t.lcZ(2,2,g.flaggable.entityType)," ")}}function Vn(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"cvc-form-buttons"),t.TgZ(2,"cvc-org-selector-btn-group",11),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.YNc(3,Bn,2,1,"ng-container",12),t.YNc(4,jn,2,1,"ng-template",null,13,t.W1O),t.YNc(6,Wn,3,4,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=p.ngrxLet,g=t.MAs(5);t.xp6(3),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}let Kn=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.destroy$=new O.xQ,this.addFlagMutator=new Q.U(v)}ngOnInit(){if(this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg}),void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(s){this.selectedOrg=s}submitFlag(){var s;this.errorMessages=[];let g={comment:this.comment,subject:this.flaggable,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id},v=this.addFlagMutator.mutate(this.gql,{input:g});v.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{U&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),v.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{U.length>0&&(this.errorMessages=U)}),v.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{this.loading=U})}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.B0s),t.Y36(L.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"selectedOrgChange"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to flag entity."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(s,g){1&s&&(t.TgZ(0,"nz-card",0),t.YNc(1,In,1,0,"nz-alert",1),t.YNc(2,Qn,1,1,"nz-alert",2),t.YNc(3,Yn,2,1,"ng-template",null,3,t.W1O),t.TgZ(5,"form",4),t.NdJ("ngSubmit",function(){return g.submitFlag()}),t.TgZ(6,"cvc-comment-input-form",5),t.NdJ("commentChange",function(U){return g.comment=U}),t.qZA(),t.TgZ(7,"nz-spin",6),t.TgZ(8,"nz-form-item"),t.TgZ(9,"nz-form-control"),t.YNc(10,Vn,8,2,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngIf",g.errorMessages.length>0),t.xp6(4),t.Q6J("comment",g.comment),t.xp6(1),t.Q6J("nzSpinning",g.loading),t.xp6(3),t.Q6J("ngrxLet",g.viewer$))},directives:[D.bd,n.O5,S.r,n.sg,K._Y,K.JL,K.F,V.Lr,C.b,b.W,m.SK,V.Nx,m.t3,V.Fd,B.eJ,Z.Z,$.q,n.tP,u.SY,M.ix,h.dQ,G.m,F.w],pipes:[Nn.I],styles:[""]}),c})();var Hn=i(8747),Gn=i(6699);function kn(c,p){if(1&c&&(t._UZ(0,"cvc-flag-list",13),t.ALo(1,"ngrxPush")),2&c){const s=t.oxw(2);t.Q6J("flags",t.lcZ(1,2,s.flags$))("flagResolvedCallback",s.refresh)}}function Xn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw(2).ngrxLet;return t.oxw(2).loadMore(null==v?null:v.endCursor)}),t._uU(1,"Load More"),t.qZA()}}function qn(c,p){1&c&&(t.ynx(0),t.YNc(1,Xn,2,0,"button",15),t.BQk())}function nt(c,p){if(1&c&&(t.ynx(0),t.YNc(1,qn,2,0,"ng-container",14),t.BQk()),2&c){const s=p.ngrxLet;t.xp6(1),t.Q6J("ngIf",null==s?null:s.hasNextPage)}}function tt(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw(2);t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}function et(c,p){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.Oqu(s.displayName)}}function ot(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function it(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function at(c,p){if(1&c&&(t.YNc(0,ot,1,1,"nz-avatar",18),t.YNc(1,it,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function st(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function ct(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function lt(c,p){if(1&c&&(t.YNc(0,st,1,1,"nz-avatar",18),t.YNc(1,ct,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function rt(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,kn,2,4,"cvc-flag-list",5),t.YNc(5,nt,2,1,"ng-container",6),t.YNc(6,tt,1,2,"cvc-flag-add-form",7),t.qZA(),t.qZA(),t.TgZ(7,"nz-col",8),t.TgZ(8,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onStateSelected(v)}),t.YNc(9,et,2,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onFlaggingUsersSelected(v)}),t.ALo(12,"ngrxPush"),t.YNc(13,at,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(15,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onResolvingUsersSelected(v)}),t.ALo(16,"ngrxPush"),t.YNc(17,lt,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(4),t.Q6J("ngrxLet",s.pageInfo$),t.xp6(3),t.Q6J("preselectedOption",s.selectableStates[0])("participantList",s.selectableStates),t.xp6(3),t.Q6J("participantList",t.lcZ(12,6,s.uniqueFlaggingUsers$)),t.xp6(4),t.Q6J("participantList",t.lcZ(16,8,s.uniqueResolvingUsers$))}}function _t(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw();t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}let gt=(()=>{class c{constructor(s){this.gql=s,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:_.BQZ.Open},{id:2,displayName:"Resolved",value:_.BQZ.Resolved}]}ngOnInit(){if(null==this.flaggable)throw new Error("Must pass a flaggable into flag list");this.queryRef=this.gql.watch({first:this.defaultPageSize,flaggable:this.flaggable,state:_.BQZ.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,a.j)("data","flags","edges"),(0,z.U)(s=>s.map(g=>g.node))),this.pageInfo$=this.results$.pipe((0,a.j)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,a.j)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,z.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueFlaggingUsers})),this.uniqueResolvingUsers$=this.results$.pipe((0,z.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueResolvingUsers}))}onFlaggingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:s?s.id:void 0})}onResolvingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:s?s.id:void 0})}onStateSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:s?s.value:void 0})}loadMore(s){var g;null===(g=this.queryRef)||void 0===g||g.fetchMore({variables:{first:this.defaultPageSize,after:s}})}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.rzy))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noFlags",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"flags","flagResolvedCallback",4,"nzSpaceItem"],[4,"ngrxLet"],[3,"flaggable","flagAddedCallback",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Flag State",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"]],template:function(s,g){if(1&s&&(t.YNc(0,rt,19,10,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,_t,1,2,"ng-template",null,1,t.W1O)),2&s){const v=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,g.unfilteredCount$))("ngIfElse",v)}},directives:[n.O5,m.SK,m.t3,T.NU,T.$1,Pn,B.eJ,M.ix,h.dQ,F.w,Kn,Hn.l,Gn.Dz],pipes:[B.fM,n.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})()},4271:(H,P,i)=>{i.d(P,{M:()=>q});var _=i(9808),a=i(6949),z=i(3868),t=i(7345),n=i(7484),m=i(4546),T=i(3762),O=i(8625),x=i(4182),L=i(1825),S=i(6042),D=i(4375),y=i(2359),I=i(404),Q=i(9444),w=i(4509),B=i(7525),u=i(5e3);let M=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.u5,x.UX,a.WG,m.U5,S.sL,n.vh,y.L,I.cg,B.j,L.A,D.R,Q.s,w.w]]}),E})();var h=i(9779),F=i(8144),J=i(1894),W=i(8481),K=i(3618),V=i(6699),C=i(3580),b=i(8018),Z=i(6286),$=i(4867),G=i(8645),f=i(685),N=i(592),A=i(6114),j=i(5737),k=i(647),en=i(3610),sn=i(1047);let cn=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.UX,a.WG,S.sL,m.U5,x.u5,y.L,n.vh,en.$6,k.PV,I.cg,B.j,w.w,D.R,L.A]]}),E})();var on=i(7026),ln=i(8909);let Y=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,J.Jb,T.Ph,n.vh,F.zf,W.X,K.ZJ,V.Rt,f.Xo,A.Wr,j.S,I.cg,T.Ph,en.$6,k.PV,sn.o7,x.u5,O.$L.forChild({formatter:{useClass:on.x,provide:O.KP}}),L.A,h.s,t.W,C.Q,b.e,Z.y,$.Q,G.M,N.x,S.sL,y.L,a.WG,cn,j.S,ln.m]]}),E})();var X=i(1150);let q=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.u5,a.WG,O.$L.forChild({formatter:{useClass:on.x,provide:O.KP}}),S.sL,m.U5,z.aF,S.sL,t.W,T.Ph,n.vh,M,Y,f.Xo,X.N,V.Rt,F.zf]]}),E})()},8168:(H,P,i)=>{i.d(P,{Y:()=>a});var _=i(5e3);let a=(()=>{class z{constructor(){}}return z.\u0275fac=function(n){return new(n||z)},z.\u0275dir=_.lG2({type:z,selectors:[["","cvcFlaggableOptions",""]]}),z})()},5623:(H,P,i)=>{i.d(P,{o:()=>B});var _=i(5e3),a=i(8168),z=i(9808),t=i(4401),n=i(325),m=i(647),T=i(404);const O=["cvcFlaggable",""];function x(u,M){1&u&&_.Hsn(0)}function L(u,M){1&u&&_.GkF(0)}function S(u,M){if(1&u&&(_.ynx(0),_.YNc(1,L,1,0,"ng-container",2),_.BQk()),2&u){_.oxw();const h=_.MAs(1);_.xp6(1),_.Q6J("ngTemplateOutlet",h)}}function D(u,M){if(1&u&&(_.TgZ(0,"a",6),_._UZ(1,"i",7),_.qZA()),2&u){_.oxw();const h=_.MAs(5);_.xp6(1),_.Q6J("nzTooltipTitle",h)}}function y(u,M){if(1&u&&_._uU(0),2&u){const h=_.oxw(2);_.hij(" ",h.flags," open flags ")}}function I(u,M){1&u&&_.GkF(0)}function Q(u,M){if(1&u&&(_.ynx(0),_.TgZ(1,"nz-ribbon",3),_.YNc(2,D,2,1,"ng-template",null,4,_.W1O),_.YNc(4,y,1,1,"ng-template",null,5,_.W1O),_.YNc(6,I,1,0,"ng-container",2),_.qZA(),_.BQk()),2&u){const h=_.MAs(3);_.oxw();const F=_.MAs(1);_.xp6(1),_.Q6J("nzText",h),_.xp6(5),_.Q6J("ngTemplateOutlet",F)}}const w=["*"];let B=(()=>{class u{constructor(h){this.renderer=h}ngOnChanges(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}ngAfterViewInit(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}addFlagged(){this.flaggedChild&&this.renderer.addClass(this.flaggedChild.nativeElement,"flaggedChild")}removeFlagged(){this.flaggedChild&&this.renderer.removeClass(this.flaggedChild.nativeElement,"flaggedChild")}}return u.\u0275fac=function(h){return new(h||u)(_.Y36(_.Qsj))},u.\u0275cmp=_.Xpm({type:u,selectors:[["","cvcFlaggable",""]],contentQueries:function(h,F,J){if(1&h&&_.Suo(J,a.Y,5,_.SBq),2&h){let W;_.iGM(W=_.CRH())&&(F.flaggedChild=W.first)}},inputs:{flags:"flags",entity:"entity"},features:[_.TTD],attrs:O,ngContentSelectors:w,decls:4,vars:2,consts:[["flaggedContent",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["flaggedText",""],["flaggedTooltip",""],["routerLink","flags",2,"color","#FFF"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(h,F){1&h&&(_.F$t(),_.YNc(0,x,1,0,"ng-template",null,0,_.W1O),_.YNc(2,S,2,1,"ng-container",1),_.YNc(3,Q,7,2,"ng-container",1)),2&h&&(_.xp6(2),_.Q6J("ngIf",0===F.flags),_.xp6(1),_.Q6J("ngIf",F.flags))},directives:[z.O5,z.tP,t.F9,n.yS,m.Ls,T.SY],styles:[""]}),u})()},4682:(H,P,i)=>{i.d(P,{m:()=>O});var _=i(9808),a=i(404),z=i(3618),t=i(4401),n=i(647),m=i(325),T=i(5e3);let O=(()=>{class x{}return x.\u0275fac=function(S){return new(S||x)},x.\u0275mod=T.oAB({type:x}),x.\u0275inj=T.cJS({imports:[[_.ez,m.Bz,n.PV,t.mS,a.cg,z.ZJ]]}),x})()},1835:(H,P,i)=>{i.d(P,{i:()=>ln});var _=i(9808),a=i(7484),z=i(3762),t=i(1894),n=i(5e3);let m=(()=>{class Y{}return Y.\u0275fac=function(q){return new(q||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,t.Jb]]}),Y})();var T=i(8144);let O=(()=>{class Y{}return Y.\u0275fac=function(q){return new(q||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,a.vh,z.Ph,t.Jb,T.zf]]}),Y})();var x=i(9779),L=i(1825),S=i(8481),D=i(3618),y=i(6699),I=i(8625),Q=i(7345),w=i(3580),B=i(8018),u=i(6286),M=i(4867),h=i(8645),F=i(5482),J=i(685),W=i(592),K=i(6114),V=i(5737),C=i(404),b=i(6042),Z=i(2359),$=i(6949),G=i(647),f=i(3610),N=i(1047),A=i(4182),j=i(9444),k=i(3098),en=i(7026),sn=i(4509),cn=i(8909),on=i(209);let ln=(()=>{class Y{}return Y.\u0275fac=function(q){return new(q||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,t.Jb,z.Ph,a.vh,T.zf,S.X,D.ZJ,y.Rt,J.Xo,K.Wr,V.S,C.cg,z.Ph,f.$6,G.PV,N.o7,k.q6,V.S,A.u5,I.$L.forChild({formatter:{useClass:en.x,provide:I.KP}}),L.A,O,x.s,m,Q.W,w.Q,B.e,u.y,M.Q,on.i,h.M,W.x,sn.w,j.s,cn.m,F.cD,b.sL,Z.L,$.WG]]}),Y})()},8291:(H,P,i)=>{i.d(P,{a:()=>xe});var _=i(712),a=i(373),z=i(4850),t=i(1059),n=i(5e3),m=i(325),T=i(9808),O=i(1894),x=i(8144),L=i(8929),S=i(6123),D=i(7625),y=i(9350),I=i(9169),Q=i(2359),w=i(6949),B=i(7484),u=i(5482),M=i(3762);const h=["itemTemplate"],F=function(e){return{$implicit:e}};function J(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",9),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function W(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}function K(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",14),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function V(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Removed")}}function C(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,K,3,4,"nz-list-item",13),n.YNc(2,V,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Removed ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.removedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.removedObjects.length)}}function b(e,l){1&e&&(n.ynx(0),n.YNc(1,C,3,3,"nz-list",7),n.BQk())}function Z(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",16),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(2);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function $(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(2);n.MGl("nzNoResult","No ",o.entityType," Added")}}function G(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,Z,3,4,"nz-list-item",15),n.YNc(2,$,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw();n.MGl("nzHeader","Added ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.addedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.addedObjects.length)}}function f(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",18),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function N(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Kept")}}function A(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,f,3,4,"nz-list-item",17),n.YNc(2,N,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Kept ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.keptObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.keptObjects.length)}}function j(e,l){1&e&&(n.ynx(0),n.YNc(1,A,3,3,"nz-list",7),n.BQk())}function k(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",19),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function en(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}let sn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.diffObject)throw new Error("Must specify a diffObject.");if(void 0===this.entityType)throw new Error("Must specify an entityType.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(o,r,d){if(1&o&&n.Suo(d,h,5),2&o){let R;n.iGM(R=n.CRH())&&(r.itemTemplateRef=R.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:12,consts:[[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader"],["ngClass","current",4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nzDirection","vertical"],[4,"ngIf"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader",4,"nzSpaceItem"],["ngClass","suggested",4,"ngFor","ngForOf"],["ngClass","current"],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoResult"],["ngClass","removed",4,"ngFor","ngForOf"],["ngClass","removed"],["ngClass","added",4,"ngFor","ngForOf"],["ngClass","added"],["ngClass","kept",4,"ngFor","ngForOf"],["ngClass","kept"],["ngClass","suggested"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"nz-list",2),n.YNc(3,J,3,4,"nz-list-item",3),n.YNc(4,W,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"nz-space",5),n.YNc(7,b,2,0,"ng-container",6),n.YNc(8,G,3,3,"nz-list",7),n.YNc(9,j,2,0,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(10,"nz-col",1),n.TgZ(11,"nz-list",2),n.YNc(12,k,3,4,"nz-list-item",8),n.YNc(13,en,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Original ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.currentObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.currentObjects.length),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Revised ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.suggestedObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.suggestedObjects.length))},directives:[O.SK,O.t3,M.n_,T.sg,M.AA,T.mk,T.tP,T.O5,M.I2,x.NU,x.$1],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})();var cn=i(6906),on=i(4022),ln=i(7469),Y=i(8481),X=i(7701),q=i(7956),E=i(8664),nn=i(9001);let tn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.left)throw new Error("Must provide a left side of the diff.");if(void 0===this.right)throw new Error("Must provide a right side of the diff.");if(void 0===this.entityType)throw new Error("Must provide a diff.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-value-diff"]],inputs:{currentValue:"currentValue",suggestedValue:"suggestedValue",left:"left",right:"right",entityType:"entityType"},decls:15,vars:10,consts:[[3,"nzGutter"],[3,"nzSpan"],[3,"innerHtml"],[1,"diff","suggested"],[1,"background"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"h4"),n._uU(3),n.qZA(),n._UZ(4,"div",2),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"h4"),n._uU(7),n.qZA(),n._UZ(8,"div",2),n.qZA(),n.TgZ(9,"nz-col",1),n.TgZ(10,"h4"),n._uU(11),n.qZA(),n.TgZ(12,"div",3),n.TgZ(13,"div",4),n._uU(14),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Original ",r.entityType,""),n.xp6(1),n.Q6J("innerHtml",r.left,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("",r.entityType," Diff"),n.xp6(1),n.Q6J("innerHtml",r.right,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Revised ",r.entityType,""),n.xp6(3),n.hij(" ",r.suggestedValue," "))},directives:[O.SK,O.t3],styles:[":host{display:block}.diff{overflow:auto;width:100%}.diff .background{padding:4px 8px}.diff.insertions .background{background:#f6ffed;color:#237804}.diff.deletions .background{background:#fff1f0;color:#a8071a}.diff.suggested .background,.diff.original .background{background:#f0f5ff;color:#10239e}.diff del,.diff ins{text-decoration:none}.diff del strong{font-weight:400;background:#fcc}.diff ins strong{font-weight:400;background:#9f9}.diff .del{font-weight:400;background:#fee;color:#b00}.diff .ins{font-weight:400;background:#dfd;color:#080}ul{list-style:none}\n"],encapsulation:2}),e})();var fn=i(5737),un=i(7948),zn=i(3618),Cn=i(125),_n=i(647),gn=i(2683),Tn=i(3610),xn=i(4590),pn=i(6042),hn=i(6114),yn=i(404),mn=i(685),dn=i(2643),Zn=i(9383),An=i(8227),On=i(1793),vn=i(3098),Rn=i(1243),Fn=i(8625);function Mn(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",4),n.NdJ("nzOnClose",function(){const R=n.CHM(o).$implicit;return n.oxw().onErrorBannerClose(R)}),n.qZA()}2&e&&n.Q6J("nzMessage",l.$implicit)}function Ln(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",5),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw().onSuccessBannerClose()}),n.qZA()}if(2&e){const o=n.oxw();n.MGl("nzMessage","Revision(s) successfully ",o.success,".")}}function bn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function En(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",18),n.YNc(2,bn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const an=function(e,l,o){return{id:e,name:l,link:o}};function Sn(e,l){if(1&e&&n._UZ(0,"cvc-disease-tag",22),2&e){const o=l.$implicit;n.Q6J("disease",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Pn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",21),n.YNc(2,Sn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Nn(e,l){if(1&e&&n._UZ(0,"cvc-drug-tag",24),2&e){const o=l.$implicit;n.Q6J("drug",n.kEZ(1,an,o.id,o.displayName,o.link))}}function In(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",23),n.YNc(2,Nn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Qn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Jn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",25),n.YNc(2,Qn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Yn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Un(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",26),n.YNc(2,Yn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Dn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Bn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,Dn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function $n(e,l){if(1&e&&n._UZ(0,"cvc-variant-type-tag",29),2&e){const o=l.$implicit;n.Q6J("variantType",n.kEZ(1,an,o.id,o.displayName,o.link))}}function wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",28),n.YNc(2,$n,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function jn(e,l){if(1&e&&n._UZ(0,"cvc-phenotype-tag",31),2&e){const o=l.$implicit;n.Q6J("phenotype",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",30),n.YNc(2,jn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Vn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Kn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",32),n.YNc(2,Vn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Hn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Gn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",34),n.YNc(2,Hn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function kn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function Xn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",35),n.YNc(2,kn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const qn=function(e,l,o,r){return{id:e,name:l,link:o,status:r}};function nt(e,l){if(1&e&&n._UZ(0,"cvc-evidence-tag",37),2&e){const o=l.$implicit;n.Q6J("evidence",n.l5B(1,qn,o.id,o.displayName,o.link,o.status))}}function tt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",36),n.YNc(2,nt,1,6,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function et(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-revision-value-diff",38),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("currentValue",o.currentValue)("suggestedValue",o.suggestedValue)("left",o.linkoutData.diffValue.left)("right",o.linkoutData.diffValue.right)("entityType",o.linkoutData.name)}}function ot(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-comment-body",42),n.BQk()),2&e){const o=n.oxw(2).$implicit;n.xp6(1),n.Q6J("commentBodySegments",o.resolutionComment.parsedComment)}}function it(e,l){if(1&e&&n._UZ(0,"cvc-user-tag",43),2&e){const o=n.oxw(2).$implicit;n.Q6J("user",o.resolver)}}function at(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"nz-divider"),n.TgZ(2,"nz-row"),n.TgZ(3,"nz-col",39),n.YNc(4,ot,2,1,"ng-container",15),n.qZA(),n.TgZ(5,"nz-col",40),n._uU(6),n.ALo(7,"enumToTitle"),n.YNc(8,it,1,1,"cvc-user-tag",41),n._uU(9),n.ALo(10,"timeago"),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(4),n.Q6J("ngIf",o.resolutionComment),n.xp6(2),n.hij(" ",n.lcZ(7,4,o.status)," By "),n.xp6(2),n.Q6J("ngIf",void 0!==o.resolver),n.xp6(1),n.hij(" ",n.lcZ(10,6,o.resolvedAt)," ")}}function st(e,l){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"i",45),n._uU(2),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.qZA()),2&e){const o=n.oxw(2).$implicit;n.xp6(2),n.hij(" RID",o.id," "),n.xp6(2),n.hij("",o.linkoutData.name," Updated")}}function ct(e,l){if(1&e&&n._UZ(0,"i",48),2&e){n.oxw();const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function lt(e,l){if(1&e&&n._UZ(0,"cvc-comment-body",42),2&e){const o=n.oxw(3).$implicit;n.Q6J("commentBodySegments",o.creationComment.parsedComment)}}function rt(e,l){1&e&&(n.ynx(0),n.YNc(1,ct,1,1,"i",46),n.YNc(2,lt,1,1,"ng-template",null,47,n.W1O),n.BQk())}function _t(e,l){if(1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,st,5,2,"span",44),n.YNc(2,rt,4,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",o.creationComment)}}function gt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",55),n._uU(2,"Submitted By"),n.qZA(),n._UZ(3,"cvc-user-tag",43),n.BQk()),2&e){const o=n.oxw(3).$implicit;n.xp6(3),n.Q6J("user",o.revisor)}}function c(e,l){1&e&&(n.TgZ(0,"span",55),n._uU(1,"Submitted"),n.qZA())}function p(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,gt,4,1,"ng-container",53),n.YNc(2,c,2,0,"ng-template",null,54,n.W1O),n.TgZ(4,"span",55),n._uU(5),n.ALo(6,"timeago"),n.qZA(),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",r.revisor)("ngIfElse",o),n.xp6(4),n.Oqu(n.lcZ(6,3,r.createdAt))}}function s(e,l){if(1&e&&n._UZ(0,"cvc-status-tag",56),2&e){const o=n.oxw(2).$implicit;n.Q6J("status",o.status)}}function g(e,l){1&e&&n._UZ(0,"nz-divider",57)}function v(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"a",58),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).$implicit;return n.oxw(3).onChangesetSelected(d.revisionsetId)}),n._uU(1,"Show Group"),n.qZA()}}function U(e,l){1&e&&n._UZ(0,"nz-divider",57)}function pt(e,l){1&e&&n._UZ(0,"label",61),2&e&&n.Q6J("nzDisabled",!0)}function mt(e,l){1&e&&n._UZ(0,"label",64),2&e&&n.Q6J("nzDisabled",!0)}function dt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"label",65),n.NdJ("nzCheckedChange",function(d){n.CHM(o);const R=n.oxw(5).$implicit;return n.oxw(3).onRevisionCheckboxClicked(d,R.id)}),n.qZA()}}function vt(e,l){if(1&e&&(n.YNc(0,mt,1,1,"label",62),n.YNc(1,dt,1,0,"ng-template",null,63,n.W1O)),2&e){const o=n.MAs(2),r=n.oxw(4).$implicit,d=n.oxw(2).ngrxLet;n.Q6J("ngIf",d.isCurator&&d.id!=(null==r.revisor?null:r.revisor.id))("ngIfElse",o)}}function ft(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,pt,1,1,"label",59),n.YNc(2,vt,3,2,"ng-template",null,60,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(5).ngrxLet;n.xp6(1),n.Q6J("ngIf",!r.signedIn)("ngIfElse",o)}}function ut(e,l){1&e&&(n.ynx(0),n.YNc(1,U,1,0,"nz-divider",51),n.YNc(2,ft,4,2,"span",44),n.BQk())}function zt(e,l){if(1&e&&(n.TgZ(0,"nz-space",49),n.NdJ("click",function(r){return r.stopPropagation()}),n.YNc(1,p,7,5,"span",44),n.YNc(2,s,1,1,"cvc-status-tag",50),n.YNc(3,g,1,0,"nz-divider",51),n.YNc(4,v,2,0,"a",52),n.YNc(5,ut,3,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(5),n.Q6J("ngIf","NEW"===o.status)}}function Ct(e,l){if(1&e&&(n.TgZ(0,"nz-collapse-panel",11),n.ynx(1,12),n.YNc(2,En,4,1,"ng-container",13),n.YNc(3,Pn,4,1,"ng-container",13),n.YNc(4,In,4,1,"ng-container",13),n.YNc(5,Jn,4,1,"ng-container",13),n.YNc(6,Un,4,1,"ng-container",13),n.YNc(7,Bn,4,1,"ng-container",13),n.YNc(8,wn,4,1,"ng-container",13),n.YNc(9,Wn,4,1,"ng-container",13),n.YNc(10,Kn,4,1,"ng-container",13),n.YNc(11,Gn,4,1,"ng-container",13),n.YNc(12,Xn,4,1,"ng-container",13),n.YNc(13,tt,4,1,"ng-container",13),n.YNc(14,et,2,5,"ng-container",14),n.BQk(),n.YNc(15,at,11,8,"ng-container",15),n.YNc(16,_t,3,1,"ng-template",null,16,n.W1O),n.YNc(18,zt,6,1,"ng-template",null,17,n.W1O),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(17),d=n.MAs(19);n.Q6J("nzHeader",r)("nzExtra",d)("nzActive",!0),n.xp6(1),n.Q6J("ngSwitch",o.fieldName),n.xp6(1),n.Q6J("ngSwitchCase","source_ids"),n.xp6(1),n.Q6J("ngSwitchCase","disease_id"),n.xp6(1),n.Q6J("ngSwitchCase","drug_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clinvar_entry_ids"),n.xp6(1),n.Q6J("ngSwitchCase","hgvs_expression_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_type_ids"),n.xp6(1),n.Q6J("ngSwitchCase","phenotype_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_id"),n.xp6(1),n.Q6J("ngSwitchCase","variant_ids"),n.xp6(1),n.Q6J("ngSwitchCase","source_id"),n.xp6(1),n.Q6J("ngSwitchCase","evidence_item_ids"),n.xp6(2),n.Q6J("ngIf","NEW"!==o.status)}}function Tt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse",9),n.YNc(1,Ct,20,17,"nz-collapse-panel",10),n.qZA()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",o.untypedRevisons)}}function xt(e,l){1&e&&n._UZ(0,"nz-empty",66)}function ht(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",6),n.YNc(2,Tt,2,1,"nz-collapse",7),n.YNc(3,xt,1,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.MAs(4),r=n.oxw(),d=n.MAs(4);n.xp6(1),n.Q6J("nzExtra",d),n.xp6(1),n.Q6J("ngIf",r.revisions&&r.revisions.length>0)("ngIfElse",o)}}function yt(e,l){}function Zt(e,l){1&e&&n.YNc(0,yt,0,0,"ng-template")}function At(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Zt,1,0,void 0,75),n.BQk()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Ot(e,l){}function Rt(e,l){1&e&&n.YNc(0,Ot,0,0,"ng-template")}function Ft(e,l){if(1&e&&(n.TgZ(0,"span",76),n.YNc(1,Rt,1,0,void 0,75),n.qZA()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Mt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",77),n.NdJ("nzPopoverVisibleChange",function(d){return n.CHM(o),n.oxw(7).validationPopoverVisible=d})("click",function(){n.CHM(o);const d=n.oxw(7);return d.validationPopoverVisible=!d.validationPopoverVisible}),n._uU(1," Review Selected Revisions "),n._UZ(2,"i",78),n.qZA()}if(2&e){const o=n.oxw(2).ngrxLet,r=n.MAs(7),d=n.MAs(9),R=n.oxw(5);n.Q6J("nzPopoverTitle",r)("nzPopoverVisible",R.validationPopoverVisible)("nzPopoverContent",d)("nzPopoverTrigger",void 0)("disabled",0===R.selectedRevisionIds.length||!o.signedIn)}}function Lt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,At,2,1,"ng-container",53),n.YNc(2,Ft,2,1,"ng-template",null,73,n.W1O),n.YNc(4,Mt,3,5,"ng-template",null,74,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)("ngIfElse",o)}}function bt(e,l){if(1&e&&n._UZ(0,"i",80),2&e){n.oxw(4);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Et(e,l){1&e&&(n.ynx(0),n.YNc(1,bt,1,1,"i",79),n.BQk())}const St=function(){return{float:"right"}};function Pt(e,l){if(1&e){const o=n.EpF();n._uU(0," Review Selected Revisions "),n.TgZ(1,"span",81),n.TgZ(2,"i",82),n.NdJ("click",function(){return n.CHM(o),n.oxw(6).validationPopoverVisible=!1}),n.qZA(),n.qZA()}2&e&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,St)))}function Nt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-comment-input-form",85),n.NdJ("commentChange",function(d){return n.CHM(o),n.oxw(7).revisionComment=d}),n.qZA()}if(2&e){const o=n.oxw(7);n.Q6J("comment",o.revisionComment)}}function It(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",87),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onRejectRevisionsClicked()}),n._uU(3," Reject Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(8);n.xp6(1),n.Q6J("selectedOrg",o.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",o.isLoading)("disabled",void 0===o.revisionComment||o.revisionComment.length<10)}}function Qt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",88),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onAcceptRevisionClicked()}),n._uU(3," Accept Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(4).ngrxLet,r=n.oxw(4);n.xp6(1),n.Q6J("selectedOrg",r.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",r.isLoading)("disabled",!(0==o&&(void 0===r.revisionComment||""===r.revisionComment||r.revisionComment.length>=10)))}}function Jt(e,l){if(1&e&&n._UZ(0,"i",90),2&e){n.oxw(6);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Yt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Jt,1,1,"i",89),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(1),n.Q6J("ngIf",o>0)}}function Ut(e,l){1&e&&(n.TgZ(0,"span"),n.TgZ(1,"nz-space"),n.YNc(2,It,4,3,"span",44),n.YNc(3,Qt,4,3,"span",44),n.YNc(4,Yt,2,1,"span",44),n.qZA(),n.qZA())}function Dt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Nt,1,1,"cvc-comment-input-form",84),n.YNc(2,Ut,5,0,"span",44),n.qZA())}function Bt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"div",68),n.TgZ(2,"div",69),n.TgZ(3,"nz-space",70),n.YNc(4,Lt,6,2,"span",44),n.YNc(5,Et,2,0,"ng-container",15),n.qZA(),n.YNc(6,Pt,3,2,"ng-template",null,71,n.W1O),n.YNc(8,Dt,3,0,"ng-template",null,72,n.W1O),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().ngrxLet;n.xp6(5),n.Q6J("ngIf",o>0)}}function $t(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Bt,10,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(4);n.xp6(1),n.Q6J("ngrxLet",o.viewer$)}}function wt(e,l){if(1&e&&(n.TgZ(0,"nz-list-item"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o)}}function jt(e,l){if(1&e&&(n.TgZ(0,"nz-card",92),n.TgZ(1,"nz-list",93),n.YNc(2,wt,2,1,"nz-list-item",94),n.qZA(),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Wt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,jt,3,1,"nz-card",91),n.qZA()),2&e){const o=n.oxw(2).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Vt(e,l){if(1&e&&(n.TgZ(0,"nz-descriptions-item",99),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.Q6J("nzTitle",o.fieldName),n.xp6(1),n.Oqu(o.error)}}function Kt(e,l){if(1&e&&(n.TgZ(0,"nz-card",96),n.TgZ(1,"nz-descriptions",97),n.YNc(2,Vt,2,2,"nz-descriptions-item",98),n.qZA(),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Ht(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Kt,3,1,"nz-card",95),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Gt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Wt,2,1,"span",44),n.YNc(2,Ht,2,1,"span",44),n.qZA())}function kt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,$t,2,1,"ng-container",2),n.YNc(2,Gt,3,0,"ng-template",null,67,n.W1O),n.BQk()),2&e){const o=n.oxw(3);n.xp6(1),n.Q6J("ngrxLet",o.totalErrorCount$)}}function Xt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,kt,4,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",o.genericErrors$)}}function qt(e,l){if(1&e&&n.YNc(0,Xt,2,1,"ng-container",2),2&e){const o=n.oxw();n.Q6J("ngrxLet",o.validationErrors$)}}let ne=(()=>{class e{constructor(o,r,d,R,rn){this.viewerService=o,this.networkErrorService=r,this.acceptRevisionsGql=d,this.rejectRevisionsGql=R,this.validationGql=rn,this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new L.xQ,this.revisionSetSelectedEvent=new n.vpe,this.revisionMutationCompleted=new n.vpe,this.acceptRevisionsMutator=new S.U(r),this.rejectRevisionsMutator=new S.U(r)}ngOnChanges(o){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(o=>{this.mostRecentOrg=o.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors)),this.validationErrors$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.validationErrors)),this.totalErrorCount$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors.length+o.validateRevisionsForAcceptance.validationErrors.length),(0,t.O)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(o){this.revisionSetSelectedEvent.emit(o)}onRevisionCheckboxClicked(o,r){o?this.selectedRevisionIds.push(r):this.selectedRevisionIds=this.selectedRevisionIds.filter(d=>d!=r),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(o,r){o.submitSuccess$.pipe((0,D.R)(this.destroy$)).subscribe(d=>{d&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=r,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])}),o.submitError$.pipe((0,D.R)(this.destroy$)).subscribe(d=>{d.length>0&&(this.isLoading=!1,this.success=!1,this.errors=d,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){var o;if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let r=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:this.revisionComment}});this.setupMutationResultHandlers(r,"rejected")}}onAcceptRevisionClicked(){var o;this.isLoading=!0;let r=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:""===this.revisionComment?void 0:this.revisionComment}});this.setupMutationResultHandlers(r,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(o){var r;this.errors=null===(r=this.errors)||void 0===r?void 0:r.filter(d=>d!=o)}onSuccessBannerClose(){this.success=!1}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(y.a),n.Y36(I.Y),n.Y36(_.ti),n.Y36(_.VZq),n.Y36(_.Qzn))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.TTD],decls:5,vars:3,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["moderationButtons",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],["noRevisions",""],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["entityType","Sources",3,"diffObject"],["itemTemplate",""],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Drugs",3,"diffObject"],[3,"drug"],["entityType","Variant Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","HGVS Expressions",3,"diffObject"],["entityType","Variant Types",3,"diffObject"],[3,"variantType"],["entityType","Phenotypes",3,"diffObject"],[3,"phenotype"],["entityType","Variant",3,"diffObject"],[3,"variant"],["entityType","Variants",3,"diffObject"],["entityType","Source",3,"diffObject"],["entityType","Evidence",3,"diffObject"],[3,"evidence"],[3,"currentValue","suggestedValue","left","right","entityType"],["nzSpan","16"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"commentBodySegments"],[3,"user"],[4,"nzSpaceItem"],["nz-icon","","nzType","civic:revision"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent",4,"nzSpaceItem"],["creationCommentTemplate",""],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent"],["nzSize","small",3,"click"],[3,"status",4,"nzSpaceItem"],["nzType","vertical",4,"nzSpaceItem"],["nz-button","","nzType","link",3,"click",4,"nzSpaceItem"],[4,"ngIf","ngIfElse"],["noRevisor",""],["nz-typography","","nzType","secondary"],[3,"status"],["nzType","vertical"],["nz-button","","nzType","link",3,"click"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["loggedIn",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["canRevise",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Select Revision for Acceptance/Rejection",3,"nzCheckedChange"],["nzNotFoundImage","simple","nzNotFoundContent","No Revisions matching filters"],["validationErrorTemplate",""],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzDirection","vertical"],[3,"comment","commentChange",4,"nzSpaceItem"],[3,"comment","commentChange"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","",3,"nzLoading","disabled","click"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small",3,"nzLoading","disabled","click"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"ngIf"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],["nzTitle","Errors",4,"ngIf"],["nzTitle","Errors"],["nzSize","small"],[4,"ngFor","ngForOf"],["nzTitle","Validation Errors",4,"ngIf"],["nzTitle","Validation Errors"],["nzBordered",""],[3,"nzTitle",4,"ngFor","ngForOf"],[3,"nzTitle"]],template:function(o,r){1&o&&(n.YNc(0,Mn,1,1,"nz-alert",0),n.YNc(1,Ln,1,1,"nz-alert",1),n.YNc(2,ht,5,3,"ng-container",2),n.YNc(3,qt,1,1,"ng-template",null,3,n.W1O)),2&o&&(n.Q6J("ngForOf",r.errors),n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(1),n.Q6J("ngrxLet",r.viewer$))},directives:[T.sg,Q.r,T.O5,w.eJ,B.bd,u.yH,u.Zv,T.RF,T.n9,sn,cn.T,on.n,ln.u,Y.j,X.j,q.i,E.I,nn.O,T.ED,tn,fn.g,O.SK,O.t3,un.m,zn.ZU,Cn.I,x.NU,x.$1,_n.Ls,gn.w,Tn.lU,xn.h,pn.ix,hn.Ie,yn.SY,mn.p9,T.tP,dn.dQ,T.PC,Zn.b,An.q,On.m,M.n_,M.AA,vn.R7,vn.uj],pipes:[Rn.I,Fn.wr],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}"]}),e})();var te=i(8747),ee=i(6699);function oe(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-revision-list",14),n.NdJ("revisionSetSelectedEvent",function(d){return n.CHM(o),n.oxw(2).onRevisionSetSelected(d)})("revisionMutationCompleted",function(){return n.CHM(o),n.oxw(2).refresh()}),n.ALo(1,"ngrxPush"),n.qZA()}if(2&e){const o=n.oxw(2);n.Q6J("revisions",n.lcZ(1,1,o.revisions$))}}function ie(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(null==d?null:d.endCursor)}),n._uU(1,"Load More"),n.qZA()}}function ae(e,l){1&e&&(n.ynx(0),n.YNc(1,ie,2,0,"button",16),n.BQk())}function se(e,l){if(1&e&&(n.ynx(0),n.YNc(1,ae,2,0,"ng-container",15),n.BQk()),2&e){const o=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",null==o?null:o.hasNextPage)}}function ce(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-row"),n.TgZ(1,"nz-tag",19),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw(3).onSetFilterClearClicked()}),n._uU(2),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(3);n.xp6(2),n.hij("Group: ",o.filteredSet,"")}}function le(e,l){1&e&&(n.TgZ(0,"nz-space",4),n.YNc(1,ce,3,1,"nz-row",18),n.qZA())}function re(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function _e(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ge(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function pe(e,l){if(1&e&&(n.YNc(0,_e,1,1,"nz-avatar",20),n.YNc(1,ge,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function me(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function de(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ve(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function fe(e,l){if(1&e&&(n.YNc(0,de,1,1,"nz-avatar",20),n.YNc(1,ve,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function ue(e,l){if(1&e){const o=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2),n.TgZ(2,"nz-col",3),n.TgZ(3,"nz-space",4),n.YNc(4,oe,2,3,"cvc-revision-list",5),n.YNc(5,se,2,1,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",7),n.YNc(7,le,2,0,"nz-space",8),n.TgZ(8,"cvc-participant-list",9),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onStatusSelected(d)}),n.YNc(9,re,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onRevisorSelected(d)}),n.ALo(12,"ngrxPush"),n.YNc(13,pe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onFieldNameSelected(d)}),n.ALo(16,"ngrxPush"),n.YNc(17,me,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",13),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onResolverSelected(d)}),n.ALo(20,"ngrxPush"),n.YNc(21,fe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&e){const o=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(4),n.Q6J("ngrxLet",o.pageInfo$),n.xp6(2),n.Q6J("ngIf",o.filteredSet),n.xp6(1),n.Q6J("preselectedOption",o.selectableStatuses[0])("participantList",o.selectableStatuses),n.xp6(3),n.Q6J("participantList",n.lcZ(12,8,o.uniqueRevisors$)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,10,o.revisionFields$)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,12,o.uniqueResolvers$))}}function ze(e,l){1&e&&(n.ynx(0),n.TgZ(1,"nz-row",25),n._UZ(2,"i",26),n.qZA(),n.BQk())}function Ce(e,l){1&e&&n._UZ(0,"nz-empty",27)}function Te(e,l){if(1&e&&(n.YNc(0,ze,3,0,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ce,1,0,"ng-template",null,24,n.W1O)),2&e){const o=n.MAs(3),r=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,r.isLoading$))("ngIfElse",o)}}let xe=(()=>{class e{constructor(o,r){this.gql=o,this.route=r,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:_.FJi.New},{id:1,displayName:"Accepted",value:_.FJi.Accepted},{id:2,displayName:"Rejected",value:_.FJi.Rejected},{id:3,displayName:"Superseded",value:_.FJi.Superseded}],this.defaultPageSize=10}ngOnInit(){this.routeSub=this.route.params.subscribe(o=>{this.queryRef=this.gql.watch({first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:_.FJi.New});let r=this.queryRef.valueChanges;this.revisions$=r.pipe((0,a.j)("data","revisions","edges"),(0,z.U)(d=>d.map(R=>R.node))),this.isLoading$=r.pipe((0,z.U)(d=>d.loading),(0,t.O)(!0)),this.pageInfo$=r.pipe((0,a.j)("data","revisions","pageInfo")),this.uniqueRevisors$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.uniqueRevisors})),this.uniqueResolvers$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.uniqueResolvers})),this.revisionFields$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.revisedFieldNames.map((rn,he)=>Object.assign(Object.assign({},rn),{id:he}))})),this.unfilteredCount$=r.pipe((0,a.j)("data","revisions","unfilteredCountForSubject"))})}ngOnDestroy(){var o;null===(o=this.routeSub)||void 0===o||o.unsubscribe()}onFieldNameSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},fieldName:o?o.name:void 0})}onRevisorSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},originatingUserId:o?o.id:void 0})}onResolverSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},resolvingUserId:o?o.id:void 0})}onStatusSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},status:o?o.value:void 0})}onRevisionSetSelected(o){this.filteredSet=o,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:o||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(o){var r;null===(r=this.queryRef)||void 0===r||r.fetchMore({variables:{first:this.defaultPageSize,after:o}})}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(_.L5n),n.Y36(m.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{id:"id",entityType:"entityType"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noRevisions",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"revisions","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Revision Status",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Revisors",3,"participantList","participantSelectedEvent"],["listTitle","Fields Revised",3,"participantList","participantSelectedEvent"],["listTitle","Resolvers",3,"participantList","participantSelectedEvent"],[3,"revisions","revisionSetSelectedEvent","revisionMutationCompleted"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[4,"nzSpaceItem"],["nzMode","closeable",3,"nzOnClose"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["noneFound",""],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(o,r){if(1&o&&(n.YNc(0,ue,23,14,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Te,4,4,"ng-template",null,1,n.W1O)),2&o){const d=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",d)}},directives:[T.O5,O.SK,O.t3,x.NU,x.$1,ne,w.eJ,pn.ix,dn.dQ,gn.w,Y.j,te.l,ee.Dz,_n.Ls,mn.p9],pipes:[w.fM,T.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})()},2914:(H,P,i)=>{i.d(P,{A:()=>w});var _=i(9808),a=i(6949),z=i(1894),t=i(3762),n=i(7484),m=i(8144),T=i(8481),O=i(3618),x=i(1150),L=i(6699),S=i(1835),D=i(685),y=i(6042),I=i(647),Q=i(5e3);let w=(()=>{class B{}return B.\u0275fac=function(M){return new(M||B)},B.\u0275mod=Q.oAB({type:B}),B.\u0275inj=Q.cJS({imports:[[_.ez,a.WG,z.Jb,t.Ph,n.vh,m.zf,T.X,O.ZJ,L.Rt,D.Xo,y.sL,I.PV,x.N,S.i]]}),B})()},759:(H,P,i)=>{i.d(P,{N:()=>V});var _=i(373),a=i(5e3),z=i(712),t=i(3618),n=i(9808),m=i(325),T=i(6699),O=i(3610),x=i(6265),L=i(3098),S=i(2937);function D(C,b){1&C&&(a.ynx(0),a._uU(1,", "),a.BQk())}function y(C,b){if(1&C&&(a.ynx(0),a._uU(1),a.ALo(2,"eventVerbiage"),a.YNc(3,D,2,0,"ng-container",12),a.BQk()),2&C){const Z=b.$implicit,$=b.last;a.xp6(1),a.hij(" ",a.Dn7(2,2,Z.action,"contributor-card",Z.count),""),a.xp6(2),a.Q6J("ngIf",!$)}}function I(C,b){if(1&C&&(a.TgZ(0,"nz-descriptions",8),a.TgZ(1,"nz-descriptions-item",9),a.YNc(2,y,4,6,"ng-container",10),a.qZA(),a.TgZ(3,"nz-descriptions-item",11),a._uU(4),a.ALo(5,"date"),a.qZA(),a.qZA()),2&C){const Z=a.oxw(2).$implicit;a.Q6J("nzColumn",1),a.xp6(2),a.Q6J("ngForOf",Z.uniqueActions),a.xp6(2),a.hij(" ",a.lcZ(5,3,Z.lastActionDate)," ")}}function Q(C,b){if(1&C&&(a.TgZ(0,"cvc-user-popover",6),a.YNc(1,I,6,5,"ng-template",null,7,a.W1O),a.qZA()),2&C){const Z=a.oxw().$implicit;a.Q6J("userId",Z.user.id)}}function w(C,b){if(1&C&&(a.TgZ(0,"a",3),a._UZ(1,"nz-avatar",4),a.YNc(2,Q,3,1,"ng-template",null,5,a.W1O),a.qZA()),2&C){const Z=b.$implicit,$=a.MAs(3);a.MGl("routerLink","/users/",Z.user.id,""),a.xp6(1),a.Q6J("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",$)("nzSrc",Z.user.profileImagePath)}}function B(C,b){if(1&C&&(a.ynx(0),a.YNc(1,w,4,5,"a",2),a.BQk()),2&C){const Z=a.oxw();a.xp6(1),a.Q6J("ngForOf",Z.sortedContributors)}}function u(C,b){1&C&&a._uU(0," None\n")}let M=(()=>{class C{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((Z,$)=>$.totalActionCount-Z.totalActionCount)}}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noContributors",""],["class","avatar",3,"routerLink",4,"ngFor","ngForOf"],[1,"avatar",3,"routerLink"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","bottomRight","nzIcon","user","nzSize","small",3,"nzSize","nzPopoverMouseEnterDelay","nzPopoverContent","nzSrc"],["curatorPopover",""],[3,"userId"],["additionalMetadata",""],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(Z,$){if(1&Z&&(a.YNc(0,B,2,1,"ng-container",0),a.YNc(1,u,1,0,"ng-template",null,1,a.W1O)),2&Z){const G=a.MAs(2);a.Q6J("ngIf",$.sortedContributors&&$.sortedContributors.length>0)("ngIfElse",G)}},directives:[n.O5,n.sg,m.yS,T.Dz,O.lU,x.q,L.R7,L.uj],pipes:[S.R,n.uU],styles:[""]}),C})();var h=i(6949);function F(C,b){if(1&C&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&C){const Z=b.ngIf;a.xp6(1),a.Q6J("contributors",Z)}}function J(C,b){1&C&&a._uU(0," None ")}function W(C,b){if(1&C&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&C){const Z=b.ngIf;a.xp6(1),a.Q6J("contributors",Z)}}function K(C,b){1&C&&a._uU(0," None ")}let V=(()=>{class C{constructor(Z){this.gql=Z}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let Z=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=Z.pipe((0,_.j)("data","contributors","curators")),this.editors$=Z.pipe((0,_.j)("data","contributors","editors"))}}return C.\u0275fac=function(Z){return new(Z||C)(a.Y36(z.kQf))},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],["noCurators",""],["noEditors",""],[3,"contributors"]],template:function(Z,$){if(1&Z&&(a.TgZ(0,"span",0),a._uU(1,"Curators:"),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,F,2,1,"ng-container",2),a.ALo(4,"ngrxPush"),a.YNc(5,J,1,0,"ng-template",null,3,a.W1O),a.qZA(),a.TgZ(7,"span",0),a._uU(8,"Editors:"),a.qZA(),a.TgZ(9,"div",1),a.YNc(10,W,2,1,"ng-container",2),a.ALo(11,"ngrxPush"),a.YNc(12,K,1,0,"ng-template",null,4,a.W1O),a.qZA()),2&Z){const G=a.MAs(6),f=a.MAs(13);a.xp6(3),a.Q6J("ngIf",a.lcZ(4,4,$.curators$))("ngIfElse",G),a.xp6(7),a.Q6J("ngIf",a.lcZ(11,6,$.editors$))("ngIfElse",f)}},directives:[t.ZU,n.O5,M],pipes:[h.fM],styles:["[_nghost-%COMP%]{display:inline-block}.role-group-label[_ngcontent-%COMP%]{margin-left:12px}.role-group[_ngcontent-%COMP%]{display:inline-block}.role-group[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{display:inline-block;margin-left:2px}"]}),C})()},5750:(H,P,i)=>{i.d(P,{Z:()=>D});var _=i(9808),a=i(6949),z=i(3618),t=i(325),n=i(6699),m=i(3610),T=i(9444),O=i(6081),x=i(3098),L=i(5e3);let S=(()=>{class y{}return y.\u0275fac=function(Q){return new(Q||y)},y.\u0275mod=L.oAB({type:y}),y.\u0275inj=L.cJS({imports:[[_.ez,t.Bz,n.Rt,m.$6,x.q6,T.s,O.J]]}),y})(),D=(()=>{class y{}return y.\u0275fac=function(Q){return new(Q||y)},y.\u0275mod=L.oAB({type:y}),y.\u0275inj=L.cJS({imports:[[_.ez,a.WG,z.ZJ,S]]}),y})()},9077:(H,P,i)=>{i.d(P,{Q:()=>B});var _=i(6123),a=i(712),z=i(8929),t=i(4850),n=i(7625),m=i(5e3),T=i(9169),O=i(9808),x=i(6042),L=i(2643),S=i(2683),D=i(404),y=i(647),I=i(6949);function Q(u,M){if(1&u){const h=m.EpF();m.ynx(0),m.TgZ(1,"button",2),m.NdJ("click",function(){return m.CHM(h),m.oxw().unsubscribe()}),m._UZ(2,"i",3),m.qZA(),m.BQk()}if(2&u){const h=m.oxw();m.xp6(1),m.Q6J("nzLoading",h.isSubmitting)}}function w(u,M){if(1&u){const h=m.EpF();m.TgZ(0,"button",4),m.NdJ("click",function(){return m.CHM(h),m.oxw().subscribe()}),m._UZ(1,"i",5),m.qZA()}if(2&u){const h=m.oxw();m.Q6J("nzLoading",h.isSubmitting)}}let B=(()=>{class u{constructor(h,F,J,W){this.isSubscribedGQL=h,this.unsubscribeMutation=F,this.subscribeMutation=J,this.networkErrorService=W,this.isSubmitting=!1,this.destroy$=new z.xQ,this.unsubscribeMutator=new _.U(W),this.subscribeMutator=new _.U(W)}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.typename)throw new Error("Must pass in a typename to the CvcEntitySubscriptionButtonComponent");if(void 0===this.subscribableId)throw new Error("Must pass in a subscribableId to the CvcEntitySubscriptionButtonComponent");this.subscribable={id:this.subscribableId,entityType:a.o71[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,t.U)(({data:F})=>F.subscriptionForEntity))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(F=>{var J;F&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}unsubscribe(){this.subscribable&&(this.isSubmitting=!0,this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(F=>{var J;F&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(h){return new(h||u)(m.Y36(a.A4J),m.Y36(a.m$d),m.Y36(a.jMx),m.Y36(T.Y))},u.\u0275cmp=m.Xpm({type:u,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noSub",""],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(h,F){if(1&h&&(m.YNc(0,Q,3,1,"ng-container",0),m.ALo(1,"ngrxPush"),m.YNc(2,w,2,1,"ng-template",null,1,m.W1O)),2&h){const J=m.MAs(3);m.Q6J("ngIf",m.lcZ(1,2,F.existingSubscription$))("ngIfElse",J)}},directives:[O.O5,x.ix,L.dQ,S.w,D.SY,y.Ls],pipes:[I.fM],styles:["[_nghost-%COMP%]{display:block}"]}),u})()},4609:(H,P,i)=>{i.d(P,{g:()=>T});var _=i(9808),a=i(6042),z=i(6949),t=i(647),n=i(404),m=i(5e3);let T=(()=>{class O{}return O.\u0275fac=function(L){return new(L||O)},O.\u0275mod=m.oAB({type:O}),O.\u0275inj=m.cJS({imports:[[_.ez,a.sL,t.PV,n.cg,z.WG]]}),O})()},7701:(H,P,i)=>{i.d(P,{j:()=>G});var _=i(6654),a=i(5e3),z=i(9808),t=i(325),n=i(8481),m=i(3610),T=i(4850),O=i(712),x=i(7484),L=i(647),S=i(6550),D=i(3098),y=i(6949);function I(f,N){if(1&f&&(a._UZ(0,"i",7),a._uU(1)),2&f){const A=a.oxw().ngIf;a.xp6(1),a.hij(" ",A.name," ")}}function Q(f,N){if(1&f&&(a.TgZ(0,"cvc-link-tag",9),a._uU(1),a.qZA()),2&f){const A=a.oxw(2).ngIf;a.Q6J("href",A.url),a.xp6(1),a.hij(" ",A.soid," ")}}function w(f,N){if(1&f&&a.YNc(0,Q,2,2,"cvc-link-tag",8),2&f){const A=a.oxw().ngIf;a.Q6J("ngIf","N/A"!=A.soid)}}function B(f,N){if(1&f&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,I,2,1,"ng-template",null,3,a.W1O),a.YNc(4,w,1,1,"ng-template",null,4,a.W1O),a.TgZ(6,"nz-descriptions",5),a.TgZ(7,"nz-descriptions-item",6),a._uU(8),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&f){const A=N.ngIf,j=a.MAs(3),k=a.MAs(5);a.xp6(1),a.Q6J("nzTitle",j)("nzExtra",k),a.xp6(5),a.Q6J("nzColumn",2),a.xp6(2),a.hij(" ",A.variantCount," ")}}let u=(()=>{class f{constructor(A){this.gql=A}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,T.U)(({data:A})=>A.variantTypePopover))}}return f.\u0275fac=function(A){return new(A||f)(a.Y36(O.tw_))},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(A,j){1&A&&(a.TgZ(0,"div",0),a.YNc(1,B,9,4,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&A&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,j.variantType$)))},directives:[z.O5,x.bd,L.Ls,S.l,D.R7,D.uj],pipes:[y.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}"]}),f})();function M(f,N){}function h(f,N){if(1&f&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,M,0,0,"ng-template",6),a.qZA(),a.BQk()),2&f){const A=a.oxw(),j=a.MAs(2);a.xp6(1),a.Q6J("routerLink",A.variantType.link),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function F(f,N){}function J(f,N){if(1&f&&(a.TgZ(0,"nz-tag",9),a.YNc(1,F,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const A=a.MAs(2);a.oxw();const j=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",A),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function W(f,N){if(1&f&&a._UZ(0,"cvc-variant-type-popover",10),2&f){const A=a.oxw(2);a.Q6J("variantTypeId",A.variantType.id)}}function K(f,N){if(1&f&&(a.YNc(0,J,2,3,"nz-tag",7),a.YNc(1,W,1,1,"ng-template",null,8,a.W1O)),2&f){const A=a.oxw(),j=a.MAs(6);a.Q6J("ngIf",A.enablePopover)("ngIfElse",j)}}function V(f,N){}function C(f,N){if(1&f&&a.YNc(0,V,0,0,"ng-template",6),2&f){a.oxw();const A=a.MAs(2);a.Q6J("ngTemplateOutlet",A)}}function b(f,N){}function Z(f,N){if(1&f&&(a.TgZ(0,"nz-tag"),a.YNc(1,b,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const A=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",A)}}function $(f,N){if(1&f&&(a._UZ(0,"i",11),a._uU(1)),2&f){const A=a.oxw();a.xp6(1),a.hij(" ",A.variantType.name,"\n")}}let G=(()=>{class f extends _.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return f.\u0275fac=function(A){return new(A||f)},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[a.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(A,j){if(1&A&&(a.YNc(0,h,3,2,"ng-container",0),a.YNc(1,K,3,2,"ng-template",null,1,a.W1O),a.YNc(3,C,1,1,"ng-template",null,2,a.W1O),a.YNc(5,Z,2,1,"ng-template",null,3,a.W1O),a.YNc(7,$,2,1,"ng-template",null,4,a.W1O)),2&A){const k=a.MAs(4);a.Q6J("ngIf",j.linked)("ngIfElse",k)}},directives:[z.O5,t.yS,z.tP,n.j,m.lU,u,L.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),f})()},8645:(H,P,i)=>{i.d(P,{M:()=>D});var _=i(9808),a=i(325),z=i(8481),t=i(7484),n=i(3630),m=i(3098),T=i(6949),O=i(647),x=i(5e3);let L=(()=>{class y{}return y.\u0275fac=function(Q){return new(Q||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[_.ez,T.WG,O.PV,t.vh,m.q6,n.X]]}),y})();var S=i(3610);let D=(()=>{class y{}return y.\u0275fac=function(Q){return new(Q||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[_.ez,a.Bz,O.PV,z.X,S.$6,L]]}),y})()},1243:(H,P,i)=>{i.d(P,{I:()=>a});var _=i(5e3);let a=(()=>{class z{transform(n){if(n){let T=n.toLowerCase().replace(/_/g," ").split(" ");for(var m=0;m{t.d(x,{u:()=>e});var p=t(5e3),g=t(685),o=t(1912),h=t(3618),m=t(647);function r(n,a){1&n&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function O(n,a){1&n&&p._UZ(0,"cvc-login-button")}function T(n,a){1&n&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=p.Xpm({type:n,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(i,u){if(1&i&&(p.TgZ(0,"nz-empty",0),p.YNc(1,r,2,0,"ng-template",null,1,p.W1O),p.YNc(3,O,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,T,2,0,"ng-template",null,3,p.W1O)),2&i){const s=p.MAs(2),C=p.MAs(4),E=p.MAs(6);p.Q6J("nzNotFoundImage",E)("nzNotFoundContent",s)("nzNotFoundFooter",C)}},directives:[g.p9,o.s,h.ZU,m.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),n})()},9386:(b,x,t)=>{t.d(x,{a:()=>O});var p=t(9808),g=t(1844),o=t(685),h=t(647),m=t(3618),r=t(5e3);let O=(()=>{class T{}return T.\u0275fac=function(n){return new(n||T)},T.\u0275mod=r.oAB({type:T}),T.\u0275inj=r.cJS({imports:[[p.ez,g.B,o.Xo,h.PV,m.ZJ]]}),T})()},7905:(b,x,t)=>{t.d(x,{yQ:()=>h,nT:()=>r});var p=t(915),g=t(712),o=t(444),h=(()=>{return(O=h||(h={})).EVIDENCE="Evidence",O.ASSERTION="Assertion",h;var O})();class r{constructor(T){this.validStates=new Map,this.getTypeOptions=()=>this.entityName==h.ASSERTION?(0,o.o6)(g.uBv).map(e=>e):(0,o.o6)(g.kqt).map(e=>e),this.getSignificanceOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.clinicalSignificance)||[]},this.isValidSignificanceOption=(e,n)=>{const a=this.validStates.get(e);return!a||a.clinicalSignificance.includes(n)},this.getDirectionOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.entityDirection)||[]},this.isValidDirectionOption=(e,n)=>{const a=this.validStates.get(e);return!a||a.entityDirection.includes(n)},this.requiresDrug=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDrug},this.requiresDisease=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDisease},this.requiresAcmgCodes=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAcmgCodes},this.requiresAmpLevel=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAmpLevel},this.allowsFdaApproval=e=>{const n=this.validStates.get(e);return void 0===n||n.allowsFdaApproval},this.getOptionsFromEnums=e=>0===e.length?[]:e.map(n=>({value:n,label:(0,p.E)(n)})),this.entityName=T,this.pluralNames=new Map,this.pluralNames.set(h.ASSERTION,"Assertions"),this.pluralNames.set(h.EVIDENCE,"Evidence")}}},1135:(b,x,t)=>{t.d(x,{C:()=>u});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(304),r=t(8054),O=t(915);const T={Evidence:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{NA:"Clinical Significance is not applicable."},FUNCTIONAL:{GAIN_OF_FUNCTION:"Sequence variant confers an increase in normal gene function",LOSS_OF_FUNCTION:"Sequence variant confers a diminished or abolished function",UNALTERED_FUNCTION:"Gene product of sequence variant is unchanged",NEOMORPHIC:"Sequence variant creates a novel function",DOMINANT_NEGATIVE:"Sequence variant abrogates function of wildtype allele gene product",UNKNOWN:"Sequence variant that cannot be precisely defined by the other listed categories"},ONCOGENIC:{NA:"Clinical Significance is not applicable."}},Assertion:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PATHOGENIC:"Very strong evidence the variant is pathogenic",LIKELY_PATHOGENIC:"Strong evidence (>90% certainty) the variant is pathogenic.",BENIGN:"Very strong evidence the variant is benign",LIKELY_BENIGN:"Not expected to have a major effect on disease",UNCERTAIN_SIGNIFICANCE:"Does not fullfill the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"}}},e={name:"clinical-significance-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Clinical Signficance",helpText:"The impact of the variant for predictive, prognostic, diagnostic, or functional evidence types. For predisposing and oncogenic evidence, impact is only applied at the assertion level and N/A should be selected here.",placeholder:"None specified",options:[]},validators:{validation:["cs-option"]},hooks:{onInit:s=>{var C;const E=s.templateOptions,D=null===(C=null==s?void 0:s.options)||void 0===C?void 0:C.formState;if(!D)return;const F=(null==s?void 0:s.form)?s.form.get("evidenceType"):null;!F||(E.options=D.getOptionsFromEnums(D.getSignificanceOptions(F.value)),E.vcSub=F.valueChanges.subscribe(U=>{E.options=D.getOptionsFromEnums(D.getSignificanceOptions(U)),s.formControl.updateValueAndValidity()}))},onDestroy:s=>{s.templateOptions.vcSub.unsubscribe()}},expressionProperties:{"templateOptions.optionText":(s,C,E)=>{if(C.entityName&&s.evidenceType&&s.clinicalSignificance)return T[C.entityName][s.evidenceType][s.clinicalSignificance]}}}},n={name:"cs-option",validation:(s,C,E)=>{var D,F,U;const J=null===(D=C.options)||void 0===D?void 0:D.formState,Z=s.value;if(!Z||!J)return null;const B=null===(U=null===(F=s.parent)||void 0===F?void 0:F.get("evidenceType"))||void 0===U?void 0:U.value;return B?J.isValidSignificanceOption(B,Z)?null:{"cs-option":B}:null}},a={name:"cs-option",message:(s,C)=>{var E;const D=C.options.formState;return`'${(0,O.E)(null===(E=C.formControl)||void 0===E?void 0:E.value)}' is not a valid Clinical Significance for ${(0,O.E)(s)} ${D.pluralNames.get(D.entityName)}.`}};var i=t(5e3);let u=(()=>{class s{}return s.\u0275fac=function(E){return new(E||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[[p.ez,g.u5,g.UX,r.LV,m.F,h.F,o.X0.forChild({types:[e],validators:[n],validationMessages:[a]})]]}),s})()},5452:(b,x,t)=>{t.d(x,{C:()=>X});var p=t(9808),g=t(8776),o=t(7625),h=t(373),m=t(4850),r=t(8929),O=t(591),T=t(6123),e=t(5e3),n=t(712),a=t(9169),i=t(8054),u=t(4182),s=t(6949),C=t(8144),E=t(3618),D=t(7469),F=t(822),U=t(6042),J=t(2643),Z=t(2683),B=t(8926);function I(y,P){if(1&y&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&y){const f=e.oxw().$implicit,S=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,f.label,S.to.searchString),e.oJD)}}function V(y,P){if(1&y&&(e.TgZ(0,"div"),e._UZ(1,"span",12),e.ALo(2,"highlightTypeahead"),e.qZA()),2&y){const f=e.oxw(2).$implicit,S=e.oxw(3);e.xp6(1),e.Q6J("innerHtml",e.xi3(2,1,f.drug.drugAliases.join(", "),S.to.searchString),e.oJD)}}function l(y,P){1&y&&(e.ynx(0),e.YNc(1,V,3,4,"div",11),e.BQk())}function z(y,P){if(1&y&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,I,2,4,"span",8),e.YNc(3,l,2,0,"ng-container",9),e.qZA(),e.qZA()),2&y){const f=P.$implicit;e.Q6J("nzLabel",f.tooltip)("nzValue",f.drug),e.xp6(3),e.Q6J("ngIf",f.drug.drugAliases.length>0)}}function A(y,P){if(1&y&&(e.ynx(0),e.YNc(1,z,4,3,"nz-option",6),e.BQk()),2&y){const f=P.ngrxLet;e.xp6(1),e.Q6J("ngForOf",f)}}function L(y,P){1&y&&e._uU(0," No drug found in CIViC that matches the string provided. ")}function Q(y,P){if(1&y){const f=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(N){return e.CHM(f),e.oxw().to.onSearch(N)}),e.YNc(2,A,2,1,"ng-container",4),e.qZA(),e.YNc(3,L,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&y){const f=e.MAs(4),S=e.oxw(),N=e.MAs(4);e.xp6(1),e.Q6J("formControl",S.formControl)("formlyAttributes",S.field)("nzPlaceHolder",S.to.placeholder?S.to.placeholder:null)("nzNotFoundContent",f)("nzDropdownRender",S.to.allowCreate?N:null)("nzShowArrow",S.to.showArrow)("nzFilterOption",S.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",S.drugs$)}}function v(y,P){if(1&y&&e._UZ(0,"cvc-drug-tag",13),2&y){const f=e.oxw();e.Q6J("drug",f.formControl.value)}}function M(y,P){if(1&y&&e._UZ(0,"cvc-form-errors-alert",16),2&y){const f=e.oxw(4);e.Q6J("errors",f.errorMessages)}}function c(y,P){if(1&y){const f=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){e.CHM(f);const N=e.oxw(4);return N.addDrug(N.to.searchString)}),e._UZ(1,"i",18),e._uU(2,"No Existing CIViC Drug\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Drug? "),e.qZA()}if(2&y){const f=e.oxw(4);e.Q6J("nzLoading",f.loading),e.xp6(4),e.Oqu(f.to.searchString)}}function d(y,P){if(1&y&&(e.ynx(0),e.YNc(1,M,1,1,"cvc-form-errors-alert",14),e.YNc(2,c,6,2,"button",15),e.BQk()),2&y){const f=e.oxw(3);e.xp6(1),e.Q6J("ngIf",f.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==f.errorMessages.length)}}function _(y,P){if(1&y&&(e.ynx(0),e.YNc(1,d,3,2,"ng-container",9),e.BQk()),2&y){const f=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==f.to.searchString&&f.to.searchString.length>=5)}}function R(y,P){if(1&y&&(e.YNc(0,_,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&y){const f=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,f.displayAdd$))}}const $={name:"drug-input",component:(()=>{class y extends g.fS{constructor(f,S,N){super(),this.drugTypeaheadQuery=f,this.networkErrorService=S,this.addDrugGQL=N,this.destroy$=new r.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new O.X(!1),this.addDrugMutator=new T.U(S),this.defaultOptions={templateOptions:{placeholder:"Search Drugs",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.drugTypeaheadQuery.watch({name:"zzzzz"}),this.drugs$=this.queryRef.valueChanges.pipe((0,o.R)(this.destroy$),(0,h.j)("data","drugTypeahead"),(0,m.U)(f=>f.map(S=>{let N=S.ncitId?`${S.ncitId}`:"no NCIt ID",H=S.drugAliases.length>0?`Aliases: ${S.drugAliases.join(", ")}`:"";return{value:S.id,tooltip:`${S.name} (${N}) ${H}`,label:`${S.name} (${N})`,drug:S}})))}ngAfterViewInit(){this.to.onSearch=f=>{f.length{let N=0==S.data.drugTypeahead.filter(H=>H.name.toUpperCase()==f.toUpperCase()).length;this.displayAdd$.next(N)}))}}addDrug(f){if(f&&""!=f){let S=this.addDrugMutator.mutate(this.addDrugGQL,{name:f},N=>{var H;null===(H=this.field.formControl)||void 0===H||H.setValue({id:N.addDrug.drug.id,name:N.addDrug.drug.name}),this.to.searchString="",this.to.searchLength=0});S.submitSuccess$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.success=!0)}),S.submitError$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.errorMessages=N,this.success=!1)}),S.isSubmitting$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{this.loading=N})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return y.\u0275fac=function(f){return new(f||y)(e.Y36(n.vRc),e.Y36(a.Y),e.Y36(n.T97))},y.\u0275cmp=e.Xpm({type:y,selectors:[["cvc-drug-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["addDrugTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzDropdownRender","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],[4,"ngIf"],[3,"innerHtml"],[4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"drug"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(f,S){if(1&f&&(e.YNc(0,Q,5,8,"ng-container",0),e.YNc(1,v,1,1,"ng-template",null,1,e.W1O),e.YNc(3,R,2,3,"ng-template",null,2,e.W1O)),2&f){const N=e.MAs(2);e.Q6J("ngIf",!(null!=S.formControl.value&&S.formControl.value.id))("ngIfElse",N)}},directives:[p.O5,i.Vq,u.JJ,u.oH,g.VQ,s.eJ,p.sg,i.Ip,C.NU,C.$1,E.ZU,D.u,F.V,U.ix,J.dQ,Z.w],pipes:[B.A,s.fM],styles:[""]}),y})()};var Y=t(8018),G=t(7008),W=t(1047),j=t(9444);let X=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[p.ez,u.u5,u.UX,s.WG,g.X0.forChild({types:[$]}),i.LV,C.zf,E.ZJ,U.sL,W.o7,Y.e,G.B,j.s]]}),y})()},4581:(b,x,t)=>{t.d(x,{e:()=>a});var p=t(9808),g=t(4182),o=t(3793),h=t(8776),m=t(712),r=t(444);const T={COMBINATION:"The drugs listed were used as part of a combination therapy approach",SEQUENTIAL:"The drugs listed were used at separate timepoints in the same treatment plan",SUBSTITUTES:"The drugs listed are often considered to be of the same family, or behave similarly in a treatment setting"},e={name:"drug-interaction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug Interaction Type",helpText:"Indicate whether the drugs specified above are substitutes, or are used in sequential or combination treatments.",required:!1,placeholder:"Not specified",options:(0,r.o6)(m.Zyn).map((i,u)=>({value:i,label:u}))},validation:{messages:{required:(i,u)=>"Evidence with more than one drug must specify an interaction type."}},hideExpression:(i,u,s)=>!(!i.drugs||i.drugs.length>1),expressionProperties:{"templateOptions.required":(i,u,s)=>!!i.drugs&&i.drugs.length>1,"templateOptions.optionText":(i,u,s)=>T[i.drugInteractionType]}}};var n=t(5e3);let a=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[p.ez,g.UX,o.F,h.X0.forChild({types:[e]})]]}),i})()},2480:(b,x,t)=>{t.d(x,{r:()=>e});var p=t(9808),g=t(8776),o=t(5452),h=t(8390),m=t(915);const O={name:"drug-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug",helpText:"Please enter a drug name. If you are unable to locate the drug in the dropdown, please check the 'Could not find drug' checkbox below and enter the drug in the field that appears.",required:!1,addText:"Add a Drug"},fieldArray:{type:"drug-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(n,a,i)=>{var u,s;const C=null===(s=null===(u=null==i?void 0:i.parent)||void 0===u?void 0:u.templateOptions)||void 0===s?void 0:s.allowCreate;return void 0===C||C}}},defaultValue:[],validation:{messages:{required:(n,a)=>{const i=(null==a?void 0:a.form)?a.form.get("evidenceType"):null;return i?`${(0,m.E)(i.value)} Evidence requires at least one drug to be specified.`:"Drug is required."}}},hooks:{onInit:n=>{var a;const i=n.templateOptions,u=null===(a=null==n?void 0:n.options)||void 0===a?void 0:a.formState,s=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;!s||(i.vcSub=s.valueChanges.subscribe(C=>{u.requiresDrug(C)?(i.hidden=!1,i.required=!0):(i.hidden=!0,i.required=!1,n.model.length>0&&(n.model.splice(1),i.remove(0)))}))},onDestroy:n=>{n.templateOptions.vcSub.unsubscribe()}}}};var T=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=T.oAB({type:n}),n.\u0275inj=T.cJS({imports:[[p.ez,g.X0.forChild({types:[O]}),o.C,h.N]]}),n})()},5932:(b,x,t)=>{t.d(x,{A:()=>e});var p=t(9808),g=t(8776),o=t(915);const h={Evidence:{PREDICTIVE:{SUPPORTS:"The experiment or study supports this variant's response to a drug",DOES_NOT_SUPPORT:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{NA:"Evidence Direction is Not Applicable."},FUNCTIONAL:{SUPPORTS:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Evidence Direction is Not Applicable for Oncogenic Evidence Type."}},Assertion:{PREDICTIVE:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's response to a drug",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a predisposing association between variant and outcome"},FUNCTIONAL:{SUPPORTS:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}}},m={name:"evidence-direction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Direction",placeholder:"None specified",options:[]},expressionProperties:{"templateOptions.optionText":(n,a,i)=>{if(a.entityName&&n.evidenceType&&n.evidenceDirection)return h[a.entityName][n.evidenceType][n.evidenceDirection]}},validators:{validation:["ed-option"]},hooks:{onInit:n=>{var a;const i=n.templateOptions,u=null===(a=null==n?void 0:n.options)||void 0===a?void 0:a.formState;if(u){i.label=`${u.entityName} Direction`,i.helpText=`An indicator of whether the ${u.entityName} statement supports or refutes the clinical significance of an event. For predisposing and oncogenic ${u.pluralNames.get(u.entityName)}, directionality is only applied at the assertion level and N/A should be selected here.`;const s=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;if(!s)return;i.options=u.getOptionsFromEnums(u.getDirectionOptions(s.value)),n.formControl.updateValueAndValidity(),i.vcSubscription=s.valueChanges.subscribe(C=>{i.options=u.getOptionsFromEnums(u.getDirectionOptions(s.value)),n.formControl.updateValueAndValidity()})}},onDestroy:n=>{n.templateOptions.vcSubscription.unsubscribe()}}}},r={name:"ed-option",validation:(n,a,i)=>{var u,s,C;const E=null===(u=a.options)||void 0===u?void 0:u.formState,D=n.value;if(!D||!E)return null;const F=null===(C=null===(s=n.parent)||void 0===s?void 0:s.get("evidenceType"))||void 0===C?void 0:C.value;return F?E.isValidDirectionOption(F,D)?null:{"ed-option":F}:null}},O={name:"ed-option",message:(n,a)=>{var i;return`'${(0,o.E)(null===(i=a.formControl)||void 0===i?void 0:i.value)}' is not a valid Clinical Significance for ${(0,o.E)(n)} Evidence.`}};var T=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=T.oAB({type:n}),n.\u0275inj=T.cJS({imports:[[p.ez,g.X0.forChild({types:[m],validators:[r],validationMessages:[O]})]]}),n})()},2789:(b,x,t)=>{t.d(x,{o:()=>a});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(712),r=t(444);const O=new Map([[m.Sx0.A,"A - Validated association"],[m.Sx0.B,"B - Clinical evidence"],[m.Sx0.C,"C - Case study"],[m.Sx0.D,"D - Preclinical evidence"],[m.Sx0.E,"E - Inferential association"]]),T=new Map([[m.Sx0.A,"Evidence shows consensus association in human medicine"],[m.Sx0.B,"Evidence supports association using clinical trial or other primary patient data"],[m.Sx0.C,"Evidence supports association using individual case reports from clinical journals"],[m.Sx0.D,"Evidence supports association using in vivo or in vitro models"],[m.Sx0.E,"Evidential association is inferential or indirect"]]),e={name:"evidence-level-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Level",placeholder:"None specified",helpText:"Type of study performed to produce the evidence statement",options:(0,r.o6)(m.Sx0).map(i=>({value:i,label:O.get(i)})),labels:O,descriptions:T},expressionProperties:{"templateOptions.optionText":(i,u,s)=>T.get(i.evidenceLevel)}}};var n=t(5e3);let a=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[p.ez,g.UX,h.F,o.X0.forChild({types:[e]})]]}),i})()},3643:(b,x,t)=>{t.d(x,{q:()=>T});var p=t(9808),g=t(4182),o=t(3793),h=t(8776);const m={DIAGNOSTIC:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",PREDICTIVE:"Evidence pertains to a variant's effect on therapeutic response",PROGNOSTIC:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival",PREDISPOSING:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",ONCOGENIC:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",FUNCTIONAL:"Evidence pertains to a variant that alters biological function from the reference state"},r={name:"evidence-type-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Entity Type",placeholder:"Not specified",options:[]},hooks:{onInit:e=>{var n;const a=e.templateOptions,i=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.formState;i?(a.label=`${i.entityName} Type`,a.helpText=`Type of clinical outcome associated with the ${i.entityName} statement.`,a.options=i.getOptionsFromEnums(i.getTypeOptions())):console.warn("entity-type-select requires a formState to populate select options.")}},expressionProperties:{"templateOptions.optionText":(e,n,a)=>m[e.evidenceType]}}};var O=t(5e3);let T=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=O.oAB({type:e}),e.\u0275inj=O.cJS({imports:[[p.ez,g.UX,o.F,h.X0.forChild({types:[r]})]]}),e})()},5457:(b,x,t)=>{t.d(x,{$:()=>B});var p=t(9808),g=t(8776),o=t(8929),h=t(7625),m=t(373),r=t(5e3),O=t(712),T=t(8054),e=t(4182),n=t(6949),a=t(7956),i=t(8926);function u(I,V){if(1&I&&(r.TgZ(0,"nz-option",6),r._UZ(1,"span",7),r.ALo(2,"highlightTypeahead"),r._uU(3),r.qZA()),2&I){const l=V.$implicit,z=r.oxw(3);r.hYB("nzLabel","",l.name," (",l.hpoId,")"),r.Q6J("nzValue",l),r.xp6(1),r.Q6J("innerHtml",r.xi3(2,5,l.name,z.to.searchString),r.oJD),r.xp6(2),r.hij(" - (",l.hpoId,") ")}}function s(I,V){if(1&I&&(r.ynx(0),r.YNc(1,u,4,8,"nz-option",5),r.BQk()),2&I){const l=V.ngrxLet;r.xp6(1),r.Q6J("ngForOf",l)}}function C(I,V){1&I&&r._uU(0," No phenotype found in CIViC that matches the string provided. ")}function E(I,V){if(1&I){const l=r.EpF();r.ynx(0),r.TgZ(1,"nz-select",2),r.NdJ("nzOnSearch",function(A){return r.CHM(l),r.oxw().to.onSearch(A)}),r.YNc(2,s,2,1,"ng-container",3),r.qZA(),r.YNc(3,C,1,0,"ng-template",null,4,r.W1O),r.BQk()}if(2&I){const l=r.MAs(4),z=r.oxw();r.xp6(1),r.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",l)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),r.xp6(1),r.Q6J("ngrxLet",z.phenotypes$)}}function D(I,V){if(1&I&&r._UZ(0,"cvc-phenotype-tag",8),2&I){const l=r.oxw();r.Q6J("phenotype",l.formControl.value)}}const U={name:"phenotype-input",component:(()=>{class I extends g.fS{constructor(l){super(),this.phenotypeTypeaheadQuery=l,this.destroy$=new o.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Phenotypes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.phenotypeTypeaheadQuery.watch({name:""}),this.phenotypes$=this.queryRef.valueChanges.pipe((0,h.R)(this.destroy$),(0,m.j)("data","phenotypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=l=>{var z;this.to.fieldValue=l,this.to.fieldLength=l.length,!(l.length{class I{}return I.\u0275fac=function(l){return new(l||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({imports:[[p.ez,e.UX,n.WG,g.X0.forChild({types:[U]}),T.LV,J.y,Z.s]]}),I})()},1830:(b,x,t)=>{t.d(x,{S:()=>u});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(304),r=t(8054),O=t(5457),T=t(8390),e=t(915);const a={name:"phenotype-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Phenotype",helpText:'Please provide any HPO phenotypes.',required:!1,addText:"Add a Phenotype"},fieldArray:{type:"phenotype-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(s,C)=>{const E=(null==C?void 0:C.form)?C.form.get("evidenceType"):null;return E?`${(0,e.E)(E.value)} Evidence requires at least one phenotype to be specified.`:"Phenotype is required."}}}}};var i=t(5e3);let u=(()=>{class s{}return s.\u0275fac=function(E){return new(E||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[[p.ez,g.u5,g.UX,r.LV,m.F,h.F,o.X0.forChild({types:[a]}),O.$,T.N]]}),s})()},5743:(b,x,t)=>{t.d(x,{W:()=>Q});var p=t(9808),g=t(8776),o=t(5e3),h=t(4182),m=t(655),r=t(1159),O=t(3753),T=t(7625),e=t(9439),n=t(4090),a=t(1721),i=t(226),u=t(647),s=t(404);const C=["nz-rate-item",""];function E(v,M){}function D(v,M){}function F(v,M){1&v&&o._UZ(0,"i",4)}const U=function(v){return{$implicit:v}},J=["ulElement"];function Z(v,M){if(1&v){const c=o.EpF();o.TgZ(0,"li",3),o.TgZ(1,"div",4),o.NdJ("itemHover",function(_){const w=o.CHM(c).index;return o.oxw().onItemHover(w,_)})("itemClick",function(_){const w=o.CHM(c).index;return o.oxw().onItemClick(w,_)}),o.qZA(),o.qZA()}if(2&v){const c=M.index,d=o.oxw();o.Q6J("ngClass",d.starStyleArray[c]||"")("nzTooltipTitle",d.nzTooltips[c]),o.xp6(1),o.Q6J("allowHalf",d.nzAllowHalf)("character",d.nzCharacter)("index",c)}}let B=(()=>{class v{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new o.vpe,this.itemClick=new o.vpe}hoverRate(c){this.itemHover.next(c&&this.allowHalf)}clickRate(c){this.itemClick.next(c&&this.allowHalf)}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:"allowHalf"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:C,decls:6,vars:8,consts:[[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["defaultCharacter",""],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(c,d){if(1&c&&(o.TgZ(0,"div",0),o.NdJ("mouseover",function(R){return d.hoverRate(!1),R.stopPropagation()})("click",function(){return d.clickRate(!1)}),o.YNc(1,E,0,0,"ng-template",1),o.qZA(),o.TgZ(2,"div",2),o.NdJ("mouseover",function(R){return d.hoverRate(!0),R.stopPropagation()})("click",function(){return d.clickRate(!0)}),o.YNc(3,D,0,0,"ng-template",1),o.qZA(),o.YNc(4,F,1,0,"ng-template",null,3,o.W1O)),2&c){const _=o.MAs(5);o.xp6(1),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(4,U,d.index)),o.xp6(2),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(6,U,d.index))}},directives:[p.tP,u.Ls],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,a.yF)()],v.prototype,"allowHalf",void 0),v})();const I="rate";let V=(()=>{class v{constructor(c,d,_,R,w,$){this.nzConfigService=c,this.ngZone=d,this.renderer=_,this.cdr=R,this.directionality=w,this.destroy$=$,this._nzModuleName=I,this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new o.vpe,this.nzOnFocus=new o.vpe,this.nzOnHoverChange=new o.vpe,this.nzOnKeyDown=new o.vpe,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.onChange=()=>null,this.onTouched=()=>null}get nzValue(){return this._value}set nzValue(c){this._value!==c&&(this._value=c,this.hasHalf=!Number.isInteger(c),this.hoverValue=Math.ceil(c))}ngOnChanges(c){const{nzAutoFocus:d,nzCount:_,nzValue:R}=c;if(d&&!d.isFirstChange()){const w=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(w,"autofocus","autofocus"):this.renderer.removeAttribute(w,"autofocus")}_&&this.updateStarArray(),R&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,T.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,O.R)(this.ulElement.nativeElement,"focus").pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(c))}),(0,O.R)(this.ulElement.nativeElement,"blur").pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(c))})})}onItemClick(c,d){if(this.nzDisabled)return;this.hoverValue=c+1;const _=d?c+.5:c+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(c,d){this.nzDisabled||this.hoverValue===c+1&&d===this.hasHalf||(this.hoverValue=c+1,this.hasHalf=d,this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle())}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(c){const d=this.nzValue;c.keyCode===r.SV&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),d!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(c),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((c,d)=>d),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(c=>{const d="ant-rate-star",_=c+1;return{[`${d}-full`]:_this.hoverValue,[`${d}-focused`]:this.hasHalf&&_===this.hoverValue&&this.isFocused}})}writeValue(c){this.nzValue=c||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(c){this.nzDisabled=c}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}}return v.\u0275fac=function(c){return new(c||v)(o.Y36(e.jY),o.Y36(o.R0b),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(i.Is,8),o.Y36(n.kn))},v.\u0275cmp=o.Xpm({type:v,selectors:[["nz-rate"]],viewQuery:function(c,d){if(1&c&&o.Gf(J,7),2&c){let _;o.iGM(_=o.CRH())&&(d.ulElement=_.first)}},inputs:{nzAllowClear:"nzAllowClear",nzAllowHalf:"nzAllowHalf",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzCharacter:"nzCharacter",nzCount:"nzCount",nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],features:[o._Bn([n.kn,{provide:h.JU,useExisting:(0,o.Gpc)(()=>v),multi:!0}]),o.TTD],decls:3,vars:7,consts:[[1,"ant-rate",3,"ngClass","tabindex","keydown","mouseleave"],["ulElement",""],["class","ant-rate-star","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"allowHalf","character","index","itemHover","itemClick"]],template:function(c,d){1&c&&(o.TgZ(0,"ul",0,1),o.NdJ("keydown",function(R){return d.onKeyDown(R),R.preventDefault()})("mouseleave",function(R){return d.onRateLeave(),R.stopPropagation()}),o.YNc(2,Z,2,5,"li",2),o.qZA()),2&c&&(o.ekj("ant-rate-disabled",d.nzDisabled)("ant-rate-rtl","rtl"===d.dir),o.Q6J("ngClass",d.classMap)("tabindex",d.nzDisabled?-1:1),o.xp6(2),o.Q6J("ngForOf",d.starArray))},directives:[B,p.mk,p.sg,s.SY],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,e.oS)(),(0,a.yF)()],v.prototype,"nzAllowClear",void 0),(0,m.gn)([(0,e.oS)(),(0,a.yF)()],v.prototype,"nzAllowHalf",void 0),(0,m.gn)([(0,a.yF)()],v.prototype,"nzDisabled",void 0),(0,m.gn)([(0,a.yF)()],v.prototype,"nzAutoFocus",void 0),(0,m.gn)([(0,a.Rn)()],v.prototype,"nzCount",void 0),v})(),l=(()=>{class v{}return v.\u0275fac=function(c){return new(c||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[i.vT,p.ez,u.PV,s.cg]]}),v})();const z={1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims.",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing.",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning.",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning.",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods."},L={name:"rating-input",component:(()=>{class v extends g.fS{constructor(){super(),this.defaultOptions={}}updateField(c){this.field.formControl.setValue(c);let d=this.field.templateOptions;d&&(d.optionText=z[c])}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["cvc-rating-input-type"]],features:[o.qOj],decls:2,vars:4,consts:[["type","hidden",3,"formControl","formlyAttributes"],[3,"ngModel","formlyAttributes","ngModelChange"]],template:function(c,d){1&c&&(o._UZ(0,"input",0),o.TgZ(1,"nz-rate",1),o.NdJ("ngModelChange",function(R){return d.updateField(R)}),o.qZA()),2&c&&(o.Q6J("formControl",d.formControl)("formlyAttributes",d.field),o.xp6(1),o.Q6J("ngModel",d.formControl.value)("formlyAttributes",d.field))},directives:[h.Fj,h.JJ,h.oH,g.VQ,V,h.On],styles:[""]}),v})(),wrappers:["form-field"]};let Q=(()=>{class v{}return v.\u0275fac=function(c){return new(c||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[p.ez,h.UX,h.u5,g.X0.forChild({types:[L]}),l]]}),v})()},7462:(b,x,t)=>{t.d(x,{o:()=>T});var p=t(9808),g=t(8776),o=t(5e3),h=t(1047),m=t(4182);const O={name:"cvc-textarea",component:(()=>{class e extends g.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=o.n5z(e)))(i||e)}}(),e.\u0275cmp=o.Xpm({type:e,selectors:[["cvc-textarea-base-type"]],features:[o.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(a,i){1&a&&o._UZ(0,"textarea",0),2&a&&o.Q6J("formControl",i.formControl)("formlyAttributes",i.field)("nzAutosize",i.to.autosize)("placeholder",i.to.placeholder)},directives:[h.Zp,m.Fj,h.rh,m.JJ,m.oH,g.VQ],styles:[""],changeDetection:0}),e})(),wrappers:["form-field"]};let T=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[p.ez,m.u5,m.UX,g.X0.forChild({types:[O]}),h.o7]]}),e})()},3594:(b,x,t)=>{t.d(x,{q:()=>n});var p=t(9808),g=t(915),o=t(712);const h={SOMATIC:"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring.",RARE_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item.",COMMON_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item.",UNKNOWN:"The variant origin is uncertain based on the available evidence.",NA:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."},m={name:"variant-origin-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant Origin",placeholder:"None specified",helpText:"Origin of variant",options:[{value:o.huM.Somatic,label:(0,g.E)(o.huM.Somatic)},{value:o.huM.RareGermline,label:(0,g.E)(o.huM.RareGermline)},{value:o.huM.CommonGermline,label:(0,g.E)(o.huM.CommonGermline)},{value:o.huM.Unknown,label:(0,g.E)(o.huM.Unknown)},{value:o.huM.Na,label:(0,g.E)(o.huM.Na)}]},expressionProperties:{"templateOptions.optionText":(a,i,u)=>h[a.variantOrigin]}}};var r=t(4182),O=t(8776),T=t(3793),e=t(5e3);let n=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[p.ez,r.UX,T.F,O.X0.forChild({types:[m]})]]}),a})()},6738:(b,x,t)=>{function p(e){let n={value:void 0,unset:void 0};return e&&e.trim().length>0?n.value=e.trim():n.unset=!0,n}function g(e){let n={value:void 0,unset:void 0};return void 0!==e?n.value=e:n.unset=!0,n}t.d(x,{aP:()=>T,li:()=>o,Zg:()=>h,_$:()=>m,uP:()=>g,dh:()=>r,xt:()=>p});var o=(()=>{return(e=o||(o={}))[e.NotApplicable=0]="NotApplicable",e[e.NoneFound=1]="NoneFound",e[e.Found=2]="Found",o;var e})();function h(e,n){let a,i,u;return n==o.Found?(a=void 0,i=void 0,u=e):n==o.NoneFound?(i=!0,a=void 0,u=void 0):(a=!0,i=void 0,u=void 0),{ids:u?u.map(s=>+s):void 0,noneFound:i,notApplicable:a}}function m(e){return e?{chromosome:O(e.chromosome),representativeTranscript:O(e.representativeTranscript),start:e.start?+e.start:void 0,stop:e.stop?+e.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function r(e){let n={value:void 0,unset:void 0};return e?n.value=e:n.unset=!0,n}function O(e){let n;return n=e&&e.length>0?e:void 0,n}const T=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7695:(b,x,t)=>{t.d(x,{C:()=>V});var p=t(9808),g=t(6949),o=t(8776),h=t(7484),m=t(5482),r=t(1894),O=t(5109),T=t(6789),e=t(5e3),n=t(19),a=t(647),i=t(404);function u(l,z){1&l&&e._UZ(0,"div",9),2&l&&e.Q6J("innerHtml",z.ngIf,e.oJD)}function s(l,z){1&l&&(e.TgZ(0,"div",10),e._uU(1,"Help not available for this field."),e.qZA())}function C(l,z){if(1&l&&(e.TgZ(0,"nz-collapse-panel",6),e.YNc(1,u,1,1,"div",7),e.YNc(2,s,2,0,"ng-template",null,8,e.W1O),e.qZA()),2&l){const A=z.ngIf,L=e.MAs(3),Q=e.oxw().$implicit,v=e.MAs(3);e.Q6J("nzHeader",A)("nzActive",Q.templateOptions.hasFocus)("nzExtra",v),e.xp6(1),e.Q6J("ngIf",null==Q.templateOptions?null:Q.templateOptions.helpText)("ngIfElse",L)}}function E(l,z){if(1&l&&e._UZ(0,"formly-validation-message",14),2&l){const A=e.oxw(4).$implicit;e.Q6J("field",A)}}function D(l,z){if(1&l&&(e.ynx(0),e._UZ(1,"i",12),e.YNc(2,E,1,1,"ng-template",null,13,e.W1O),e.BQk()),2&l){const A=e.MAs(3);e.xp6(1),e.Q6J("nzTooltipTitle",A)}}function F(l,z){if(1&l&&(e.ynx(0),e.YNc(1,D,4,1,"ng-container",11),e.BQk()),2&l){const A=z.ngIf;e.xp6(1),e.Q6J("ngIf","INVALID"===A)}}function U(l,z){if(1&l&&(e.YNc(0,F,2,1,"ng-container",11),e.ALo(1,"ngrxPush")),2&l){const A=e.oxw().$implicit;e.Q6J("ngIf",e.lcZ(1,1,A.formControl.statusChanges))}}function J(l,z){if(1&l&&(e.ynx(0),e.YNc(1,C,4,5,"nz-collapse-panel",4),e.YNc(2,U,2,3,"ng-template",null,5,e.W1O),e.BQk()),2&l){const A=z.$implicit;e.xp6(1),e.Q6J("ngIf",null==A.templateOptions?null:A.templateOptions.label)}}let Z=(()=>{class l{constructor(){}ngOnInit(){}}return l.\u0275fac=function(A){return new(A||l)},l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(A,L){1&A&&(e.TgZ(0,"nz-affix",0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-collapse",2),e.YNc(3,J,4,1,"ng-container",3),e.qZA(),e.qZA(),e.qZA()),2&A&&(e.Q6J("nzOffsetTop",0)("nzTarget",L.affixTo),e.xp6(2),e.Q6J("nzBordered",!1),e.xp6(1),e.Q6J("ngForOf",L.fieldGroup))},directives:[n.$,h.bd,m.yH,p.sg,p.O5,m.Zv,a.Ls,i.SY,o.u_],pipes:[g.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),l})();const I={name:"form-info",component:(()=>{class l extends o.n2{}return l.\u0275fac=function(){let z;return function(L){return(z||(z=e.n5z(l)))(L||l)}}(),l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-form-info-wrapper"]],features:[e.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(A,L){if(1&A&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",2),e.GkF(3,null,3),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",null,4),e._UZ(8,"cvc-form-info-card",5),e.qZA(),e.qZA(),e.qZA()),2&A){const Q=e.MAs(7);e.xp6(1),e.Q6J("nzSpan",16),e.xp6(1),e.Q6J("nzTitle",L.to.label),e.xp6(3),e.Q6J("nzSpan",8),e.xp6(3),e.Q6J("fieldGroup",L.field.fieldGroup)("affixTo",Q)}},directives:[r.SK,r.t3,h.bd,Z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),l})()};let V=(()=>{class l{}return l.\u0275fac=function(A){return new(A||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[p.ez,g.WG,o.X0.forChild({wrappers:[I]}),r.Jb,h.vh,m.cD,T._,O.s]]}),l})()}}]);
\ No newline at end of file
diff --git a/server/public/3730.ac4e30b97f660758.js b/server/public/3730.ac4e30b97f660758.js
deleted file mode 100644
index 858bf45d5..000000000
--- a/server/public/3730.ac4e30b97f660758.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3730],{8616:(b,x,t)=>{t.d(x,{u:()=>e});var u=t(5e3),h=t(685),o=t(1912),y=t(3618),m=t(647);function a(n,r){1&n&&(u.TgZ(0,"span"),u._uU(1," You must be logged in to view this page. "),u.qZA())}function O(n,r){1&n&&u._UZ(0,"cvc-login-button")}function c(n,r){1&n&&(u.TgZ(0,"nz-typography",4),u._UZ(1,"i",5),u.qZA())}let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=u.Xpm({type:n,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(i,g){if(1&i&&(u.TgZ(0,"nz-empty",0),u.YNc(1,a,2,0,"ng-template",null,1,u.W1O),u.YNc(3,O,1,0,"ng-template",null,2,u.W1O),u.qZA(),u.YNc(5,c,2,0,"ng-template",null,3,u.W1O)),2&i){const p=u.MAs(2),C=u.MAs(4),E=u.MAs(6);u.Q6J("nzNotFoundImage",E)("nzNotFoundContent",p)("nzNotFoundFooter",C)}},directives:[h.p9,o.s,y.ZU,m.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),n})()},9386:(b,x,t)=>{t.d(x,{a:()=>O});var u=t(9808),h=t(1844),o=t(685),y=t(647),m=t(3618),a=t(5e3);let O=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=a.oAB({type:c}),c.\u0275inj=a.cJS({imports:[[u.ez,h.B,o.Xo,y.PV,m.ZJ]]}),c})()},7905:(b,x,t)=>{t.d(x,{yQ:()=>y,nT:()=>a});var u=t(915),h=t(712),o=t(444),y=(()=>{return(O=y||(y={})).EVIDENCE="Evidence",O.ASSERTION="Assertion",y;var O})();class a{constructor(c){this.validStates=new Map,this.getTypeOptions=()=>this.entityName==y.ASSERTION?(0,o.o6)(h.uBv).map(e=>e):(0,o.o6)(h.kqt).map(e=>e),this.getSignificanceOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.clinicalSignificance)||[]},this.isValidSignificanceOption=(e,n)=>{const r=this.validStates.get(e);return!r||r.clinicalSignificance.includes(n)},this.getDirectionOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.entityDirection)||[]},this.isValidDirectionOption=(e,n)=>{const r=this.validStates.get(e);return!r||r.entityDirection.includes(n)},this.requiresDrug=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDrug},this.requiresDisease=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDisease},this.requiresAcmgCodes=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAcmgCodes},this.requiresAmpLevel=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAmpLevel},this.allowsFdaApproval=e=>{const n=this.validStates.get(e);return void 0===n||n.allowsFdaApproval},this.getOptionsFromEnums=e=>0===e.length?[]:e.map(n=>({value:n,label:(0,u.E)(n)})),this.entityName=c,this.pluralNames=new Map,this.pluralNames.set(y.ASSERTION,"Assertions"),this.pluralNames.set(y.EVIDENCE,"Evidence")}}},1135:(b,x,t)=>{t.d(x,{C:()=>g});var u=t(9808),h=t(4182),o=t(8776),y=t(3793),m=t(304),a=t(8054),O=t(915);const c={Evidence:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{NA:"Clinical Significance is not applicable."},FUNCTIONAL:{GAIN_OF_FUNCTION:"Sequence variant confers an increase in normal gene function",LOSS_OF_FUNCTION:"Sequence variant confers a diminished or abolished function",UNALTERED_FUNCTION:"Gene product of sequence variant is unchanged",NEOMORPHIC:"Sequence variant creates a novel function",DOMINANT_NEGATIVE:"Sequence variant abrogates function of wildtype allele gene product",UNKNOWN:"Sequence variant that cannot be precisely defined by the other listed categories"},ONCOGENIC:{NA:"Clinical Significance is not applicable."}},Assertion:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PATHOGENIC:"Very strong evidence the variant is pathogenic",LIKELY_PATHOGENIC:"Strong evidence (>90% certainty) the variant is pathogenic.",BENIGN:"Very strong evidence the variant is benign",LIKELY_BENIGN:"Not expected to have a major effect on disease",UNCERTAIN_SIGNIFICANCE:"Does not fullfill the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"}}},e={name:"clinical-significance-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Clinical Signficance",helpText:"The impact of the variant for predictive, prognostic, diagnostic, or functional evidence types. For predisposing and oncogenic evidence, impact is only applied at the assertion level and N/A should be selected here.",placeholder:"None specified",options:[]},validators:{validation:["cs-option"]},hooks:{onInit:p=>{var C;const E=p.templateOptions,D=null===(C=null==p?void 0:p.options)||void 0===C?void 0:C.formState;if(!D)return;const F=(null==p?void 0:p.form)?p.form.get("evidenceType"):null;!F||(E.options=D.getOptionsFromEnums(D.getSignificanceOptions(F.value)),E.vcSub=F.valueChanges.subscribe(U=>{E.options=D.getOptionsFromEnums(D.getSignificanceOptions(U)),p.formControl.updateValueAndValidity()}))},onDestroy:p=>{p.templateOptions.vcSub.unsubscribe()}},expressionProperties:{"templateOptions.optionText":(p,C,E)=>{if(C.entityName&&p.evidenceType&&p.clinicalSignificance)return c[C.entityName][p.evidenceType][p.clinicalSignificance]}}}},n={name:"cs-option",validation:(p,C,E)=>{var D,F,U;const J=null===(D=C.options)||void 0===D?void 0:D.formState,Z=p.value;if(!Z||!J)return null;const B=null===(U=null===(F=p.parent)||void 0===F?void 0:F.get("evidenceType"))||void 0===U?void 0:U.value;return B?J.isValidSignificanceOption(B,Z)?null:{"cs-option":B}:null}},r={name:"cs-option",message:(p,C)=>{var E;const D=C.options.formState;return`'${(0,O.E)(null===(E=C.formControl)||void 0===E?void 0:E.value)}' is not a valid Clinical Significance for ${(0,O.E)(p)} ${D.pluralNames.get(D.entityName)}.`}};var i=t(5e3);let g=(()=>{class p{}return p.\u0275fac=function(E){return new(E||p)},p.\u0275mod=i.oAB({type:p}),p.\u0275inj=i.cJS({imports:[[u.ez,h.u5,h.UX,a.LV,m.F,y.F,o.X0.forChild({types:[e],validators:[n],validationMessages:[r]})]]}),p})()},5452:(b,x,t)=>{t.d(x,{C:()=>X});var u=t(9808),h=t(8776),o=t(7625),y=t(373),m=t(4850),a=t(8929),O=t(591),c=t(6123),e=t(5e3),n=t(712),r=t(9169),i=t(8054),g=t(4182),p=t(6949),C=t(8144),E=t(3618),D=t(7469),F=t(822),U=t(6042),J=t(2643),Z=t(2683),B=t(8926);function I(T,P){if(1&T&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&T){const f=e.oxw().$implicit,S=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,f.label,S.to.searchString),e.oJD)}}function V(T,P){if(1&T&&(e.TgZ(0,"div"),e._UZ(1,"span",12),e.ALo(2,"highlightTypeahead"),e.qZA()),2&T){const f=e.oxw(2).$implicit,S=e.oxw(3);e.xp6(1),e.Q6J("innerHtml",e.xi3(2,1,f.drug.drugAliases.join(", "),S.to.searchString),e.oJD)}}function s(T,P){1&T&&(e.ynx(0),e.YNc(1,V,3,4,"div",11),e.BQk())}function z(T,P){if(1&T&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,I,2,4,"span",8),e.YNc(3,s,2,0,"ng-container",9),e.qZA(),e.qZA()),2&T){const f=P.$implicit;e.Q6J("nzLabel",f.tooltip)("nzValue",f.drug),e.xp6(3),e.Q6J("ngIf",f.drug.drugAliases.length>0)}}function A(T,P){if(1&T&&(e.ynx(0),e.YNc(1,z,4,3,"nz-option",6),e.BQk()),2&T){const f=P.ngrxLet;e.xp6(1),e.Q6J("ngForOf",f)}}function L(T,P){1&T&&e._uU(0," No drug found in CIViC that matches the string provided. ")}function Q(T,P){if(1&T){const f=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(N){return e.CHM(f),e.oxw().to.onSearch(N)}),e.YNc(2,A,2,1,"ng-container",4),e.qZA(),e.YNc(3,L,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&T){const f=e.MAs(4),S=e.oxw(),N=e.MAs(4);e.xp6(1),e.Q6J("formControl",S.formControl)("formlyAttributes",S.field)("nzPlaceHolder",S.to.placeholder?S.to.placeholder:null)("nzNotFoundContent",f)("nzDropdownRender",S.to.allowCreate?N:null)("nzShowArrow",S.to.showArrow)("nzFilterOption",S.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",S.drugs$)}}function v(T,P){if(1&T&&e._UZ(0,"cvc-drug-tag",13),2&T){const f=e.oxw();e.Q6J("drug",f.formControl.value)}}function M(T,P){if(1&T&&e._UZ(0,"cvc-form-errors-alert",16),2&T){const f=e.oxw(4);e.Q6J("errors",f.errorMessages)}}function l(T,P){if(1&T){const f=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){e.CHM(f);const N=e.oxw(4);return N.addDrug(N.to.searchString)}),e._UZ(1,"i",18),e._uU(2,"No Existing CIViC Drug\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Drug? "),e.qZA()}if(2&T){const f=e.oxw(4);e.Q6J("nzLoading",f.loading),e.xp6(4),e.Oqu(f.to.searchString)}}function d(T,P){if(1&T&&(e.ynx(0),e.YNc(1,M,1,1,"cvc-form-errors-alert",14),e.YNc(2,l,6,2,"button",15),e.BQk()),2&T){const f=e.oxw(3);e.xp6(1),e.Q6J("ngIf",f.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==f.errorMessages.length)}}function _(T,P){if(1&T&&(e.ynx(0),e.YNc(1,d,3,2,"ng-container",9),e.BQk()),2&T){const f=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==f.to.searchString&&f.to.searchString.length>=5)}}function R(T,P){if(1&T&&(e.YNc(0,_,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&T){const f=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,f.displayAdd$))}}const $={name:"drug-input",component:(()=>{class T extends h.fS{constructor(f,S,N){super(),this.drugTypeaheadQuery=f,this.networkErrorService=S,this.addDrugGQL=N,this.destroy$=new a.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new O.X(!1),this.addDrugMutator=new c.U(S),this.defaultOptions={templateOptions:{placeholder:"Search Drugs",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.drugTypeaheadQuery.watch({name:"zzzzz"}),this.drugs$=this.queryRef.valueChanges.pipe((0,o.R)(this.destroy$),(0,y.j)("data","drugTypeahead"),(0,m.U)(f=>f.map(S=>{let N=S.ncitId?`${S.ncitId}`:"no NCIt ID",H=S.drugAliases.length>0?`Aliases: ${S.drugAliases.join(", ")}`:"";return{value:S.id,tooltip:`${S.name} (${N}) ${H}`,label:`${S.name} (${N})`,drug:S}})))}ngAfterViewInit(){this.to.onSearch=f=>{f.length{let N=0==S.data.drugTypeahead.filter(H=>H.name.toUpperCase()==f.toUpperCase()).length;this.displayAdd$.next(N)}))}}addDrug(f){if(f&&""!=f){let S=this.addDrugMutator.mutate(this.addDrugGQL,{name:f},N=>{var H;null===(H=this.field.formControl)||void 0===H||H.setValue({id:N.addDrug.drug.id,name:N.addDrug.drug.name}),this.to.searchString="",this.to.searchLength=0});S.submitSuccess$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.success=!0)}),S.submitError$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.errorMessages=N,this.success=!1)}),S.isSubmitting$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{this.loading=N})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return T.\u0275fac=function(f){return new(f||T)(e.Y36(n.vRc),e.Y36(r.Y),e.Y36(n.T97))},T.\u0275cmp=e.Xpm({type:T,selectors:[["cvc-drug-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["addDrugTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzDropdownRender","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],[4,"ngIf"],[3,"innerHtml"],[4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"drug"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(f,S){if(1&f&&(e.YNc(0,Q,5,8,"ng-container",0),e.YNc(1,v,1,1,"ng-template",null,1,e.W1O),e.YNc(3,R,2,3,"ng-template",null,2,e.W1O)),2&f){const N=e.MAs(2);e.Q6J("ngIf",!(null!=S.formControl.value&&S.formControl.value.id))("ngIfElse",N)}},directives:[u.O5,i.Vq,g.JJ,g.oH,h.VQ,p.eJ,u.sg,i.Ip,C.NU,C.$1,E.ZU,D.u,F.V,U.ix,J.dQ,Z.w],pipes:[B.A,p.fM],styles:[""]}),T})()};var Y=t(8018),G=t(7008),W=t(1047),j=t(9444);let X=(()=>{class T{}return T.\u0275fac=function(f){return new(f||T)},T.\u0275mod=e.oAB({type:T}),T.\u0275inj=e.cJS({imports:[[u.ez,g.u5,g.UX,p.WG,h.X0.forChild({types:[$]}),i.LV,C.zf,E.ZJ,U.sL,W.o7,Y.e,G.B,j.s]]}),T})()},4581:(b,x,t)=>{t.d(x,{e:()=>r});var u=t(9808),h=t(4182),o=t(3793),y=t(8776),m=t(712),a=t(444);const c={COMBINATION:"The drugs listed were used as part of a combination therapy approach",SEQUENTIAL:"The drugs listed were used at separate timepoints in the same treatment plan",SUBSTITUTES:"The drugs listed are often considered to be of the same family, or behave similarly in a treatment setting"},e={name:"drug-interaction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug Interaction Type",helpText:"Indicate whether the drugs specified above are substitutes, or are used in sequential or combination treatments.",required:!1,placeholder:"Not specified",options:(0,a.o6)(m.Zyn).map((i,g)=>({value:i,label:g}))},validation:{messages:{required:(i,g)=>"Evidence with more than one drug must specify an interaction type."}},hideExpression:(i,g,p)=>!(!i.drugs||i.drugs.length>1),expressionProperties:{"templateOptions.required":(i,g,p)=>!!i.drugs&&i.drugs.length>1,"templateOptions.optionText":(i,g,p)=>c[i.drugInteractionType]}}};var n=t(5e3);let r=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[u.ez,h.UX,o.F,y.X0.forChild({types:[e]})]]}),i})()},2480:(b,x,t)=>{t.d(x,{r:()=>e});var u=t(9808),h=t(8776),o=t(5452),y=t(8390),m=t(915);const O={name:"drug-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug",helpText:"Please enter a drug name. If you are unable to locate the drug in the dropdown, please check the 'Could not find drug' checkbox below and enter the drug in the field that appears.",required:!1,addText:"Add a Drug"},fieldArray:{type:"drug-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(n,r,i)=>{var g,p;const C=null===(p=null===(g=null==i?void 0:i.parent)||void 0===g?void 0:g.templateOptions)||void 0===p?void 0:p.allowCreate;return void 0===C||C}}},defaultValue:[],validation:{messages:{required:(n,r)=>{const i=(null==r?void 0:r.form)?r.form.get("evidenceType"):null;return i?`${(0,m.E)(i.value)} Evidence requires at least one drug to be specified.`:"Drug is required."}}},hooks:{onInit:n=>{var r;const i=n.templateOptions,g=null===(r=null==n?void 0:n.options)||void 0===r?void 0:r.formState,p=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;!p||(i.vcSub=p.valueChanges.subscribe(C=>{g.requiresDrug(C)?(i.hidden=!1,i.required=!0):(i.hidden=!0,i.required=!1,n.model.length>0&&(n.model.splice(1),i.remove(0)))}))},onDestroy:n=>{n.templateOptions.vcSub.unsubscribe()}}}};var c=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[[u.ez,h.X0.forChild({types:[O]}),o.C,y.N]]}),n})()},5932:(b,x,t)=>{t.d(x,{A:()=>e});var u=t(9808),h=t(8776),o=t(915);const y={Evidence:{PREDICTIVE:{SUPPORTS:"The experiment or study supports this variant's response to a drug",DOES_NOT_SUPPORT:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{NA:"Evidence Direction is Not Applicable."},FUNCTIONAL:{SUPPORTS:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Evidence Direction is Not Applicable for Oncogenic Evidence Type."}},Assertion:{PREDICTIVE:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's response to a drug",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a predisposing association between variant and outcome"},FUNCTIONAL:{SUPPORTS:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}}},m={name:"evidence-direction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Direction",placeholder:"None specified",options:[]},expressionProperties:{"templateOptions.optionText":(n,r,i)=>{if(r.entityName&&n.evidenceType&&n.evidenceDirection)return y[r.entityName][n.evidenceType][n.evidenceDirection]}},validators:{validation:["ed-option"]},hooks:{onInit:n=>{var r;const i=n.templateOptions,g=null===(r=null==n?void 0:n.options)||void 0===r?void 0:r.formState;if(g){i.label=`${g.entityName} Direction`,i.helpText=`An indicator of whether the ${g.entityName} statement supports or refutes the clinical significance of an event. For predisposing and oncogenic ${g.pluralNames.get(g.entityName)}, directionality is only applied at the assertion level and N/A should be selected here.`;const p=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;if(!p)return;i.options=g.getOptionsFromEnums(g.getDirectionOptions(p.value)),n.formControl.updateValueAndValidity(),i.vcSubscription=p.valueChanges.subscribe(C=>{i.options=g.getOptionsFromEnums(g.getDirectionOptions(p.value)),n.formControl.updateValueAndValidity()})}},onDestroy:n=>{n.templateOptions.vcSubscription.unsubscribe()}}}},a={name:"ed-option",validation:(n,r,i)=>{var g,p,C;const E=null===(g=r.options)||void 0===g?void 0:g.formState,D=n.value;if(!D||!E)return null;const F=null===(C=null===(p=n.parent)||void 0===p?void 0:p.get("evidenceType"))||void 0===C?void 0:C.value;return F?E.isValidDirectionOption(F,D)?null:{"ed-option":F}:null}},O={name:"ed-option",message:(n,r)=>{var i;return`'${(0,o.E)(null===(i=r.formControl)||void 0===i?void 0:i.value)}' is not a valid Clinical Significance for ${(0,o.E)(n)} Evidence.`}};var c=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=c.oAB({type:n}),n.\u0275inj=c.cJS({imports:[[u.ez,h.X0.forChild({types:[m],validators:[a],validationMessages:[O]})]]}),n})()},2789:(b,x,t)=>{t.d(x,{o:()=>r});var u=t(9808),h=t(4182),o=t(8776),y=t(3793),m=t(712),a=t(444);const O=new Map([[m.Sx0.A,"A - Validated association"],[m.Sx0.B,"B - Clinical evidence"],[m.Sx0.C,"C - Case study"],[m.Sx0.D,"D - Preclinical evidence"],[m.Sx0.E,"E - Inferential association"]]),c=new Map([[m.Sx0.A,"Evidence shows consensus association in human medicine"],[m.Sx0.B,"Evidence supports association using clinical trial or other primary patient data"],[m.Sx0.C,"Evidence supports association using individual case reports from clinical journals"],[m.Sx0.D,"Evidence supports association using in vivo or in vitro models"],[m.Sx0.E,"Evidential association is inferential or indirect"]]),e={name:"evidence-level-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Level",placeholder:"None specified",helpText:"Type of study performed to produce the evidence statement",options:(0,a.o6)(m.Sx0).map(i=>({value:i,label:O.get(i)})),labels:O,descriptions:c},expressionProperties:{"templateOptions.optionText":(i,g,p)=>c.get(i.evidenceLevel)}}};var n=t(5e3);let r=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[u.ez,h.UX,y.F,o.X0.forChild({types:[e]})]]}),i})()},3643:(b,x,t)=>{t.d(x,{q:()=>c});var u=t(9808),h=t(4182),o=t(3793),y=t(8776);const m={DIAGNOSTIC:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",PREDICTIVE:"Evidence pertains to a variant's effect on therapeutic response",PROGNOSTIC:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival",PREDISPOSING:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",ONCOGENIC:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",FUNCTIONAL:"Evidence pertains to a variant that alters biological function from the reference state"},a={name:"evidence-type-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Entity Type",placeholder:"Not specified",options:[]},hooks:{onInit:e=>{var n;const r=e.templateOptions,i=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.formState;i?(r.label=`${i.entityName} Type`,r.helpText=`Type of clinical outcome associated with the ${i.entityName} statement.`,r.options=i.getOptionsFromEnums(i.getTypeOptions())):console.warn("entity-type-select requires a formState to populate select options.")}},expressionProperties:{"templateOptions.optionText":(e,n,r)=>m[e.evidenceType]}}};var O=t(5e3);let c=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=O.oAB({type:e}),e.\u0275inj=O.cJS({imports:[[u.ez,h.UX,o.F,y.X0.forChild({types:[a]})]]}),e})()},5457:(b,x,t)=>{t.d(x,{$:()=>B});var u=t(9808),h=t(8776),o=t(8929),y=t(7625),m=t(373),a=t(5e3),O=t(712),c=t(8054),e=t(4182),n=t(6949),r=t(7956),i=t(8926);function g(I,V){if(1&I&&(a.TgZ(0,"nz-option",6),a._UZ(1,"span",7),a.ALo(2,"highlightTypeahead"),a._uU(3),a.qZA()),2&I){const s=V.$implicit,z=a.oxw(3);a.hYB("nzLabel","",s.name," (",s.hpoId,")"),a.Q6J("nzValue",s),a.xp6(1),a.Q6J("innerHtml",a.xi3(2,5,s.name,z.to.searchString),a.oJD),a.xp6(2),a.hij(" - (",s.hpoId,") ")}}function p(I,V){if(1&I&&(a.ynx(0),a.YNc(1,g,4,8,"nz-option",5),a.BQk()),2&I){const s=V.ngrxLet;a.xp6(1),a.Q6J("ngForOf",s)}}function C(I,V){1&I&&a._uU(0," No phenotype found in CIViC that matches the string provided. ")}function E(I,V){if(1&I){const s=a.EpF();a.ynx(0),a.TgZ(1,"nz-select",2),a.NdJ("nzOnSearch",function(A){return a.CHM(s),a.oxw().to.onSearch(A)}),a.YNc(2,p,2,1,"ng-container",3),a.qZA(),a.YNc(3,C,1,0,"ng-template",null,4,a.W1O),a.BQk()}if(2&I){const s=a.MAs(4),z=a.oxw();a.xp6(1),a.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",s)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),a.xp6(1),a.Q6J("ngrxLet",z.phenotypes$)}}function D(I,V){if(1&I&&a._UZ(0,"cvc-phenotype-tag",8),2&I){const s=a.oxw();a.Q6J("phenotype",s.formControl.value)}}const U={name:"phenotype-input",component:(()=>{class I extends h.fS{constructor(s){super(),this.phenotypeTypeaheadQuery=s,this.destroy$=new o.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Phenotypes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.phenotypeTypeaheadQuery.watch({name:""}),this.phenotypes$=this.queryRef.valueChanges.pipe((0,y.R)(this.destroy$),(0,m.j)("data","phenotypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=s=>{var z;this.to.fieldValue=s,this.to.fieldLength=s.length,!(s.length{class I{}return I.\u0275fac=function(s){return new(s||I)},I.\u0275mod=a.oAB({type:I}),I.\u0275inj=a.cJS({imports:[[u.ez,e.UX,n.WG,h.X0.forChild({types:[U]}),c.LV,J.y,Z.s]]}),I})()},1830:(b,x,t)=>{t.d(x,{S:()=>g});var u=t(9808),h=t(4182),o=t(8776),y=t(3793),m=t(304),a=t(8054),O=t(5457),c=t(8390),e=t(915);const r={name:"phenotype-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Phenotype",helpText:'Please provide any HPO phenotypes.',required:!1,addText:"Add a Phenotype"},fieldArray:{type:"phenotype-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(p,C)=>{const E=(null==C?void 0:C.form)?C.form.get("evidenceType"):null;return E?`${(0,e.E)(E.value)} Evidence requires at least one phenotype to be specified.`:"Phenotype is required."}}}}};var i=t(5e3);let g=(()=>{class p{}return p.\u0275fac=function(E){return new(E||p)},p.\u0275mod=i.oAB({type:p}),p.\u0275inj=i.cJS({imports:[[u.ez,h.u5,h.UX,a.LV,m.F,y.F,o.X0.forChild({types:[r]}),O.$,c.N]]}),p})()},5743:(b,x,t)=>{t.d(x,{W:()=>Q});var u=t(9808),h=t(8776),o=t(5e3),y=t(4182),m=t(655),a=t(1159),O=t(3753),c=t(7625),e=t(9439),n=t(4090),r=t(1721),i=t(226),g=t(647),p=t(404);const C=["nz-rate-item",""];function E(v,M){}function D(v,M){}function F(v,M){1&v&&o._UZ(0,"i",4)}const U=function(v){return{$implicit:v}},J=["ulElement"];function Z(v,M){if(1&v){const l=o.EpF();o.TgZ(0,"li",3),o.TgZ(1,"div",4),o.NdJ("itemHover",function(_){const w=o.CHM(l).index;return o.oxw().onItemHover(w,_)})("itemClick",function(_){const w=o.CHM(l).index;return o.oxw().onItemClick(w,_)}),o.qZA(),o.qZA()}if(2&v){const l=M.index,d=o.oxw();o.Q6J("ngClass",d.starStyleArray[l]||"")("nzTooltipTitle",d.nzTooltips[l]),o.xp6(1),o.Q6J("allowHalf",d.nzAllowHalf)("character",d.nzCharacter)("index",l)}}let B=(()=>{class v{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new o.vpe,this.itemClick=new o.vpe}hoverRate(l){this.itemHover.next(l&&this.allowHalf)}clickRate(l){this.itemClick.next(l&&this.allowHalf)}}return v.\u0275fac=function(l){return new(l||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:"allowHalf"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:C,decls:6,vars:8,consts:[[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["defaultCharacter",""],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(l,d){if(1&l&&(o.TgZ(0,"div",0),o.NdJ("mouseover",function(R){return d.hoverRate(!1),R.stopPropagation()})("click",function(){return d.clickRate(!1)}),o.YNc(1,E,0,0,"ng-template",1),o.qZA(),o.TgZ(2,"div",2),o.NdJ("mouseover",function(R){return d.hoverRate(!0),R.stopPropagation()})("click",function(){return d.clickRate(!0)}),o.YNc(3,D,0,0,"ng-template",1),o.qZA(),o.YNc(4,F,1,0,"ng-template",null,3,o.W1O)),2&l){const _=o.MAs(5);o.xp6(1),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(4,U,d.index)),o.xp6(2),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(6,U,d.index))}},directives:[u.tP,g.Ls],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,r.yF)()],v.prototype,"allowHalf",void 0),v})();const I="rate";let V=(()=>{class v{constructor(l,d,_,R,w,$){this.nzConfigService=l,this.ngZone=d,this.renderer=_,this.cdr=R,this.directionality=w,this.destroy$=$,this._nzModuleName=I,this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new o.vpe,this.nzOnFocus=new o.vpe,this.nzOnHoverChange=new o.vpe,this.nzOnKeyDown=new o.vpe,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.onChange=()=>null,this.onTouched=()=>null}get nzValue(){return this._value}set nzValue(l){this._value!==l&&(this._value=l,this.hasHalf=!Number.isInteger(l),this.hoverValue=Math.ceil(l))}ngOnChanges(l){const{nzAutoFocus:d,nzCount:_,nzValue:R}=l;if(d&&!d.isFirstChange()){const w=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(w,"autofocus","autofocus"):this.renderer.removeAttribute(w,"autofocus")}_&&this.updateStarArray(),R&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,c.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,c.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,O.R)(this.ulElement.nativeElement,"focus").pipe((0,c.R)(this.destroy$)).subscribe(l=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(l))}),(0,O.R)(this.ulElement.nativeElement,"blur").pipe((0,c.R)(this.destroy$)).subscribe(l=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(l))})})}onItemClick(l,d){if(this.nzDisabled)return;this.hoverValue=l+1;const _=d?l+.5:l+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(l,d){this.nzDisabled||this.hoverValue===l+1&&d===this.hasHalf||(this.hoverValue=l+1,this.hasHalf=d,this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle())}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(l){const d=this.nzValue;l.keyCode===a.SV&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),d!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(l),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((l,d)=>d),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(l=>{const d="ant-rate-star",_=l+1;return{[`${d}-full`]:_this.hoverValue,[`${d}-focused`]:this.hasHalf&&_===this.hoverValue&&this.isFocused}})}writeValue(l){this.nzValue=l||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(l){this.nzDisabled=l}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}}return v.\u0275fac=function(l){return new(l||v)(o.Y36(e.jY),o.Y36(o.R0b),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(i.Is,8),o.Y36(n.kn))},v.\u0275cmp=o.Xpm({type:v,selectors:[["nz-rate"]],viewQuery:function(l,d){if(1&l&&o.Gf(J,7),2&l){let _;o.iGM(_=o.CRH())&&(d.ulElement=_.first)}},inputs:{nzAllowClear:"nzAllowClear",nzAllowHalf:"nzAllowHalf",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzCharacter:"nzCharacter",nzCount:"nzCount",nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],features:[o._Bn([n.kn,{provide:y.JU,useExisting:(0,o.Gpc)(()=>v),multi:!0}]),o.TTD],decls:3,vars:7,consts:[[1,"ant-rate",3,"ngClass","tabindex","keydown","mouseleave"],["ulElement",""],["class","ant-rate-star","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"allowHalf","character","index","itemHover","itemClick"]],template:function(l,d){1&l&&(o.TgZ(0,"ul",0,1),o.NdJ("keydown",function(R){return d.onKeyDown(R),R.preventDefault()})("mouseleave",function(R){return d.onRateLeave(),R.stopPropagation()}),o.YNc(2,Z,2,5,"li",2),o.qZA()),2&l&&(o.ekj("ant-rate-disabled",d.nzDisabled)("ant-rate-rtl","rtl"===d.dir),o.Q6J("ngClass",d.classMap)("tabindex",d.nzDisabled?-1:1),o.xp6(2),o.Q6J("ngForOf",d.starArray))},directives:[B,u.mk,u.sg,p.SY],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,e.oS)(),(0,r.yF)()],v.prototype,"nzAllowClear",void 0),(0,m.gn)([(0,e.oS)(),(0,r.yF)()],v.prototype,"nzAllowHalf",void 0),(0,m.gn)([(0,r.yF)()],v.prototype,"nzDisabled",void 0),(0,m.gn)([(0,r.yF)()],v.prototype,"nzAutoFocus",void 0),(0,m.gn)([(0,r.Rn)()],v.prototype,"nzCount",void 0),v})(),s=(()=>{class v{}return v.\u0275fac=function(l){return new(l||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[i.vT,u.ez,g.PV,p.cg]]}),v})();const z={1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims.",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing.",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning.",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning.",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods."},L={name:"rating-input",component:(()=>{class v extends h.fS{constructor(){super(),this.defaultOptions={}}updateField(l){this.field.formControl.setValue(l);let d=this.field.templateOptions;d&&(d.optionText=z[l])}}return v.\u0275fac=function(l){return new(l||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["cvc-rating-input-type"]],features:[o.qOj],decls:2,vars:4,consts:[["type","hidden",3,"formControl","formlyAttributes"],[3,"ngModel","formlyAttributes","ngModelChange"]],template:function(l,d){1&l&&(o._UZ(0,"input",0),o.TgZ(1,"nz-rate",1),o.NdJ("ngModelChange",function(R){return d.updateField(R)}),o.qZA()),2&l&&(o.Q6J("formControl",d.formControl)("formlyAttributes",d.field),o.xp6(1),o.Q6J("ngModel",d.formControl.value)("formlyAttributes",d.field))},directives:[y.Fj,y.JJ,y.oH,h.VQ,V,y.On],styles:[""]}),v})(),wrappers:["form-field"]};let Q=(()=>{class v{}return v.\u0275fac=function(l){return new(l||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[u.ez,y.UX,y.u5,h.X0.forChild({types:[L]}),s]]}),v})()},7462:(b,x,t)=>{t.d(x,{o:()=>c});var u=t(9808),h=t(8776),o=t(5e3),y=t(1047),m=t(4182);const O={name:"cvc-textarea",component:(()=>{class e extends h.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=o.n5z(e)))(i||e)}}(),e.\u0275cmp=o.Xpm({type:e,selectors:[["cvc-textarea-base-type"]],features:[o.qOj],decls:1,vars:3,consts:[["nz-input","",3,"nzAutosize","formControl","formlyAttributes"]],template:function(r,i){1&r&&o._UZ(0,"textarea",0),2&r&&o.Q6J("nzAutosize",i.to.autosize)("formControl",i.formControl)("formlyAttributes",i.field)},directives:[y.Zp,y.rh,m.Fj,m.JJ,m.oH,h.VQ],styles:[""],changeDetection:0}),e})(),wrappers:["form-field"]};let c=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[u.ez,m.u5,m.UX,h.X0.forChild({types:[O]}),y.o7]]}),e})()},3594:(b,x,t)=>{t.d(x,{q:()=>n});var u=t(9808),h=t(915),o=t(712);const y={SOMATIC:"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring.",RARE_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item.",COMMON_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item.",UNKNOWN:"The variant origin is uncertain based on the available evidence.",NA:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."},m={name:"variant-origin-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant Origin",placeholder:"None specified",helpText:"Origin of variant",options:[{value:o.huM.Somatic,label:(0,h.E)(o.huM.Somatic)},{value:o.huM.RareGermline,label:(0,h.E)(o.huM.RareGermline)},{value:o.huM.CommonGermline,label:(0,h.E)(o.huM.CommonGermline)},{value:o.huM.Unknown,label:(0,h.E)(o.huM.Unknown)},{value:o.huM.Na,label:(0,h.E)(o.huM.Na)}]},expressionProperties:{"templateOptions.optionText":(r,i,g)=>y[r.variantOrigin]}}};var a=t(4182),O=t(8776),c=t(3793),e=t(5e3);let n=(()=>{class r{}return r.\u0275fac=function(g){return new(g||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[u.ez,a.UX,c.F,O.X0.forChild({types:[m]})]]}),r})()},6738:(b,x,t)=>{function u(c){let e={value:void 0,unset:void 0};return c&&c.trim().length>0?e.value=c.trim():e.unset=!0,e}function h(c){let e={value:void 0,unset:void 0};return void 0!==c?e.value=c:e.unset=!0,e}function o(c){let e,n;return c&&c.includes("N/A")?(c=void 0,n=void 0,e=!0):c||(c=void 0,e=void 0,n=!0),{ids:c?c.map(r=>+r):void 0,noneFound:n,notApplicable:e}}function y(c){return{chromosome:a(c.chromosome),representativeTranscript:a(c.representativeTranscript),start:c.start?+c.start:void 0,stop:c.stop?+c.stop:void 0}}function m(c){let e={value:void 0,unset:void 0};return c?e.value=c:e.unset=!0,e}function a(c){let e;return e=c&&c.length>0?c:void 0,e}t.d(x,{aP:()=>O,Zg:()=>o,_$:()=>y,uP:()=>h,dh:()=>m,xt:()=>u});const O=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7695:(b,x,t)=>{t.d(x,{C:()=>V});var u=t(9808),h=t(6949),o=t(8776),y=t(7484),m=t(5482),a=t(1894),O=t(5109),c=t(6789),e=t(5e3),n=t(19),r=t(647),i=t(404);function g(s,z){1&s&&e._UZ(0,"div",9),2&s&&e.Q6J("innerHtml",z.ngIf,e.oJD)}function p(s,z){1&s&&(e.TgZ(0,"div",10),e._uU(1,"Help not available for this field."),e.qZA())}function C(s,z){if(1&s&&(e.TgZ(0,"nz-collapse-panel",6),e.YNc(1,g,1,1,"div",7),e.YNc(2,p,2,0,"ng-template",null,8,e.W1O),e.qZA()),2&s){const A=z.ngIf,L=e.MAs(3),Q=e.oxw().$implicit,v=e.MAs(3);e.Q6J("nzHeader",A)("nzActive",Q.templateOptions.hasFocus)("nzExtra",v),e.xp6(1),e.Q6J("ngIf",null==Q.templateOptions?null:Q.templateOptions.helpText)("ngIfElse",L)}}function E(s,z){if(1&s&&e._UZ(0,"formly-validation-message",14),2&s){const A=e.oxw(4).$implicit;e.Q6J("field",A)}}function D(s,z){if(1&s&&(e.ynx(0),e._UZ(1,"i",12),e.YNc(2,E,1,1,"ng-template",null,13,e.W1O),e.BQk()),2&s){const A=e.MAs(3);e.xp6(1),e.Q6J("nzTooltipTitle",A)}}function F(s,z){if(1&s&&(e.ynx(0),e.YNc(1,D,4,1,"ng-container",11),e.BQk()),2&s){const A=z.ngIf;e.xp6(1),e.Q6J("ngIf","INVALID"===A)}}function U(s,z){if(1&s&&(e.YNc(0,F,2,1,"ng-container",11),e.ALo(1,"ngrxPush")),2&s){const A=e.oxw().$implicit;e.Q6J("ngIf",e.lcZ(1,1,A.formControl.statusChanges))}}function J(s,z){if(1&s&&(e.ynx(0),e.YNc(1,C,4,5,"nz-collapse-panel",4),e.YNc(2,U,2,3,"ng-template",null,5,e.W1O),e.BQk()),2&s){const A=z.$implicit;e.xp6(1),e.Q6J("ngIf",null==A.templateOptions?null:A.templateOptions.label)}}let Z=(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(A){return new(A||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(A,L){1&A&&(e.TgZ(0,"nz-affix",0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-collapse",2),e.YNc(3,J,4,1,"ng-container",3),e.qZA(),e.qZA(),e.qZA()),2&A&&(e.Q6J("nzOffsetTop",0)("nzTarget",L.affixTo),e.xp6(2),e.Q6J("nzBordered",!1),e.xp6(1),e.Q6J("ngForOf",L.fieldGroup))},directives:[n.$,y.bd,m.yH,u.sg,u.O5,m.Zv,r.Ls,i.SY,o.u_],pipes:[h.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),s})();const I={name:"form-info",component:(()=>{class s extends o.n2{}return s.\u0275fac=function(){let z;return function(L){return(z||(z=e.n5z(s)))(L||s)}}(),s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-form-info-wrapper"]],features:[e.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(A,L){if(1&A&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",2),e.GkF(3,null,3),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",null,4),e._UZ(8,"cvc-form-info-card",5),e.qZA(),e.qZA(),e.qZA()),2&A){const Q=e.MAs(7);e.xp6(1),e.Q6J("nzSpan",16),e.xp6(1),e.Q6J("nzTitle",L.to.label),e.xp6(3),e.Q6J("nzSpan",8),e.xp6(3),e.Q6J("fieldGroup",L.field.fieldGroup)("affixTo",Q)}},directives:[a.SK,a.t3,y.bd,Z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),s})()};let V=(()=>{class s{}return s.\u0275fac=function(A){return new(A||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[u.ez,h.WG,o.X0.forChild({wrappers:[I]}),a.Jb,y.vh,m.cD,c._,O.s]]}),s})()}}]);
\ No newline at end of file
diff --git a/server/public/4024.9ef20c158d4b219e.js b/server/public/4024.5e7368279f79aeb4.js
similarity index 56%
rename from server/public/4024.9ef20c158d4b219e.js
rename to server/public/4024.5e7368279f79aeb4.js
index 9619b376d..e0b55a23e 100644
--- a/server/public/4024.9ef20c158d4b219e.js
+++ b/server/public/4024.5e7368279f79aeb4.js
@@ -1,4 +1,4 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4024],{1912:(De,se,r)=>{r.d(se,{s:()=>le});var o=r(5e3),i=r(6042),t=r(2643),D=r(2683),F=r(3640),B=r(2160),q=r(3762),A=r(647);let L=(()=>{class te{constructor(oe){this.cookies=oe,this.location=function Z(te){return encodeURIComponent(te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}}return te.\u0275fac=function(oe){return new(oe||te)(o.Y36(B.N))},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-auth-options-list"]],decls:18,vars:6,consts:[["nzBordered","false","nzSplit","false"],["method","post",3,"action"],["type","hidden","name","authenticity_token",3,"value"],["type","submit","nz-button","","nzBlock","","nzType","default","nzSize","large","nzShape","round"],["nz-icon","","nzType","google"],["nz-icon","","nzType","github"]],template:function(oe,V){1&oe&&(o.TgZ(0,"nz-list",0),o.TgZ(1,"nz-list-item"),o.TgZ(2,"form",1),o._UZ(3,"input",2),o.TgZ(4,"button",3),o._UZ(5,"i",4),o._uU(6," Sign In with a Google Account "),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"nz-list-item"),o.TgZ(8,"form",1),o._UZ(9,"input",2),o.TgZ(10,"button",3),o._uU(11," Sign In with an ORCID Account "),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"nz-list-item"),o.TgZ(13,"form",1),o._UZ(14,"input",2),o.TgZ(15,"button",3),o._UZ(16,"i",5),o._uU(17," Sign In with a Github Account "),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&oe&&(o.xp6(2),o.MGl("action","/api/auth/google_oauth2?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken),o.xp6(5),o.MGl("action","/api/auth/orcid?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken),o.xp6(4),o.MGl("action","/api/auth/github?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken))},directives:[q.n_,q.AA,i.ix,t.dQ,D.w,A.Ls],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}"]}),te})();function P(te,ae){1&te&&(o.ynx(0),o.TgZ(1,"p",5),o._uU(2,"Click on one of the OAuth providers below to sign into CIViC. If you do not not have a CIViC account, one will be created for you based upon the account information your OAuth provider provides."),o.qZA(),o._UZ(3,"cvc-auth-options-list"),o.BQk())}function K(te,ae){1&te&&o._uU(0," Sign In / Sign Up\n")}function H(te,ae){if(1&te){const oe=o.EpF();o.TgZ(0,"button",0),o.NdJ("click",function(){return o.CHM(oe),o.oxw().handleCancel()}),o._uU(1,"Cancel"),o.qZA()}}let le=(()=>{class te{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-login-button"]],decls:9,vars:3,consts:[["nz-button","","nzType","primary","nzValue","small",3,"click"],[3,"nzVisible","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],["loginModalTitle",""],["loginModalFooter",""],["nzType","secondary"]],template:function(oe,V){if(1&oe&&(o.TgZ(0,"button",0),o.NdJ("click",function(){return V.showAuth()}),o.TgZ(1,"span"),o._uU(2,"Sign In / Sign Up"),o.qZA(),o.qZA(),o.TgZ(3,"nz-modal",1),o.NdJ("nzVisibleChange",function(I){return V.authVisible=I})("nzOnCancel",function(){return V.handleCancel()}),o.YNc(4,P,4,0,"ng-container",2),o.qZA(),o.YNc(5,K,1,0,"ng-template",null,3,o.W1O),o.YNc(7,H,2,0,"ng-template",null,4,o.W1O)),2&oe){const b=o.MAs(6),I=o.MAs(8);o.xp6(3),o.Q6J("nzVisible",V.authVisible)("nzTitle",b)("nzFooter",I)}},directives:[i.ix,t.dQ,D.w,F.du,F.Hf,L],styles:["[_nghost-%COMP%]{display:inline-block}"]}),te})()},1844:(De,se,r)=>{r.d(se,{B:()=>q});var o=r(9808),i=r(6042),t=r(3640),D=r(3762),F=r(647),Z=r(5e3);let B=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({imports:[[o.ez,F.PV,D.Ph,i.sL]]}),A})(),q=(()=>{class A{}return A.\u0275fac=function(P){return new(P||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({imports:[[o.ez,i.sL,t.Qp,B]]}),A})()},7881:(De,se,r)=>{r.d(se,{L:()=>Z});var o=r(5e3),i=r(9808),t=r(6699);function D(B,q){if(1&B&&o._UZ(0,"nz-avatar",2),2&B){const A=o.oxw();o.Q6J("nzSrc",A.user.profileImagePath)("nzShape",A.shape?A.shape:"circle")("nzSize",A.size)}}function F(B,q){if(1&B&&(o._UZ(0,"nz-avatar",3),o.ALo(1,"uppercase")),2&B){const A=o.oxw();o.Q6J("nzSize",A.size)("nzText",o.lcZ(1,2,A.user.displayName.charAt(0)))}}let Z=(()=>{class B{ngOnInit(){if(void 0===this.user)throw new Error("Must supply a user to use this component");void 0===this.size&&(this.size="default")}}return B.\u0275fac=function(A){return new(A||B)},B.\u0275cmp=o.Xpm({type:B,selectors:[["cvc-user-avatar"]],inputs:{user:"user",size:"size",shape:"shape"},decls:3,vars:2,consts:[["nz-comment-avatar","",3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc","nzShape","nzSize"],["nz-comment-avatar","",3,"nzSize","nzText"]],template:function(A,L){if(1&A&&(o.YNc(0,D,1,3,"nz-avatar",0),o.YNc(1,F,2,4,"ng-template",null,1,o.W1O)),2&A){const P=o.MAs(2);o.Q6J("ngIf",L.user.profileImagePath)("ngIfElse",P)}},directives:[i.O5,t.Dz],pipes:[i.gd],styles:["[_nghost-%COMP%]{display:inline-block}"]}),B})()},5473:(De,se,r)=>{r.d(se,{H:()=>D});var o=r(9808),i=r(6699),t=r(5e3);let D=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[o.ez,i.Rt]]}),F})()},9350:(De,se,r)=>{r.d(se,{a:()=>A});var o=r(4850),i=r(5154),t=r(373),D=r(1059),F=r(712),Z=r(5e3),B=r(520);const q={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0};let A=(()=>{class L{constructor(K,H){function le(I){return!(!I||I.role!==F.i44.Admin)}function te(I){return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin)}function ae(I){return!(!I||I.role!==F.i44.Curator)}function oe(I){return!(!I||I.role!==F.i44.Curator&&I.role!==F.i44.Editor&&I.role!==F.i44.Admin)}function V(I){var $,ne;return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin||!I.mostRecentConflictOfInterestStatement||(null===($=I.mostRecentConflictOfInterestStatement)||void 0===$?void 0:$.coiStatus)!=F.Mgx.Conflict&&(null===(ne=I.mostRecentConflictOfInterestStatement)||void 0===ne?void 0:ne.coiStatus)!=F.Mgx.Valid)}function b(I){if(I.mostRecentOrganizationId)return I.organizations.find($=>$.id===I.mostRecentOrganizationId)}this.viewerBaseGQL=K,this.http=H,this.queryRef=this.viewerBaseGQL.watch(),this.data$=this.queryRef.valueChanges.pipe((0,o.U)(I=>({data:I.data,loading:I.loading,networkStatus:I.networkStatus})),(0,i.d)(1)),this.isLoading$=this.data$.pipe((0,t.j)("loading"),(0,D.O)(!0)),this.viewer$=this.data$.pipe((0,t.j)("data","viewer"),(0,o.U)(I=>Object.assign(Object.assign({},I),{signedIn:null!==I,signedOut:null===I,canCurate:oe(I),canModerate:V(I),isAdmin:le(I),isEditor:te(I),isCurator:ae(I),organizations:null===I?[]:I.organizations,mostRecentOrg:null===I?void 0:b(I),invalidCoi:te(I)&&(!I.mostRecentConflictOfInterestStatement||I.mostRecentConflictOfInterestStatement.coiStatus===F.Mgx.Expired||I.mostRecentConflictOfInterestStatement.coiStatus===F.Mgx.Missing)})),(0,D.O)(q),(0,i.d)(1)),this.signedIn$=this.viewer$.pipe((0,o.U)(I=>I.signedIn)),this.signedOut$=this.viewer$.pipe((0,o.U)(I=>I.signedOut)),this.isAdmin$=this.viewer$.pipe((0,o.U)(I=>le(I))),this.isEditor$=this.viewer$.pipe((0,o.U)(I=>te(I))),this.isCurator$=this.viewer$.pipe((0,o.U)(I=>ae(I))),this.canCurate$=this.viewer$.pipe((0,o.U)(I=>oe(I))),this.canModerate$=this.viewer$.pipe((0,o.U)(I=>V(I)))}signOut(){this.http.get("/api/sign_out").subscribe(K=>{this.refetch()})}refetch(){this.queryRef.refetch()}ngOnDestroy(){}}return L.\u0275fac=function(K){return new(K||L)(Z.LFG(F.Tt7),Z.LFG(B.eN))},L.\u0275prov=Z.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},6123:(De,se,r)=>{r.d(se,{U:()=>F});var o=r(8929),i=r(591),t=r(7625),D=r(537);class F{constructor(B){this.networkErrorService=B}mutate(B,q,A){let L=new o.xQ,P={isSubmitting$:new i.X(!1),submitSuccess$:new i.X(!1),submitError$:new i.X([]),cleanup:()=>{L.next(),L.complete()}};return P.isSubmitting$.next(!0),B.mutate(q).pipe((0,t.R)(L),(0,D.x)(()=>{P.isSubmitting$.next(!1)})).subscribe({next:K=>{K.data&&A&&A(K.data)},error:K=>{K.graphQLErrors.length>0?P.submitError$.next(K.graphQLErrors.map(H=>H.message)):K.networkError&&this.networkErrorService.networkError$.next(K.networkError),P.cleanup()},complete:()=>{P.submitError$.next([]),P.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),P.cleanup()}}),P}}},822:(De,se,r)=>{r.d(se,{V:()=>q});var o=r(5e3),i=r(9808),t=r(2359);function D(A,L){if(1&A&&o._UZ(0,"nz-alert",4),2&A){const P=o.oxw();o.Q6J("nzDescription",P.errors[0])}}function F(A,L){if(1&A&&o._UZ(0,"nz-alert",5),2&A){o.oxw();const P=o.MAs(3);o.Q6J("nzDescription",P)}}function Z(A,L){if(1&A&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&A){const P=L.$implicit;o.xp6(1),o.Oqu(P)}}function B(A,L){if(1&A&&(o.TgZ(0,"ul",6),o.YNc(1,Z,2,1,"li",7),o.qZA()),2&A){const P=o.oxw();o.xp6(1),o.Q6J("ngForOf",P.errors)}}let q=(()=>{class A{constructor(){}ngOnInit(){}}return A.\u0275fac=function(P){return new(P||A)},A.\u0275cmp=o.Xpm({type:A,selectors:[["cvc-form-errors-alert"]],inputs:{errors:"errors"},decls:4,vars:2,consts:[["nzType","error","nzShowIcon","",3,"nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occured",3,"nzDescription",4,"ngIf"],["nzSize","small"],["errorList",""],["nzType","error","nzShowIcon","",3,"nzDescription"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occured",3,"nzDescription"],[1,"error-list"],[4,"ngFor","ngForOf"]],template:function(P,K){1&P&&(o.YNc(0,D,1,1,"nz-alert",0),o.YNc(1,F,1,1,"nz-alert",1),o.YNc(2,B,2,1,"ng-template",2,3,o.W1O)),2&P&&(o.Q6J("ngIf",1===K.errors.length),o.xp6(1),o.Q6J("ngIf",K.errors.length>1))},directives:[i.O5,t.r,i.sg],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),A})()},7008:(De,se,r)=>{r.d(se,{B:()=>D});var o=r(9808),i=r(2359),t=r(5e3);let D=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[o.ez,i.L]]}),F})()},8785:(De,se,r)=>{r.d(se,{t:()=>ne});var o=r(5e3),i=r(6123),t=r(8929),D=r(7625),F=r(712),Z=r(9169),B=r(7484),q=r(9808),A=r(2359),L=r(1894),P=r(4546),K=r(822),H=r(7525),le=r(3868),te=r(4182),ae=r(6042),oe=r(2643),V=r(2683);function b(X,de){1&X&&o._UZ(0,"nz-alert",7)}function I(X,de){if(1&X&&(o.TgZ(0,"nz-form-item"),o._UZ(1,"cvc-form-errors-alert",8),o.qZA()),2&X){const fe=o.oxw();o.xp6(1),o.Q6J("errors",fe.errorMessages)}}function $(X,de){if(1&X){const fe=o.EpF();o.TgZ(0,"nz-form-item"),o.TgZ(1,"textarea",9),o.NdJ("ngModelChange",function(ue){return o.CHM(fe),o.oxw().coiText=ue}),o.qZA(),o.qZA()}if(2&X){const fe=o.oxw();o.xp6(1),o.Q6J("ngModel",fe.coiText)}}let ne=(()=>{class X{constructor(fe,pe){this.updateCoiGql=fe,this.coiUpdatedEvent=new o.vpe,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new t.xQ,this.updateCoiMutator=new i.U(pe)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let pe=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});pe.submitSuccess$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{ue&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),pe.submitError$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{ue&&(this.errorMessages=ue,this.success=!1)}),pe.isSubmitting$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{this.loading=ue})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return X.\u0275fac=function(fe){return new(fe||X)(o.Y36(F.IP1),o.Y36(Z.Y))},X.\u0275cmp=o.Xpm({type:X,selectors:[["cvc-user-coi-form"]],outputs:{coiUpdatedEvent:"coiUpdatedEvent"},decls:14,vars:6,consts:[["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],[3,"ngModel","ngModelChange"],["nz-radio","","nzValue","noCoi"],["nz-radio","","nzValue","coiPresent"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"disabled","click"],["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable",""],[3,"errors"],["nz-input","","rows","5","placeholder","Provide a concise description of any potential or actual conflicts of interest that you may have in curating CIViC",2,"width","100%",3,"ngModel","ngModelChange"]],template:function(fe,pe){1&fe&&(o.TgZ(0,"nz-card"),o.YNc(1,b,1,0,"nz-alert",0),o.YNc(2,I,2,1,"nz-form-item",1),o.TgZ(3,"nz-spin",2),o.TgZ(4,"nz-form-item"),o.TgZ(5,"nz-radio-group",3),o.NdJ("ngModelChange",function(W){return pe.coiStatus=W}),o.TgZ(6,"label",4),o._uU(7,"I do not have any potential conflicts of interest."),o.qZA(),o.TgZ(8,"label",5),o._uU(9,"I do have a potential conflict of interest."),o.qZA(),o.qZA(),o.qZA(),o.YNc(10,$,2,1,"nz-form-item",1),o.TgZ(11,"nz-form-item"),o.TgZ(12,"button",6),o.NdJ("click",function(){return pe.updateCoi()}),o._uU(13," Save Conflict of Interest Statement "),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&fe&&(o.xp6(1),o.Q6J("ngIf",pe.success),o.xp6(1),o.Q6J("ngIf",pe.errorMessages.length>0),o.xp6(1),o.Q6J("nzSpinning",pe.loading),o.xp6(2),o.Q6J("ngModel",pe.coiStatus),o.xp6(5),o.Q6J("ngIf","coiPresent"===pe.coiStatus),o.xp6(2),o.Q6J("disabled",pe.loading||"coiPresent"===pe.coiStatus&&(void 0===pe.coiText||pe.coiText.length<10)))},directives:[B.bd,q.O5,A.r,L.SK,P.Nx,K.V,H.W,le.Dg,te.JJ,te.On,le.Of,te.Fj,ae.ix,oe.dQ,V.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),X})()},330:(De,se,r)=>{r.d(se,{e:()=>K});var o=r(9808),i=r(4182),t=r(6949),D=r(7484),F=r(2359),Z=r(4546),B=r(7008),q=r(3868),A=r(7525),L=r(6042),P=r(5e3);let K=(()=>{class H{}return H.\u0275fac=function(te){return new(te||H)},H.\u0275mod=P.oAB({type:H}),H.\u0275inj=P.cJS({imports:[[o.ez,i.u5,Z.U5,i.UX,t.WG,D.vh,F.L,q.aF,L.sL,A.j,B.B]]}),H})()},712:(De,se,r)=>{r.d(se,{ti:()=>ji,$G1:()=>nr,iGM:()=>Jo,KNk:()=>sr,T97:()=>ur,RMv:()=>Ar,LUc:()=>br,iwm:()=>j,Vr2:()=>l,A94:()=>zs,mdl:()=>k,Gbq:()=>ai,bgg:()=>Qo,u4i:()=>ie,ejK:()=>Cs,uBv:()=>ze,td:()=>li,Tq1:()=>Ii,q8c:()=>Pi,WRV:()=>go,IZ6:()=>zo,qf4:()=>Eo,Rdc:()=>$o,gtM:()=>Er,fpJ:()=>Tr,k2T:()=>Cr,UWf:()=>po,cMj:()=>Ts,UIR:()=>di,E8d:()=>Te,P_b:()=>mi,Mgx:()=>$e,iST:()=>fi,Kk:()=>vi,OfU:()=>we,kQf:()=>io,l4w:()=>ss,JQ3:()=>Sr,db2:()=>Zs,h01:()=>Ye,wg3:()=>Ss,k7O:()=>yi,kv3:()=>or,R8w:()=>je,GB2:()=>Es,Zyn:()=>He,dUU:()=>_i,kq9:()=>We,vRc:()=>cr,Ud2:()=>Di,GYx:()=>er,AO2:()=>Je,BTF:()=>Ni,wJ2:()=>Xe,eY8:()=>Li,_Aq:()=>tt,pHu:()=>As,tI1:()=>nt,Q_P:()=>Gr,Sx0:()=>f,Ybm:()=>Oi,Cp0:()=>E,RTy:()=>C,sBY:()=>Ms,kqt:()=>R,Zhw:()=>pr,B0s:()=>Zr,rzy:()=>Fi,BQZ:()=>ce,sfv:()=>he,TNk:()=>xs,rJ8:()=>Ri,FOU:()=>Jr,Q4m:()=>gr,Fvz:()=>pt,cCu:()=>bs,_jb:()=>lo,MYm:()=>ao,oRL:()=>mt,lfy:()=>hr,fow:()=>gt,X5f:()=>Ui,WOS:()=>$s,Lr0:()=>Gs,Del:()=>Bs,xlL:()=>ft,io:()=>Vi,WGV:()=>Qs,OHm:()=>ki,lYz:()=>ht,FKQ:()=>zr,B97:()=>Wi,mII:()=>Ko,ghc:()=>wi,NQC:()=>vt,JDX:()=>zt,VZq:()=>Hi,EwB:()=>Yr,FJi:()=>yt,L5n:()=>to,rZD:()=>Ct,SrV:()=>It,Bk6:()=>Ys,TiL:()=>ho,yic:()=>Tt,SJD:()=>Kt,F3s:()=>_t,jw9:()=>St,g0X:()=>Js,iXf:()=>Mn,NbY:()=>Mr,kQl:()=>Dt,LLl:()=>Yo,WFw:()=>Qr,tji:()=>ps,o71:()=>wt,jMx:()=>oa,A4J:()=>ro,c$m:()=>Zo,Vj7:()=>Br,D9L:()=>Kr,SWk:()=>Xr,aw3:()=>cs,Xft:()=>hs,mpB:()=>Et,m$d:()=>na,IP1:()=>ns,LiH:()=>ea,wRZ:()=>es,wbP:()=>os,sLD:()=>Ks,yqR:()=>Xs,cEv:()=>Co,i44:()=>Nt,vMt:()=>Xo,tJ6:()=>To,IRu:()=>At,Qzn:()=>qi,iJT:()=>pa,qP7:()=>Ot,Qtd:()=>sa,Zo2:()=>So,ROj:()=>us,FB1:()=>Mt,q1D:()=>ca,d4o:()=>Lt,huM:()=>xt,ZYZ:()=>xo,nnL:()=>gs,Bo4:()=>ga,ubO:()=>ua,tw_:()=>Ao,wpb:()=>Ft,BnY:()=>$r,_eC:()=>xr,fwG:()=>Mo,zwS:()=>bo,pP7:()=>bt,Tt7:()=>Go,Kmw:()=>Bo});var o=r(655);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var D=r(9245);function F(e,s){for(var y,n=/\r\n|[\n\r]/g,d=1,z=s+1;(y=n.exec(e.body))&&y.index120){for(var Rt=Math.floor(x/80),Bt=x%80,ke=[],Be=0;Be",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),G=r(6261),O=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),Q=r(2032),ye=function(){function e(n){var d=new Y.WU(g.SOF,0,0,0,0,null);this.source=n,this.lastToken=d,this.token=d,this.line=1,this.lineStart=0}var s=e.prototype;return s.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},s.lookahead=function(){var d=this.token;if(d.kind!==g.EOF)do{var z;d=null!==(z=d.next)&&void 0!==z?z:d.next=Ee(this,d)}while(d.kind===g.COMMENT);return d},e}();function Se(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Ee(e,s){for(var n=e.source,d=n.body,z=d.length,y=s.end;y31||9===T));return new Y.WU(g.COMMENT,s,S,n,d,z,y.slice(s+1,S))}function Ve(e,s,n,d,z,y){var T=e.body,S=n,x=s,me=!1;if(45===S&&(S=T.charCodeAt(++x)),48===S){if((S=T.charCodeAt(++x))>=48&&S<=57)throw ue(e,x,"Invalid number, unexpected digit after 0: ".concat(Se(S),"."))}else x=Pe(e,x,S),S=T.charCodeAt(x);if(46===S&&(me=!0,S=T.charCodeAt(++x),x=Pe(e,x,S),S=T.charCodeAt(x)),(69===S||101===S)&&(me=!0,(43===(S=T.charCodeAt(++x))||45===S)&&(S=T.charCodeAt(++x)),x=Pe(e,x,S),S=T.charCodeAt(x)),46===S||function ge(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(S))throw ue(e,x,"Invalid number, expected digit but got: ".concat(Se(S),"."));return new Y.WU(me?g.FLOAT:g.INT,s,x,d,z,y,T.slice(s,x))}function Pe(e,s,n){var d=e.body,z=s,y=n;if(y>=48&&y<=57){do{y=d.charCodeAt(++z)}while(y>=48&&y<=57);return z}throw ue(e,z,"Invalid number, expected digit but got: ".concat(Se(y),"."))}function N(e,s,n,d,z){for(var y=e.body,T=s+1,S=T,x=0,me="";T=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function U(e,s,n,d,z){for(var y=e.body,T=y.length,S=s+1,x=0;S!==T&&!isNaN(x=y.charCodeAt(S))&&(95===x||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122);)++S;return new Y.WU(g.NAME,s,S,n,d,z,y.slice(s,S))}var Ie=function(){function e(n,d){var z=(0,G.T)(n)?n:new G.H(n);this._lexer=new ye(z),this._options=d}var s=e.prototype;return s.parseName=function(){var d=this.expectToken(g.NAME);return{kind:W.NAME,value:d.value,loc:this.loc(d)}},s.parseDocument=function(){var d=this._lexer.token;return{kind:W.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(d)}},s.parseDefinition=function(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},s.parseOperationDefinition=function(){var d=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:W.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(d)};var y,z=this.parseOperationType();return this.peek(g.NAME)&&(y=this.parseName()),{kind:W.OPERATION_DEFINITION,operation:z,name:y,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(d)}},s.parseOperationType=function(){var d=this.expectToken(g.NAME);switch(d.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(d)},s.parseVariableDefinitions=function(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},s.parseVariableDefinition=function(){var d=this._lexer.token;return{kind:W.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(d)}},s.parseVariable=function(){var d=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:W.VARIABLE,name:this.parseName(),loc:this.loc(d)}},s.parseSelectionSet=function(){var d=this._lexer.token;return{kind:W.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(d)}},s.parseSelection=function(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},s.parseField=function(){var y,T,d=this._lexer.token,z=this.parseName();return this.expectOptionalToken(g.COLON)?(y=z,T=this.parseName()):T=z,{kind:W.FIELD,alias:y,name:T,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(d)}},s.parseArguments=function(d){return this.optionalMany(g.PAREN_L,d?this.parseConstArgument:this.parseArgument,g.PAREN_R)},s.parseArgument=function(){var d=this._lexer.token,z=this.parseName();return this.expectToken(g.COLON),{kind:W.ARGUMENT,name:z,value:this.parseValueLiteral(!1),loc:this.loc(d)}},s.parseConstArgument=function(){var d=this._lexer.token;return{kind:W.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(d)}},s.parseFragment=function(){var d=this._lexer.token;this.expectToken(g.SPREAD);var z=this.expectOptionalKeyword("on");return!z&&this.peek(g.NAME)?{kind:W.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(d)}:{kind:W.INLINE_FRAGMENT,typeCondition:z?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(d)}},s.parseFragmentDefinition=function(){var d,z=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(d=this._options)||void 0===d?void 0:d.experimentalFragmentVariables)?{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(z)}:{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(z)}},s.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},s.parseValueLiteral=function(d){var z=this._lexer.token;switch(z.kind){case g.BRACKET_L:return this.parseList(d);case g.BRACE_L:return this.parseObject(d);case g.INT:return this._lexer.advance(),{kind:W.INT,value:z.value,loc:this.loc(z)};case g.FLOAT:return this._lexer.advance(),{kind:W.FLOAT,value:z.value,loc:this.loc(z)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this._lexer.advance(),z.value){case"true":return{kind:W.BOOLEAN,value:!0,loc:this.loc(z)};case"false":return{kind:W.BOOLEAN,value:!1,loc:this.loc(z)};case"null":return{kind:W.NULL,loc:this.loc(z)};default:return{kind:W.ENUM,value:z.value,loc:this.loc(z)}}case g.DOLLAR:if(!d)return this.parseVariable()}throw this.unexpected()},s.parseStringLiteral=function(){var d=this._lexer.token;return this._lexer.advance(),{kind:W.STRING,value:d.value,block:d.kind===g.BLOCK_STRING,loc:this.loc(d)}},s.parseList=function(d){var z=this,y=this._lexer.token;return{kind:W.LIST,values:this.any(g.BRACKET_L,function(){return z.parseValueLiteral(d)},g.BRACKET_R),loc:this.loc(y)}},s.parseObject=function(d){var z=this,y=this._lexer.token;return{kind:W.OBJECT,fields:this.any(g.BRACE_L,function(){return z.parseObjectField(d)},g.BRACE_R),loc:this.loc(y)}},s.parseObjectField=function(d){var z=this._lexer.token,y=this.parseName();return this.expectToken(g.COLON),{kind:W.OBJECT_FIELD,name:y,value:this.parseValueLiteral(d),loc:this.loc(z)}},s.parseDirectives=function(d){for(var z=[];this.peek(g.AT);)z.push(this.parseDirective(d));return z},s.parseDirective=function(d){var z=this._lexer.token;return this.expectToken(g.AT),{kind:W.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(d),loc:this.loc(z)}},s.parseTypeReference=function(){var z,d=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(z=this.parseTypeReference(),this.expectToken(g.BRACKET_R),z={kind:W.LIST_TYPE,type:z,loc:this.loc(d)}):z=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:W.NON_NULL_TYPE,type:z,loc:this.loc(d)}:z},s.parseNamedType=function(){var d=this._lexer.token;return{kind:W.NAMED_TYPE,name:this.parseName(),loc:this.loc(d)}},s.parseTypeSystemDefinition=function(){var d=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(d.kind===g.NAME)switch(d.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(d)},s.peekDescription=function(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},s.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},s.parseSchemaDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("schema");var y=this.parseDirectives(!0),T=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:W.SCHEMA_DEFINITION,description:z,directives:y,operationTypes:T,loc:this.loc(d)}},s.parseOperationTypeDefinition=function(){var d=this._lexer.token,z=this.parseOperationType();this.expectToken(g.COLON);var y=this.parseNamedType();return{kind:W.OPERATION_TYPE_DEFINITION,operation:z,type:y,loc:this.loc(d)}},s.parseScalarTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("scalar");var y=this.parseName(),T=this.parseDirectives(!0);return{kind:W.SCALAR_TYPE_DEFINITION,description:z,name:y,directives:T,loc:this.loc(d)}},s.parseObjectTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("type");var y=this.parseName(),T=this.parseImplementsInterfaces(),S=this.parseDirectives(!0),x=this.parseFieldsDefinition();return{kind:W.OBJECT_TYPE_DEFINITION,description:z,name:y,interfaces:T,directives:S,fields:x,loc:this.loc(d)}},s.parseImplementsInterfaces=function(){var d;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(d=this._options)||void 0===d?void 0:d.allowLegacySDLImplementsInterfaces)){var z=[];this.expectOptionalToken(g.AMP);do{z.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this.peek(g.NAME));return z}return this.delimitedMany(g.AMP,this.parseNamedType)},s.parseFieldsDefinition=function(){var d;return!0===(null===(d=this._options)||void 0===d?void 0:d.allowLegacySDLEmptyFields)&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},s.parseFieldDefinition=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName(),T=this.parseArgumentDefs();this.expectToken(g.COLON);var S=this.parseTypeReference(),x=this.parseDirectives(!0);return{kind:W.FIELD_DEFINITION,description:z,name:y,arguments:T,type:S,directives:x,loc:this.loc(d)}},s.parseArgumentDefs=function(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},s.parseInputValueDef=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName();this.expectToken(g.COLON);var S,T=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(S=this.parseValueLiteral(!0));var x=this.parseDirectives(!0);return{kind:W.INPUT_VALUE_DEFINITION,description:z,name:y,type:T,defaultValue:S,directives:x,loc:this.loc(d)}},s.parseInterfaceTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("interface");var y=this.parseName(),T=this.parseImplementsInterfaces(),S=this.parseDirectives(!0),x=this.parseFieldsDefinition();return{kind:W.INTERFACE_TYPE_DEFINITION,description:z,name:y,interfaces:T,directives:S,fields:x,loc:this.loc(d)}},s.parseUnionTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("union");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseUnionMemberTypes();return{kind:W.UNION_TYPE_DEFINITION,description:z,name:y,directives:T,types:S,loc:this.loc(d)}},s.parseUnionMemberTypes=function(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]},s.parseEnumTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("enum");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseEnumValuesDefinition();return{kind:W.ENUM_TYPE_DEFINITION,description:z,name:y,directives:T,values:S,loc:this.loc(d)}},s.parseEnumValuesDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},s.parseEnumValueDefinition=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName(),T=this.parseDirectives(!0);return{kind:W.ENUM_VALUE_DEFINITION,description:z,name:y,directives:T,loc:this.loc(d)}},s.parseInputObjectTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("input");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseInputFieldsDefinition();return{kind:W.INPUT_OBJECT_TYPE_DEFINITION,description:z,name:y,directives:T,fields:S,loc:this.loc(d)}},s.parseInputFieldsDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},s.parseTypeSystemExtension=function(){var d=this._lexer.lookahead();if(d.kind===g.NAME)switch(d.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(d)},s.parseSchemaExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var z=this.parseDirectives(!0),y=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===z.length&&0===y.length)throw this.unexpected();return{kind:W.SCHEMA_EXTENSION,directives:z,operationTypes:y,loc:this.loc(d)}},s.parseScalarTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var z=this.parseName(),y=this.parseDirectives(!0);if(0===y.length)throw this.unexpected();return{kind:W.SCALAR_TYPE_EXTENSION,name:z,directives:y,loc:this.loc(d)}},s.parseObjectTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var z=this.parseName(),y=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),S=this.parseFieldsDefinition();if(0===y.length&&0===T.length&&0===S.length)throw this.unexpected();return{kind:W.OBJECT_TYPE_EXTENSION,name:z,interfaces:y,directives:T,fields:S,loc:this.loc(d)}},s.parseInterfaceTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var z=this.parseName(),y=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),S=this.parseFieldsDefinition();if(0===y.length&&0===T.length&&0===S.length)throw this.unexpected();return{kind:W.INTERFACE_TYPE_EXTENSION,name:z,interfaces:y,directives:T,fields:S,loc:this.loc(d)}},s.parseUnionTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseUnionMemberTypes();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.UNION_TYPE_EXTENSION,name:z,directives:y,types:T,loc:this.loc(d)}},s.parseEnumTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseEnumValuesDefinition();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.ENUM_TYPE_EXTENSION,name:z,directives:y,values:T,loc:this.loc(d)}},s.parseInputObjectTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseInputFieldsDefinition();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.INPUT_OBJECT_TYPE_EXTENSION,name:z,directives:y,fields:T,loc:this.loc(d)}},s.parseDirectiveDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var y=this.parseName(),T=this.parseArgumentDefs(),S=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var x=this.parseDirectiveLocations();return{kind:W.DIRECTIVE_DEFINITION,description:z,name:y,arguments:T,repeatable:S,locations:x,loc:this.loc(d)}},s.parseDirectiveLocations=function(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)},s.parseDirectiveLocation=function(){var d=this._lexer.token,z=this.parseName();if(void 0!==O[z.value])return z;throw this.unexpected(d)},s.loc=function(d){var z;if(!0!==(null===(z=this._options)||void 0===z?void 0:z.noLocation))return new Y.Ye(d,this._lexer.lastToken,this._lexer.source)},s.peek=function(d){return this._lexer.token.kind===d},s.expectToken=function(d){var z=this._lexer.token;if(z.kind===d)return this._lexer.advance(),z;throw ue(this._lexer.source,z.start,"Expected ".concat(Ne(d),", found ").concat(Le(z),"."))},s.expectOptionalToken=function(d){var z=this._lexer.token;if(z.kind===d)return this._lexer.advance(),z},s.expectKeyword=function(d){var z=this._lexer.token;if(z.kind!==g.NAME||z.value!==d)throw ue(this._lexer.source,z.start,'Expected "'.concat(d,'", found ').concat(Le(z),"."));this._lexer.advance()},s.expectOptionalKeyword=function(d){var z=this._lexer.token;return z.kind===g.NAME&&z.value===d&&(this._lexer.advance(),!0)},s.unexpected=function(d){var z=null!=d?d:this._lexer.token;return ue(this._lexer.source,z.start,"Unexpected ".concat(Le(z),"."))},s.any=function(d,z,y){this.expectToken(d);for(var T=[];!this.expectOptionalToken(y);)T.push(z.call(this));return T},s.optionalMany=function(d,z,y){if(this.expectOptionalToken(d)){var T=[];do{T.push(z.call(this))}while(!this.expectOptionalToken(y));return T}return[]},s.many=function(d,z,y){this.expectToken(d);var T=[];do{T.push(z.call(this))}while(!this.expectOptionalToken(y));return T},s.delimitedMany=function(d,z){this.expectOptionalToken(d);var y=[];do{y.push(z.call(this))}while(this.expectOptionalToken(d));return y},e}();function Le(e){var s=e.value;return Ne(e.kind)+(null!=s?' "'.concat(s,'"'):"")}function Ne(e){return function _e(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ue=new Map,ve=new Map,Qe=!0,xe=!1;function Re(e){return e.replace(/[\s,]+/g," ").trim()}function rt(e){var s=Re(e);if(!Ue.has(s)){var n=function Ce(e,s){return new Ie(e,s).parseDocument()}(e,{experimentalFragmentVariables:xe,allowLegacyFragmentVariables:xe});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ue.set(s,function et(e){var s=new Set(e.definitions);s.forEach(function(d){d.loc&&delete d.loc,Object.keys(d).forEach(function(z){var y=d[z];y&&"object"==typeof y&&s.add(y)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function ot(e){var s=new Set,n=[];return e.definitions.forEach(function(d){if("FragmentDefinition"===d.kind){var z=d.name.value,y=function it(e){return Re(e.source.body.substring(e.start,e.end))}(d.loc),T=ve.get(z);T&&!T.has(y)?Qe&&console.warn("Warning: fragment with name "+z+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):T||ve.set(z,T=new Set),T.add(y),s.has(y)||(s.add(y),n.push(d))}else n.push(d)}),(0,o.pi)((0,o.pi)({},e),{definitions:n})}(n)))}return Ue.get(s)}function h(e){for(var s=[],n=1;n(function(e){e.Na="NA",e.TierIii="TIER_III",e.TierIiLevelC="TIER_II_LEVEL_C",e.TierIiLevelD="TIER_II_LEVEL_D",e.TierIv="TIER_IV",e.TierILevelA="TIER_I_LEVEL_A",e.TierILevelB="TIER_I_LEVEL_B"}(j||(j={})),j))(),l=(()=>(function(e){e.AdverseResponse="ADVERSE_RESPONSE",e.Benign="BENIGN",e.BetterOutcome="BETTER_OUTCOME",e.LikelyBenign="LIKELY_BENIGN",e.LikelyPathogenic="LIKELY_PATHOGENIC",e.Na="NA",e.Negative="NEGATIVE",e.Pathogenic="PATHOGENIC",e.PoorOutcome="POOR_OUTCOME",e.Positive="POSITIVE",e.ReducedSensitivity="REDUCED_SENSITIVITY",e.Resistance="RESISTANCE",e.Sensitivityresponse="SENSITIVITYRESPONSE",e.UncertainSignificance="UNCERTAIN_SIGNIFICANCE"}(l||(l={})),l))(),k=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Supports="SUPPORTS"}(k||(k={})),k))(),ie=(()=>(function(e){e.AmpLevel="AMP_LEVEL",e.AssertionDirection="ASSERTION_DIRECTION",e.AssertionType="ASSERTION_TYPE",e.ClinicalSignificance="CLINICAL_SIGNIFICANCE",e.DiseaseName="DISEASE_NAME",e.DrugName="DRUG_NAME",e.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",e.GeneName="GENE_NAME",e.Id="ID",e.Status="STATUS",e.Summary="SUMMARY",e.VariantName="VARIANT_NAME"}(ie||(ie={})),ie))(),ze=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(ze||(ze={})),ze))(),Te=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NctId="NCT_ID",e.SourceCount="SOURCE_COUNT"}(Te||(Te={})),Te))(),$e=(()=>(function(e){e.Conflict="CONFLICT",e.Expired="EXPIRED",e.Missing="MISSING",e.Valid="VALID"}($e||($e={})),$e))(),we=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Source="SOURCE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(we||(we={})),we))(),Ye=(()=>(function(e){e.Created="CREATED",e.LastModified="LAST_MODIFIED"}(Ye||(Ye={})),Ye))(),je=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.Doid="DOID",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneCount="GENE_COUNT",e.Name="NAME",e.VariantCount="VARIANT_COUNT"}(je||(je={})),je))(),He=(()=>(function(e){e.Combination="COMBINATION",e.Sequential="SEQUENTIAL",e.Substitutes="SUBSTITUTES"}(He||(He={})),He))(),We=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NcitId="NCIT_ID"}(We||(We={})),We))(),Je=(()=>(function(e){e.Accepted="ACCEPTED",e.AssertionAccepted="ASSERTION_ACCEPTED",e.AssertionRejected="ASSERTION_REJECTED",e.AssertionReverted="ASSERTION_REVERTED",e.AssertionSubmitted="ASSERTION_SUBMITTED",e.Commented="COMMENTED",e.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",e.Flagged="FLAGGED",e.FlagResolved="FLAG_RESOLVED",e.PublicationSuggested="PUBLICATION_SUGGESTED",e.Rejected="REJECTED",e.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",e.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",e.Reverted="REVERTED",e.RevisionAccepted="REVISION_ACCEPTED",e.RevisionRejected="REVISION_REJECTED",e.RevisionSuggested="REVISION_SUGGESTED",e.RevisionSuperseded="REVISION_SUPERSEDED",e.Submitted="SUBMITTED"}(Je||(Je={})),Je))(),Xe=(()=>(function(e){e.Organization="ORGANIZATION",e.Subject="SUBJECT",e.Unscoped="UNSCOPED",e.User="USER"}(Xe||(Xe={})),Xe))(),tt=(()=>(function(e){e.AdverseResponse="ADVERSE_RESPONSE",e.Benign="BENIGN",e.BetterOutcome="BETTER_OUTCOME",e.DominantNegative="DOMINANT_NEGATIVE",e.GainOfFunction="GAIN_OF_FUNCTION",e.LikelyBenign="LIKELY_BENIGN",e.LikelyPathogenic="LIKELY_PATHOGENIC",e.LossOfFunction="LOSS_OF_FUNCTION",e.Na="NA",e.Negative="NEGATIVE",e.Neomorphic="NEOMORPHIC",e.Pathogenic="PATHOGENIC",e.PoorOutcome="POOR_OUTCOME",e.Positive="POSITIVE",e.ReducedSensitivity="REDUCED_SENSITIVITY",e.Resistance="RESISTANCE",e.Sensitivityresponse="SENSITIVITYRESPONSE",e.UnalteredFunction="UNALTERED_FUNCTION",e.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",e.Unknown="UNKNOWN"}(tt||(tt={})),tt))(),nt=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Na="NA",e.Supports="SUPPORTS"}(nt||(nt={})),nt))(),f=(()=>(function(e){e.A="A",e.B="B",e.C="C",e.D="D",e.E="E"}(f||(f={})),f))(),E=(()=>(function(e){e.ClinicalSignificance="CLINICAL_SIGNIFICANCE",e.Description="DESCRIPTION",e.DiseaseName="DISEASE_NAME",e.DrugName="DRUG_NAME",e.EvidenceDirection="EVIDENCE_DIRECTION",e.EvidenceLevel="EVIDENCE_LEVEL",e.EvidenceRating="EVIDENCE_RATING",e.EvidenceType="EVIDENCE_TYPE",e.GeneSymbol="GENE_SYMBOL",e.Id="ID",e.Status="STATUS",e.VariantName="VARIANT_NAME",e.VariantOrigin="VARIANT_ORIGIN"}(E||(E={})),E))(),C=(()=>(function(e){e.Accepted="ACCEPTED",e.Rejected="REJECTED",e.Submitted="SUBMITTED"}(C||(C={})),C))(),R=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Functional="FUNCTIONAL",e.Oncogenic="ONCOGENIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(R||(R={})),R))(),ce=(()=>(function(e){e.Open="OPEN",e.Resolved="RESOLVED"}(ce||(ce={})),ce))(),he=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(he||(he={})),he))(),pt=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.GeneAlias="geneAlias",e.VariantCount="variantCount"}(pt||(pt={})),pt))(),mt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(mt||(mt={})),mt))(),gt=(()=>(function(e){e.Mention="MENTION",e.Subscription="SUBSCRIPTION"}(gt||(gt={})),gt))(),ft=(()=>(function(e){e.Id="ID",e.Name="NAME"}(ft||(ft={})),ft))(),ht=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.HpoId="HPO_ID",e.Name="NAME"}(ht||(ht={})),ht))(),vt=(()=>(function(e){e.Read="READ",e.Unread="UNREAD"}(vt||(vt={})),vt))(),zt=(()=>(function(e){e.Grch37="GRCH37",e.Grch38="GRCH38",e.Ncbi36="NCBI36"}(zt||(zt={})),zt))(),yt=(()=>(function(e){e.Accepted="ACCEPTED",e.New="NEW",e.Rejected="REJECTED",e.Superseded="SUPERSEDED"}(yt||(yt={})),yt))(),Ct=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(Ct||(Ct={})),Ct))(),It=(()=>(function(e){e.Asc="ASC",e.Desc="DESC"}(It||(It={})),It))(),Tt=(()=>(function(e){e.Asco="ASCO",e.Pubmed="PUBMED"}(Tt||(Tt={})),Tt))(),_t=(()=>(function(e){e.Curated="CURATED",e.New="NEW",e.Rejected="REJECTED"}(_t||(_t={})),_t))(),St=(()=>(function(e){e.Citation="CITATION",e.CitationId="CITATION_ID",e.DiseaseName="DISEASE_NAME",e.GeneName="GENE_NAME",e.SourceType="SOURCE_TYPE",e.Submitter="SUBMITTER",e.VariantName="VARIANT_NAME"}(St||(St={})),St))(),Dt=(()=>(function(e){e.Authors="AUTHORS",e.CitationId="CITATION_ID",e.EvidenceCount="EVIDENCE_COUNT",e.Journal="JOURNAL",e.Name="NAME",e.SourceType="SOURCE_TYPE",e.Year="YEAR"}(Dt||(Dt={})),Dt))(),wt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.SourceSuggestion="SOURCE_SUGGESTION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(wt||(wt={})),wt))(),Et=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Role="ROLE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(Et||(Et={})),Et))(),Nt=(()=>(function(e){e.Admin="ADMIN",e.Curator="CURATOR",e.Editor="EDITOR"}(Nt||(Nt={})),Nt))(),At=(()=>(function(e){e.Id="ID",e.LastAction="LAST_ACTION",e.Name="NAME",e.Role="ROLE"}(At||(At={})),At))(),Ot=(()=>(function(e){e.All="ALL",e.WithAccepted="WITH_ACCEPTED",e.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",e.WithSubmitted="WITH_SUBMITTED"}(Ot||(Ot={})),Ot))(),Mt=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneNames="GENE_NAMES",e.Name="NAME",e.VariantCount="VARIANT_COUNT",e.VariantNames="VARIANT_NAMES"}(Mt||(Mt={})),Mt))(),Lt=(()=>(function(e){e.CoordinateEnd="COORDINATE_END",e.CoordinateStart="COORDINATE_START",e.Name="NAME"}(Lt||(Lt={})),Lt))(),xt=(()=>(function(e){e.CommonGermline="COMMON_GERMLINE",e.Na="NA",e.RareGermline="RARE_GERMLINE",e.Somatic="SOMATIC",e.Unknown="UNKNOWN"}(xt||(xt={})),xt))(),Ft=(()=>(function(e){e.Name="NAME",e.Soid="SOID",e.VariantCount="VARIANT_COUNT"}(Ft||(Ft={})),Ft))(),bt=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.EvidenceScore="evidenceScore",e.VariantName="variantName"}(bt||(bt={})),bt))();const Zt=h`
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4024],{1912:(De,re,r)=>{r.d(re,{s:()=>le});var o=r(5e3),i=r(6042),t=r(2643),D=r(2683),F=r(3640),B=r(2160),q=r(3762),A=r(647);let L=(()=>{class te{constructor(oe){this.cookies=oe,this.location=function Z(te){return encodeURIComponent(te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}}return te.\u0275fac=function(oe){return new(oe||te)(o.Y36(B.N))},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-auth-options-list"]],decls:18,vars:6,consts:[["nzBordered","false","nzSplit","false"],["method","post",3,"action"],["type","hidden","name","authenticity_token",3,"value"],["type","submit","nz-button","","nzBlock","","nzType","default","nzSize","large","nzShape","round"],["nz-icon","","nzType","google"],["nz-icon","","nzType","github"]],template:function(oe,V){1&oe&&(o.TgZ(0,"nz-list",0),o.TgZ(1,"nz-list-item"),o.TgZ(2,"form",1),o._UZ(3,"input",2),o.TgZ(4,"button",3),o._UZ(5,"i",4),o._uU(6," Sign In with a Google Account "),o.qZA(),o.qZA(),o.qZA(),o.TgZ(7,"nz-list-item"),o.TgZ(8,"form",1),o._UZ(9,"input",2),o.TgZ(10,"button",3),o._uU(11," Sign In with an ORCID Account "),o.qZA(),o.qZA(),o.qZA(),o.TgZ(12,"nz-list-item"),o.TgZ(13,"form",1),o._UZ(14,"input",2),o.TgZ(15,"button",3),o._UZ(16,"i",5),o._uU(17," Sign In with a Github Account "),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&oe&&(o.xp6(2),o.MGl("action","/api/auth/google_oauth2?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken),o.xp6(5),o.MGl("action","/api/auth/orcid?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken),o.xp6(4),o.MGl("action","/api/auth/github?origin=",V.location,"",o.LSH),o.xp6(1),o.s9C("value",V.xsrfToken))},directives:[q.n_,q.AA,i.ix,t.dQ,D.w,A.Ls],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}"]}),te})();function G(te,se){1&te&&(o.ynx(0),o.TgZ(1,"p",5),o._uU(2,"Click on one of the OAuth providers below to sign into CIViC. If you do not not have a CIViC account, one will be created for you based upon the account information your OAuth provider provides."),o.qZA(),o._UZ(3,"cvc-auth-options-list"),o.BQk())}function K(te,se){1&te&&o._uU(0," Sign In / Sign Up\n")}function H(te,se){if(1&te){const oe=o.EpF();o.TgZ(0,"button",0),o.NdJ("click",function(){return o.CHM(oe),o.oxw().handleCancel()}),o._uU(1,"Cancel"),o.qZA()}}let le=(()=>{class te{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}}return te.\u0275fac=function(oe){return new(oe||te)},te.\u0275cmp=o.Xpm({type:te,selectors:[["cvc-login-button"]],decls:9,vars:3,consts:[["nz-button","","nzType","primary","nzValue","small",3,"click"],[3,"nzVisible","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],[4,"nzModalContent"],["loginModalTitle",""],["loginModalFooter",""],["nzType","secondary"]],template:function(oe,V){if(1&oe&&(o.TgZ(0,"button",0),o.NdJ("click",function(){return V.showAuth()}),o.TgZ(1,"span"),o._uU(2,"Sign In / Sign Up"),o.qZA(),o.qZA(),o.TgZ(3,"nz-modal",1),o.NdJ("nzVisibleChange",function(I){return V.authVisible=I})("nzOnCancel",function(){return V.handleCancel()}),o.YNc(4,G,4,0,"ng-container",2),o.qZA(),o.YNc(5,K,1,0,"ng-template",null,3,o.W1O),o.YNc(7,H,2,0,"ng-template",null,4,o.W1O)),2&oe){const b=o.MAs(6),I=o.MAs(8);o.xp6(3),o.Q6J("nzVisible",V.authVisible)("nzTitle",b)("nzFooter",I)}},directives:[i.ix,t.dQ,D.w,F.du,F.Hf,L],styles:["[_nghost-%COMP%]{display:inline-block}"]}),te})()},1844:(De,re,r)=>{r.d(re,{B:()=>q});var o=r(9808),i=r(6042),t=r(3640),D=r(3762),F=r(647),Z=r(5e3);let B=(()=>{class A{}return A.\u0275fac=function(G){return new(G||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({imports:[[o.ez,F.PV,D.Ph,i.sL]]}),A})(),q=(()=>{class A{}return A.\u0275fac=function(G){return new(G||A)},A.\u0275mod=Z.oAB({type:A}),A.\u0275inj=Z.cJS({imports:[[o.ez,i.sL,t.Qp,B]]}),A})()},7881:(De,re,r)=>{r.d(re,{L:()=>Z});var o=r(5e3),i=r(9808),t=r(6699);function D(B,q){if(1&B&&o._UZ(0,"nz-avatar",2),2&B){const A=o.oxw();o.Q6J("nzSrc",A.user.profileImagePath)("nzShape",A.shape?A.shape:"circle")("nzSize",A.size)}}function F(B,q){if(1&B&&(o._UZ(0,"nz-avatar",3),o.ALo(1,"uppercase")),2&B){const A=o.oxw();o.Q6J("nzSize",A.size)("nzText",o.lcZ(1,2,A.user.displayName.charAt(0)))}}let Z=(()=>{class B{ngOnInit(){if(void 0===this.user)throw new Error("Must supply a user to use this component");void 0===this.size&&(this.size="default")}}return B.\u0275fac=function(A){return new(A||B)},B.\u0275cmp=o.Xpm({type:B,selectors:[["cvc-user-avatar"]],inputs:{user:"user",size:"size",shape:"shape"},decls:3,vars:2,consts:[["nz-comment-avatar","",3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc","nzShape","nzSize"],["nz-comment-avatar","",3,"nzSize","nzText"]],template:function(A,L){if(1&A&&(o.YNc(0,D,1,3,"nz-avatar",0),o.YNc(1,F,2,4,"ng-template",null,1,o.W1O)),2&A){const G=o.MAs(2);o.Q6J("ngIf",L.user.profileImagePath)("ngIfElse",G)}},directives:[i.O5,t.Dz],pipes:[i.gd],styles:["[_nghost-%COMP%]{display:inline-block}"]}),B})()},5473:(De,re,r)=>{r.d(re,{H:()=>D});var o=r(9808),i=r(6699),t=r(5e3);let D=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[o.ez,i.Rt]]}),F})()},9350:(De,re,r)=>{r.d(re,{a:()=>A});var o=r(4850),i=r(5154),t=r(373),D=r(1059),F=r(712),Z=r(5e3),B=r(520);const q={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0};let A=(()=>{class L{constructor(K,H){function le(I){return!(!I||I.role!==F.i44.Admin)}function te(I){return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin)}function se(I){return!(!I||I.role!==F.i44.Curator)}function oe(I){return!(!I||I.role!==F.i44.Curator&&I.role!==F.i44.Editor&&I.role!==F.i44.Admin)}function V(I){var $,ne;return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin||!I.mostRecentConflictOfInterestStatement||(null===($=I.mostRecentConflictOfInterestStatement)||void 0===$?void 0:$.coiStatus)!=F.Mgx.Conflict&&(null===(ne=I.mostRecentConflictOfInterestStatement)||void 0===ne?void 0:ne.coiStatus)!=F.Mgx.Valid)}function b(I){if(I.mostRecentOrganizationId)return I.organizations.find($=>$.id===I.mostRecentOrganizationId)}this.viewerBaseGQL=K,this.http=H,this.queryRef=this.viewerBaseGQL.watch(),this.data$=this.queryRef.valueChanges.pipe((0,o.U)(I=>({data:I.data,loading:I.loading,networkStatus:I.networkStatus})),(0,i.d)(1)),this.isLoading$=this.data$.pipe((0,t.j)("loading"),(0,D.O)(!0)),this.viewer$=this.data$.pipe((0,t.j)("data","viewer"),(0,o.U)(I=>Object.assign(Object.assign({},I),{signedIn:null!==I,signedOut:null===I,canCurate:oe(I),canModerate:V(I),isAdmin:le(I),isEditor:te(I),isCurator:se(I),organizations:null===I?[]:I.organizations,mostRecentOrg:null===I?void 0:b(I),invalidCoi:te(I)&&(!I.mostRecentConflictOfInterestStatement||I.mostRecentConflictOfInterestStatement.coiStatus===F.Mgx.Expired||I.mostRecentConflictOfInterestStatement.coiStatus===F.Mgx.Missing)})),(0,D.O)(q),(0,i.d)(1)),this.signedIn$=this.viewer$.pipe((0,o.U)(I=>I.signedIn)),this.signedOut$=this.viewer$.pipe((0,o.U)(I=>I.signedOut)),this.isAdmin$=this.viewer$.pipe((0,o.U)(I=>le(I))),this.isEditor$=this.viewer$.pipe((0,o.U)(I=>te(I))),this.isCurator$=this.viewer$.pipe((0,o.U)(I=>se(I))),this.canCurate$=this.viewer$.pipe((0,o.U)(I=>oe(I))),this.canModerate$=this.viewer$.pipe((0,o.U)(I=>V(I)))}signOut(){this.http.get("/api/sign_out").subscribe(K=>{this.refetch()})}refetch(){this.queryRef.refetch()}ngOnDestroy(){}}return L.\u0275fac=function(K){return new(K||L)(Z.LFG(F.Tt7),Z.LFG(B.eN))},L.\u0275prov=Z.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})()},6123:(De,re,r)=>{r.d(re,{U:()=>F});var o=r(8929),i=r(591),t=r(7625),D=r(537);class F{constructor(B){this.networkErrorService=B}mutate(B,q,A){let L=new o.xQ,G={isSubmitting$:new i.X(!1),submitSuccess$:new i.X(!1),submitError$:new i.X([]),cleanup:()=>{L.next(),L.complete()}};return G.isSubmitting$.next(!0),B.mutate(q).pipe((0,t.R)(L),(0,D.x)(()=>{G.isSubmitting$.next(!1)})).subscribe({next:K=>{K.data&&A&&A(K.data)},error:K=>{K.graphQLErrors.length>0?G.submitError$.next(K.graphQLErrors.map(H=>H.message)):K.networkError&&this.networkErrorService.networkError$.next(K.networkError),G.cleanup()},complete:()=>{G.submitError$.next([]),G.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),G.cleanup()}}),G}}},822:(De,re,r)=>{r.d(re,{V:()=>q});var o=r(5e3),i=r(9808),t=r(2359);function D(A,L){if(1&A&&o._UZ(0,"nz-alert",4),2&A){const G=o.oxw();o.Q6J("nzDescription",G.errors[0])}}function F(A,L){if(1&A&&o._UZ(0,"nz-alert",5),2&A){o.oxw();const G=o.MAs(3);o.Q6J("nzDescription",G)}}function Z(A,L){if(1&A&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&A){const G=L.$implicit;o.xp6(1),o.Oqu(G)}}function B(A,L){if(1&A&&(o.TgZ(0,"ul",6),o.YNc(1,Z,2,1,"li",7),o.qZA()),2&A){const G=o.oxw();o.xp6(1),o.Q6J("ngForOf",G.errors)}}let q=(()=>{class A{constructor(){}ngOnInit(){}}return A.\u0275fac=function(G){return new(G||A)},A.\u0275cmp=o.Xpm({type:A,selectors:[["cvc-form-errors-alert"]],inputs:{errors:"errors"},decls:4,vars:2,consts:[["nzType","error","nzShowIcon","",3,"nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occured",3,"nzDescription",4,"ngIf"],["nzSize","small"],["errorList",""],["nzType","error","nzShowIcon","",3,"nzDescription"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occured",3,"nzDescription"],[1,"error-list"],[4,"ngFor","ngForOf"]],template:function(G,K){1&G&&(o.YNc(0,D,1,1,"nz-alert",0),o.YNc(1,F,1,1,"nz-alert",1),o.YNc(2,B,2,1,"ng-template",2,3,o.W1O)),2&G&&(o.Q6J("ngIf",1===K.errors.length),o.xp6(1),o.Q6J("ngIf",K.errors.length>1))},directives:[i.O5,t.r,i.sg],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),A})()},7008:(De,re,r)=>{r.d(re,{B:()=>D});var o=r(9808),i=r(2359),t=r(5e3);let D=(()=>{class F{}return F.\u0275fac=function(B){return new(B||F)},F.\u0275mod=t.oAB({type:F}),F.\u0275inj=t.cJS({imports:[[o.ez,i.L]]}),F})()},8785:(De,re,r)=>{r.d(re,{t:()=>ne});var o=r(5e3),i=r(6123),t=r(8929),D=r(7625),F=r(712),Z=r(9169),B=r(7484),q=r(9808),A=r(2359),L=r(1894),G=r(4546),K=r(822),H=r(7525),le=r(3868),te=r(4182),se=r(6042),oe=r(2643),V=r(2683);function b(X,de){1&X&&o._UZ(0,"nz-alert",7)}function I(X,de){if(1&X&&(o.TgZ(0,"nz-form-item"),o._UZ(1,"cvc-form-errors-alert",8),o.qZA()),2&X){const fe=o.oxw();o.xp6(1),o.Q6J("errors",fe.errorMessages)}}function $(X,de){if(1&X){const fe=o.EpF();o.TgZ(0,"nz-form-item"),o.TgZ(1,"textarea",9),o.NdJ("ngModelChange",function(ue){return o.CHM(fe),o.oxw().coiText=ue}),o.qZA(),o.qZA()}if(2&X){const fe=o.oxw();o.xp6(1),o.Q6J("ngModel",fe.coiText)}}let ne=(()=>{class X{constructor(fe,pe){this.updateCoiGql=fe,this.coiUpdatedEvent=new o.vpe,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new t.xQ,this.updateCoiMutator=new i.U(pe)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let pe=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});pe.submitSuccess$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{ue&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),pe.submitError$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{ue&&(this.errorMessages=ue,this.success=!1)}),pe.isSubmitting$.pipe((0,D.R)(this.destroy$)).subscribe(ue=>{this.loading=ue})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return X.\u0275fac=function(fe){return new(fe||X)(o.Y36(F.IP1),o.Y36(Z.Y))},X.\u0275cmp=o.Xpm({type:X,selectors:[["cvc-user-coi-form"]],outputs:{coiUpdatedEvent:"coiUpdatedEvent"},decls:14,vars:6,consts:[["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],[3,"ngModel","ngModelChange"],["nz-radio","","nzValue","noCoi"],["nz-radio","","nzValue","coiPresent"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"disabled","click"],["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable",""],[3,"errors"],["nz-input","","rows","5","placeholder","Provide a concise description of any potential or actual conflicts of interest that you may have in curating CIViC",2,"width","100%",3,"ngModel","ngModelChange"]],template:function(fe,pe){1&fe&&(o.TgZ(0,"nz-card"),o.YNc(1,b,1,0,"nz-alert",0),o.YNc(2,I,2,1,"nz-form-item",1),o.TgZ(3,"nz-spin",2),o.TgZ(4,"nz-form-item"),o.TgZ(5,"nz-radio-group",3),o.NdJ("ngModelChange",function(W){return pe.coiStatus=W}),o.TgZ(6,"label",4),o._uU(7,"I do not have any potential conflicts of interest."),o.qZA(),o.TgZ(8,"label",5),o._uU(9,"I do have a potential conflict of interest."),o.qZA(),o.qZA(),o.qZA(),o.YNc(10,$,2,1,"nz-form-item",1),o.TgZ(11,"nz-form-item"),o.TgZ(12,"button",6),o.NdJ("click",function(){return pe.updateCoi()}),o._uU(13," Save Conflict of Interest Statement "),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&fe&&(o.xp6(1),o.Q6J("ngIf",pe.success),o.xp6(1),o.Q6J("ngIf",pe.errorMessages.length>0),o.xp6(1),o.Q6J("nzSpinning",pe.loading),o.xp6(2),o.Q6J("ngModel",pe.coiStatus),o.xp6(5),o.Q6J("ngIf","coiPresent"===pe.coiStatus),o.xp6(2),o.Q6J("disabled",pe.loading||"coiPresent"===pe.coiStatus&&(void 0===pe.coiText||pe.coiText.length<10)))},directives:[B.bd,q.O5,A.r,L.SK,G.Nx,K.V,H.W,le.Dg,te.JJ,te.On,le.Of,te.Fj,se.ix,oe.dQ,V.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),X})()},330:(De,re,r)=>{r.d(re,{e:()=>K});var o=r(9808),i=r(4182),t=r(6949),D=r(7484),F=r(2359),Z=r(4546),B=r(7008),q=r(3868),A=r(7525),L=r(6042),G=r(5e3);let K=(()=>{class H{}return H.\u0275fac=function(te){return new(te||H)},H.\u0275mod=G.oAB({type:H}),H.\u0275inj=G.cJS({imports:[[o.ez,i.u5,Z.U5,i.UX,t.WG,D.vh,F.L,q.aF,L.sL,A.j,B.B]]}),H})()},712:(De,re,r)=>{r.d(re,{ti:()=>ji,$G1:()=>nr,iGM:()=>Jo,KNk:()=>sr,T97:()=>ur,RMv:()=>Ar,LUc:()=>br,iwm:()=>j,Vr2:()=>l,A94:()=>zs,mdl:()=>k,Gbq:()=>ai,bgg:()=>Qo,u4i:()=>ie,ejK:()=>Cs,uBv:()=>ze,td:()=>li,Tq1:()=>Ii,q8c:()=>Pi,WRV:()=>go,IZ6:()=>zo,qf4:()=>Eo,Rdc:()=>$o,gtM:()=>Er,fpJ:()=>Tr,k2T:()=>Cr,UWf:()=>po,cMj:()=>Ts,UIR:()=>di,E8d:()=>Te,P_b:()=>mi,Mgx:()=>Fe,iST:()=>fi,Kk:()=>vi,OfU:()=>ke,kQf:()=>io,l4w:()=>ss,JQ3:()=>Sr,db2:()=>Zs,h01:()=>Ye,wg3:()=>Ss,k7O:()=>yi,kv3:()=>or,R8w:()=>Je,GB2:()=>Es,Zyn:()=>He,dUU:()=>_i,kq9:()=>nt,vRc:()=>cr,Ud2:()=>Di,GYx:()=>er,AO2:()=>Qe,BTF:()=>Ni,wJ2:()=>je,eY8:()=>Li,_Aq:()=>ut,pHu:()=>As,tI1:()=>Xe,Q_P:()=>Gr,Sx0:()=>f,Ybm:()=>Oi,Cp0:()=>E,RTy:()=>C,sBY:()=>Ms,kqt:()=>R,Zhw:()=>pr,B0s:()=>Zr,rzy:()=>Fi,BQZ:()=>ce,sfv:()=>he,TNk:()=>xs,rJ8:()=>Ri,FOU:()=>Jr,Q4m:()=>gr,Fvz:()=>mt,cCu:()=>bs,_jb:()=>lo,MYm:()=>ao,oRL:()=>gt,lfy:()=>hr,fow:()=>ft,X5f:()=>Ui,WOS:()=>$s,Lr0:()=>Gs,Del:()=>Bs,xlL:()=>ht,io:()=>Vi,WGV:()=>Qs,OHm:()=>ki,lYz:()=>vt,FKQ:()=>zr,B97:()=>Wi,mII:()=>Ko,ghc:()=>wi,NQC:()=>zt,JDX:()=>yt,VZq:()=>Hi,EwB:()=>Yr,FJi:()=>Ct,L5n:()=>to,rZD:()=>It,SrV:()=>Tt,Bk6:()=>Ys,TiL:()=>ho,yic:()=>_t,SJD:()=>Ht,F3s:()=>St,jw9:()=>Dt,g0X:()=>Js,iXf:()=>Mn,NbY:()=>Mr,kQl:()=>Et,LLl:()=>Yo,WFw:()=>Qr,tji:()=>ps,o71:()=>qe,jMx:()=>oa,A4J:()=>ro,c$m:()=>Zo,Vj7:()=>Br,D9L:()=>Kr,SWk:()=>Xr,aw3:()=>cs,Xft:()=>hs,mpB:()=>Gt,m$d:()=>na,IP1:()=>ns,LiH:()=>ea,wRZ:()=>es,wbP:()=>os,sLD:()=>Ks,yqR:()=>Xs,cEv:()=>Co,i44:()=>Nt,vMt:()=>Xo,tJ6:()=>To,IRu:()=>At,Qzn:()=>qi,iJT:()=>pa,qP7:()=>Ot,Qtd:()=>sa,Zo2:()=>So,ROj:()=>us,FB1:()=>Mt,q1D:()=>ca,d4o:()=>Lt,huM:()=>xt,ZYZ:()=>xo,nnL:()=>gs,Bo4:()=>ga,ubO:()=>ua,tw_:()=>Ao,wpb:()=>Ft,BnY:()=>$r,_eC:()=>xr,fwG:()=>Mo,zwS:()=>bo,pP7:()=>bt,Tt7:()=>Go,Kmw:()=>Bo});var o=r(655);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(e)}var D=r(9245);function F(e,s){for(var y,n=/\r\n|[\n\r]/g,d=1,z=s+1;(y=n.exec(e.body))&&y.index120){for(var Rt=Math.floor(x/80),wt=x%80,We=[],we=0;we",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),w=r(6261),O=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),Q=r(2032),ye=function(){function e(n){var d=new Y.WU(g.SOF,0,0,0,0,null);this.source=n,this.lastToken=d,this.token=d,this.line=1,this.lineStart=0}var s=e.prototype;return s.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},s.lookahead=function(){var d=this.token;if(d.kind!==g.EOF)do{var z;d=null!==(z=d.next)&&void 0!==z?z:d.next=Ee(this,d)}while(d.kind===g.COMMENT);return d},e}();function Se(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Ee(e,s){for(var n=e.source,d=n.body,z=d.length,y=s.end;y31||9===T));return new Y.WU(g.COMMENT,s,S,n,d,z,y.slice(s+1,S))}function Ve(e,s,n,d,z,y){var T=e.body,S=n,x=s,me=!1;if(45===S&&(S=T.charCodeAt(++x)),48===S){if((S=T.charCodeAt(++x))>=48&&S<=57)throw ue(e,x,"Invalid number, unexpected digit after 0: ".concat(Se(S),"."))}else x=Pe(e,x,S),S=T.charCodeAt(x);if(46===S&&(me=!0,S=T.charCodeAt(++x),x=Pe(e,x,S),S=T.charCodeAt(x)),(69===S||101===S)&&(me=!0,(43===(S=T.charCodeAt(++x))||45===S)&&(S=T.charCodeAt(++x)),x=Pe(e,x,S),S=T.charCodeAt(x)),46===S||function ge(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(S))throw ue(e,x,"Invalid number, expected digit but got: ".concat(Se(S),"."));return new Y.WU(me?g.FLOAT:g.INT,s,x,d,z,y,T.slice(s,x))}function Pe(e,s,n){var d=e.body,z=s,y=n;if(y>=48&&y<=57){do{y=d.charCodeAt(++z)}while(y>=48&&y<=57);return z}throw ue(e,z,"Invalid number, expected digit but got: ".concat(Se(y),"."))}function N(e,s,n,d,z){for(var y=e.body,T=s+1,S=T,x=0,me="";T=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function U(e,s,n,d,z){for(var y=e.body,T=y.length,S=s+1,x=0;S!==T&&!isNaN(x=y.charCodeAt(S))&&(95===x||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122);)++S;return new Y.WU(g.NAME,s,S,n,d,z,y.slice(s,S))}var Ie=function(){function e(n,d){var z=(0,w.T)(n)?n:new w.H(n);this._lexer=new ye(z),this._options=d}var s=e.prototype;return s.parseName=function(){var d=this.expectToken(g.NAME);return{kind:W.NAME,value:d.value,loc:this.loc(d)}},s.parseDocument=function(){var d=this._lexer.token;return{kind:W.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(d)}},s.parseDefinition=function(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},s.parseOperationDefinition=function(){var d=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:W.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(d)};var y,z=this.parseOperationType();return this.peek(g.NAME)&&(y=this.parseName()),{kind:W.OPERATION_DEFINITION,operation:z,name:y,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(d)}},s.parseOperationType=function(){var d=this.expectToken(g.NAME);switch(d.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(d)},s.parseVariableDefinitions=function(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},s.parseVariableDefinition=function(){var d=this._lexer.token;return{kind:W.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(d)}},s.parseVariable=function(){var d=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:W.VARIABLE,name:this.parseName(),loc:this.loc(d)}},s.parseSelectionSet=function(){var d=this._lexer.token;return{kind:W.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(d)}},s.parseSelection=function(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},s.parseField=function(){var y,T,d=this._lexer.token,z=this.parseName();return this.expectOptionalToken(g.COLON)?(y=z,T=this.parseName()):T=z,{kind:W.FIELD,alias:y,name:T,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(d)}},s.parseArguments=function(d){return this.optionalMany(g.PAREN_L,d?this.parseConstArgument:this.parseArgument,g.PAREN_R)},s.parseArgument=function(){var d=this._lexer.token,z=this.parseName();return this.expectToken(g.COLON),{kind:W.ARGUMENT,name:z,value:this.parseValueLiteral(!1),loc:this.loc(d)}},s.parseConstArgument=function(){var d=this._lexer.token;return{kind:W.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(d)}},s.parseFragment=function(){var d=this._lexer.token;this.expectToken(g.SPREAD);var z=this.expectOptionalKeyword("on");return!z&&this.peek(g.NAME)?{kind:W.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(d)}:{kind:W.INLINE_FRAGMENT,typeCondition:z?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(d)}},s.parseFragmentDefinition=function(){var d,z=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(d=this._options)||void 0===d?void 0:d.experimentalFragmentVariables)?{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(z)}:{kind:W.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(z)}},s.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},s.parseValueLiteral=function(d){var z=this._lexer.token;switch(z.kind){case g.BRACKET_L:return this.parseList(d);case g.BRACE_L:return this.parseObject(d);case g.INT:return this._lexer.advance(),{kind:W.INT,value:z.value,loc:this.loc(z)};case g.FLOAT:return this._lexer.advance(),{kind:W.FLOAT,value:z.value,loc:this.loc(z)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this._lexer.advance(),z.value){case"true":return{kind:W.BOOLEAN,value:!0,loc:this.loc(z)};case"false":return{kind:W.BOOLEAN,value:!1,loc:this.loc(z)};case"null":return{kind:W.NULL,loc:this.loc(z)};default:return{kind:W.ENUM,value:z.value,loc:this.loc(z)}}case g.DOLLAR:if(!d)return this.parseVariable()}throw this.unexpected()},s.parseStringLiteral=function(){var d=this._lexer.token;return this._lexer.advance(),{kind:W.STRING,value:d.value,block:d.kind===g.BLOCK_STRING,loc:this.loc(d)}},s.parseList=function(d){var z=this,y=this._lexer.token;return{kind:W.LIST,values:this.any(g.BRACKET_L,function(){return z.parseValueLiteral(d)},g.BRACKET_R),loc:this.loc(y)}},s.parseObject=function(d){var z=this,y=this._lexer.token;return{kind:W.OBJECT,fields:this.any(g.BRACE_L,function(){return z.parseObjectField(d)},g.BRACE_R),loc:this.loc(y)}},s.parseObjectField=function(d){var z=this._lexer.token,y=this.parseName();return this.expectToken(g.COLON),{kind:W.OBJECT_FIELD,name:y,value:this.parseValueLiteral(d),loc:this.loc(z)}},s.parseDirectives=function(d){for(var z=[];this.peek(g.AT);)z.push(this.parseDirective(d));return z},s.parseDirective=function(d){var z=this._lexer.token;return this.expectToken(g.AT),{kind:W.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(d),loc:this.loc(z)}},s.parseTypeReference=function(){var z,d=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(z=this.parseTypeReference(),this.expectToken(g.BRACKET_R),z={kind:W.LIST_TYPE,type:z,loc:this.loc(d)}):z=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:W.NON_NULL_TYPE,type:z,loc:this.loc(d)}:z},s.parseNamedType=function(){var d=this._lexer.token;return{kind:W.NAMED_TYPE,name:this.parseName(),loc:this.loc(d)}},s.parseTypeSystemDefinition=function(){var d=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(d.kind===g.NAME)switch(d.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(d)},s.peekDescription=function(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},s.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},s.parseSchemaDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("schema");var y=this.parseDirectives(!0),T=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:W.SCHEMA_DEFINITION,description:z,directives:y,operationTypes:T,loc:this.loc(d)}},s.parseOperationTypeDefinition=function(){var d=this._lexer.token,z=this.parseOperationType();this.expectToken(g.COLON);var y=this.parseNamedType();return{kind:W.OPERATION_TYPE_DEFINITION,operation:z,type:y,loc:this.loc(d)}},s.parseScalarTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("scalar");var y=this.parseName(),T=this.parseDirectives(!0);return{kind:W.SCALAR_TYPE_DEFINITION,description:z,name:y,directives:T,loc:this.loc(d)}},s.parseObjectTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("type");var y=this.parseName(),T=this.parseImplementsInterfaces(),S=this.parseDirectives(!0),x=this.parseFieldsDefinition();return{kind:W.OBJECT_TYPE_DEFINITION,description:z,name:y,interfaces:T,directives:S,fields:x,loc:this.loc(d)}},s.parseImplementsInterfaces=function(){var d;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(d=this._options)||void 0===d?void 0:d.allowLegacySDLImplementsInterfaces)){var z=[];this.expectOptionalToken(g.AMP);do{z.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this.peek(g.NAME));return z}return this.delimitedMany(g.AMP,this.parseNamedType)},s.parseFieldsDefinition=function(){var d;return!0===(null===(d=this._options)||void 0===d?void 0:d.allowLegacySDLEmptyFields)&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},s.parseFieldDefinition=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName(),T=this.parseArgumentDefs();this.expectToken(g.COLON);var S=this.parseTypeReference(),x=this.parseDirectives(!0);return{kind:W.FIELD_DEFINITION,description:z,name:y,arguments:T,type:S,directives:x,loc:this.loc(d)}},s.parseArgumentDefs=function(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},s.parseInputValueDef=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName();this.expectToken(g.COLON);var S,T=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(S=this.parseValueLiteral(!0));var x=this.parseDirectives(!0);return{kind:W.INPUT_VALUE_DEFINITION,description:z,name:y,type:T,defaultValue:S,directives:x,loc:this.loc(d)}},s.parseInterfaceTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("interface");var y=this.parseName(),T=this.parseImplementsInterfaces(),S=this.parseDirectives(!0),x=this.parseFieldsDefinition();return{kind:W.INTERFACE_TYPE_DEFINITION,description:z,name:y,interfaces:T,directives:S,fields:x,loc:this.loc(d)}},s.parseUnionTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("union");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseUnionMemberTypes();return{kind:W.UNION_TYPE_DEFINITION,description:z,name:y,directives:T,types:S,loc:this.loc(d)}},s.parseUnionMemberTypes=function(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]},s.parseEnumTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("enum");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseEnumValuesDefinition();return{kind:W.ENUM_TYPE_DEFINITION,description:z,name:y,directives:T,values:S,loc:this.loc(d)}},s.parseEnumValuesDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},s.parseEnumValueDefinition=function(){var d=this._lexer.token,z=this.parseDescription(),y=this.parseName(),T=this.parseDirectives(!0);return{kind:W.ENUM_VALUE_DEFINITION,description:z,name:y,directives:T,loc:this.loc(d)}},s.parseInputObjectTypeDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("input");var y=this.parseName(),T=this.parseDirectives(!0),S=this.parseInputFieldsDefinition();return{kind:W.INPUT_OBJECT_TYPE_DEFINITION,description:z,name:y,directives:T,fields:S,loc:this.loc(d)}},s.parseInputFieldsDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},s.parseTypeSystemExtension=function(){var d=this._lexer.lookahead();if(d.kind===g.NAME)switch(d.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(d)},s.parseSchemaExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var z=this.parseDirectives(!0),y=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===z.length&&0===y.length)throw this.unexpected();return{kind:W.SCHEMA_EXTENSION,directives:z,operationTypes:y,loc:this.loc(d)}},s.parseScalarTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var z=this.parseName(),y=this.parseDirectives(!0);if(0===y.length)throw this.unexpected();return{kind:W.SCALAR_TYPE_EXTENSION,name:z,directives:y,loc:this.loc(d)}},s.parseObjectTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var z=this.parseName(),y=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),S=this.parseFieldsDefinition();if(0===y.length&&0===T.length&&0===S.length)throw this.unexpected();return{kind:W.OBJECT_TYPE_EXTENSION,name:z,interfaces:y,directives:T,fields:S,loc:this.loc(d)}},s.parseInterfaceTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var z=this.parseName(),y=this.parseImplementsInterfaces(),T=this.parseDirectives(!0),S=this.parseFieldsDefinition();if(0===y.length&&0===T.length&&0===S.length)throw this.unexpected();return{kind:W.INTERFACE_TYPE_EXTENSION,name:z,interfaces:y,directives:T,fields:S,loc:this.loc(d)}},s.parseUnionTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseUnionMemberTypes();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.UNION_TYPE_EXTENSION,name:z,directives:y,types:T,loc:this.loc(d)}},s.parseEnumTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseEnumValuesDefinition();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.ENUM_TYPE_EXTENSION,name:z,directives:y,values:T,loc:this.loc(d)}},s.parseInputObjectTypeExtension=function(){var d=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var z=this.parseName(),y=this.parseDirectives(!0),T=this.parseInputFieldsDefinition();if(0===y.length&&0===T.length)throw this.unexpected();return{kind:W.INPUT_OBJECT_TYPE_EXTENSION,name:z,directives:y,fields:T,loc:this.loc(d)}},s.parseDirectiveDefinition=function(){var d=this._lexer.token,z=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var y=this.parseName(),T=this.parseArgumentDefs(),S=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var x=this.parseDirectiveLocations();return{kind:W.DIRECTIVE_DEFINITION,description:z,name:y,arguments:T,repeatable:S,locations:x,loc:this.loc(d)}},s.parseDirectiveLocations=function(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)},s.parseDirectiveLocation=function(){var d=this._lexer.token,z=this.parseName();if(void 0!==O[z.value])return z;throw this.unexpected(d)},s.loc=function(d){var z;if(!0!==(null===(z=this._options)||void 0===z?void 0:z.noLocation))return new Y.Ye(d,this._lexer.lastToken,this._lexer.source)},s.peek=function(d){return this._lexer.token.kind===d},s.expectToken=function(d){var z=this._lexer.token;if(z.kind===d)return this._lexer.advance(),z;throw ue(this._lexer.source,z.start,"Expected ".concat(Ne(d),", found ").concat(Le(z),"."))},s.expectOptionalToken=function(d){var z=this._lexer.token;if(z.kind===d)return this._lexer.advance(),z},s.expectKeyword=function(d){var z=this._lexer.token;if(z.kind!==g.NAME||z.value!==d)throw ue(this._lexer.source,z.start,'Expected "'.concat(d,'", found ').concat(Le(z),"."));this._lexer.advance()},s.expectOptionalKeyword=function(d){var z=this._lexer.token;return z.kind===g.NAME&&z.value===d&&(this._lexer.advance(),!0)},s.unexpected=function(d){var z=null!=d?d:this._lexer.token;return ue(this._lexer.source,z.start,"Unexpected ".concat(Le(z),"."))},s.any=function(d,z,y){this.expectToken(d);for(var T=[];!this.expectOptionalToken(y);)T.push(z.call(this));return T},s.optionalMany=function(d,z,y){if(this.expectOptionalToken(d)){var T=[];do{T.push(z.call(this))}while(!this.expectOptionalToken(y));return T}return[]},s.many=function(d,z,y){this.expectToken(d);var T=[];do{T.push(z.call(this))}while(!this.expectOptionalToken(y));return T},s.delimitedMany=function(d,z){this.expectOptionalToken(d);var y=[];do{y.push(z.call(this))}while(this.expectOptionalToken(d));return y},e}();function Le(e){var s=e.value;return Ne(e.kind)+(null!=s?' "'.concat(s,'"'):"")}function Ne(e){return function _e(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?'"'.concat(e,'"'):e}var Be=new Map,ve=new Map,Ue=!0,xe=!1;function $e(e){return e.replace(/[\s,]+/g," ").trim()}function rt(e){var s=$e(e);if(!Be.has(s)){var n=function Ce(e,s){return new Ie(e,s).parseDocument()}(e,{experimentalFragmentVariables:xe,allowLegacyFragmentVariables:xe});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Be.set(s,function tt(e){var s=new Set(e.definitions);s.forEach(function(d){d.loc&&delete d.loc,Object.keys(d).forEach(function(z){var y=d[z];y&&"object"==typeof y&&s.add(y)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function ot(e){var s=new Set,n=[];return e.definitions.forEach(function(d){if("FragmentDefinition"===d.kind){var z=d.name.value,y=function it(e){return $e(e.source.body.substring(e.start,e.end))}(d.loc),T=ve.get(z);T&&!T.has(y)?Ue&&console.warn("Warning: fragment with name "+z+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):T||ve.set(z,T=new Set),T.add(y),s.has(y)||(s.add(y),n.push(d))}else n.push(d)}),(0,o.pi)((0,o.pi)({},e),{definitions:n})}(n)))}return Be.get(s)}function h(e){for(var s=[],n=1;n(function(e){e.Na="NA",e.TierIii="TIER_III",e.TierIiLevelC="TIER_II_LEVEL_C",e.TierIiLevelD="TIER_II_LEVEL_D",e.TierIv="TIER_IV",e.TierILevelA="TIER_I_LEVEL_A",e.TierILevelB="TIER_I_LEVEL_B"}(j||(j={})),j))(),l=(()=>(function(e){e.AdverseResponse="ADVERSE_RESPONSE",e.Benign="BENIGN",e.BetterOutcome="BETTER_OUTCOME",e.LikelyBenign="LIKELY_BENIGN",e.LikelyPathogenic="LIKELY_PATHOGENIC",e.Na="NA",e.Negative="NEGATIVE",e.Pathogenic="PATHOGENIC",e.PoorOutcome="POOR_OUTCOME",e.Positive="POSITIVE",e.ReducedSensitivity="REDUCED_SENSITIVITY",e.Resistance="RESISTANCE",e.Sensitivityresponse="SENSITIVITYRESPONSE",e.UncertainSignificance="UNCERTAIN_SIGNIFICANCE"}(l||(l={})),l))(),k=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Supports="SUPPORTS"}(k||(k={})),k))(),ie=(()=>(function(e){e.AmpLevel="AMP_LEVEL",e.AssertionDirection="ASSERTION_DIRECTION",e.AssertionType="ASSERTION_TYPE",e.ClinicalSignificance="CLINICAL_SIGNIFICANCE",e.DiseaseName="DISEASE_NAME",e.DrugName="DRUG_NAME",e.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",e.GeneName="GENE_NAME",e.Id="ID",e.Status="STATUS",e.Summary="SUMMARY",e.VariantName="VARIANT_NAME"}(ie||(ie={})),ie))(),ze=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(ze||(ze={})),ze))(),Te=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NctId="NCT_ID",e.SourceCount="SOURCE_COUNT"}(Te||(Te={})),Te))(),Fe=(()=>(function(e){e.Conflict="CONFLICT",e.Expired="EXPIRED",e.Missing="MISSING",e.Valid="VALID"}(Fe||(Fe={})),Fe))(),ke=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Source="SOURCE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(ke||(ke={})),ke))(),Ye=(()=>(function(e){e.Created="CREATED",e.LastModified="LAST_MODIFIED"}(Ye||(Ye={})),Ye))(),Je=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.Doid="DOID",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneCount="GENE_COUNT",e.Name="NAME",e.VariantCount="VARIANT_COUNT"}(Je||(Je={})),Je))(),He=(()=>(function(e){e.Combination="COMBINATION",e.Sequential="SEQUENTIAL",e.Substitutes="SUBSTITUTES"}(He||(He={})),He))(),nt=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NcitId="NCIT_ID"}(nt||(nt={})),nt))(),Qe=(()=>(function(e){e.Accepted="ACCEPTED",e.AssertionAccepted="ASSERTION_ACCEPTED",e.AssertionRejected="ASSERTION_REJECTED",e.AssertionReverted="ASSERTION_REVERTED",e.AssertionSubmitted="ASSERTION_SUBMITTED",e.Commented="COMMENTED",e.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",e.Flagged="FLAGGED",e.FlagResolved="FLAG_RESOLVED",e.PublicationSuggested="PUBLICATION_SUGGESTED",e.Rejected="REJECTED",e.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",e.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",e.Reverted="REVERTED",e.RevisionAccepted="REVISION_ACCEPTED",e.RevisionRejected="REVISION_REJECTED",e.RevisionSuggested="REVISION_SUGGESTED",e.RevisionSuperseded="REVISION_SUPERSEDED",e.Submitted="SUBMITTED"}(Qe||(Qe={})),Qe))(),je=(()=>(function(e){e.Organization="ORGANIZATION",e.Subject="SUBJECT",e.Unscoped="UNSCOPED",e.User="USER"}(je||(je={})),je))(),ut=(()=>(function(e){e.AdverseResponse="ADVERSE_RESPONSE",e.Benign="BENIGN",e.BetterOutcome="BETTER_OUTCOME",e.DominantNegative="DOMINANT_NEGATIVE",e.GainOfFunction="GAIN_OF_FUNCTION",e.LikelyBenign="LIKELY_BENIGN",e.LikelyPathogenic="LIKELY_PATHOGENIC",e.LossOfFunction="LOSS_OF_FUNCTION",e.Na="NA",e.Negative="NEGATIVE",e.Neomorphic="NEOMORPHIC",e.Pathogenic="PATHOGENIC",e.PoorOutcome="POOR_OUTCOME",e.Positive="POSITIVE",e.ReducedSensitivity="REDUCED_SENSITIVITY",e.Resistance="RESISTANCE",e.Sensitivityresponse="SENSITIVITYRESPONSE",e.UnalteredFunction="UNALTERED_FUNCTION",e.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",e.Unknown="UNKNOWN"}(ut||(ut={})),ut))(),Xe=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Na="NA",e.Supports="SUPPORTS"}(Xe||(Xe={})),Xe))(),f=(()=>(function(e){e.A="A",e.B="B",e.C="C",e.D="D",e.E="E"}(f||(f={})),f))(),E=(()=>(function(e){e.ClinicalSignificance="CLINICAL_SIGNIFICANCE",e.Description="DESCRIPTION",e.DiseaseName="DISEASE_NAME",e.DrugName="DRUG_NAME",e.EvidenceDirection="EVIDENCE_DIRECTION",e.EvidenceLevel="EVIDENCE_LEVEL",e.EvidenceRating="EVIDENCE_RATING",e.EvidenceType="EVIDENCE_TYPE",e.GeneSymbol="GENE_SYMBOL",e.Id="ID",e.Status="STATUS",e.VariantName="VARIANT_NAME",e.VariantOrigin="VARIANT_ORIGIN"}(E||(E={})),E))(),C=(()=>(function(e){e.Accepted="ACCEPTED",e.Rejected="REJECTED",e.Submitted="SUBMITTED"}(C||(C={})),C))(),R=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Functional="FUNCTIONAL",e.Oncogenic="ONCOGENIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(R||(R={})),R))(),ce=(()=>(function(e){e.Open="OPEN",e.Resolved="RESOLVED"}(ce||(ce={})),ce))(),he=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(he||(he={})),he))(),mt=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.GeneAlias="geneAlias",e.VariantCount="variantCount"}(mt||(mt={})),mt))(),gt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(gt||(gt={})),gt))(),ft=(()=>(function(e){e.Mention="MENTION",e.Subscription="SUBSCRIPTION"}(ft||(ft={})),ft))(),ht=(()=>(function(e){e.Id="ID",e.Name="NAME"}(ht||(ht={})),ht))(),vt=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.HpoId="HPO_ID",e.Name="NAME"}(vt||(vt={})),vt))(),zt=(()=>(function(e){e.Read="READ",e.Unread="UNREAD"}(zt||(zt={})),zt))(),yt=(()=>(function(e){e.Grch37="GRCH37",e.Grch38="GRCH38",e.Ncbi36="NCBI36"}(yt||(yt={})),yt))(),Ct=(()=>(function(e){e.Accepted="ACCEPTED",e.New="NEW",e.Rejected="REJECTED",e.Superseded="SUPERSEDED"}(Ct||(Ct={})),Ct))(),It=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(It||(It={})),It))(),Tt=(()=>(function(e){e.Asc="ASC",e.Desc="DESC"}(Tt||(Tt={})),Tt))(),_t=(()=>(function(e){e.Asco="ASCO",e.Pubmed="PUBMED"}(_t||(_t={})),_t))(),St=(()=>(function(e){e.Curated="CURATED",e.New="NEW",e.Rejected="REJECTED"}(St||(St={})),St))(),Dt=(()=>(function(e){e.Citation="CITATION",e.CitationId="CITATION_ID",e.DiseaseName="DISEASE_NAME",e.GeneName="GENE_NAME",e.SourceType="SOURCE_TYPE",e.Submitter="SUBMITTER",e.VariantName="VARIANT_NAME"}(Dt||(Dt={})),Dt))(),Et=(()=>(function(e){e.Authors="AUTHORS",e.CitationId="CITATION_ID",e.EvidenceCount="EVIDENCE_COUNT",e.Journal="JOURNAL",e.Name="NAME",e.SourceType="SOURCE_TYPE",e.Year="YEAR"}(Et||(Et={})),Et))(),qe=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.SourceSuggestion="SOURCE_SUGGESTION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(qe||(qe={})),qe))(),Gt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Role="ROLE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(Gt||(Gt={})),Gt))(),Nt=(()=>(function(e){e.Admin="ADMIN",e.Curator="CURATOR",e.Editor="EDITOR"}(Nt||(Nt={})),Nt))(),At=(()=>(function(e){e.Id="ID",e.LastAction="LAST_ACTION",e.Name="NAME",e.Role="ROLE"}(At||(At={})),At))(),Ot=(()=>(function(e){e.All="ALL",e.WithAccepted="WITH_ACCEPTED",e.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",e.WithSubmitted="WITH_SUBMITTED"}(Ot||(Ot={})),Ot))(),Mt=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneNames="GENE_NAMES",e.Name="NAME",e.VariantCount="VARIANT_COUNT",e.VariantNames="VARIANT_NAMES"}(Mt||(Mt={})),Mt))(),Lt=(()=>(function(e){e.CoordinateEnd="COORDINATE_END",e.CoordinateStart="COORDINATE_START",e.Name="NAME"}(Lt||(Lt={})),Lt))(),xt=(()=>(function(e){e.CommonGermline="COMMON_GERMLINE",e.Na="NA",e.RareGermline="RARE_GERMLINE",e.Somatic="SOMATIC",e.Unknown="UNKNOWN"}(xt||(xt={})),xt))(),Ft=(()=>(function(e){e.Name="NAME",e.Soid="SOID",e.VariantCount="VARIANT_COUNT"}(Ft||(Ft={})),Ft))(),bt=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.EvidenceScore="evidenceScore",e.VariantName="variantName"}(bt||(bt={})),bt))();const Vt=h`
fragment assertionPopover on Assertion {
id
name
@@ -56,7 +56,7 @@
totalCount
}
}
- `,kt=h`
+ `,Zt=h`
fragment AssertionBrowseTableRowFields on Assertion {
id
name
@@ -106,7 +106,7 @@
evidenceItemsCount
status
}
- `,u=h`
+ `,kt=h`
fragment clinicalTrialPopover on BrowseClinicalTrial {
id
name
@@ -115,7 +115,7 @@
sourceCount
evidenceCount
}
- `,M=h`
+ `,u=h`
fragment commentListNode on Comment {
id
title
@@ -154,7 +154,7 @@
}
}
}
- `,c=h`
+ `,M=h`
fragment commentPopover on Comment {
id
name
@@ -174,7 +174,7 @@
__typename
}
}
- `,v=h`
+ `,c=h`
fragment BrowseDiseaseRowFields on BrowseDisease {
id
name
@@ -187,7 +187,7 @@
geneCount
link
}
- `,w=h`
+ `,v=h`
fragment DrugBrowseTableRowFields on BrowseDrug {
id
name
@@ -197,7 +197,7 @@
evidenceCount
link
}
- `,re=h`
+ `,P=h`
fragment eventFeedNode on Event {
id
action
@@ -246,7 +246,7 @@
}
}
}
- `,qe=h`
+ `,ae=h`
fragment eventFeed on EventConnection {
pageInfo {
startCursor
@@ -274,7 +274,7 @@
}
}
}
- ${re}`,Yt=h`
+ ${P}`,et=h`
fragment evidencePopover on EvidenceItem {
id
name
@@ -329,7 +329,7 @@
totalCount
}
}
- `,en=h`
+ `,Yt=h`
fragment EvidenceGridFields on EvidenceItem {
id
name
@@ -962,7 +962,7 @@
geneAliases
entrezId
}
- `,jt=h`
+ `,Kt=h`
fragment SourceTypeaheadResult on Source {
id
name
@@ -970,7 +970,7 @@
citationId
sourceType
}
- `,Kt=h`
+ `,Ht=h`
fragment SourceStubFields on SourceStub {
id
citationId
@@ -984,7 +984,7 @@
citationId
sourceType
}
- `,Ht=h`
+ `,Xt=h`
fragment VariantTypeaheadFields on Variant {
id
name
@@ -1643,7 +1643,7 @@
}
occuranceCount
}
- `,Xt=h`
+ `,qt=h`
fragment notificationNode on Notification {
id
type
@@ -1660,7 +1660,7 @@
}
}
}
- ${re}`,ei=h`
+ ${P}`,ei=h`
fragment subscribable on Subscribable {
id
entityType
@@ -1870,7 +1870,7 @@
...assertionPopover
}
}
- ${Zt}`;let ai=(()=>{class e extends p.AE{constructor(n){super(n),this.document=si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ci=h`
+ ${Vt}`;let ai=(()=>{class e extends p.AE{constructor(n){super(n),this.document=si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ci=h`
query AssertionsBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $drugName: String, $id: Int, $summary: String, $assertionDirection: EvidenceDirection, $clinicalSignificance: EvidenceClinicalSignificance, $assertionType: EvidenceType, $variantId: Int, $evidenceId: Int, $geneName: String, $variantName: String, $sortBy: AssertionSort, $ampLevel: AmpLevel, $organizationId: Int, $userId: Int, $phenotypeId: Int, $diseaseId: Int, $drugId: Int, $status: EvidenceStatus, $cardView: Boolean!) {
assertions(
first: $first
@@ -1912,7 +1912,7 @@
}
}
}
- ${kt}`;let li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ui=h`
+ ${Zt}`;let li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ui=h`
query ClinicalTrialPopover($clinicalTrialId: Int!) {
clinicalTrials(id: $clinicalTrialId) {
edges {
@@ -1922,7 +1922,7 @@
}
}
}
- ${u}`;let di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ui}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const pi=h`
+ ${kt}`;let di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ui}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const pi=h`
query ClinicalTrialsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $nctId: String, $sortBy: ClinicalTrialSort) {
clinicalTrials(
first: $first
@@ -2008,13 +2008,13 @@
}
}
}
- ${M}`;let fi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=gi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hi=h`
+ ${u}`;let fi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=gi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hi=h`
query CommentPopover($commentId: Int!) {
comment(id: $commentId) {
...commentPopover
}
}
- ${c}`;let vi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=hi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zi=h`
+ ${M}`;let vi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=hi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zi=h`
query DiseasePopover($diseaseId: Int!) {
diseasePopover(id: $diseaseId) {
id
@@ -2058,7 +2058,7 @@
}
}
}
- ${v}`;let Ii=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ti=h`
+ ${c}`;let Ii=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ti=h`
query DrugPopover($drugId: Int!) {
drugPopover(id: $drugId) {
id
@@ -2098,7 +2098,7 @@
}
}
}
- ${w}`;let Di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ei=h`
+ ${v}`;let Di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ei=h`
query EventFeed($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode, $showFilters: Boolean!) {
events(
subject: $subject
@@ -2114,13 +2114,13 @@
...eventFeed
}
}
- ${qe}`;let Ni=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ei}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ai=h`
+ ${ae}`;let Ni=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ei}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ai=h`
query EvidencePopover($evidenceId: Int!) {
evidenceItem(id: $evidenceId) {
...evidencePopover
}
}
- ${Yt}`;let Oi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ai}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Mi=h`
+ ${et}`;let Oi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ai}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Mi=h`
query EvidenceBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $drugName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $clinicalSignificance: EvidenceClinicalSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $drugId: Int, $sourceId: Int, $clinicalTrialId: Int, $geneSymbol: String, $variantName: String, $status: EvidenceStatus, $cardView: Boolean!) {
evidenceItems(
first: $first
@@ -2166,7 +2166,7 @@
}
}
}
- ${en}`;let Li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Mi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xi=h`
+ ${Yt}`;let Li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Mi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xi=h`
query FlagList($flaggable: FlaggableInput, $flaggingUserId: Int, $resolvingUserId: Int, $state: FlagState, $sortBy: DateSort, $first: Int, $last: Int, $before: String, $after: String) {
flags(
flaggable: $flaggable
@@ -2781,7 +2781,7 @@
}
}
}
- ${M}`;let Jo=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Wo}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jo=h`
+ ${u}`;let Jo=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Wo}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jo=h`
query previewComment($commentText: String!) {
previewCommentText(commentText: $commentText) {
...previewComment
@@ -2875,7 +2875,7 @@
...SourceTypeaheadResult
}
}
- ${jt}`;let Cr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=yr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ir=h`
+ ${Kt}`;let Cr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=yr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ir=h`
query CitationExistenceCheck($sourceType: SourceSource!, $citationId: Int!) {
remoteCitation(sourceType: $sourceType, citationId: $citationId)
}
@@ -2901,13 +2901,13 @@
}
}
}
- ${Kt}`;let Ar=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Nr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Or=h`
+ ${Ht}`;let Ar=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Nr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Or=h`
query SourceTypeahead($partialCitationId: Int!, $sourceType: SourceSource!) {
sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) {
...SourceTypeaheadResult
}
}
- ${jt}`;let Mr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Or}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Lr=h`
+ ${Kt}`;let Mr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Or}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Lr=h`
query VariantTypeahead($name: String!, $geneId: Int) {
variants(name: $name, geneId: $geneId, first: 20) {
nodes {
@@ -2915,7 +2915,7 @@
}
}
}
- ${Ht}`;let xr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Lr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Fr=h`
+ ${Xt}`;let xr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Lr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Fr=h`
mutation AddVariant($name: String!, $geneId: Int!) {
addVariant(input: {name: $name, geneId: $geneId}) {
...AddVariantFields
@@ -2929,7 +2929,7 @@
}
}
}
- ${Ht}`;const Rr=h`
+ ${Xt}`;const Rr=h`
query VariantTypeTypeahead($name: String!) {
variantTypeTypeahead(queryTerm: $name) {
name
@@ -2949,57 +2949,6 @@
clientMutationId
evidenceItem {
id
- revisions {
- totalCount
- edges {
- node {
- id
- revisionsetId
- createdAt
- fieldName
- currentValue
- suggestedValue
- linkoutData {
- name
- diffValue {
- ... on ObjectFieldDiff {
- addedObjects {
- id
- displayName
- displayType
- entityType
- }
- removedObjects {
- id
- displayName
- displayType
- entityType
- }
- keptObjects {
- id
- displayName
- displayType
- entityType
- }
- }
- ... on ScalarFieldDiff {
- left
- right
- }
- }
- }
- revisor {
- id
- name
- }
- status
- }
- }
- }
- }
- results {
- id
- fieldName
}
}
}
@@ -3420,7 +3369,7 @@
${qn}
${Xn}
${Hn}
-${Xt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Hs}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qs=h`
+${qt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Hs}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qs=h`
mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) {
updateNotificationStatus(input: $input) {
notifications {
@@ -3428,7 +3377,7 @@ ${Xt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=H
}
}
}
- ${Xt}`;let ea=(()=>{class e extends p.mm{constructor(n){super(n),this.document=qs}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ta=h`
+ ${qt}`;let ea=(()=>{class e extends p.mm{constructor(n){super(n),this.document=qs}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ta=h`
mutation Unsubscribe($input: UnsubscribeInput!) {
unsubscribe(input: $input) {
unsubscribedEntities {
@@ -3548,4 +3497,4 @@ ${Xt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=H
...VariantSummaryFields
}
}
- ${ri}`;let ga=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ma}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},4024:(De,se,r)=>{r.r(se),r.d(se,{LayoutModule:()=>kt});var o=r(9808),i=r(325),t=r(5e3),D=r(9350),F=r(8929),Z=r(7625),B=r(655),q=r(4090),A=r(1721),L=r(4219),P=r(925),K=r(647),H=r(226),le=r(5113);const te=["*"],ae=["nz-sider-trigger",""];function oe(u,M){}function V(u,M){if(1&u&&(t.ynx(0),t.YNc(1,oe,0,0,"ng-template",3),t.BQk()),2&u){const c=t.oxw(),v=t.MAs(5);t.xp6(1),t.Q6J("ngTemplateOutlet",c.nzZeroTrigger||v)}}function b(u,M){}function I(u,M){if(1&u&&(t.ynx(0),t.YNc(1,b,0,0,"ng-template",3),t.BQk()),2&u){const c=t.oxw(),v=t.MAs(3);t.xp6(1),t.Q6J("ngTemplateOutlet",c.nzTrigger||v)}}function $(u,M){if(1&u&&t._UZ(0,"i",5),2&u){const c=t.oxw(2);t.Q6J("nzType",c.nzCollapsed?"right":"left")}}function ne(u,M){if(1&u&&t._UZ(0,"i",5),2&u){const c=t.oxw(2);t.Q6J("nzType",c.nzCollapsed?"left":"right")}}function X(u,M){if(1&u&&(t.YNc(0,$,1,1,"i",4),t.YNc(1,ne,1,1,"i",4)),2&u){const c=t.oxw();t.Q6J("ngIf",!c.nzReverseArrow),t.xp6(1),t.Q6J("ngIf",c.nzReverseArrow)}}function de(u,M){1&u&&t._UZ(0,"i",6)}function fe(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(c);const w=t.oxw();return w.setCollapsed(!w.nzCollapsed)}),t.qZA()}if(2&u){const c=t.oxw();t.Q6J("matchBreakPoint",c.matchBreakPoint)("nzCollapsedWidth",c.nzCollapsedWidth)("nzCollapsed",c.nzCollapsed)("nzBreakpoint",c.nzBreakpoint)("nzReverseArrow",c.nzReverseArrow)("nzTrigger",c.nzTrigger)("nzZeroTrigger",c.nzZeroTrigger)("siderWidth",c.widthSetting)}}let pe=(()=>{class u{constructor(c,v){this.elementRef=c,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(t.Qsj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),W=(()=>{class u{constructor(c,v){this.elementRef=c,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(t.Qsj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),Y=(()=>{class u{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(c,v){2&c&&(t.Udp("width",v.isNormalTrigger?v.siderWidth:null),t.ekj("ant-layout-sider-trigger",v.isNormalTrigger)("ant-layout-sider-zero-width-trigger",v.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",v.isZeroTrigger&&v.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",v.isZeroTrigger&&!v.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[t.TTD],attrs:ae,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(c,v){1&c&&(t.YNc(0,V,2,1,"ng-container",0),t.YNc(1,I,2,1,"ng-container",0),t.YNc(2,X,2,2,"ng-template",null,1,t.W1O),t.YNc(4,de,1,0,"ng-template",null,2,t.W1O)),2&c&&(t.Q6J("ngIf",v.isZeroTrigger),t.xp6(1),t.Q6J("ngIf",v.isNormalTrigger))},directives:[o.O5,o.tP,K.Ls],encapsulation:2,changeDetection:0}),u})(),g=(()=>{class u{constructor(c,v,w){this.platform=c,this.cdr=v,this.breakpointService=w,this.destroy$=new F.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new t.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,A.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(c){c!==this.nzCollapsed&&(this.nzCollapsed=c,this.nzCollapsedChange.emit(c),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(q.ow,!0).pipe((0,Z.R)(this.destroy$)).subscribe(c=>{const v=this.nzBreakpoint;v&&(0,A.ov)().subscribe(()=>{this.matchBreakPoint=!c[v],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(c){const{nzCollapsed:v,nzCollapsedWidth:w,nzWidth:re}=c;(v||w||re)&&this.updateStyleMap(),v&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(P.t4),t.Y36(t.sBO),t.Y36(q.r3))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-sider"]],contentQueries:function(c,v,w){if(1&c&&t.Suo(w,L.wO,5),2&c){let re;t.iGM(re=t.CRH())&&(v.nzMenuDirective=re.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(c,v){2&c&&(t.Udp("flex",v.flexSetting)("max-width",v.widthSetting)("min-width",v.widthSetting)("width",v.widthSetting),t.ekj("ant-layout-sider-zero-width",v.nzCollapsed&&0===v.nzCollapsedWidth)("ant-layout-sider-light","light"===v.nzTheme)("ant-layout-sider-dark","dark"===v.nzTheme)("ant-layout-sider-collapsed",v.nzCollapsed)("ant-layout-sider-has-trigger",v.nzCollapsible&&null!==v.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[t.TTD],ngContentSelectors:te,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA(),t.YNc(2,fe,1,8,"div",1)),2&c&&(t.xp6(2),t.Q6J("ngIf",v.nzCollapsible&&null!==v.nzTrigger))},directives:[Y,o.O5],encapsulation:2,changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzReverseArrow",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzCollapsible",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzCollapsed",void 0),u})(),G=(()=>{class u{constructor(c){this.directionality=c,this.dir="ltr",this.destroy$=new F.xQ}ngOnInit(){var c;this.dir=this.directionality.value,null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(H.Is,8))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-layout"]],contentQueries:function(c,v,w){if(1&c&&t.Suo(w,g,4),2&c){let re;t.iGM(re=t.CRH())&&(v.listOfNzSiderComponent=re)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(c,v){2&c&&t.ekj("ant-layout-rtl","rtl"===v.dir)("ant-layout-has-sider",v.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),O=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[H.vT,o.ez,K.PV,le.xu,P.ud]]}),u})();var Q=r(404),ye=r(1894),_e=r(712),Se=r(373),Ee=r(1047),Oe=r(4182),be=r(2845),Ve=r(4832),Pe=r(969),N=r(3753),ee=r(2654),_=r(8514),J=r(6787),U=r(2198),ge=r(2868),Ce=r(6792),Ae=r(2986),Me=r(7545),Ie=r(1159),Le=r(7429),Ne=r(8076);function Ue(u,M){if(1&u&&(t.ynx(0),t._uU(1),t.BQk()),2&u){const c=t.oxw();t.xp6(1),t.Oqu(c.nzLabel)}}const ve=[[["nz-auto-option"]]],Qe=["nz-auto-option"],xe=["*"],Re=["panel"],it=["content"];function ot(u,M){}function et(u,M){1&u&&t.YNc(0,ot,0,0,"ng-template")}function rt(u,M){1&u&&t.Hsn(0)}function h(u,M){if(1&u&&(t.TgZ(0,"nz-auto-option",8),t._uU(1),t.qZA()),2&u){const c=M.$implicit;t.Q6J("nzValue",c)("nzLabel",c&&c.label?c.label:c),t.xp6(1),t.hij(" ",c&&c.label?c.label:c," ")}}function st(u,M){if(1&u&&t.YNc(0,h,2,3,"nz-auto-option",7),2&u){const c=t.oxw(2);t.Q6J("ngForOf",c.nzDataSource)}}function at(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"div",0,1),t.NdJ("@slideMotion.done",function(w){return t.CHM(c),t.oxw().onAnimationEvent(w)}),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.YNc(4,et,1,0,void 0,4),t.qZA(),t.qZA(),t.qZA(),t.YNc(5,rt,1,0,"ng-template",null,5,t.W1O),t.YNc(7,st,1,1,"ng-template",null,6,t.W1O)}if(2&u){const c=t.MAs(6),v=t.MAs(8),w=t.oxw();t.ekj("ant-select-dropdown-hidden",!w.showPanel)("ant-select-dropdown-rtl","rtl"===w.dir),t.Q6J("ngClass",w.nzOverlayClassName)("ngStyle",w.nzOverlayStyle)("nzNoAnimation",null==w.noAnimation?null:w.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",null==w.noAnimation?null:w.noAnimation.nzNoAnimation),t.xp6(4),t.Q6J("ngTemplateOutlet",w.nzDataSource?v:c)}}let ct=(()=>{class u{constructor(){}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:Qe,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(c,v){1&c&&(t.F$t(ve),t.TgZ(0,"div",0),t.YNc(1,Ue,2,1,"ng-container",1),t.qZA(),t.Hsn(2)),2&c&&(t.xp6(1),t.Q6J("nzStringTemplateOutlet",v.nzLabel))},directives:[Pe.f],encapsulation:2,changeDetection:0}),u})();class lt{constructor(M,c=!1){this.source=M,this.isUserInput=c}}let Ge=(()=>{class u{constructor(c,v,w,re){this.ngZone=c,this.changeDetectorRef=v,this.element=w,this.nzAutocompleteOptgroupComponent=re,this.nzDisabled=!1,this.selectionChange=new t.vpe,this.mouseEntered=new t.vpe,this.active=!1,this.selected=!1,this.destroy$=new F.xQ}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,N.R)(this.element.nativeElement,"mouseenter").pipe((0,U.h)(()=>this.mouseEntered.observers.length>0),(0,Z.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),(0,N.R)(this.element.nativeElement,"mousedown").pipe((0,Z.R)(this.destroy$)).subscribe(c=>c.preventDefault())})}ngOnDestroy(){this.destroy$.next()}select(c=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),c&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){(0,A.zT)(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(c=!1){this.selectionChange.emit(new lt(this,c))}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ct,8))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(c,v){1&c&&t.NdJ("click",function(){return v.selectViaInteraction()}),2&c&&(t.uIk("aria-selected",v.selected.toString())("aria-disabled",v.nzDisabled.toString()),t.ekj("ant-select-item-option-grouped",v.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",v.selected)("ant-select-item-option-active",v.active)("ant-select-item-option-disabled",v.nzDisabled))},inputs:{nzValue:"nzValue",nzLabel:"nzLabel",nzDisabled:"nzDisabled"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:xe,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzDisabled",void 0),u})();const dt={provide:Oe.JU,useExisting:(0,t.Gpc)(()=>a),multi:!0};let a=(()=>{class u{constructor(c,v,w,re,qe){this.elementRef=c,this.overlay=v,this.viewContainerRef=w,this.nzInputGroupWhitSuffixOrPrefixDirective=re,this.document=qe,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new F.xQ,this.overlayRef=null,this.portal=null,this.previousValue=null}get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,Z.R)(this.destroy$)).subscribe(c=>{"void"===c.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(c){Promise.resolve(null).then(()=>this.setTriggerValue(c))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.elementRef.nativeElement.disabled=c,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(c){const v=c.keyCode,w=v===Ie.LH||v===Ie.JH;v===Ie.hY&&c.preventDefault(),!this.panelOpen||v!==Ie.hY&&v!==Ie.Mf?this.panelOpen&&v===Ie.K5?this.nzAutocomplete.showPanel&&(c.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&w&&this.nzAutocomplete.showPanel&&(c.stopPropagation(),c.preventDefault(),v===Ie.LH?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(c){const v=c.target,w=this.document;let re=v.value;"number"===v.type&&(re=""===re?null:parseFloat(re)),this.previousValue!==re&&(this.previousValue=re,this.onChange(re),this.canOpen()&&w.activeElement===c.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,ge.b)(()=>this.positionStrategy.reapplyLastPosition()),(0,Ce.g)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(c=>{this.setValueAndClose(c)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,U.h)(c=>!this.elementRef.nativeElement.contains(c.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function p(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}();!this.portal&&this.nzAutocomplete.template&&(this.portal=new Le.UE(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new be.X_({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const c=[new be.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new be.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(c).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const c=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==c?(this.nzAutocomplete.setActiveItem(c),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(c){const v=c.nzValue;this.setTriggerValue(c.getLabel()),this.onChange(v),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(c){const v=this.nzAutocomplete.getOption(c),w=v?v.getLabel():c;this.elementRef.nativeElement.value=null!=w?w:"",this.nzAutocomplete.nzBackfill||(this.previousValue=w)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const c=this.elementRef.nativeElement;return!c.readOnly&&!c.disabled}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(be.aV),t.Y36(t.s_b),t.Y36(Ee.ke,8),t.Y36(o.K0,8))},u.\u0275dir=t.lG2({type:u,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(c,v){1&c&&t.NdJ("focusin",function(){return v.handleFocus()})("blur",function(){return v.handleBlur()})("input",function(re){return v.handleInput(re)})("keydown",function(re){return v.handleKeydown(re)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[t._Bn([dt])]}),u})(),j=(()=>{class u{constructor(c,v,w,re){this.changeDetectorRef=c,this.ngZone=v,this.directionality=w,this.noAnimation=re,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=(qe,Yt)=>qe===Yt,this.selectionChange=new t.vpe,this.showPanel=!0,this.isOpen=!1,this.activeItem=null,this.dir="ltr",this.destroy$=new F.xQ,this.animationStateChange=new t.vpe,this.activeItemIndex=-1,this.selectionChangeSubscription=ee.w.EMPTY,this.optionMouseEnterSubscription=ee.w.EMPTY,this.dataSourceChangeSubscription=ee.w.EMPTY,this.optionSelectionChanges=(0,_.P)(()=>this.options?(0,J.T)(...this.options.map(qe=>qe.selectionChange)):this.ngZone.onStable.asObservable().pipe((0,Ae.q)(1),(0,Me.w)(()=>this.optionSelectionChanges))),this.optionMouseEnter=(0,_.P)(()=>this.options?(0,J.T)(...this.options.map(qe=>qe.mouseEntered)):this.ngZone.onStable.asObservable().pipe((0,Ae.q)(1),(0,Me.w)(()=>this.optionMouseEnter)))}get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}ngOnInit(){var c;null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}onAnimationEvent(c){this.animationStateChange.emit(c)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}ngOnDestroy(){this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null,this.destroy$.next(),this.destroy$.complete()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(c){const v=this.options.get(c);v&&!v.active?(this.activeItem=v,this.activeItemIndex=c,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.changeDetectorRef.markForCheck()}setNextItemActive(){this.setActiveItem(this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0)}setPreviousItemActive(){this.setActiveItem(this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1)}getOptionIndex(c){return this.options.reduce((v,w,re)=>-1===v?this.compareWith(c,w.nzValue)?re:-1:v,-1)}getOption(c){return this.options.find(v=>this.compareWith(c,v.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe(v=>{!v.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(c,v=!1){this.options.forEach(w=>{w!==c&&(v&&w.deselect(),w.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe((0,U.h)(c=>c.isUserInput)).subscribe(c=>{c.source.select(),c.source.setActiveStyles(),this.activeItem=c.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(c.source,!0),this.selectionChange.emit(c.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(c=>{c.setActiveStyles(),this.activeItem=c,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(c)})}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(H.Is,8),t.Y36(Ve.P,9))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-autocomplete"]],contentQueries:function(c,v,w){if(1&c&&t.Suo(w,Ge,5),2&c){let re;t.iGM(re=t.CRH())&&(v.fromContentOptions=re)}},viewQuery:function(c,v){if(1&c&&(t.Gf(t.Rgc,5),t.Gf(Re,5),t.Gf(it,5),t.Gf(Ge,5)),2&c){let w;t.iGM(w=t.CRH())&&(v.template=w.first),t.iGM(w=t.CRH())&&(v.panel=w.first),t.iGM(w=t.CRH())&&(v.content=w.first),t.iGM(w=t.CRH())&&(v.fromDataSourceOptions=w)}},inputs:{nzWidth:"nzWidth",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:xe,decls:1,vars:0,consts:[[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"ngClass","ngStyle","nzNoAnimation"],["panel",""],[2,"max-height","256px","overflow-y","auto","overflow-anchor","none"],[2,"display","flex","flex-direction","column"],[4,"ngTemplateOutlet"],["contentTemplate",""],["optionsTemplate",""],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(c,v){1&c&&(t.F$t(),t.YNc(0,at,9,10,"ng-template"))},directives:[Ge,o.mk,o.PC,Ve.P,o.tP,o.sg],encapsulation:2,data:{animation:[Ne.mF]},changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzDefaultActiveFirstOption",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzBackfill",void 0),u})(),m=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[H.vT,o.ez,be.U8,Oe.u5,Pe.T,Ve.g,Ee.o7]]}),u})();var l=r(6949);function k(u,M){1&u&&t._UZ(0,"i",5)}function ie(u,M){if(1&u){const c=t.EpF();t.ynx(0),t.TgZ(1,"a",6),t.TgZ(2,"nz-auto-option",7),t.NdJ("click",function(){t.CHM(c);const w=t.oxw();return w.searchQuery="",w.refresh()}),t.TgZ(3,"span"),t._UZ(4,"i",8),t._uU(5," \xa0 "),t._UZ(6,"span",9),t._UZ(7,"br"),t._UZ(8,"span",9),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&u){const c=M.$implicit,v=t.oxw();t.xp6(1),t.Q6J("routerLink",v.urlForResult(c)),t.xp6(1),t.Q6J("nzValue",v.urlForResult(c)),t.xp6(2),t.Q6J("nzType",v.iconNameForResult(c)),t.xp6(2),t.s9C("innerHTML",c.name,t.oJD),t.xp6(2),t.s9C("innerHTML",c.matchingText,t.oJD)}}let ze=(()=>{class u{constructor(c,v){this.gql=c,this.router=v,this.searchQuery=""}ngOnInit(){this.queryRef=this.gql.watch({query:this.searchQuery}),this.searchResults$=this.queryRef.valueChanges.pipe((0,Se.j)("data","search"))}refresh(){this.queryRef.refetch({query:this.searchQuery})}iconNameForResult(c){switch(c.resultType){case _e.rZD.EvidenceItem:return"civic:evidence";case _e.rZD.VariantGroup:return"civic:variantgroup";default:return`civic:${c.resultType.toLowerCase()}`}}urlForResult(c){let v;switch(c.resultType){case _e.rZD.VariantGroup:v="variant-groups";break;case _e.rZD.EvidenceItem:v="evidence";break;default:v=`${c.resultType.toLowerCase()}s`}return`/${v}/${c.id}/summary`}quicksearchSelected(c){let v=c.target.value;this.searchQuery="",this.router.navigate([v])}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(_e.ghc),t.Y36(i.F0))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-quicksearch"]],decls:8,vars:6,consts:[["nzSize","large",3,"nzSuffix"],["placeholder","Quicksearch","nz-input","",3,"ngModel","nzAutocomplete","ngModelChange","keyup.enter"],["suffixIcon",""],["auto",""],[4,"ngFor","ngForOf"],["nz-icon","","nzType","search"],[3,"routerLink"],[3,"nzValue","click"],["nz-icon","",3,"nzType"],[3,"innerHTML"]],template:function(c,v){if(1&c&&(t.TgZ(0,"nz-input-group",0),t.TgZ(1,"input",1),t.NdJ("ngModelChange",function(re){return v.searchQuery=re})("ngModelChange",function(){return v.refresh()})("keyup.enter",function(re){return v.quicksearchSelected(re)}),t.qZA(),t.qZA(),t.YNc(2,k,1,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-autocomplete",null,3),t.YNc(6,ie,9,5,"ng-container",4),t.ALo(7,"ngrxPush"),t.qZA()),2&c){const w=t.MAs(3),re=t.MAs(5);t.Q6J("nzSuffix",w),t.xp6(1),t.Q6J("ngModel",v.searchQuery)("nzAutocomplete",re),t.xp6(5),t.Q6J("ngForOf",t.lcZ(7,4,v.searchResults$))}},directives:[Ee.gB,Ee.ke,Ee.Zp,Oe.Fj,a,Oe.JJ,Oe.On,K.Ls,j,o.sg,i.yS,Ge],pipes:[l.fM],styles:[""]}),u})();var Ze=r(1912),Te=r(4850),$e=r(1059),we=r(8144),Ye=r(6042),je=r(2643),He=r(2683),We=r(3677),Je=r(4401),Xe=r(7881),tt=r(3640),nt=r(8785);function f(u,M){if(1&u&&(t.TgZ(0,"button",23),t._uU(1," Add "),t._UZ(2,"i",24),t.qZA()),2&u){t.oxw(2);const c=t.MAs(14);t.Q6J("nzDropdownMenu",c)}}const E=function(){return{backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}};function C(u,M){if(1&u&&(t.TgZ(0,"nz-badge",25),t.TgZ(1,"button",26),t._UZ(2,"i",27),t.qZA(),t.qZA()),2&u){const c=t.oxw().ngrxLet,v=t.oxw().ngIf;t.Q6J("nzCount",c)("nzOverflowCount",999)("nzStyle",t.DdM(4,E)),t.xp6(1),t.MGl("routerLink","/users/",v.id,"/notifications")}}const R=function(u){return{"update-coi":u}};function ce(u,M){if(1&u&&t._UZ(0,"cvc-user-avatar",33),2&u){const c=t.oxw(3).ngIf;t.Q6J("user",c)("size",22)("ngClass",t.VKq(3,R,c.invalidCoi))}}function he(u,M){if(1&u&&(t.TgZ(0,"div",34),t._uU(1),t.qZA()),2&u){const c=t.oxw(3).ngIf;t.xp6(1),t.Oqu(c.username)}}function pt(u,M){1&u&&t._UZ(0,"i",24)}function Jt(u,M){if(1&u&&(t.TgZ(0,"button",28),t.TgZ(1,"nz-space",29),t.YNc(2,ce,1,5,"cvc-user-avatar",30),t.YNc(3,he,2,1,"div",31),t.YNc(4,pt,1,0,"i",32),t.qZA(),t.qZA()),2&u){t.oxw(2);const c=t.MAs(3);t.Q6J("nzDropdownMenu",c)}}function mt(u,M){1&u&&(t.TgZ(0,"nz-space",19),t.YNc(1,f,3,1,"button",20),t.YNc(2,C,3,5,"nz-badge",21),t.YNc(3,Jt,5,1,"button",22),t.qZA())}function gt(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"li",14),t.TgZ(1,"button",35),t.NdJ("click",function(){return t.CHM(c),t.oxw(2).coiUpdateModalVisible=!0}),t._UZ(2,"i",36),t._uU(3," Please update COI statement "),t.qZA(),t.qZA()}}function ft(u,M){1&u&&t._UZ(0,"li",11)}function ht(u,M){1&u&&(t.TgZ(0,"li",37),t.TgZ(1,"a",38),t._uU(2," Admin Console "),t.qZA(),t.qZA())}const vt=function(u){return["/users",u]};function zt(u,M){if(1&u){const c=t.EpF();t.ynx(0),t.YNc(1,mt,4,0,"nz-space",4),t.TgZ(2,"nz-dropdown-menu",null,5),t.TgZ(4,"ul",6),t.YNc(5,gt,4,0,"li",7),t.YNc(6,ft,1,0,"li",8),t.TgZ(7,"li",9),t._uU(8," Your Profile "),t.qZA(),t.YNc(9,ht,3,0,"li",10),t._UZ(10,"li",11),t.TgZ(11,"li",12),t.NdJ("click",function(){return t.CHM(c),t.oxw().signOut()}),t._uU(12,"Sign Out"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(13,"nz-dropdown-menu",null,13),t.TgZ(15,"ul",6),t.TgZ(16,"li",14),t.TgZ(17,"a",15),t._uU(18," Evidence Item "),t.qZA(),t.qZA(),t.TgZ(19,"li",14),t.TgZ(20,"a",16),t._uU(21," Assertion "),t.qZA(),t.qZA(),t.TgZ(22,"li",14),t.TgZ(23,"a",17),t._uU(24," Source Suggestion "),t.qZA(),t.qZA(),t.TgZ(25,"li",14),t.TgZ(26,"a",18),t._uU(27," Variant Group "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&u){const c=M.ngIf,v=t.oxw();t.xp6(1),t.Q6J("ngrxLet",v.unreadCount$),t.xp6(4),t.Q6J("ngIf",c.invalidCoi),t.xp6(1),t.Q6J("ngIf",c.invalidCoi),t.xp6(1),t.Q6J("routerLink",t.VKq(5,vt,c.id)),t.xp6(2),t.Q6J("ngIf",c.isAdmin)}}function yt(u,M){1&u&&(t.TgZ(0,"span"),t._uU(1,"Update your Conflict of Interest Statement"),t.qZA())}function Ct(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"cvc-user-coi-form",39),t.NdJ("coiUpdatedEvent",function(){return t.CHM(c),t.oxw().coiUpdated()}),t.qZA()}}let It=(()=>{class u{constructor(c,v){this.queryService=c,this.unreadCountGql=v,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.unreadCount$=this.unreadCountGql.watch(void 0).valueChanges.pipe((0,Te.U)(({data:w})=>w.notifications.unreadCount),(0,$e.O)(0))}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(D.a),t.Y36(_e.Kmw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-viewer-button"]],decls:7,vars:7,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["userMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",4,"ngIf"],["nz-menu-divider","",4,"ngIf"],["nz-menu-item","",3,"routerLink"],["nz-menu-item","","href","/admin",4,"ngIf"],["nz-menu-divider",""],["nz-menu-item","",3,"click"],["addMenu","nzDropdownMenu"],["nz-menu-item",""],["routerLink","/evidence/add/submit"],["routerLink","/assertions/add/submit"],["routerLink","/sources/add"],["routerLink","/variant-groups/add/submit"],["nzDirection","horizontal","nzSize","middle"],["class","add-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],["nzShowZero","",3,"nzCount","nzOverflowCount","nzStyle",4,"nzSpaceItem"],["class","viewer-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"add-btn",3,"nzDropdownMenu"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nzShowZero","",3,"nzCount","nzOverflowCount","nzStyle"],["nz-button","","nzSize","large","nzShape","circle","nzType","link",1,"notification-btn",3,"routerLink"],["nz-icon","","nzType","bell","nzTheme","outline"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"viewer-btn",3,"nzDropdownMenu"],["nzDirection","horizontal","nzSize","small"],["shape","circle",3,"user","size","ngClass",4,"nzSpaceItem"],["class","viewer-name",4,"nzSpaceItem"],["nz-icon","","nzType","caret-down","nzTheme","outline",4,"nzSpaceItem"],["shape","circle",3,"user","size","ngClass"],[1,"viewer-name"],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click"],["nz-icon","","nzType","exclamation-circle"],["nz-menu-item","","href","/admin"],["href","/admin"],[3,"coiUpdatedEvent"]],template:function(c,v){if(1&c&&(t.YNc(0,zt,28,7,"ng-container",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-modal",1),t.NdJ("nzVisibleChange",function(re){return v.coiUpdateModalVisible=re})("nzOnCancel",function(){return v.handleCoiModalCancel()}),t.YNc(3,yt,2,0,"ng-template",null,2,t.W1O),t.YNc(5,Ct,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&c){const w=t.MAs(4),re=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,5,v.viewer$)),t.xp6(2),t.Q6J("nzVisible",v.coiUpdateModalVisible)("nzContent",re)("nzTitle",w)("nzFooter",null)}},directives:[o.O5,l.eJ,we.NU,we.$1,Ye.ix,je.dQ,He.w,We.wA,We.cm,K.Ls,Je.x7,i.rH,Xe.L,o.mk,We.RR,L.wO,L.r9,L.YV,i.yS,tt.du,nt.t],pipes:[l.fM],styles:["[_nghost-%COMP%]{display:inline-block}.topMenuIcon[_ngcontent-%COMP%]:hover{cursor:pointer}.topMenuIcon[_ngcontent-%COMP%]{font-size:16px}.topMenuIcon[_ngcontent-%COMP%] .topBarBadge[_ngcontent-%COMP%]{margin-right:-10px;margin-top:-16px}.topMenuIcon[_ngcontent-%COMP%] .topMenuSecondary[_ngcontent-%COMP%]{font-size:10px;margin-left:2px}.add-btn[_ngcontent-%COMP%]{margin-right:0;background-color:#001529;border:none;color:#ccc}.notification-btn[_ngcontent-%COMP%]{background-color:#001529;border:1px solid #096dd9}.viewer-btn[_ngcontent-%COMP%]{background-color:#0050b3;border:none;color:#ccc;padding-left:5px;padding-right:10px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%]{position:relative;top:-1px;left:1px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%] .ant-avatar>img{border-width:1.5px;border-style:solid;border-color:#096dd9;border-radius:22px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar.update-coi[_ngcontent-%COMP%] .ant-avatar>img{border-color:#f5222d}"]}),u})();function Tt(u,M){1&u&&t._UZ(0,"img",58)}function _t(u,M){1&u&&t._UZ(0,"img",59)}function St(u,M){1&u&&t._UZ(0,"cvc-login-button")}function Dt(u,M){1&u&&t._UZ(0,"cvc-viewer-button")}const Gt=function(u){return{"is-collapsed":u}},Et=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class u{constructor(c){this.viewerService=c,this.isCollapsed=!1}ngOnInit(){this.data$=this.viewerService.data$,this.viewer$=this.viewerService.viewer$,this.signedIn$=this.viewerService.signedIn$,this.signedOut$=this.viewerService.signedOut$,this.canCurate$=this.viewerService.canCurate$,this.canModerate$=this.viewerService.canModerate$}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(D.a))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-layout"]],decls:124,vars:46,consts:[[1,"app-layout"],["nzCollapsible","","nzBreakpoint","md",1,"app-sider",3,"nzWidth","nzCollapsedWidth","nzCollapsed","nzTrigger","nzCollapsedChange"],["routerLink","/"],[1,"sidebar-logo",3,"ngClass"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["nz-menu","","nzTheme","dark","nzMode","inline",1,"sidebar-menu",3,"ngClass","nzInlineCollapsed"],["nz-menu-group","",3,"nzTitle"],["nz-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzSelected","","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-assertion"],["routerLink","/assertions"],["nz-icon","","nzType","civic-evidence"],["routerLink","/evidence"],["nz-icon","","nzType","civic-gene"],["routerLink","/genes"],["nz-icon","","nzType","civic-variant"],["routerLink","/variants"],["nz-icon","","nzType","civic-variantgroup"],["routerLink","/variant-groups"],["nz-icon","","nzType","audit"],["routerLink","/clinical-trials"],["nz-icon","","nzType","civic-disease"],["routerLink","/diseases"],["nz-icon","","nzType","civic-intervention"],["routerLink","/drugs"],["nz-icon","","nzType","civic-phenotype"],["routerLink","/phenotypes"],["nz-icon","","nzType","civic-source"],["routerLink","/sources"],["nz-icon","","nzType","civic-varianttype"],["routerLink","/variant-types"],["nz-icon","","nzType","civic-event"],["routerLink","/curation/activity"],["nz-icon","","nzType","file-add"],["routerLink","/curation/queues"],["nz-icon","","nzType","civic-curator"],["routerLink","/users","id","main-users"],["nz-icon","","nzType","civic-organization"],["routerLink","/organizations","id","main-organization"],["nz-icon","","nzType","download"],["routerLink","/releases","id","releases"],["nz-tooltip","","nzTooltipPlacement","rightTop","nzTooltipTitle","By marking the work with a CC0 public domain dedication, the creator is giving up their copyright and allowing reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",1,"cc-notice",3,"ngClass"],["src","assets/images/CC0-notice-glyph.svg","alt","CC0 1.0 Universal",1,"cc-glyph"],["src","assets/images/CC0-notice-txt.svg","alt","This work has been marked as dedicated to the public domain.",1,"cc-txt"],[1,"right-layout",3,"ngClass"],["nz-row",""],["nz-col","","nzFlex","40px"],[1,"header-trigger",3,"click"],["nz-icon","",1,"trigger",3,"nzType"],["nz-col","","nzFlex","300px","id","header-search"],["nz-col","","nzFlex","300px","id","header-menu"],["nz-menu","","nzMode","horizontal","nzTheme","dark"],["nz-menu-item","","nzSelected","","nzMatchRouter",""],["routerLink","/welcome"],["routerLink","/pages/about"],["routerLink","/pages/help"],["nz-col","","nzFlex","auto","id","header-viewer"],[4,"ngIf"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"]],template:function(c,v){1&c&&(t.TgZ(0,"nz-layout",0),t.TgZ(1,"nz-sider",1),t.NdJ("nzCollapsedChange",function(re){return v.isCollapsed=re}),t.TgZ(2,"a",2),t.TgZ(3,"div",3),t.YNc(4,Tt,1,0,"img",4),t.YNc(5,_t,1,0,"img",5),t.qZA(),t.qZA(),t.TgZ(6,"ul",6),t.TgZ(7,"li",7),t.TgZ(8,"ul"),t.TgZ(9,"li",8),t._UZ(10,"i",9),t.TgZ(11,"span"),t.TgZ(12,"a",10),t._uU(13,"Assertions"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"li",8),t._UZ(15,"i",11),t.TgZ(16,"span"),t.TgZ(17,"a",12),t._uU(18,"Evidence"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"li",8),t._UZ(20,"i",13),t.TgZ(21,"span"),t.TgZ(22,"a",14),t._uU(23,"Genes"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"li",8),t._UZ(25,"i",15),t.TgZ(26,"span"),t.TgZ(27,"a",16),t._uU(28,"Variants"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"li",8),t._UZ(30,"i",17),t.TgZ(31,"span"),t.TgZ(32,"a",18),t._uU(33,"Variant Groups"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(34,"li",8),t._UZ(35,"i",19),t.TgZ(36,"span"),t.TgZ(37,"a",20),t._uU(38,"Clinical Trials"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(39,"li",8),t._UZ(40,"i",21),t.TgZ(41,"span"),t.TgZ(42,"a",22),t._uU(43,"Diseases"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(44,"li",8),t._UZ(45,"i",23),t.TgZ(46,"span"),t.TgZ(47,"a",24),t._uU(48,"Drugs"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(49,"li",8),t._UZ(50,"i",25),t.TgZ(51,"span"),t.TgZ(52,"a",26),t._uU(53,"Phenotypes"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(54,"li",8),t._UZ(55,"i",27),t.TgZ(56,"span"),t.TgZ(57,"a",28),t._uU(58,"Sources"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(59,"li",8),t._UZ(60,"i",29),t.TgZ(61,"span"),t.TgZ(62,"a",30),t._uU(63,"Variant Types"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(64,"li",7),t.TgZ(65,"ul"),t.TgZ(66,"li",8),t._UZ(67,"i",31),t.TgZ(68,"span"),t.TgZ(69,"a",32),t._uU(70," Activity "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(71,"li",8),t._UZ(72,"i",33),t.TgZ(73,"span"),t.TgZ(74,"a",34),t._uU(75,"Queues"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(76,"li",7),t.TgZ(77,"ul"),t.TgZ(78,"li",8),t._UZ(79,"i",35),t.TgZ(80,"span"),t.TgZ(81,"a",36),t._uU(82,"Contributors"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(83,"li",8),t._UZ(84,"i",37),t.TgZ(85,"span"),t.TgZ(86,"a",38),t._uU(87,"Organizations"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(88,"li",7),t.TgZ(89,"ul"),t.TgZ(90,"li",8),t._UZ(91,"i",39),t.TgZ(92,"span"),t.TgZ(93,"a",40),t._uU(94,"Data Releases"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(95,"div",41),t._UZ(96,"img",42),t._UZ(97,"img",43),t.qZA(),t.qZA(),t.TgZ(98,"nz-layout",44),t.TgZ(99,"nz-header"),t.TgZ(100,"div",45),t.TgZ(101,"div",46),t.TgZ(102,"span",47),t.NdJ("click",function(){return v.isCollapsed=!v.isCollapsed}),t._UZ(103,"i",48),t.qZA(),t.qZA(),t.TgZ(104,"div",49),t._UZ(105,"cvc-quicksearch"),t.qZA(),t.TgZ(106,"div",50),t.TgZ(107,"ul",51),t.TgZ(108,"li",52),t.TgZ(109,"a",53),t._uU(110,"Home"),t.qZA(),t.qZA(),t.TgZ(111,"li",52),t.TgZ(112,"a",54),t._uU(113,"About CIViC"),t.qZA(),t.qZA(),t.TgZ(114,"li",52),t.TgZ(115,"a",55),t._uU(116,"Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(117,"div",56),t.YNc(118,St,1,0,"cvc-login-button",57),t.ALo(119,"async"),t.YNc(120,Dt,1,0,"cvc-viewer-button",57),t.ALo(121,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(122,"nz-content"),t._UZ(123,"router-outlet"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.xp6(1),t.Q6J("nzWidth",170)("nzCollapsedWidth",80)("nzCollapsed",v.isCollapsed)("nzTrigger",null),t.xp6(2),t.Q6J("ngClass",t.VKq(38,Gt,v.isCollapsed)),t.xp6(1),t.Q6J("ngIf",!v.isCollapsed),t.xp6(1),t.Q6J("ngIf",v.isCollapsed),t.xp6(1),t.Q6J("ngClass",t.VKq(40,Gt,v.isCollapsed))("nzInlineCollapsed",v.isCollapsed),t.xp6(1),t.Q6J("nzTitle",v.isCollapsed?"KNOW":"KNOWLEDGEBASE"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Assertions":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Evidence":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Genes":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variants":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variant Groups":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Clinical Trials":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Diseases":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Drugs":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Phenotypes":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Sources":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variant Types":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"CURATE":"CURATION"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Activity":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Pending Queues":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"COMM":"COMMUNITY"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Users":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Organizations":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"RES":"RESOURCES"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Data Releases":""),t.xp6(5),t.Q6J("ngClass",t.VKq(42,Gt,v.isCollapsed)),t.xp6(3),t.Q6J("ngClass",t.VKq(44,Gt,v.isCollapsed)),t.xp6(5),t.Q6J("nzType",v.isCollapsed?"menu-unfold":"menu-fold"),t.xp6(15),t.Q6J("ngIf",t.lcZ(119,34,v.signedOut$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(121,36,v.signedIn$)))},directives:[G,g,i.yS,o.mk,o.O5,L.wO,L.uA,L.r9,Q.SY,K.Ls,W,ye.SK,ye.t3,ze,Ze.s,It,pe,i.lC],pipes:[o.Ov],styles:["[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-layout[_ngcontent-%COMP%]{min-height:100vh}nz-sider[_ngcontent-%COMP%]{width:170px;overflow:auto;height:100%;position:fixed;left:0}.right-layout[_ngcontent-%COMP%]{margin-left:170px;width:100%;position:relative;transition:all .2s,padding 0s;background-color:#001529}.right-layout.is-collapsed[_ngcontent-%COMP%]{margin-left:80px}.sidebar-menu[_ngcontent-%COMP%]{margin-top:-20px}.sidebar-menu[_ngcontent-%COMP%] .ant-menu-item-group-title{padding-bottom:0}.sidebar-menu.is-collapsed[_ngcontent-%COMP%]{margin-top:-8px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-item-group-title{text-align:center}.cc-notice[_ngcontent-%COMP%]{margin-top:5em;text-align:center;width:170px}.cc-notice[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:56px}.cc-notice[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{width:76px}.cc-notice.is-collapsed[_ngcontent-%COMP%]{width:80px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:35px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{display:none}.sidebar-logo[_ngcontent-%COMP%]{height:90px}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:133px;height:auto;margin:12px 16px;transition:all .2s}.sidebar-logo.is-collapsed[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:auto;margin:12px 20px;transition:all .2s}.ant-layout-header[_ngcontent-%COMP%]{height:64px;line-height:64px;padding:0;position:fixed;width:calc(100% - 170px);z-index:10;color:#d6e4ff}.header-trigger[_ngcontent-%COMP%]{height:64px;cursor:pointer;color:#d6e4ff;padding:1em 1em 1em 0}#header-menu[_ngcontent-%COMP%]{text-align:right;height:64px}#header-search[_ngcontent-%COMP%]{height:64px;padding-right:16px}#header-viewer[_ngcontent-%COMP%]{text-align:right;padding-right:1em}.header-quicksearch[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-user[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#d6e4ff}nz-content[_ngcontent-%COMP%]{margin-top:64px;overflow:initial;position:relative;z-index:1;background-color:#273340;border-top:1px solid #3e5166;border-left:1px solid #3e5166;padding:12px;border-top-left-radius:16px}"]}),u})(),children:[{path:"assertions",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(1679),r.e(3883),r.e(3021),r.e(8776),r.e(4376),r.e(3730),r.e(8592),r.e(9020)]).then(r.bind(r,136)).then(u=>u.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"clinical-trials",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(305),r.e(7717),r.e(6519)]).then(r.bind(r,1838)).then(u=>u.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(2395)]).then(r.bind(r,233)).then(u=>u.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"drugs",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(8422)]).then(r.bind(r,1592)).then(u=>u.DrugsModule),data:{breadcrumb:"Drugs"}},{path:"evidence",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(305),r.e(1457)]).then(r.bind(r,7727)).then(u=>u.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(681)]).then(r.bind(r,681)).then(u=>u.GenesModule),data:{breadcrumb:"Genes"}},{path:"organizations",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(4292),r.e(3883),r.e(392),r.e(9484),r.e(376),r.e(3074),r.e(8592),r.e(3073)]).then(r.bind(r,3073)).then(u=>u.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(4721)]).then(r.bind(r,1076)).then(u=>u.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(1679),r.e(2738),r.e(55),r.e(3021),r.e(8776),r.e(2043),r.e(9484),r.e(4376),r.e(7717),r.e(8592),r.e(3648)]).then(r.bind(r,359)).then(u=>u.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(3883),r.e(9484),r.e(4276)]).then(r.bind(r,7563)).then(u=>u.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(4292),r.e(3883),r.e(9484),r.e(376),r.e(3074),r.e(3218)]).then(r.bind(r,3218)).then(u=>u.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(9890),r.e(79)]).then(r.bind(r,79)).then(u=>u.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(1750),r.e(4658)]).then(r.bind(r,9221)).then(u=>u.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(1750),r.e(4729)]).then(r.bind(r,1875)).then(u=>u.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([r.e(6256),r.e(3501),r.e(5193),r.e(9001),r.e(2826),r.e(2738),r.e(4292),r.e(376),r.e(6303)]).then(r.bind(r,6528)).then(u=>u.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([r.e(7064),r.e(9890),r.e(4579)]).then(r.bind(r,4579)).then(u=>u.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>Promise.all([r.e(7064),r.e(4038)]).then(r.bind(r,4038)).then(u=>u.PagesModule),data:{breadcrumb:"Pages"}}]}];let Nt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[i.Bz.forChild(Et)],i.Bz]}),u})();var At=r(3618),Ot=r(5109),Mt=r(4546);let Lt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,Oe.u5,i.Bz,l.WG,Ee.o7,Mt.U5,K.PV,m]]}),u})();var xt=r(1844),Ft=r(5473),bt=r(330);let Zt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,l.WG,We.b1,i.Bz,Ye.sL,we.zf,K.PV,Je.mS,Q.cg,tt.Qp,Ft.H,bt.e]]}),u})(),kt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,Nt,K.PV,ye.Jb,O,L.ip,Q.cg,At.ZJ,Ot.s,xt.B,Zt,Lt]]}),u})()},6792:(De,se,r)=>{r.d(se,{g:()=>F});var o=r(353),t=r(3489),D=r(9312);function F(A,L=o.P){const K=function i(A){return A instanceof Date&&!isNaN(+A)}(A)?+A-L.now():Math.abs(A);return H=>H.lift(new Z(K,L))}class Z{constructor(L,P){this.delay=L,this.scheduler=P}call(L,P){return P.subscribe(new B(L,this.delay,this.scheduler))}}class B extends t.L{constructor(L,P,K){super(L),this.delay=P,this.scheduler=K,this.queue=[],this.active=!1,this.errored=!1}static dispatch(L){const P=L.source,K=P.queue,H=L.scheduler,le=L.destination;for(;K.length>0&&K[0].time-H.now()<=0;)K.shift().notification.observe(le);if(K.length>0){const te=Math.max(0,K[0].time-H.now());this.schedule(L,te)}else this.unsubscribe(),P.active=!1}_schedule(L){this.active=!0,this.destination.add(L.schedule(B.dispatch,this.delay,{source:this,destination:this.destination,scheduler:L}))}scheduleNotification(L){if(!0===this.errored)return;const P=this.scheduler,K=new q(P.now()+this.delay,L);this.queue.push(K),!1===this.active&&this._schedule(P)}_next(L){this.scheduleNotification(D.P.createNext(L))}_error(L){this.errored=!0,this.queue=[],this.destination.error(L),this.unsubscribe()}_complete(){this.scheduleNotification(D.P.createComplete()),this.unsubscribe()}}class q{constructor(L,P){this.time=L,this.notification=P}}},373:(De,se,r)=>{r.d(se,{j:()=>i});var o=r(4850);function i(...D){const F=D.length;if(0===F)throw new Error("list of properties cannot be empty.");return Z=>(0,o.U)(function t(D,F){return B=>{let q=B;for(let A=0;A{r.d(se,{Dz:()=>te,Rt:()=>oe});var o=r(655),i=r(5e3),t=r(9439),D=r(1721),F=r(925),Z=r(9808),B=r(647),q=r(226);const A=["textEl"];function L(V,b){if(1&V&&i._UZ(0,"i",3),2&V){const I=i.oxw();i.Q6J("nzType",I.nzIcon)}}function P(V,b){if(1&V){const I=i.EpF();i.TgZ(0,"img",4),i.NdJ("error",function(ne){return i.CHM(I),i.oxw().imgError(ne)}),i.qZA()}if(2&V){const I=i.oxw();i.Q6J("src",I.nzSrc,i.LSH),i.uIk("srcset",I.nzSrcSet,i.LSH)("alt",I.nzAlt)}}function K(V,b){if(1&V&&(i.TgZ(0,"span",5,6),i._uU(2),i.qZA()),2&V){const I=i.oxw();i.Q6J("ngStyle",I.textStyles),i.xp6(2),i.Oqu(I.nzText)}}let te=(()=>{class V{constructor(I,$,ne,X){this.nzConfigService=I,this.elementRef=$,this.cdr=ne,this.platform=X,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new i.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(I){this.nzError.emit(I),I.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const I=this.textEl.nativeElement.offsetWidth,$=this.el.getBoundingClientRect().width,ne=2*this.nzGap<$?2*this.nzGap:8;this.textStyles={transform:`scale(${$-ne{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return V.\u0275fac=function(I){return new(I||V)(i.Y36(t.jY),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(F.t4))},V.\u0275cmp=i.Xpm({type:V,selectors:[["nz-avatar"]],viewQuery:function(I,$){if(1&I&&i.Gf(A,5),2&I){let ne;i.iGM(ne=i.CRH())&&($.textEl=ne.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(I,$){2&I&&(i.Udp("width",$.customSize)("height",$.customSize)("line-height",$.customSize)("font-size",$.hasIcon&&$.customSize?$.nzSize/2:null,"px"),i.ekj("ant-avatar-lg","large"===$.nzSize)("ant-avatar-sm","small"===$.nzSize)("ant-avatar-square","square"===$.nzShape)("ant-avatar-circle","circle"===$.nzShape)("ant-avatar-icon",$.nzIcon)("ant-avatar-image",$.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[i.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(I,$){1&I&&(i.YNc(0,L,1,1,"i",0),i.YNc(1,P,1,3,"img",1),i.YNc(2,K,3,2,"span",2)),2&I&&(i.Q6J("ngIf",$.nzIcon&&$.hasIcon),i.xp6(1),i.Q6J("ngIf",$.nzSrc&&$.hasSrc),i.xp6(1),i.Q6J("ngIf",$.nzText&&$.hasText))},directives:[Z.O5,B.Ls,Z.PC],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,t.oS)()],V.prototype,"nzShape",void 0),(0,o.gn)([(0,t.oS)()],V.prototype,"nzSize",void 0),(0,o.gn)([(0,t.oS)(),(0,D.Rn)()],V.prototype,"nzGap",void 0),V})(),oe=(()=>{class V{}return V.\u0275fac=function(I){return new(I||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[[q.vT,Z.ez,B.PV,F.ud]]}),V})()},4401:(De,se,r)=>{r.d(se,{x7:()=>ue,mS:()=>Y,F9:()=>W});var o=r(655),i=r(5e3),t=r(8929),D=r(7625),F=r(8076),Z=r(9439),B=r(1721),q=r(226),A=r(4832),L=r(9808),P=r(969),K=r(7144);function H(g,G){if(1&g&&(i.TgZ(0,"p",6),i._uU(1),i.qZA()),2&g){const O=G.$implicit,Q=i.oxw(2).index,ye=i.oxw(2);i.ekj("current",O===ye.countArray[Q]),i.xp6(1),i.hij(" ",O," ")}}function le(g,G){if(1&g&&(i.ynx(0),i.YNc(1,H,2,3,"p",5),i.BQk()),2&g){const O=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",O.countSingleArray)}}function te(g,G){if(1&g&&(i.TgZ(0,"span",3),i.YNc(1,le,2,1,"ng-container",4),i.qZA()),2&g){const O=G.index,Q=i.oxw(2);i.Udp("transform","translateY("+100*-Q.countArray[O]+"%)"),i.Q6J("nzNoAnimation",Q.noAnimation),i.xp6(1),i.Q6J("ngIf",!Q.nzDot&&void 0!==Q.countArray[O])}}function ae(g,G){if(1&g&&(i.ynx(0),i.YNc(1,te,2,4,"span",2),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Q6J("ngForOf",O.maxNumberArray)}}function oe(g,G){if(1&g&&i._uU(0),2&g){const O=i.oxw();i.hij("",O.nzOverflowCount,"+")}}function V(g,G){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const O=i.oxw(2);i.xp6(1),i.Oqu(O.nzText)}}function b(g,G){if(1&g&&(i.ynx(0),i._UZ(1,"span",2),i.TgZ(2,"span",3),i.YNc(3,V,2,1,"ng-container",1),i.qZA(),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Gre("ant-badge-status-dot ant-badge-status-",O.nzStatus||O.presetColor,""),i.Udp("background",!O.presetColor&&O.nzColor),i.Q6J("ngStyle",O.nzStyle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",O.nzText)}}function I(g,G){if(1&g&&i._UZ(0,"nz-badge-sup",5),2&g){const O=i.oxw(2);i.Q6J("nzOffset",O.nzOffset)("nzTitle",O.nzTitle)("nzStyle",O.nzStyle)("nzDot",O.nzDot)("nzOverflowCount",O.nzOverflowCount)("disableAnimation",!!(O.nzStandalone||O.nzStatus||O.nzColor||null!=O.noAnimation&&O.noAnimation.nzNoAnimation))("nzCount",O.nzCount)("noAnimation",!(null==O.noAnimation||!O.noAnimation.nzNoAnimation))}}function $(g,G){if(1&g&&(i.ynx(0),i.YNc(1,I,1,8,"nz-badge-sup",4),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Q6J("ngIf",O.showSup)}}const ne=["*"];function X(g,G){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Oqu(O.nzText)}}const de=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let fe=(()=>{class g{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9]}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(O){const{nzOverflowCount:Q,nzCount:ye}=O;ye&&"number"==typeof ye.currentValue&&(this.count=Math.max(0,ye.currentValue),this.countArray=this.count.toString().split("").map(_e=>+_e)),Q&&this.generateMaxNumberArray()}}return g.\u0275fac=function(O){return new(O||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:15,hostBindings:function(O,Q){2&O&&(i.uIk("title",null===Q.nzTitle?"":Q.nzTitle||Q.nzCount),i.d8E("@.disabled",Q.disableAnimation)("@zoomBadgeMotion",void 0),i.Akn(Q.nzStyle),i.Udp("right",Q.nzOffset&&Q.nzOffset[0]?-Q.nzOffset[0]:null,"px")("margin-top",Q.nzOffset&&Q.nzOffset[1]?Q.nzOffset[1]:null,"px"),i.ekj("ant-badge-count",!Q.nzDot)("ant-badge-dot",Q.nzDot)("ant-badge-multiple-words",Q.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation"},exportAs:["nzBadgeSup"],features:[i.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["overflowTemplate",""],["class","ant-scroll-number-only",3,"nzNoAnimation","transform",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[4,"ngIf"],["class","ant-scroll-number-only-unit",3,"current",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only-unit"]],template:function(O,Q){if(1&O&&(i.YNc(0,ae,2,1,"ng-container",0),i.YNc(1,oe,1,1,"ng-template",null,1,i.W1O)),2&O){const ye=i.MAs(2);i.Q6J("ngIf",Q.count<=Q.nzOverflowCount)("ngIfElse",ye)}},directives:[L.O5,L.sg,A.P],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),g})(),ue=(()=>{class g{constructor(O,Q,ye,_e,Se,Ee){this.nzConfigService=O,this.renderer=Q,this.cdr=ye,this.elementRef=_e,this.directionality=Se,this.noAnimation=Ee,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new t.xQ,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null}ngOnInit(){var O;null===(O=this.directionality.change)||void 0===O||O.pipe((0,D.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(O){const{nzColor:Q,nzShowDot:ye,nzDot:_e,nzCount:Se,nzShowZero:Ee}=O;Q&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null),(ye||_e||Se||Ee)&&(this.showSup=this.nzShowDot&&this.nzDot||this.nzCount>0||this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return"rtl"===this.dir}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(O){return new(O||g)(i.Y36(Z.jY),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(q.Is,8),i.Y36(A.P,9))},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(O,Q){2&O&&i.ekj("ant-badge-status",Q.nzStatus)("ant-badge-not-a-wrapper",!!(Q.nzStandalone||Q.nzStatus||Q.nzColor))},inputs:{nzShowZero:"nzShowZero",nzShowDot:"nzShowDot",nzStandalone:"nzStandalone",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset"},exportAs:["nzBadge"],features:[i.TTD],ngContentSelectors:ne,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(O,Q){1&O&&(i.F$t(),i.YNc(0,b,4,7,"ng-container",0),i.Hsn(1),i.YNc(2,$,2,1,"ng-container",1)),2&O&&(i.Q6J("ngIf",Q.nzStatus||Q.nzColor),i.xp6(2),i.Q6J("nzStringTemplateOutlet",Q.nzCount))},directives:[fe,L.O5,L.PC,P.f],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),(0,o.gn)([(0,B.yF)()],g.prototype,"nzShowZero",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzShowDot",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzStandalone",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzDot",void 0),(0,o.gn)([(0,Z.oS)()],g.prototype,"nzOverflowCount",void 0),(0,o.gn)([(0,Z.oS)()],g.prototype,"nzColor",void 0),g})(),W=(()=>{class g{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(O){const{nzColor:Q}=O;Q&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null)}}return g.\u0275fac=function(O){return new(O||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[i.TTD],ngContentSelectors:ne,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"]],template:function(O,Q){1&O&&(i.F$t(),i.Hsn(0),i.TgZ(1,"div",0),i.YNc(2,X,2,1,"ng-container",1),i._UZ(3,"div",2),i.qZA()),2&O&&(i.xp6(1),i.Tol(Q.presetColor&&"ant-ribbon-color-"+Q.presetColor),i.Udp("background-color",!Q.presetColor&&Q.nzColor),i.ekj("ant-ribbon-placement-end","end"===Q.nzPlacement)("ant-ribbon-placement-start","start"===Q.nzPlacement),i.xp6(1),i.Q6J("nzStringTemplateOutlet",Q.nzText),i.xp6(1),i.Udp("color",!Q.presetColor&&Q.nzColor))},directives:[P.f],encapsulation:2,changeDetection:0}),g})(),Y=(()=>{class g{}return g.\u0275fac=function(O){return new(O||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({imports:[[q.vT,L.ez,K.Q8,P.T,A.g]]}),g})()},7484:(De,se,r)=>{r.d(se,{bd:()=>be,vh:()=>Pe,_i:()=>Se});var o=r(655),i=r(5e3),t=r(1721),D=r(8929),F=r(7625),Z=r(9439),B=r(226),q=r(9808),A=r(969);function L(N,ee){1&N&&i.Hsn(0)}const P=["*"];function K(N,ee){1&N&&(i.TgZ(0,"div",4),i._UZ(1,"div",5),i.qZA()),2&N&&i.Q6J("ngClass",ee.$implicit)}function H(N,ee){if(1&N&&(i.TgZ(0,"div",2),i.YNc(1,K,2,1,"div",3),i.qZA()),2&N){const _=ee.$implicit;i.xp6(1),i.Q6J("ngForOf",_)}}function le(N,ee){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const _=i.oxw(3);i.xp6(1),i.Oqu(_.nzTitle)}}function te(N,ee){if(1&N&&(i.TgZ(0,"div",11),i.YNc(1,le,2,1,"ng-container",12),i.qZA()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function ae(N,ee){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const _=i.oxw(3);i.xp6(1),i.Oqu(_.nzExtra)}}function oe(N,ee){if(1&N&&(i.TgZ(0,"div",13),i.YNc(1,ae,2,1,"ng-container",12),i.qZA()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",_.nzExtra)}}function V(N,ee){}function b(N,ee){if(1&N&&(i.ynx(0),i.YNc(1,V,0,0,"ng-template",14),i.BQk()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",_.listOfNzCardTabComponent.template)}}function I(N,ee){if(1&N&&(i.TgZ(0,"div",6),i.TgZ(1,"div",7),i.YNc(2,te,2,1,"div",8),i.YNc(3,oe,2,1,"div",9),i.qZA(),i.YNc(4,b,2,1,"ng-container",10),i.qZA()),2&N){const _=i.oxw();i.xp6(2),i.Q6J("ngIf",_.nzTitle),i.xp6(1),i.Q6J("ngIf",_.nzExtra),i.xp6(1),i.Q6J("ngIf",_.listOfNzCardTabComponent)}}function $(N,ee){}function ne(N,ee){if(1&N&&(i.TgZ(0,"div",15),i.YNc(1,$,0,0,"ng-template",14),i.qZA()),2&N){const _=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",_.nzCover)}}function X(N,ee){1&N&&(i.ynx(0),i.Hsn(1),i.BQk())}function de(N,ee){1&N&&i._UZ(0,"nz-card-loading")}function fe(N,ee){}function pe(N,ee){if(1&N&&(i.TgZ(0,"li"),i.TgZ(1,"span"),i.YNc(2,fe,0,0,"ng-template",14),i.qZA(),i.qZA()),2&N){const _=ee.$implicit,J=i.oxw(2);i.Udp("width",100/J.nzActions.length,"%"),i.xp6(2),i.Q6J("ngTemplateOutlet",_)}}function ue(N,ee){if(1&N&&(i.TgZ(0,"ul",16),i.YNc(1,pe,3,3,"li",17),i.qZA()),2&N){const _=i.oxw();i.xp6(1),i.Q6J("ngForOf",_.nzActions)}}let _e=(()=>{class N{constructor(){this.nzHoverable=!0}}return N.\u0275fac=function(_){return new(_||N)},N.\u0275dir=i.lG2({type:N,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(_,J){2&_&&i.ekj("ant-card-hoverable",J.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,o.gn)([(0,t.yF)()],N.prototype,"nzHoverable",void 0),N})(),Se=(()=>{class N{}return N.\u0275fac=function(_){return new(_||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card-tab"]],viewQuery:function(_,J){if(1&_&&i.Gf(i.Rgc,7),2&_){let U;i.iGM(U=i.CRH())&&(J.template=U.first)}},exportAs:["nzCardTab"],ngContentSelectors:P,decls:1,vars:0,template:function(_,J){1&_&&(i.F$t(),i.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),N})(),Ee=(()=>{class N{constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return N.\u0275fac=function(_){return new(_||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,J){1&_&&(i.TgZ(0,"div",0),i.YNc(1,H,2,1,"div",1),i.qZA()),2&_&&(i.xp6(1),i.Q6J("ngForOf",J.listOfLoading))},directives:[q.sg,q.mk],encapsulation:2,changeDetection:0}),N})(),be=(()=>{class N{constructor(_,J,U){this.nzConfigService=_,this.cdr=J,this.directionality=U,this._nzModuleName="card",this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new D.xQ,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,F.R)(this.destroy$)).subscribe(J=>{this.dir=J,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return N.\u0275fac=function(_){return new(_||N)(i.Y36(Z.jY),i.Y36(i.sBO),i.Y36(B.Is,8))},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card"]],contentQueries:function(_,J,U){if(1&_&&(i.Suo(U,Se,5),i.Suo(U,_e,4)),2&_){let ge;i.iGM(ge=i.CRH())&&(J.listOfNzCardTabComponent=ge.first),i.iGM(ge=i.CRH())&&(J.listOfNzCardGridDirective=ge)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(_,J){2&_&&i.ekj("ant-card-loading",J.nzLoading)("ant-card-bordered",!1===J.nzBorderless&&J.nzBordered)("ant-card-hoverable",J.nzHoverable)("ant-card-small","small"===J.nzSize)("ant-card-contain-grid",J.listOfNzCardGridDirective&&J.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===J.nzType)("ant-card-contain-tabs",!!J.listOfNzCardTabComponent)("ant-card-rtl","rtl"===J.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:P,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(_,J){if(1&_&&(i.F$t(),i.YNc(0,I,5,3,"div",0),i.YNc(1,ne,2,1,"div",1),i.TgZ(2,"div",2),i.YNc(3,X,2,0,"ng-container",3),i.YNc(4,de,1,0,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(6,ue,2,1,"ul",5)),2&_){const U=i.MAs(5);i.Q6J("ngIf",J.nzTitle||J.nzExtra||J.listOfNzCardTabComponent),i.xp6(1),i.Q6J("ngIf",J.nzCover),i.xp6(1),i.Q6J("ngStyle",J.nzBodyStyle),i.xp6(1),i.Q6J("ngIf",!J.nzLoading)("ngIfElse",U),i.xp6(3),i.Q6J("ngIf",J.nzActions.length)}},directives:[Ee,q.O5,A.f,q.tP,q.PC,q.sg],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzBordered",void 0),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzBorderless",void 0),(0,o.gn)([(0,t.yF)()],N.prototype,"nzLoading",void 0),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzHoverable",void 0),(0,o.gn)([(0,Z.oS)()],N.prototype,"nzSize",void 0),N})(),Pe=(()=>{class N{}return N.\u0275fac=function(_){return new(_||N)},N.\u0275mod=i.oAB({type:N}),N.\u0275inj=i.cJS({imports:[[q.ez,A.T],B.vT]}),N})()},3677:(De,se,r)=>{r.d(se,{cm:()=>Se,b1:()=>Pe,wA:()=>be,RR:()=>Ve});var o=r(655),i=r(1159),t=r(7429),D=r(5e3),F=r(8929),Z=r(591),B=r(6787),q=r(3753),A=r(8896),L=r(3426),P=r(7604),K=r(4850),H=r(7545),le=r(2198),te=r(7138),ae=r(5778),oe=r(7625),V=r(9439),b=r(6950),I=r(1721),$=r(2845),ne=r(925),X=r(226),de=r(9808),fe=r(4182),pe=r(6042),ue=r(4832),W=r(969),Y=r(647),g=r(4219),G=r(8076);function O(_,J){if(1&_){const U=D.EpF();D.TgZ(0,"div",0),D.NdJ("@slideMotion.done",function(Ce){return D.CHM(U),D.oxw().onAnimationEvent(Ce)})("mouseenter",function(){return D.CHM(U),D.oxw().setMouseState(!0)})("mouseleave",function(){return D.CHM(U),D.oxw().setMouseState(!1)}),D.Hsn(1),D.qZA()}if(2&_){const U=D.oxw();D.ekj("ant-dropdown-rtl","rtl"===U.dir),D.Q6J("ngClass",U.nzOverlayClassName)("ngStyle",U.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("nzNoAnimation",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)}}const Q=["*"],_e=[b.yW.bottomLeft,b.yW.bottomRight,b.yW.topRight,b.yW.topLeft];let Se=(()=>{class _{constructor(U,ge,Ce,Ae,Me,Ie){this.nzConfigService=U,this.elementRef=ge,this.overlay=Ce,this.renderer=Ae,this.viewContainerRef=Me,this.platform=Ie,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new F.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new Z.X(!1),this.nzTrigger$=new Z.X("hover"),this.overlayClose$=new F.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new D.vpe}setDropdownMenuValue(U,ge){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(U,ge)}ngAfterViewInit(){if(this.nzDropdownMenu){const U=this.elementRef.nativeElement,ge=(0,B.T)((0,q.R)(U,"mouseenter").pipe((0,P.h)(!0)),(0,q.R)(U,"mouseleave").pipe((0,P.h)(!1))),Ae=(0,B.T)(this.nzDropdownMenu.mouseState$,ge),Me=(0,q.R)(U,"click").pipe((0,K.U)(()=>!this.nzVisible)),Ie=this.nzTrigger$.pipe((0,H.w)(ve=>"hover"===ve?Ae:"click"===ve?Me:A.E)),Le=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,le.h)(()=>this.nzClickHide),(0,P.h)(!1)),Ne=(0,B.T)(Ie,Le,this.overlayClose$).pipe((0,le.h)(()=>!this.nzDisabled)),Ue=(0,B.T)(this.inputVisible$,Ne);(0,L.aj)([Ue,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,K.U)(([ve,Qe])=>ve||Qe),(0,te.e)(150),(0,ae.x)(),(0,le.h)(()=>this.platform.isBrowser),(0,oe.R)(this.destroy$)).subscribe(ve=>{const xe=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:U).getBoundingClientRect().width;this.nzVisible!==ve&&this.nzVisibleChange.emit(ve),this.nzVisible=ve,ve?(this.overlayRef?this.overlayRef.getConfig().minWidth=xe:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:xe,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,B.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,le.h)(Re=>!this.elementRef.nativeElement.contains(Re.target))),this.overlayRef.keydownEvents().pipe((0,le.h)(Re=>Re.keyCode===i.hY&&!(0,i.Vb)(Re)))).pipe((0,oe.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([b.yW[this.nzPlacement],..._e]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new t.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,oe.R)(this.destroy$)).subscribe(ve=>{"void"===ve.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(U){const{nzVisible:ge,nzDisabled:Ce,nzOverlayClassName:Ae,nzOverlayStyle:Me,nzTrigger:Ie}=U;if(Ie&&this.nzTrigger$.next(this.nzTrigger),ge&&this.inputVisible$.next(this.nzVisible),Ce){const Le=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Le,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Le,"disabled")}Ae&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Me&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(V.jY),D.Y36(D.SBq),D.Y36($.aV),D.Y36(D.Qsj),D.Y36(D.s_b),D.Y36(ne.t4))},_.\u0275dir=D.lG2({type:_,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[D.TTD]}),(0,o.gn)([(0,V.oS)(),(0,I.yF)()],_.prototype,"nzBackdrop",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzClickHide",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzDisabled",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzVisible",void 0),_})(),Ee=(()=>{class _{}return _.\u0275fac=function(U){return new(U||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({}),_})(),be=(()=>{class _{constructor(U,ge,Ce){this.renderer=U,this.nzButtonGroupComponent=ge,this.elementRef=Ce}ngAfterViewInit(){const U=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&U&&this.renderer.addClass(U,"ant-dropdown-button")}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(D.Qsj),D.Y36(pe.fY,9),D.Y36(D.SBq))},_.\u0275dir=D.lG2({type:_,selectors:[["","nz-button","","nz-dropdown",""]]}),_})(),Ve=(()=>{class _{constructor(U,ge,Ce,Ae,Me,Ie,Le){this.cdr=U,this.elementRef=ge,this.renderer=Ce,this.viewContainerRef=Ae,this.nzMenuService=Me,this.directionality=Ie,this.noAnimation=Le,this.mouseState$=new Z.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new D.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new F.xQ}onAnimationEvent(U){this.animationStateChange$.emit(U)}setMouseState(U){this.mouseState$.next(U)}setValue(U,ge){this[U]=ge,this.cdr.markForCheck()}ngOnInit(){var U;null===(U=this.directionality.change)||void 0===U||U.pipe((0,oe.R)(this.destroy$)).subscribe(ge=>{this.dir=ge,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(D.sBO),D.Y36(D.SBq),D.Y36(D.Qsj),D.Y36(D.s_b),D.Y36(g.hl),D.Y36(X.Is,8),D.Y36(ue.P,9))},_.\u0275cmp=D.Xpm({type:_,selectors:[["nz-dropdown-menu"]],viewQuery:function(U,ge){if(1&U&&D.Gf(D.Rgc,7),2&U){let Ce;D.iGM(Ce=D.CRH())&&(ge.templateRef=Ce.first)}},exportAs:["nzDropdownMenu"],features:[D._Bn([g.hl,{provide:g.Cc,useValue:!0}])],ngContentSelectors:Q,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(U,ge){1&U&&(D.F$t(),D.YNc(0,O,2,7,"ng-template"))},directives:[de.mk,de.PC,ue.P],encapsulation:2,data:{animation:[G.mF]},changeDetection:0}),_})(),Pe=(()=>{class _{}return _.\u0275fac=function(U){return new(U||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({imports:[[X.vT,de.ez,$.U8,fe.u5,pe.sL,g.ip,Y.PV,ue.g,ne.ud,b.e4,Ee,W.T],g.ip]}),_})();new $.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new $.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new $.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new $.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},3762:(De,se,r)=>{r.d(se,{n_:()=>Je,I2:()=>$e,t4:()=>we,AA:()=>Xe,yw:()=>ze,yi:()=>ie,IO:()=>m,Ph:()=>nt});var o=r(5e3),i=r(6699),t=r(9808),D=r(969),F=r(655),Z=r(1721),B=r(8929),q=r(8514),A=r(1086),L=r(6787),P=r(591),K=r(2986),H=r(7545),le=r(7625),te=r(685),ae=r(226),oe=r(7525),V=r(1894);const b=["*"];function I(f,E){if(1&f&&o._UZ(0,"nz-avatar",3),2&f){const C=o.oxw();o.Q6J("nzSrc",C.nzSrc)}}function $(f,E){1&f&&o.Hsn(0,0,["*ngIf","!nzSrc"])}function ne(f,E){if(1&f&&o._UZ(0,"nz-list-item-meta-avatar",3),2&f){const C=o.oxw();o.Q6J("nzSrc",C.avatarStr)}}function X(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-avatar"),o.GkF(1,4),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",C.avatarTpl)}}function de(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzTitle)}}function fe(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-title"),o.YNc(1,de,2,1,"ng-container",6),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzTitle)}}function pe(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzDescription)}}function ue(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-description"),o.YNc(1,pe,2,1,"ng-container",6),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzDescription)}}function W(f,E){if(1&f&&(o.TgZ(0,"div",5),o.YNc(1,fe,2,1,"nz-list-item-meta-title",1),o.YNc(2,ue,2,1,"nz-list-item-meta-description",1),o.Hsn(3,1),o.Hsn(4,2),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngIf",C.nzTitle&&!C.titleComponent),o.xp6(1),o.Q6J("ngIf",C.nzDescription&&!C.descriptionComponent)}}const Y=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],g=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function G(f,E){1&f&&o.Hsn(0)}const O=["nz-list-item-actions",""];function Q(f,E){}function ye(f,E){1&f&&o._UZ(0,"em",3)}function _e(f,E){if(1&f&&(o.TgZ(0,"li"),o.YNc(1,Q,0,0,"ng-template",1),o.YNc(2,ye,1,0,"em",2),o.qZA()),2&f){const C=E.$implicit,R=E.last;o.xp6(1),o.Q6J("ngTemplateOutlet",C),o.xp6(1),o.Q6J("ngIf",!R)}}function Se(f,E){}const Ee=function(f,E){return{$implicit:f,index:E}};function Oe(f,E){if(1&f&&(o.ynx(0),o.YNc(1,Se,0,0,"ng-template",9),o.BQk()),2&f){const C=E.$implicit,R=E.index,ce=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(2,Ee,C,R))}}function be(f,E){if(1&f&&(o.TgZ(0,"div",7),o.YNc(1,Oe,2,5,"ng-container",8),o.Hsn(2,4),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngForOf",C.nzDataSource)}}function Ve(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Oqu(C.nzHeader)}}function Pe(f,E){if(1&f&&(o.TgZ(0,"nz-list-header"),o.YNc(1,Ve,2,1,"ng-container",10),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzHeader)}}function N(f,E){1&f&&o._UZ(0,"div"),2&f&&o.Udp("min-height",53,"px")}function ee(f,E){}function _(f,E){if(1&f&&(o.TgZ(0,"div",13),o.YNc(1,ee,0,0,"ng-template",9),o.qZA()),2&f){const C=E.$implicit,R=E.index,ce=o.oxw(2);o.Q6J("nzSpan",ce.nzGrid.span||null)("nzXs",ce.nzGrid.xs||null)("nzSm",ce.nzGrid.sm||null)("nzMd",ce.nzGrid.md||null)("nzLg",ce.nzGrid.lg||null)("nzXl",ce.nzGrid.xl||null)("nzXXl",ce.nzGrid.xxl||null),o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(9,Ee,C,R))}}function J(f,E){if(1&f&&(o.TgZ(0,"div",11),o.YNc(1,_,2,12,"div",12),o.qZA()),2&f){const C=o.oxw();o.Q6J("nzGutter",C.nzGrid.gutter||null),o.xp6(1),o.Q6J("ngForOf",C.nzDataSource)}}function U(f,E){if(1&f&&o._UZ(0,"nz-list-empty",14),2&f){const C=o.oxw();o.Q6J("nzNoResult",C.nzNoResult)}}function ge(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Oqu(C.nzFooter)}}function Ce(f,E){if(1&f&&(o.TgZ(0,"nz-list-footer"),o.YNc(1,ge,2,1,"ng-container",10),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzFooter)}}function Ae(f,E){}function Me(f,E){}function Ie(f,E){if(1&f&&(o.TgZ(0,"nz-list-pagination"),o.YNc(1,Me,0,0,"ng-template",6),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzPagination)}}const Le=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Ne=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Ue(f,E){if(1&f&&o._UZ(0,"ul",6),2&f){const C=o.oxw(2);o.Q6J("nzActions",C.nzActions)}}function ve(f,E){if(1&f&&(o.YNc(0,Ue,1,1,"ul",5),o.Hsn(1)),2&f){const C=o.oxw();o.Q6J("ngIf",C.nzActions&&C.nzActions.length>0)}}function Qe(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzContent)}}function xe(f,E){if(1&f&&(o.ynx(0),o.YNc(1,Qe,2,1,"ng-container",8),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzContent)}}function Re(f,E){if(1&f&&(o.Hsn(0,1),o.Hsn(1,2),o.YNc(2,xe,2,1,"ng-container",7)),2&f){const C=o.oxw();o.xp6(2),o.Q6J("ngIf",C.nzContent)}}function it(f,E){1&f&&o.Hsn(0,3)}function ot(f,E){}function et(f,E){}function rt(f,E){}function h(f,E){}function st(f,E){if(1&f&&(o.YNc(0,ot,0,0,"ng-template",9),o.YNc(1,et,0,0,"ng-template",9),o.YNc(2,rt,0,0,"ng-template",9),o.YNc(3,h,0,0,"ng-template",9)),2&f){const C=o.oxw(),R=o.MAs(3),ce=o.MAs(5),he=o.MAs(1);o.Q6J("ngTemplateOutlet",R),o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzExtra),o.xp6(1),o.Q6J("ngTemplateOutlet",ce),o.xp6(1),o.Q6J("ngTemplateOutlet",he)}}function at(f,E){}function ct(f,E){}function lt(f,E){}function Ge(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-extra"),o.YNc(1,lt,0,0,"ng-template",9),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzExtra)}}function dt(f,E){}function p(f,E){if(1&f&&(o.ynx(0),o.TgZ(1,"div",10),o.YNc(2,at,0,0,"ng-template",9),o.YNc(3,ct,0,0,"ng-template",9),o.qZA(),o.YNc(4,Ge,2,1,"nz-list-item-extra",7),o.YNc(5,dt,0,0,"ng-template",9),o.BQk()),2&f){const C=o.oxw(),R=o.MAs(3),ce=o.MAs(1),he=o.MAs(5);o.xp6(2),o.Q6J("ngTemplateOutlet",R),o.xp6(1),o.Q6J("ngTemplateOutlet",ce),o.xp6(1),o.Q6J("ngIf",C.nzExtra),o.xp6(1),o.Q6J("ngTemplateOutlet",he)}}const a=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],j=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let m=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"h4",0),o.Hsn(1),o.qZA())},encapsulation:2,changeDetection:0}),f})(),l=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},encapsulation:2,changeDetection:0}),f})(),k=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:b,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.YNc(1,I,1,1,"nz-avatar",1),o.YNc(2,$,1,0,"ng-content",2),o.qZA()),2&C&&(o.xp6(1),o.Q6J("ngIf",R.nzSrc),o.xp6(1),o.Q6J("ngIf",!R.nzSrc))},directives:[i.Dz,t.O5],encapsulation:2,changeDetection:0}),f})(),ie=(()=>{class f{constructor(C,R){this.elementRef=C,this.renderer=R,this.avatarStr="",this.renderer.addClass(C.nativeElement,"ant-list-item-meta")}set nzAvatar(C){C instanceof o.Rgc?(this.avatarStr="",this.avatarTpl=C):this.avatarStr=C}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.SBq),o.Y36(o.Qsj))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(C,R,ce){if(1&C&&(o.Suo(ce,l,5),o.Suo(ce,m,5)),2&C){let he;o.iGM(he=o.CRH())&&(R.descriptionComponent=he.first),o.iGM(he=o.CRH())&&(R.titleComponent=he.first)}},inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:g,decls:4,vars:3,consts:[[3,"nzSrc",4,"ngIf"],[4,"ngIf"],["class","ant-list-item-meta-content",4,"ngIf"],[3,"nzSrc"],[3,"ngTemplateOutlet"],[1,"ant-list-item-meta-content"],[4,"nzStringTemplateOutlet"]],template:function(C,R){1&C&&(o.F$t(Y),o.YNc(0,ne,1,1,"nz-list-item-meta-avatar",0),o.YNc(1,X,2,1,"nz-list-item-meta-avatar",1),o.Hsn(2),o.YNc(3,W,5,2,"div",2)),2&C&&(o.Q6J("ngIf",R.avatarStr),o.xp6(1),o.Q6J("ngIf",R.avatarTpl),o.xp6(2),o.Q6J("ngIf",R.nzTitle||R.nzDescription||R.descriptionComponent||R.titleComponent))},directives:[k,m,l,t.O5,t.tP,D.f],encapsulation:2,changeDetection:0}),f})(),ze=(()=>{class f{constructor(){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Ze=(()=>{class f{constructor(){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-action"]],viewQuery:function(C,R){if(1&C&&o.Gf(o.Rgc,5),2&C){let ce;o.iGM(ce=o.CRH())&&(R.templateRef=ce.first)}},exportAs:["nzListItemAction"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.YNc(0,G,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),f})(),Te=(()=>{class f{constructor(C,R){this.ngZone=C,this.cdr=R,this.nzActions=[],this.actions=[],this.destroy$=new B.xQ,this.inputActionChanges$=new B.xQ,this.contentChildrenChanges$=(0,q.P)(()=>this.nzListItemActions?(0,A.of)(null):this.ngZone.onStable.asObservable().pipe((0,K.q)(1),(0,H.w)(()=>this.contentChildrenChanges$))),(0,L.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,le.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(ce=>ce.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.R0b),o.Y36(o.sBO))},f.\u0275cmp=o.Xpm({type:f,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(C,R,ce){if(1&C&&o.Suo(ce,Ze,4),2&C){let he;o.iGM(he=o.CRH())&&(R.nzListItemActions=he)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[o.TTD],attrs:O,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(C,R){1&C&&o.YNc(0,_e,3,2,"li",0),2&C&&o.Q6J("ngForOf",R.actions)},directives:[t.sg,t.tP,t.O5],encapsulation:2,changeDetection:0}),f})(),$e=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(C,R){1&C&&o._UZ(0,"nz-embed-empty",0),2&C&&o.Q6J("nzComponentName","list")("specificContent",R.nzNoResult)},directives:[te.gB],encapsulation:2,changeDetection:0}),f})(),we=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Ye=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),je=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),He=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275dir=o.lG2({type:f,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),f})(),Je=(()=>{class f{constructor(C){this.directionality=C,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new P.X(this.nzItemLayout),this.destroy$=new B.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var C;this.dir=this.directionality.value,null===(C=this.directionality.change)||void 0===C||C.pipe((0,le.R)(this.destroy$)).subscribe(R=>{this.dir=R})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(C){C.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(ae.Is,8))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(C,R,ce){if(1&C&&(o.Suo(ce,Ye,5),o.Suo(ce,je,5),o.Suo(ce,He,5)),2&C){let he;o.iGM(he=o.CRH())&&(R.nzListFooterComponent=he.first),o.iGM(he=o.CRH())&&(R.nzListPaginationComponent=he.first),o.iGM(he=o.CRH())&&(R.nzListLoadMoreDirective=he.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(C,R){2&C&&o.ekj("ant-list-rtl","rtl"===R.dir)("ant-list-vertical","vertical"===R.nzItemLayout)("ant-list-lg","large"===R.nzSize)("ant-list-sm","small"===R.nzSize)("ant-list-split",R.nzSplit)("ant-list-bordered",R.nzBordered)("ant-list-loading",R.nzLoading)("ant-list-something-after-last-item",R.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[o.TTD],ngContentSelectors:Ne,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(C,R){if(1&C&&(o.F$t(Le),o.YNc(0,be,3,1,"ng-template",null,0,o.W1O),o.YNc(2,Pe,2,1,"nz-list-header",1),o.Hsn(3),o.TgZ(4,"nz-spin",2),o.ynx(5),o.YNc(6,N,1,2,"div",3),o.YNc(7,J,2,2,"div",4),o.YNc(8,U,1,1,"nz-list-empty",5),o.BQk(),o.qZA(),o.YNc(9,Ce,2,1,"nz-list-footer",1),o.Hsn(10,1),o.YNc(11,Ae,0,0,"ng-template",6),o.Hsn(12,2),o.YNc(13,Ie,2,1,"nz-list-pagination",1),o.Hsn(14,3)),2&C){const ce=o.MAs(1);o.xp6(2),o.Q6J("ngIf",R.nzHeader),o.xp6(2),o.Q6J("nzSpinning",R.nzLoading),o.xp6(2),o.Q6J("ngIf",R.nzLoading&&R.nzDataSource&&0===R.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",R.nzGrid&&R.nzDataSource)("ngIfElse",ce),o.xp6(1),o.Q6J("ngIf",!R.nzLoading&&R.nzDataSource&&0===R.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",R.nzFooter),o.xp6(2),o.Q6J("ngTemplateOutlet",R.nzLoadMore),o.xp6(2),o.Q6J("ngIf",R.nzPagination)}},directives:[we,oe.W,$e,Ye,je,t.sg,t.tP,t.O5,D.f,V.SK,V.t3],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzBordered",void 0),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzLoading",void 0),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzSplit",void 0),f})(),Xe=(()=>{class f{constructor(C,R,ce,he){this.parentComp=ce,this.cdr=he,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,R.addClass(C.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(C=>{this.itemLayout=C,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(Je),o.Y36(o.sBO))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(C,R,ce){if(1&C&&o.Suo(ce,ze,5),2&C){let he;o.iGM(he=o.CRH())&&(R.listItemExtraDirective=he.first)}},hostVars:2,hostBindings:function(C,R){2&C&&o.ekj("ant-list-item-no-flex",R.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:j,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(C,R){if(1&C&&(o.F$t(a),o.YNc(0,ve,2,1,"ng-template",null,0,o.W1O),o.YNc(2,Re,3,1,"ng-template",null,1,o.W1O),o.YNc(4,it,1,0,"ng-template",null,2,o.W1O),o.YNc(6,st,4,4,"ng-template",null,3,o.W1O),o.YNc(8,p,6,4,"ng-container",4)),2&C){const ce=o.MAs(7);o.xp6(8),o.Q6J("ngIf",R.isVerticalAndExtra)("ngIfElse",ce)}},directives:[Te,ze,t.O5,D.f,t.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzNoFlex",void 0),f})(),nt=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275mod=o.oAB({type:f}),f.\u0275inj=o.cJS({imports:[[ae.vT,t.ez,oe.j,V.Jb,i.Rt,D.T,te.Xo]]}),f})()},4219:(De,se,r)=>{r.d(se,{hl:()=>ve,Cc:()=>Ne,wO:()=>ct,YV:()=>dt,uA:()=>Ge,r9:()=>xe,ip:()=>p});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(6787),Z=r(3426),B=r(4850),q=r(1709),A=r(2198),L=r(7604),P=r(7138),K=r(5778),H=r(7625),le=r(1059),te=r(7545),ae=r(1721),oe=r(325),V=r(226),b=r(2845),I=r(6950),$=r(925),ne=r(4832),X=r(9808),de=r(647),fe=r(969),pe=r(8076);const ue=["nz-submenu-title",""];function W(a,j){if(1&a&&i._UZ(0,"i",4),2&a){const m=i.oxw();i.Q6J("nzType",m.nzIcon)}}function Y(a,j){if(1&a&&(i.ynx(0),i.TgZ(1,"span"),i._uU(2),i.qZA(),i.BQk()),2&a){const m=i.oxw();i.xp6(2),i.Oqu(m.nzTitle)}}function g(a,j){1&a&&i._UZ(0,"i",8)}function G(a,j){1&a&&i._UZ(0,"i",9)}function O(a,j){if(1&a&&(i.TgZ(0,"span",5),i.YNc(1,g,1,0,"i",6),i.YNc(2,G,1,0,"i",7),i.qZA()),2&a){const m=i.oxw();i.Q6J("ngSwitch",m.dir),i.xp6(1),i.Q6J("ngSwitchCase","rtl")}}function Q(a,j){1&a&&i._UZ(0,"i",10)}const ye=["*"],_e=["nz-submenu-inline-child",""];function Se(a,j){}const Ee=["nz-submenu-none-inline-child",""];function Oe(a,j){}const be=["nz-submenu",""];function Ve(a,j){1&a&&i.Hsn(0,0,["*ngIf","!nzTitle"])}function Pe(a,j){if(1&a&&i._UZ(0,"div",6),2&a){const m=i.oxw(),l=i.MAs(7);i.Q6J("mode",m.mode)("nzOpen",m.nzOpen)("@.disabled",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("nzNoAnimation",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("menuClass",m.nzMenuClassName)("templateOutlet",l)}}function N(a,j){if(1&a){const m=i.EpF();i.TgZ(0,"div",8),i.NdJ("subMenuMouseState",function(k){return i.CHM(m),i.oxw(2).setMouseEnterState(k)}),i.qZA()}if(2&a){const m=i.oxw(2),l=i.MAs(7);i.Q6J("theme",m.theme)("mode",m.mode)("nzOpen",m.nzOpen)("position",m.position)("nzDisabled",m.nzDisabled)("isMenuInsideDropDown",m.isMenuInsideDropDown)("templateOutlet",l)("menuClass",m.nzMenuClassName)("@.disabled",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("nzNoAnimation",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)}}function ee(a,j){if(1&a){const m=i.EpF();i.YNc(0,N,1,10,"ng-template",7),i.NdJ("positionChange",function(k){return i.CHM(m),i.oxw().onPositionChange(k)})}if(2&a){const m=i.oxw(),l=i.MAs(1);i.Q6J("cdkConnectedOverlayPositions",m.overlayPositions)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayWidth",m.triggerWidth)("cdkConnectedOverlayOpen",m.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function _(a,j){1&a&&i.Hsn(0,1)}const J=[[["","title",""]],"*"],U=["[title]","*"],ge=["titleElement"],Ce=["nz-menu-group",""];function Ae(a,j){if(1&a&&(i.ynx(0),i._uU(1),i.BQk()),2&a){const m=i.oxw();i.xp6(1),i.Oqu(m.nzTitle)}}function Me(a,j){1&a&&i.Hsn(0,1,["*ngIf","!nzTitle"])}const Ie=["*",[["","title",""]]],Le=["*","[title]"],Ne=new i.OlP("NzIsInDropDownMenuToken"),Ue=new i.OlP("NzMenuServiceLocalToken");let ve=(()=>{class a{constructor(){this.descendantMenuItemClick$=new t.xQ,this.childMenuItemClick$=new t.xQ,this.theme$=new D.X("light"),this.mode$=new D.X("vertical"),this.inlineIndent$=new D.X(24),this.isChildSubMenuOpen$=new D.X(!1)}onDescendantMenuItemClick(m){this.descendantMenuItemClick$.next(m)}onChildMenuItemClick(m){this.childMenuItemClick$.next(m)}setMode(m){this.mode$.next(m)}setTheme(m){this.theme$.next(m)}setInlineIndent(m){this.inlineIndent$.next(m)}}return a.\u0275fac=function(m){return new(m||a)},a.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac}),a})(),Qe=(()=>{class a{constructor(m,l,k){this.nzHostSubmenuService=m,this.nzMenuService=l,this.isMenuInsideDropDown=k,this.mode$=this.nzMenuService.mode$.pipe((0,B.U)(Te=>"inline"===Te?"inline":"vertical"===Te||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new D.X(!1),this.isChildSubMenuOpen$=new D.X(!1),this.isMouseEnterTitleOrOverlay$=new t.xQ,this.childMenuItemClick$=new t.xQ,this.destroy$=new t.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ie=this.childMenuItemClick$.pipe((0,q.zg)(()=>this.mode$),(0,A.h)(Te=>"inline"!==Te||this.isMenuInsideDropDown),(0,L.h)(!1)),ze=(0,F.T)(this.isMouseEnterTitleOrOverlay$,ie);(0,Z.aj)([this.isChildSubMenuOpen$,ze]).pipe((0,B.U)(([Te,$e])=>Te||$e),(0,P.e)(150),(0,K.x)(),(0,H.R)(this.destroy$)).pipe((0,K.x)()).subscribe(Te=>{this.setOpenStateWithoutDebounce(Te),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(Te):this.nzMenuService.isChildSubMenuOpen$.next(Te)})}onChildMenuItemClick(m){this.childMenuItemClick$.next(m)}setOpenStateWithoutDebounce(m){this.isCurrentSubMenuOpen$.next(m)}setMouseEnterTitleOrOverlayState(m){this.isMouseEnterTitleOrOverlay$.next(m)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.LFG(a,12),i.LFG(ve),i.LFG(Ne))},a.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac}),a})(),xe=(()=>{class a{constructor(m,l,k,ie,ze,Ze,Te,$e){this.nzMenuService=m,this.cdr=l,this.nzSubmenuService=k,this.isMenuInsideDropDown=ie,this.directionality=ze,this.routerLink=Ze,this.routerLinkWithHref=Te,this.router=$e,this.destroy$=new t.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new t.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,$e&&this.router.events.pipe((0,H.R)(this.destroy$),(0,A.h)(we=>we instanceof oe.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(m){this.nzDisabled?(m.preventDefault(),m.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(m){this.nzSelected=m,this.selected$.next(m)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const m=this.hasActiveLinks();this.nzSelected!==m&&(this.nzSelected=m,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const m=this.isLinkActive(this.router);return this.routerLink&&m(this.routerLink)||this.routerLinkWithHref&&m(this.routerLinkWithHref)||this.listOfRouterLink.some(m)||this.listOfRouterLinkWithHref.some(m)}isLinkActive(m){return l=>m.isActive(l.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var m;(0,Z.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,H.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,H.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(m){m.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(i.sBO),i.Y36(Qe,8),i.Y36(Ne),i.Y36(V.Is,8),i.Y36(oe.rH,8),i.Y36(oe.yS,8),i.Y36(oe.F0,8))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu-item",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,oe.rH,5),i.Suo(k,oe.yS,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfRouterLink=ie),i.iGM(ie=i.CRH())&&(l.listOfRouterLinkWithHref=ie)}},hostVars:20,hostBindings:function(m,l){1&m&&i.NdJ("click",function(ie){return l.clickMenuItem(ie)}),2&m&&(i.Udp("padding-left","rtl"===l.dir?null:l.nzPaddingLeft||l.inlinePaddingLeft,"px")("padding-right","rtl"===l.dir?l.nzPaddingLeft||l.inlinePaddingLeft:null,"px"),i.ekj("ant-dropdown-menu-item",l.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",l.isMenuInsideDropDown&&l.nzSelected)("ant-dropdown-menu-item-danger",l.isMenuInsideDropDown&&l.nzDanger)("ant-dropdown-menu-item-disabled",l.isMenuInsideDropDown&&l.nzDisabled)("ant-menu-item",!l.isMenuInsideDropDown)("ant-menu-item-selected",!l.isMenuInsideDropDown&&l.nzSelected)("ant-menu-item-danger",!l.isMenuInsideDropDown&&l.nzDanger)("ant-menu-item-disabled",!l.isMenuInsideDropDown&&l.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[i.TTD]}),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzDisabled",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzSelected",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzDanger",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzMatchRouterExact",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzMatchRouter",void 0),a})(),Re=(()=>{class a{constructor(m,l){this.cdr=m,this.directionality=l,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new i.vpe,this.subMenuMouseState=new i.vpe,this.dir="ltr",this.destroy$=new t.xQ}ngOnInit(){var m;this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(m){this.nzDisabled||this.subMenuMouseState.next(m)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.sBO),i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(m,l){1&m&&i.NdJ("click",function(){return l.clickTitle()})("mouseenter",function(){return l.setMouseState(!0)})("mouseleave",function(){return l.setMouseState(!1)}),2&m&&(i.Udp("padding-left","rtl"===l.dir?null:l.paddingLeft,"px")("padding-right","rtl"===l.dir?l.paddingLeft:null,"px"),i.ekj("ant-dropdown-menu-submenu-title",l.isMenuInsideDropDown)("ant-menu-submenu-title",!l.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:ue,ngContentSelectors:ye,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(m,l){if(1&m&&(i.F$t(),i.YNc(0,W,1,1,"i",0),i.YNc(1,Y,3,1,"ng-container",1),i.Hsn(2),i.YNc(3,O,3,2,"span",2),i.YNc(4,Q,1,0,"ng-template",null,3,i.W1O)),2&m){const k=i.MAs(5);i.Q6J("ngIf",l.nzIcon),i.xp6(1),i.Q6J("nzStringTemplateOutlet",l.nzTitle),i.xp6(2),i.Q6J("ngIf",l.isMenuInsideDropDown)("ngIfElse",k)}},directives:[X.O5,de.Ls,fe.f,X.RF,X.n9,X.ED],encapsulation:2,changeDetection:0}),a})(),it=(()=>{class a{constructor(m,l,k){this.elementRef=m,this.renderer=l,this.directionality=k,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new t.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var m;this.calcMotionState(),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngOnChanges(m){const{mode:l,nzOpen:k,menuClass:ie}=m;(l||k)&&this.calcMotionState(),ie&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(ze=>!!ze).forEach(ze=>{this.renderer.removeClass(this.elementRef.nativeElement,ze)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(ze=>!!ze).forEach(ze=>{this.renderer.addClass(this.elementRef.nativeElement,ze)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(m,l){2&m&&(i.d8E("@collapseMotion",l.expandState),i.ekj("ant-menu-rtl","rtl"===l.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[i.TTD],attrs:_e,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(m,l){1&m&&i.YNc(0,Se,0,0,"ng-template",0),2&m&&i.Q6J("ngTemplateOutlet",l.templateOutlet)},directives:[X.tP],encapsulation:2,data:{animation:[pe.J_]},changeDetection:0}),a})(),ot=(()=>{class a{constructor(m){this.directionality=m,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new i.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new t.xQ}setMouseState(m){this.nzDisabled||this.subMenuMouseState.next(m)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var m;this.calcMotionState(),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngOnChanges(m){const{mode:l,nzOpen:k}=m;(l||k)&&this.calcMotionState()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(m,l){1&m&&i.NdJ("mouseenter",function(){return l.setMouseState(!0)})("mouseleave",function(){return l.setMouseState(!1)}),2&m&&(i.d8E("@slideMotion",l.expandState)("@zoomBigMotion",l.expandState),i.ekj("ant-menu-light","light"===l.theme)("ant-menu-dark","dark"===l.theme)("ant-menu-submenu-placement-bottom","horizontal"===l.mode)("ant-menu-submenu-placement-right","vertical"===l.mode&&"right"===l.position)("ant-menu-submenu-placement-left","vertical"===l.mode&&"left"===l.position)("ant-menu-submenu-rtl","rtl"===l.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[i.TTD],attrs:Ee,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(m,l){1&m&&(i.TgZ(0,"div",0),i.YNc(1,Oe,0,0,"ng-template",1),i.qZA()),2&m&&(i.ekj("ant-dropdown-menu",l.isMenuInsideDropDown)("ant-menu",!l.isMenuInsideDropDown)("ant-dropdown-menu-vertical",l.isMenuInsideDropDown)("ant-menu-vertical",!l.isMenuInsideDropDown)("ant-dropdown-menu-sub",l.isMenuInsideDropDown)("ant-menu-sub",!l.isMenuInsideDropDown)("ant-menu-rtl","rtl"===l.dir),i.Q6J("ngClass",l.menuClass),i.xp6(1),i.Q6J("ngTemplateOutlet",l.templateOutlet))},directives:[X.mk,X.tP],encapsulation:2,data:{animation:[pe.$C,pe.mF]},changeDetection:0}),a})();const et=[I.yW.rightTop,I.yW.right,I.yW.rightBottom,I.yW.leftTop,I.yW.left,I.yW.leftBottom],rt=[I.yW.bottomLeft];let h=(()=>{class a{constructor(m,l,k,ie,ze,Ze,Te){this.nzMenuService=m,this.cdr=l,this.nzSubmenuService=k,this.platform=ie,this.isMenuInsideDropDown=ze,this.directionality=Ze,this.noAnimation=Te,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new i.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new t.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=et,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(m){this.nzSubmenuService.setOpenStateWithoutDebounce(m)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(m){this.isActive=m,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(m)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(m){const l=(0,I.d_)(m);"rightTop"===l||"rightBottom"===l||"right"===l?this.position="right":("leftTop"===l||"leftBottom"===l||"left"===l)&&(this.position="left")}ngOnInit(){var m;this.nzMenuService.theme$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.theme=l,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.mode=l,"horizontal"===l?this.overlayPositions=rt:"vertical"===l&&(this.overlayPositions=et),this.cdr.markForCheck()}),(0,Z.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.isActive=l,l!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=l,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const m=this.listOfNzMenuItemDirective,l=m.changes,k=(0,F.T)(l,...m.map(ie=>ie.selected$));l.pipe((0,le.O)(m),(0,te.w)(()=>k),(0,le.O)(!0),(0,B.U)(()=>m.some(ie=>ie.nzSelected)),(0,H.R)(this.destroy$)).subscribe(ie=>{this.isSelected=ie,this.cdr.markForCheck()})}ngOnChanges(m){const{nzOpen:l}=m;l&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(i.sBO),i.Y36(Qe),i.Y36($.t4),i.Y36(Ne),i.Y36(V.Is,8),i.Y36(ne.P,9))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,a,5),i.Suo(k,xe,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfNzSubMenuComponent=ie),i.iGM(ie=i.CRH())&&(l.listOfNzMenuItemDirective=ie)}},viewQuery:function(m,l){if(1&m&&i.Gf(b.xu,7,i.SBq),2&m){let k;i.iGM(k=i.CRH())&&(l.cdkOverlayOrigin=k.first)}},hostVars:34,hostBindings:function(m,l){2&m&&i.ekj("ant-dropdown-menu-submenu",l.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",l.isMenuInsideDropDown&&l.nzDisabled)("ant-dropdown-menu-submenu-open",l.isMenuInsideDropDown&&l.nzOpen)("ant-dropdown-menu-submenu-selected",l.isMenuInsideDropDown&&l.isSelected)("ant-dropdown-menu-submenu-vertical",l.isMenuInsideDropDown&&"vertical"===l.mode)("ant-dropdown-menu-submenu-horizontal",l.isMenuInsideDropDown&&"horizontal"===l.mode)("ant-dropdown-menu-submenu-inline",l.isMenuInsideDropDown&&"inline"===l.mode)("ant-dropdown-menu-submenu-active",l.isMenuInsideDropDown&&l.isActive)("ant-menu-submenu",!l.isMenuInsideDropDown)("ant-menu-submenu-disabled",!l.isMenuInsideDropDown&&l.nzDisabled)("ant-menu-submenu-open",!l.isMenuInsideDropDown&&l.nzOpen)("ant-menu-submenu-selected",!l.isMenuInsideDropDown&&l.isSelected)("ant-menu-submenu-vertical",!l.isMenuInsideDropDown&&"vertical"===l.mode)("ant-menu-submenu-horizontal",!l.isMenuInsideDropDown&&"horizontal"===l.mode)("ant-menu-submenu-inline",!l.isMenuInsideDropDown&&"inline"===l.mode)("ant-menu-submenu-active",!l.isMenuInsideDropDown&&l.isActive)("ant-menu-submenu-rtl","rtl"===l.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[i._Bn([Qe]),i.TTD],attrs:be,ngContentSelectors:U,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(m,l){if(1&m&&(i.F$t(J),i.TgZ(0,"div",0,1),i.NdJ("subMenuMouseState",function(ie){return l.setMouseEnterState(ie)})("toggleSubMenu",function(){return l.toggleSubMenu()}),i.YNc(2,Ve,1,0,"ng-content",2),i.qZA(),i.YNc(3,Pe,1,6,"div",3),i.YNc(4,ee,1,5,"ng-template",null,4,i.W1O),i.YNc(6,_,1,0,"ng-template",null,5,i.W1O)),2&m){const k=i.MAs(5);i.Q6J("nzIcon",l.nzIcon)("nzTitle",l.nzTitle)("mode",l.mode)("nzDisabled",l.nzDisabled)("isMenuInsideDropDown",l.isMenuInsideDropDown)("paddingLeft",l.nzPaddingLeft||l.inlinePaddingLeft),i.xp6(2),i.Q6J("ngIf",!l.nzTitle),i.xp6(1),i.Q6J("ngIf","inline"===l.mode)("ngIfElse",k)}},directives:[Re,it,ot,b.xu,X.O5,ne.P,b.pI],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzOpen",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzDisabled",void 0),a})();function st(a,j){return a||j}function at(a){return a||!1}let ct=(()=>{class a{constructor(m,l,k,ie){this.nzMenuService=m,this.isMenuInsideDropDown=l,this.cdr=k,this.directionality=ie,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new i.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new D.X(this.nzInlineCollapsed),this.mode$=new D.X(this.nzMode),this.destroy$=new t.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(m){this.nzInlineCollapsed=m,this.inlineCollapsed$.next(m)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(m=>m.nzOpen),this.listOfNzSubMenuComponent.forEach(m=>m.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(m=>m.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var m;(0,Z.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.actualMode=l?"vertical":k,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.nzClick.emit(l),this.nzSelectable&&!l.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(k=>k.setSelectedState(k===l))}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(m){const{nzInlineCollapsed:l,nzInlineIndent:k,nzTheme:ie,nzMode:ze}=m;l&&this.inlineCollapsed$.next(this.nzInlineCollapsed),k&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ie&&this.nzMenuService.setTheme(this.nzTheme),ze&&(this.mode$.next(this.nzMode),!m.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(Ze=>Ze.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(Ne),i.Y36(i.sBO),i.Y36(V.Is,8))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,xe,5),i.Suo(k,h,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfNzMenuItemDirective=ie),i.iGM(ie=i.CRH())&&(l.listOfNzSubMenuComponent=ie)}},hostVars:34,hostBindings:function(m,l){2&m&&i.ekj("ant-dropdown-menu",l.isMenuInsideDropDown)("ant-dropdown-menu-root",l.isMenuInsideDropDown)("ant-dropdown-menu-light",l.isMenuInsideDropDown&&"light"===l.nzTheme)("ant-dropdown-menu-dark",l.isMenuInsideDropDown&&"dark"===l.nzTheme)("ant-dropdown-menu-vertical",l.isMenuInsideDropDown&&"vertical"===l.actualMode)("ant-dropdown-menu-horizontal",l.isMenuInsideDropDown&&"horizontal"===l.actualMode)("ant-dropdown-menu-inline",l.isMenuInsideDropDown&&"inline"===l.actualMode)("ant-dropdown-menu-inline-collapsed",l.isMenuInsideDropDown&&l.nzInlineCollapsed)("ant-menu",!l.isMenuInsideDropDown)("ant-menu-root",!l.isMenuInsideDropDown)("ant-menu-light",!l.isMenuInsideDropDown&&"light"===l.nzTheme)("ant-menu-dark",!l.isMenuInsideDropDown&&"dark"===l.nzTheme)("ant-menu-vertical",!l.isMenuInsideDropDown&&"vertical"===l.actualMode)("ant-menu-horizontal",!l.isMenuInsideDropDown&&"horizontal"===l.actualMode)("ant-menu-inline",!l.isMenuInsideDropDown&&"inline"===l.actualMode)("ant-menu-inline-collapsed",!l.isMenuInsideDropDown&&l.nzInlineCollapsed)("ant-menu-rtl","rtl"===l.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[i._Bn([{provide:Ue,useClass:ve},{provide:ve,useFactory:st,deps:[[new i.tp0,new i.FiY,ve],Ue]},{provide:Ne,useFactory:at,deps:[[new i.tp0,new i.FiY,Ne]]}]),i.TTD]}),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzInlineCollapsed",void 0),(0,o.gn)([(0,ae.yF)()],a.prototype,"nzSelectable",void 0),a})();function lt(a){return a||!1}let Ge=(()=>{class a{constructor(m,l,k){this.elementRef=m,this.renderer=l,this.isMenuInsideDropDown=k,this.renderer.addClass(m.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const m=this.titleElement.nativeElement.nextElementSibling;m&&this.renderer.addClass(m,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Ne))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-menu-group",""]],viewQuery:function(m,l){if(1&m&&i.Gf(ge,5),2&m){let k;i.iGM(k=i.CRH())&&(l.titleElement=k.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[i._Bn([{provide:Ne,useFactory:lt,deps:[[new i.tp0,new i.FiY,Ne]]}])],attrs:Ce,ngContentSelectors:Le,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"],[4,"ngIf"]],template:function(m,l){1&m&&(i.F$t(Ie),i.TgZ(0,"div",null,0),i.YNc(2,Ae,2,1,"ng-container",1),i.YNc(3,Me,1,0,"ng-content",2),i.qZA(),i.Hsn(4)),2&m&&(i.ekj("ant-menu-item-group-title",!l.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",l.isMenuInsideDropDown),i.xp6(2),i.Q6J("nzStringTemplateOutlet",l.nzTitle),i.xp6(1),i.Q6J("ngIf",!l.nzTitle))},directives:[fe.f,X.O5],encapsulation:2,changeDetection:0}),a})(),dt=(()=>{class a{constructor(m,l){this.elementRef=m,this.renderer=l,this.renderer.addClass(m.nativeElement,"ant-dropdown-menu-item-divider")}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),a})(),p=(()=>{class a{}return a.\u0275fac=function(m){return new(m||a)},a.\u0275mod=i.oAB({type:a}),a.\u0275inj=i.cJS({imports:[[V.vT,X.ez,$.ud,b.U8,de.PV,ne.g,fe.T]]}),a})()},8144:(De,se,r)=>{r.d(se,{NU:()=>oe,$1:()=>le,zf:()=>V});var o=r(226),i=r(9808),t=r(5e3),D=r(655),F=r(8929),Z=r(7625),B=r(9439),q=r(1721);function A(b,I){}const L=function(b){return{$implicit:b}};function P(b,I){if(1&b&&(t.TgZ(0,"span",4),t.YNc(1,A,0,0,"ng-template",5),t.qZA()),2&b){const $=t.oxw(),ne=$.last,X=$.index,de=t.oxw();t.Udp("margin-bottom","vertical"===de.nzDirection?ne?null:de.spaceSize:null,"px")("margin-right","horizontal"===de.nzDirection?ne?null:de.spaceSize:null,"px"),t.xp6(1),t.Q6J("ngTemplateOutlet",de.nzSplit)("ngTemplateOutletContext",t.VKq(6,L,X))}}function K(b,I){if(1&b&&(t.TgZ(0,"div",1),t.GkF(1,2),t.qZA(),t.YNc(2,P,2,8,"span",3)),2&b){const $=I.$implicit,ne=I.last,X=t.oxw();t.Udp("margin-bottom","vertical"===X.nzDirection?ne?null:X.spaceSize:null,"px")("margin-right","horizontal"===X.nzDirection?ne?null:X.spaceSize:null,"px"),t.xp6(1),t.Q6J("ngTemplateOutlet",$),t.xp6(1),t.Q6J("ngIf",X.nzSplit&&!ne)}}const H=["*"];let le=(()=>{class b{constructor(){}}return b.\u0275fac=function($){return new($||b)},b.\u0275dir=t.lG2({type:b,selectors:[["","nzSpaceItem",""]]}),b})();const ae={small:8,middle:16,large:24};let oe=(()=>{class b{constructor($,ne){this.nzConfigService=$,this.cdr=ne,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=ae.small,this.destroy$=new F.xQ}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?ae[this.nzSize]:this.nzSize)/(this.nzSplit?2:1),this.cdr.markForCheck()}ngOnChanges(){this.updateSpaceItems(),this.mergedAlign=void 0===this.nzAlign&&"horizontal"===this.nzDirection?"center":this.nzAlign}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}}return b.\u0275fac=function($){return new($||b)(t.Y36(B.jY),t.Y36(t.sBO))},b.\u0275cmp=t.Xpm({type:b,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function($,ne,X){if(1&$&&t.Suo(X,le,4,t.Rgc),2&$){let de;t.iGM(de=t.CRH())&&(ne.items=de)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function($,ne){2&$&&(t.Udp("flex-wrap",ne.nzWrap?"wrap":null),t.ekj("ant-space-horizontal","horizontal"===ne.nzDirection)("ant-space-vertical","vertical"===ne.nzDirection)("ant-space-align-start","start"===ne.mergedAlign)("ant-space-align-end","end"===ne.mergedAlign)("ant-space-align-center","center"===ne.mergedAlign)("ant-space-align-baseline","baseline"===ne.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:"nzWrap",nzSize:"nzSize"},exportAs:["NzSpace"],features:[t.TTD],ngContentSelectors:H,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],[1,"ant-space-item"],[3,"ngTemplateOutlet"],["class","ant-space-split",3,"margin-bottom","margin-right",4,"ngIf"],[1,"ant-space-split"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function($,ne){1&$&&(t.F$t(),t.Hsn(0),t.YNc(1,K,3,6,"ng-template",0)),2&$&&(t.xp6(1),t.Q6J("ngForOf",ne.items))},directives:[i.sg,i.tP,i.O5],encapsulation:2,changeDetection:0}),(0,D.gn)([(0,q.yF)()],b.prototype,"nzWrap",void 0),(0,D.gn)([(0,B.oS)()],b.prototype,"nzSize",void 0),b})(),V=(()=>{class b{}return b.\u0275fac=function($){return new($||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[[o.vT,i.ez]]}),b})()},7525:(De,se,r)=>{r.d(se,{W:()=>ue,j:()=>W});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(839),Z=r(8723),B=r(1177);class A{constructor(g){this.durationSelector=g}call(g,G){return G.subscribe(new L(g,this.durationSelector))}}class L extends B.Ds{constructor(g,G){super(g),this.durationSelector=G,this.hasValue=!1}_next(g){try{const G=this.durationSelector.call(this,g);G&&this._tryNext(g,G)}catch(G){this.destination.error(G)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(g,G){let O=this.durationSubscription;this.value=g,this.hasValue=!0,O&&(O.unsubscribe(),this.remove(O)),O=(0,B.ft)(G,new B.IY(this)),O&&!O.closed&&this.add(this.durationSubscription=O)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const g=this.value,G=this.durationSubscription;G&&(this.durationSubscription=void 0,G.unsubscribe(),this.remove(G)),this.value=void 0,this.hasValue=!1,super._next(g)}}}var P=r(1059),K=r(5778),H=r(7545),le=r(7625),te=r(9439),ae=r(1721),oe=r(226),V=r(9808),b=r(7144);function I(Y,g){1&Y&&(i.TgZ(0,"span",3),i._UZ(1,"i",4),i._UZ(2,"i",4),i._UZ(3,"i",4),i._UZ(4,"i",4),i.qZA())}function $(Y,g){}function ne(Y,g){if(1&Y&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&Y){const G=i.oxw(2);i.xp6(1),i.Oqu(G.nzTip)}}function X(Y,g){if(1&Y&&(i.TgZ(0,"div"),i.TgZ(1,"div",5),i.YNc(2,$,0,0,"ng-template",6),i.YNc(3,ne,2,1,"div",7),i.qZA(),i.qZA()),2&Y){const G=i.oxw(),O=i.MAs(1);i.xp6(1),i.ekj("ant-spin-rtl","rtl"===G.dir)("ant-spin-spinning",G.isLoading)("ant-spin-lg","large"===G.nzSize)("ant-spin-sm","small"===G.nzSize)("ant-spin-show-text",G.nzTip),i.xp6(1),i.Q6J("ngTemplateOutlet",G.nzIndicator||O),i.xp6(1),i.Q6J("ngIf",G.nzTip)}}function de(Y,g){if(1&Y&&(i.TgZ(0,"div",9),i.Hsn(1),i.qZA()),2&Y){const G=i.oxw();i.ekj("ant-spin-blur",G.isLoading)}}const fe=["*"];let ue=(()=>{class Y{constructor(G,O,Q){this.nzConfigService=G,this.cdr=O,this.directionality=Q,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new t.xQ,this.spinning$=new D.X(this.nzSpinning),this.delay$=new F.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var G;this.delay$.pipe((0,P.O)(this.nzDelay),(0,K.x)(),(0,H.w)(Q=>0===Q?this.spinning$:this.spinning$.pipe(function q(Y){return g=>g.lift(new A(Y))}(ye=>(0,Z.H)(ye?Q:0)))),(0,le.R)(this.destroy$)).subscribe(Q=>{this.isLoading=Q,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,le.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(G=this.directionality.change)||void 0===G||G.pipe((0,le.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(G){const{nzSpinning:O,nzDelay:Q}=G;O&&this.spinning$.next(this.nzSpinning),Q&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function(G){return new(G||Y)(i.Y36(te.jY),i.Y36(i.sBO),i.Y36(oe.Is,8))},Y.\u0275cmp=i.Xpm({type:Y,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(G,O){2&G&&i.ekj("ant-spin-nested-loading",!O.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[i.TTD],ngContentSelectors:fe,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(G,O){1&G&&(i.F$t(),i.YNc(0,I,5,0,"ng-template",null,0,i.W1O),i.YNc(2,X,4,12,"div",1),i.YNc(3,de,2,2,"div",2)),2&G&&(i.xp6(2),i.Q6J("ngIf",O.isLoading),i.xp6(1),i.Q6J("ngIf",!O.nzSimple))},directives:[V.O5,V.tP],encapsulation:2}),(0,o.gn)([(0,te.oS)()],Y.prototype,"nzIndicator",void 0),(0,o.gn)([(0,ae.Rn)()],Y.prototype,"nzDelay",void 0),(0,o.gn)([(0,ae.yF)()],Y.prototype,"nzSimple",void 0),(0,o.gn)([(0,ae.yF)()],Y.prototype,"nzSpinning",void 0),Y})(),W=(()=>{class Y{}return Y.\u0275fac=function(G){return new(G||Y)},Y.\u0275mod=i.oAB({type:Y}),Y.\u0275inj=i.cJS({imports:[[oe.vT,V.ez,b.Q8]]}),Y})()}}]);
\ No newline at end of file
+ ${ri}`;let ga=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ma}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},4024:(De,re,r)=>{r.r(re),r.d(re,{LayoutModule:()=>kt});var o=r(9808),i=r(325),t=r(5e3),D=r(9350),F=r(8929),Z=r(7625),B=r(655),q=r(4090),A=r(1721),L=r(4219),G=r(925),K=r(647),H=r(226),le=r(5113);const te=["*"],se=["nz-sider-trigger",""];function oe(u,M){}function V(u,M){if(1&u&&(t.ynx(0),t.YNc(1,oe,0,0,"ng-template",3),t.BQk()),2&u){const c=t.oxw(),v=t.MAs(5);t.xp6(1),t.Q6J("ngTemplateOutlet",c.nzZeroTrigger||v)}}function b(u,M){}function I(u,M){if(1&u&&(t.ynx(0),t.YNc(1,b,0,0,"ng-template",3),t.BQk()),2&u){const c=t.oxw(),v=t.MAs(3);t.xp6(1),t.Q6J("ngTemplateOutlet",c.nzTrigger||v)}}function $(u,M){if(1&u&&t._UZ(0,"i",5),2&u){const c=t.oxw(2);t.Q6J("nzType",c.nzCollapsed?"right":"left")}}function ne(u,M){if(1&u&&t._UZ(0,"i",5),2&u){const c=t.oxw(2);t.Q6J("nzType",c.nzCollapsed?"left":"right")}}function X(u,M){if(1&u&&(t.YNc(0,$,1,1,"i",4),t.YNc(1,ne,1,1,"i",4)),2&u){const c=t.oxw();t.Q6J("ngIf",!c.nzReverseArrow),t.xp6(1),t.Q6J("ngIf",c.nzReverseArrow)}}function de(u,M){1&u&&t._UZ(0,"i",6)}function fe(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(c);const P=t.oxw();return P.setCollapsed(!P.nzCollapsed)}),t.qZA()}if(2&u){const c=t.oxw();t.Q6J("matchBreakPoint",c.matchBreakPoint)("nzCollapsedWidth",c.nzCollapsedWidth)("nzCollapsed",c.nzCollapsed)("nzBreakpoint",c.nzBreakpoint)("nzReverseArrow",c.nzReverseArrow)("nzTrigger",c.nzTrigger)("nzZeroTrigger",c.nzZeroTrigger)("siderWidth",c.widthSetting)}}let pe=(()=>{class u{constructor(c,v){this.elementRef=c,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(t.Qsj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),W=(()=>{class u{constructor(c,v){this.elementRef=c,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(t.Qsj))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),Y=(()=>{class u{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(c,v){2&c&&(t.Udp("width",v.isNormalTrigger?v.siderWidth:null),t.ekj("ant-layout-sider-trigger",v.isNormalTrigger)("ant-layout-sider-zero-width-trigger",v.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",v.isZeroTrigger&&v.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",v.isZeroTrigger&&!v.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[t.TTD],attrs:se,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(c,v){1&c&&(t.YNc(0,V,2,1,"ng-container",0),t.YNc(1,I,2,1,"ng-container",0),t.YNc(2,X,2,2,"ng-template",null,1,t.W1O),t.YNc(4,de,1,0,"ng-template",null,2,t.W1O)),2&c&&(t.Q6J("ngIf",v.isZeroTrigger),t.xp6(1),t.Q6J("ngIf",v.isNormalTrigger))},directives:[o.O5,o.tP,K.Ls],encapsulation:2,changeDetection:0}),u})(),g=(()=>{class u{constructor(c,v,P){this.platform=c,this.cdr=v,this.breakpointService=P,this.destroy$=new F.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new t.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,A.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(c){c!==this.nzCollapsed&&(this.nzCollapsed=c,this.nzCollapsedChange.emit(c),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(q.ow,!0).pipe((0,Z.R)(this.destroy$)).subscribe(c=>{const v=this.nzBreakpoint;v&&(0,A.ov)().subscribe(()=>{this.matchBreakPoint=!c[v],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(c){const{nzCollapsed:v,nzCollapsedWidth:P,nzWidth:ae}=c;(v||P||ae)&&this.updateStyleMap(),v&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(G.t4),t.Y36(t.sBO),t.Y36(q.r3))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-sider"]],contentQueries:function(c,v,P){if(1&c&&t.Suo(P,L.wO,5),2&c){let ae;t.iGM(ae=t.CRH())&&(v.nzMenuDirective=ae.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(c,v){2&c&&(t.Udp("flex",v.flexSetting)("max-width",v.widthSetting)("min-width",v.widthSetting)("width",v.widthSetting),t.ekj("ant-layout-sider-zero-width",v.nzCollapsed&&0===v.nzCollapsedWidth)("ant-layout-sider-light","light"===v.nzTheme)("ant-layout-sider-dark","dark"===v.nzTheme)("ant-layout-sider-collapsed",v.nzCollapsed)("ant-layout-sider-has-trigger",v.nzCollapsible&&null!==v.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[t.TTD],ngContentSelectors:te,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA(),t.YNc(2,fe,1,8,"div",1)),2&c&&(t.xp6(2),t.Q6J("ngIf",v.nzCollapsible&&null!==v.nzTrigger))},directives:[Y,o.O5],encapsulation:2,changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzReverseArrow",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzCollapsible",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzCollapsed",void 0),u})(),w=(()=>{class u{constructor(c){this.directionality=c,this.dir="ltr",this.destroy$=new F.xQ}ngOnInit(){var c;this.dir=this.directionality.value,null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(H.Is,8))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-layout"]],contentQueries:function(c,v,P){if(1&c&&t.Suo(P,g,4),2&c){let ae;t.iGM(ae=t.CRH())&&(v.listOfNzSiderComponent=ae)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(c,v){2&c&&t.ekj("ant-layout-rtl","rtl"===v.dir)("ant-layout-has-sider",v.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:te,decls:1,vars:0,template:function(c,v){1&c&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),u})(),O=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[H.vT,o.ez,K.PV,le.xu,G.ud]]}),u})();var Q=r(404),ye=r(1894),_e=r(712),Se=r(373),Ee=r(1047),Oe=r(4182),Re=r(2845),Ve=r(4832),Pe=r(969),N=r(3753),ee=r(2654),_=r(8514),J=r(6787),U=r(2198),ge=r(2868),Ce=r(6792),Ae=r(2986),Me=r(7545),Ie=r(1159),Le=r(7429),Ne=r(8076);function Be(u,M){if(1&u&&(t.ynx(0),t._uU(1),t.BQk()),2&u){const c=t.oxw();t.xp6(1),t.Oqu(c.nzLabel)}}const ve=[[["nz-auto-option"]]],Ue=["nz-auto-option"],xe=["*"],$e=["panel"],it=["content"];function ot(u,M){}function tt(u,M){1&u&&t.YNc(0,ot,0,0,"ng-template")}function rt(u,M){1&u&&t.Hsn(0)}function h(u,M){if(1&u&&(t.TgZ(0,"nz-auto-option",8),t._uU(1),t.qZA()),2&u){const c=M.$implicit;t.Q6J("nzValue",c)("nzLabel",c&&c.label?c.label:c),t.xp6(1),t.hij(" ",c&&c.label?c.label:c," ")}}function st(u,M){if(1&u&&t.YNc(0,h,2,3,"nz-auto-option",7),2&u){const c=t.oxw(2);t.Q6J("ngForOf",c.nzDataSource)}}function at(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"div",0,1),t.NdJ("@slideMotion.done",function(P){return t.CHM(c),t.oxw().onAnimationEvent(P)}),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.YNc(4,tt,1,0,void 0,4),t.qZA(),t.qZA(),t.qZA(),t.YNc(5,rt,1,0,"ng-template",null,5,t.W1O),t.YNc(7,st,1,1,"ng-template",null,6,t.W1O)}if(2&u){const c=t.MAs(6),v=t.MAs(8),P=t.oxw();t.ekj("ant-select-dropdown-hidden",!P.showPanel)("ant-select-dropdown-rtl","rtl"===P.dir),t.Q6J("ngClass",P.nzOverlayClassName)("ngStyle",P.nzOverlayStyle)("nzNoAnimation",null==P.noAnimation?null:P.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",null==P.noAnimation?null:P.noAnimation.nzNoAnimation),t.xp6(4),t.Q6J("ngTemplateOutlet",P.nzDataSource?v:c)}}let ct=(()=>{class u{constructor(){}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:Ue,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(c,v){1&c&&(t.F$t(ve),t.TgZ(0,"div",0),t.YNc(1,Be,2,1,"ng-container",1),t.qZA(),t.Hsn(2)),2&c&&(t.xp6(1),t.Q6J("nzStringTemplateOutlet",v.nzLabel))},directives:[Pe.f],encapsulation:2,changeDetection:0}),u})();class lt{constructor(M,c=!1){this.source=M,this.isUserInput=c}}let Ge=(()=>{class u{constructor(c,v,P,ae){this.ngZone=c,this.changeDetectorRef=v,this.element=P,this.nzAutocompleteOptgroupComponent=ae,this.nzDisabled=!1,this.selectionChange=new t.vpe,this.mouseEntered=new t.vpe,this.active=!1,this.selected=!1,this.destroy$=new F.xQ}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,N.R)(this.element.nativeElement,"mouseenter").pipe((0,U.h)(()=>this.mouseEntered.observers.length>0),(0,Z.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),(0,N.R)(this.element.nativeElement,"mousedown").pipe((0,Z.R)(this.destroy$)).subscribe(c=>c.preventDefault())})}ngOnDestroy(){this.destroy$.next()}select(c=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),c&&this.emitSelectionChangeEvent()}deselect(){this.selected=!1,this.changeDetectorRef.markForCheck(),this.emitSelectionChangeEvent()}getLabel(){return this.nzLabel||this.nzValue.toString()}setActiveStyles(){this.active||(this.active=!0,this.changeDetectorRef.markForCheck())}setInactiveStyles(){this.active&&(this.active=!1,this.changeDetectorRef.markForCheck())}scrollIntoViewIfNeeded(){(0,A.zT)(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(c=!1){this.selectionChange.emit(new lt(this,c))}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ct,8))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(c,v){1&c&&t.NdJ("click",function(){return v.selectViaInteraction()}),2&c&&(t.uIk("aria-selected",v.selected.toString())("aria-disabled",v.nzDisabled.toString()),t.ekj("ant-select-item-option-grouped",v.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",v.selected)("ant-select-item-option-active",v.active)("ant-select-item-option-disabled",v.nzDisabled))},inputs:{nzValue:"nzValue",nzLabel:"nzLabel",nzDisabled:"nzDisabled"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:xe,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},encapsulation:2,changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzDisabled",void 0),u})();const pt={provide:Oe.JU,useExisting:(0,t.Gpc)(()=>a),multi:!0};let a=(()=>{class u{constructor(c,v,P,ae,et){this.elementRef=c,this.overlay=v,this.viewContainerRef=P,this.nzInputGroupWhitSuffixOrPrefixDirective=ae,this.document=et,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new F.xQ,this.overlayRef=null,this.portal=null,this.previousValue=null}get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,Z.R)(this.destroy$)).subscribe(c=>{"void"===c.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(c){Promise.resolve(null).then(()=>this.setTriggerValue(c))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.elementRef.nativeElement.disabled=c,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(c){const v=c.keyCode,P=v===Ie.LH||v===Ie.JH;v===Ie.hY&&c.preventDefault(),!this.panelOpen||v!==Ie.hY&&v!==Ie.Mf?this.panelOpen&&v===Ie.K5?this.nzAutocomplete.showPanel&&(c.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&P&&this.nzAutocomplete.showPanel&&(c.stopPropagation(),c.preventDefault(),v===Ie.LH?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(c){const v=c.target,P=this.document;let ae=v.value;"number"===v.type&&(ae=""===ae?null:parseFloat(ae)),this.previousValue!==ae&&(this.previousValue=ae,this.onChange(ae),this.canOpen()&&P.activeElement===c.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,ge.b)(()=>this.positionStrategy.reapplyLastPosition()),(0,Ce.g)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(c=>{this.setValueAndClose(c)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,U.h)(c=>!this.elementRef.nativeElement.contains(c.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function p(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}();!this.portal&&this.nzAutocomplete.template&&(this.portal=new Le.UE(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new Re.X_({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const c=[new Re.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new Re.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(c).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const c=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==c?(this.nzAutocomplete.setActiveItem(c),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(c){const v=c.nzValue;this.setTriggerValue(c.getLabel()),this.onChange(v),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(c){const v=this.nzAutocomplete.getOption(c),P=v?v.getLabel():c;this.elementRef.nativeElement.value=null!=P?P:"",this.nzAutocomplete.nzBackfill||(this.previousValue=P)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const c=this.elementRef.nativeElement;return!c.readOnly&&!c.disabled}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.SBq),t.Y36(Re.aV),t.Y36(t.s_b),t.Y36(Ee.ke,8),t.Y36(o.K0,8))},u.\u0275dir=t.lG2({type:u,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(c,v){1&c&&t.NdJ("focusin",function(){return v.handleFocus()})("blur",function(){return v.handleBlur()})("input",function(ae){return v.handleInput(ae)})("keydown",function(ae){return v.handleKeydown(ae)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[t._Bn([pt])]}),u})(),j=(()=>{class u{constructor(c,v,P,ae){this.changeDetectorRef=c,this.ngZone=v,this.directionality=P,this.noAnimation=ae,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=(et,Yt)=>et===Yt,this.selectionChange=new t.vpe,this.showPanel=!0,this.isOpen=!1,this.activeItem=null,this.dir="ltr",this.destroy$=new F.xQ,this.animationStateChange=new t.vpe,this.activeItemIndex=-1,this.selectionChangeSubscription=ee.w.EMPTY,this.optionMouseEnterSubscription=ee.w.EMPTY,this.dataSourceChangeSubscription=ee.w.EMPTY,this.optionSelectionChanges=(0,_.P)(()=>this.options?(0,J.T)(...this.options.map(et=>et.selectionChange)):this.ngZone.onStable.asObservable().pipe((0,Ae.q)(1),(0,Me.w)(()=>this.optionSelectionChanges))),this.optionMouseEnter=(0,_.P)(()=>this.options?(0,J.T)(...this.options.map(et=>et.mouseEntered)):this.ngZone.onStable.asObservable().pipe((0,Ae.q)(1),(0,Me.w)(()=>this.optionMouseEnter)))}get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}ngOnInit(){var c;null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}onAnimationEvent(c){this.animationStateChange.emit(c)}ngAfterContentInit(){this.nzDataSource||this.optionsInit()}ngAfterViewInit(){this.nzDataSource&&this.optionsInit()}ngOnDestroy(){this.dataSourceChangeSubscription.unsubscribe(),this.selectionChangeSubscription.unsubscribe(),this.optionMouseEnterSubscription.unsubscribe(),this.dataSourceChangeSubscription=this.selectionChangeSubscription=this.optionMouseEnterSubscription=null,this.destroy$.next(),this.destroy$.complete()}setVisibility(){this.showPanel=!!this.options.length,this.changeDetectorRef.markForCheck()}setActiveItem(c){const v=this.options.get(c);v&&!v.active?(this.activeItem=v,this.activeItemIndex=c,this.clearSelectedOptions(this.activeItem),this.activeItem.setActiveStyles()):(this.activeItem=null,this.activeItemIndex=-1,this.clearSelectedOptions()),this.changeDetectorRef.markForCheck()}setNextItemActive(){this.setActiveItem(this.activeItemIndex+1<=this.options.length-1?this.activeItemIndex+1:0)}setPreviousItemActive(){this.setActiveItem(this.activeItemIndex-1<0?this.options.length-1:this.activeItemIndex-1)}getOptionIndex(c){return this.options.reduce((v,P,ae)=>-1===v?this.compareWith(c,P.nzValue)?ae:-1:v,-1)}getOption(c){return this.options.find(v=>this.compareWith(c,v.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe(v=>{!v.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(c,v=!1){this.options.forEach(P=>{P!==c&&(v&&P.deselect(),P.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe((0,U.h)(c=>c.isUserInput)).subscribe(c=>{c.source.select(),c.source.setActiveStyles(),this.activeItem=c.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(c.source,!0),this.selectionChange.emit(c.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(c=>{c.setActiveStyles(),this.activeItem=c,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(c)})}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(t.sBO),t.Y36(t.R0b),t.Y36(H.Is,8),t.Y36(Ve.P,9))},u.\u0275cmp=t.Xpm({type:u,selectors:[["nz-autocomplete"]],contentQueries:function(c,v,P){if(1&c&&t.Suo(P,Ge,5),2&c){let ae;t.iGM(ae=t.CRH())&&(v.fromContentOptions=ae)}},viewQuery:function(c,v){if(1&c&&(t.Gf(t.Rgc,5),t.Gf($e,5),t.Gf(it,5),t.Gf(Ge,5)),2&c){let P;t.iGM(P=t.CRH())&&(v.template=P.first),t.iGM(P=t.CRH())&&(v.panel=P.first),t.iGM(P=t.CRH())&&(v.content=P.first),t.iGM(P=t.CRH())&&(v.fromDataSourceOptions=P)}},inputs:{nzWidth:"nzWidth",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:xe,decls:1,vars:0,consts:[[1,"ant-select-dropdown","ant-select-dropdown-placement-bottomLeft",3,"ngClass","ngStyle","nzNoAnimation"],["panel",""],[2,"max-height","256px","overflow-y","auto","overflow-anchor","none"],[2,"display","flex","flex-direction","column"],[4,"ngTemplateOutlet"],["contentTemplate",""],["optionsTemplate",""],[3,"nzValue","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzLabel"]],template:function(c,v){1&c&&(t.F$t(),t.YNc(0,at,9,10,"ng-template"))},directives:[Ge,o.mk,o.PC,Ve.P,o.tP,o.sg],encapsulation:2,data:{animation:[Ne.mF]},changeDetection:0}),(0,B.gn)([(0,A.yF)()],u.prototype,"nzDefaultActiveFirstOption",void 0),(0,B.gn)([(0,A.yF)()],u.prototype,"nzBackfill",void 0),u})(),m=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[H.vT,o.ez,Re.U8,Oe.u5,Pe.T,Ve.g,Ee.o7]]}),u})();var l=r(6949);function k(u,M){1&u&&t._UZ(0,"i",5)}function ie(u,M){if(1&u){const c=t.EpF();t.ynx(0),t.TgZ(1,"a",6),t.TgZ(2,"nz-auto-option",7),t.NdJ("click",function(){t.CHM(c);const P=t.oxw();return P.searchQuery="",P.refresh()}),t.TgZ(3,"span"),t._UZ(4,"i",8),t._uU(5," \xa0 "),t._UZ(6,"span",9),t._UZ(7,"br"),t._UZ(8,"span",9),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&u){const c=M.$implicit,v=t.oxw();t.xp6(1),t.Q6J("routerLink",v.urlForResult(c)),t.xp6(1),t.Q6J("nzValue",v.urlForResult(c)),t.xp6(2),t.Q6J("nzType",v.iconNameForResult(c)),t.xp6(2),t.s9C("innerHTML",c.name,t.oJD),t.xp6(2),t.s9C("innerHTML",c.matchingText,t.oJD)}}let ze=(()=>{class u{constructor(c,v){this.gql=c,this.router=v,this.searchQuery=""}ngOnInit(){this.queryRef=this.gql.watch({query:this.searchQuery}),this.searchResults$=this.queryRef.valueChanges.pipe((0,Se.j)("data","search"))}refresh(){this.queryRef.refetch({query:this.searchQuery})}iconNameForResult(c){switch(c.resultType){case _e.rZD.EvidenceItem:return"civic:evidence";case _e.rZD.VariantGroup:return"civic:variantgroup";default:return`civic:${c.resultType.toLowerCase()}`}}urlForResult(c){let v;switch(c.resultType){case _e.rZD.VariantGroup:v="variant-groups";break;case _e.rZD.EvidenceItem:v="evidence";break;default:v=`${c.resultType.toLowerCase()}s`}return`/${v}/${c.id}/summary`}quicksearchSelected(c){let v=c.target.value;this.searchQuery="",this.router.navigate([v])}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(_e.ghc),t.Y36(i.F0))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-quicksearch"]],decls:8,vars:6,consts:[["nzSize","large",3,"nzSuffix"],["placeholder","Quicksearch","nz-input","",3,"ngModel","nzAutocomplete","ngModelChange","keyup.enter"],["suffixIcon",""],["auto",""],[4,"ngFor","ngForOf"],["nz-icon","","nzType","search"],[3,"routerLink"],[3,"nzValue","click"],["nz-icon","",3,"nzType"],[3,"innerHTML"]],template:function(c,v){if(1&c&&(t.TgZ(0,"nz-input-group",0),t.TgZ(1,"input",1),t.NdJ("ngModelChange",function(ae){return v.searchQuery=ae})("ngModelChange",function(){return v.refresh()})("keyup.enter",function(ae){return v.quicksearchSelected(ae)}),t.qZA(),t.qZA(),t.YNc(2,k,1,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-autocomplete",null,3),t.YNc(6,ie,9,5,"ng-container",4),t.ALo(7,"ngrxPush"),t.qZA()),2&c){const P=t.MAs(3),ae=t.MAs(5);t.Q6J("nzSuffix",P),t.xp6(1),t.Q6J("ngModel",v.searchQuery)("nzAutocomplete",ae),t.xp6(5),t.Q6J("ngForOf",t.lcZ(7,4,v.searchResults$))}},directives:[Ee.gB,Ee.ke,Ee.Zp,Oe.Fj,a,Oe.JJ,Oe.On,K.Ls,j,o.sg,i.yS,Ge],pipes:[l.fM],styles:[""]}),u})();var Ze=r(1912),Te=r(4850),Fe=r(1059),ke=r(2340),Ye=r(8144),Je=r(6042),He=r(2643),nt=r(2683),Qe=r(3677),je=r(4401),ut=r(7881),Xe=r(3640),f=r(8785);function E(u,M){if(1&u&&(t.TgZ(0,"button",23),t._uU(1," Add "),t._UZ(2,"i",24),t.qZA()),2&u){t.oxw(2);const c=t.MAs(14);t.Q6J("nzDropdownMenu",c)}}const C=function(){return{backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}};function R(u,M){if(1&u&&(t.TgZ(0,"nz-badge",25),t.TgZ(1,"button",26),t._UZ(2,"i",27),t.qZA(),t.qZA()),2&u){const c=t.oxw().ngrxLet,v=t.oxw().ngIf;t.Q6J("nzCount",c)("nzOverflowCount",999)("nzStyle",t.DdM(4,C)),t.xp6(1),t.MGl("routerLink","/users/",v.id,"/notifications")}}const ce=function(u){return{"update-coi":u}};function he(u,M){if(1&u&&t._UZ(0,"cvc-user-avatar",33),2&u){const c=t.oxw(3).ngIf;t.Q6J("user",c)("size",22)("ngClass",t.VKq(3,ce,c.invalidCoi))}}function mt(u,M){if(1&u&&(t.TgZ(0,"div",34),t._uU(1),t.qZA()),2&u){const c=t.oxw(3).ngIf;t.xp6(1),t.Oqu(c.username)}}function Jt(u,M){1&u&&t._UZ(0,"i",24)}function gt(u,M){if(1&u&&(t.TgZ(0,"button",28),t.TgZ(1,"nz-space",29),t.YNc(2,he,1,5,"cvc-user-avatar",30),t.YNc(3,mt,2,1,"div",31),t.YNc(4,Jt,1,0,"i",32),t.qZA(),t.qZA()),2&u){t.oxw(2);const c=t.MAs(3);t.Q6J("nzDropdownMenu",c)}}function ft(u,M){1&u&&(t.TgZ(0,"nz-space",19),t.YNc(1,E,3,1,"button",20),t.YNc(2,R,3,5,"nz-badge",21),t.YNc(3,gt,5,1,"button",22),t.qZA())}function ht(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"li",14),t.TgZ(1,"button",35),t.NdJ("click",function(){return t.CHM(c),t.oxw(2).coiUpdateModalVisible=!0}),t._UZ(2,"i",36),t._uU(3," Please update COI statement "),t.qZA(),t.qZA()}}function vt(u,M){1&u&&t._UZ(0,"li",11)}function zt(u,M){1&u&&(t.TgZ(0,"li",37),t.TgZ(1,"a",38),t._uU(2," Admin Console "),t.qZA(),t.qZA())}const yt=function(u){return["/users",u]};function Ct(u,M){if(1&u){const c=t.EpF();t.ynx(0),t.YNc(1,ft,4,0,"nz-space",4),t.TgZ(2,"nz-dropdown-menu",null,5),t.TgZ(4,"ul",6),t.YNc(5,ht,4,0,"li",7),t.YNc(6,vt,1,0,"li",8),t.TgZ(7,"li",9),t._uU(8," Your Profile "),t.qZA(),t.YNc(9,zt,3,0,"li",10),t._UZ(10,"li",11),t.TgZ(11,"li",12),t.NdJ("click",function(){return t.CHM(c),t.oxw().signOut()}),t._uU(12,"Sign Out"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(13,"nz-dropdown-menu",null,13),t.TgZ(15,"ul",6),t.TgZ(16,"li",14),t.TgZ(17,"a",15),t._uU(18," Evidence Item "),t.qZA(),t.qZA(),t.TgZ(19,"li",14),t.TgZ(20,"a",16),t._uU(21," Assertion "),t.qZA(),t.qZA(),t.TgZ(22,"li",14),t.TgZ(23,"a",17),t._uU(24," Source Suggestion "),t.qZA(),t.qZA(),t.TgZ(25,"li",14),t.TgZ(26,"a",18),t._uU(27," Variant Group "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&u){const c=M.ngIf,v=t.oxw();t.xp6(1),t.Q6J("ngrxLet",v.unreadCount$),t.xp6(4),t.Q6J("ngIf",c.invalidCoi),t.xp6(1),t.Q6J("ngIf",c.invalidCoi),t.xp6(1),t.Q6J("routerLink",t.VKq(5,yt,c.id)),t.xp6(2),t.Q6J("ngIf",c.isAdmin)}}function It(u,M){1&u&&(t.TgZ(0,"span"),t._uU(1,"Update your Conflict of Interest Statement"),t.qZA())}function Tt(u,M){if(1&u){const c=t.EpF();t.TgZ(0,"cvc-user-coi-form",39),t.NdJ("coiUpdatedEvent",function(){return t.CHM(c),t.oxw().coiUpdated()}),t.qZA()}}let _t=(()=>{class u{constructor(c,v){this.queryService=c,this.unreadCountGql=v,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.unreadCount$=ke.N.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,Te.U)(({data:P})=>P.notifications.unreadCount),(0,Fe.O)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,Te.U)(({data:P})=>P.notifications.unreadCount),(0,Fe.O)(0))}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(D.a),t.Y36(_e.Kmw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-viewer-button"]],decls:7,vars:7,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["userMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",4,"ngIf"],["nz-menu-divider","",4,"ngIf"],["nz-menu-item","",3,"routerLink"],["nz-menu-item","","href","/admin",4,"ngIf"],["nz-menu-divider",""],["nz-menu-item","",3,"click"],["addMenu","nzDropdownMenu"],["nz-menu-item",""],["routerLink","/evidence/add/submit"],["routerLink","/assertions/add/submit"],["routerLink","/sources/add"],["routerLink","/variant-groups/add/submit"],["nzDirection","horizontal","nzSize","middle"],["class","add-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],[3,"nzCount","nzOverflowCount","nzStyle",4,"nzSpaceItem"],["class","viewer-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"add-btn",3,"nzDropdownMenu"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"nzCount","nzOverflowCount","nzStyle"],["nz-button","","nzSize","large","nzShape","circle","nzType","link",1,"notification-btn",3,"routerLink"],["nz-icon","","nzType","bell","nzTheme","outline"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"viewer-btn",3,"nzDropdownMenu"],["nzDirection","horizontal","nzSize","small"],["shape","circle",3,"user","size","ngClass",4,"nzSpaceItem"],["class","viewer-name",4,"nzSpaceItem"],["nz-icon","","nzType","caret-down","nzTheme","outline",4,"nzSpaceItem"],["shape","circle",3,"user","size","ngClass"],[1,"viewer-name"],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click"],["nz-icon","","nzType","exclamation-circle"],["nz-menu-item","","href","/admin"],["href","/admin"],[3,"coiUpdatedEvent"]],template:function(c,v){if(1&c&&(t.YNc(0,Ct,28,7,"ng-container",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-modal",1),t.NdJ("nzVisibleChange",function(ae){return v.coiUpdateModalVisible=ae})("nzOnCancel",function(){return v.handleCoiModalCancel()}),t.YNc(3,It,2,0,"ng-template",null,2,t.W1O),t.YNc(5,Tt,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&c){const P=t.MAs(4),ae=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,5,v.viewer$)),t.xp6(2),t.Q6J("nzVisible",v.coiUpdateModalVisible)("nzContent",ae)("nzTitle",P)("nzFooter",null)}},directives:[o.O5,l.eJ,Ye.NU,Ye.$1,Je.ix,He.dQ,nt.w,Qe.wA,Qe.cm,K.Ls,je.x7,i.rH,ut.L,o.mk,Qe.RR,L.wO,L.r9,L.YV,i.yS,Xe.du,f.t],pipes:[l.fM],styles:["[_nghost-%COMP%]{display:inline-block}.topMenuIcon[_ngcontent-%COMP%]:hover{cursor:pointer}.topMenuIcon[_ngcontent-%COMP%]{font-size:16px}.topMenuIcon[_ngcontent-%COMP%] .topBarBadge[_ngcontent-%COMP%]{margin-right:-10px;margin-top:-16px}.topMenuIcon[_ngcontent-%COMP%] .topMenuSecondary[_ngcontent-%COMP%]{font-size:10px;margin-left:2px}.add-btn[_ngcontent-%COMP%]{margin-right:0;background-color:#001529;border:none;color:#ccc}.notification-btn[_ngcontent-%COMP%]{background-color:#001529;border:1px solid #096dd9}.viewer-btn[_ngcontent-%COMP%]{background-color:#0050b3;border:none;color:#ccc;padding-left:5px;padding-right:10px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%]{position:relative;top:-1px;left:1px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%] .ant-avatar>img{border-width:1.5px;border-style:solid;border-color:#096dd9;border-radius:22px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar.update-coi[_ngcontent-%COMP%] .ant-avatar>img{border-color:#f5222d}"]}),u})();function St(u,M){1&u&&t._UZ(0,"img",58)}function Dt(u,M){1&u&&t._UZ(0,"img",59)}function Et(u,M){1&u&&t._UZ(0,"cvc-login-button")}function jt(u,M){1&u&&t._UZ(0,"cvc-viewer-button")}const qe=function(u){return{"is-collapsed":u}},Nt=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class u{constructor(c){this.viewerService=c,this.isCollapsed=!1}ngOnInit(){this.data$=this.viewerService.data$,this.viewer$=this.viewerService.viewer$,this.signedIn$=this.viewerService.signedIn$,this.signedOut$=this.viewerService.signedOut$,this.canCurate$=this.viewerService.canCurate$,this.canModerate$=this.viewerService.canModerate$}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(D.a))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-layout"]],decls:124,vars:46,consts:[[1,"app-layout"],["nzCollapsible","","nzBreakpoint","md",1,"app-sider",3,"nzWidth","nzCollapsedWidth","nzCollapsed","nzTrigger","nzCollapsedChange"],["routerLink","/"],[1,"sidebar-logo",3,"ngClass"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["nz-menu","","nzTheme","dark","nzMode","inline",1,"sidebar-menu",3,"ngClass","nzInlineCollapsed"],["nz-menu-group","",3,"nzTitle"],["nz-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzSelected","","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-assertion"],["routerLink","/assertions"],["nz-icon","","nzType","civic-evidence"],["routerLink","/evidence"],["nz-icon","","nzType","civic-gene"],["routerLink","/genes"],["nz-icon","","nzType","civic-variant"],["routerLink","/variants"],["nz-icon","","nzType","civic-variantgroup"],["routerLink","/variant-groups"],["nz-icon","","nzType","audit"],["routerLink","/clinical-trials"],["nz-icon","","nzType","civic-disease"],["routerLink","/diseases"],["nz-icon","","nzType","civic-intervention"],["routerLink","/drugs"],["nz-icon","","nzType","civic-phenotype"],["routerLink","/phenotypes"],["nz-icon","","nzType","civic-source"],["routerLink","/sources"],["nz-icon","","nzType","civic-varianttype"],["routerLink","/variant-types"],["nz-icon","","nzType","civic-event"],["routerLink","/curation/activity"],["nz-icon","","nzType","file-add"],["routerLink","/curation/queues"],["nz-icon","","nzType","civic-curator"],["routerLink","/users","id","main-users"],["nz-icon","","nzType","civic-organization"],["routerLink","/organizations","id","main-organization"],["nz-icon","","nzType","download"],["routerLink","/releases","id","releases"],["nz-tooltip","","nzTooltipPlacement","rightTop","nzTooltipTitle","By marking the work with a CC0 public domain dedication, the creator is giving up their copyright and allowing reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",1,"cc-notice",3,"ngClass"],["src","assets/images/CC0-notice-glyph.svg","alt","CC0 1.0 Universal",1,"cc-glyph"],["src","assets/images/CC0-notice-txt.svg","alt","This work has been marked as dedicated to the public domain.",1,"cc-txt"],[1,"right-layout",3,"ngClass"],["nz-row",""],["nz-col","","nzFlex","40px"],[1,"header-trigger",3,"click"],["nz-icon","",1,"trigger",3,"nzType"],["nz-col","","nzFlex","300px","id","header-search"],["nz-col","","nzFlex","300px","id","header-menu"],["nz-menu","","nzMode","horizontal","nzTheme","dark"],["nz-menu-item","","nzSelected","","nzMatchRouter",""],["routerLink","/welcome"],["routerLink","/pages/about"],["routerLink","/pages/help"],["nz-col","","nzFlex","auto","id","header-viewer"],[4,"ngIf"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"]],template:function(c,v){1&c&&(t.TgZ(0,"nz-layout",0),t.TgZ(1,"nz-sider",1),t.NdJ("nzCollapsedChange",function(ae){return v.isCollapsed=ae}),t.TgZ(2,"a",2),t.TgZ(3,"div",3),t.YNc(4,St,1,0,"img",4),t.YNc(5,Dt,1,0,"img",5),t.qZA(),t.qZA(),t.TgZ(6,"ul",6),t.TgZ(7,"li",7),t.TgZ(8,"ul"),t.TgZ(9,"li",8),t._UZ(10,"i",9),t.TgZ(11,"span"),t.TgZ(12,"a",10),t._uU(13,"Assertions"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"li",8),t._UZ(15,"i",11),t.TgZ(16,"span"),t.TgZ(17,"a",12),t._uU(18,"Evidence"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(19,"li",8),t._UZ(20,"i",13),t.TgZ(21,"span"),t.TgZ(22,"a",14),t._uU(23,"Genes"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"li",8),t._UZ(25,"i",15),t.TgZ(26,"span"),t.TgZ(27,"a",16),t._uU(28,"Variants"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(29,"li",8),t._UZ(30,"i",17),t.TgZ(31,"span"),t.TgZ(32,"a",18),t._uU(33,"Variant Groups"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(34,"li",8),t._UZ(35,"i",19),t.TgZ(36,"span"),t.TgZ(37,"a",20),t._uU(38,"Clinical Trials"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(39,"li",8),t._UZ(40,"i",21),t.TgZ(41,"span"),t.TgZ(42,"a",22),t._uU(43,"Diseases"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(44,"li",8),t._UZ(45,"i",23),t.TgZ(46,"span"),t.TgZ(47,"a",24),t._uU(48,"Drugs"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(49,"li",8),t._UZ(50,"i",25),t.TgZ(51,"span"),t.TgZ(52,"a",26),t._uU(53,"Phenotypes"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(54,"li",8),t._UZ(55,"i",27),t.TgZ(56,"span"),t.TgZ(57,"a",28),t._uU(58,"Sources"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(59,"li",8),t._UZ(60,"i",29),t.TgZ(61,"span"),t.TgZ(62,"a",30),t._uU(63,"Variant Types"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(64,"li",7),t.TgZ(65,"ul"),t.TgZ(66,"li",8),t._UZ(67,"i",31),t.TgZ(68,"span"),t.TgZ(69,"a",32),t._uU(70," Activity "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(71,"li",8),t._UZ(72,"i",33),t.TgZ(73,"span"),t.TgZ(74,"a",34),t._uU(75,"Queues"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(76,"li",7),t.TgZ(77,"ul"),t.TgZ(78,"li",8),t._UZ(79,"i",35),t.TgZ(80,"span"),t.TgZ(81,"a",36),t._uU(82,"Contributors"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(83,"li",8),t._UZ(84,"i",37),t.TgZ(85,"span"),t.TgZ(86,"a",38),t._uU(87,"Organizations"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(88,"li",7),t.TgZ(89,"ul"),t.TgZ(90,"li",8),t._UZ(91,"i",39),t.TgZ(92,"span"),t.TgZ(93,"a",40),t._uU(94,"Data Releases"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(95,"div",41),t._UZ(96,"img",42),t._UZ(97,"img",43),t.qZA(),t.qZA(),t.TgZ(98,"nz-layout",44),t.TgZ(99,"nz-header"),t.TgZ(100,"div",45),t.TgZ(101,"div",46),t.TgZ(102,"span",47),t.NdJ("click",function(){return v.isCollapsed=!v.isCollapsed}),t._UZ(103,"i",48),t.qZA(),t.qZA(),t.TgZ(104,"div",49),t._UZ(105,"cvc-quicksearch"),t.qZA(),t.TgZ(106,"div",50),t.TgZ(107,"ul",51),t.TgZ(108,"li",52),t.TgZ(109,"a",53),t._uU(110,"Home"),t.qZA(),t.qZA(),t.TgZ(111,"li",52),t.TgZ(112,"a",54),t._uU(113,"About CIViC"),t.qZA(),t.qZA(),t.TgZ(114,"li",52),t.TgZ(115,"a",55),t._uU(116,"Help"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(117,"div",56),t.YNc(118,Et,1,0,"cvc-login-button",57),t.ALo(119,"async"),t.YNc(120,jt,1,0,"cvc-viewer-button",57),t.ALo(121,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(122,"nz-content"),t._UZ(123,"router-outlet"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.xp6(1),t.Q6J("nzWidth",170)("nzCollapsedWidth",80)("nzCollapsed",v.isCollapsed)("nzTrigger",null),t.xp6(2),t.Q6J("ngClass",t.VKq(38,qe,v.isCollapsed)),t.xp6(1),t.Q6J("ngIf",!v.isCollapsed),t.xp6(1),t.Q6J("ngIf",v.isCollapsed),t.xp6(1),t.Q6J("ngClass",t.VKq(40,qe,v.isCollapsed))("nzInlineCollapsed",v.isCollapsed),t.xp6(1),t.Q6J("nzTitle",v.isCollapsed?"KNOW":"KNOWLEDGEBASE"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Assertions":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Evidence":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Genes":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variants":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variant Groups":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Clinical Trials":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Diseases":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Drugs":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Phenotypes":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Sources":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Variant Types":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"CURATE":"CURATION"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Activity":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Pending Queues":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"COMM":"COMMUNITY"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Users":""),t.xp6(5),t.Q6J("nzTooltipTitle",v.isCollapsed?"Organizations":""),t.xp6(5),t.Q6J("nzTitle",v.isCollapsed?"RES":"RESOURCES"),t.xp6(2),t.Q6J("nzTooltipTitle",v.isCollapsed?"Data Releases":""),t.xp6(5),t.Q6J("ngClass",t.VKq(42,qe,v.isCollapsed)),t.xp6(3),t.Q6J("ngClass",t.VKq(44,qe,v.isCollapsed)),t.xp6(5),t.Q6J("nzType",v.isCollapsed?"menu-unfold":"menu-fold"),t.xp6(15),t.Q6J("ngIf",t.lcZ(119,34,v.signedOut$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(121,36,v.signedIn$)))},directives:[w,g,i.yS,o.mk,o.O5,L.wO,L.uA,L.r9,Q.SY,K.Ls,W,ye.SK,ye.t3,ze,Ze.s,_t,pe,i.lC],pipes:[o.Ov],styles:["[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-layout[_ngcontent-%COMP%]{min-height:100vh}nz-sider[_ngcontent-%COMP%]{width:170px;overflow:auto;height:100%;position:fixed;left:0}.right-layout[_ngcontent-%COMP%]{margin-left:170px;width:100%;position:relative;transition:all .2s,padding 0s;background-color:#001529}.right-layout.is-collapsed[_ngcontent-%COMP%]{margin-left:80px}.sidebar-menu[_ngcontent-%COMP%]{margin-top:-20px}.sidebar-menu[_ngcontent-%COMP%] .ant-menu-item-group-title{padding-bottom:0}.sidebar-menu.is-collapsed[_ngcontent-%COMP%]{margin-top:-8px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-item-group-title{text-align:center}.cc-notice[_ngcontent-%COMP%]{margin-top:5em;text-align:center;width:170px}.cc-notice[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:56px}.cc-notice[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{width:76px}.cc-notice.is-collapsed[_ngcontent-%COMP%]{width:80px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:35px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{display:none}.sidebar-logo[_ngcontent-%COMP%]{height:90px}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:133px;height:auto;margin:12px 16px;transition:all .2s}.sidebar-logo.is-collapsed[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:auto;margin:12px 20px;transition:all .2s}.ant-layout-header[_ngcontent-%COMP%]{height:64px;line-height:64px;padding:0;position:fixed;width:calc(100% - 170px);z-index:10;color:#d6e4ff}.header-trigger[_ngcontent-%COMP%]{height:64px;cursor:pointer;color:#d6e4ff;padding:1em 1em 1em 0}#header-menu[_ngcontent-%COMP%]{text-align:right;height:64px}#header-search[_ngcontent-%COMP%]{height:64px;padding-right:16px}#header-viewer[_ngcontent-%COMP%]{text-align:right;padding-right:1em}.header-quicksearch[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-user[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#d6e4ff}nz-content[_ngcontent-%COMP%]{margin-top:64px;overflow:initial;position:relative;z-index:1;background-color:#273340;border-top:1px solid #3e5166;border-left:1px solid #3e5166;padding:12px;border-top-left-radius:16px}"]}),u})(),children:[{path:"assertions",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(1679),r.e(305),r.e(3883),r.e(6875),r.e(2033),r.e(3730),r.e(8592),r.e(9020)]).then(r.bind(r,136)).then(u=>u.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"clinical-trials",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(305),r.e(7717),r.e(6519)]).then(r.bind(r,1838)).then(u=>u.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(2395)]).then(r.bind(r,233)).then(u=>u.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"drugs",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(8422)]).then(r.bind(r,1592)).then(u=>u.DrugsModule),data:{breadcrumb:"Drugs"}},{path:"evidence",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(305),r.e(1457)]).then(r.bind(r,7727)).then(u=>u.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(681)]).then(r.bind(r,681)).then(u=>u.GenesModule),data:{breadcrumb:"Genes"}},{path:"organizations",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(4292),r.e(3883),r.e(392),r.e(9484),r.e(376),r.e(3074),r.e(8592),r.e(3073)]).then(r.bind(r,3073)).then(u=>u.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(3883),r.e(4721)]).then(r.bind(r,1076)).then(u=>u.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(1679),r.e(305),r.e(2738),r.e(55),r.e(6875),r.e(2043),r.e(9484),r.e(2033),r.e(7717),r.e(8592),r.e(3648)]).then(r.bind(r,359)).then(u=>u.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(3883),r.e(9484),r.e(4276)]).then(r.bind(r,7563)).then(u=>u.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(5193),r.e(9890),r.e(9001),r.e(2826),r.e(305),r.e(2738),r.e(55),r.e(4292),r.e(3883),r.e(9484),r.e(376),r.e(3074),r.e(3218)]).then(r.bind(r,3218)).then(u=>u.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([r.e(7064),r.e(6256),r.e(3501),r.e(9890),r.e(79)]).then(r.bind(r,79)).then(u=>u.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(1750),r.e(4658)]).then(r.bind(r,9221)).then(u=>u.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([r.e(7064),r.e(3501),r.e(5193),r.e(9890),r.e(392),r.e(1750),r.e(4729)]).then(r.bind(r,1875)).then(u=>u.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([r.e(6256),r.e(3501),r.e(5193),r.e(9001),r.e(2826),r.e(2738),r.e(4292),r.e(376),r.e(6303)]).then(r.bind(r,6528)).then(u=>u.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([r.e(7064),r.e(9890),r.e(4579)]).then(r.bind(r,4579)).then(u=>u.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>Promise.all([r.e(7064),r.e(4038)]).then(r.bind(r,4038)).then(u=>u.PagesModule),data:{breadcrumb:"Pages"}}]}];let At=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[i.Bz.forChild(Nt)],i.Bz]}),u})();var Ot=r(3618),Mt=r(5109),Lt=r(4546);let xt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,Oe.u5,i.Bz,l.WG,Ee.o7,Lt.U5,K.PV,m]]}),u})();var Ft=r(1844),bt=r(5473),Vt=r(330);let Zt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,l.WG,Qe.b1,i.Bz,Je.sL,Ye.zf,K.PV,je.mS,Q.cg,Xe.Qp,bt.H,Vt.e]]}),u})(),kt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[o.ez,At,K.PV,ye.Jb,O,L.ip,Q.cg,Ot.ZJ,Mt.s,Ft.B,Zt,xt]]}),u})()},6792:(De,re,r)=>{r.d(re,{g:()=>F});var o=r(353),t=r(3489),D=r(9312);function F(A,L=o.P){const K=function i(A){return A instanceof Date&&!isNaN(+A)}(A)?+A-L.now():Math.abs(A);return H=>H.lift(new Z(K,L))}class Z{constructor(L,G){this.delay=L,this.scheduler=G}call(L,G){return G.subscribe(new B(L,this.delay,this.scheduler))}}class B extends t.L{constructor(L,G,K){super(L),this.delay=G,this.scheduler=K,this.queue=[],this.active=!1,this.errored=!1}static dispatch(L){const G=L.source,K=G.queue,H=L.scheduler,le=L.destination;for(;K.length>0&&K[0].time-H.now()<=0;)K.shift().notification.observe(le);if(K.length>0){const te=Math.max(0,K[0].time-H.now());this.schedule(L,te)}else this.unsubscribe(),G.active=!1}_schedule(L){this.active=!0,this.destination.add(L.schedule(B.dispatch,this.delay,{source:this,destination:this.destination,scheduler:L}))}scheduleNotification(L){if(!0===this.errored)return;const G=this.scheduler,K=new q(G.now()+this.delay,L);this.queue.push(K),!1===this.active&&this._schedule(G)}_next(L){this.scheduleNotification(D.P.createNext(L))}_error(L){this.errored=!0,this.queue=[],this.destination.error(L),this.unsubscribe()}_complete(){this.scheduleNotification(D.P.createComplete()),this.unsubscribe()}}class q{constructor(L,G){this.time=L,this.notification=G}}},373:(De,re,r)=>{r.d(re,{j:()=>i});var o=r(4850);function i(...D){const F=D.length;if(0===F)throw new Error("list of properties cannot be empty.");return Z=>(0,o.U)(function t(D,F){return B=>{let q=B;for(let A=0;A{r.d(re,{Dz:()=>te,Rt:()=>oe});var o=r(655),i=r(5e3),t=r(9439),D=r(1721),F=r(925),Z=r(9808),B=r(647),q=r(226);const A=["textEl"];function L(V,b){if(1&V&&i._UZ(0,"i",3),2&V){const I=i.oxw();i.Q6J("nzType",I.nzIcon)}}function G(V,b){if(1&V){const I=i.EpF();i.TgZ(0,"img",4),i.NdJ("error",function(ne){return i.CHM(I),i.oxw().imgError(ne)}),i.qZA()}if(2&V){const I=i.oxw();i.Q6J("src",I.nzSrc,i.LSH),i.uIk("srcset",I.nzSrcSet,i.LSH)("alt",I.nzAlt)}}function K(V,b){if(1&V&&(i.TgZ(0,"span",5,6),i._uU(2),i.qZA()),2&V){const I=i.oxw();i.Q6J("ngStyle",I.textStyles),i.xp6(2),i.Oqu(I.nzText)}}let te=(()=>{class V{constructor(I,$,ne,X){this.nzConfigService=I,this.elementRef=$,this.cdr=ne,this.platform=X,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new i.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(I){this.nzError.emit(I),I.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const I=this.textEl.nativeElement.offsetWidth,$=this.el.getBoundingClientRect().width,ne=2*this.nzGap<$?2*this.nzGap:8;this.textStyles={transform:`scale(${$-ne{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return V.\u0275fac=function(I){return new(I||V)(i.Y36(t.jY),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(F.t4))},V.\u0275cmp=i.Xpm({type:V,selectors:[["nz-avatar"]],viewQuery:function(I,$){if(1&I&&i.Gf(A,5),2&I){let ne;i.iGM(ne=i.CRH())&&($.textEl=ne.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(I,$){2&I&&(i.Udp("width",$.customSize)("height",$.customSize)("line-height",$.customSize)("font-size",$.hasIcon&&$.customSize?$.nzSize/2:null,"px"),i.ekj("ant-avatar-lg","large"===$.nzSize)("ant-avatar-sm","small"===$.nzSize)("ant-avatar-square","square"===$.nzShape)("ant-avatar-circle","circle"===$.nzShape)("ant-avatar-icon",$.nzIcon)("ant-avatar-image",$.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[i.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(I,$){1&I&&(i.YNc(0,L,1,1,"i",0),i.YNc(1,G,1,3,"img",1),i.YNc(2,K,3,2,"span",2)),2&I&&(i.Q6J("ngIf",$.nzIcon&&$.hasIcon),i.xp6(1),i.Q6J("ngIf",$.nzSrc&&$.hasSrc),i.xp6(1),i.Q6J("ngIf",$.nzText&&$.hasText))},directives:[Z.O5,B.Ls,Z.PC],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,t.oS)()],V.prototype,"nzShape",void 0),(0,o.gn)([(0,t.oS)()],V.prototype,"nzSize",void 0),(0,o.gn)([(0,t.oS)(),(0,D.Rn)()],V.prototype,"nzGap",void 0),V})(),oe=(()=>{class V{}return V.\u0275fac=function(I){return new(I||V)},V.\u0275mod=i.oAB({type:V}),V.\u0275inj=i.cJS({imports:[[q.vT,Z.ez,B.PV,F.ud]]}),V})()},4401:(De,re,r)=>{r.d(re,{x7:()=>ue,mS:()=>Y,F9:()=>W});var o=r(655),i=r(5e3),t=r(8929),D=r(7625),F=r(8076),Z=r(9439),B=r(1721),q=r(226),A=r(4832),L=r(9808),G=r(969),K=r(7144);function H(g,w){if(1&g&&(i.TgZ(0,"p",6),i._uU(1),i.qZA()),2&g){const O=w.$implicit,Q=i.oxw(2).index,ye=i.oxw(2);i.ekj("current",O===ye.countArray[Q]),i.xp6(1),i.hij(" ",O," ")}}function le(g,w){if(1&g&&(i.ynx(0),i.YNc(1,H,2,3,"p",5),i.BQk()),2&g){const O=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",O.countSingleArray)}}function te(g,w){if(1&g&&(i.TgZ(0,"span",3),i.YNc(1,le,2,1,"ng-container",4),i.qZA()),2&g){const O=w.index,Q=i.oxw(2);i.Udp("transform","translateY("+100*-Q.countArray[O]+"%)"),i.Q6J("nzNoAnimation",Q.noAnimation),i.xp6(1),i.Q6J("ngIf",!Q.nzDot&&void 0!==Q.countArray[O])}}function se(g,w){if(1&g&&(i.ynx(0),i.YNc(1,te,2,4,"span",2),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Q6J("ngForOf",O.maxNumberArray)}}function oe(g,w){if(1&g&&i._uU(0),2&g){const O=i.oxw();i.hij("",O.nzOverflowCount,"+")}}function V(g,w){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const O=i.oxw(2);i.xp6(1),i.Oqu(O.nzText)}}function b(g,w){if(1&g&&(i.ynx(0),i._UZ(1,"span",2),i.TgZ(2,"span",3),i.YNc(3,V,2,1,"ng-container",1),i.qZA(),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Gre("ant-badge-status-dot ant-badge-status-",O.nzStatus||O.presetColor,""),i.Udp("background",!O.presetColor&&O.nzColor),i.Q6J("ngStyle",O.nzStyle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",O.nzText)}}function I(g,w){if(1&g&&i._UZ(0,"nz-badge-sup",5),2&g){const O=i.oxw(2);i.Q6J("nzOffset",O.nzOffset)("nzTitle",O.nzTitle)("nzStyle",O.nzStyle)("nzDot",O.nzDot)("nzOverflowCount",O.nzOverflowCount)("disableAnimation",!!(O.nzStandalone||O.nzStatus||O.nzColor||null!=O.noAnimation&&O.noAnimation.nzNoAnimation))("nzCount",O.nzCount)("noAnimation",!(null==O.noAnimation||!O.noAnimation.nzNoAnimation))}}function $(g,w){if(1&g&&(i.ynx(0),i.YNc(1,I,1,8,"nz-badge-sup",4),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Q6J("ngIf",O.showSup)}}const ne=["*"];function X(g,w){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const O=i.oxw();i.xp6(1),i.Oqu(O.nzText)}}const de=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let fe=(()=>{class g{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9]}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(O){const{nzOverflowCount:Q,nzCount:ye}=O;ye&&"number"==typeof ye.currentValue&&(this.count=Math.max(0,ye.currentValue),this.countArray=this.count.toString().split("").map(_e=>+_e)),Q&&this.generateMaxNumberArray()}}return g.\u0275fac=function(O){return new(O||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:15,hostBindings:function(O,Q){2&O&&(i.uIk("title",null===Q.nzTitle?"":Q.nzTitle||Q.nzCount),i.d8E("@.disabled",Q.disableAnimation)("@zoomBadgeMotion",void 0),i.Akn(Q.nzStyle),i.Udp("right",Q.nzOffset&&Q.nzOffset[0]?-Q.nzOffset[0]:null,"px")("margin-top",Q.nzOffset&&Q.nzOffset[1]?Q.nzOffset[1]:null,"px"),i.ekj("ant-badge-count",!Q.nzDot)("ant-badge-dot",Q.nzDot)("ant-badge-multiple-words",Q.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation"},exportAs:["nzBadgeSup"],features:[i.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["overflowTemplate",""],["class","ant-scroll-number-only",3,"nzNoAnimation","transform",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[4,"ngIf"],["class","ant-scroll-number-only-unit",3,"current",4,"ngFor","ngForOf"],[1,"ant-scroll-number-only-unit"]],template:function(O,Q){if(1&O&&(i.YNc(0,se,2,1,"ng-container",0),i.YNc(1,oe,1,1,"ng-template",null,1,i.W1O)),2&O){const ye=i.MAs(2);i.Q6J("ngIf",Q.count<=Q.nzOverflowCount)("ngIfElse",ye)}},directives:[L.O5,L.sg,A.P],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),g})(),ue=(()=>{class g{constructor(O,Q,ye,_e,Se,Ee){this.nzConfigService=O,this.renderer=Q,this.cdr=ye,this.elementRef=_e,this.directionality=Se,this.noAnimation=Ee,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new t.xQ,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null}ngOnInit(){var O;null===(O=this.directionality.change)||void 0===O||O.pipe((0,D.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(O){const{nzColor:Q,nzShowDot:ye,nzDot:_e,nzCount:Se,nzShowZero:Ee}=O;Q&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null),(ye||_e||Se||Ee)&&(this.showSup=this.nzShowDot&&this.nzDot||this.nzCount>0||this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return"rtl"===this.dir}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(O){return new(O||g)(i.Y36(Z.jY),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(q.Is,8),i.Y36(A.P,9))},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(O,Q){2&O&&i.ekj("ant-badge-status",Q.nzStatus)("ant-badge-not-a-wrapper",!!(Q.nzStandalone||Q.nzStatus||Q.nzColor))},inputs:{nzShowZero:"nzShowZero",nzShowDot:"nzShowDot",nzStandalone:"nzStandalone",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset"},exportAs:["nzBadge"],features:[i.TTD],ngContentSelectors:ne,decls:3,vars:2,consts:[[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation",4,"ngIf"],[3,"nzOffset","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(O,Q){1&O&&(i.F$t(),i.YNc(0,b,4,7,"ng-container",0),i.Hsn(1),i.YNc(2,$,2,1,"ng-container",1)),2&O&&(i.Q6J("ngIf",Q.nzStatus||Q.nzColor),i.xp6(2),i.Q6J("nzStringTemplateOutlet",Q.nzCount))},directives:[fe,L.O5,L.PC,G.f],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),(0,o.gn)([(0,B.yF)()],g.prototype,"nzShowZero",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzShowDot",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzStandalone",void 0),(0,o.gn)([(0,B.yF)()],g.prototype,"nzDot",void 0),(0,o.gn)([(0,Z.oS)()],g.prototype,"nzOverflowCount",void 0),(0,o.gn)([(0,Z.oS)()],g.prototype,"nzColor",void 0),g})(),W=(()=>{class g{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(O){const{nzColor:Q}=O;Q&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null)}}return g.\u0275fac=function(O){return new(O||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[i.TTD],ngContentSelectors:ne,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"]],template:function(O,Q){1&O&&(i.F$t(),i.Hsn(0),i.TgZ(1,"div",0),i.YNc(2,X,2,1,"ng-container",1),i._UZ(3,"div",2),i.qZA()),2&O&&(i.xp6(1),i.Tol(Q.presetColor&&"ant-ribbon-color-"+Q.presetColor),i.Udp("background-color",!Q.presetColor&&Q.nzColor),i.ekj("ant-ribbon-placement-end","end"===Q.nzPlacement)("ant-ribbon-placement-start","start"===Q.nzPlacement),i.xp6(1),i.Q6J("nzStringTemplateOutlet",Q.nzText),i.xp6(1),i.Udp("color",!Q.presetColor&&Q.nzColor))},directives:[G.f],encapsulation:2,changeDetection:0}),g})(),Y=(()=>{class g{}return g.\u0275fac=function(O){return new(O||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({imports:[[q.vT,L.ez,K.Q8,G.T,A.g]]}),g})()},7484:(De,re,r)=>{r.d(re,{bd:()=>Re,vh:()=>Pe,_i:()=>Se});var o=r(655),i=r(5e3),t=r(1721),D=r(8929),F=r(7625),Z=r(9439),B=r(226),q=r(9808),A=r(969);function L(N,ee){1&N&&i.Hsn(0)}const G=["*"];function K(N,ee){1&N&&(i.TgZ(0,"div",4),i._UZ(1,"div",5),i.qZA()),2&N&&i.Q6J("ngClass",ee.$implicit)}function H(N,ee){if(1&N&&(i.TgZ(0,"div",2),i.YNc(1,K,2,1,"div",3),i.qZA()),2&N){const _=ee.$implicit;i.xp6(1),i.Q6J("ngForOf",_)}}function le(N,ee){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const _=i.oxw(3);i.xp6(1),i.Oqu(_.nzTitle)}}function te(N,ee){if(1&N&&(i.TgZ(0,"div",11),i.YNc(1,le,2,1,"ng-container",12),i.qZA()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function se(N,ee){if(1&N&&(i.ynx(0),i._uU(1),i.BQk()),2&N){const _=i.oxw(3);i.xp6(1),i.Oqu(_.nzExtra)}}function oe(N,ee){if(1&N&&(i.TgZ(0,"div",13),i.YNc(1,se,2,1,"ng-container",12),i.qZA()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",_.nzExtra)}}function V(N,ee){}function b(N,ee){if(1&N&&(i.ynx(0),i.YNc(1,V,0,0,"ng-template",14),i.BQk()),2&N){const _=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",_.listOfNzCardTabComponent.template)}}function I(N,ee){if(1&N&&(i.TgZ(0,"div",6),i.TgZ(1,"div",7),i.YNc(2,te,2,1,"div",8),i.YNc(3,oe,2,1,"div",9),i.qZA(),i.YNc(4,b,2,1,"ng-container",10),i.qZA()),2&N){const _=i.oxw();i.xp6(2),i.Q6J("ngIf",_.nzTitle),i.xp6(1),i.Q6J("ngIf",_.nzExtra),i.xp6(1),i.Q6J("ngIf",_.listOfNzCardTabComponent)}}function $(N,ee){}function ne(N,ee){if(1&N&&(i.TgZ(0,"div",15),i.YNc(1,$,0,0,"ng-template",14),i.qZA()),2&N){const _=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",_.nzCover)}}function X(N,ee){1&N&&(i.ynx(0),i.Hsn(1),i.BQk())}function de(N,ee){1&N&&i._UZ(0,"nz-card-loading")}function fe(N,ee){}function pe(N,ee){if(1&N&&(i.TgZ(0,"li"),i.TgZ(1,"span"),i.YNc(2,fe,0,0,"ng-template",14),i.qZA(),i.qZA()),2&N){const _=ee.$implicit,J=i.oxw(2);i.Udp("width",100/J.nzActions.length,"%"),i.xp6(2),i.Q6J("ngTemplateOutlet",_)}}function ue(N,ee){if(1&N&&(i.TgZ(0,"ul",16),i.YNc(1,pe,3,3,"li",17),i.qZA()),2&N){const _=i.oxw();i.xp6(1),i.Q6J("ngForOf",_.nzActions)}}let _e=(()=>{class N{constructor(){this.nzHoverable=!0}}return N.\u0275fac=function(_){return new(_||N)},N.\u0275dir=i.lG2({type:N,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(_,J){2&_&&i.ekj("ant-card-hoverable",J.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,o.gn)([(0,t.yF)()],N.prototype,"nzHoverable",void 0),N})(),Se=(()=>{class N{}return N.\u0275fac=function(_){return new(_||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card-tab"]],viewQuery:function(_,J){if(1&_&&i.Gf(i.Rgc,7),2&_){let U;i.iGM(U=i.CRH())&&(J.template=U.first)}},exportAs:["nzCardTab"],ngContentSelectors:G,decls:1,vars:0,template:function(_,J){1&_&&(i.F$t(),i.YNc(0,L,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),N})(),Ee=(()=>{class N{constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return N.\u0275fac=function(_){return new(_||N)},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,J){1&_&&(i.TgZ(0,"div",0),i.YNc(1,H,2,1,"div",1),i.qZA()),2&_&&(i.xp6(1),i.Q6J("ngForOf",J.listOfLoading))},directives:[q.sg,q.mk],encapsulation:2,changeDetection:0}),N})(),Re=(()=>{class N{constructor(_,J,U){this.nzConfigService=_,this.cdr=J,this.directionality=U,this._nzModuleName="card",this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new D.xQ,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,F.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,F.R)(this.destroy$)).subscribe(J=>{this.dir=J,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return N.\u0275fac=function(_){return new(_||N)(i.Y36(Z.jY),i.Y36(i.sBO),i.Y36(B.Is,8))},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card"]],contentQueries:function(_,J,U){if(1&_&&(i.Suo(U,Se,5),i.Suo(U,_e,4)),2&_){let ge;i.iGM(ge=i.CRH())&&(J.listOfNzCardTabComponent=ge.first),i.iGM(ge=i.CRH())&&(J.listOfNzCardGridDirective=ge)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(_,J){2&_&&i.ekj("ant-card-loading",J.nzLoading)("ant-card-bordered",!1===J.nzBorderless&&J.nzBordered)("ant-card-hoverable",J.nzHoverable)("ant-card-small","small"===J.nzSize)("ant-card-contain-grid",J.listOfNzCardGridDirective&&J.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===J.nzType)("ant-card-contain-tabs",!!J.listOfNzCardTabComponent)("ant-card-rtl","rtl"===J.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:G,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(_,J){if(1&_&&(i.F$t(),i.YNc(0,I,5,3,"div",0),i.YNc(1,ne,2,1,"div",1),i.TgZ(2,"div",2),i.YNc(3,X,2,0,"ng-container",3),i.YNc(4,de,1,0,"ng-template",null,4,i.W1O),i.qZA(),i.YNc(6,ue,2,1,"ul",5)),2&_){const U=i.MAs(5);i.Q6J("ngIf",J.nzTitle||J.nzExtra||J.listOfNzCardTabComponent),i.xp6(1),i.Q6J("ngIf",J.nzCover),i.xp6(1),i.Q6J("ngStyle",J.nzBodyStyle),i.xp6(1),i.Q6J("ngIf",!J.nzLoading)("ngIfElse",U),i.xp6(3),i.Q6J("ngIf",J.nzActions.length)}},directives:[Ee,q.O5,A.f,q.tP,q.PC,q.sg],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzBordered",void 0),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzBorderless",void 0),(0,o.gn)([(0,t.yF)()],N.prototype,"nzLoading",void 0),(0,o.gn)([(0,Z.oS)(),(0,t.yF)()],N.prototype,"nzHoverable",void 0),(0,o.gn)([(0,Z.oS)()],N.prototype,"nzSize",void 0),N})(),Pe=(()=>{class N{}return N.\u0275fac=function(_){return new(_||N)},N.\u0275mod=i.oAB({type:N}),N.\u0275inj=i.cJS({imports:[[q.ez,A.T],B.vT]}),N})()},3677:(De,re,r)=>{r.d(re,{cm:()=>Se,b1:()=>Pe,wA:()=>Re,RR:()=>Ve});var o=r(655),i=r(1159),t=r(7429),D=r(5e3),F=r(8929),Z=r(591),B=r(6787),q=r(3753),A=r(8896),L=r(3426),G=r(7604),K=r(4850),H=r(7545),le=r(2198),te=r(7138),se=r(5778),oe=r(7625),V=r(9439),b=r(6950),I=r(1721),$=r(2845),ne=r(925),X=r(226),de=r(9808),fe=r(4182),pe=r(6042),ue=r(4832),W=r(969),Y=r(647),g=r(4219),w=r(8076);function O(_,J){if(1&_){const U=D.EpF();D.TgZ(0,"div",0),D.NdJ("@slideMotion.done",function(Ce){return D.CHM(U),D.oxw().onAnimationEvent(Ce)})("mouseenter",function(){return D.CHM(U),D.oxw().setMouseState(!0)})("mouseleave",function(){return D.CHM(U),D.oxw().setMouseState(!1)}),D.Hsn(1),D.qZA()}if(2&_){const U=D.oxw();D.ekj("ant-dropdown-rtl","rtl"===U.dir),D.Q6J("ngClass",U.nzOverlayClassName)("ngStyle",U.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("nzNoAnimation",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)}}const Q=["*"],_e=[b.yW.bottomLeft,b.yW.bottomRight,b.yW.topRight,b.yW.topLeft];let Se=(()=>{class _{constructor(U,ge,Ce,Ae,Me,Ie){this.nzConfigService=U,this.elementRef=ge,this.overlay=Ce,this.renderer=Ae,this.viewContainerRef=Me,this.platform=Ie,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new F.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new Z.X(!1),this.nzTrigger$=new Z.X("hover"),this.overlayClose$=new F.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new D.vpe}setDropdownMenuValue(U,ge){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(U,ge)}ngAfterViewInit(){if(this.nzDropdownMenu){const U=this.elementRef.nativeElement,ge=(0,B.T)((0,q.R)(U,"mouseenter").pipe((0,G.h)(!0)),(0,q.R)(U,"mouseleave").pipe((0,G.h)(!1))),Ae=(0,B.T)(this.nzDropdownMenu.mouseState$,ge),Me=(0,q.R)(U,"click").pipe((0,K.U)(()=>!this.nzVisible)),Ie=this.nzTrigger$.pipe((0,H.w)(ve=>"hover"===ve?Ae:"click"===ve?Me:A.E)),Le=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,le.h)(()=>this.nzClickHide),(0,G.h)(!1)),Ne=(0,B.T)(Ie,Le,this.overlayClose$).pipe((0,le.h)(()=>!this.nzDisabled)),Be=(0,B.T)(this.inputVisible$,Ne);(0,L.aj)([Be,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,K.U)(([ve,Ue])=>ve||Ue),(0,te.e)(150),(0,se.x)(),(0,le.h)(()=>this.platform.isBrowser),(0,oe.R)(this.destroy$)).subscribe(ve=>{const xe=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:U).getBoundingClientRect().width;this.nzVisible!==ve&&this.nzVisibleChange.emit(ve),this.nzVisible=ve,ve?(this.overlayRef?this.overlayRef.getConfig().minWidth=xe:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:xe,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,B.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,le.h)($e=>!this.elementRef.nativeElement.contains($e.target))),this.overlayRef.keydownEvents().pipe((0,le.h)($e=>$e.keyCode===i.hY&&!(0,i.Vb)($e)))).pipe((0,oe.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([b.yW[this.nzPlacement],..._e]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new t.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,oe.R)(this.destroy$)).subscribe(ve=>{"void"===ve.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(U){const{nzVisible:ge,nzDisabled:Ce,nzOverlayClassName:Ae,nzOverlayStyle:Me,nzTrigger:Ie}=U;if(Ie&&this.nzTrigger$.next(this.nzTrigger),ge&&this.inputVisible$.next(this.nzVisible),Ce){const Le=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Le,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Le,"disabled")}Ae&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Me&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(V.jY),D.Y36(D.SBq),D.Y36($.aV),D.Y36(D.Qsj),D.Y36(D.s_b),D.Y36(ne.t4))},_.\u0275dir=D.lG2({type:_,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[D.TTD]}),(0,o.gn)([(0,V.oS)(),(0,I.yF)()],_.prototype,"nzBackdrop",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzClickHide",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzDisabled",void 0),(0,o.gn)([(0,I.yF)()],_.prototype,"nzVisible",void 0),_})(),Ee=(()=>{class _{}return _.\u0275fac=function(U){return new(U||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({}),_})(),Re=(()=>{class _{constructor(U,ge,Ce){this.renderer=U,this.nzButtonGroupComponent=ge,this.elementRef=Ce}ngAfterViewInit(){const U=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&U&&this.renderer.addClass(U,"ant-dropdown-button")}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(D.Qsj),D.Y36(pe.fY,9),D.Y36(D.SBq))},_.\u0275dir=D.lG2({type:_,selectors:[["","nz-button","","nz-dropdown",""]]}),_})(),Ve=(()=>{class _{constructor(U,ge,Ce,Ae,Me,Ie,Le){this.cdr=U,this.elementRef=ge,this.renderer=Ce,this.viewContainerRef=Ae,this.nzMenuService=Me,this.directionality=Ie,this.noAnimation=Le,this.mouseState$=new Z.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new D.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new F.xQ}onAnimationEvent(U){this.animationStateChange$.emit(U)}setMouseState(U){this.mouseState$.next(U)}setValue(U,ge){this[U]=ge,this.cdr.markForCheck()}ngOnInit(){var U;null===(U=this.directionality.change)||void 0===U||U.pipe((0,oe.R)(this.destroy$)).subscribe(ge=>{this.dir=ge,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(U){return new(U||_)(D.Y36(D.sBO),D.Y36(D.SBq),D.Y36(D.Qsj),D.Y36(D.s_b),D.Y36(g.hl),D.Y36(X.Is,8),D.Y36(ue.P,9))},_.\u0275cmp=D.Xpm({type:_,selectors:[["nz-dropdown-menu"]],viewQuery:function(U,ge){if(1&U&&D.Gf(D.Rgc,7),2&U){let Ce;D.iGM(Ce=D.CRH())&&(ge.templateRef=Ce.first)}},exportAs:["nzDropdownMenu"],features:[D._Bn([g.hl,{provide:g.Cc,useValue:!0}])],ngContentSelectors:Q,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(U,ge){1&U&&(D.F$t(),D.YNc(0,O,2,7,"ng-template"))},directives:[de.mk,de.PC,ue.P],encapsulation:2,data:{animation:[w.mF]},changeDetection:0}),_})(),Pe=(()=>{class _{}return _.\u0275fac=function(U){return new(U||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({imports:[[X.vT,de.ez,$.U8,fe.u5,pe.sL,g.ip,Y.PV,ue.g,ne.ud,b.e4,Ee,W.T],g.ip]}),_})();new $.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new $.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new $.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new $.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},3762:(De,re,r)=>{r.d(re,{n_:()=>Qe,I2:()=>Fe,t4:()=>ke,AA:()=>je,yw:()=>ze,yi:()=>ie,IO:()=>m,Ph:()=>Xe});var o=r(5e3),i=r(6699),t=r(9808),D=r(969),F=r(655),Z=r(1721),B=r(8929),q=r(8514),A=r(1086),L=r(6787),G=r(591),K=r(2986),H=r(7545),le=r(7625),te=r(685),se=r(226),oe=r(7525),V=r(1894);const b=["*"];function I(f,E){if(1&f&&o._UZ(0,"nz-avatar",3),2&f){const C=o.oxw();o.Q6J("nzSrc",C.nzSrc)}}function $(f,E){1&f&&o.Hsn(0,0,["*ngIf","!nzSrc"])}function ne(f,E){if(1&f&&o._UZ(0,"nz-list-item-meta-avatar",3),2&f){const C=o.oxw();o.Q6J("nzSrc",C.avatarStr)}}function X(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-avatar"),o.GkF(1,4),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",C.avatarTpl)}}function de(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzTitle)}}function fe(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-title"),o.YNc(1,de,2,1,"ng-container",6),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzTitle)}}function pe(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzDescription)}}function ue(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-meta-description"),o.YNc(1,pe,2,1,"ng-container",6),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzDescription)}}function W(f,E){if(1&f&&(o.TgZ(0,"div",5),o.YNc(1,fe,2,1,"nz-list-item-meta-title",1),o.YNc(2,ue,2,1,"nz-list-item-meta-description",1),o.Hsn(3,1),o.Hsn(4,2),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngIf",C.nzTitle&&!C.titleComponent),o.xp6(1),o.Q6J("ngIf",C.nzDescription&&!C.descriptionComponent)}}const Y=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],g=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function w(f,E){1&f&&o.Hsn(0)}const O=["nz-list-item-actions",""];function Q(f,E){}function ye(f,E){1&f&&o._UZ(0,"em",3)}function _e(f,E){if(1&f&&(o.TgZ(0,"li"),o.YNc(1,Q,0,0,"ng-template",1),o.YNc(2,ye,1,0,"em",2),o.qZA()),2&f){const C=E.$implicit,R=E.last;o.xp6(1),o.Q6J("ngTemplateOutlet",C),o.xp6(1),o.Q6J("ngIf",!R)}}function Se(f,E){}const Ee=function(f,E){return{$implicit:f,index:E}};function Oe(f,E){if(1&f&&(o.ynx(0),o.YNc(1,Se,0,0,"ng-template",9),o.BQk()),2&f){const C=E.$implicit,R=E.index,ce=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(2,Ee,C,R))}}function Re(f,E){if(1&f&&(o.TgZ(0,"div",7),o.YNc(1,Oe,2,5,"ng-container",8),o.Hsn(2,4),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngForOf",C.nzDataSource)}}function Ve(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Oqu(C.nzHeader)}}function Pe(f,E){if(1&f&&(o.TgZ(0,"nz-list-header"),o.YNc(1,Ve,2,1,"ng-container",10),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzHeader)}}function N(f,E){1&f&&o._UZ(0,"div"),2&f&&o.Udp("min-height",53,"px")}function ee(f,E){}function _(f,E){if(1&f&&(o.TgZ(0,"div",13),o.YNc(1,ee,0,0,"ng-template",9),o.qZA()),2&f){const C=E.$implicit,R=E.index,ce=o.oxw(2);o.Q6J("nzSpan",ce.nzGrid.span||null)("nzXs",ce.nzGrid.xs||null)("nzSm",ce.nzGrid.sm||null)("nzMd",ce.nzGrid.md||null)("nzLg",ce.nzGrid.lg||null)("nzXl",ce.nzGrid.xl||null)("nzXXl",ce.nzGrid.xxl||null),o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(9,Ee,C,R))}}function J(f,E){if(1&f&&(o.TgZ(0,"div",11),o.YNc(1,_,2,12,"div",12),o.qZA()),2&f){const C=o.oxw();o.Q6J("nzGutter",C.nzGrid.gutter||null),o.xp6(1),o.Q6J("ngForOf",C.nzDataSource)}}function U(f,E){if(1&f&&o._UZ(0,"nz-list-empty",14),2&f){const C=o.oxw();o.Q6J("nzNoResult",C.nzNoResult)}}function ge(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Oqu(C.nzFooter)}}function Ce(f,E){if(1&f&&(o.TgZ(0,"nz-list-footer"),o.YNc(1,ge,2,1,"ng-container",10),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzFooter)}}function Ae(f,E){}function Me(f,E){}function Ie(f,E){if(1&f&&(o.TgZ(0,"nz-list-pagination"),o.YNc(1,Me,0,0,"ng-template",6),o.qZA()),2&f){const C=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzPagination)}}const Le=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Ne=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Be(f,E){if(1&f&&o._UZ(0,"ul",6),2&f){const C=o.oxw(2);o.Q6J("nzActions",C.nzActions)}}function ve(f,E){if(1&f&&(o.YNc(0,Be,1,1,"ul",5),o.Hsn(1)),2&f){const C=o.oxw();o.Q6J("ngIf",C.nzActions&&C.nzActions.length>0)}}function Ue(f,E){if(1&f&&(o.ynx(0),o._uU(1),o.BQk()),2&f){const C=o.oxw(3);o.xp6(1),o.Oqu(C.nzContent)}}function xe(f,E){if(1&f&&(o.ynx(0),o.YNc(1,Ue,2,1,"ng-container",8),o.BQk()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("nzStringTemplateOutlet",C.nzContent)}}function $e(f,E){if(1&f&&(o.Hsn(0,1),o.Hsn(1,2),o.YNc(2,xe,2,1,"ng-container",7)),2&f){const C=o.oxw();o.xp6(2),o.Q6J("ngIf",C.nzContent)}}function it(f,E){1&f&&o.Hsn(0,3)}function ot(f,E){}function tt(f,E){}function rt(f,E){}function h(f,E){}function st(f,E){if(1&f&&(o.YNc(0,ot,0,0,"ng-template",9),o.YNc(1,tt,0,0,"ng-template",9),o.YNc(2,rt,0,0,"ng-template",9),o.YNc(3,h,0,0,"ng-template",9)),2&f){const C=o.oxw(),R=o.MAs(3),ce=o.MAs(5),he=o.MAs(1);o.Q6J("ngTemplateOutlet",R),o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzExtra),o.xp6(1),o.Q6J("ngTemplateOutlet",ce),o.xp6(1),o.Q6J("ngTemplateOutlet",he)}}function at(f,E){}function ct(f,E){}function lt(f,E){}function Ge(f,E){if(1&f&&(o.TgZ(0,"nz-list-item-extra"),o.YNc(1,lt,0,0,"ng-template",9),o.qZA()),2&f){const C=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",C.nzExtra)}}function pt(f,E){}function p(f,E){if(1&f&&(o.ynx(0),o.TgZ(1,"div",10),o.YNc(2,at,0,0,"ng-template",9),o.YNc(3,ct,0,0,"ng-template",9),o.qZA(),o.YNc(4,Ge,2,1,"nz-list-item-extra",7),o.YNc(5,pt,0,0,"ng-template",9),o.BQk()),2&f){const C=o.oxw(),R=o.MAs(3),ce=o.MAs(1),he=o.MAs(5);o.xp6(2),o.Q6J("ngTemplateOutlet",R),o.xp6(1),o.Q6J("ngTemplateOutlet",ce),o.xp6(1),o.Q6J("ngIf",C.nzExtra),o.xp6(1),o.Q6J("ngTemplateOutlet",he)}}const a=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],j=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let m=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"h4",0),o.Hsn(1),o.qZA())},encapsulation:2,changeDetection:0}),f})(),l=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:b,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},encapsulation:2,changeDetection:0}),f})(),k=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:b,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(C,R){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.YNc(1,I,1,1,"nz-avatar",1),o.YNc(2,$,1,0,"ng-content",2),o.qZA()),2&C&&(o.xp6(1),o.Q6J("ngIf",R.nzSrc),o.xp6(1),o.Q6J("ngIf",!R.nzSrc))},directives:[i.Dz,t.O5],encapsulation:2,changeDetection:0}),f})(),ie=(()=>{class f{constructor(C,R){this.elementRef=C,this.renderer=R,this.avatarStr="",this.renderer.addClass(C.nativeElement,"ant-list-item-meta")}set nzAvatar(C){C instanceof o.Rgc?(this.avatarStr="",this.avatarTpl=C):this.avatarStr=C}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.SBq),o.Y36(o.Qsj))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(C,R,ce){if(1&C&&(o.Suo(ce,l,5),o.Suo(ce,m,5)),2&C){let he;o.iGM(he=o.CRH())&&(R.descriptionComponent=he.first),o.iGM(he=o.CRH())&&(R.titleComponent=he.first)}},inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:g,decls:4,vars:3,consts:[[3,"nzSrc",4,"ngIf"],[4,"ngIf"],["class","ant-list-item-meta-content",4,"ngIf"],[3,"nzSrc"],[3,"ngTemplateOutlet"],[1,"ant-list-item-meta-content"],[4,"nzStringTemplateOutlet"]],template:function(C,R){1&C&&(o.F$t(Y),o.YNc(0,ne,1,1,"nz-list-item-meta-avatar",0),o.YNc(1,X,2,1,"nz-list-item-meta-avatar",1),o.Hsn(2),o.YNc(3,W,5,2,"div",2)),2&C&&(o.Q6J("ngIf",R.avatarStr),o.xp6(1),o.Q6J("ngIf",R.avatarTpl),o.xp6(2),o.Q6J("ngIf",R.nzTitle||R.nzDescription||R.descriptionComponent||R.titleComponent))},directives:[k,m,l,t.O5,t.tP,D.f],encapsulation:2,changeDetection:0}),f})(),ze=(()=>{class f{constructor(){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Ze=(()=>{class f{constructor(){}}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item-action"]],viewQuery:function(C,R){if(1&C&&o.Gf(o.Rgc,5),2&C){let ce;o.iGM(ce=o.CRH())&&(R.templateRef=ce.first)}},exportAs:["nzListItemAction"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),f})(),Te=(()=>{class f{constructor(C,R){this.ngZone=C,this.cdr=R,this.nzActions=[],this.actions=[],this.destroy$=new B.xQ,this.inputActionChanges$=new B.xQ,this.contentChildrenChanges$=(0,q.P)(()=>this.nzListItemActions?(0,A.of)(null):this.ngZone.onStable.asObservable().pipe((0,K.q)(1),(0,H.w)(()=>this.contentChildrenChanges$))),(0,L.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,le.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(ce=>ce.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.R0b),o.Y36(o.sBO))},f.\u0275cmp=o.Xpm({type:f,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(C,R,ce){if(1&C&&o.Suo(ce,Ze,4),2&C){let he;o.iGM(he=o.CRH())&&(R.nzListItemActions=he)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[o.TTD],attrs:O,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(C,R){1&C&&o.YNc(0,_e,3,2,"li",0),2&C&&o.Q6J("ngForOf",R.actions)},directives:[t.sg,t.tP,t.O5],encapsulation:2,changeDetection:0}),f})(),Fe=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(C,R){1&C&&o._UZ(0,"nz-embed-empty",0),2&C&&o.Q6J("nzComponentName","list")("specificContent",R.nzNoResult)},directives:[te.gB],encapsulation:2,changeDetection:0}),f})(),ke=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Ye=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),Je=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:b,decls:1,vars:0,template:function(C,R){1&C&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),He=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275dir=o.lG2({type:f,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),f})(),Qe=(()=>{class f{constructor(C){this.directionality=C,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new G.X(this.nzItemLayout),this.destroy$=new B.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var C;this.dir=this.directionality.value,null===(C=this.directionality.change)||void 0===C||C.pipe((0,le.R)(this.destroy$)).subscribe(R=>{this.dir=R})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(C){C.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(se.Is,8))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(C,R,ce){if(1&C&&(o.Suo(ce,Ye,5),o.Suo(ce,Je,5),o.Suo(ce,He,5)),2&C){let he;o.iGM(he=o.CRH())&&(R.nzListFooterComponent=he.first),o.iGM(he=o.CRH())&&(R.nzListPaginationComponent=he.first),o.iGM(he=o.CRH())&&(R.nzListLoadMoreDirective=he.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(C,R){2&C&&o.ekj("ant-list-rtl","rtl"===R.dir)("ant-list-vertical","vertical"===R.nzItemLayout)("ant-list-lg","large"===R.nzSize)("ant-list-sm","small"===R.nzSize)("ant-list-split",R.nzSplit)("ant-list-bordered",R.nzBordered)("ant-list-loading",R.nzLoading)("ant-list-something-after-last-item",R.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[o.TTD],ngContentSelectors:Ne,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(C,R){if(1&C&&(o.F$t(Le),o.YNc(0,Re,3,1,"ng-template",null,0,o.W1O),o.YNc(2,Pe,2,1,"nz-list-header",1),o.Hsn(3),o.TgZ(4,"nz-spin",2),o.ynx(5),o.YNc(6,N,1,2,"div",3),o.YNc(7,J,2,2,"div",4),o.YNc(8,U,1,1,"nz-list-empty",5),o.BQk(),o.qZA(),o.YNc(9,Ce,2,1,"nz-list-footer",1),o.Hsn(10,1),o.YNc(11,Ae,0,0,"ng-template",6),o.Hsn(12,2),o.YNc(13,Ie,2,1,"nz-list-pagination",1),o.Hsn(14,3)),2&C){const ce=o.MAs(1);o.xp6(2),o.Q6J("ngIf",R.nzHeader),o.xp6(2),o.Q6J("nzSpinning",R.nzLoading),o.xp6(2),o.Q6J("ngIf",R.nzLoading&&R.nzDataSource&&0===R.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",R.nzGrid&&R.nzDataSource)("ngIfElse",ce),o.xp6(1),o.Q6J("ngIf",!R.nzLoading&&R.nzDataSource&&0===R.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",R.nzFooter),o.xp6(2),o.Q6J("ngTemplateOutlet",R.nzLoadMore),o.xp6(2),o.Q6J("ngIf",R.nzPagination)}},directives:[ke,oe.W,Fe,Ye,Je,t.sg,t.tP,t.O5,D.f,V.SK,V.t3],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzBordered",void 0),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzLoading",void 0),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzSplit",void 0),f})(),je=(()=>{class f{constructor(C,R,ce,he){this.parentComp=ce,this.cdr=he,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,R.addClass(C.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(C=>{this.itemLayout=C,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return f.\u0275fac=function(C){return new(C||f)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(Qe),o.Y36(o.sBO))},f.\u0275cmp=o.Xpm({type:f,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(C,R,ce){if(1&C&&o.Suo(ce,ze,5),2&C){let he;o.iGM(he=o.CRH())&&(R.listItemExtraDirective=he.first)}},hostVars:2,hostBindings:function(C,R){2&C&&o.ekj("ant-list-item-no-flex",R.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:j,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(C,R){if(1&C&&(o.F$t(a),o.YNc(0,ve,2,1,"ng-template",null,0,o.W1O),o.YNc(2,$e,3,1,"ng-template",null,1,o.W1O),o.YNc(4,it,1,0,"ng-template",null,2,o.W1O),o.YNc(6,st,4,4,"ng-template",null,3,o.W1O),o.YNc(8,p,6,4,"ng-container",4)),2&C){const ce=o.MAs(7);o.xp6(8),o.Q6J("ngIf",R.isVerticalAndExtra)("ngIfElse",ce)}},directives:[Te,ze,t.O5,D.f,t.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,Z.yF)()],f.prototype,"nzNoFlex",void 0),f})(),Xe=(()=>{class f{}return f.\u0275fac=function(C){return new(C||f)},f.\u0275mod=o.oAB({type:f}),f.\u0275inj=o.cJS({imports:[[se.vT,t.ez,oe.j,V.Jb,i.Rt,D.T,te.Xo]]}),f})()},4219:(De,re,r)=>{r.d(re,{hl:()=>ve,Cc:()=>Ne,wO:()=>ct,YV:()=>pt,uA:()=>Ge,r9:()=>xe,ip:()=>p});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(6787),Z=r(3426),B=r(4850),q=r(1709),A=r(2198),L=r(7604),G=r(7138),K=r(5778),H=r(7625),le=r(1059),te=r(7545),se=r(1721),oe=r(325),V=r(226),b=r(2845),I=r(6950),$=r(925),ne=r(4832),X=r(9808),de=r(647),fe=r(969),pe=r(8076);const ue=["nz-submenu-title",""];function W(a,j){if(1&a&&i._UZ(0,"i",4),2&a){const m=i.oxw();i.Q6J("nzType",m.nzIcon)}}function Y(a,j){if(1&a&&(i.ynx(0),i.TgZ(1,"span"),i._uU(2),i.qZA(),i.BQk()),2&a){const m=i.oxw();i.xp6(2),i.Oqu(m.nzTitle)}}function g(a,j){1&a&&i._UZ(0,"i",8)}function w(a,j){1&a&&i._UZ(0,"i",9)}function O(a,j){if(1&a&&(i.TgZ(0,"span",5),i.YNc(1,g,1,0,"i",6),i.YNc(2,w,1,0,"i",7),i.qZA()),2&a){const m=i.oxw();i.Q6J("ngSwitch",m.dir),i.xp6(1),i.Q6J("ngSwitchCase","rtl")}}function Q(a,j){1&a&&i._UZ(0,"i",10)}const ye=["*"],_e=["nz-submenu-inline-child",""];function Se(a,j){}const Ee=["nz-submenu-none-inline-child",""];function Oe(a,j){}const Re=["nz-submenu",""];function Ve(a,j){1&a&&i.Hsn(0,0,["*ngIf","!nzTitle"])}function Pe(a,j){if(1&a&&i._UZ(0,"div",6),2&a){const m=i.oxw(),l=i.MAs(7);i.Q6J("mode",m.mode)("nzOpen",m.nzOpen)("@.disabled",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("nzNoAnimation",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("menuClass",m.nzMenuClassName)("templateOutlet",l)}}function N(a,j){if(1&a){const m=i.EpF();i.TgZ(0,"div",8),i.NdJ("subMenuMouseState",function(k){return i.CHM(m),i.oxw(2).setMouseEnterState(k)}),i.qZA()}if(2&a){const m=i.oxw(2),l=i.MAs(7);i.Q6J("theme",m.theme)("mode",m.mode)("nzOpen",m.nzOpen)("position",m.position)("nzDisabled",m.nzDisabled)("isMenuInsideDropDown",m.isMenuInsideDropDown)("templateOutlet",l)("menuClass",m.nzMenuClassName)("@.disabled",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)("nzNoAnimation",null==m.noAnimation?null:m.noAnimation.nzNoAnimation)}}function ee(a,j){if(1&a){const m=i.EpF();i.YNc(0,N,1,10,"ng-template",7),i.NdJ("positionChange",function(k){return i.CHM(m),i.oxw().onPositionChange(k)})}if(2&a){const m=i.oxw(),l=i.MAs(1);i.Q6J("cdkConnectedOverlayPositions",m.overlayPositions)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayWidth",m.triggerWidth)("cdkConnectedOverlayOpen",m.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function _(a,j){1&a&&i.Hsn(0,1)}const J=[[["","title",""]],"*"],U=["[title]","*"],ge=["titleElement"],Ce=["nz-menu-group",""];function Ae(a,j){if(1&a&&(i.ynx(0),i._uU(1),i.BQk()),2&a){const m=i.oxw();i.xp6(1),i.Oqu(m.nzTitle)}}function Me(a,j){1&a&&i.Hsn(0,1,["*ngIf","!nzTitle"])}const Ie=["*",[["","title",""]]],Le=["*","[title]"],Ne=new i.OlP("NzIsInDropDownMenuToken"),Be=new i.OlP("NzMenuServiceLocalToken");let ve=(()=>{class a{constructor(){this.descendantMenuItemClick$=new t.xQ,this.childMenuItemClick$=new t.xQ,this.theme$=new D.X("light"),this.mode$=new D.X("vertical"),this.inlineIndent$=new D.X(24),this.isChildSubMenuOpen$=new D.X(!1)}onDescendantMenuItemClick(m){this.descendantMenuItemClick$.next(m)}onChildMenuItemClick(m){this.childMenuItemClick$.next(m)}setMode(m){this.mode$.next(m)}setTheme(m){this.theme$.next(m)}setInlineIndent(m){this.inlineIndent$.next(m)}}return a.\u0275fac=function(m){return new(m||a)},a.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac}),a})(),Ue=(()=>{class a{constructor(m,l,k){this.nzHostSubmenuService=m,this.nzMenuService=l,this.isMenuInsideDropDown=k,this.mode$=this.nzMenuService.mode$.pipe((0,B.U)(Te=>"inline"===Te?"inline":"vertical"===Te||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new D.X(!1),this.isChildSubMenuOpen$=new D.X(!1),this.isMouseEnterTitleOrOverlay$=new t.xQ,this.childMenuItemClick$=new t.xQ,this.destroy$=new t.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ie=this.childMenuItemClick$.pipe((0,q.zg)(()=>this.mode$),(0,A.h)(Te=>"inline"!==Te||this.isMenuInsideDropDown),(0,L.h)(!1)),ze=(0,F.T)(this.isMouseEnterTitleOrOverlay$,ie);(0,Z.aj)([this.isChildSubMenuOpen$,ze]).pipe((0,B.U)(([Te,Fe])=>Te||Fe),(0,G.e)(150),(0,K.x)(),(0,H.R)(this.destroy$)).pipe((0,K.x)()).subscribe(Te=>{this.setOpenStateWithoutDebounce(Te),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(Te):this.nzMenuService.isChildSubMenuOpen$.next(Te)})}onChildMenuItemClick(m){this.childMenuItemClick$.next(m)}setOpenStateWithoutDebounce(m){this.isCurrentSubMenuOpen$.next(m)}setMouseEnterTitleOrOverlayState(m){this.isMouseEnterTitleOrOverlay$.next(m)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.LFG(a,12),i.LFG(ve),i.LFG(Ne))},a.\u0275prov=i.Yz7({token:a,factory:a.\u0275fac}),a})(),xe=(()=>{class a{constructor(m,l,k,ie,ze,Ze,Te,Fe){this.nzMenuService=m,this.cdr=l,this.nzSubmenuService=k,this.isMenuInsideDropDown=ie,this.directionality=ze,this.routerLink=Ze,this.routerLinkWithHref=Te,this.router=Fe,this.destroy$=new t.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new t.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Fe&&this.router.events.pipe((0,H.R)(this.destroy$),(0,A.h)(ke=>ke instanceof oe.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(m){this.nzDisabled?(m.preventDefault(),m.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(m){this.nzSelected=m,this.selected$.next(m)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const m=this.hasActiveLinks();this.nzSelected!==m&&(this.nzSelected=m,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const m=this.isLinkActive(this.router);return this.routerLink&&m(this.routerLink)||this.routerLinkWithHref&&m(this.routerLinkWithHref)||this.listOfRouterLink.some(m)||this.listOfRouterLinkWithHref.some(m)}isLinkActive(m){return l=>m.isActive(l.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var m;(0,Z.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,H.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,H.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(m){m.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(i.sBO),i.Y36(Ue,8),i.Y36(Ne),i.Y36(V.Is,8),i.Y36(oe.rH,8),i.Y36(oe.yS,8),i.Y36(oe.F0,8))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu-item",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,oe.rH,5),i.Suo(k,oe.yS,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfRouterLink=ie),i.iGM(ie=i.CRH())&&(l.listOfRouterLinkWithHref=ie)}},hostVars:20,hostBindings:function(m,l){1&m&&i.NdJ("click",function(ie){return l.clickMenuItem(ie)}),2&m&&(i.Udp("padding-left","rtl"===l.dir?null:l.nzPaddingLeft||l.inlinePaddingLeft,"px")("padding-right","rtl"===l.dir?l.nzPaddingLeft||l.inlinePaddingLeft:null,"px"),i.ekj("ant-dropdown-menu-item",l.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",l.isMenuInsideDropDown&&l.nzSelected)("ant-dropdown-menu-item-danger",l.isMenuInsideDropDown&&l.nzDanger)("ant-dropdown-menu-item-disabled",l.isMenuInsideDropDown&&l.nzDisabled)("ant-menu-item",!l.isMenuInsideDropDown)("ant-menu-item-selected",!l.isMenuInsideDropDown&&l.nzSelected)("ant-menu-item-danger",!l.isMenuInsideDropDown&&l.nzDanger)("ant-menu-item-disabled",!l.isMenuInsideDropDown&&l.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[i.TTD]}),(0,o.gn)([(0,se.yF)()],a.prototype,"nzDisabled",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzSelected",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzDanger",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzMatchRouterExact",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzMatchRouter",void 0),a})(),$e=(()=>{class a{constructor(m,l){this.cdr=m,this.directionality=l,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new i.vpe,this.subMenuMouseState=new i.vpe,this.dir="ltr",this.destroy$=new t.xQ}ngOnInit(){var m;this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(m){this.nzDisabled||this.subMenuMouseState.next(m)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.sBO),i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(m,l){1&m&&i.NdJ("click",function(){return l.clickTitle()})("mouseenter",function(){return l.setMouseState(!0)})("mouseleave",function(){return l.setMouseState(!1)}),2&m&&(i.Udp("padding-left","rtl"===l.dir?null:l.paddingLeft,"px")("padding-right","rtl"===l.dir?l.paddingLeft:null,"px"),i.ekj("ant-dropdown-menu-submenu-title",l.isMenuInsideDropDown)("ant-menu-submenu-title",!l.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:ue,ngContentSelectors:ye,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(m,l){if(1&m&&(i.F$t(),i.YNc(0,W,1,1,"i",0),i.YNc(1,Y,3,1,"ng-container",1),i.Hsn(2),i.YNc(3,O,3,2,"span",2),i.YNc(4,Q,1,0,"ng-template",null,3,i.W1O)),2&m){const k=i.MAs(5);i.Q6J("ngIf",l.nzIcon),i.xp6(1),i.Q6J("nzStringTemplateOutlet",l.nzTitle),i.xp6(2),i.Q6J("ngIf",l.isMenuInsideDropDown)("ngIfElse",k)}},directives:[X.O5,de.Ls,fe.f,X.RF,X.n9,X.ED],encapsulation:2,changeDetection:0}),a})(),it=(()=>{class a{constructor(m,l,k){this.elementRef=m,this.renderer=l,this.directionality=k,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new t.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var m;this.calcMotionState(),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngOnChanges(m){const{mode:l,nzOpen:k,menuClass:ie}=m;(l||k)&&this.calcMotionState(),ie&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(ze=>!!ze).forEach(ze=>{this.renderer.removeClass(this.elementRef.nativeElement,ze)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(ze=>!!ze).forEach(ze=>{this.renderer.addClass(this.elementRef.nativeElement,ze)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(m,l){2&m&&(i.d8E("@collapseMotion",l.expandState),i.ekj("ant-menu-rtl","rtl"===l.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[i.TTD],attrs:_e,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(m,l){1&m&&i.YNc(0,Se,0,0,"ng-template",0),2&m&&i.Q6J("ngTemplateOutlet",l.templateOutlet)},directives:[X.tP],encapsulation:2,data:{animation:[pe.J_]},changeDetection:0}),a})(),ot=(()=>{class a{constructor(m){this.directionality=m,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new i.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new t.xQ}setMouseState(m){this.nzDisabled||this.subMenuMouseState.next(m)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var m;this.calcMotionState(),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngOnChanges(m){const{mode:l,nzOpen:k}=m;(l||k)&&this.calcMotionState()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(V.Is,8))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(m,l){1&m&&i.NdJ("mouseenter",function(){return l.setMouseState(!0)})("mouseleave",function(){return l.setMouseState(!1)}),2&m&&(i.d8E("@slideMotion",l.expandState)("@zoomBigMotion",l.expandState),i.ekj("ant-menu-light","light"===l.theme)("ant-menu-dark","dark"===l.theme)("ant-menu-submenu-placement-bottom","horizontal"===l.mode)("ant-menu-submenu-placement-right","vertical"===l.mode&&"right"===l.position)("ant-menu-submenu-placement-left","vertical"===l.mode&&"left"===l.position)("ant-menu-submenu-rtl","rtl"===l.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[i.TTD],attrs:Ee,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(m,l){1&m&&(i.TgZ(0,"div",0),i.YNc(1,Oe,0,0,"ng-template",1),i.qZA()),2&m&&(i.ekj("ant-dropdown-menu",l.isMenuInsideDropDown)("ant-menu",!l.isMenuInsideDropDown)("ant-dropdown-menu-vertical",l.isMenuInsideDropDown)("ant-menu-vertical",!l.isMenuInsideDropDown)("ant-dropdown-menu-sub",l.isMenuInsideDropDown)("ant-menu-sub",!l.isMenuInsideDropDown)("ant-menu-rtl","rtl"===l.dir),i.Q6J("ngClass",l.menuClass),i.xp6(1),i.Q6J("ngTemplateOutlet",l.templateOutlet))},directives:[X.mk,X.tP],encapsulation:2,data:{animation:[pe.$C,pe.mF]},changeDetection:0}),a})();const tt=[I.yW.rightTop,I.yW.right,I.yW.rightBottom,I.yW.leftTop,I.yW.left,I.yW.leftBottom],rt=[I.yW.bottomLeft];let h=(()=>{class a{constructor(m,l,k,ie,ze,Ze,Te){this.nzMenuService=m,this.cdr=l,this.nzSubmenuService=k,this.platform=ie,this.isMenuInsideDropDown=ze,this.directionality=Ze,this.noAnimation=Te,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new i.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new t.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=tt,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(m){this.nzSubmenuService.setOpenStateWithoutDebounce(m)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(m){this.isActive=m,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(m)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(m){const l=(0,I.d_)(m);"rightTop"===l||"rightBottom"===l||"right"===l?this.position="right":("leftTop"===l||"leftBottom"===l||"left"===l)&&(this.position="left")}ngOnInit(){var m;this.nzMenuService.theme$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.theme=l,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.mode=l,"horizontal"===l?this.overlayPositions=rt:"vertical"===l&&(this.overlayPositions=tt),this.cdr.markForCheck()}),(0,Z.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.isActive=l,l!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=l,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const m=this.listOfNzMenuItemDirective,l=m.changes,k=(0,F.T)(l,...m.map(ie=>ie.selected$));l.pipe((0,le.O)(m),(0,te.w)(()=>k),(0,le.O)(!0),(0,B.U)(()=>m.some(ie=>ie.nzSelected)),(0,H.R)(this.destroy$)).subscribe(ie=>{this.isSelected=ie,this.cdr.markForCheck()})}ngOnChanges(m){const{nzOpen:l}=m;l&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(i.sBO),i.Y36(Ue),i.Y36($.t4),i.Y36(Ne),i.Y36(V.Is,8),i.Y36(ne.P,9))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-submenu",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,a,5),i.Suo(k,xe,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfNzSubMenuComponent=ie),i.iGM(ie=i.CRH())&&(l.listOfNzMenuItemDirective=ie)}},viewQuery:function(m,l){if(1&m&&i.Gf(b.xu,7,i.SBq),2&m){let k;i.iGM(k=i.CRH())&&(l.cdkOverlayOrigin=k.first)}},hostVars:34,hostBindings:function(m,l){2&m&&i.ekj("ant-dropdown-menu-submenu",l.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",l.isMenuInsideDropDown&&l.nzDisabled)("ant-dropdown-menu-submenu-open",l.isMenuInsideDropDown&&l.nzOpen)("ant-dropdown-menu-submenu-selected",l.isMenuInsideDropDown&&l.isSelected)("ant-dropdown-menu-submenu-vertical",l.isMenuInsideDropDown&&"vertical"===l.mode)("ant-dropdown-menu-submenu-horizontal",l.isMenuInsideDropDown&&"horizontal"===l.mode)("ant-dropdown-menu-submenu-inline",l.isMenuInsideDropDown&&"inline"===l.mode)("ant-dropdown-menu-submenu-active",l.isMenuInsideDropDown&&l.isActive)("ant-menu-submenu",!l.isMenuInsideDropDown)("ant-menu-submenu-disabled",!l.isMenuInsideDropDown&&l.nzDisabled)("ant-menu-submenu-open",!l.isMenuInsideDropDown&&l.nzOpen)("ant-menu-submenu-selected",!l.isMenuInsideDropDown&&l.isSelected)("ant-menu-submenu-vertical",!l.isMenuInsideDropDown&&"vertical"===l.mode)("ant-menu-submenu-horizontal",!l.isMenuInsideDropDown&&"horizontal"===l.mode)("ant-menu-submenu-inline",!l.isMenuInsideDropDown&&"inline"===l.mode)("ant-menu-submenu-active",!l.isMenuInsideDropDown&&l.isActive)("ant-menu-submenu-rtl","rtl"===l.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[i._Bn([Ue]),i.TTD],attrs:Re,ngContentSelectors:U,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(m,l){if(1&m&&(i.F$t(J),i.TgZ(0,"div",0,1),i.NdJ("subMenuMouseState",function(ie){return l.setMouseEnterState(ie)})("toggleSubMenu",function(){return l.toggleSubMenu()}),i.YNc(2,Ve,1,0,"ng-content",2),i.qZA(),i.YNc(3,Pe,1,6,"div",3),i.YNc(4,ee,1,5,"ng-template",null,4,i.W1O),i.YNc(6,_,1,0,"ng-template",null,5,i.W1O)),2&m){const k=i.MAs(5);i.Q6J("nzIcon",l.nzIcon)("nzTitle",l.nzTitle)("mode",l.mode)("nzDisabled",l.nzDisabled)("isMenuInsideDropDown",l.isMenuInsideDropDown)("paddingLeft",l.nzPaddingLeft||l.inlinePaddingLeft),i.xp6(2),i.Q6J("ngIf",!l.nzTitle),i.xp6(1),i.Q6J("ngIf","inline"===l.mode)("ngIfElse",k)}},directives:[$e,it,ot,b.xu,X.O5,ne.P,b.pI],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,se.yF)()],a.prototype,"nzOpen",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzDisabled",void 0),a})();function st(a,j){return a||j}function at(a){return a||!1}let ct=(()=>{class a{constructor(m,l,k,ie){this.nzMenuService=m,this.isMenuInsideDropDown=l,this.cdr=k,this.directionality=ie,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new i.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new D.X(this.nzInlineCollapsed),this.mode$=new D.X(this.nzMode),this.destroy$=new t.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(m){this.nzInlineCollapsed=m,this.inlineCollapsed$.next(m)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(m=>m.nzOpen),this.listOfNzSubMenuComponent.forEach(m=>m.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(m=>m.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var m;(0,Z.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,H.R)(this.destroy$)).subscribe(([l,k])=>{this.actualMode=l?"vertical":k,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.nzClick.emit(l),this.nzSelectable&&!l.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(k=>k.setSelectedState(k===l))}),this.dir=this.directionality.value,null===(m=this.directionality.change)||void 0===m||m.pipe((0,H.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(m){const{nzInlineCollapsed:l,nzInlineIndent:k,nzTheme:ie,nzMode:ze}=m;l&&this.inlineCollapsed$.next(this.nzInlineCollapsed),k&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ie&&this.nzMenuService.setTheme(this.nzTheme),ze&&(this.mode$.next(this.nzMode),!m.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(Ze=>Ze.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(ve),i.Y36(Ne),i.Y36(i.sBO),i.Y36(V.Is,8))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu",""]],contentQueries:function(m,l,k){if(1&m&&(i.Suo(k,xe,5),i.Suo(k,h,5)),2&m){let ie;i.iGM(ie=i.CRH())&&(l.listOfNzMenuItemDirective=ie),i.iGM(ie=i.CRH())&&(l.listOfNzSubMenuComponent=ie)}},hostVars:34,hostBindings:function(m,l){2&m&&i.ekj("ant-dropdown-menu",l.isMenuInsideDropDown)("ant-dropdown-menu-root",l.isMenuInsideDropDown)("ant-dropdown-menu-light",l.isMenuInsideDropDown&&"light"===l.nzTheme)("ant-dropdown-menu-dark",l.isMenuInsideDropDown&&"dark"===l.nzTheme)("ant-dropdown-menu-vertical",l.isMenuInsideDropDown&&"vertical"===l.actualMode)("ant-dropdown-menu-horizontal",l.isMenuInsideDropDown&&"horizontal"===l.actualMode)("ant-dropdown-menu-inline",l.isMenuInsideDropDown&&"inline"===l.actualMode)("ant-dropdown-menu-inline-collapsed",l.isMenuInsideDropDown&&l.nzInlineCollapsed)("ant-menu",!l.isMenuInsideDropDown)("ant-menu-root",!l.isMenuInsideDropDown)("ant-menu-light",!l.isMenuInsideDropDown&&"light"===l.nzTheme)("ant-menu-dark",!l.isMenuInsideDropDown&&"dark"===l.nzTheme)("ant-menu-vertical",!l.isMenuInsideDropDown&&"vertical"===l.actualMode)("ant-menu-horizontal",!l.isMenuInsideDropDown&&"horizontal"===l.actualMode)("ant-menu-inline",!l.isMenuInsideDropDown&&"inline"===l.actualMode)("ant-menu-inline-collapsed",!l.isMenuInsideDropDown&&l.nzInlineCollapsed)("ant-menu-rtl","rtl"===l.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[i._Bn([{provide:Be,useClass:ve},{provide:ve,useFactory:st,deps:[[new i.tp0,new i.FiY,ve],Be]},{provide:Ne,useFactory:at,deps:[[new i.tp0,new i.FiY,Ne]]}]),i.TTD]}),(0,o.gn)([(0,se.yF)()],a.prototype,"nzInlineCollapsed",void 0),(0,o.gn)([(0,se.yF)()],a.prototype,"nzSelectable",void 0),a})();function lt(a){return a||!1}let Ge=(()=>{class a{constructor(m,l,k){this.elementRef=m,this.renderer=l,this.isMenuInsideDropDown=k,this.renderer.addClass(m.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const m=this.titleElement.nativeElement.nextElementSibling;m&&this.renderer.addClass(m,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Ne))},a.\u0275cmp=i.Xpm({type:a,selectors:[["","nz-menu-group",""]],viewQuery:function(m,l){if(1&m&&i.Gf(ge,5),2&m){let k;i.iGM(k=i.CRH())&&(l.titleElement=k.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[i._Bn([{provide:Ne,useFactory:lt,deps:[[new i.tp0,new i.FiY,Ne]]}])],attrs:Ce,ngContentSelectors:Le,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"],[4,"ngIf"]],template:function(m,l){1&m&&(i.F$t(Ie),i.TgZ(0,"div",null,0),i.YNc(2,Ae,2,1,"ng-container",1),i.YNc(3,Me,1,0,"ng-content",2),i.qZA(),i.Hsn(4)),2&m&&(i.ekj("ant-menu-item-group-title",!l.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",l.isMenuInsideDropDown),i.xp6(2),i.Q6J("nzStringTemplateOutlet",l.nzTitle),i.xp6(1),i.Q6J("ngIf",!l.nzTitle))},directives:[fe.f,X.O5],encapsulation:2,changeDetection:0}),a})(),pt=(()=>{class a{constructor(m,l){this.elementRef=m,this.renderer=l,this.renderer.addClass(m.nativeElement,"ant-dropdown-menu-item-divider")}}return a.\u0275fac=function(m){return new(m||a)(i.Y36(i.SBq),i.Y36(i.Qsj))},a.\u0275dir=i.lG2({type:a,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),a})(),p=(()=>{class a{}return a.\u0275fac=function(m){return new(m||a)},a.\u0275mod=i.oAB({type:a}),a.\u0275inj=i.cJS({imports:[[V.vT,X.ez,$.ud,b.U8,de.PV,ne.g,fe.T]]}),a})()},8144:(De,re,r)=>{r.d(re,{NU:()=>oe,$1:()=>le,zf:()=>V});var o=r(226),i=r(9808),t=r(5e3),D=r(655),F=r(8929),Z=r(7625),B=r(9439),q=r(1721);function A(b,I){}const L=function(b){return{$implicit:b}};function G(b,I){if(1&b&&(t.TgZ(0,"span",4),t.YNc(1,A,0,0,"ng-template",5),t.qZA()),2&b){const $=t.oxw(),ne=$.last,X=$.index,de=t.oxw();t.Udp("margin-bottom","vertical"===de.nzDirection?ne?null:de.spaceSize:null,"px")("margin-right","horizontal"===de.nzDirection?ne?null:de.spaceSize:null,"px"),t.xp6(1),t.Q6J("ngTemplateOutlet",de.nzSplit)("ngTemplateOutletContext",t.VKq(6,L,X))}}function K(b,I){if(1&b&&(t.TgZ(0,"div",1),t.GkF(1,2),t.qZA(),t.YNc(2,G,2,8,"span",3)),2&b){const $=I.$implicit,ne=I.last,X=t.oxw();t.Udp("margin-bottom","vertical"===X.nzDirection?ne?null:X.spaceSize:null,"px")("margin-right","horizontal"===X.nzDirection?ne?null:X.spaceSize:null,"px"),t.xp6(1),t.Q6J("ngTemplateOutlet",$),t.xp6(1),t.Q6J("ngIf",X.nzSplit&&!ne)}}const H=["*"];let le=(()=>{class b{constructor(){}}return b.\u0275fac=function($){return new($||b)},b.\u0275dir=t.lG2({type:b,selectors:[["","nzSpaceItem",""]]}),b})();const se={small:8,middle:16,large:24};let oe=(()=>{class b{constructor($,ne){this.nzConfigService=$,this.cdr=ne,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=se.small,this.destroy$=new F.xQ}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?se[this.nzSize]:this.nzSize)/(this.nzSplit?2:1),this.cdr.markForCheck()}ngOnChanges(){this.updateSpaceItems(),this.mergedAlign=void 0===this.nzAlign&&"horizontal"===this.nzDirection?"center":this.nzAlign}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,Z.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}}return b.\u0275fac=function($){return new($||b)(t.Y36(B.jY),t.Y36(t.sBO))},b.\u0275cmp=t.Xpm({type:b,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function($,ne,X){if(1&$&&t.Suo(X,le,4,t.Rgc),2&$){let de;t.iGM(de=t.CRH())&&(ne.items=de)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function($,ne){2&$&&(t.Udp("flex-wrap",ne.nzWrap?"wrap":null),t.ekj("ant-space-horizontal","horizontal"===ne.nzDirection)("ant-space-vertical","vertical"===ne.nzDirection)("ant-space-align-start","start"===ne.mergedAlign)("ant-space-align-end","end"===ne.mergedAlign)("ant-space-align-center","center"===ne.mergedAlign)("ant-space-align-baseline","baseline"===ne.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:"nzWrap",nzSize:"nzSize"},exportAs:["NzSpace"],features:[t.TTD],ngContentSelectors:H,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],[1,"ant-space-item"],[3,"ngTemplateOutlet"],["class","ant-space-split",3,"margin-bottom","margin-right",4,"ngIf"],[1,"ant-space-split"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function($,ne){1&$&&(t.F$t(),t.Hsn(0),t.YNc(1,K,3,6,"ng-template",0)),2&$&&(t.xp6(1),t.Q6J("ngForOf",ne.items))},directives:[i.sg,i.tP,i.O5],encapsulation:2,changeDetection:0}),(0,D.gn)([(0,q.yF)()],b.prototype,"nzWrap",void 0),(0,D.gn)([(0,B.oS)()],b.prototype,"nzSize",void 0),b})(),V=(()=>{class b{}return b.\u0275fac=function($){return new($||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[[o.vT,i.ez]]}),b})()},7525:(De,re,r)=>{r.d(re,{W:()=>ue,j:()=>W});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(839),Z=r(8723),B=r(1177);class A{constructor(g){this.durationSelector=g}call(g,w){return w.subscribe(new L(g,this.durationSelector))}}class L extends B.Ds{constructor(g,w){super(g),this.durationSelector=w,this.hasValue=!1}_next(g){try{const w=this.durationSelector.call(this,g);w&&this._tryNext(g,w)}catch(w){this.destination.error(w)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(g,w){let O=this.durationSubscription;this.value=g,this.hasValue=!0,O&&(O.unsubscribe(),this.remove(O)),O=(0,B.ft)(w,new B.IY(this)),O&&!O.closed&&this.add(this.durationSubscription=O)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const g=this.value,w=this.durationSubscription;w&&(this.durationSubscription=void 0,w.unsubscribe(),this.remove(w)),this.value=void 0,this.hasValue=!1,super._next(g)}}}var G=r(1059),K=r(5778),H=r(7545),le=r(7625),te=r(9439),se=r(1721),oe=r(226),V=r(9808),b=r(7144);function I(Y,g){1&Y&&(i.TgZ(0,"span",3),i._UZ(1,"i",4),i._UZ(2,"i",4),i._UZ(3,"i",4),i._UZ(4,"i",4),i.qZA())}function $(Y,g){}function ne(Y,g){if(1&Y&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&Y){const w=i.oxw(2);i.xp6(1),i.Oqu(w.nzTip)}}function X(Y,g){if(1&Y&&(i.TgZ(0,"div"),i.TgZ(1,"div",5),i.YNc(2,$,0,0,"ng-template",6),i.YNc(3,ne,2,1,"div",7),i.qZA(),i.qZA()),2&Y){const w=i.oxw(),O=i.MAs(1);i.xp6(1),i.ekj("ant-spin-rtl","rtl"===w.dir)("ant-spin-spinning",w.isLoading)("ant-spin-lg","large"===w.nzSize)("ant-spin-sm","small"===w.nzSize)("ant-spin-show-text",w.nzTip),i.xp6(1),i.Q6J("ngTemplateOutlet",w.nzIndicator||O),i.xp6(1),i.Q6J("ngIf",w.nzTip)}}function de(Y,g){if(1&Y&&(i.TgZ(0,"div",9),i.Hsn(1),i.qZA()),2&Y){const w=i.oxw();i.ekj("ant-spin-blur",w.isLoading)}}const fe=["*"];let ue=(()=>{class Y{constructor(w,O,Q){this.nzConfigService=w,this.cdr=O,this.directionality=Q,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new t.xQ,this.spinning$=new D.X(this.nzSpinning),this.delay$=new F.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var w;this.delay$.pipe((0,G.O)(this.nzDelay),(0,K.x)(),(0,H.w)(Q=>0===Q?this.spinning$:this.spinning$.pipe(function q(Y){return g=>g.lift(new A(Y))}(ye=>(0,Z.H)(ye?Q:0)))),(0,le.R)(this.destroy$)).subscribe(Q=>{this.isLoading=Q,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,le.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(w=this.directionality.change)||void 0===w||w.pipe((0,le.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(w){const{nzSpinning:O,nzDelay:Q}=w;O&&this.spinning$.next(this.nzSpinning),Q&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function(w){return new(w||Y)(i.Y36(te.jY),i.Y36(i.sBO),i.Y36(oe.Is,8))},Y.\u0275cmp=i.Xpm({type:Y,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(w,O){2&w&&i.ekj("ant-spin-nested-loading",!O.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[i.TTD],ngContentSelectors:fe,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(w,O){1&w&&(i.F$t(),i.YNc(0,I,5,0,"ng-template",null,0,i.W1O),i.YNc(2,X,4,12,"div",1),i.YNc(3,de,2,2,"div",2)),2&w&&(i.xp6(2),i.Q6J("ngIf",O.isLoading),i.xp6(1),i.Q6J("ngIf",!O.nzSimple))},directives:[V.O5,V.tP],encapsulation:2}),(0,o.gn)([(0,te.oS)()],Y.prototype,"nzIndicator",void 0),(0,o.gn)([(0,se.Rn)()],Y.prototype,"nzDelay",void 0),(0,o.gn)([(0,se.yF)()],Y.prototype,"nzSimple",void 0),(0,o.gn)([(0,se.yF)()],Y.prototype,"nzSpinning",void 0),Y})(),W=(()=>{class Y{}return Y.\u0275fac=function(w){return new(w||Y)},Y.\u0275mod=i.oAB({type:Y}),Y.\u0275inj=i.cJS({imports:[[oe.vT,V.ez,b.Q8]]}),Y})()}}]);
\ No newline at end of file
diff --git a/server/public/4292.431ce70ec225de05.js b/server/public/4292.431ce70ec225de05.js
deleted file mode 100644
index cef664914..000000000
--- a/server/public/4292.431ce70ec225de05.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4292],{3172:(b,y,n)=>{n.d(y,{T:()=>R});var e=n(9808),d=n(3610),t=n(6949),z=n(7345),E=n(8369),g=n(209),l=n(4867),m=n(8625),M=n(7484),L=n(1894),I=n(3309),j=n(7026),U=n(9401),Q=n(9779),Z=n(5e3);let J=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=Z.oAB({type:s}),s.\u0275inj=Z.cJS({imports:[[e.ez,t.WG,M.vh,L.Jb,I.U,z.W,E.W,g.i,g.i,l.Q,U.y,Q.s,m.$L.forChild({formatter:{useClass:j.x,provide:m.KP}})]]}),s})();var h=n(8481),S=n(647),p=n(9444),O=n(325);let R=(()=>{class s{}return s.\u0275fac=function(c){return new(c||s)},s.\u0275mod=Z.oAB({type:s}),s.\u0275inj=Z.cJS({imports:[[e.ez,p.s,O.Bz,d.$6,S.PV,J,h.X]]}),s})()},2011:(b,y,n)=>{n.d(y,{o:()=>R});var e=n(712),d=n(4850),t=n(5e3);function z(s,v){if(1&s&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",11),t.BQk()),2&s){const c=t.oxw().ngIf,T=t.oxw(3);t.xp6(1),t.Q6J("events",c)("tagDisplay",T.tagDisplay)}}function E(s,v){if(1&s){const c=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"button",14),t.NdJ("click",function(){t.CHM(c);const A=t.oxw().ngIf;return t.oxw(4).fetchMore(A.endCursor)}),t._uU(2,"Load More "),t.qZA(),t.qZA()}}function g(s,v){if(1&s&&(t.ynx(0),t.YNc(1,E,3,0,"div",12),t.BQk()),2&s){const c=v.ngIf;t.xp6(1),t.Q6J("ngIf",c.hasNextPage)}}function l(s,v){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",10),t.YNc(3,z,2,2,"ng-container",0),t.YNc(4,g,2,1,"ng-container",9),t.ALo(5,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()),2&s){const c=v.ngIf,T=t.oxw(3),A=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",c.length)("ngIfElse",A),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,T.pageInfo$))}}function m(s,v){if(1&s&&(t.TgZ(0,"nz-card",8),t.YNc(1,l,6,6,"ng-container",9),t.ALo(2,"ngrxPush"),t.qZA()),2&s){const c=t.oxw(2);t.Q6J("nzTitle",c.showFilters?"Events":void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,c.events$))}}function M(s,v){if(1&s){const c=t.EpF();t.TgZ(0,"span"),t._uU(1," Show Child Events "),t.TgZ(2,"nz-switch",16),t.NdJ("ngModelChange",function(A){return t.CHM(c),t.oxw(3).showChildren=A})("ngModelChange",function(){return t.CHM(c),t.oxw(3).onShowChildrenToggle()}),t.qZA(),t.qZA()}if(2&s){const c=t.oxw(3);t.xp6(2),t.Q6J("ngModel",c.showChildren)}}function L(s,v){1&s&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&s&&t.hij(" ",t.xi3(1,1,v.$implicit.id,"action-filter")," ")}function I(s,v){if(1&s&&t._UZ(0,"nz-avatar",24),2&s){const c=t.oxw().$implicit;t.Q6J("nzSrc",c.profileImagePath)}}function j(s,v){if(1&s&&(t._UZ(0,"nz-avatar",25),t.ALo(1,"uppercase")),2&s){const c=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,c.displayName.charAt(0)))}}function U(s,v){if(1&s&&(t.YNc(0,I,1,1,"nz-avatar",22),t.YNc(1,j,2,3,"ng-template",null,23,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&s){const c=v.$implicit,T=t.MAs(2);t.Q6J("ngIf",c.profileImagePath)("ngIfElse",T),t.xp6(4),t.Oqu(c.displayName)}}function Q(s,v){if(1&s){const c=t.EpF();t.TgZ(0,"cvc-participant-list",21),t.NdJ("participantSelectedEvent",function(A){return t.CHM(c),t.oxw(4).onOriginatingUserSelected(A)}),t.ALo(1,"ngrxPush"),t.YNc(2,U,5,3,"ng-template",null,18,t.W1O),t.qZA()}if(2&s){const c=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,c.participants$))}}function Z(s,v){if(1&s&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&s){const c=v.$implicit;t.xp6(1),t.hij(" ",c.name," ")}}function J(s,v){if(1&s){const c=t.EpF();t.TgZ(0,"cvc-participant-list",26),t.NdJ("participantSelectedEvent",function(A){return t.CHM(c),t.oxw(4).onOrganizationSelected(A)}),t.ALo(1,"ngrxPush"),t.YNc(2,Z,2,1,"ng-template",null,18,t.W1O),t.qZA()}if(2&s){const c=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,c.organizations$))}}function h(s,v){if(1&s){const c=t.EpF();t.ynx(0),t.TgZ(1,"cvc-participant-list",17),t.NdJ("participantSelectedEvent",function(A){return t.CHM(c),t.oxw(3).onActionSelected(A)}),t.ALo(2,"ngrxPush"),t.YNc(3,L,2,4,"ng-template",null,18,t.W1O),t.qZA(),t.YNc(5,Q,4,3,"cvc-participant-list",19),t.YNc(6,J,4,3,"cvc-participant-list",20),t.BQk()}if(2&s){const c=t.oxw(3);t.xp6(1),t.Q6J("participantList",t.lcZ(2,3,c.actions$)),t.xp6(4),t.Q6J("ngIf",!c.userId),t.xp6(1),t.Q6J("ngIf",!c.organizationId)}}function S(s,v){1&s&&(t.TgZ(0,"nz-space",4),t.YNc(1,M,3,1,"span",15),t.YNc(2,h,7,5,"ng-container",15),t.qZA())}function p(s,v){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,m,3,4,"nz-card",5),t.qZA(),t.qZA(),t.TgZ(5,"nz-col",6),t.YNc(6,S,3,0,"nz-space",7),t.qZA(),t.qZA(),t.BQk()),2&s){const c=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",c.showFilters?"18":"24"),t.xp6(4),t.Q6J("ngIf",c.showFilters)}}function O(s,v){1&s&&t._UZ(0,"nz-empty",27)}let R=(()=>{class s{constructor(c){this.gql=c,this.tagDisplay="displayAll",this.mode=e.wJ2.Subject,this.showFilters=!0,this.pageSize=15,this.showChildren=!1}ngOnInit(){this.initialQueryVars={subject:this.subscribable,organizationId:this.organizationId,originatingUserId:this.userId,first:this.pageSize,mode:this.mode,showFilters:this.showFilters},this.queryRef=this.gql.watch(this.initialQueryVars,{}),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,d.U)(({data:c})=>c.events.pageInfo)),this.events$=this.results$.pipe((0,d.U)(({data:c})=>c.events.edges.map(T=>T.node))),this.unfilteredCount$=this.results$.pipe((0,d.U)(({data:c})=>c.events.unfilteredCount)),this.showFilters&&(this.participants$=this.results$.pipe((0,d.U)(({data:c})=>c.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,d.U)(({data:c})=>c.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,d.U)(({data:c})=>{var T,A;return(null===(A=null===(T=c.events)||void 0===T?void 0:T.eventTypes)||void 0===A?void 0:A.map(N=>({id:N})))||[]})))}fetchMore(c){this.queryRef.fetchMore({variables:{first:this.pageSize,after:c}})}onOrganizationSelected(c){this.queryRef.refetch({organizationId:null==c?void 0:c.id,showFilters:this.showFilters})}onActionSelected(c){this.queryRef.refetch({eventType:c?c.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(c){this.queryRef.refetch({originatingUserId:null==c?void 0:c.id,showFilters:this.showFilters})}onShowChildrenToggle(){let c;this.subscribable?(c={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):c=void 0,this.queryRef.refetch(Object.assign(Object.assign({},this.initialQueryVars),{subject:c,showFilters:this.showFilters}))}}return s.\u0275fac=function(c){return new(c||s)(t.Y36(e.BTF))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-event-feed"]],inputs:{subscribable:"subscribable",subscribableName:"subscribableName",organizationId:"organizationId",userId:"userId",tagDisplay:"tagDisplay",mode:"mode",showFilters:"showFilters",pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"],[4,"nzSpaceItem"],["nzSize","small",3,"ngModel","ngModelChange"],["listTitle","Action",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Curator",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Organization",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Curator",3,"participantList","participantSelectedEvent"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Organization",3,"participantList","participantSelectedEvent"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(c,T){if(1&c&&(t.YNc(0,p,7,3,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,O,1,0,"ng-template",null,1,t.W1O)),2&c){const A=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,T.unfilteredCount$))("ngIfElse",A)}},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}"]}),s})()},4292:(b,y,n)=>{n.d(y,{t:()=>ne});var e=n(9808),d=n(2011),t=n(6949),z=n(7484),E=n(647),g=n(4546),l=n(4182),m=n(6462),M=n(1894),L=n(8054),I=n(7345),j=n(3618),U=n(9444),Q=n(3172),Z=n(9445),J=n(3309),h=n(8369),S=n(209),p=n(4867),O=n(9476),R=n(404),s=n(8625),v=n(2712),c=n(9401),T=n(6042),A=n(9779),N=n(3212),W=n(7026),u=n(5e3);let K=(()=>{class C{}return C.\u0275fac=function(D){return new(D||C)},C.\u0275mod=u.oAB({type:C}),C.\u0275inj=u.cJS({imports:[[e.ez,T.sL,E.PV,R.cg,j.ZJ,v.FT,M.Jb,s.$L.forChild({formatter:{useClass:W.x,provide:s.KP}}),c.y,I.W,U.s,Q.T,Z.O,J.U,h.W,S.i,p.Q,O.L,A.s,N.E]]}),C})();var Y=n(8144),$=n(1150),V=n(6699),H=n(685),r=n(2683),f=n(2347),a=n(712);let x=(()=>{class C{transform(D){switch(D){case a.AO2.Commented:return"civic-comment";case a.AO2.RevisionSuggested:case a.AO2.RevisionAccepted:case a.AO2.RevisionRejected:case a.AO2.RevisionSuperseded:return"civic-revision";case a.AO2.Flagged:case a.AO2.FlagResolved:return"civic-flag";case a.AO2.AssertionSubmitted:case a.AO2.AssertionAccepted:case a.AO2.AssertionRejected:return"civic-assertion";case a.AO2.Submitted:case a.AO2.Accepted:case a.AO2.Rejected:return"civic-evidence";case a.AO2.PublicationSuggested:case a.AO2.CuratedSourceSuggestion:case a.AO2.RejectedSourceSuggestion:case a.AO2.RequeuedSourceSuggestion:return"file-add";case a.AO2.Reverted:return"civic-evidence";case a.AO2.AssertionReverted:return"civic-assertion";default:throw new Error("Not handling all event action types yet"+D)}}}return C.\u0275fac=function(D){return new(D||C)},C.\u0275pipe=u.Yjl({name:"iconNameForEventAction",type:C,pure:!0}),C})();function F(C,w){if(1&C&&(u._UZ(0,"i",5),u.ALo(1,"iconNameForEventAction")),2&C){const D=u.oxw().$implicit;u.Q6J("nzType",u.lcZ(1,1,D.action))}}function B(C,w){if(1&C&&(u.ynx(0),u.TgZ(1,"nz-timeline-item",2),u.YNc(2,F,2,3,"ng-template",null,3,u.W1O),u._UZ(4,"cvc-event-timeline-item",4),u.qZA(),u.BQk()),2&C){const D=w.$implicit,G=u.MAs(3),ie=u.oxw(2);u.xp6(1),u.Q6J("nzDot",G),u.xp6(3),u.Q6J("event",D)("tagDisplay",ie.tagDisplay)}}function X(C,w){if(1&C&&(u.TgZ(0,"nz-timeline"),u.YNc(1,B,5,3,"ng-container",1),u.qZA()),2&C){const D=u.oxw();u.xp6(1),u.Q6J("ngForOf",D.events)}}let q=(()=>{class C{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}}return C.\u0275fac=function(D){return new(D||C)},C.\u0275cmp=u.Xpm({type:C,selectors:[["cvc-event-timeline"]],inputs:{events:"events",tagDisplay:"tagDisplay"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzDot"],["timelineDotTemplate",""],[3,"event","tagDisplay"],["nz-icon","","nzTheme","twotone",1,"item-icon",3,"nzType"]],template:function(D,G){1&D&&u.YNc(0,X,2,1,"nz-timeline",0),2&D&&u.Q6J("ngIf",null==G.events?null:G.events.length)},directives:[e.O5,v.PD,e.sg,v.Zv,r.w,E.Ls,f.t],pipes:[x],styles:["[_nghost-%COMP%]{display:block}.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}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%}"]}),C})();var k=n(2643),ee=n(8747),te=n(2937);let ne=(()=>{class C{}return C.\u0275fac=function(D){return new(D||C)},C.\u0275mod=u.oAB({type:C}),C.\u0275inj=u.cJS({imports:[[e.ez,l.u5,t.WG,T.sL,z.vh,E.PV,g.U5,L.LV,m.m,M.Jb,Y.zf,H.Xo,V.Rt,K,U.s,$.N,U.s]]}),C})();u.B6R(d.o,[e.O5,M.SK,M.t3,Y.NU,Y.$1,z.bd,q,T.ix,k.dQ,r.w,m.i,l.JJ,l.On,ee.l,V.Dz,H.p9],[t.fM,te.R,e.gd])},3212:(b,y,n)=>{n.d(y,{E:()=>c});var e=n(9808),d=n(647),t=n(7345),z=n(3618),E=n(9444),g=n(3172),l=n(9445),m=n(3309),M=n(8369),L=n(209),I=n(4867),j=n(9476),U=n(404),Q=n(8625),Z=n(1894),J=n(9401),h=n(6042),S=n(9779),p=n(7026),O=n(7677),R=n(8481),s=n(325),v=n(5e3);let c=(()=>{class T{}return T.\u0275fac=function(N){return new(N||T)},T.\u0275mod=v.oAB({type:T}),T.\u0275inj=v.cJS({imports:[[e.ez,h.sL,d.PV,R.X,U.cg,z.ZJ,Z.Jb,s.Bz,Q.$L.forChild({formatter:{useClass:p.x,provide:Q.KP}}),J.y,t.W,E.s,g.T,l.O,m.U,M.W,L.i,I.Q,j.L,S.s,O.G]]}),T})()},2347:(b,y,n)=>{n.d(y,{t:()=>xe});var e=n(5e3),d=n(9808),t=n(1894),z=n(125),E=n(3618),g=n(9297),l=n(325),m=n(8481),M=n(3610),L=n(373),I=n(712),j=n(7484),U=n(3193),Q=n(2826),Z=n(9001),J=n(8664),h=n(6906),S=n(6949),p=n(8625);function O(i,_){if(1&i&&e._UZ(0,"cvc-gene-tag",17),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",o.commentable)}}function R(i,_){if(1&i&&e._UZ(0,"cvc-assertion-tag",18),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",o.commentable)}}function s(i,_){if(1&i&&e._UZ(0,"cvc-evidence-tag",19),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",o.commentable)}}function v(i,_){if(1&i&&e._UZ(0,"cvc-variant-tag",20),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",o.commentable)}}function c(i,_){if(1&i&&e._UZ(0,"cvc-revision-tag",21),2&i){const o=e.oxw(2).ngIf;e.Q6J("revision",o.commentable)}}function T(i,_){if(1&i&&e._UZ(0,"cvc-source-tag",22),2&i){const o=e.oxw(2).ngIf;e.Q6J("source",o.commentable)}}function A(i,_){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const o=e.oxw(2).ngIf;e.xp6(1),e.Oqu(o.commentable.name)}}function N(i,_){if(1&i&&(e.TgZ(0,"span",7),e._UZ(1,"cvc-user-tag",8),e._uU(2,"commented on "),e.ynx(3,9),e.YNc(4,O,1,2,"cvc-gene-tag",10),e.YNc(5,R,1,2,"cvc-assertion-tag",11),e.YNc(6,s,1,2,"cvc-evidence-tag",12),e.YNc(7,v,1,2,"cvc-variant-tag",13),e.YNc(8,c,1,1,"cvc-revision-tag",14),e.YNc(9,T,1,1,"cvc-source-tag",15),e.YNc(10,A,2,1,"span",16),e.BQk(),e._uU(11),e.ALo(12,"timeago"),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(1),e.Q6J("enablePopover",!1)("user",o.commenter),e.xp6(2),e.Q6J("ngSwitch",o.commentable.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Assertion"),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","Source"),e.xp6(2),e.hij(" ",e.lcZ(12,10,o.createdAt)," ")}}function W(i,_){if(1&i&&(e.TgZ(0,"p",23),e.TgZ(1,"b"),e._uU(2),e.qZA(),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(2),e.Oqu(o.title)}}function u(i,_){if(1&i&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,N,13,12,"ng-template",null,3,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",4),e.TgZ(6,"div",5),e.YNc(7,W,3,1,"p",6),e.TgZ(8,"p"),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&i){const o=_.ngIf,P=e.MAs(3);e.xp6(1),e.Q6J("nzTitle",P),e.xp6(6),e.Q6J("ngIf",o.title),e.xp6(2),e.hij(" ",o.comment," ")}}let K=(()=>{class i{constructor(o){this.gql=o}ngOnInit(){if(null==this.commentId)throw new Error("cvc-comment-popover requires valid commentId input.");this.comment$=this.gql.watch({commentId:this.commentId}).valueChanges.pipe((0,L.j)("data","comment"))}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(I.Kk))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-comment-popover"]],inputs:{commentId:"commentId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography","",4,"ngIf"],[1,"comment-card-title"],[3,"enablePopover","user"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"revision",4,"ngSwitchCase"],["mode","concise",3,"source",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"revision"],["mode","concise",3,"source"],["nz-typography",""]],template:function(o,P){1&o&&(e.TgZ(0,"div",0),e.YNc(1,u,10,3,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,P.comment$)))},directives:[d.O5,j.bd,z.I,d.RF,d.n9,U.H,Q.w,Z.O,J.I,g.p,h.T,d.ED,t.SK,t.t3],pipes:[S.fM,p.wr],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}[_nghost-%COMP%]{display:block}.comment-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),i})();var Y=n(647);function $(i,_){}function V(i,_){}function H(i,_){if(1&i&&(e.TgZ(0,"nz-tag",7),e.YNc(1,V,0,0,"ng-template",1),e.qZA()),2&i){e.oxw();const o=e.MAs(2);e.oxw();const P=e.MAs(7);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",o),e.xp6(1),e.Q6J("ngTemplateOutlet",P)}}function r(i,_){if(1&i&&e._UZ(0,"cvc-comment-popover",8),2&i){const o=e.oxw(2);e.Q6J("commentId",o.comment.id)}}function f(i,_){if(1&i&&(e.YNc(0,H,2,3,"nz-tag",5),e.YNc(1,r,1,1,"ng-template",null,6,e.W1O)),2&i){const o=e.oxw(),P=e.MAs(5);e.Q6J("ngIf",o.enablePopover)("ngIfElse",P)}}function a(i,_){}function x(i,_){if(1&i&&(e.TgZ(0,"nz-tag"),e.YNc(1,a,0,0,"ng-template",1),e.qZA()),2&i){e.oxw();const o=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",o)}}function F(i,_){if(1&i&&(e._UZ(0,"i",9),e._uU(1)),2&i){const o=e.oxw();e.xp6(1),e.hij(" ",o.comment.name,"\n")}}let B=(()=>{class i{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-comment-tag"]],inputs:{comment:"comment",subject:"subject",enablePopover:"enablePopover"},decls:8,vars:2,consts:[[3,"routerLink"],[3,"ngTemplateOutlet"],["tag",""],["noPopover",""],["tagContent",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["commentPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"commentId"],["nz-icon","","nzType","civic-comment","nzTheme","twotone","nzTwotoneColor","#44D8EF"]],template:function(o,P){if(1&o&&(e.TgZ(0,"a",0),e.YNc(1,$,0,0,"ng-template",1),e.qZA(),e.YNc(2,f,3,2,"ng-template",null,2,e.W1O),e.YNc(4,x,2,1,"ng-template",null,3,e.W1O),e.YNc(6,F,2,1,"ng-template",null,4,e.W1O)),2&o){const oe=e.MAs(3);e.Q6J("routerLink",P.comment.link),e.xp6(1),e.Q6J("ngTemplateOutlet",oe)}},directives:[l.yS,d.tP,d.O5,m.j,M.lU,K,Y.Ls],styles:[""]}),i})(),X=(()=>{class i{constructor(){}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-flag-tag"]],inputs:{flag:"flag",subject:"subject"},decls:4,vars:2,consts:[[3,"routerLink"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(o,P){1&o&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&o&&(e.Q6J("routerLink",P.flag.link),e.xp6(3),e.hij(" ",P.flag.name," "))},directives:[l.yS,m.j,Y.Ls],styles:[""]}),i})();var q=n(112),k=n(5749),ee=n(404),te=n(2937);let ne=(()=>{class i{transform(o){switch(o){case I.AO2.Commented:case I.AO2.RevisionSuggested:case I.AO2.RevisionAccepted:case I.AO2.RevisionRejected:case I.AO2.RevisionSuperseded:return"to";case I.AO2.Flagged:case I.AO2.FlagResolved:return"on";case I.AO2.PublicationSuggested:case I.AO2.CuratedSourceSuggestion:case I.AO2.RejectedSourceSuggestion:case I.AO2.RequeuedSourceSuggestion:return"";default:throw new Error("Not handling all event action types yet "+o)}}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=e.Yjl({name:"prepositionForSubject",type:i,pure:!0}),i})();function C(i,_){if(1&i&&e._UZ(0,"cvc-user-tag",10),2&i){const o=e.oxw(2);e.Q6J("user",o.event.originatingUser)}}function w(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function D(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-revision-tag",13),e.YNc(2,w,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,P=e.oxw(2);e.xp6(1),e.Q6J("revision",o)("subject",P.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=P.tagDisplay)}}function G(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ie(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-comment-tag",15),e.YNc(2,G,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,P=e.oxw(2);e.xp6(1),e.Q6J("comment",o)("subject",P.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=P.tagDisplay)}}function ce(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ae(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-flag-tag",16),e.YNc(2,ce,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,P=e.oxw(2);e.xp6(1),e.Q6J("flag",o)("subject",P.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=P.tagDisplay)}}function se(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function re(i,_){if(1&i&&(e.TgZ(0,"span"),e.TgZ(1,"nz-tag",17),e._uU(2),e.qZA(),e.YNc(3,se,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,P=e.oxw(2);e.xp6(1),e.Q6J("routerLink",o.link),e.xp6(1),e.hij(" ",o.name," "),e.xp6(1),e.Q6J("ngIf","hideSubject"!=P.tagDisplay)}}function _e(i,_){if(1&i&&(e.ynx(0),e.ynx(1,11),e.YNc(2,D,3,3,"span",12),e.YNc(3,ie,3,3,"span",12),e.YNc(4,ae,3,3,"span",12),e.YNc(5,re,4,3,"span",12),e.BQk(),e.BQk()),2&i){const o=_.ngIf;e.xp6(1),e.Q6J("ngSwitch",o.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","Comment"),e.xp6(1),e.Q6J("ngSwitchCase","Flag"),e.xp6(1),e.Q6J("ngSwitchCase","SourceSuggestion")}}function le(i,_){if(1&i&&e._UZ(0,"cvc-gene-tag",26),2&i){const o=e.oxw().ngIf;e.Q6J("gene",o)}}function ge(i,_){if(1&i&&e._UZ(0,"cvc-assertion-tag",27),2&i){const o=e.oxw().ngIf;e.Q6J("assertion",o)}}function pe(i,_){if(1&i&&e._UZ(0,"cvc-evidence-tag",28),2&i){const o=e.oxw().ngIf;e.Q6J("evidence",o)}}function me(i,_){if(1&i&&e._UZ(0,"cvc-variant-tag",29),2&i){const o=e.oxw().ngIf;e.Q6J("variant",o)}}function ve(i,_){if(1&i&&e._UZ(0,"cvc-revision-tag",30),2&i){const o=e.oxw().ngIf;e.Q6J("revision",o)}}function de(i,_){if(1&i&&e._UZ(0,"cvc-variant-group-tag",31),2&i){const o=e.oxw().ngIf;e.Q6J("variantgroup",o)}}function ue(i,_){if(1&i&&e._UZ(0,"cvc-source-tag",32),2&i){const o=e.oxw().ngIf;e.Q6J("source",o)}}function fe(i,_){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(1),e.Oqu(o.name)}}function Ce(i,_){1&i&&(e.ynx(0,11),e.YNc(1,le,1,1,"cvc-gene-tag",18),e.YNc(2,ge,1,1,"cvc-assertion-tag",19),e.YNc(3,pe,1,1,"cvc-evidence-tag",20),e.YNc(4,me,1,1,"cvc-variant-tag",21),e.YNc(5,ve,1,1,"cvc-revision-tag",22),e.YNc(6,de,1,1,"cvc-variant-group-tag",23),e.YNc(7,ue,1,1,"cvc-source-tag",24),e.YNc(8,fe,2,1,"span",25),e.BQk()),2&i&&(e.Q6J("ngSwitch",_.ngIf.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Assertion"),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","VariantGroup"),e.xp6(1),e.Q6J("ngSwitchCase","Source"))}function he(i,_){if(1&i&&(e.ynx(0),e.TgZ(1,"span",5),e._uU(2,"for\xa0"),e.qZA(),e._UZ(3,"cvc-organization-tag",33),e.BQk()),2&i){const o=_.ngIf;e.xp6(3),e.Q6J("org",o)}}function Te(i,_){if(1&i&&(e.TgZ(0,"nz-row",2),e.TgZ(1,"nz-col",3),e.YNc(2,C,1,1,"cvc-user-tag",4),e.TgZ(3,"span",5),e._uU(4),e.ALo(5,"eventVerbiage"),e.qZA(),e.YNc(6,_e,6,5,"ng-container",6),e.YNc(7,Ce,9,8,"ng-container",7),e.YNc(8,he,4,1,"ng-container",6),e.qZA(),e.TgZ(9,"nz-col",8),e.TgZ(10,"span",9),e.ALo(11,"date"),e._uU(12),e.ALo(13,"timeago"),e.qZA(),e.qZA(),e.qZA()),2&i){const o=e.oxw();e.xp6(2),e.Q6J("ngIf","hideUser"!=o.tagDisplay),e.xp6(2),e.hij("",e.xi3(5,7,o.event.action,"feed"),"\xa0"),e.xp6(2),e.Q6J("ngIf",o.event.originatingObject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=o.tagDisplay&&o.event.subject),e.xp6(1),e.Q6J("ngIf","hideOrg"!=o.tagDisplay&&o.event.organization),e.xp6(2),e.Q6J("nzTooltipTitle",e.lcZ(11,10,o.event.createdAt)),e.xp6(2),e.hij(" ",e.lcZ(13,12,o.event.createdAt)," ")}}function ze(i,_){1&i&&e._uU(0," Event database entry is malformed and cannot be displayed\n")}let xe=(()=>{class i{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-event-timeline-item"]],inputs:{event:"event",tagDisplay:"tagDisplay"},decls:3,vars:2,consts:[["class","timeline-item",4,"ngIf","ngIfElse"],["noOriginating",""],[1,"timeline-item"],["nzFlex","auto",1,"description"],[3,"user",4,"ngIf"],["nz-typography",""],[4,"ngIf"],[3,"ngSwitch",4,"ngIf"],["nzFlex","100px",1,"timestamp"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision","subject"],["nz-typography","",4,"ngIf"],[3,"comment","subject"],[3,"flag","subject"],[2,"cursor","pointer",3,"routerLink"],[3,"gene",4,"ngSwitchCase"],[3,"assertion",4,"ngSwitchCase"],[3,"evidence",4,"ngSwitchCase"],[3,"variant",4,"ngSwitchCase"],[3,"revision",4,"ngSwitchCase"],[3,"variantgroup",4,"ngSwitchCase"],["mode","concise",3,"source",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"gene"],[3,"assertion"],[3,"evidence"],[3,"variant"],[3,"revision"],[3,"variantgroup"],["mode","concise",3,"source"],[3,"org"]],template:function(o,P){if(1&o&&(e.YNc(0,Te,14,14,"nz-row",0),e.YNc(1,ze,1,0,"ng-template",null,1,e.W1O)),2&o){const oe=e.MAs(2);e.Q6J("ngIf",P.event.originatingObject)("ngIfElse",oe)}},directives:[d.O5,t.SK,t.t3,z.I,E.ZU,d.RF,d.n9,g.p,B,X,m.j,l.rH,U.H,Q.w,Z.O,J.I,q.u,h.T,d.ED,k.m,ee.SY],pipes:[te.R,ne,d.uU,p.wr],styles:[""]}),i})()},9445:(b,y,n)=>{n.d(y,{O:()=>l});var e=n(9808),d=n(8481),t=n(647),z=n(325),E=n(9444),g=n(5e3);let l=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[e.ez,z.Bz,d.X,t.PV,E.s]]}),m})()},9297:(b,y,n)=>{n.d(y,{p:()=>E});var e=n(5e3),d=n(325),t=n(8481),z=n(647);let E=(()=>{class g{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:4,vars:2,consts:[[3,"routerLink"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(m,M){1&m&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&m&&(e.Q6J("routerLink",M.revision.link),e.xp6(3),e.hij(" ",M.revision.name," "))},directives:[d.yS,t.j,z.Ls],styles:[""]}),g})()},8747:(b,y,n)=>{n.d(y,{l:()=>J});var e=n(5e3),d=n(9808),t=n(7484),z=n(3762),E=n(6042),g=n(2643),l=n(2683),m=n(647);const M=["itemTemplate"],L=function(h){return{$implicit:h}};function I(h,S){if(1&h){const p=e.EpF();e.TgZ(0,"nz-list-item",5),e.NdJ("click",function(){e.CHM(p);const R=e.oxw().$implicit;return e.oxw(2).onParticipantSelected(R)}),e.GkF(1,6),e.qZA()}if(2&h){const p=e.oxw().$implicit,O=e.oxw(2);e.ekj("selected-participant",p.id==(null==O.selectedItem?null:O.selectedItem.id)),e.xp6(1),e.Q6J("ngTemplateOutlet",O.itemTemplateRef||null)("ngTemplateOutletContext",e.VKq(4,L,p))}}function j(h,S){if(1&h&&(e.ynx(0),e.YNc(1,I,2,6,"nz-list-item",4),e.BQk()),2&h){const p=S.index,O=e.oxw(2);e.xp6(1),e.Q6J("ngIf",p+1<=O.defaultListSize)}}function U(h,S){if(1&h){const p=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(p),e.oxw(2).onExpandClicked()}),e._UZ(1,"i",8),e._uU(2," Expand "),e.qZA()}}function Q(h,S){if(1&h){const p=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(p),e.oxw(2).onCollapseClicked()}),e._UZ(1,"i",9),e._uU(2," Collapse "),e.qZA()}}function Z(h,S){if(1&h&&(e.ynx(0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-list"),e.YNc(3,j,2,1,"ng-container",2),e.qZA(),e.YNc(4,U,3,0,"button",3),e.YNc(5,Q,3,0,"button",3),e.qZA(),e.BQk()),2&h){const p=e.oxw();e.xp6(1),e.Q6J("nzTitle",p.listTitle),e.xp6(2),e.Q6J("ngForOf",p.participantList),e.xp6(1),e.Q6J("ngIf",p.participantList.length>p.defaultListSize),e.xp6(1),e.Q6J("ngIf",p.isExpanded)}}let J=(()=>{class h{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(p){var O;this.selectedItem=p.id==(null===(O=this.selectedItem)||void 0===O?void 0:O.id)?void 0:p,this.participantSelectedEvent.emit(this.selectedItem)}onExpandClicked(){this.originalDefaultListSize=this.defaultListSize,this.defaultListSize=this.participantList.length,this.isExpanded=!0}onCollapseClicked(){this.originalDefaultListSize&&(this.defaultListSize=this.originalDefaultListSize,this.isExpanded=!1)}}return h.\u0275fac=function(p){return new(p||h)},h.\u0275cmp=e.Xpm({type:h,selectors:[["cvc-participant-list"]],contentQueries:function(p,O,R){if(1&p&&e.Suo(R,M,5),2&p){let s;e.iGM(s=e.CRH())&&(O.itemTemplateRef=s.first)}},inputs:{participantList:"participantList",listTitle:"listTitle",defaultListSize:"defaultListSize",preselectedOption:"preselectedOption"},outputs:{participantSelectedEvent:"participantSelectedEvent"},decls:1,vars:1,consts:[[4,"ngIf"],["nz-type","inner",2,"margin-bottom","1em",3,"nzTitle"],[4,"ngFor","ngForOf"],["nz-button","","nzType","default","nzSize","small",3,"click",4,"ngIf"],["nzSize","small","class","participant-list-item",3,"selected-participant","click",4,"ngIf"],["nzSize","small",1,"participant-list-item",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","vertical-align-bottom"],["nz-icon","","nzType","vertical-align-top"]],template:function(p,O){1&p&&e.YNc(0,Z,6,4,"ng-container",0),2&p&&e.Q6J("ngIf",O.participantList&&O.participantList.length>0)},directives:[d.O5,t.bd,z.n_,d.sg,z.AA,d.tP,E.ix,g.dQ,l.w,m.Ls],styles:[".participant-list-item[_ngcontent-%COMP%]:hover{border:1px solid #40a9ff;cursor:pointer}.participant-list-item[_ngcontent-%COMP%]{padding:2px;margin:2px}.selected-participant[_ngcontent-%COMP%]{background:#40a9ff;color:#fff}"]}),h})()},1150:(b,y,n)=>{n.d(y,{N:()=>l});var e=n(9808),d=n(7484),t=n(3762),z=n(647),E=n(6042),g=n(5e3);let l=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[e.ez,d.vh,t.Ph,z.PV,E.sL]]}),m})()},2937:(b,y,n)=>{n.d(y,{R:()=>t});var e=n(712),d=n(5e3);let t=(()=>{class z{transform(g,l="contributor-card",m=0){return"contributor-card"===l?this.contributorVerbiage(g,m):"action-filter"===l?this.actionFilterVerbiage(g):this.eventFeedVerbiage(g)}eventFeedVerbiage(g){switch(g){case e.AO2.Commented:return"added comment";case e.AO2.RevisionSuggested:return"suggested revision";case e.AO2.RevisionAccepted:return"accepted revision";case e.AO2.RevisionRejected:return"rejected revision";case e.AO2.RevisionSuperseded:return"accepted superseding revision";case e.AO2.Flagged:return"opened new flag";case e.AO2.FlagResolved:return"resolved flag";case e.AO2.AssertionSubmitted:return"submitted assertion";case e.AO2.AssertionAccepted:return"accepted assertion";case e.AO2.AssertionRejected:return"rejected assertion";case e.AO2.Submitted:return"submitted evidence item";case e.AO2.Accepted:return"accepted evidence item";case e.AO2.Rejected:return"rejected evidence item";case e.AO2.PublicationSuggested:return"created source suggestion";case e.AO2.CuratedSourceSuggestion:return"finished curating source suggestion";case e.AO2.RejectedSourceSuggestion:return"rejected source suggestion";case e.AO2.RequeuedSourceSuggestion:return"requeued source suggestion";case e.AO2.Reverted:return"reverted evidence item";case e.AO2.AssertionReverted:return"reverted assertion";default:throw new Error("Not handling all event action types yet")}}actionFilterVerbiage(g){switch(g){case e.AO2.Commented:return"commented";case e.AO2.RevisionSuggested:return"revision suggested";case e.AO2.RevisionAccepted:return"revision accepted";case e.AO2.RevisionRejected:return"revision rejected";case e.AO2.RevisionSuperseded:return"superseding revision accepted";case e.AO2.Flagged:return"flag opened";case e.AO2.FlagResolved:return"flag resolved";case e.AO2.AssertionSubmitted:return"assertion submitted";case e.AO2.AssertionAccepted:return"assertion accepted";case e.AO2.AssertionRejected:return"assertion rejected";case e.AO2.Submitted:return"evidence item submitted";case e.AO2.Accepted:return"evidence item accepted";case e.AO2.Rejected:return"evidence item rejected";case e.AO2.PublicationSuggested:return"source suggestion created";case e.AO2.CuratedSourceSuggestion:return"source suggestion curated";case e.AO2.RejectedSourceSuggestion:return"source suggestion rejected";case e.AO2.RequeuedSourceSuggestion:return"source suggestion requeued";case e.AO2.Reverted:return"evidence item reverted";case e.AO2.AssertionReverted:return"assertion reverted";default:throw new Error("Not handling all event action types yet")}}contributorVerbiage(g,l){switch(g){case e.AO2.Commented:return 1==l?"left a comment on this entity":`left ${l} comments on this entity`;case e.AO2.RevisionSuggested:return 1==l?"suggested a revision to this entity":`suggested ${l} revisions on this entity`;case e.AO2.RevisionAccepted:return 1==l?"accepted a revision to this entity":`accepted ${l} revisions on this entity`;case e.AO2.RevisionRejected:return 1==l?"rejected a revision to this entity":`rejected ${l} revisions on this entity`;case e.AO2.RevisionSuperseded:return 1==l?"accepted a superseding revision to this entity":`accepted ${l} superseding revisions on this entity`;case e.AO2.Flagged:return 1==l?"opened new flag on this entity":`opened ${l} new flags on this entity`;case e.AO2.FlagResolved:return 1==l?"resolved a flag on this entity":`resolved ${l} flags on this entity`;case e.AO2.AssertionSubmitted:return"submitted this assertion";case e.AO2.AssertionAccepted:return"accepted this assertion";case e.AO2.AssertionRejected:return"rejected this assertion";case e.AO2.Submitted:return"submitted this evidence item";case e.AO2.Accepted:return"accepted this evidence item";case e.AO2.Rejected:return"rejected this evidence item";case e.AO2.PublicationSuggested:return"";case e.AO2.CuratedSourceSuggestion:return"finished curating this source suggestion";case e.AO2.RejectedSourceSuggestion:return"rejected this source suggestion";case e.AO2.RequeuedSourceSuggestion:return"requeued this source suggestion";case e.AO2.AssertionReverted:return"reverted this assertion";case e.AO2.Reverted:return"reverted this evidence item";default:throw new Error("Not handling all event action types yet")}}}return z.\u0275fac=function(g){return new(g||z)},z.\u0275pipe=d.Yjl({name:"eventVerbiage",type:z,pure:!0}),z})()},2712:(b,y,n)=>{n.d(y,{PD:()=>Y,Zv:()=>K,FT:()=>H});var e=n(5e3),d=n(839),t=n(8929),z=n(9808),E=n(969),g=n(7625),l=n(226),m=n(647),M=n(925);const L=["template"];function I(r,f){if(1&r&&(e.ynx(0),e._uU(1),e.BQk()),2&r){const a=e.oxw(3);e.xp6(1),e.Oqu(a.nzLabel)}}function j(r,f){if(1&r&&(e.TgZ(0,"div",7),e.YNc(1,I,2,1,"ng-container",5),e.qZA()),2&r){const a=e.oxw(2);e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzLabel)}}function U(r,f){if(1&r&&(e.ynx(0),e._uU(1),e.BQk()),2&r){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzDot)}}function Q(r,f){if(1&r&&(e.TgZ(0,"li",1),e.YNc(1,j,2,1,"div",2),e._UZ(2,"div",3),e.TgZ(3,"div",4),e.YNc(4,U,2,1,"ng-container",5),e.qZA(),e.TgZ(5,"div",6),e.Hsn(6),e.qZA(),e.qZA()),2&r){const a=e.oxw();e.ekj("ant-timeline-item-right","right"===(a.nzPosition||a.position))("ant-timeline-item-left","left"===(a.nzPosition||a.position))("ant-timeline-item-last",a.isLast),e.xp6(1),e.Q6J("ngIf",a.nzLabel),e.xp6(2),e.Udp("border-color",a.borderColor),e.ekj("ant-timeline-item-head-red","red"===a.nzColor)("ant-timeline-item-head-blue","blue"===a.nzColor)("ant-timeline-item-head-green","green"===a.nzColor)("ant-timeline-item-head-gray","gray"===a.nzColor)("ant-timeline-item-head-custom",!!a.nzDot),e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzDot)}}const Z=["*"];function J(r,f){if(1&r&&e.GkF(0,4),2&r){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function h(r,f){}function S(r,f){if(1&r&&(e.ynx(0),e.YNc(1,h,0,0,"ng-template",4),e.BQk()),2&r){const a=f.$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",a.template)}}function p(r,f){if(1&r&&e.GkF(0,4),2&r){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function O(r,f){1&r&&e._UZ(0,"i",12)}function R(r,f){if(1&r&&(e.ynx(0),e._uU(1),e.YNc(2,O,1,0,"i",11),e.BQk()),2&r){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.nzPendingDot," "),e.xp6(1),e.Q6J("ngIf",!a.nzPendingDot)}}function s(r,f){if(1&r&&(e.ynx(0),e._uU(1),e.BQk()),2&r){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.isPendingBoolean?"":a.nzPending," ")}}function v(r,f){if(1&r&&(e.TgZ(0,"li",6),e._UZ(1,"div",7),e.TgZ(2,"div",8),e.YNc(3,R,3,2,"ng-container",9),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,s,2,1,"ng-container",9),e.qZA(),e.qZA()),2&r){const a=e.oxw(2);e.xp6(3),e.Q6J("nzStringTemplateOutlet",a.nzPendingDot),e.xp6(2),e.Q6J("nzStringTemplateOutlet",a.nzPending)}}function c(r,f){if(1&r&&e.YNc(0,v,6,2,"li",5),2&r){const a=e.oxw();e.Q6J("ngIf",a.nzPending)}}const N=["red","blue","green","grey","gray"];let W=(()=>{class r{constructor(){this.check$=new d.t(1)}markForCheck(){this.check$.next()}}return r.\u0275fac=function(a){return new(a||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})(),K=(()=>{class r{constructor(a,x){this.cdr=a,this.timelineService=x,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(a){this.timelineService.markForCheck(),a.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function u(r){return-1!==N.findIndex(f=>f===r)}(this.nzColor)?null:this.nzColor}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(e.sBO),e.Y36(W))},r.\u0275cmp=e.Xpm({type:r,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(a,x){if(1&a&&e.Gf(L,5),2&a){let F;e.iGM(F=e.CRH())&&(x.template=F.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],features:[e.TTD],ngContentSelectors:Z,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],["class","ant-timeline-item-label",4,"ngIf"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],[1,"ant-timeline-item-label"]],template:function(a,x){1&a&&(e.F$t(),e.YNc(0,Q,7,20,"ng-template",null,0,e.W1O))},directives:[z.O5,E.f],encapsulation:2,changeDetection:0}),r})(),Y=(()=>{class r{constructor(a,x,F){this.cdr=a,this.timelineService=x,this.directionality=F,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new t.xQ}ngOnChanges(a){const{nzMode:x,nzReverse:F,nzPending:B}=a;($(x)||$(F))&&this.updateChildren(),B&&(this.isPendingBoolean=!0===B.currentValue)}ngOnInit(){var a;this.timelineService.check$.pipe((0,g.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),null===(a=this.directionality.change)||void 0===a||a.pipe((0,g.R)(this.destroy$)).subscribe(x=>{this.dir=x,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,g.R)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const a=this.listOfItems.length;let x=!1;this.listOfItems.forEach((F,B)=>{F.isLast=this.nzReverse?0===B:B===a-1,F.position=function V(r,f){return"custom"===f?void 0:"left"===f?"left":"right"===f?"right":"alternate"===f&&r%2==0?"left":"right"}(B,this.nzMode),!x&&F.nzLabel&&(x=!0),F.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=x}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(e.sBO),e.Y36(W),e.Y36(l.Is,8))},r.\u0275cmp=e.Xpm({type:r,selectors:[["nz-timeline"]],contentQueries:function(a,x,F){if(1&a&&e.Suo(F,K,4),2&a){let B;e.iGM(B=e.CRH())&&(x.listOfItems=B)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:"nzReverse"},exportAs:["nzTimeline"],features:[e._Bn([W]),e.TTD],ngContentSelectors:Z,decls:7,vars:15,consts:[[1,"ant-timeline"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngFor","ngForOf"],["pendingTemplate",""],[3,"ngTemplateOutlet"],["class","ant-timeline-item ant-timeline-item-pending",4,"ngIf"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(a,x){1&a&&(e.F$t(),e.TgZ(0,"ul",0),e.YNc(1,J,1,1,"ng-container",1),e.YNc(2,S,2,1,"ng-container",2),e.YNc(3,p,1,1,"ng-container",1),e.qZA(),e.YNc(4,c,1,1,"ng-template",null,3,e.W1O),e.Hsn(6)),2&a&&(e.ekj("ant-timeline-label",x.hasLabelItem)("ant-timeline-right",!x.hasLabelItem&&"right"===x.nzMode)("ant-timeline-alternate","alternate"===x.nzMode||"custom"===x.nzMode)("ant-timeline-pending",!!x.nzPending)("ant-timeline-reverse",x.nzReverse)("ant-timeline-rtl","rtl"===x.dir),e.xp6(1),e.Q6J("ngIf",x.nzReverse),e.xp6(1),e.Q6J("ngForOf",x.timelineItems),e.xp6(1),e.Q6J("ngIf",!x.nzReverse))},directives:[z.O5,z.tP,z.sg,E.f,m.Ls],encapsulation:2,changeDetection:0}),r})();function $(r){return!(!r||r.previousValue===r.currentValue&&!r.isFirstChange())}let H=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({imports:[[l.vT,z.ez,M.ud,m.PV,E.T]]}),r})()}}]);
\ No newline at end of file
diff --git a/server/public/4292.73f4c12168601c38.js b/server/public/4292.73f4c12168601c38.js
new file mode 100644
index 000000000..7cee32654
--- /dev/null
+++ b/server/public/4292.73f4c12168601c38.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4292],{3172:(Y,S,n)=>{n.d(S,{T:()=>F});var e=n(9808),v=n(3610),A=n(6949),t=n(7345),P=n(8369),g=n(209),l=n(4867),m=n(8625),y=n(7484),R=n(1894),M=n(3309),B=n(7026),Q=n(9401),N=n(9779),L=n(5e3);let w=(()=>{class x{}return x.\u0275fac=function(u){return new(u||x)},x.\u0275mod=L.oAB({type:x}),x.\u0275inj=L.cJS({imports:[[e.ez,A.WG,y.vh,R.Jb,M.U,t.W,P.W,g.i,g.i,l.Q,Q.y,N.s,m.$L.forChild({formatter:{useClass:B.x,provide:m.KP}})]]}),x})();var h=n(8481),D=n(647),p=n(9444),z=n(325);let F=(()=>{class x{}return x.\u0275fac=function(u){return new(u||x)},x.\u0275mod=L.oAB({type:x}),x.\u0275inj=L.cJS({imports:[[e.ez,p.s,z.Bz,v.$6,D.PV,w,h.X]]}),x})()},2011:(Y,S,n)=>{n.d(S,{o:()=>x});var e=n(712),v=n(4850),A=n(2340),t=n(5e3);function P(r,u){if(1&r&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",11),t.BQk()),2&r){const c=t.oxw().ngIf,O=t.oxw(3);t.xp6(1),t.Q6J("events",c)("tagDisplay",O.tagDisplay)}}function g(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"button",14),t.NdJ("click",function(){t.CHM(c);const E=t.oxw().ngIf;return t.oxw(4).fetchMore(E.endCursor)}),t._uU(2,"Load More "),t.qZA(),t.qZA()}}function l(r,u){if(1&r&&(t.ynx(0),t.YNc(1,g,3,0,"div",12),t.BQk()),2&r){const c=u.ngIf;t.xp6(1),t.Q6J("ngIf",c.hasNextPage)}}function m(r,u){if(1&r&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",10),t.YNc(3,P,2,2,"ng-container",0),t.YNc(4,l,2,1,"ng-container",9),t.ALo(5,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()),2&r){const c=u.ngIf,O=t.oxw(3),E=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",c.length)("ngIfElse",E),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,O.pageInfo$))}}function y(r,u){if(1&r&&(t.TgZ(0,"nz-card",8),t.YNc(1,m,6,6,"ng-container",9),t.ALo(2,"ngrxPush"),t.qZA()),2&r){const c=t.oxw(2);t.Q6J("nzTitle",c.showFilters?"Events":void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,c.events$))}}function R(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"span"),t._uU(1," Show Child Events "),t.TgZ(2,"nz-switch",16),t.NdJ("ngModelChange",function(E){return t.CHM(c),t.oxw(3).showChildren=E})("ngModelChange",function(){return t.CHM(c),t.oxw(3).onShowChildrenToggle()}),t.qZA(),t.qZA()}if(2&r){const c=t.oxw(3);t.xp6(2),t.Q6J("ngModel",c.showChildren)}}function M(r,u){1&r&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&r&&t.hij(" ",t.xi3(1,1,u.$implicit.id,"action-filter")," ")}function B(r,u){if(1&r&&t._UZ(0,"nz-avatar",24),2&r){const c=t.oxw().$implicit;t.Q6J("nzSrc",c.profileImagePath)}}function Q(r,u){if(1&r&&(t._UZ(0,"nz-avatar",25),t.ALo(1,"uppercase")),2&r){const c=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,c.displayName.charAt(0)))}}function N(r,u){if(1&r&&(t.YNc(0,B,1,1,"nz-avatar",22),t.YNc(1,Q,2,3,"ng-template",null,23,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&r){const c=u.$implicit,O=t.MAs(2);t.Q6J("ngIf",c.profileImagePath)("ngIfElse",O),t.xp6(4),t.Oqu(c.displayName)}}function L(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"cvc-participant-list",21),t.NdJ("participantSelectedEvent",function(E){return t.CHM(c),t.oxw(4).onOriginatingUserSelected(E)}),t.ALo(1,"ngrxPush"),t.YNc(2,N,5,3,"ng-template",null,18,t.W1O),t.qZA()}if(2&r){const c=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,c.participants$))}}function w(r,u){if(1&r&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&r){const c=u.$implicit;t.xp6(1),t.hij(" ",c.name," ")}}function h(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"cvc-participant-list",26),t.NdJ("participantSelectedEvent",function(E){return t.CHM(c),t.oxw(4).onOrganizationSelected(E)}),t.ALo(1,"ngrxPush"),t.YNc(2,w,2,1,"ng-template",null,18,t.W1O),t.qZA()}if(2&r){const c=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,c.organizations$))}}function D(r,u){if(1&r){const c=t.EpF();t.ynx(0),t.TgZ(1,"cvc-participant-list",17),t.NdJ("participantSelectedEvent",function(E){return t.CHM(c),t.oxw(3).onActionSelected(E)}),t.ALo(2,"ngrxPush"),t.YNc(3,M,2,4,"ng-template",null,18,t.W1O),t.qZA(),t.YNc(5,L,4,3,"cvc-participant-list",19),t.YNc(6,h,4,3,"cvc-participant-list",20),t.BQk()}if(2&r){const c=t.oxw(3);t.xp6(1),t.Q6J("participantList",t.lcZ(2,3,c.actions$)),t.xp6(4),t.Q6J("ngIf",!c.userId),t.xp6(1),t.Q6J("ngIf",!c.organizationId)}}function p(r,u){1&r&&(t.TgZ(0,"nz-space",4),t.YNc(1,R,3,1,"span",15),t.YNc(2,D,7,5,"ng-container",15),t.qZA())}function z(r,u){if(1&r&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,y,3,4,"nz-card",5),t.qZA(),t.qZA(),t.TgZ(5,"nz-col",6),t.YNc(6,p,3,0,"nz-space",7),t.qZA(),t.qZA(),t.BQk()),2&r){const c=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",c.showFilters?"18":"24"),t.xp6(4),t.Q6J("ngIf",c.showFilters)}}function F(r,u){1&r&&t._UZ(0,"nz-empty",27)}let x=(()=>{class r{constructor(c){this.gql=c,this.tagDisplay="displayAll",this.mode=e.wJ2.Subject,this.showFilters=!0,this.pageSize=15,this.showChildren=!1}ngOnInit(){this.initialQueryVars={subject:this.subscribable,organizationId:this.organizationId,originatingUserId:this.userId,first:this.pageSize,mode:this.mode,showFilters:this.showFilters},this.queryRef=A.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.U)(({data:c})=>c.events.pageInfo)),this.events$=this.results$.pipe((0,v.U)(({data:c})=>c.events.edges.map(O=>O.node))),this.unfilteredCount$=this.results$.pipe((0,v.U)(({data:c})=>c.events.unfilteredCount)),this.showFilters&&(this.participants$=this.results$.pipe((0,v.U)(({data:c})=>c.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,v.U)(({data:c})=>c.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,v.U)(({data:c})=>{var O,E;return(null===(E=null===(O=c.events)||void 0===O?void 0:O.eventTypes)||void 0===E?void 0:E.map(J=>({id:J})))||[]})))}fetchMore(c){this.queryRef.fetchMore({variables:{first:this.pageSize,after:c}})}onOrganizationSelected(c){this.queryRef.refetch({organizationId:null==c?void 0:c.id,showFilters:this.showFilters})}onActionSelected(c){this.queryRef.refetch({eventType:c?c.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(c){this.queryRef.refetch({originatingUserId:null==c?void 0:c.id,showFilters:this.showFilters})}onShowChildrenToggle(){let c;this.subscribable?(c={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):c=void 0,this.queryRef.refetch(Object.assign(Object.assign({},this.initialQueryVars),{subject:c,showFilters:this.showFilters}))}}return r.\u0275fac=function(c){return new(c||r)(t.Y36(e.BTF))},r.\u0275cmp=t.Xpm({type:r,selectors:[["cvc-event-feed"]],inputs:{subscribable:"subscribable",subscribableName:"subscribableName",organizationId:"organizationId",userId:"userId",tagDisplay:"tagDisplay",mode:"mode",showFilters:"showFilters",pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"],[4,"nzSpaceItem"],["nzSize","small",3,"ngModel","ngModelChange"],["listTitle","Action",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Curator",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Organization",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Curator",3,"participantList","participantSelectedEvent"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Organization",3,"participantList","participantSelectedEvent"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(c,O){if(1&c&&(t.YNc(0,z,7,3,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,F,1,0,"ng-template",null,1,t.W1O)),2&c){const E=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,O.unfilteredCount$))("ngIfElse",E)}},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}"]}),r})()},4292:(Y,S,n)=>{n.d(S,{t:()=>ne});var e=n(9808),v=n(2011),A=n(6949),t=n(7484),P=n(647),g=n(4546),l=n(4182),m=n(6462),y=n(1894),R=n(8054),M=n(7345),B=n(3618),Q=n(9444),N=n(3172),L=n(9445),w=n(3309),h=n(8369),D=n(209),p=n(4867),z=n(9476),F=n(404),x=n(8625),r=n(2712),u=n(9401),c=n(6042),O=n(9779),E=n(3212),J=n(7026),d=n(5e3);let K=(()=>{class C{}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275mod=d.oAB({type:C}),C.\u0275inj=d.cJS({imports:[[e.ez,c.sL,P.PV,F.cg,B.ZJ,r.FT,y.Jb,x.$L.forChild({formatter:{useClass:J.x,provide:x.KP}}),u.y,M.W,Q.s,N.T,L.O,w.U,h.W,D.i,p.Q,z.L,O.s,E.E]]}),C})();var W=n(8144),$=n(1150),V=n(6699),H=n(685),s=n(2683),f=n(2347),a=n(712);let T=(()=>{class C{transform(Z){switch(Z){case a.AO2.Commented:return"civic-comment";case a.AO2.RevisionSuggested:case a.AO2.RevisionAccepted:case a.AO2.RevisionRejected:case a.AO2.RevisionSuperseded:return"civic-revision";case a.AO2.Flagged:case a.AO2.FlagResolved:return"civic-flag";case a.AO2.AssertionSubmitted:case a.AO2.AssertionAccepted:case a.AO2.AssertionRejected:return"civic-assertion";case a.AO2.Submitted:case a.AO2.Accepted:case a.AO2.Rejected:return"civic-evidence";case a.AO2.PublicationSuggested:case a.AO2.CuratedSourceSuggestion:case a.AO2.RejectedSourceSuggestion:case a.AO2.RequeuedSourceSuggestion:return"file-add";case a.AO2.Reverted:return"civic-evidence";case a.AO2.AssertionReverted:return"civic-assertion";default:throw new Error("Not handling all event action types yet"+Z)}}}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275pipe=d.Yjl({name:"iconNameForEventAction",type:C,pure:!0}),C})();function U(C,j){if(1&C&&(d._UZ(0,"i",5),d.ALo(1,"iconNameForEventAction")),2&C){const Z=d.oxw().$implicit;d.Q6J("nzType",d.lcZ(1,1,Z.action))}}function b(C,j){if(1&C&&(d.ynx(0),d.TgZ(1,"nz-timeline-item",2),d.YNc(2,U,2,3,"ng-template",null,3,d.W1O),d._UZ(4,"cvc-event-timeline-item",4),d.qZA(),d.BQk()),2&C){const Z=j.$implicit,G=d.MAs(3),ie=d.oxw(2);d.xp6(1),d.Q6J("nzDot",G),d.xp6(3),d.Q6J("event",Z)("tagDisplay",ie.tagDisplay)}}function X(C,j){if(1&C&&(d.TgZ(0,"nz-timeline"),d.YNc(1,b,5,3,"ng-container",1),d.qZA()),2&C){const Z=d.oxw();d.xp6(1),d.Q6J("ngForOf",Z.events)}}let q=(()=>{class C{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275cmp=d.Xpm({type:C,selectors:[["cvc-event-timeline"]],inputs:{events:"events",tagDisplay:"tagDisplay"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzDot"],["timelineDotTemplate",""],[3,"event","tagDisplay"],["nz-icon","","nzTheme","twotone",1,"item-icon",3,"nzType"]],template:function(Z,G){1&Z&&d.YNc(0,X,2,1,"nz-timeline",0),2&Z&&d.Q6J("ngIf",null==G.events?null:G.events.length)},directives:[e.O5,r.PD,e.sg,r.Zv,s.w,P.Ls,f.t],pipes:[T],styles:["[_nghost-%COMP%]{display:block}.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}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%}"]}),C})();var k=n(2643),ee=n(8747),te=n(2937);let ne=(()=>{class C{}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275mod=d.oAB({type:C}),C.\u0275inj=d.cJS({imports:[[e.ez,l.u5,A.WG,c.sL,t.vh,P.PV,g.U5,R.LV,m.m,y.Jb,W.zf,H.Xo,V.Rt,K,Q.s,$.N,Q.s]]}),C})();d.B6R(v.o,[e.O5,y.SK,y.t3,W.NU,W.$1,t.bd,q,c.ix,k.dQ,s.w,m.i,l.JJ,l.On,ee.l,V.Dz,H.p9],[A.fM,te.R,e.gd])},3212:(Y,S,n)=>{n.d(S,{E:()=>u});var e=n(9808),v=n(647),A=n(7345),t=n(3618),P=n(9444),g=n(3172),l=n(9445),m=n(3309),y=n(8369),R=n(209),M=n(4867),B=n(9476),Q=n(404),N=n(8625),L=n(1894),w=n(9401),h=n(6042),D=n(9779),p=n(7026),z=n(7677),F=n(8481),x=n(325),r=n(5e3);let u=(()=>{class c{}return c.\u0275fac=function(E){return new(E||c)},c.\u0275mod=r.oAB({type:c}),c.\u0275inj=r.cJS({imports:[[e.ez,h.sL,v.PV,F.X,Q.cg,t.ZJ,L.Jb,x.Bz,N.$L.forChild({formatter:{useClass:p.x,provide:N.KP}}),w.y,A.W,P.s,g.T,l.O,m.U,y.W,R.i,M.Q,B.L,D.s,z.G]]}),c})()},2347:(Y,S,n)=>{n.d(S,{t:()=>xe});var e=n(5e3),v=n(9808),A=n(1894),t=n(125),P=n(3618),g=n(9297),l=n(325),m=n(8481),y=n(3610),R=n(373),M=n(712),B=n(7484),Q=n(3193),N=n(2826),L=n(9001),w=n(8664),h=n(6906),D=n(6949),p=n(8625);function z(i,_){if(1&i&&e._UZ(0,"cvc-gene-tag",17),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",o.commentable)}}function F(i,_){if(1&i&&e._UZ(0,"cvc-assertion-tag",18),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",o.commentable)}}function x(i,_){if(1&i&&e._UZ(0,"cvc-evidence-tag",19),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",o.commentable)}}function r(i,_){if(1&i&&e._UZ(0,"cvc-variant-tag",20),2&i){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",o.commentable)}}function u(i,_){if(1&i&&e._UZ(0,"cvc-revision-tag",21),2&i){const o=e.oxw(2).ngIf;e.Q6J("revision",o.commentable)}}function c(i,_){if(1&i&&e._UZ(0,"cvc-source-tag",22),2&i){const o=e.oxw(2).ngIf;e.Q6J("source",o.commentable)}}function O(i,_){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const o=e.oxw(2).ngIf;e.xp6(1),e.Oqu(o.commentable.name)}}function E(i,_){if(1&i&&(e.TgZ(0,"span",7),e._UZ(1,"cvc-user-tag",8),e._uU(2,"commented on "),e.ynx(3,9),e.YNc(4,z,1,2,"cvc-gene-tag",10),e.YNc(5,F,1,2,"cvc-assertion-tag",11),e.YNc(6,x,1,2,"cvc-evidence-tag",12),e.YNc(7,r,1,2,"cvc-variant-tag",13),e.YNc(8,u,1,1,"cvc-revision-tag",14),e.YNc(9,c,1,1,"cvc-source-tag",15),e.YNc(10,O,2,1,"span",16),e.BQk(),e._uU(11),e.ALo(12,"timeago"),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(1),e.Q6J("enablePopover",!1)("user",o.commenter),e.xp6(2),e.Q6J("ngSwitch",o.commentable.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Assertion"),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","Source"),e.xp6(2),e.hij(" ",e.lcZ(12,10,o.createdAt)," ")}}function J(i,_){if(1&i&&(e.TgZ(0,"p",23),e.TgZ(1,"b"),e._uU(2),e.qZA(),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(2),e.Oqu(o.title)}}function d(i,_){if(1&i&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,E,13,12,"ng-template",null,3,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",4),e.TgZ(6,"div",5),e.YNc(7,J,3,1,"p",6),e.TgZ(8,"p"),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&i){const o=_.ngIf,I=e.MAs(3);e.xp6(1),e.Q6J("nzTitle",I),e.xp6(6),e.Q6J("ngIf",o.title),e.xp6(2),e.hij(" ",o.comment," ")}}let K=(()=>{class i{constructor(o){this.gql=o}ngOnInit(){if(null==this.commentId)throw new Error("cvc-comment-popover requires valid commentId input.");this.comment$=this.gql.watch({commentId:this.commentId}).valueChanges.pipe((0,R.j)("data","comment"))}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(M.Kk))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-comment-popover"]],inputs:{commentId:"commentId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography","",4,"ngIf"],[1,"comment-card-title"],[3,"enablePopover","user"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"revision",4,"ngSwitchCase"],["mode","concise",3,"source",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"revision"],["mode","concise",3,"source"],["nz-typography",""]],template:function(o,I){1&o&&(e.TgZ(0,"div",0),e.YNc(1,d,10,3,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,I.comment$)))},directives:[v.O5,B.bd,t.I,v.RF,v.n9,Q.H,N.w,L.O,w.I,g.p,h.T,v.ED,A.SK,A.t3],pipes:[D.fM,p.wr],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}[_nghost-%COMP%]{display:block}.comment-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),i})();var W=n(647);function $(i,_){}function V(i,_){}function H(i,_){if(1&i&&(e.TgZ(0,"nz-tag",7),e.YNc(1,V,0,0,"ng-template",1),e.qZA()),2&i){e.oxw();const o=e.MAs(2);e.oxw();const I=e.MAs(7);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",o),e.xp6(1),e.Q6J("ngTemplateOutlet",I)}}function s(i,_){if(1&i&&e._UZ(0,"cvc-comment-popover",8),2&i){const o=e.oxw(2);e.Q6J("commentId",o.comment.id)}}function f(i,_){if(1&i&&(e.YNc(0,H,2,3,"nz-tag",5),e.YNc(1,s,1,1,"ng-template",null,6,e.W1O)),2&i){const o=e.oxw(),I=e.MAs(5);e.Q6J("ngIf",o.enablePopover)("ngIfElse",I)}}function a(i,_){}function T(i,_){if(1&i&&(e.TgZ(0,"nz-tag"),e.YNc(1,a,0,0,"ng-template",1),e.qZA()),2&i){e.oxw();const o=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",o)}}function U(i,_){if(1&i&&(e._UZ(0,"i",9),e._uU(1)),2&i){const o=e.oxw();e.xp6(1),e.hij(" ",o.comment.name,"\n")}}let b=(()=>{class i{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-comment-tag"]],inputs:{comment:"comment",subject:"subject",enablePopover:"enablePopover"},decls:8,vars:2,consts:[[3,"routerLink"],[3,"ngTemplateOutlet"],["tag",""],["noPopover",""],["tagContent",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["commentPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"commentId"],["nz-icon","","nzType","civic-comment","nzTheme","twotone","nzTwotoneColor","#44D8EF"]],template:function(o,I){if(1&o&&(e.TgZ(0,"a",0),e.YNc(1,$,0,0,"ng-template",1),e.qZA(),e.YNc(2,f,3,2,"ng-template",null,2,e.W1O),e.YNc(4,T,2,1,"ng-template",null,3,e.W1O),e.YNc(6,U,2,1,"ng-template",null,4,e.W1O)),2&o){const oe=e.MAs(3);e.Q6J("routerLink",I.comment.link),e.xp6(1),e.Q6J("ngTemplateOutlet",oe)}},directives:[l.yS,v.tP,v.O5,m.j,y.lU,K,W.Ls],styles:[""]}),i})(),X=(()=>{class i{constructor(){}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-flag-tag"]],inputs:{flag:"flag",subject:"subject"},decls:4,vars:2,consts:[[3,"routerLink"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(o,I){1&o&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&o&&(e.Q6J("routerLink",I.flag.link),e.xp6(3),e.hij(" ",I.flag.name," "))},directives:[l.yS,m.j,W.Ls],styles:[""]}),i})();var q=n(112),k=n(5749),ee=n(404),te=n(2937);let ne=(()=>{class i{transform(o){switch(o){case M.AO2.Commented:case M.AO2.RevisionSuggested:case M.AO2.RevisionAccepted:case M.AO2.RevisionRejected:case M.AO2.RevisionSuperseded:return"to";case M.AO2.Flagged:case M.AO2.FlagResolved:return"on";case M.AO2.PublicationSuggested:case M.AO2.CuratedSourceSuggestion:case M.AO2.RejectedSourceSuggestion:case M.AO2.RequeuedSourceSuggestion:return"";default:throw new Error("Not handling all event action types yet "+o)}}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275pipe=e.Yjl({name:"prepositionForSubject",type:i,pure:!0}),i})();function C(i,_){if(1&i&&e._UZ(0,"cvc-user-tag",10),2&i){const o=e.oxw(2);e.Q6J("user",o.event.originatingUser)}}function j(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function Z(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-revision-tag",13),e.YNc(2,j,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,I=e.oxw(2);e.xp6(1),e.Q6J("revision",o)("subject",I.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=I.tagDisplay)}}function G(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ie(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-comment-tag",15),e.YNc(2,G,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,I=e.oxw(2);e.xp6(1),e.Q6J("comment",o)("subject",I.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=I.tagDisplay)}}function ce(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ae(i,_){if(1&i&&(e.TgZ(0,"span"),e._UZ(1,"cvc-flag-tag",16),e.YNc(2,ce,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,I=e.oxw(2);e.xp6(1),e.Q6J("flag",o)("subject",I.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=I.tagDisplay)}}function se(i,_){if(1&i&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&i){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function re(i,_){if(1&i&&(e.TgZ(0,"span"),e.TgZ(1,"nz-tag",17),e._uU(2),e.qZA(),e.YNc(3,se,3,3,"span",14),e.qZA()),2&i){const o=e.oxw().ngIf,I=e.oxw(2);e.xp6(1),e.Q6J("routerLink",o.link),e.xp6(1),e.hij(" ",o.name," "),e.xp6(1),e.Q6J("ngIf","hideSubject"!=I.tagDisplay)}}function _e(i,_){if(1&i&&(e.ynx(0),e.ynx(1,11),e.YNc(2,Z,3,3,"span",12),e.YNc(3,ie,3,3,"span",12),e.YNc(4,ae,3,3,"span",12),e.YNc(5,re,4,3,"span",12),e.BQk(),e.BQk()),2&i){const o=_.ngIf;e.xp6(1),e.Q6J("ngSwitch",o.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","Comment"),e.xp6(1),e.Q6J("ngSwitchCase","Flag"),e.xp6(1),e.Q6J("ngSwitchCase","SourceSuggestion")}}function le(i,_){if(1&i&&e._UZ(0,"cvc-gene-tag",26),2&i){const o=e.oxw().ngIf;e.Q6J("gene",o)}}function ge(i,_){if(1&i&&e._UZ(0,"cvc-assertion-tag",27),2&i){const o=e.oxw().ngIf;e.Q6J("assertion",o)}}function pe(i,_){if(1&i&&e._UZ(0,"cvc-evidence-tag",28),2&i){const o=e.oxw().ngIf;e.Q6J("evidence",o)}}function me(i,_){if(1&i&&e._UZ(0,"cvc-variant-tag",29),2&i){const o=e.oxw().ngIf;e.Q6J("variant",o)}}function ve(i,_){if(1&i&&e._UZ(0,"cvc-revision-tag",30),2&i){const o=e.oxw().ngIf;e.Q6J("revision",o)}}function de(i,_){if(1&i&&e._UZ(0,"cvc-variant-group-tag",31),2&i){const o=e.oxw().ngIf;e.Q6J("variantgroup",o)}}function ue(i,_){if(1&i&&e._UZ(0,"cvc-source-tag",32),2&i){const o=e.oxw().ngIf;e.Q6J("source",o)}}function fe(i,_){if(1&i&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&i){const o=e.oxw().ngIf;e.xp6(1),e.Oqu(o.name)}}function Ce(i,_){1&i&&(e.ynx(0,11),e.YNc(1,le,1,1,"cvc-gene-tag",18),e.YNc(2,ge,1,1,"cvc-assertion-tag",19),e.YNc(3,pe,1,1,"cvc-evidence-tag",20),e.YNc(4,me,1,1,"cvc-variant-tag",21),e.YNc(5,ve,1,1,"cvc-revision-tag",22),e.YNc(6,de,1,1,"cvc-variant-group-tag",23),e.YNc(7,ue,1,1,"cvc-source-tag",24),e.YNc(8,fe,2,1,"span",25),e.BQk()),2&i&&(e.Q6J("ngSwitch",_.ngIf.__typename),e.xp6(1),e.Q6J("ngSwitchCase","Gene"),e.xp6(1),e.Q6J("ngSwitchCase","Assertion"),e.xp6(1),e.Q6J("ngSwitchCase","EvidenceItem"),e.xp6(1),e.Q6J("ngSwitchCase","Variant"),e.xp6(1),e.Q6J("ngSwitchCase","Revision"),e.xp6(1),e.Q6J("ngSwitchCase","VariantGroup"),e.xp6(1),e.Q6J("ngSwitchCase","Source"))}function he(i,_){if(1&i&&(e.ynx(0),e.TgZ(1,"span",5),e._uU(2,"for\xa0"),e.qZA(),e._UZ(3,"cvc-organization-tag",33),e.BQk()),2&i){const o=_.ngIf;e.xp6(3),e.Q6J("org",o)}}function Te(i,_){if(1&i&&(e.TgZ(0,"nz-row",2),e.TgZ(1,"nz-col",3),e.YNc(2,C,1,1,"cvc-user-tag",4),e.TgZ(3,"span",5),e._uU(4),e.ALo(5,"eventVerbiage"),e.qZA(),e.YNc(6,_e,6,5,"ng-container",6),e.YNc(7,Ce,9,8,"ng-container",7),e.YNc(8,he,4,1,"ng-container",6),e.qZA(),e.TgZ(9,"nz-col",8),e.TgZ(10,"span",9),e.ALo(11,"date"),e._uU(12),e.ALo(13,"timeago"),e.qZA(),e.qZA(),e.qZA()),2&i){const o=e.oxw();e.xp6(2),e.Q6J("ngIf","hideUser"!=o.tagDisplay),e.xp6(2),e.hij("",e.xi3(5,7,o.event.action,"feed"),"\xa0"),e.xp6(2),e.Q6J("ngIf",o.event.originatingObject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=o.tagDisplay&&o.event.subject),e.xp6(1),e.Q6J("ngIf","hideOrg"!=o.tagDisplay&&o.event.organization),e.xp6(2),e.Q6J("nzTooltipTitle",e.lcZ(11,10,o.event.createdAt)),e.xp6(2),e.hij(" ",e.lcZ(13,12,o.event.createdAt)," ")}}function ze(i,_){1&i&&e._uU(0," Event database entry is malformed and cannot be displayed\n")}let xe=(()=>{class i{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-event-timeline-item"]],inputs:{event:"event",tagDisplay:"tagDisplay"},decls:3,vars:2,consts:[["class","timeline-item",4,"ngIf","ngIfElse"],["noOriginating",""],[1,"timeline-item"],["nzFlex","auto",1,"description"],[3,"user",4,"ngIf"],["nz-typography",""],[4,"ngIf"],[3,"ngSwitch",4,"ngIf"],["nzFlex","100px",1,"timestamp"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision","subject"],["nz-typography","",4,"ngIf"],[3,"comment","subject"],[3,"flag","subject"],[2,"cursor","pointer",3,"routerLink"],[3,"gene",4,"ngSwitchCase"],[3,"assertion",4,"ngSwitchCase"],[3,"evidence",4,"ngSwitchCase"],[3,"variant",4,"ngSwitchCase"],[3,"revision",4,"ngSwitchCase"],[3,"variantgroup",4,"ngSwitchCase"],["mode","concise",3,"source",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"gene"],[3,"assertion"],[3,"evidence"],[3,"variant"],[3,"revision"],[3,"variantgroup"],["mode","concise",3,"source"],[3,"org"]],template:function(o,I){if(1&o&&(e.YNc(0,Te,14,14,"nz-row",0),e.YNc(1,ze,1,0,"ng-template",null,1,e.W1O)),2&o){const oe=e.MAs(2);e.Q6J("ngIf",I.event.originatingObject)("ngIfElse",oe)}},directives:[v.O5,A.SK,A.t3,t.I,P.ZU,v.RF,v.n9,g.p,b,X,m.j,l.rH,Q.H,N.w,L.O,w.I,q.u,h.T,v.ED,k.m,ee.SY],pipes:[te.R,ne,v.uU,p.wr],styles:[""]}),i})()},9445:(Y,S,n)=>{n.d(S,{O:()=>l});var e=n(9808),v=n(8481),A=n(647),t=n(325),P=n(9444),g=n(5e3);let l=(()=>{class m{}return m.\u0275fac=function(R){return new(R||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[e.ez,t.Bz,v.X,A.PV,P.s]]}),m})()},9297:(Y,S,n)=>{n.d(S,{p:()=>P});var e=n(5e3),v=n(325),A=n(8481),t=n(647);let P=(()=>{class g{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:4,vars:2,consts:[[3,"routerLink"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(m,y){1&m&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&m&&(e.Q6J("routerLink",y.revision.link),e.xp6(3),e.hij(" ",y.revision.name," "))},directives:[v.yS,A.j,t.Ls],styles:[""]}),g})()},8747:(Y,S,n)=>{n.d(S,{l:()=>w});var e=n(5e3),v=n(9808),A=n(7484),t=n(3762),P=n(6042),g=n(2643),l=n(2683),m=n(647);const y=["itemTemplate"],R=function(h){return{$implicit:h}};function M(h,D){if(1&h){const p=e.EpF();e.TgZ(0,"nz-list-item",5),e.NdJ("click",function(){e.CHM(p);const F=e.oxw().$implicit;return e.oxw(2).onParticipantSelected(F)}),e.GkF(1,6),e.qZA()}if(2&h){const p=e.oxw().$implicit,z=e.oxw(2);e.ekj("selected-participant",p.id==(null==z.selectedItem?null:z.selectedItem.id)),e.xp6(1),e.Q6J("ngTemplateOutlet",z.itemTemplateRef||null)("ngTemplateOutletContext",e.VKq(4,R,p))}}function B(h,D){if(1&h&&(e.ynx(0),e.YNc(1,M,2,6,"nz-list-item",4),e.BQk()),2&h){const p=D.index,z=e.oxw(2);e.xp6(1),e.Q6J("ngIf",p+1<=z.defaultListSize)}}function Q(h,D){if(1&h){const p=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(p),e.oxw(2).onExpandClicked()}),e._UZ(1,"i",8),e._uU(2," Expand "),e.qZA()}}function N(h,D){if(1&h){const p=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(p),e.oxw(2).onCollapseClicked()}),e._UZ(1,"i",9),e._uU(2," Collapse "),e.qZA()}}function L(h,D){if(1&h&&(e.ynx(0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-list"),e.YNc(3,B,2,1,"ng-container",2),e.qZA(),e.YNc(4,Q,3,0,"button",3),e.YNc(5,N,3,0,"button",3),e.qZA(),e.BQk()),2&h){const p=e.oxw();e.xp6(1),e.Q6J("nzTitle",p.listTitle),e.xp6(2),e.Q6J("ngForOf",p.participantList),e.xp6(1),e.Q6J("ngIf",p.participantList.length>p.defaultListSize),e.xp6(1),e.Q6J("ngIf",p.isExpanded)}}let w=(()=>{class h{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(p){var z;this.selectedItem=p.id==(null===(z=this.selectedItem)||void 0===z?void 0:z.id)?void 0:p,this.participantSelectedEvent.emit(this.selectedItem)}onExpandClicked(){this.originalDefaultListSize=this.defaultListSize,this.defaultListSize=this.participantList.length,this.isExpanded=!0}onCollapseClicked(){this.originalDefaultListSize&&(this.defaultListSize=this.originalDefaultListSize,this.isExpanded=!1)}}return h.\u0275fac=function(p){return new(p||h)},h.\u0275cmp=e.Xpm({type:h,selectors:[["cvc-participant-list"]],contentQueries:function(p,z,F){if(1&p&&e.Suo(F,y,5),2&p){let x;e.iGM(x=e.CRH())&&(z.itemTemplateRef=x.first)}},inputs:{participantList:"participantList",listTitle:"listTitle",defaultListSize:"defaultListSize",preselectedOption:"preselectedOption"},outputs:{participantSelectedEvent:"participantSelectedEvent"},decls:1,vars:1,consts:[[4,"ngIf"],["nz-type","inner",2,"margin-bottom","1em",3,"nzTitle"],[4,"ngFor","ngForOf"],["nz-button","","nzType","default","nzSize","small",3,"click",4,"ngIf"],["nzSize","small","class","participant-list-item",3,"selected-participant","click",4,"ngIf"],["nzSize","small",1,"participant-list-item",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","vertical-align-bottom"],["nz-icon","","nzType","vertical-align-top"]],template:function(p,z){1&p&&e.YNc(0,L,6,4,"ng-container",0),2&p&&e.Q6J("ngIf",z.participantList&&z.participantList.length>0)},directives:[v.O5,A.bd,t.n_,v.sg,t.AA,v.tP,P.ix,g.dQ,l.w,m.Ls],styles:[".participant-list-item[_ngcontent-%COMP%]:hover{border:1px solid #40a9ff;cursor:pointer}.participant-list-item[_ngcontent-%COMP%]{padding:2px;margin:2px}.selected-participant[_ngcontent-%COMP%]{background:#40a9ff;color:#fff}"]}),h})()},1150:(Y,S,n)=>{n.d(S,{N:()=>l});var e=n(9808),v=n(7484),A=n(3762),t=n(647),P=n(6042),g=n(5e3);let l=(()=>{class m{}return m.\u0275fac=function(R){return new(R||m)},m.\u0275mod=g.oAB({type:m}),m.\u0275inj=g.cJS({imports:[[e.ez,v.vh,A.Ph,t.PV,P.sL]]}),m})()},2937:(Y,S,n)=>{n.d(S,{R:()=>A});var e=n(712),v=n(5e3);let A=(()=>{class t{transform(g,l="contributor-card",m=0){return"contributor-card"===l?this.contributorVerbiage(g,m):"action-filter"===l?this.actionFilterVerbiage(g):this.eventFeedVerbiage(g)}eventFeedVerbiage(g){switch(g){case e.AO2.Commented:return"added comment";case e.AO2.RevisionSuggested:return"suggested revision";case e.AO2.RevisionAccepted:return"accepted revision";case e.AO2.RevisionRejected:return"rejected revision";case e.AO2.RevisionSuperseded:return"accepted superseding revision";case e.AO2.Flagged:return"opened new flag";case e.AO2.FlagResolved:return"resolved flag";case e.AO2.AssertionSubmitted:return"submitted assertion";case e.AO2.AssertionAccepted:return"accepted assertion";case e.AO2.AssertionRejected:return"rejected assertion";case e.AO2.Submitted:return"submitted evidence item";case e.AO2.Accepted:return"accepted evidence item";case e.AO2.Rejected:return"rejected evidence item";case e.AO2.PublicationSuggested:return"created source suggestion";case e.AO2.CuratedSourceSuggestion:return"finished curating source suggestion";case e.AO2.RejectedSourceSuggestion:return"rejected source suggestion";case e.AO2.RequeuedSourceSuggestion:return"requeued source suggestion";case e.AO2.Reverted:return"reverted evidence item";case e.AO2.AssertionReverted:return"reverted assertion";default:throw new Error("Not handling all event action types yet")}}actionFilterVerbiage(g){switch(g){case e.AO2.Commented:return"commented";case e.AO2.RevisionSuggested:return"revision suggested";case e.AO2.RevisionAccepted:return"revision accepted";case e.AO2.RevisionRejected:return"revision rejected";case e.AO2.RevisionSuperseded:return"superseding revision accepted";case e.AO2.Flagged:return"flag opened";case e.AO2.FlagResolved:return"flag resolved";case e.AO2.AssertionSubmitted:return"assertion submitted";case e.AO2.AssertionAccepted:return"assertion accepted";case e.AO2.AssertionRejected:return"assertion rejected";case e.AO2.Submitted:return"evidence item submitted";case e.AO2.Accepted:return"evidence item accepted";case e.AO2.Rejected:return"evidence item rejected";case e.AO2.PublicationSuggested:return"source suggestion created";case e.AO2.CuratedSourceSuggestion:return"source suggestion curated";case e.AO2.RejectedSourceSuggestion:return"source suggestion rejected";case e.AO2.RequeuedSourceSuggestion:return"source suggestion requeued";case e.AO2.Reverted:return"evidence item reverted";case e.AO2.AssertionReverted:return"assertion reverted";default:throw new Error("Not handling all event action types yet")}}contributorVerbiage(g,l){switch(g){case e.AO2.Commented:return 1==l?"left a comment on this entity":`left ${l} comments on this entity`;case e.AO2.RevisionSuggested:return 1==l?"suggested a revision to this entity":`suggested ${l} revisions on this entity`;case e.AO2.RevisionAccepted:return 1==l?"accepted a revision to this entity":`accepted ${l} revisions on this entity`;case e.AO2.RevisionRejected:return 1==l?"rejected a revision to this entity":`rejected ${l} revisions on this entity`;case e.AO2.RevisionSuperseded:return 1==l?"accepted a superseding revision to this entity":`accepted ${l} superseding revisions on this entity`;case e.AO2.Flagged:return 1==l?"opened new flag on this entity":`opened ${l} new flags on this entity`;case e.AO2.FlagResolved:return 1==l?"resolved a flag on this entity":`resolved ${l} flags on this entity`;case e.AO2.AssertionSubmitted:return"submitted this assertion";case e.AO2.AssertionAccepted:return"accepted this assertion";case e.AO2.AssertionRejected:return"rejected this assertion";case e.AO2.Submitted:return"submitted this evidence item";case e.AO2.Accepted:return"accepted this evidence item";case e.AO2.Rejected:return"rejected this evidence item";case e.AO2.PublicationSuggested:return"";case e.AO2.CuratedSourceSuggestion:return"finished curating this source suggestion";case e.AO2.RejectedSourceSuggestion:return"rejected this source suggestion";case e.AO2.RequeuedSourceSuggestion:return"requeued this source suggestion";case e.AO2.AssertionReverted:return"reverted this assertion";case e.AO2.Reverted:return"reverted this evidence item";default:throw new Error("Not handling all event action types yet")}}}return t.\u0275fac=function(g){return new(g||t)},t.\u0275pipe=v.Yjl({name:"eventVerbiage",type:t,pure:!0}),t})()},2712:(Y,S,n)=>{n.d(S,{PD:()=>W,Zv:()=>K,FT:()=>H});var e=n(5e3),v=n(839),A=n(8929),t=n(9808),P=n(969),g=n(7625),l=n(226),m=n(647),y=n(925);const R=["template"];function M(s,f){if(1&s&&(e.ynx(0),e._uU(1),e.BQk()),2&s){const a=e.oxw(3);e.xp6(1),e.Oqu(a.nzLabel)}}function B(s,f){if(1&s&&(e.TgZ(0,"div",7),e.YNc(1,M,2,1,"ng-container",5),e.qZA()),2&s){const a=e.oxw(2);e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzLabel)}}function Q(s,f){if(1&s&&(e.ynx(0),e._uU(1),e.BQk()),2&s){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzDot)}}function N(s,f){if(1&s&&(e.TgZ(0,"li",1),e.YNc(1,B,2,1,"div",2),e._UZ(2,"div",3),e.TgZ(3,"div",4),e.YNc(4,Q,2,1,"ng-container",5),e.qZA(),e.TgZ(5,"div",6),e.Hsn(6),e.qZA(),e.qZA()),2&s){const a=e.oxw();e.ekj("ant-timeline-item-right","right"===(a.nzPosition||a.position))("ant-timeline-item-left","left"===(a.nzPosition||a.position))("ant-timeline-item-last",a.isLast),e.xp6(1),e.Q6J("ngIf",a.nzLabel),e.xp6(2),e.Udp("border-color",a.borderColor),e.ekj("ant-timeline-item-head-red","red"===a.nzColor)("ant-timeline-item-head-blue","blue"===a.nzColor)("ant-timeline-item-head-green","green"===a.nzColor)("ant-timeline-item-head-gray","gray"===a.nzColor)("ant-timeline-item-head-custom",!!a.nzDot),e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzDot)}}const L=["*"];function w(s,f){if(1&s&&e.GkF(0,4),2&s){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function h(s,f){}function D(s,f){if(1&s&&(e.ynx(0),e.YNc(1,h,0,0,"ng-template",4),e.BQk()),2&s){const a=f.$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",a.template)}}function p(s,f){if(1&s&&e.GkF(0,4),2&s){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function z(s,f){1&s&&e._UZ(0,"i",12)}function F(s,f){if(1&s&&(e.ynx(0),e._uU(1),e.YNc(2,z,1,0,"i",11),e.BQk()),2&s){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.nzPendingDot," "),e.xp6(1),e.Q6J("ngIf",!a.nzPendingDot)}}function x(s,f){if(1&s&&(e.ynx(0),e._uU(1),e.BQk()),2&s){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.isPendingBoolean?"":a.nzPending," ")}}function r(s,f){if(1&s&&(e.TgZ(0,"li",6),e._UZ(1,"div",7),e.TgZ(2,"div",8),e.YNc(3,F,3,2,"ng-container",9),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,x,2,1,"ng-container",9),e.qZA(),e.qZA()),2&s){const a=e.oxw(2);e.xp6(3),e.Q6J("nzStringTemplateOutlet",a.nzPendingDot),e.xp6(2),e.Q6J("nzStringTemplateOutlet",a.nzPending)}}function u(s,f){if(1&s&&e.YNc(0,r,6,2,"li",5),2&s){const a=e.oxw();e.Q6J("ngIf",a.nzPending)}}const E=["red","blue","green","grey","gray"];let J=(()=>{class s{constructor(){this.check$=new v.t(1)}markForCheck(){this.check$.next()}}return s.\u0275fac=function(a){return new(a||s)},s.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac}),s})(),K=(()=>{class s{constructor(a,T){this.cdr=a,this.timelineService=T,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(a){this.timelineService.markForCheck(),a.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function d(s){return-1!==E.findIndex(f=>f===s)}(this.nzColor)?null:this.nzColor}}return s.\u0275fac=function(a){return new(a||s)(e.Y36(e.sBO),e.Y36(J))},s.\u0275cmp=e.Xpm({type:s,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(a,T){if(1&a&&e.Gf(R,5),2&a){let U;e.iGM(U=e.CRH())&&(T.template=U.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],features:[e.TTD],ngContentSelectors:L,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],["class","ant-timeline-item-label",4,"ngIf"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],[1,"ant-timeline-item-label"]],template:function(a,T){1&a&&(e.F$t(),e.YNc(0,N,7,20,"ng-template",null,0,e.W1O))},directives:[t.O5,P.f],encapsulation:2,changeDetection:0}),s})(),W=(()=>{class s{constructor(a,T,U){this.cdr=a,this.timelineService=T,this.directionality=U,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new A.xQ}ngOnChanges(a){const{nzMode:T,nzReverse:U,nzPending:b}=a;($(T)||$(U))&&this.updateChildren(),b&&(this.isPendingBoolean=!0===b.currentValue)}ngOnInit(){var a;this.timelineService.check$.pipe((0,g.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),null===(a=this.directionality.change)||void 0===a||a.pipe((0,g.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,g.R)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const a=this.listOfItems.length;let T=!1;this.listOfItems.forEach((U,b)=>{U.isLast=this.nzReverse?0===b:b===a-1,U.position=function V(s,f){return"custom"===f?void 0:"left"===f?"left":"right"===f?"right":"alternate"===f&&s%2==0?"left":"right"}(b,this.nzMode),!T&&U.nzLabel&&(T=!0),U.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=T}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}}return s.\u0275fac=function(a){return new(a||s)(e.Y36(e.sBO),e.Y36(J),e.Y36(l.Is,8))},s.\u0275cmp=e.Xpm({type:s,selectors:[["nz-timeline"]],contentQueries:function(a,T,U){if(1&a&&e.Suo(U,K,4),2&a){let b;e.iGM(b=e.CRH())&&(T.listOfItems=b)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:"nzReverse"},exportAs:["nzTimeline"],features:[e._Bn([J]),e.TTD],ngContentSelectors:L,decls:7,vars:15,consts:[[1,"ant-timeline"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngFor","ngForOf"],["pendingTemplate",""],[3,"ngTemplateOutlet"],["class","ant-timeline-item ant-timeline-item-pending",4,"ngIf"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(a,T){1&a&&(e.F$t(),e.TgZ(0,"ul",0),e.YNc(1,w,1,1,"ng-container",1),e.YNc(2,D,2,1,"ng-container",2),e.YNc(3,p,1,1,"ng-container",1),e.qZA(),e.YNc(4,u,1,1,"ng-template",null,3,e.W1O),e.Hsn(6)),2&a&&(e.ekj("ant-timeline-label",T.hasLabelItem)("ant-timeline-right",!T.hasLabelItem&&"right"===T.nzMode)("ant-timeline-alternate","alternate"===T.nzMode||"custom"===T.nzMode)("ant-timeline-pending",!!T.nzPending)("ant-timeline-reverse",T.nzReverse)("ant-timeline-rtl","rtl"===T.dir),e.xp6(1),e.Q6J("ngIf",T.nzReverse),e.xp6(1),e.Q6J("ngForOf",T.timelineItems),e.xp6(1),e.Q6J("ngIf",!T.nzReverse))},directives:[t.O5,t.tP,t.sg,P.f,m.Ls],encapsulation:2,changeDetection:0}),s})();function $(s){return!(!s||s.previousValue===s.currentValue&&!s.isFirstChange())}let H=(()=>{class s{}return s.\u0275fac=function(a){return new(a||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[l.vT,t.ez,y.ud,m.PV,P.T]]}),s})()}}]);
\ No newline at end of file
diff --git a/server/public/4376.d1c8d351b50a66d5.js b/server/public/4376.d1c8d351b50a66d5.js
deleted file mode 100644
index 0ec733210..000000000
--- a/server/public/4376.d1c8d351b50a66d5.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4376],{8926:(w,Z,e)=>{e.d(Z,{A:()=>C});var o=e(5e3),I=e(2313);let C=(()=>{class T{constructor(x){this.sanitizer=x}transform(x,A){if(!A||""==A)return x;const N=new RegExp(A,"gi"),t=x.match(N);if(!t)return x;let O=x.replace(N,`${t[0]}`);return this.sanitizer.bypassSecurityTrustHtml(O)}}return T.\u0275fac=function(x){return new(x||T)(o.Y36(I.H7,16))},T.\u0275pipe=o.Yjl({name:"highlightTypeahead",type:T,pure:!0}),T})()},3416:(w,Z,e)=>{e.d(Z,{g:()=>S});var o=e(9808),I=e(4182),C=e(8776),T=e(3793),Q=e(8054),x=e(7338),A=e(8006),N=e(8390),t=e(915);const F={name:"disease-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Disease",helpText:"Please enter a disease name. If you are unable to locate the disease in the dropdown, please check the 'Could not find disease' checkbox below and enter the disease in the field that appears.",required:!1,addText:"Add a Disease",destroy$:new(e(8929).xQ)},fieldArray:{type:"cvc-disease-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(n,u,v)=>{var J,L;const P=null===(L=null===(J=null==v?void 0:v.parent)||void 0===J?void 0:J.templateOptions)||void 0===L?void 0:L.allowCreate;return void 0===P||P}}},defaultValue:[],validation:{messages:{required:(n,u)=>{const v=(null==u?void 0:u.form)?u.form.get("evidenceType"):null;return v?`${(0,t.E)(v.value)} Evidence requires a disease to be specified.`:"Disease is required."}}},hooks:{onInit:n=>{var u;const v=n.templateOptions,J=null===(u=null==n?void 0:n.options)||void 0===u?void 0:u.formState,L=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;!L||(v.vcSub=L.valueChanges.subscribe(P=>{J.requiresDisease(P)?(v.hidden=!1,v.required=!0):(v.hidden=!0,v.required=!1,n.model.length>0&&(n.model.splice(1),v.remove(0)))}))},onDestroy:n=>{const u=n.templateOptions;u.vcSub&&u.vcSub.unsubscribe()}}}};var p=e(5e3);let S=(()=>{class n{}return n.\u0275fac=function(v){return new(v||n)},n.\u0275mod=p.oAB({type:n}),n.\u0275inj=p.cJS({imports:[[o.ez,I.u5,I.UX,Q.LV,x.z,T.F,C.X0.forChild({types:[F]}),A.I,N.N]]}),n})()},8006:(w,Z,e)=>{e.d(Z,{I:()=>z});var o=e(9808),I=e(8776),C=e(7625),T=e(373),Q=e(4850),x=e(8929),A=e(591),N=e(6123),t=e(5e3),O=e(712),E=e(9169),F=e(8054),p=e(4182),S=e(6949),n=e(8144),u=e(3618),v=e(4022),J=e(822),L=e(2683),P=e(1047),B=e(6042),$=e(2643),Y=e(8926);function l(s,M){if(1&s&&(t._UZ(0,"span",10),t.ALo(1,"highlightTypeahead")),2&s){const i=t.oxw().$implicit,f=t.oxw(3);t.Q6J("innerHtml",t.xi3(1,1,i.label,f.to.searchString),t.oJD)}}function m(s,M){if(1&s&&(t._UZ(0,"span",11),t.ALo(1,"highlightTypeahead")),2&s){const i=t.oxw().$implicit,f=t.oxw(3);t.Q6J("innerHtml",t.xi3(1,1,i.disease.diseaseAliases.join(", "),f.to.searchString),t.oJD)}}function r(s,M){if(1&s&&(t.TgZ(0,"nz-option",7),t.TgZ(1,"nz-space"),t.YNc(2,l,2,4,"span",8),t.YNc(3,m,2,4,"span",9),t.qZA(),t.qZA()),2&s){const i=M.$implicit;t.Q6J("nzLabel",i.tooltip)("nzValue",i.disease)}}function a(s,M){if(1&s&&(t.ynx(0),t.YNc(1,r,4,2,"nz-option",6),t.BQk()),2&s){const i=M.ngrxLet;t.xp6(1),t.Q6J("ngForOf",i)}}function g(s,M){1&s&&t._uU(0," No disease found in CIViC that matches the string provided. ")}function y(s,M){if(1&s){const i=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(h){return t.CHM(i),t.oxw().to.onSearch(h)}),t.YNc(2,a,2,1,"ng-container",4),t.qZA(),t.YNc(3,g,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&s){const i=t.MAs(4),f=t.oxw(),h=t.MAs(4);t.xp6(1),t.Q6J("formControl",f.formControl)("formlyAttributes",f.field)("nzPlaceHolder",f.to.placeholder?f.to.placeholder:null)("nzDropdownRender",f.to.allowCreate?h:null)("nzNotFoundContent",i)("nzShowArrow",f.to.showArrow)("nzFilterOption",f.to.filterOption),t.xp6(1),t.Q6J("ngrxLet",f.diseases$)}}function U(s,M){if(1&s&&t._UZ(0,"cvc-disease-tag",12),2&s){const i=t.oxw();t.Q6J("disease",i.formControl.value)}}function X(s,M){if(1&s&&t._UZ(0,"cvc-form-errors-alert",18),2&s){const i=t.oxw(4);t.Q6J("errors",i.errorMessages)}}function W(s,M){if(1&s){const i=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(i);const h=t.oxw(4);return h.addDisease(h.to.searchString)}),t._UZ(1,"i",20),t._uU(2,"No Existing CIViC Disease\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Disease? "),t.qZA()}if(2&s){const i=t.oxw(4);t.Q6J("nzLoading",i.loading),t.xp6(4),t.Oqu(i.to.searchString)}}function H(s,M){if(1&s){const i=t.EpF();t.ynx(0),t.YNc(1,X,1,1,"cvc-form-errors-alert",14),t.TgZ(2,"nz-input-group",15),t.TgZ(3,"input",16),t.NdJ("ngModelChange",function(h){return t.CHM(i),t.oxw(3).enteredDoid=h}),t.qZA(),t.qZA(),t.YNc(4,W,6,2,"button",17),t.BQk()}if(2&s){const i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.errorMessages.length>0),t.xp6(2),t.Q6J("ngModel",i.enteredDoid),t.xp6(1),t.Q6J("ngIf",0==i.errorMessages.length)}}function j(s,M){if(1&s&&(t.ynx(0),t.YNc(1,H,5,3,"ng-container",13),t.BQk()),2&s){const i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==i.to.searchString&&i.to.searchString.length>=5)}}function R(s,M){if(1&s&&(t.YNc(0,j,2,1,"ng-container",13),t.ALo(1,"ngrxPush")),2&s){const i=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,i.displayAdd$))}}const d={name:"cvc-disease-input",component:(()=>{class s extends I.fS{constructor(i,f,h){super(),this.diseaseTypeaheadQuery=i,this.networkErrorService=f,this.addDiseaseGQL=h,this.destroy$=new x.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.enteredDoid="",this.displayAdd$=new A.X(!1),this.addDiseaseMutator=new N.U(f),this.defaultOptions={templateOptions:{placeholder:"Search Diseases",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.diseaseTypeaheadQuery.watch({name:"zzzz"}),this.diseases$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,T.j)("data","diseaseTypeahead"),(0,Q.U)(i=>i.map(h=>{let D=h.doid?`DOID:${h.doid}`:"no DOID",k=h.diseaseAliases.length>0?`Aliases: ${h.diseaseAliases.join(", ")}`:"";return{value:h.id,tooltip:`${h.displayName} (${D}) ${k}`,label:`${h.displayName} (${D})`,disease:h}})))}ngAfterViewInit(){this.to.onSearch=i=>{i.length{this.displayAdd$.next(0==f.data.diseaseTypeahead.filter(h=>h.displayName.toUpperCase()==i.toUpperCase()).length)}))}}addDisease(i){if(i&&""!=i){let h=this.addDiseaseMutator.mutate(this.addDiseaseGQL,{name:i,doid:+this.enteredDoid?+this.enteredDoid:void 0},D=>{var k;null===(k=this.field.formControl)||void 0===k||k.setValue({id:D.addDisease.disease.id,name:D.addDisease.disease.name}),this.to.searchString="",this.to.searchLength=0});h.submitSuccess$.pipe((0,C.R)(this.destroy$)).subscribe(D=>{D&&(this.success=!0)}),h.submitError$.pipe((0,C.R)(this.destroy$)).subscribe(D=>{D&&(this.errorMessages=D,this.success=!1)}),h.isSubmitting$.pipe((0,C.R)(this.destroy$)).subscribe(D=>{this.loading=D})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return s.\u0275fac=function(i){return new(i||s)(t.Y36(O.kv3),t.Y36(E.Y),t.Y36(O.KNk))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-disease-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["diseaseListItem",""],["addDiseaseTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml",4,"nzSpaceItem"],[3,"innerHtml"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"disease"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nzAddOnBefore","DOID:"],["type","text","nz-input","","placeholder","Optional DOID",3,"ngModel","ngModelChange"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(i,f){if(1&i&&(t.YNc(0,y,5,8,"ng-container",0),t.YNc(1,U,1,1,"ng-template",null,1,t.W1O),t.YNc(3,R,2,3,"ng-template",null,2,t.W1O)),2&i){const h=t.MAs(2);t.Q6J("ngIf",!(null!=f.formControl.value&&f.formControl.value.id))("ngIfElse",h)}},directives:[o.O5,F.Vq,p.JJ,p.oH,I.VQ,S.eJ,o.sg,F.Ip,n.NU,n.$1,u.ZU,v.n,J.V,L.w,P.gB,P.Zp,p.Fj,p.On,B.ix,$.dQ],pipes:[Y.A,S.fM],styles:[""]}),s})()};var V=e(3580),c=e(7008),_=e(9444);let z=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[o.ez,p.UX,S.WG,I.X0.forChild({types:[d]}),F.LV,V.Q,u.ZJ,n.zf,B.sL,c.B,P.o7,p.u5,_.s]]}),s})()},5926:(w,Z,e)=>{e.d(Z,{J:()=>F});var o=e(9808),I=e(4182),C=e(8776),T=e(3793),Q=e(304),x=e(8054),A=e(4181),N=e(8390);const O={name:"variant-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant",helpText:"Description of the type of variant (e.g., V600E, BCR-ABL fusion, Loss-of-function, exon 12 mutations). Should be as specific as possible (i.e., specific amino acid changes).",required:!1,addText:"Specify a Variant"},fieldArray:{type:"variant-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(p,S,n)=>{var u,v;const J=null===(v=null===(u=null==n?void 0:n.parent)||void 0===u?void 0:u.templateOptions)||void 0===v?void 0:v.allowCreate;return void 0===J||J}}},hideExpression:(p,S,n)=>{const u=(null==n?void 0:n.form)?n.form.get("gene"):null;return!u||!u.value||!u.value[0]},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Variant be specified."}}}};var E=e(5e3);let F=(()=>{class p{}return p.\u0275fac=function(n){return new(n||p)},p.\u0275mod=E.oAB({type:p}),p.\u0275inj=E.cJS({imports:[[o.ez,I.u5,I.UX,x.LV,Q.F,T.F,C.X0.forChild({types:[O]}),A.O,N.N]]}),p})()},4181:(w,Z,e)=>{e.d(Z,{O:()=>G});var o=e(9808),I=e(6123),C=e(8776),T=e(8929),Q=e(591),x=e(373),A=e(4850),N=e(7625),t=e(5e3),O=e(712),E=e(9169),F=e(8054),p=e(4182),S=e(8664),n=e(822),u=e(6042),v=e(2643),J=e(2683),L=e(647),P=e(6949),B=e(8926);function $(d,V){if(1&d&&(t.TgZ(0,"nz-option",6),t._UZ(1,"span",7),t.ALo(2,"highlightTypeahead"),t.qZA()),2&d){const c=V.$implicit,_=t.oxw(2);t.Q6J("nzValue",c.variant),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,c.label,_.to.searchString),t.oJD)}}function Y(d,V){1&d&&t._uU(0," No variant found in CIViC that matches the string provided. ")}function l(d,V){if(1&d){const c=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(z){return t.CHM(c),t.oxw().to.onSearch(z)}),t.YNc(2,$,3,5,"nz-option",4),t.ALo(3,"ngrxPush"),t.qZA(),t.YNc(4,Y,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&d){const c=t.MAs(5),_=t.oxw(),z=t.MAs(4);t.xp6(1),t.Q6J("formControl",_.formControl)("formlyAttributes",_.field)("nzPlaceHolder",_.to.placeholder?_.to.placeholder:null)("nzDropdownRender",_.to.allowCreate?z:null)("nzNotFoundContent",c)("nzShowArrow",_.to.showArrow),t.xp6(1),t.Q6J("ngForOf",t.lcZ(3,7,_.variants$))}}function m(d,V){if(1&d&&t._UZ(0,"cvc-variant-tag",8),2&d){const c=t.oxw();t.Q6J("variant",c.formControl.value)}}function r(d,V){if(1&d&&t._UZ(0,"cvc-form-errors-alert",12),2&d){const c=t.oxw(4);t.Q6J("errors",c.errorMessages)}}function a(d,V){if(1&d){const c=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(c);const z=t.oxw(4);return z.addVariant(z.to.searchString)}),t._UZ(1,"i",14),t._uU(2,"No Existing CIViC Variant\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Variant? "),t.qZA()}if(2&d){const c=t.oxw(4);t.Q6J("nzLoading",c.loading),t.xp6(4),t.Oqu(c.to.searchString)}}function g(d,V){if(1&d&&(t.ynx(0),t.YNc(1,r,1,1,"cvc-form-errors-alert",10),t.YNc(2,a,6,2,"button",11),t.BQk()),2&d){const c=t.oxw(3);t.xp6(1),t.Q6J("ngIf",c.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",0==c.errorMessages.length)}}function y(d,V){if(1&d&&(t.ynx(0),t.YNc(1,g,3,2,"ng-container",9),t.BQk()),2&d){const c=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==c.to.searchString)}}function U(d,V){if(1&d&&(t.YNc(0,y,2,1,"ng-container",9),t.ALo(1,"ngrxPush")),2&d){const c=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,c.displayAdd$))}}const W={name:"variant-input",component:(()=>{class d extends C.fS{constructor(c,_,z){super(),this.variantTypeaheadQuery=c,this.networkErrorService=_,this.addVariantGQL=z,this.destroy$=new T.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new Q.X(!1),this.addVariantMutator=new I.U(_),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(s,M,i)=>{var f,h;let D=null===(h=null===(f=null==i?void 0:i.parent)||void 0===f?void 0:f.parent)||void 0===h?void 0:h.model;if(D&&D.gene&&D.gene[0])return D.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,x.j)("data","variants","nodes"),(0,A.U)(c=>c.map(z=>({value:z.id,label:z.name,variant:z}))))}ngAfterViewInit(){this.to.onSearch=c=>{c.length{this.displayAdd$.next(0==_.data.variants.nodes.filter(z=>z.name.toUpperCase()==c.toUpperCase()).length)}))}}addVariant(c){if(c&&""!=c&&this.to.geneId){let _=this.addVariantMutator.mutate(this.addVariantGQL,{name:c,geneId:this.to.geneId},z=>{var s;null===(s=this.field.formControl)||void 0===s||s.setValue({id:z.addVariant.variant.id,name:z.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});_.submitSuccess$.pipe((0,N.R)(this.destroy$)).subscribe(z=>{z&&(this.success=!0)}),_.submitError$.pipe((0,N.R)(this.destroy$)).subscribe(z=>{z&&(this.errorMessages=z,this.success=!1)}),_.isSubmitting$.pipe((0,N.R)(this.destroy$)).subscribe(z=>{this.loading=z})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return d.\u0275fac=function(c){return new(c||d)(t.Y36(O._eC),t.Y36(E.Y),t.Y36(O.LUc))},d.\u0275cmp=t.Xpm({type:d,selectors:[["cvc-variant-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(c,_){if(1&c&&(t.YNc(0,l,6,9,"ng-container",0),t.YNc(1,m,1,1,"ng-template",null,1,t.W1O),t.YNc(3,U,2,3,"ng-template",null,2,t.W1O)),2&c){const z=t.MAs(2);t.Q6J("ngIf",!(null!=_.formControl.value&&_.formControl.value.id))("ngIfElse",z)}},directives:[o.O5,F.Vq,p.JJ,p.oH,C.VQ,o.sg,F.Ip,S.I,n.V,u.ix,v.dQ,J.w,L.Ls],pipes:[P.fM,B.A],styles:[""],changeDetection:0}),d})()};var H=e(4867),j=e(7008),R=e(9444);let G=(()=>{class d{}return d.\u0275fac=function(c){return new(c||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({imports:[[o.ez,p.UX,P.WG,C.X0.forChild({types:[W]}),F.LV,u.sL,L.PV,H.Q,j.B,R.s]]}),d})()},5472:(w,Z,e)=>{e.d(Z,{r:()=>F});var o=e(9808),I=e(6949),C=e(8776),T=e(7484),Q=e(5482),x=e(1894),A=e(5109),N=e(6789),t=e(5e3);const E={wrappers:[{name:"form-container",component:(()=>{class p extends C.n2{}return p.\u0275fac=function(){let S;return function(u){return(S||(S=t.n5z(p)))(u||p)}}(),p.\u0275cmp=t.Xpm({type:p,selectors:[["cvc-form-container-wrapper"]],features:[t.qOj],decls:5,vars:1,consts:[["nzSpan","24"],["nzSize","default",3,"nzTitle"],["fieldComponent",""]],template:function(n,u){1&n&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",0),t.TgZ(2,"nz-card",1),t.GkF(3,null,2),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.xp6(2),t.Q6J("nzTitle",u.to.label))},directives:[x.SK,x.t3,T.bd],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),p})()}]};let F=(()=>{class p{}return p.\u0275fac=function(n){return new(n||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[[o.ez,I.WG,C.X0.forChild(E),x.Jb,T.vh,Q.cD,N._,A.s]]}),p})()},7338:(w,Z,e)=>{e.d(Z,{z:()=>r});var o=e(9808),I=e(9444),C=e(6949),T=e(8776),Q=e(7484),x=e(5482),A=e(4546),N=e(1894),t=e(647),O=e(3610),E=e(8144),F=e(3618),p=e(5109),S=e(6789),n=e(5e3),u=e(2313);let v=(()=>{class a{constructor(y){this.sanitizer=y}transform(y){return this.sanitizer.bypassSecurityTrustHtml(y)}}return a.\u0275fac=function(y){return new(y||a)(n.Y36(u.H7,16))},a.\u0275pipe=n.Yjl({name:"sanitizeHtml",type:a,pure:!0}),a})();function J(a,g){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const y=n.oxw(2);n.xp6(1),n.Oqu(y.to.label)}}function L(a,g){if(1&a&&n._UZ(0,"i",11),2&a){n.oxw();const y=n.MAs(3);n.Q6J("nzPopoverContent",y)}}function P(a,g){if(1&a&&(n._UZ(0,"span",12),n.ALo(1,"sanitizeHtml")),2&a){const y=n.oxw(3);n.Q6J("innerHtml",n.lcZ(1,1,y.to.helpText),n.oJD)}}function B(a,g){1&a&&(n.ynx(0),n.YNc(1,L,1,1,"i",9),n.YNc(2,P,2,3,"ng-template",null,10,n.W1O),n.BQk())}function $(a,g){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-form-label",7),n.TgZ(2,"nz-space"),n.YNc(3,J,2,1,"span",8),n.YNc(4,B,4,0,"ng-container",1),n.qZA(),n.qZA(),n.BQk()),2&a){const y=n.oxw();n.xp6(1),n.Q6J("nzRequired",y.to.required&&!0!==y.to.hideRequiredMarker)("nzFor",y.id),n.xp6(3),n.Q6J("ngIf",y.to.helpText)}}const Y=function(a){return{hidden:a}},m={wrappers:[{name:"form-field",component:(()=>{class a extends T.n2{get errorState(){return this.showError?"error":""}}return a.\u0275fac=function(){let g;return function(U){return(g||(g=n.n5z(a)))(U||a)}}(),a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-form-field-wrapper"]],features:[n.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(y,U){1&y&&(n.TgZ(0,"div",0),n.TgZ(1,"nz-form-item"),n.YNc(2,$,5,3,"ng-container",1),n.TgZ(3,"nz-form-control",2),n.GkF(4,null,3),n.qZA(),n.TgZ(6,"nz-typography",4),n._UZ(7,"formly-validation-message",5),n.qZA(),n.TgZ(8,"nz-typography",6),n._uU(9),n.qZA(),n.qZA(),n.qZA()),2&y&&(n.Q6J("ngClass",n.VKq(5,Y,!0===U.to.hidden)),n.xp6(2),n.Q6J("ngIf",U.to.label&&!0!==U.to.hideLabel),n.xp6(1),n.Q6J("nzValidateStatus",U.errorState),n.xp6(4),n.Q6J("field",U.field),n.xp6(2),n.hij(" ",U.to.optionText," "))},directives:[o.mk,N.SK,A.Nx,o.O5,N.t3,A.iK,E.NU,E.$1,t.Ls,O.lU,A.Fd,F.ZU,T.u_],pipes:[v],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),a})()}]};let r=(()=>{class a{}return a.\u0275fac=function(y){return new(y||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[o.ez,C.WG,T.X0.forChild(m),N.Jb,Q.vh,x.cD,S._,p.s,A.U5,t.PV,E.zf,O.$6,I.s,F.ZJ]]}),a})()},6559:(w,Z,e)=>{e.d(Z,{ng:()=>$,H0:()=>Y});var o=e(5e3),I=e(1721),C=e(655),T=e(9808),Q=e(226);const A=["nzType","avatar"];function O(l,m){if(1&l&&(o.TgZ(0,"div",5),o._UZ(1,"nz-skeleton-element",6),o.qZA()),2&l){const r=o.oxw(2);o.xp6(1),o.Q6J("nzSize",r.avatar.size||"default")("nzShape",r.avatar.shape||"circle")}}function E(l,m){if(1&l&&o._UZ(0,"h3",7),2&l){const r=o.oxw(2);o.Udp("width",r.toCSSUnit(r.title.width))}}function F(l,m){if(1&l&&o._UZ(0,"li"),2&l){const r=m.index,a=o.oxw(3);o.Udp("width",a.toCSSUnit(a.widthList[r]))}}function p(l,m){if(1&l&&(o.TgZ(0,"ul",8),o.YNc(1,F,1,2,"li",9),o.qZA()),2&l){const r=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",r.rowsList)}}function S(l,m){if(1&l&&(o.ynx(0),o.YNc(1,O,2,2,"div",1),o.TgZ(2,"div",2),o.YNc(3,E,1,2,"h3",3),o.YNc(4,p,2,1,"ul",4),o.qZA(),o.BQk()),2&l){const r=o.oxw();o.xp6(1),o.Q6J("ngIf",!!r.nzAvatar),o.xp6(2),o.Q6J("ngIf",!!r.nzTitle),o.xp6(1),o.Q6J("ngIf",!!r.nzParagraph)}}function n(l,m){1&l&&(o.ynx(0),o.Hsn(1),o.BQk())}const u=["*"];let v=(()=>{class l{constructor(){this.nzActive=!1,this.nzBlock=!1}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275dir=o.lG2({type:l,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(r,a){2&r&&o.ekj("ant-skeleton-active",a.nzActive)("ant-skeleton-block",a.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,C.gn)([(0,I.yF)()],l.prototype,"nzBlock",void 0),l})(),L=(()=>{class l{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(r){if(r.nzSize&&"number"==typeof this.nzSize){const a=`${this.nzSize}px`;this.styleMap={width:a,height:a,"line-height":a}}else this.styleMap={}}}return l.\u0275fac=function(r){return new(r||l)},l.\u0275cmp=o.Xpm({type:l,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[o.TTD],attrs:A,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(r,a){1&r&&o._UZ(0,"span",0),2&r&&(o.ekj("ant-skeleton-avatar-square","square"===a.nzShape)("ant-skeleton-avatar-circle","circle"===a.nzShape)("ant-skeleton-avatar-lg","large"===a.nzSize)("ant-skeleton-avatar-sm","small"===a.nzSize),o.Q6J("ngStyle",a.styleMap))},directives:[T.PC],encapsulation:2,changeDetection:0}),l})(),$=(()=>{class l{constructor(r,a,g){this.cdr=r,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],a.addClass(g.nativeElement,"ant-skeleton")}toCSSUnit(r=""){return(0,I.WX)(r)}getTitleProps(){const r=!!this.nzAvatar,a=!!this.nzParagraph;let g="";return!r&&a?g="38%":r&&a&&(g="50%"),Object.assign({width:g},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const r=!!this.nzAvatar,a=!!this.nzTitle,g={};return(!r||!a)&&(g.width="61%"),g.rows=!r&&a?3:2,Object.assign(Object.assign({},g),this.getProps(this.nzParagraph))}getProps(r){return r&&"object"==typeof r?r:{}}getWidthList(){const{width:r,rows:a}=this.paragraph;let g=[];return r&&Array.isArray(r)?g=r:r&&!Array.isArray(r)&&(g=[],g[a-1]=r),g}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(r){(r.nzTitle||r.nzAvatar||r.nzParagraph)&&this.updateProps()}}return l.\u0275fac=function(r){return new(r||l)(o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(o.SBq))},l.\u0275cmp=o.Xpm({type:l,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(r,a){2&r&&o.ekj("ant-skeleton-with-avatar",!!a.nzAvatar)("ant-skeleton-active",a.nzActive)("ant-skeleton-round",!!a.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[o.TTD],ngContentSelectors:u,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(r,a){1&r&&(o.F$t(),o.YNc(0,S,5,3,"ng-container",0),o.YNc(1,n,2,0,"ng-container",0)),2&r&&(o.Q6J("ngIf",a.nzLoading),o.xp6(1),o.Q6J("ngIf",!a.nzLoading))},directives:[L,T.O5,v,T.sg],encapsulation:2,changeDetection:0}),l})(),Y=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=o.oAB({type:l}),l.\u0275inj=o.cJS({imports:[[Q.vT,T.ez]]}),l})()}}]);
\ No newline at end of file
diff --git a/server/public/4584.94bce0e7cd7772b3.js b/server/public/4584.94bce0e7cd7772b3.js
new file mode 100644
index 000000000..6e26cbfdb
--- /dev/null
+++ b/server/public/4584.94bce0e7cd7772b3.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4584],{8616:(F,M,t)=>{t.d(M,{u:()=>o});var p=t(5e3),n=t(685),e=t(1912),C=t(3618),z=t(647);function i(l,s){1&l&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function _(l,s){1&l&&p._UZ(0,"cvc-login-button")}function h(l,s){1&l&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let o=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=p.Xpm({type:l,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(d,u){if(1&d&&(p.TgZ(0,"nz-empty",0),p.YNc(1,i,2,0,"ng-template",null,1,p.W1O),p.YNc(3,_,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,h,2,0,"ng-template",null,3,p.W1O)),2&d){const O=p.MAs(2),a=p.MAs(4),D=p.MAs(6);p.Q6J("nzNotFoundImage",D)("nzNotFoundContent",O)("nzNotFoundFooter",a)}},directives:[n.p9,e.s,C.ZU,z.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),l})()},9386:(F,M,t)=>{t.d(M,{a:()=>_});var p=t(9808),n=t(1844),e=t(685),C=t(647),z=t(3618),i=t(5e3);let _=(()=>{class h{}return h.\u0275fac=function(l){return new(l||h)},h.\u0275mod=i.oAB({type:h}),h.\u0275inj=i.cJS({imports:[[p.ez,n.B,e.Xo,C.PV,z.ZJ]]}),h})()},7701:(F,M,t)=>{t.d(M,{j:()=>A});var p=t(6654),n=t(5e3),e=t(9808),C=t(325),z=t(8481),i=t(3610),_=t(4850),h=t(712),o=t(7484),l=t(647),s=t(6550),d=t(3098),u=t(6949);function O(c,x){if(1&c&&(n._UZ(0,"i",7),n._uU(1)),2&c){const v=n.oxw().ngIf;n.xp6(1),n.hij(" ",v.name," ")}}function a(c,x){if(1&c&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&c){const v=n.oxw(2).ngIf;n.Q6J("href",v.url),n.xp6(1),n.hij(" ",v.soid," ")}}function D(c,x){if(1&c&&n.YNc(0,a,2,2,"cvc-link-tag",8),2&c){const v=n.oxw().ngIf;n.Q6J("ngIf","N/A"!=v.soid)}}function L(c,x){if(1&c&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,O,2,1,"ng-template",null,3,n.W1O),n.YNc(4,D,1,1,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&c){const v=x.ngIf,V=n.MAs(3),B=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",V)("nzExtra",B),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",v.variantCount," ")}}let Z=(()=>{class c{constructor(v){this.gql=v}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,_.U)(({data:v})=>v.variantTypePopover))}}return c.\u0275fac=function(v){return new(v||c)(n.Y36(h.tw_))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(v,V){1&v&&(n.TgZ(0,"div",0),n.YNc(1,L,9,4,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&v&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,V.variantType$)))},directives:[e.O5,o.bd,l.Ls,s.l,d.R7,d.uj],pipes:[u.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}"]}),c})();function S(c,x){}function N(c,x){if(1&c&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,S,0,0,"ng-template",6),n.qZA(),n.BQk()),2&c){const v=n.oxw(),V=n.MAs(2);n.xp6(1),n.Q6J("routerLink",v.variantType.link),n.xp6(1),n.Q6J("ngTemplateOutlet",V)}}function y(c,x){}function P(c,x){if(1&c&&(n.TgZ(0,"nz-tag",9),n.YNc(1,y,0,0,"ng-template",6),n.qZA()),2&c){n.oxw();const v=n.MAs(2);n.oxw();const V=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",v),n.xp6(1),n.Q6J("ngTemplateOutlet",V)}}function f(c,x){if(1&c&&n._UZ(0,"cvc-variant-type-popover",10),2&c){const v=n.oxw(2);n.Q6J("variantTypeId",v.variantType.id)}}function E(c,x){if(1&c&&(n.YNc(0,P,2,3,"nz-tag",7),n.YNc(1,f,1,1,"ng-template",null,8,n.W1O)),2&c){const v=n.oxw(),V=n.MAs(6);n.Q6J("ngIf",v.enablePopover)("ngIfElse",V)}}function m(c,x){}function I(c,x){if(1&c&&n.YNc(0,m,0,0,"ng-template",6),2&c){n.oxw();const v=n.MAs(2);n.Q6J("ngTemplateOutlet",v)}}function r(c,x){}function g(c,x){if(1&c&&(n.TgZ(0,"nz-tag"),n.YNc(1,r,0,0,"ng-template",6),n.qZA()),2&c){n.oxw();const v=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",v)}}function T(c,x){if(1&c&&(n._UZ(0,"i",11),n._uU(1)),2&c){const v=n.oxw();n.xp6(1),n.hij(" ",v.variantType.name,"\n")}}let A=(()=>{class c extends p.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return c.\u0275fac=function(v){return new(v||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(v,V){if(1&v&&(n.YNc(0,N,3,2,"ng-container",0),n.YNc(1,E,3,2,"ng-template",null,1,n.W1O),n.YNc(3,I,1,1,"ng-template",null,2,n.W1O),n.YNc(5,g,2,1,"ng-template",null,3,n.W1O),n.YNc(7,T,2,1,"ng-template",null,4,n.W1O)),2&v){const B=n.MAs(4);n.Q6J("ngIf",V.linked)("ngIfElse",B)}},directives:[e.O5,C.yS,e.tP,z.j,i.lU,Z,l.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),c})()},8645:(F,M,t)=>{t.d(M,{M:()=>d});var p=t(9808),n=t(325),e=t(8481),C=t(7484),z=t(3630),i=t(3098),_=t(6949),h=t(647),o=t(5e3);let l=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=o.oAB({type:u}),u.\u0275inj=o.cJS({imports:[[p.ez,_.WG,h.PV,C.vh,i.q6,z.X]]}),u})();var s=t(3610);let d=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=o.oAB({type:u}),u.\u0275inj=o.cJS({imports:[[p.ez,n.Bz,h.PV,e.X,s.$6,l]]}),u})()},9990:(F,M,t)=>{t.d(M,{M:()=>l});var p=t(9808),n=t(8776),e=t(5e3),C=t(656),z=t(4182);const _={name:"ensembl-version",validation:(s,d)=>{if(void 0===s.value)return null;{let u=+s.value;return u<75||u>150?{"ensembl-version":!0}:null}}},h={name:"ensembl-version",message:(s,d)=>{var u;return`${null===(u=d.formControl)||void 0===u?void 0:u.value} is not a valid version of Ensembl. Must be an number between 75 and the latest version of Ensembl.`}},o={name:"cvc-ensembl-input",component:(()=>{class s extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{label:"Ensembl Version",helpText:"Enter a valid Ensembl database version (e.g. 75)."},validators:{validation:["ensembl-version"]}}}}return s.\u0275fac=function(){let d;return function(O){return(d||(d=e.n5z(s)))(O||s)}}(),s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-ensembl-input-type"]],features:[e.qOj],decls:1,vars:2,consts:[[3,"formControl","formlyAttributes"]],template:function(u,O){1&u&&e._UZ(0,"nz-input-number",0),2&u&&e.Q6J("formControl",O.formControl)("formlyAttributes",O.field)},directives:[C._,z.JJ,z.oH,n.VQ],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),s})(),wrappers:["form-field"]};let l=(()=>{class s{}return s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[p.ez,z.u5,z.UX,n.X0.forChild({types:[o],validators:[_],validationMessages:[h]}),C.Z]]}),s})()},7462:(F,M,t)=>{t.d(M,{o:()=>h});var p=t(9808),n=t(8776),e=t(5e3),C=t(1047),z=t(4182);const _={name:"cvc-textarea",component:(()=>{class o extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return o.\u0275fac=function(){let l;return function(d){return(l||(l=e.n5z(o)))(d||o)}}(),o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-textarea-base-type"]],features:[e.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(s,d){1&s&&e._UZ(0,"textarea",0),2&s&&e.Q6J("formControl",d.formControl)("formlyAttributes",d.field)("nzAutosize",d.to.autosize)("placeholder",d.to.placeholder)},directives:[C.Zp,z.Fj,C.rh,z.JJ,z.oH,n.VQ],styles:[""],changeDetection:0}),o})(),wrappers:["form-field"]};let h=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,z.u5,z.UX,n.X0.forChild({types:[_]}),C.o7]]}),o})()},9911:(F,M,t)=>{t.d(M,{G:()=>h});var p=t(9808),n=t(8776),e=t(5e3),C=t(7484);const i={name:"variant-coordinates-card",component:(()=>{class o extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{isFusionVariant:!1}}}}return o.\u0275fac=function(){let l;return function(d){return(l||(l=e.n5z(o)))(d||o)}}(),o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-variant-coordinates-card-type"]],features:[e.qOj],decls:3,vars:1,consts:[[3,"nzTitle"],["fieldComponent",""]],template:function(s,d){1&s&&(e.TgZ(0,"nz-card",0),e.GkF(1,null,1),e.qZA()),2&s&&e.Q6J("nzTitle",d.to.label)},directives:[C.bd],styles:[""],changeDetection:0}),o})()};var _=t(4182);let h=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,_.UX,n.X0.forChild({types:[i]}),C.vh]]}),o})()},6501:(F,M,t)=>{t.d(M,{r:()=>N});var p=t(9808),n=t(8776),e=t(8929),C=t(7625),z=t(373),i=t(5e3),_=t(712),h=t(8054),o=t(4182),l=t(6949),s=t(7701);function d(y,P){if(1&y&&(i.TgZ(0,"nz-option",6),i._uU(1),i.qZA()),2&y){const f=P.$implicit;i.hYB("nzLabel","",f.name," (",f.soid,")"),i.Q6J("nzValue",f),i.xp6(1),i.AsE(" ",f.name," (",f.soid,") ")}}function u(y,P){if(1&y&&(i.ynx(0),i.YNc(1,d,2,5,"nz-option",5),i.BQk()),2&y){const f=P.ngrxLet;i.xp6(1),i.Q6J("ngForOf",f)}}function O(y,P){1&y&&i._uU(0," No variant type found in CIViC that matches the string provided. ")}function a(y,P){if(1&y){const f=i.EpF();i.ynx(0),i.TgZ(1,"nz-select",2),i.NdJ("nzOnSearch",function(m){return i.CHM(f),i.oxw().to.onSearch(m)}),i.YNc(2,u,2,1,"ng-container",3),i.qZA(),i.YNc(3,O,1,0,"ng-template",null,4,i.W1O),i.BQk()}if(2&y){const f=i.MAs(4),E=i.oxw();i.xp6(1),i.Q6J("formControl",E.formControl)("formlyAttributes",E.field)("nzPlaceHolder",E.to.placeholder?E.to.placeholder:null)("nzNotFoundContent",f)("nzShowArrow",E.to.showArrow)("nzFilterOption",E.to.filterOption),i.xp6(1),i.Q6J("ngrxLet",E.variantTypes$)}}function D(y,P){if(1&y&&i._UZ(0,"cvc-variant-type-tag",7),2&y){const f=i.oxw();i.Q6J("variantType",f.formControl.value)}}const Z={name:"variant-type-input",component:(()=>{class y extends n.fS{constructor(f){super(),this.variantTypeTypeaheadQuery=f,this.destroy$=new e.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Variant Types",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.variantTypeTypeaheadQuery.watch({name:""}),this.variantTypes$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,z.j)("data","variantTypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=f=>{var E;this.to.fieldValue=f,this.to.fieldLength=f.length,!(f.lengththis.to.maxLength)&&(null===(E=this.queryRef)||void 0===E||E.refetch({name:f}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(_.BnY))},y.\u0275cmp=i.Xpm({type:y,selectors:[["cvc-variant-type-input-type"]],features:[i.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"variantType"]],template:function(f,E){if(1&f&&(i.YNc(0,a,5,7,"ng-container",0),i.YNc(1,D,1,1,"ng-template",null,1,i.W1O)),2&f){const m=i.MAs(2);i.Q6J("ngIf",!(null!=E.formControl.value&&E.formControl.value.id))("ngIfElse",m)}},directives:[p.O5,h.Vq,o.JJ,o.oH,n.VQ,l.eJ,p.sg,h.Ip,s.j],styles:[""]}),y})()};var S=t(8645);let N=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=i.oAB({type:y}),y.\u0275inj=i.cJS({imports:[[p.ez,o.UX,n.X0.forChild({types:[Z]}),l.WG,h.LV,S.M]]}),y})()},6738:(F,M,t)=>{function p(o){let l={value:void 0,unset:void 0};return o&&o.trim().length>0?l.value=o.trim():l.unset=!0,l}function n(o){let l={value:void 0,unset:void 0};return void 0!==o?l.value=o:l.unset=!0,l}t.d(M,{aP:()=>h,li:()=>e,Zg:()=>C,_$:()=>z,uP:()=>n,dh:()=>i,xt:()=>p});var e=(()=>{return(o=e||(e={}))[o.NotApplicable=0]="NotApplicable",o[o.NoneFound=1]="NoneFound",o[o.Found=2]="Found",e;var o})();function C(o,l){let s,d,u;return l==e.Found?(s=void 0,d=void 0,u=o):l==e.NoneFound?(d=!0,s=void 0,u=void 0):(s=!0,d=void 0,u=void 0),{ids:u?u.map(O=>+O):void 0,noneFound:d,notApplicable:s}}function z(o){return o?{chromosome:_(o.chromosome),representativeTranscript:_(o.representativeTranscript),start:o.start?+o.start:void 0,stop:o.stop?+o.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function i(o){let l={value:void 0,unset:void 0};return o?l.value=o:l.unset=!0,l}function _(o){let l;return l=o&&o.length>0?o:void 0,l}const h=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7338:(F,M,t)=>{t.d(M,{z:()=>I});var p=t(9808),n=t(9444),e=t(6949),C=t(8776),z=t(7484),i=t(5482),_=t(4546),h=t(1894),o=t(647),l=t(3610),s=t(8144),d=t(3618),u=t(5109),O=t(6789),a=t(5e3),D=t(2313);let L=(()=>{class r{constructor(T){this.sanitizer=T}transform(T){return this.sanitizer.bypassSecurityTrustHtml(T)}}return r.\u0275fac=function(T){return new(T||r)(a.Y36(D.H7,16))},r.\u0275pipe=a.Yjl({name:"sanitizeHtml",type:r,pure:!0}),r})();function Z(r,g){if(1&r&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&r){const T=a.oxw(2);a.xp6(1),a.Oqu(T.to.label)}}function S(r,g){if(1&r&&a._UZ(0,"i",11),2&r){a.oxw();const T=a.MAs(3);a.Q6J("nzPopoverContent",T)}}function N(r,g){if(1&r&&(a._UZ(0,"span",12),a.ALo(1,"sanitizeHtml")),2&r){const T=a.oxw(3);a.Q6J("innerHtml",a.lcZ(1,1,T.to.helpText),a.oJD)}}function y(r,g){1&r&&(a.ynx(0),a.YNc(1,S,1,1,"i",9),a.YNc(2,N,2,3,"ng-template",null,10,a.W1O),a.BQk())}function P(r,g){if(1&r&&(a.ynx(0),a.TgZ(1,"nz-form-label",7),a.TgZ(2,"nz-space"),a.YNc(3,Z,2,1,"span",8),a.YNc(4,y,4,0,"ng-container",1),a.qZA(),a.qZA(),a.BQk()),2&r){const T=a.oxw();a.xp6(1),a.Q6J("nzRequired",T.to.required&&!0!==T.to.hideRequiredMarker)("nzFor",T.id),a.xp6(3),a.Q6J("ngIf",T.to.helpText)}}const f=function(r){return{hidden:r}},m={wrappers:[{name:"form-field",component:(()=>{class r extends C.n2{get errorState(){return this.showError?"error":""}}return r.\u0275fac=function(){let g;return function(A){return(g||(g=a.n5z(r)))(A||r)}}(),r.\u0275cmp=a.Xpm({type:r,selectors:[["cvc-form-field-wrapper"]],features:[a.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(T,A){1&T&&(a.TgZ(0,"div",0),a.TgZ(1,"nz-form-item"),a.YNc(2,P,5,3,"ng-container",1),a.TgZ(3,"nz-form-control",2),a.GkF(4,null,3),a.qZA(),a.TgZ(6,"nz-typography",4),a._UZ(7,"formly-validation-message",5),a.qZA(),a.TgZ(8,"nz-typography",6),a._uU(9),a.qZA(),a.qZA(),a.qZA()),2&T&&(a.Q6J("ngClass",a.VKq(5,f,!0===A.to.hidden)),a.xp6(2),a.Q6J("ngIf",A.to.label&&!0!==A.to.hideLabel),a.xp6(1),a.Q6J("nzValidateStatus",A.errorState),a.xp6(4),a.Q6J("field",A.field),a.xp6(2),a.hij(" ",A.to.optionText," "))},directives:[p.mk,h.SK,_.Nx,p.O5,h.t3,_.iK,s.NU,s.$1,o.Ls,l.lU,_.Fd,d.ZU,C.u_],pipes:[L],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),r})()}]};let I=(()=>{class r{}return r.\u0275fac=function(T){return new(T||r)},r.\u0275mod=a.oAB({type:r}),r.\u0275inj=a.cJS({imports:[[p.ez,e.WG,C.X0.forChild(m),h.Jb,z.vh,i.cD,O._,u.s,_.U5,o.PV,s.zf,l.$6,n.s,d.ZJ]]}),r})()},6462:(F,M,t)=>{t.d(M,{i:()=>f,m:()=>E});var p=t(655),n=t(1159),e=t(5e3),C=t(4182),z=t(8929),i=t(3753),_=t(7625),h=t(9439),o=t(1721),l=t(5664),s=t(226),d=t(2643),u=t(9808),O=t(647),a=t(969);const D=["switchElement"];function L(m,I){1&m&&e._UZ(0,"i",8)}function Z(m,I){if(1&m&&(e.ynx(0),e._uU(1),e.BQk()),2&m){const r=e.oxw(2);e.xp6(1),e.Oqu(r.nzCheckedChildren)}}function S(m,I){if(1&m&&(e.ynx(0),e.YNc(1,Z,2,1,"ng-container",9),e.BQk()),2&m){const r=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",r.nzCheckedChildren)}}function N(m,I){if(1&m&&(e.ynx(0),e._uU(1),e.BQk()),2&m){const r=e.oxw(2);e.xp6(1),e.Oqu(r.nzUnCheckedChildren)}}function y(m,I){if(1&m&&e.YNc(0,N,2,1,"ng-container",9),2&m){const r=e.oxw();e.Q6J("nzStringTemplateOutlet",r.nzUnCheckedChildren)}}let f=(()=>{class m{constructor(r,g,T,A,c,x){this.nzConfigService=r,this.host=g,this.ngZone=T,this.cdr=A,this.focusMonitor=c,this.directionality=x,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new z.xQ}updateValue(r){this.isChecked!==r&&(this.isChecked=r,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,_.R)(this.destroy$)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,i.R)(this.host.nativeElement,"click").pipe((0,_.R)(this.destroy$)).subscribe(r=>{r.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,i.R)(this.switchElement.nativeElement,"keydown").pipe((0,_.R)(this.destroy$)).subscribe(r=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:g}=r;g!==n.oh&&g!==n.SV&&g!==n.L_&&g!==n.K5||(r.preventDefault(),this.ngZone.run(()=>{g===n.oh?this.updateValue(!1):g===n.SV?this.updateValue(!0):(g===n.L_||g===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,_.R)(this.destroy$)).subscribe(r=>{r||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(r){this.isChecked=r,this.cdr.markForCheck()}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.nzDisabled=r,this.cdr.markForCheck()}}return m.\u0275fac=function(r){return new(r||m)(e.Y36(h.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(l.tE),e.Y36(s.Is,8))},m.\u0275cmp=e.Xpm({type:m,selectors:[["nz-switch"]],viewQuery:function(r,g){if(1&r&&e.Gf(D,7),2&r){let T;e.iGM(T=e.CRH())&&(g.switchElement=T.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[e._Bn([{provide:C.JU,useExisting:(0,e.Gpc)(()=>m),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(r,g){if(1&r&&(e.TgZ(0,"button",0,1),e.TgZ(2,"span",2),e.YNc(3,L,1,0,"i",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,S,2,1,"ng-container",5),e.YNc(6,y,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&r){const T=e.MAs(7);e.ekj("ant-switch-checked",g.isChecked)("ant-switch-loading",g.nzLoading)("ant-switch-disabled",g.nzDisabled)("ant-switch-small","small"===g.nzSize)("ant-switch-rtl","rtl"===g.dir),e.Q6J("disabled",g.nzDisabled)("nzWaveExtraNode",!0),e.xp6(3),e.Q6J("ngIf",g.nzLoading),e.xp6(2),e.Q6J("ngIf",g.isChecked)("ngIfElse",T)}},directives:[d.dQ,u.O5,O.Ls,a.f],encapsulation:2,changeDetection:0}),(0,p.gn)([(0,o.yF)()],m.prototype,"nzLoading",void 0),(0,p.gn)([(0,o.yF)()],m.prototype,"nzDisabled",void 0),(0,p.gn)([(0,o.yF)()],m.prototype,"nzControl",void 0),(0,p.gn)([(0,h.oS)()],m.prototype,"nzSize",void 0),m})(),E=(()=>{class m{}return m.\u0275fac=function(r){return new(r||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[[s.vT,u.ez,d.vG,O.PV,a.T]]}),m})()}}]);
\ No newline at end of file
diff --git a/server/public/4658.e20841b6eacdd605.js b/server/public/4658.0b2f1cd78524e647.js
similarity index 96%
rename from server/public/4658.e20841b6eacdd605.js
rename to server/public/4658.0b2f1cd78524e647.js
index dab0b2c6e..6ad999f88 100644
--- a/server/public/4658.e20841b6eacdd605.js
+++ b/server/public/4658.0b2f1cd78524e647.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4658],{7946:(y,m,t)=>{t.d(m,{x:()=>M});var v=t(9808),n=t(897),e=t(8481),p=t(3610),T=t(8018),z=t(3580),h=t(9476),u=t(5e3);let M=(()=>{class d{}return d.\u0275fac=function(C){return new(C||d)},d.\u0275mod=u.oAB({type:d}),d.\u0275inj=u.cJS({imports:[[v.ez,e.X,p.$6,n.$,T.e,z.Q,h.L]]}),d})()},8664:(y,m,t)=>{t.d(m,{I:()=>$});var v=t(6654),n=t(5e3),e=t(9808),p=t(325),T=t(8481),z=t(3610),h=t(4850),u=t(712),M=t(7484),d=t(647),_=t(3193),C=t(3098),f=t(6550),O=t(1894),V=t(8144),c=t(6949);function P(a,r){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const o=n.oxw().ngIf;n.xp6(1),n.hij(" ",o.name," ")}}function Z(a,r){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const o=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",o.gene)}}function A(a,r){1&a&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function S(a,r){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,A,2,0,"span",1),n.qZA()),2&a){const o=r.$implicit,s=r.last;n.xp6(1),n.hij(" ",o,""),n.xp6(1),n.Q6J("ngIf",!s)}}function I(a,r){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,S,3,2,"span",16),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",o.variantAliases)}}function E(a,r){if(1&a&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",o.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",o.alleleRegistryId," ")}}function U(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/flags"),n.xp6(3),n.hij(" Flags (",o.flags.totalCount,") ")}}function i(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",o.revisions.totalCount,") ")}}function g(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/comments"),n.xp6(3),n.hij(" Comments (",o.comments.totalCount,") ")}}function l(a,r){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,P,2,1,"ng-template",null,3,n.W1O),n.YNc(4,Z,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,I,2,1,"nz-descriptions-item",6),n.YNc(8,E,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,U,4,2,"a",12),n.YNc(15,i,4,2,"a",12),n.YNc(16,g,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const o=r.ngIf,s=n.MAs(3),x=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",s)("nzExtra",x),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",o.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",o.alleleRegistryId),n.xp6(2),n.hij(" ",o.evidenceItems.totalCount," ")}}let J=(()=>{class a{constructor(o){this.gql=o}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,h.U)(({data:o})=>o.variant))}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(u.ZYZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(o,s){1&o&&(n.TgZ(0,"div",0),n.YNc(1,l,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&o&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,s.variant$)))},directives:[e.O5,M.bd,d.Ls,_.H,C.R7,C.uj,e.sg,f.l,O.SK,O.t3,V.NU,V.$1,p.yS,T.j],pipes:[c.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}"]}),a})();function D(a,r){}function B(a,r){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,D,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const o=n.oxw(),s=n.MAs(2);n.xp6(1),n.Q6J("routerLink",o.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function N(a,r){}function Y(a,r){if(1&a){const o=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(x){return n.CHM(o),n.oxw(2).itemClosed(x)}),n.YNc(1,N,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const o=n.MAs(2),s=n.oxw(),x=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",s.onCloseClicked?0:.5)("nzPopoverContent",o)("nzMode",s.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",x)}}function L(a,r){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const o=n.oxw(3);n.Q6J("variantId",o.variant.id)}}function Q(a,r){if(1&a&&n.YNc(0,L,1,1,"cvc-variant-popover",10),2&a){const o=n.oxw(2);n.Q6J("ngIf",o.enablePopover)}}function R(a,r){if(1&a&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,Q,1,1,"ng-template",null,8,n.W1O)),2&a){const o=n.oxw(),s=n.MAs(4);n.Q6J("ngIf",o.enablePopover)("ngIfElse",s)}}function F(a,r){}function j(a,r){if(1&a){const o=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(x){return n.CHM(o),n.oxw().itemClosed(x)}),n.YNc(1,F,0,0,"ng-template",6),n.qZA()}if(2&a){const o=n.oxw(),s=n.MAs(8);n.Q6J("nzMode",o.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function W(a,r){}function H(a,r){if(1&a&&n.YNc(0,W,0,0,"ng-template",6),2&a){n.oxw();const o=n.MAs(2);n.Q6J("ngTemplateOutlet",o)}}function K(a,r){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const o=n.oxw();n.xp6(1),n.hij(" ",o.variant.name,"\n")}}let $=(()=>{class a extends v.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(o,s){if(1&o&&(n.YNc(0,B,3,2,"ng-container",0),n.YNc(1,R,3,2,"ng-template",null,1,n.W1O),n.YNc(3,j,2,2,"ng-template",null,2,n.W1O),n.YNc(5,H,1,1,"ng-template",null,3,n.W1O),n.YNc(7,K,2,1,"ng-template",null,4,n.W1O)),2&o){const x=n.MAs(6);n.Q6J("ngIf",s.linked)("ngIfElse",x)}},directives:[e.O5,p.yS,e.tP,T.j,z.lU,J,d.Ls],styles:[""]}),a})()},4867:(y,m,t)=>{t.d(m,{Q:()=>V});var v=t(9808),n=t(325),e=t(8481),p=t(647),T=t(3610),z=t(6949),h=t(7484),u=t(1894),M=t(3098),d=t(8144),_=t(3309),C=t(3630),f=t(5e3);let O=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[[v.ez,n.Bz,z.WG,h.vh,u.Jb,M.q6,e.X,p.PV,d.zf,_.U,C.X]]}),c})(),V=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[[v.ez,n.Bz,e.X,T.$6,p.PV,O]]}),c})()},3154:(y,m,t)=>{t.d(m,{_:()=>n});var v=t(712);function n(e){var p;switch(e.value){case"ascend":p=v.SrV.Asc;break;case"descend":p=v.SrV.Desc;break;default:return}return{column:e.key,direction:p}}},9221:(y,m,t)=>{t.r(m),t.d(m,{VariantsModule:()=>U});var v=t(9808),n=t(325),e=t(5e3);let p=(()=>{class i{constructor(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-variants"]],decls:1,vars:0,template:function(l,J){1&l&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})();var T=t(5630),z=t(1945),h=t(1894),u=t(647),M=t(3855),d=t(3309),_=t(3618),C=t(6042),f=t(8144);let O=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.ez,z.KJ,h.Jb,u.PV,_.ZJ,C.sL,f.zf,T.D,d.U,M.H]]}),i})();var V=t(8992),c=t(2683),P=t(6410);function Z(i,g){1&i&&(e.TgZ(0,"a",13),e._UZ(1,"i",14),e._uU(2," View Variant Model Docs "),e.qZA())}function A(i,g){1&i&&(e.TgZ(0,"a",15),e._UZ(1,"i",14),e._uU(2," View Variant Curation Docs "),e.qZA())}const I=[{path:"",component:p,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["variants-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:variant"],["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/model/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variants"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock",""]],template:function(l,J){1&l&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0),e.TgZ(2,"nz-page-header-content"),e.TgZ(3,"nz-row",1),e.TgZ(4,"nz-col",2),e._UZ(5,"i",3),e.qZA(),e.TgZ(6,"nz-col",4),e.TgZ(7,"h2"),e._uU(8,"Variants"),e.qZA(),e.TgZ(9,"p",5),e._uU(10,'CIViC variants are usually genomic alterations, including single nucleotide variants, insertion/deletion events, copy number alterations, structural variants, and other events that differ from the "normal" genome.'),e.qZA(),e.qZA(),e.TgZ(11,"nz-col",6),e.TgZ(12,"nz-space",7),e.YNc(13,Z,3,0,"a",8),e.YNc(14,A,3,0,"a",9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"nz-row"),e.TgZ(16,"nz-col",10),e.TgZ(17,"div",11),e._UZ(18,"cvc-variants-table",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&l&&(e.xp6(9),e.Q6J("nzEllipsisRows",2),e.xp6(7),e.Q6J("nzSpan",24))},directives:[V.I,z.$O,z.u5,h.SK,h.t3,u.Ls,c.w,_.ZU,f.NU,f.$1,C.ix,P.S],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{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:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(6256),t.e(9001),t.e(2826),t.e(305),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(3883),t.e(2043),t.e(3482),t.e(5787),t.e(9286)]).then(t.bind(t,1485)).then(i=>i.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(6256),t.e(1679),t.e(3021),t.e(8776),t.e(8592),t.e(9081)]).then(t.bind(t,9081)).then(i=>i.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let E=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(I),O],n.Bz]}),i})(),U=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.ez,E]]}),i})()}}]);
\ No newline at end of file
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4658],{7946:(y,m,t)=>{t.d(m,{x:()=>M});var v=t(9808),n=t(897),e=t(8481),p=t(3610),T=t(8018),z=t(3580),h=t(9476),u=t(5e3);let M=(()=>{class d{}return d.\u0275fac=function(C){return new(C||d)},d.\u0275mod=u.oAB({type:d}),d.\u0275inj=u.cJS({imports:[[v.ez,e.X,p.$6,n.$,T.e,z.Q,h.L]]}),d})()},8664:(y,m,t)=>{t.d(m,{I:()=>$});var v=t(6654),n=t(5e3),e=t(9808),p=t(325),T=t(8481),z=t(3610),h=t(4850),u=t(712),M=t(7484),d=t(647),_=t(3193),C=t(3098),f=t(6550),O=t(1894),V=t(8144),c=t(6949);function P(a,r){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const o=n.oxw().ngIf;n.xp6(1),n.hij(" ",o.name," ")}}function Z(a,r){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const o=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",o.gene)}}function A(a,r){1&a&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function S(a,r){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,A,2,0,"span",1),n.qZA()),2&a){const o=r.$implicit,s=r.last;n.xp6(1),n.hij(" ",o,""),n.xp6(1),n.Q6J("ngIf",!s)}}function I(a,r){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,S,3,2,"span",16),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",o.variantAliases)}}function E(a,r){if(1&a&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",o.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",o.alleleRegistryId," ")}}function U(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/flags"),n.xp6(3),n.hij(" Flags (",o.flags.totalCount,") ")}}function i(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",o.revisions.totalCount,") ")}}function g(a,r){if(1&a&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngIf;n.MGl("routerLink","/variants/",o.id,"/comments"),n.xp6(3),n.hij(" Comments (",o.comments.totalCount,") ")}}function l(a,r){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,P,2,1,"ng-template",null,3,n.W1O),n.YNc(4,Z,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,I,2,1,"nz-descriptions-item",6),n.YNc(8,E,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,U,4,2,"a",12),n.YNc(15,i,4,2,"a",12),n.YNc(16,g,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const o=r.ngIf,s=n.MAs(3),x=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",s)("nzExtra",x),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",o.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",o.alleleRegistryId),n.xp6(2),n.hij(" ",o.evidenceItems.totalCount," ")}}let J=(()=>{class a{constructor(o){this.gql=o}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,h.U)(({data:o})=>o.variant))}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(u.ZYZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(o,s){1&o&&(n.TgZ(0,"div",0),n.YNc(1,l,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&o&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,s.variant$)))},directives:[e.O5,M.bd,d.Ls,_.H,C.R7,C.uj,e.sg,f.l,O.SK,O.t3,V.NU,V.$1,p.yS,T.j],pipes:[c.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}"]}),a})();function D(a,r){}function B(a,r){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,D,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const o=n.oxw(),s=n.MAs(2);n.xp6(1),n.Q6J("routerLink",o.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function N(a,r){}function Y(a,r){if(1&a){const o=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(x){return n.CHM(o),n.oxw(2).itemClosed(x)}),n.YNc(1,N,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const o=n.MAs(2),s=n.oxw(),x=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",s.onCloseClicked?0:.5)("nzPopoverContent",o)("nzMode",s.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",x)}}function L(a,r){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const o=n.oxw(3);n.Q6J("variantId",o.variant.id)}}function Q(a,r){if(1&a&&n.YNc(0,L,1,1,"cvc-variant-popover",10),2&a){const o=n.oxw(2);n.Q6J("ngIf",o.enablePopover)}}function R(a,r){if(1&a&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,Q,1,1,"ng-template",null,8,n.W1O)),2&a){const o=n.oxw(),s=n.MAs(4);n.Q6J("ngIf",o.enablePopover)("ngIfElse",s)}}function F(a,r){}function j(a,r){if(1&a){const o=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(x){return n.CHM(o),n.oxw().itemClosed(x)}),n.YNc(1,F,0,0,"ng-template",6),n.qZA()}if(2&a){const o=n.oxw(),s=n.MAs(8);n.Q6J("nzMode",o.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function W(a,r){}function H(a,r){if(1&a&&n.YNc(0,W,0,0,"ng-template",6),2&a){n.oxw();const o=n.MAs(2);n.Q6J("ngTemplateOutlet",o)}}function K(a,r){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const o=n.oxw();n.xp6(1),n.hij(" ",o.variant.name,"\n")}}let $=(()=>{class a extends v.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(o,s){if(1&o&&(n.YNc(0,B,3,2,"ng-container",0),n.YNc(1,R,3,2,"ng-template",null,1,n.W1O),n.YNc(3,j,2,2,"ng-template",null,2,n.W1O),n.YNc(5,H,1,1,"ng-template",null,3,n.W1O),n.YNc(7,K,2,1,"ng-template",null,4,n.W1O)),2&o){const x=n.MAs(6);n.Q6J("ngIf",s.linked)("ngIfElse",x)}},directives:[e.O5,p.yS,e.tP,T.j,z.lU,J,d.Ls],styles:[""]}),a})()},4867:(y,m,t)=>{t.d(m,{Q:()=>V});var v=t(9808),n=t(325),e=t(8481),p=t(647),T=t(3610),z=t(6949),h=t(7484),u=t(1894),M=t(3098),d=t(8144),_=t(3309),C=t(3630),f=t(5e3);let O=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[[v.ez,n.Bz,z.WG,h.vh,u.Jb,M.q6,e.X,p.PV,d.zf,_.U,C.X]]}),c})(),V=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=f.oAB({type:c}),c.\u0275inj=f.cJS({imports:[[v.ez,n.Bz,e.X,T.$6,p.PV,O]]}),c})()},3154:(y,m,t)=>{t.d(m,{_:()=>n});var v=t(712);function n(e){var p;switch(e.value){case"ascend":p=v.SrV.Asc;break;case"descend":p=v.SrV.Desc;break;default:return}return{column:e.key,direction:p}}},9221:(y,m,t)=>{t.r(m),t.d(m,{VariantsModule:()=>U});var v=t(9808),n=t(325),e=t(5e3);let p=(()=>{class i{constructor(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-variants"]],decls:1,vars:0,template:function(l,J){1&l&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})();var T=t(5630),z=t(1945),h=t(1894),u=t(647),M=t(3855),d=t(3309),_=t(3618),C=t(6042),f=t(8144);let O=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.ez,z.KJ,h.Jb,u.PV,_.ZJ,C.sL,f.zf,T.D,d.U,M.H]]}),i})();var V=t(8992),c=t(2683),P=t(6410);function Z(i,g){1&i&&(e.TgZ(0,"a",13),e._UZ(1,"i",14),e._uU(2," View Variant Model Docs "),e.qZA())}function A(i,g){1&i&&(e.TgZ(0,"a",15),e._UZ(1,"i",14),e._uU(2," View Variant Curation Docs "),e.qZA())}const I=[{path:"",component:p,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["variants-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:variant"],["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/model/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variants"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock",""]],template:function(l,J){1&l&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0),e.TgZ(2,"nz-page-header-content"),e.TgZ(3,"nz-row",1),e.TgZ(4,"nz-col",2),e._UZ(5,"i",3),e.qZA(),e.TgZ(6,"nz-col",4),e.TgZ(7,"h2"),e._uU(8,"Variants"),e.qZA(),e.TgZ(9,"p",5),e._uU(10,'CIViC variants are usually genomic alterations, including single nucleotide variants, insertion/deletion events, copy number alterations, structural variants, and other events that differ from the "normal" genome.'),e.qZA(),e.qZA(),e.TgZ(11,"nz-col",6),e.TgZ(12,"nz-space",7),e.YNc(13,Z,3,0,"a",8),e.YNc(14,A,3,0,"a",9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"nz-row"),e.TgZ(16,"nz-col",10),e.TgZ(17,"div",11),e._UZ(18,"cvc-variants-table",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&l&&(e.xp6(9),e.Q6J("nzEllipsisRows",2),e.xp6(7),e.Q6J("nzSpan",24))},directives:[V.I,z.$O,z.u5,h.SK,h.t3,u.Ls,c.w,_.ZU,f.NU,f.$1,C.ix,P.S],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{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:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(6256),t.e(9001),t.e(2826),t.e(1679),t.e(305),t.e(2738),t.e(55),t.e(4292),t.e(3883),t.e(2043),t.e(3482),t.e(5787),t.e(9286)]).then(t.bind(t,1485)).then(i=>i.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(6256),t.e(1679),t.e(6875),t.e(4584),t.e(7012)]).then(t.bind(t,7012)).then(i=>i.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let E=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(I),O],n.Bz]}),i})(),U=(()=>{class i{}return i.\u0275fac=function(l){return new(l||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.ez,E]]}),i})()}}]);
\ No newline at end of file
diff --git a/server/public/5632.b4048d1a94cb9e29.js b/server/public/5632.b4048d1a94cb9e29.js
new file mode 100644
index 000000000..d5adfa369
--- /dev/null
+++ b/server/public/5632.b4048d1a94cb9e29.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5632],{8616:(y,f,n)=>{n.d(f,{u:()=>t});var a=n(5e3),g=n(685),l=n(1912),u=n(3618),_=n(647);function p(i,h){1&i&&(a.TgZ(0,"span"),a._uU(1," You must be logged in to view this page. "),a.qZA())}function v(i,h){1&i&&a._UZ(0,"cvc-login-button")}function c(i,h){1&i&&(a.TgZ(0,"nz-typography",4),a._UZ(1,"i",5),a.qZA())}let t=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275cmp=a.Xpm({type:i,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(d,z){if(1&d&&(a.TgZ(0,"nz-empty",0),a.YNc(1,p,2,0,"ng-template",null,1,a.W1O),a.YNc(3,v,1,0,"ng-template",null,2,a.W1O),a.qZA(),a.YNc(5,c,2,0,"ng-template",null,3,a.W1O)),2&d){const I=a.MAs(2),M=a.MAs(4),C=a.MAs(6);a.Q6J("nzNotFoundImage",C)("nzNotFoundContent",I)("nzNotFoundFooter",M)}},directives:[g.p9,l.s,u.ZU,_.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),i})()},9386:(y,f,n)=>{n.d(f,{a:()=>v});var a=n(9808),g=n(1844),l=n(685),u=n(647),_=n(3618),p=n(5e3);let v=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[[a.ez,g.B,l.Xo,u.PV,_.ZJ]]}),c})()},8926:(y,f,n)=>{n.d(f,{A:()=>l});var a=n(5e3),g=n(2313);let l=(()=>{class u{constructor(p){this.sanitizer=p}transform(p,v){if(!v||""==v)return p;const c=new RegExp(v,"gi"),t=p.match(c);if(!t)return p;let i=p.replace(c,`${t[0]}`);return this.sanitizer.bypassSecurityTrustHtml(i)}}return u.\u0275fac=function(p){return new(p||u)(a.Y36(g.H7,16))},u.\u0275pipe=a.Yjl({name:"highlightTypeahead",type:u,pure:!0}),u})()},3077:(y,f,n)=>{function a(g){return void 0!==g}n.d(f,{$:()=>a})},7462:(y,f,n)=>{n.d(f,{o:()=>c});var a=n(9808),g=n(8776),l=n(5e3),u=n(1047),_=n(4182);const v={name:"cvc-textarea",component:(()=>{class t extends g.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return t.\u0275fac=function(){let i;return function(d){return(i||(i=l.n5z(t)))(d||t)}}(),t.\u0275cmp=l.Xpm({type:t,selectors:[["cvc-textarea-base-type"]],features:[l.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(h,d){1&h&&l._UZ(0,"textarea",0),2&h&&l.Q6J("formControl",d.formControl)("formlyAttributes",d.field)("nzAutosize",d.to.autosize)("placeholder",d.to.placeholder)},directives:[u.Zp,_.Fj,u.rh,_.JJ,_.oH,g.VQ],styles:[""],changeDetection:0}),t})(),wrappers:["form-field"]};let c=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[a.ez,_.u5,_.UX,g.X0.forChild({types:[v]}),u.o7]]}),t})()},4181:(y,f,n)=>{n.d(f,{O:()=>w});var a=n(9808),g=n(6123),l=n(8776),u=n(8929),_=n(591),p=n(373),v=n(4850),c=n(7625),t=n(5e3),i=n(712),h=n(9169),d=n(8054),z=n(4182),I=n(8664),M=n(822),C=n(6042),L=n(2643),S=n(2683),E=n(647),V=n(6949),U=n(8926);function B(o,m){if(1&o&&(t.TgZ(0,"nz-option",6),t._UZ(1,"span",7),t.ALo(2,"highlightTypeahead"),t.qZA()),2&o){const e=m.$implicit,s=t.oxw(2);t.Q6J("nzValue",e.variant),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,e.label,s.to.searchString),t.oJD)}}function D(o,m){1&o&&t._uU(0," No variant found in CIViC that matches the string provided. ")}function Q(o,m){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(r){return t.CHM(e),t.oxw().to.onSearch(r)}),t.YNc(2,B,3,5,"nz-option",4),t.ALo(3,"ngrxPush"),t.qZA(),t.YNc(4,D,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&o){const e=t.MAs(5),s=t.oxw(),r=t.MAs(4);t.xp6(1),t.Q6J("formControl",s.formControl)("formlyAttributes",s.field)("nzPlaceHolder",s.to.placeholder?s.to.placeholder:null)("nzDropdownRender",s.to.allowCreate?r:null)("nzNotFoundContent",e)("nzShowArrow",s.to.showArrow),t.xp6(1),t.Q6J("ngForOf",t.lcZ(3,7,s.variants$))}}function Z(o,m){if(1&o&&t._UZ(0,"cvc-variant-tag",8),2&o){const e=t.oxw();t.Q6J("variant",e.formControl.value)}}function J(o,m){if(1&o&&t._UZ(0,"cvc-form-errors-alert",12),2&o){const e=t.oxw(4);t.Q6J("errors",e.errorMessages)}}function F(o,m){if(1&o){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return r.addVariant(r.to.searchString)}),t._UZ(1,"i",14),t._uU(2,"No Existing CIViC Variant\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Variant? "),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("nzLoading",e.loading),t.xp6(4),t.Oqu(e.to.searchString)}}function R(o,m){if(1&o&&(t.ynx(0),t.YNc(1,J,1,1,"cvc-form-errors-alert",10),t.YNc(2,F,6,2,"button",11),t.BQk()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",0==e.errorMessages.length)}}function N(o,m){if(1&o&&(t.ynx(0),t.YNc(1,R,3,2,"ng-container",9),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==e.to.searchString)}}function W(o,m){if(1&o&&(t.YNc(0,N,2,1,"ng-container",9),t.ALo(1,"ngrxPush")),2&o){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,e.displayAdd$))}}const Y={name:"variant-input",component:(()=>{class o extends l.fS{constructor(e,s,r){super(),this.variantTypeaheadQuery=e,this.networkErrorService=s,this.addVariantGQL=r,this.destroy$=new u.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new _.X(!1),this.addVariantMutator=new g.U(s),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(T,X,A)=>{var O,P;let x=null===(P=null===(O=null==A?void 0:A.parent)||void 0===O?void 0:O.parent)||void 0===P?void 0:P.model;if(x&&x.gene&&x.gene[0])return x.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,p.j)("data","variants","nodes"),(0,v.U)(e=>e.map(r=>({value:r.id,label:r.name,variant:r}))))}ngAfterViewInit(){this.to.onSearch=e=>{e.length{this.displayAdd$.next(0==s.data.variants.nodes.filter(r=>r.name.toUpperCase()==e.toUpperCase()).length)}))}}addVariant(e){if(e&&""!=e&&this.to.geneId){let s=this.addVariantMutator.mutate(this.addVariantGQL,{name:e,geneId:this.to.geneId},r=>{var T;null===(T=this.field.formControl)||void 0===T||T.setValue({id:r.addVariant.variant.id,name:r.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});s.submitSuccess$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{r&&(this.success=!0)}),s.submitError$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{r&&(this.errorMessages=r,this.success=!1)}),s.isSubmitting$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{this.loading=r})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(i._eC),t.Y36(h.Y),t.Y36(i.LUc))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(e,s){if(1&e&&(t.YNc(0,Q,6,9,"ng-container",0),t.YNc(1,Z,1,1,"ng-template",null,1,t.W1O),t.YNc(3,W,2,3,"ng-template",null,2,t.W1O)),2&e){const r=t.MAs(2);t.Q6J("ngIf",!(null!=s.formControl.value&&s.formControl.value.id))("ngIfElse",r)}},directives:[a.O5,d.Vq,z.JJ,z.oH,l.VQ,a.sg,d.Ip,I.I,M.V,C.ix,L.dQ,S.w,E.Ls],pipes:[V.fM,U.A],styles:[""],changeDetection:0}),o})()};var $=n(4867),H=n(7008),K=n(9444);let w=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[a.ez,z.UX,V.WG,l.X0.forChild({types:[Y]}),d.LV,C.sL,E.PV,$.Q,H.B,K.s]]}),o})()}}]);
\ No newline at end of file
diff --git a/server/public/5787.5ff21f0a9c6baf5f.js b/server/public/5787.5ff21f0a9c6baf5f.js
deleted file mode 100644
index f118049aa..000000000
--- a/server/public/5787.5ff21f0a9c6baf5f.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5787],{427:(S,m,l)=>{l.d(m,{J:()=>v});var t=l(5e3),r=l(685),o=l(9808),h=l(647);function u(c,d){if(1&c&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&c){const p=t.oxw(2);t.xp6(1),t.Oqu(p.notification)}}function _(c,d){1&c&&t._uU(0," Not specified ")}function z(c,d){if(1&c&&(t.YNc(0,u,2,1,"span",3),t.YNc(1,_,1,0,"ng-template",null,4,t.W1O)),2&c){const p=t.MAs(2),f=t.oxw();t.Q6J("ngIf",f.notification)("ngIfElse",p)}}function g(c,d){1&c&&t._UZ(0,"i",6)}let v=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(p){return new(p||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification"},decls:5,vars:2,consts:[[3,"nzNotFoundContent","nzNotFoundImage"],["notFound",""],["notFoundImg",""],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["defaultNotification",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(p,f){if(1&p&&(t._UZ(0,"nz-empty",0),t.YNc(1,z,3,2,"ng-template",null,1,t.W1O),t.YNc(3,g,1,0,"ng-template",null,2,t.W1O)),2&p){const C=t.MAs(2),E=t.MAs(4);t.Q6J("nzNotFoundContent",C)("nzNotFoundImage",E)}},directives:[r.p9,o.O5,h.Ls],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]}),c})()},8541:(S,m,l)=>{l.d(m,{o:()=>u});var t=l(9808),r=l(685),o=l(647),h=l(5e3);let u=(()=>{class _{}return _.\u0275fac=function(g){return new(g||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[[t.ez,r.Xo,o.PV]]}),_})()},6559:(S,m,l)=>{l.d(m,{ng:()=>D,H0:()=>O});var t=l(5e3),r=l(1721),o=l(655),h=l(9808),u=l(226);const z=["nzType","avatar"];function c(a,i){if(1&a&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&a){const n=t.oxw(2);t.xp6(1),t.Q6J("nzSize",n.avatar.size||"default")("nzShape",n.avatar.shape||"circle")}}function d(a,i){if(1&a&&t._UZ(0,"h3",7),2&a){const n=t.oxw(2);t.Udp("width",n.toCSSUnit(n.title.width))}}function p(a,i){if(1&a&&t._UZ(0,"li"),2&a){const n=i.index,e=t.oxw(3);t.Udp("width",e.toCSSUnit(e.widthList[n]))}}function f(a,i){if(1&a&&(t.TgZ(0,"ul",8),t.YNc(1,p,1,2,"li",9),t.qZA()),2&a){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.rowsList)}}function C(a,i){if(1&a&&(t.ynx(0),t.YNc(1,c,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,d,1,2,"h3",3),t.YNc(4,f,2,1,"ul",4),t.qZA(),t.BQk()),2&a){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",!!n.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!n.nzTitle),t.xp6(1),t.Q6J("ngIf",!!n.nzParagraph)}}function E(a,i){1&a&&(t.ynx(0),t.Hsn(1),t.BQk())}const y=["*"];let M=(()=>{class a{constructor(){this.nzActive=!1,this.nzBlock=!1}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275dir=t.lG2({type:a,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(n,e){2&n&&t.ekj("ant-skeleton-active",e.nzActive)("ant-skeleton-block",e.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,o.gn)([(0,r.yF)()],a.prototype,"nzBlock",void 0),a})(),T=(()=>{class a{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(n){if(n.nzSize&&"number"==typeof this.nzSize){const e=`${this.nzSize}px`;this.styleMap={width:e,height:e,"line-height":e}}else this.styleMap={}}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:z,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(n,e){1&n&&t._UZ(0,"span",0),2&n&&(t.ekj("ant-skeleton-avatar-square","square"===e.nzShape)("ant-skeleton-avatar-circle","circle"===e.nzShape)("ant-skeleton-avatar-lg","large"===e.nzSize)("ant-skeleton-avatar-sm","small"===e.nzSize),t.Q6J("ngStyle",e.styleMap))},directives:[h.PC],encapsulation:2,changeDetection:0}),a})(),D=(()=>{class a{constructor(n,e,s){this.cdr=n,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],e.addClass(s.nativeElement,"ant-skeleton")}toCSSUnit(n=""){return(0,r.WX)(n)}getTitleProps(){const n=!!this.nzAvatar,e=!!this.nzParagraph;let s="";return!n&&e?s="38%":n&&e&&(s="50%"),Object.assign({width:s},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const n=!!this.nzAvatar,e=!!this.nzTitle,s={};return(!n||!e)&&(s.width="61%"),s.rows=!n&&e?3:2,Object.assign(Object.assign({},s),this.getProps(this.nzParagraph))}getProps(n){return n&&"object"==typeof n?n:{}}getWidthList(){const{width:n,rows:e}=this.paragraph;let s=[];return n&&Array.isArray(n)?s=n:n&&!Array.isArray(n)&&(s=[],s[e-1]=n),s}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(n){(n.nzTitle||n.nzAvatar||n.nzParagraph)&&this.updateProps()}}return a.\u0275fac=function(n){return new(n||a)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},a.\u0275cmp=t.Xpm({type:a,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(n,e){2&n&&t.ekj("ant-skeleton-with-avatar",!!e.nzAvatar)("ant-skeleton-active",e.nzActive)("ant-skeleton-round",!!e.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:y,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(n,e){1&n&&(t.F$t(),t.YNc(0,C,5,3,"ng-container",0),t.YNc(1,E,2,0,"ng-container",0)),2&n&&(t.Q6J("ngIf",e.nzLoading),t.xp6(1),t.Q6J("ngIf",!e.nzLoading))},directives:[T,h.O5,M,h.sg],encapsulation:2,changeDetection:0}),a})(),O=(()=>{class a{}return a.\u0275fac=function(n){return new(n||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[u.vT,h.ez]]}),a})()},6462:(S,m,l)=>{l.d(m,{i:()=>O,m:()=>a});var t=l(655),r=l(1159),o=l(5e3),h=l(4182),u=l(8929),_=l(3753),z=l(7625),g=l(9439),v=l(1721),c=l(5664),d=l(226),p=l(2643),f=l(9808),C=l(647),E=l(969);const y=["switchElement"];function M(i,n){1&i&&o._UZ(0,"i",8)}function P(i,n){if(1&i&&(o.ynx(0),o._uU(1),o.BQk()),2&i){const e=o.oxw(2);o.xp6(1),o.Oqu(e.nzCheckedChildren)}}function T(i,n){if(1&i&&(o.ynx(0),o.YNc(1,P,2,1,"ng-container",9),o.BQk()),2&i){const e=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",e.nzCheckedChildren)}}function N(i,n){if(1&i&&(o.ynx(0),o._uU(1),o.BQk()),2&i){const e=o.oxw(2);o.xp6(1),o.Oqu(e.nzUnCheckedChildren)}}function A(i,n){if(1&i&&o.YNc(0,N,2,1,"ng-container",9),2&i){const e=o.oxw();o.Q6J("nzStringTemplateOutlet",e.nzUnCheckedChildren)}}let O=(()=>{class i{constructor(e,s,k,I,w,x){this.nzConfigService=e,this.host=s,this.ngZone=k,this.cdr=I,this.focusMonitor=w,this.directionality=x,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new u.xQ}updateValue(e){this.isChecked!==e&&(this.isChecked=e,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,z.R)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,_.R)(this.host.nativeElement,"click").pipe((0,z.R)(this.destroy$)).subscribe(e=>{e.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,_.R)(this.switchElement.nativeElement,"keydown").pipe((0,z.R)(this.destroy$)).subscribe(e=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:s}=e;s!==r.oh&&s!==r.SV&&s!==r.L_&&s!==r.K5||(e.preventDefault(),this.ngZone.run(()=>{s===r.oh?this.updateValue(!1):s===r.SV?this.updateValue(!0):(s===r.L_||s===r.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,z.R)(this.destroy$)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=e,this.cdr.markForCheck()}}return i.\u0275fac=function(e){return new(e||i)(o.Y36(g.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(c.tE),o.Y36(d.Is,8))},i.\u0275cmp=o.Xpm({type:i,selectors:[["nz-switch"]],viewQuery:function(e,s){if(1&e&&o.Gf(y,7),2&e){let k;o.iGM(k=o.CRH())&&(s.switchElement=k.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:h.JU,useExisting:(0,o.Gpc)(()=>i),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(e,s){if(1&e&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,M,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,T,2,1,"ng-container",5),o.YNc(6,A,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&e){const k=o.MAs(7);o.ekj("ant-switch-checked",s.isChecked)("ant-switch-loading",s.nzLoading)("ant-switch-disabled",s.nzDisabled)("ant-switch-small","small"===s.nzSize)("ant-switch-rtl","rtl"===s.dir),o.Q6J("disabled",s.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",s.nzLoading),o.xp6(2),o.Q6J("ngIf",s.isChecked)("ngIfElse",k)}},directives:[p.dQ,f.O5,C.Ls,E.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,v.yF)()],i.prototype,"nzLoading",void 0),(0,t.gn)([(0,v.yF)()],i.prototype,"nzDisabled",void 0),(0,t.gn)([(0,v.yF)()],i.prototype,"nzControl",void 0),(0,t.gn)([(0,g.oS)()],i.prototype,"nzSize",void 0),i})(),a=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[[d.vT,f.ez,p.vG,C.PV,E.T]]}),i})()}}]);
\ No newline at end of file
diff --git a/server/public/5787.6afd9133542c6e90.js b/server/public/5787.6afd9133542c6e90.js
new file mode 100644
index 000000000..78528551f
--- /dev/null
+++ b/server/public/5787.6afd9133542c6e90.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5787],{427:(N,g,i)=>{i.d(g,{J:()=>v});var a=i(5e3),p=i(685),e=i(9808),f=i(647);function C(c,_){if(1&c&&(a.TgZ(0,"span",5),a._uU(1),a.qZA()),2&c){const d=a.oxw(2);a.xp6(1),a.Oqu(d.notification)}}function m(c,_){1&c&&a._uU(0," Not specified ")}function z(c,_){if(1&c&&(a.YNc(0,C,2,1,"span",3),a.YNc(1,m,1,0,"ng-template",null,4,a.W1O)),2&c){const d=a.MAs(2),E=a.oxw();a.Q6J("ngIf",E.notification)("ngIfElse",d)}}function u(c,_){1&c&&a._UZ(0,"i",6)}let v=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275cmp=a.Xpm({type:c,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification"},decls:5,vars:2,consts:[[3,"nzNotFoundContent","nzNotFoundImage"],["notFound",""],["notFoundImg",""],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["defaultNotification",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(d,E){if(1&d&&(a._UZ(0,"nz-empty",0),a.YNc(1,z,3,2,"ng-template",null,1,a.W1O),a.YNc(3,u,1,0,"ng-template",null,2,a.W1O)),2&d){const k=a.MAs(2),y=a.MAs(4);a.Q6J("nzNotFoundContent",k)("nzNotFoundImage",y)}},directives:[p.p9,e.O5,f.Ls],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]}),c})()},8541:(N,g,i)=>{i.d(g,{o:()=>C});var a=i(9808),p=i(685),e=i(647),f=i(5e3);let C=(()=>{class m{}return m.\u0275fac=function(u){return new(u||m)},m.\u0275mod=f.oAB({type:m}),m.\u0275inj=f.cJS({imports:[[a.ez,p.Xo,e.PV]]}),m})()},6559:(N,g,i)=>{i.d(g,{H0:()=>D});var a=i(5e3),p=i(9808),e=i(226);let D=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=a.oAB({type:s}),s.\u0275inj=a.cJS({imports:[[e.vT,p.ez]]}),s})()},6462:(N,g,i)=>{i.d(g,{i:()=>l,m:()=>n});var a=i(655),p=i(1159),e=i(5e3),f=i(4182),C=i(8929),m=i(3753),z=i(7625),u=i(9439),v=i(1721),c=i(5664),_=i(226),d=i(2643),E=i(9808),k=i(647),y=i(969);const M=["switchElement"];function P(t,h){1&t&&e._UZ(0,"i",8)}function T(t,h){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const o=e.oxw(2);e.xp6(1),e.Oqu(o.nzCheckedChildren)}}function O(t,h){if(1&t&&(e.ynx(0),e.YNc(1,T,2,1,"ng-container",9),e.BQk()),2&t){const o=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",o.nzCheckedChildren)}}function x(t,h){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const o=e.oxw(2);e.xp6(1),e.Oqu(o.nzUnCheckedChildren)}}function D(t,h){if(1&t&&e.YNc(0,x,2,1,"ng-container",9),2&t){const o=e.oxw();e.Q6J("nzStringTemplateOutlet",o.nzUnCheckedChildren)}}let l=(()=>{class t{constructor(o,r,S,w,A,I){this.nzConfigService=o,this.host=r,this.ngZone=S,this.cdr=w,this.focusMonitor=A,this.directionality=I,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new C.xQ}updateValue(o){this.isChecked!==o&&(this.isChecked=o,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,z.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.host.nativeElement,"click").pipe((0,z.R)(this.destroy$)).subscribe(o=>{o.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,m.R)(this.switchElement.nativeElement,"keydown").pipe((0,z.R)(this.destroy$)).subscribe(o=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:r}=o;r!==p.oh&&r!==p.SV&&r!==p.L_&&r!==p.K5||(o.preventDefault(),this.ngZone.run(()=>{r===p.oh?this.updateValue(!1):r===p.SV?this.updateValue(!0):(r===p.L_||r===p.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,z.R)(this.destroy$)).subscribe(o=>{o||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(o){this.isChecked=o,this.cdr.markForCheck()}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.nzDisabled=o,this.cdr.markForCheck()}}return t.\u0275fac=function(o){return new(o||t)(e.Y36(u.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(c.tE),e.Y36(_.Is,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nz-switch"]],viewQuery:function(o,r){if(1&o&&e.Gf(M,7),2&o){let S;e.iGM(S=e.CRH())&&(r.switchElement=S.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[e._Bn([{provide:f.JU,useExisting:(0,e.Gpc)(()=>t),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(o,r){if(1&o&&(e.TgZ(0,"button",0,1),e.TgZ(2,"span",2),e.YNc(3,P,1,0,"i",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,O,2,1,"ng-container",5),e.YNc(6,D,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&o){const S=e.MAs(7);e.ekj("ant-switch-checked",r.isChecked)("ant-switch-loading",r.nzLoading)("ant-switch-disabled",r.nzDisabled)("ant-switch-small","small"===r.nzSize)("ant-switch-rtl","rtl"===r.dir),e.Q6J("disabled",r.nzDisabled)("nzWaveExtraNode",!0),e.xp6(3),e.Q6J("ngIf",r.nzLoading),e.xp6(2),e.Q6J("ngIf",r.isChecked)("ngIfElse",S)}},directives:[d.dQ,E.O5,k.Ls,y.f],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,v.yF)()],t.prototype,"nzLoading",void 0),(0,a.gn)([(0,v.yF)()],t.prototype,"nzDisabled",void 0),(0,a.gn)([(0,v.yF)()],t.prototype,"nzControl",void 0),(0,a.gn)([(0,u.oS)()],t.prototype,"nzSize",void 0),t})(),n=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[_.vT,E.ez,d.vG,k.PV,y.T]]}),t})()}}]);
\ No newline at end of file
diff --git a/server/public/605.0b7e1919acad6432.js b/server/public/605.0b7e1919acad6432.js
new file mode 100644
index 000000000..5cab61dd2
--- /dev/null
+++ b/server/public/605.0b7e1919acad6432.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[605],{605:(ft,v,r)=>{r.r(v),r.d(v,{VariantGroupsReviseModule:()=>mt});var p=r(9808),d=r(325),y=r(373),I=r(1059),R=r(4850),t=r(5e3),g=r(712),S=r(9350),T=r(8992),c=r(1945),x=r(647),l=r(1894),P=r(8616),G=r(6949);function Z(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function A(e,o){1&e&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"div",9),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function C(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",5),t.YNc(9,Z,2,0,"div",6),t.ALo(10,"ngrxPush"),t.YNc(11,A,3,0,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=o.ngIf,a=t.MAs(12),i=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(5),t.hij(" ",n.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(10,4,i.isSignedIn$))("ngIfElse",a)}}let F=(()=>{class e{constructor(n,a,i){this.gql=n,this.route=a,this.viewerService=i,this.routeSub=this.route.params.subscribe(s=>{let b=this.gql.watch({variantGroupId:+s.variantGroupId}).valueChanges;this.loading$=b.pipe((0,y.j)("loading"),(0,I.O)(!0)),this.variantGroup$=b.pipe((0,y.j)("data","variantGroup"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,R.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.Qtd),t.Y36(d.gz),t.Y36(S.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variantgroup"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,a){1&n&&(t.YNc(0,C,13,6,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,a.variantGroup$))},directives:[p.O5,T.I,c.$O,c.u9,x.Ls,c.u5,d.lC,l.SK,l.t3,P.u],pipes:[p.Ov,G.fM],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{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}"]}),e})();var u=r(4182),m=r(8776),z=r(2359),J=r(6042),f=r(4546),Q=r(7525),N=r(5109),Y=r(7008),$=r(4623),L=r(8979),U=r(8390),w=r(3773),j=r(7075),_=r(7462),V=r(4181),B=r(5472),E=r(4889);let D=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,u.UX,d.Bz,m.X0,f.U5,z.L,l.Jb,J.sL,Q.j,m.X0,_.o,V.O,U.N,L.N,$.K,Y.B,B.r,w.g,V.O,j.l,E.E,N.s]]}),e})(),W=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,D]]}),e})();var M=r(3077),X=r(6123),K=r(8929),h=r(7625),H=r(9169),k=r(822);function q(e,o){1&e&&t.GkF(0)}function tt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"formly-form",5),t.NdJ("modelChange",function(i){return t.CHM(n),t.oxw(2).formModel=i}),t.qZA()}if(2&e){const n=t.oxw(2);t.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)}}function et(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"form",2),t.NdJ("ngSubmit",function(){t.CHM(n);const i=t.oxw();return i.submitVariantGroup(i.formModel)}),t.YNc(1,q,1,0,"ng-container",3),t.YNc(2,tt,1,3,"formly-form",4),t.qZA()}if(2&e){const n=t.oxw(),a=t.MAs(2);t.Q6J("formGroup",n.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngIf",!n.success)}}function nt(e,o){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",7),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("errors",n.errorMessages)}}function rt(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",11),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4,"."),t.qZA())}function ot(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",8),t.YNc(2,rt,5,0,"ng-template",9,10,t.W1O),t.BQk()),2&e){const n=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",n)}}function at(e,o){if(1&e&&(t.YNc(0,nt,2,1,"nz-form-item",6),t.YNc(1,ot,4,1,"ng-container",6)),2&e){const n=t.oxw();t.Q6J("ngIf",n.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",n.success)}}let it=(()=>{class e{constructor(n,a,i){this.suggestRevisionGQL=n,this.revisableFieldsGQL=a,this.networkErrorService=i,this.destroy$=new K.xQ,this.formGroup=new u.cw({}),this.formOptions={},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new X.U(i),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Group Form"},fieldGroup:[{key:"name",type:"input",wrappers:["form-field"],templateOptions:{label:"Variant Group Name",required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Description",helpText:"A brief description of this new variant group.",placeholder:"No description provided",required:!0}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"Add any sources upon which your description depends.",addText:"Add a Source"},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variants",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variants",helpText:"Specify the variants that comprise this Variant Group.",addText:"Add a Variant "},fieldArray:{type:"variant-input",templateOptions:{hideLabel:!0,required:!0,allowCreate:!1}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Group Revision",submitSize:"large"}}]}]}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).subscribe(({data:{variantGroup:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var a;return{fields:Object.assign(Object.assign({},n),{variants:n.variants.nodes,organization:null===(a=this.formModel)||void 0===a?void 0:a.fields.organization})}}submitVariantGroup(n){let a=this.toSubmitInput(n);if(a){let i=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:a});i.submitSuccess$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),i.submitError$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toSubmitInput(n){var a;if(n)return{id:this.variantGroupId,organizationId:null===(a=n.fields.organization)||void 0===a?void 0:a.id,comment:n.fields.comment,fields:{description:n.fields.description,name:n.fields.name,sourceIds:n.fields.sources.map(i=>i.id).filter(M.$),variantIds:n.fields.variants.map(i=>i.id).filter(M.$)}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.aw3),t.Y36(g.ROj),t.Y36(H.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-group-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:1,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","modelChange",4,"ngIf"],[3,"form","fields","model","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Revision(s) Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,a){1&n&&(t.YNc(0,et,3,3,"form",0),t.YNc(1,at,2,2,"ng-template",null,1,t.W1O)),2&n&&t.Q6J("ngIf",a.formModel)},directives:[p.O5,u._Y,u.JL,f.Lr,u.sg,p.tP,m.T7,l.SK,f.Nx,k.V,z.r,d.yS],styles:[""]}),e})();function st(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variant-group-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantGroupId",n.variantGroupId)}}function pt(e,o){1&e&&t._uU(0,"Loading Variant Group...")}const dt=[{path:"",component:F,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class e{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(a=>{this.variantGroupId=+a.variantGroupId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(d.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-suggest-page"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariantGroup",""],[3,"variantGroupId"]],template:function(n,a){if(1&n&&(t.YNc(0,st,2,1,"ng-container",0),t.YNc(1,pt,1,0,"ng-template",null,1,t.W1O)),2&n){const i=t.MAs(2);t.Q6J("ngIf",a.variantGroupId)("ngIfElse",i)}},directives:[p.O5,it],styles:[""]}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let lt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[d.Bz.forChild(dt),W],d.Bz]}),e})();var O=r(8144),ut=r(3618),ct=r(5630),gt=r(9386);let mt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,lt,c.KJ,O.zf,x.PV,ut.ZJ,O.zf,ct.D,gt.a,G.WG,l.Jb]]}),e})()}}]);
\ No newline at end of file
diff --git a/server/public/605.96b969c7e87e0600.js b/server/public/605.96b969c7e87e0600.js
deleted file mode 100644
index a9968ab60..000000000
--- a/server/public/605.96b969c7e87e0600.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[605],{605:(mt,v,r)=>{r.r(v),r.d(v,{VariantGroupsReviseModule:()=>ct});var p=r(9808),d=r(325),y=r(373),I=r(1059),R=r(4850),t=r(5e3),c=r(712),S=r(9350),T=r(8992),g=r(1945),G=r(647),l=r(1894),P=r(8616),x=r(6949);function Z(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function A(e,o){1&e&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"div",9),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function C(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",5),t.YNc(9,Z,2,0,"div",6),t.ALo(10,"ngrxPush"),t.YNc(11,A,3,0,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=o.ngIf,a=t.MAs(12),i=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(5),t.hij(" ",n.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(10,4,i.isSignedIn$))("ngIfElse",a)}}let F=(()=>{class e{constructor(n,a,i){this.gql=n,this.route=a,this.viewerService=i,this.routeSub=this.route.params.subscribe(s=>{let b=this.gql.watch({variantGroupId:+s.variantGroupId}).valueChanges;this.loading$=b.pipe((0,y.j)("loading"),(0,I.O)(!0)),this.variantGroup$=b.pipe((0,y.j)("data","variantGroup"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,R.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(c.Qtd),t.Y36(d.gz),t.Y36(S.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variantgroup"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,a){1&n&&(t.YNc(0,C,13,6,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,a.variantGroup$))},directives:[p.O5,T.I,g.$O,g.u9,G.Ls,g.u5,d.lC,l.SK,l.t3,P.u],pipes:[p.Ov,x.fM],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{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}"]}),e})();var u=r(4182),m=r(8776),z=r(2359),J=r(6042),f=r(4546),Q=r(7525),N=r(5109),Y=r(7008),$=r(4623),U=r(8979),L=r(8390),w=r(3773),j=r(7075),B=r(7462),V=r(4181),E=r(5472),D=r(4889);let W=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,u.UX,d.Bz,m.X0,f.U5,z.L,l.Jb,J.sL,Q.j,m.X0,B.o,V.O,L.N,U.N,$.K,Y.B,E.r,w.g,V.O,j.l,D.E,N.s]]}),e})(),X=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,W]]}),e})();var M=r(3077),K=r(6123),H=r(8929),h=r(7625),_=r(9169),k=r(822);function q(e,o){1&e&&t.GkF(0)}function tt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"formly-form",4),t.NdJ("modelChange",function(i){return t.CHM(n),t.oxw().formModel=i}),t.qZA()}if(2&e){const n=t.oxw();t.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)}}function et(e,o){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",6),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("errors",n.errorMessages)}}function nt(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",10),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4,"."),t.qZA())}function rt(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",7),t.YNc(2,nt,5,0,"ng-template",8,9,t.W1O),t.BQk()),2&e){const n=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",n)}}function ot(e,o){if(1&e&&(t.YNc(0,et,2,1,"nz-form-item",5),t.YNc(1,rt,4,1,"ng-container",5)),2&e){const n=t.oxw();t.Q6J("ngIf",n.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",n.success)}}let at=(()=>{class e{constructor(n,a,i){this.suggestRevisionGQL=n,this.revisableFieldsGQL=a,this.networkErrorService=i,this.destroy$=new H.xQ,this.formGroup=new u.cw({}),this.formOptions={},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new K.U(i),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Group Form"},fieldGroup:[{key:"name",type:"input",wrappers:["form-field"],templateOptions:{label:"Variant Group Name",required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Description",helpText:"A brief description of this new variant group.",placeholder:"No description provided",required:!0}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"Add any sources upon which your description depends.",addText:"Add a Source"},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variants",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variants",helpText:"Specify the variants that comprise this Variant Group.",addText:"Add a Variant "},fieldArray:{type:"variant-input",templateOptions:{hideLabel:!0,required:!0,allowCreate:!1}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Group Revision",submitSize:"large"}}]}]}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).subscribe(({data:{variantGroup:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var a;return{fields:Object.assign(Object.assign({},n),{variants:n.variants.nodes,organization:null===(a=this.formModel)||void 0===a?void 0:a.fields.organization})}}submitVariantGroup(n){let a=this.toSubmitInput(n);if(a){let i=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:a});i.submitSuccess$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),i.submitError$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toSubmitInput(n){var a;if(n)return{id:this.variantGroupId,organizationId:null===(a=n.fields.organization)||void 0===a?void 0:a.id,comment:n.fields.comment,fields:{description:n.fields.description,name:n.fields.name,sourceIds:n.fields.sources.map(i=>i.id).filter(M.$),variantIds:n.fields.variants.map(i=>i.id).filter(M.$)}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(c.aw3),t.Y36(c.ROj),t.Y36(_.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-group-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:5,vars:3,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Revision(s) Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,a){if(1&n&&(t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return a.submitVariantGroup(a.formModel)}),t.YNc(1,q,1,0,"ng-container",1),t.YNc(2,tt,1,3,"formly-form",2),t.qZA(),t.YNc(3,ot,2,2,"ng-template",null,3,t.W1O)),2&n){const i=t.MAs(4);t.Q6J("formGroup",a.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngIf",!a.success)}},directives:[u._Y,u.JL,f.Lr,u.sg,p.tP,p.O5,m.T7,l.SK,f.Nx,k.V,z.r,d.yS],styles:[""]}),e})();function it(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variant-group-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantGroupId",n.variantGroupId)}}function st(e,o){1&e&&t._uU(0,"Loading Variant Group...")}const pt=[{path:"",component:F,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class e{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(a=>{this.variantGroupId=+a.variantGroupId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(d.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-suggest-page"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariantGroup",""],[3,"variantGroupId"]],template:function(n,a){if(1&n&&(t.YNc(0,it,2,1,"ng-container",0),t.YNc(1,st,1,0,"ng-template",null,1,t.W1O)),2&n){const i=t.MAs(2);t.Q6J("ngIf",a.variantGroupId)("ngIfElse",i)}},directives:[p.O5,at],styles:[""]}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let dt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[d.Bz.forChild(pt),X],d.Bz]}),e})();var O=r(8144),lt=r(3618),ut=r(5630),gt=r(9386);let ct=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,dt,g.KJ,O.zf,G.PV,lt.ZJ,O.zf,ut.D,gt.a,x.WG,l.Jb]]}),e})()}}]);
\ No newline at end of file
diff --git a/server/public/6303.39a638159b50f07b.js b/server/public/6303.39a638159b50f07b.js
deleted file mode 100644
index f7be69609..000000000
--- a/server/public/6303.39a638159b50f07b.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6303],{8369:(j,U,i)=>{i.d(U,{W:()=>L});var e=i(9808),n=i(325),t=i(8481),A=i(3610),Z=i(647),M=i(7484),D=i(3098),I=i(3309),O=i(4867),E=i(6286),k=i(8018),J=i(6949),C=i(9444),f=i(1894),P=i(8144),S=i(3580),V=i(8625),W=i(7026),B=i(592),Q=i(5e3);let F=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=Q.oAB({type:T}),T.\u0275inj=Q.cJS({imports:[[e.ez,n.Bz,J.WG,M.vh,D.q6,Z.PV,f.Jb,P.zf,t.X,I.U,S.Q,O.Q,E.y,k.e,C.s,B.x,V.$L.forChild({formatter:{useClass:W.x,provide:V.KP}})]]}),T})(),L=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=Q.oAB({type:T}),T.\u0275inj=Q.cJS({imports:[[e.ez,n.Bz,t.X,A.$6,Z.PV,F,C.s]]}),T})()},209:(j,U,i)=>{i.d(U,{i:()=>L});var e=i(9808),n=i(325),t=i(8481),A=i(3610),Z=i(647),M=i(7484),D=i(3309),I=i(4867),O=i(1894),E=i(3098),k=i(8018),J=i(3580),C=i(6286),f=i(6949),P=i(8144),S=i(9444),V=i(9779),W=i(592),B=i(3618),Q=i(5e3);let F=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=Q.oAB({type:T}),T.\u0275inj=Q.cJS({imports:[[e.ez,n.Bz,f.WG,Z.PV,M.vh,O.Jb,E.q6,t.X,P.zf,B.ZJ,S.s,k.e,J.Q,D.U,I.Q,C.y,V.s,W.x]]}),T})(),L=(()=>{class T{}return T.\u0275fac=function(m){return new(m||T)},T.\u0275mod=Q.oAB({type:T}),T.\u0275inj=Q.cJS({imports:[[e.ez,n.Bz,t.X,A.$6,Z.PV,F,S.s]]}),T})()},5749:(j,U,i)=>{i.d(U,{m:()=>st});var e=i(5e3),n=i(9808),t=i(325),A=i(8481),Z=i(3610),M=i(4850),D=i(712),I=i(7484),O=i(7881),E=i(1894),k=i(3098),J=i(6550),C=i(6949);const f=function(d,x){return{displayName:d,profileImagePath:x}};function P(d,x){if(1&d&&(e._UZ(0,"cvc-user-avatar",12),e.TgZ(1,"span",13),e._uU(2),e.qZA()),2&d){const u=e.oxw().ngIf;e.Q6J("user",e.WLB(2,f,u.name,u.profileImagePath)),e.xp6(2),e.Oqu(u.name)}}function S(d,x){if(1&d&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&d){const u=x.ngIf;e.xp6(1),e.Oqu(u)}}function V(d,x){if(1&d&&(e.ynx(0),e.TgZ(1,"cvc-link-tag",14),e._uU(2),e.qZA(),e.BQk()),2&d){const u=e.oxw().ngIf;e.xp6(1),e.Q6J("href",u.url),e.xp6(1),e.hij(" ",u.name," ")}}function W(d,x){if(1&d&&(e.ynx(0),e.TgZ(1,"nz-card",4),e.YNc(2,P,3,5,"ng-template",null,5,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",6),e.TgZ(6,"div",7),e.TgZ(7,"p",8),e.YNc(8,S,2,1,"span",9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"nz-descriptions",10),e.TgZ(10,"nz-descriptions-item",11),e.YNc(11,V,3,2,"ng-container",9),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&d){const u=x.ngIf,Y=e.MAs(3);e.oxw();const R=e.MAs(4),ot=e.MAs(6);e.xp6(1),e.Q6J("nzTitle",Y),e.xp6(7),e.Q6J("ngIf",u.description)("ngIfElse",R),e.xp6(1),e.Q6J("nzColumn",2),e.xp6(2),e.Q6J("ngIf",u.url)("ngIfElse",ot)}}function B(d,x){1&d&&e._uU(0," Organization has not provided a description.\n")}function Q(d,x){1&d&&e._uU(0," --\n")}let F=(()=>{class d{constructor(u){this.gql=u}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,M.U)(({data:u})=>u.organization))}}return d.\u0275fac=function(u){return new(u||d)(e.Y36(D.X5f))},d.\u0275cmp=e.Xpm({type:d,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(u,Y){1&u&&(e.TgZ(0,"div",0),e.YNc(1,W,12,6,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA(),e.YNc(3,B,1,0,"ng-template",null,2,e.W1O),e.YNc(5,Q,1,0,"ng-template",null,3,e.W1O)),2&u&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,Y.org$)))},directives:[n.O5,I.bd,O.L,E.SK,E.t3,k.R7,k.uj,J.l],pipes:[C.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}"]}),d})();var L=i(647);function T(d,x){}function g(d,x){if(1&d&&(e.ynx(0),e.TgZ(1,"a",5),e.YNc(2,T,0,0,"ng-template",6),e.qZA(),e.BQk()),2&d){const u=e.oxw(),Y=e.MAs(2);e.xp6(1),e.MGl("routerLink","/organizations/",u.org.id,""),e.xp6(1),e.Q6J("ngTemplateOutlet",Y)}}function m(d,x){}function l(d,x){if(1&d&&e._UZ(0,"cvc-organization-popover",10),2&d){const u=e.oxw(3);e.Q6J("orgId",u.org.id)}}function z(d,x){if(1&d&&e.YNc(0,l,1,1,"cvc-organization-popover",9),2&d){const u=e.oxw(2);e.Q6J("ngIf",u.enablePopover)}}function N(d,x){if(1&d&&(e.TgZ(0,"nz-tag",7),e.YNc(1,m,0,0,"ng-template",6),e.qZA(),e.YNc(2,z,1,1,"ng-template",null,8,e.W1O)),2&d){const u=e.MAs(3);e.oxw();const Y=e.MAs(8);e.Q6J("nzPopoverContent",u),e.xp6(1),e.Q6J("ngTemplateOutlet",Y)}}function K(d,x){}function tt(d,x){if(1&d&&(e.TgZ(0,"nz-tag"),e.YNc(1,K,0,0,"ng-template",6),e.qZA()),2&d){e.oxw();const u=e.MAs(8);e.xp6(1),e.Q6J("ngTemplateOutlet",u)}}function et(d,x){}function nt(d,x){if(1&d&&e.YNc(0,et,0,0,"ng-template",6),2&d){e.oxw();const u=e.MAs(2);e.Q6J("ngTemplateOutlet",u)}}function it(d,x){if(1&d&&(e._UZ(0,"i",11),e._uU(1)),2&d){const u=e.oxw();e.xp6(1),e.hij(" ",u.org.name,"\n")}}let st=(()=>{class d{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 d.\u0275fac=function(u){return new(u||d)},d.\u0275cmp=e.Xpm({type:d,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["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(u,Y){if(1&u&&(e.YNc(0,g,3,2,"ng-container",0),e.YNc(1,N,4,2,"ng-template",null,1,e.W1O),e.YNc(3,tt,2,1,"ng-template",null,2,e.W1O),e.YNc(5,nt,1,1,"ng-template",null,3,e.W1O),e.YNc(7,it,2,1,"ng-template",null,4,e.W1O)),2&u){const R=e.MAs(6);e.Q6J("ngIf",Y.linked)("ngIfElse",R)}},directives:[n.O5,t.yS,n.tP,A.j,Z.lU,F,L.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),d})()},6286:(j,U,i)=>{i.d(U,{y:()=>J});var e=i(9808),n=i(325),t=i(8481),A=i(3610),Z=i(647),M=i(6949),D=i(7484),I=i(3630),O=i(3098),E=i(5e3);let k=(()=>{class C{}return C.\u0275fac=function(P){return new(P||C)},C.\u0275mod=E.oAB({type:C}),C.\u0275inj=E.cJS({imports:[[e.ez,M.WG,Z.PV,D.vh,I.X,O.q6]]}),C})(),J=(()=>{class C{}return C.\u0275fac=function(P){return new(P||C)},C.\u0275mod=E.oAB({type:C}),C.\u0275inj=E.cJS({imports:[[e.ez,n.Bz,t.X,A.$6,Z.PV,k]]}),C})()},592:(j,U,i)=>{i.d(U,{x:()=>Z});var e=i(9808),n=i(8481),t=i(647),A=i(5e3);let Z=(()=>{class M{}return M.\u0275fac=function(I){return new(I||M)},M.\u0275mod=A.oAB({type:M}),M.\u0275inj=A.cJS({imports:[[e.ez,n.X,t.PV]]}),M})()},7677:(j,U,i)=>{i.d(U,{G:()=>C});var e=i(9808),n=i(325),t=i(3610),A=i(8481),Z=i(647),M=i(9779),D=i(4867),I=i(7484),O=i(3098),E=i(6949),k=i(5e3);let J=(()=>{class f{}return f.\u0275fac=function(S){return new(S||f)},f.\u0275mod=k.oAB({type:f}),f.\u0275inj=k.cJS({imports:[[e.ez,E.WG,I.vh,O.q6,M.s,D.Q]]}),f})(),C=(()=>{class f{}return f.\u0275fac=function(S){return new(S||f)},f.\u0275mod=k.oAB({type:f}),f.\u0275inj=k.cJS({imports:[[e.ez,n.Bz,t.$6,A.X,Z.PV,J]]}),f})()},8664:(j,U,i)=>{i.d(U,{I:()=>ot});var e=i(6654),n=i(5e3),t=i(9808),A=i(325),Z=i(8481),M=i(3610),D=i(4850),I=i(712),O=i(7484),E=i(647),k=i(3193),J=i(3098),C=i(6550),f=i(1894),P=i(8144),S=i(6949);function V(c,_){if(1&c&&(n._UZ(0,"i",13),n._uU(1)),2&c){const h=n.oxw().ngIf;n.xp6(1),n.hij(" ",h.name," ")}}function W(c,_){if(1&c&&n._UZ(0,"cvc-gene-tag",14),2&c){const h=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",h.gene)}}function B(c,_){1&c&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function Q(c,_){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,B,2,0,"span",1),n.qZA()),2&c){const h=_.$implicit,w=_.last;n.xp6(1),n.hij(" ",h,""),n.xp6(1),n.Q6J("ngIf",!w)}}function F(c,_){if(1&c&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,Q,3,2,"span",16),n.qZA()),2&c){const h=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",h.variantAliases)}}function L(c,_){if(1&c&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&c){const h=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",h.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",h.alleleRegistryId," ")}}function T(c,_){if(1&c&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&c){const h=n.oxw().ngIf;n.MGl("routerLink","/variants/",h.id,"/flags"),n.xp6(3),n.hij(" Flags (",h.flags.totalCount,") ")}}function g(c,_){if(1&c&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&c){const h=n.oxw().ngIf;n.MGl("routerLink","/variants/",h.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",h.revisions.totalCount,") ")}}function m(c,_){if(1&c&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&c){const h=n.oxw().ngIf;n.MGl("routerLink","/variants/",h.id,"/comments"),n.xp6(3),n.hij(" Comments (",h.comments.totalCount,") ")}}function l(c,_){if(1&c&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,V,2,1,"ng-template",null,3,n.W1O),n.YNc(4,W,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,F,2,1,"nz-descriptions-item",6),n.YNc(8,L,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,T,4,2,"a",12),n.YNc(15,g,4,2,"a",12),n.YNc(16,m,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&c){const h=_.ngIf,w=n.MAs(3),$=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",w)("nzExtra",$),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",h.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",h.alleleRegistryId),n.xp6(2),n.hij(" ",h.evidenceItems.totalCount," ")}}let z=(()=>{class c{constructor(h){this.gql=h}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,D.U)(({data:h})=>h.variant))}}return c.\u0275fac=function(h){return new(h||c)(n.Y36(I.ZYZ))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(h,w){1&h&&(n.TgZ(0,"div",0),n.YNc(1,l,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&h&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,w.variant$)))},directives:[t.O5,O.bd,E.Ls,k.H,J.R7,J.uj,t.sg,C.l,f.SK,f.t3,P.NU,P.$1,A.yS,Z.j],pipes:[S.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}"]}),c})();function N(c,_){}function K(c,_){if(1&c&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,N,0,0,"ng-template",6),n.qZA(),n.BQk()),2&c){const h=n.oxw(),w=n.MAs(2);n.xp6(1),n.Q6J("routerLink",h.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",w)}}function tt(c,_){}function et(c,_){if(1&c){const h=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function($){return n.CHM(h),n.oxw(2).itemClosed($)}),n.YNc(1,tt,0,0,"ng-template",6),n.qZA()}if(2&c){n.oxw();const h=n.MAs(2),w=n.oxw(),$=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",w.onCloseClicked?0:.5)("nzPopoverContent",h)("nzMode",w.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",$)}}function nt(c,_){if(1&c&&n._UZ(0,"cvc-variant-popover",11),2&c){const h=n.oxw(3);n.Q6J("variantId",h.variant.id)}}function it(c,_){if(1&c&&n.YNc(0,nt,1,1,"cvc-variant-popover",10),2&c){const h=n.oxw(2);n.Q6J("ngIf",h.enablePopover)}}function st(c,_){if(1&c&&(n.YNc(0,et,2,4,"nz-tag",7),n.YNc(1,it,1,1,"ng-template",null,8,n.W1O)),2&c){const h=n.oxw(),w=n.MAs(4);n.Q6J("ngIf",h.enablePopover)("ngIfElse",w)}}function d(c,_){}function x(c,_){if(1&c){const h=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function($){return n.CHM(h),n.oxw().itemClosed($)}),n.YNc(1,d,0,0,"ng-template",6),n.qZA()}if(2&c){const h=n.oxw(),w=n.MAs(8);n.Q6J("nzMode",h.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",w)}}function u(c,_){}function Y(c,_){if(1&c&&n.YNc(0,u,0,0,"ng-template",6),2&c){n.oxw();const h=n.MAs(2);n.Q6J("ngTemplateOutlet",h)}}function R(c,_){if(1&c&&(n._UZ(0,"i",13),n._uU(1)),2&c){const h=n.oxw();n.xp6(1),n.hij(" ",h.variant.name,"\n")}}let ot=(()=>{class c extends e.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return c.\u0275fac=function(h){return new(h||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(h,w){if(1&h&&(n.YNc(0,K,3,2,"ng-container",0),n.YNc(1,st,3,2,"ng-template",null,1,n.W1O),n.YNc(3,x,2,2,"ng-template",null,2,n.W1O),n.YNc(5,Y,1,1,"ng-template",null,3,n.W1O),n.YNc(7,R,2,1,"ng-template",null,4,n.W1O)),2&h){const $=n.MAs(6);n.Q6J("ngIf",w.linked)("ngIfElse",$)}},directives:[t.O5,A.yS,t.tP,Z.j,M.lU,z,E.Ls],styles:[""]}),c})()},4867:(j,U,i)=>{i.d(U,{Q:()=>P});var e=i(9808),n=i(325),t=i(8481),A=i(647),Z=i(3610),M=i(6949),D=i(7484),I=i(1894),O=i(3098),E=i(8144),k=i(3309),J=i(3630),C=i(5e3);let f=(()=>{class S{}return S.\u0275fac=function(W){return new(W||S)},S.\u0275mod=C.oAB({type:S}),S.\u0275inj=C.cJS({imports:[[e.ez,n.Bz,M.WG,D.vh,I.Jb,O.q6,t.X,A.PV,E.zf,k.U,J.X]]}),S})(),P=(()=>{class S{}return S.\u0275fac=function(W){return new(W||S)},S.\u0275mod=C.oAB({type:S}),S.\u0275inj=C.cJS({imports:[[e.ez,n.Bz,t.X,Z.$6,A.PV,f]]}),S})()},6528:(j,U,i)=>{i.r(U),i.d(U,{WelcomeModule:()=>Dt});var e=i(325),n=i(712),t=i(5e3),A=i(8144),Z=i(1894),M=i(226),D=i(925),I=i(9808),O=i(655),E=i(1159),k=i(8929),J=i(3753),C=i(7625),f=i(9439),P=i(1721),S=i(4090);const V=["slickList"],W=["slickTrack"];function B(s,a){}const Q=function(s){return{$implicit:s}};function F(s,a){if(1&s){const o=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const v=t.CHM(o).index;return t.oxw(2).onLiClick(v)}),t.YNc(1,B,0,0,"ng-template",10),t.qZA()}if(2&s){const o=a.index,r=t.oxw(2),p=t.MAs(8);t.ekj("slick-active",o===r.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzDotRender||p)("ngTemplateOutletContext",t.VKq(4,Q,o))}}function L(s,a){if(1&s&&(t.TgZ(0,"ul",7),t.YNc(1,F,2,6,"li",8),t.qZA()),2&s){const o=t.oxw();t.ekj("slick-dots-top","top"===o.nzDotPosition)("slick-dots-bottom","bottom"===o.nzDotPosition)("slick-dots-left","left"===o.nzDotPosition)("slick-dots-right","right"===o.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",o.carouselContents)}}function T(s,a){if(1&s&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&s){const o=a.$implicit;t.xp6(1),t.Oqu(o+1)}}const g=["*"];let m=(()=>{class s{constructor(o,r){this.renderer=r,this._active=!1,this.el=o.nativeElement,this.renderer.addClass(o.nativeElement,"slick-slide")}set isActive(o){this._active=o,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}}return s.\u0275fac=function(o){return new(o||s)(t.Y36(t.SBq),t.Y36(t.Qsj))},s.\u0275dir=t.lG2({type:s,selectors:[["","nz-carousel-content",""]],exportAs:["nzCarouselContent"]}),s})();class l{constructor(a,o,r,p,v){this.cdr=o,this.renderer=r,this.platform=p,this.options=v,this.carouselComponent=a}get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}withCarouselContents(a){const o=this.carouselComponent;if(this.slickListEl=o.slickListEl,this.slickTrackEl=o.slickTrackEl,this.contents=(null==a?void 0:a.toArray())||[],this.length=this.contents.length,this.platform.isBrowser){const r=o.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else null==a||a.forEach((r,p)=>{0===p?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(a){}dispose(){}getFromToInBoundary(a,o){const r=this.maxIndex+1;return{from:(a+r)%r,to:(o+r)%r}}}class z extends l{withCarouselContents(a){super.withCarouselContents(a),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((o,r)=>{this.renderer.setStyle(o.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(o.el,"position","relative"),this.renderer.setStyle(o.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(o.el,"left",-this.unitWidth*r+"px"),this.renderer.setStyle(o.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(a,o){const{to:r}=this.getFromToInBoundary(a,o),p=new k.xQ;return this.contents.forEach((v,H)=>{this.renderer.setStyle(v.el,"opacity",r===H?"1":"0")}),setTimeout(()=>{p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p}dispose(){this.contents.forEach(a=>{this.renderer.setStyle(a.el,"transition",null),this.renderer.setStyle(a.el,"opacity",null),this.renderer.setStyle(a.el,"width",null),this.renderer.setStyle(a.el,"left",null)}),super.dispose()}}class N extends l{constructor(a,o,r,p,v){super(a,o,r,p,v),this.isDragging=!1,this.isTransitioning=!1}get vertical(){return this.carouselComponent.vertical}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(a){super.withCarouselContents(a);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(a,o){const{to:r}=this.getFromToInBoundary(a,o),p=new k.xQ;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(a,o):this.horizontalTransform(a,o),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(v=>{this.renderer.setStyle(v.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(a){if(this.isTransitioning)return;const o=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(o===this.maxIndex?this.prepareVerticalContext(!0):0===o&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-o*this.unitHeight+a.x}px, 0)`)):(!this.isDragging&&this.length>2&&(o===this.maxIndex?this.prepareHorizontalContext(!0):0===o&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-o*this.unitWidth+a.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(a,o){const{from:r,to:p}=this.getFromToInBoundary(a,o);this.length>2&&o!==p?(this.prepareVerticalContext(p2&&o!==p?(this.prepareHorizontalContext(p{class s{constructor(o,r,p,v,H,G,q,lt,ct,pt){this.nzConfigService=r,this.ngZone=p,this.renderer=v,this.cdr=H,this.platform=G,this.resizeService=q,this.nzDragService=lt,this.directionality=ct,this.customStrategies=pt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,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 k.xQ,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=X=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-X:X)},this.pointerDown=X=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(X).subscribe(y=>{var gt;this.pointerDelta=y,this.isDragging=!0,null===(gt=this.strategy)||void 0===gt||gt.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const y=this.pointerDelta?this.pointerDelta.x:0;Math.abs(y)>this.gestureRect.width/3?this.goTo(y>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.renderer.addClass(o.nativeElement,"ant-carousel"),this.el=o.nativeElement}set nzDotPosition(o){this._dotPosition=o,this.vertical="left"===o||"right"===o}get nzDotPosition(){return this._dotPosition}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,C.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,J.R)(this.slickListEl,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(o=>{const{keyCode:r}=o;r!==E.oh&&r!==E.SV||(o.preventDefault(),this.ngZone.run(()=>{r===E.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,C.R)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(o){const{nzEffect:r,nzDotPosition:p}=o;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(o){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting){const r=this.carouselContents.length,p=this.activeIndex,v=(o+r)%r;this.isTransiting=!0,this.nzBeforeChange.emit({from:p,to:v}),this.strategy.switch(this.activeIndex,o).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(o),this.isTransiting=!1}),this.markContentActive(v),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const o=this.customStrategies?this.customStrategies.find(r=>r.name===this.nzEffect):null;this.strategy=o?new o.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new N(this,this.cdr,this.renderer,this.platform):new z(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(o){this.activeIndex=o,this.carouselContents&&this.carouselContents.forEach((r,p)=>{r.isActive="rtl"===this.dir?o===this.carouselContents.length-1-p:o===p}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return s.\u0275fac=function(o){return new(o||s)(t.Y36(t.SBq),t.Y36(f.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(D.t4),t.Y36(S.rI),t.Y36(S.Ml),t.Y36(M.Is,8),t.Y36(K,8))},s.\u0275cmp=t.Xpm({type:s,selectors:[["nz-carousel"]],contentQueries:function(o,r,p){if(1&o&&t.Suo(p,m,4),2&o){let v;t.iGM(v=t.CRH())&&(r.carouselContents=v)}},viewQuery:function(o,r){if(1&o&&(t.Gf(V,7),t.Gf(W,7)),2&o){let p;t.iGM(p=t.CRH())&&(r.slickList=p.first),t.iGM(p=t.CRH())&&(r.slickTrack=p.first)}},hostVars:4,hostBindings:function(o,r){2&o&&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",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[t.TTD],ngContentSelectors:g,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(o,r){1&o&&(t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1,2),t.NdJ("mousedown",function(v){return r.pointerDown(v)})("touchstart",function(v){return r.pointerDown(v)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.qZA(),t.YNc(6,L,2,9,"ul",5),t.qZA(),t.YNc(7,T,2,1,"ng-template",null,6,t.W1O)),2&o&&(t.ekj("slick-vertical","left"===r.nzDotPosition||"right"===r.nzDotPosition),t.xp6(6),t.Q6J("ngIf",r.nzDots))},directives:[I.O5,I.sg,I.tP],encapsulation:2,changeDetection:0}),(0,O.gn)([(0,f.oS)()],s.prototype,"nzEffect",void 0),(0,O.gn)([(0,f.oS)(),(0,P.yF)()],s.prototype,"nzEnableSwipe",void 0),(0,O.gn)([(0,f.oS)(),(0,P.yF)()],s.prototype,"nzDots",void 0),(0,O.gn)([(0,f.oS)(),(0,P.yF)()],s.prototype,"nzAutoPlay",void 0),(0,O.gn)([(0,f.oS)(),(0,P.Rn)()],s.prototype,"nzAutoPlaySpeed",void 0),(0,O.gn)([(0,P.Rn)()],s.prototype,"nzTransitionSpeed",void 0),(0,O.gn)([(0,f.oS)()],s.prototype,"nzDotPosition",null),s})(),nt=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[M.vT,I.ez,D.ud]]}),s})();var d=i(4850),x=i(7484),u=i(3868),Y=i(4182),R=i(5249),ot=i(2683),c=i(647),_=i(6949);function h(s,a){if(1&s){const o=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(p){return t.CHM(o),t.oxw().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(),t.qZA()}if(2&s){const o=t.oxw();t.Q6J("ngModel",o.statsType)}}function w(s,a){1&s&&t._UZ(0,"i",30)}function $(s,a){1&s&&t._UZ(0,"i",31)}function at(s,a){1&s&&t._UZ(0,"i",32)}function ut(s,a){1&s&&t._UZ(0,"i",33)}function mt(s,a){1&s&&t._UZ(0,"i",34)}function zt(s,a){1&s&&t._UZ(0,"i",35)}function vt(s,a){1&s&&t._UZ(0,"i",36)}function ft(s,a){1&s&&t._UZ(0,"i",37)}function Ct(s,a){1&s&&t._UZ(0,"i",38)}function Tt(s,a){1&s&&t._UZ(0,"i",39)}function yt(s,a){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",9),t.TgZ(2,"nz-col",10),t.TgZ(3,"a",11),t._UZ(4,"nz-statistic",12),t.ALo(5,"number"),t.YNc(6,w,1,0,"ng-template",null,13,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-col",10),t.TgZ(9,"a",14),t._UZ(10,"nz-statistic",12),t.ALo(11,"number"),t.YNc(12,$,1,0,"ng-template",null,15,t.W1O),t.qZA(),t.qZA(),t.TgZ(14,"nz-col",10),t.TgZ(15,"a",16),t._UZ(16,"nz-statistic",12),t.ALo(17,"number"),t.YNc(18,at,1,0,"ng-template",null,17,t.W1O),t.qZA(),t.qZA(),t.TgZ(20,"nz-col",10),t.TgZ(21,"a",18),t._UZ(22,"nz-statistic",12),t.ALo(23,"number"),t.YNc(24,ut,1,0,"ng-template",null,19,t.W1O),t.qZA(),t.qZA(),t.TgZ(26,"nz-col",10),t.TgZ(27,"a",20),t._UZ(28,"nz-statistic",12),t.ALo(29,"number"),t.YNc(30,mt,1,0,"ng-template",null,21,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"nz-row",9),t.TgZ(33,"nz-col",10),t.TgZ(34,"a",22),t._UZ(35,"nz-statistic",12),t.ALo(36,"number"),t.YNc(37,zt,1,0,"ng-template",null,23,t.W1O),t.qZA(),t.qZA(),t.TgZ(39,"nz-col",10),t.TgZ(40,"a",24),t._UZ(41,"nz-statistic",12),t.ALo(42,"number"),t.YNc(43,vt,1,0,"ng-template",null,25,t.W1O),t.qZA(),t.qZA(),t.TgZ(45,"nz-col",10),t.TgZ(46,"a",26),t._UZ(47,"nz-statistic",12),t.ALo(48,"number"),t.YNc(49,ft,1,0,"ng-template",null,27,t.W1O),t.qZA(),t.qZA(),t.TgZ(51,"nz-col",10),t._UZ(52,"nz-statistic",12),t.ALo(53,"number"),t.YNc(54,Ct,1,0,"ng-template",null,28,t.W1O),t.qZA(),t.TgZ(56,"nz-col",10),t._UZ(57,"nz-statistic",12),t.ALo(58,"number"),t.YNc(59,Tt,1,0,"ng-template",null,29,t.W1O),t.qZA(),t.qZA(),t.BQk()),2&s){const o=a.ngIf,r=t.MAs(7),p=t.MAs(13),v=t.MAs(19),H=t.MAs(25),G=t.MAs(31),q=t.MAs(38),lt=t.MAs(44),ct=t.MAs(50),pt=t.MAs(55),X=t.MAs(60),y=t.oxw();t.xp6(4),t.Q6J("nzTitle",y.statsType+" Assertions")("nzValue",t.lcZ(5,30,o.assertions[y.statsTypes[y.statsType]]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Evidence")("nzValue",t.lcZ(11,32,o.evidenceItems[y.statsTypes[y.statsType]]))("nzPrefix",p),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Genes")("nzValue",t.lcZ(17,34,o.genes[y.statsTypes[y.statsType]]))("nzPrefix",v),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Variants")("nzValue",t.lcZ(23,36,o.variants[y.statsTypes[y.statsType]]))("nzPrefix",H),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Contributors")("nzValue",t.lcZ(29,38,o.users[y.statsTypes[y.statsType]]))("nzPrefix",G),t.xp6(7),t.Q6J("nzTitle",y.statsType+" Diseases")("nzValue",t.lcZ(36,40,o.diseases[y.statsTypes[y.statsType]]))("nzPrefix",q),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Drugs")("nzValue",t.lcZ(42,42,o.drugs[y.statsTypes[y.statsType]]))("nzPrefix",lt),t.xp6(6),t.Q6J("nzTitle",y.statsType+" Sources")("nzValue",t.lcZ(48,44,o.sources[y.statsTypes[y.statsType]]))("nzPrefix",ct),t.xp6(5),t.Q6J("nzTitle",y.statsType+" Revisions")("nzValue",t.lcZ(53,46,o.revisions[y.statsTypes[y.statsType]]))("nzPrefix",pt),t.xp6(5),t.Q6J("nzTitle",y.statsType+" Comments")("nzValue",t.lcZ(58,48,o.comments[y.statsTypes[y.statsType]]))("nzPrefix",X)}}function _t(s,a){if(1&s&&(t.TgZ(0,"nz-row",9),t.TgZ(1,"nz-col",10),t._UZ(2,"nz-statistic",40),t.qZA(),t.TgZ(3,"nz-col",10),t._UZ(4,"nz-statistic",40),t.qZA(),t.TgZ(5,"nz-col",10),t._UZ(6,"nz-statistic",40),t.qZA(),t.TgZ(7,"nz-col",10),t._UZ(8,"nz-statistic",40),t.qZA(),t.TgZ(9,"nz-col",10),t._UZ(10,"nz-statistic",40),t.qZA(),t.qZA(),t.TgZ(11,"nz-row",9),t.TgZ(12,"nz-col",10),t._UZ(13,"nz-statistic",40),t.qZA(),t.TgZ(14,"nz-col",10),t._UZ(15,"nz-statistic",40),t.qZA(),t.TgZ(16,"nz-col",10),t._UZ(17,"nz-statistic",40),t.qZA(),t.TgZ(18,"nz-col",10),t._UZ(19,"nz-statistic",40),t.qZA(),t.TgZ(20,"nz-col",10),t._UZ(21,"nz-statistic",40),t.qZA(),t.qZA()),2&s){const o=t.oxw();t.xp6(2),t.Q6J("nzTitle",o.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Comments")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",o.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",o.statsType+" Comments")("nzValue","--")}}let xt=(()=>{class s{constructor(o){this.statsGql=o,this.statsTypes={Total:"allTime",Yearly:"newThisYear",Monthly:"newThisMonth",Weekly:"newThisWeek"},this.statsType="Total"}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,d.U)(o=>o.loading)),this.stats$=this.response$.pipe((0,d.U)(o=>o.data.timepointStats))}}return s.\u0275fac=function(o){return new(o||s)(t.Y36(n.UWf))},s.\u0275cmp=t.Xpm({type:s,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","Total"],["nz-radio-button","","nzValue","Weekly"],["nz-radio-button","","nzValue","Monthly"],["nz-radio-button","","nzValue","Yearly"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["assertionIcon",""],["routerLink","/evidence"],["evidenceIcon",""],["routerLink","/genes"],["geneIcon",""],["routerLink","/variants"],["variantIcon",""],["routerLink","/users"],["userIcon",""],["routerLink","/diseases"],["diseaseIcon",""],["routerLink","/drugs"],["drugIcon",""],["routerLink","/sources"],["sourceIcon",""],["revisionsIcon",""],["commentIcon",""],["nz-icon","","nzType","civic:assertion"],["nz-icon","","nzType","civic:evidence"],["nz-icon","","nzType","civic:gene"],["nz-icon","","nzType","civic:variant"],["nz-icon","","nzType","civic:user"],["nz-icon","","nzType","civic:disease"],["nz-icon","","nzType","civic:intervention"],["nz-icon","","nzType","civic:source"],["nz-icon","","nzType","civic:revision"],["nz-icon","","nzType","civic:comment"],[3,"nzTitle","nzValue"]],template:function(o,r){if(1&o&&(t.TgZ(0,"nz-card",0),t.YNc(1,h,9,1,"ng-template",null,1,t.W1O),t.YNc(3,yt,61,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,_t,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&o){const p=t.MAs(2),v=t.MAs(6);t.Q6J("nzExtra",p),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",v)}},directives:[x.bd,u.Dg,Y.JJ,Y.On,u.Of,u.Bq,I.O5,Z.SK,Z.t3,e.yS,R.my,ot.w,c.Ls],pipes:[_.fM,I.JJ],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),s})();var b=i(3762),rt=i(3618),St=i(2011);function Zt(s,a){1&s&&(t.TgZ(0,"nz-carousel",5),t.TgZ(1,"div",6),t.TgZ(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.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"h1"),t._uU(8," Discover supported clinical interpretations "),t._UZ(9,"br"),t._uU(10," of mutations related to cancer.\n"),t.qZA(),t.qZA(),t.TgZ(11,"div",6),t.TgZ(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.qZA(),t.TgZ(18,"div",6),t.TgZ(19,"h1"),t.TgZ(20,"a",7),t._uU(21,"Become an Editor! "),t._UZ(22,"br"),t._uU(23,"Help moderate updates to CIViC"),t.qZA(),t.qZA(),t.qZA(),t.qZA())}function At(s,a){1&s&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-space",0),t.YNc(3,Zt,24,0,"nz-carousel",4),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("nzSpan",24))}function Pt(s,a){1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t._UZ(2,"cvc-site-stats-card"),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function It(s,a){if(1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-card",9),t.TgZ(3,"nz-list",10),t.TgZ(4,"nz-list-item"),t.TgZ(5,"nz-list-item-meta"),t.TgZ(6,"nz-list-item-meta-title"),t.TgZ(7,"span"),t._uU(8,"Welcome to CIViC 2.0!"),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"span",11),t._uU(11," April 9th, 2022 "),t.qZA(),t.qZA(),t.qZA(),t._uU(12," CIViC 2.0 features a completely redesigned user interface and a more powerful GraphQL API. It provides many new ways to browse the knowledgebase while retaining the CIViC knowledge model you are already familiar with. Furthermore, existing links to CIViC entities will continue to function as before. If you have any questions, comments, or would like help adapting an existing integration to our new API, please email us at "),t.TgZ(13,"a",12),t._uU(14,"help@civicdb.org"),t.qZA(),t._uU(15,". We have also prepared an introductory video tour of the new interface, please "),t.TgZ(16,"a",13),t._uU(17,"check it out"),t.qZA(),t._uU(18,"! "),t.TgZ(19,"nz-list-item-extra",14),t._UZ(20,"iframe",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-list-item"),t.TgZ(22,"nz-list-item-meta"),t.TgZ(23,"nz-list-item-meta-title"),t.TgZ(24,"span"),t._uU(25,"Pediatric Cancer Variants"),t.qZA(),t._UZ(26,"br"),t.TgZ(27,"span",11),t._uU(28," February 12th, 2021 "),t.qZA(),t.qZA(),t.qZA(),t._uU(29," Through support from the Childhood Cancer Data Initiative (CCDI), we have executed our initial phase of highlighting pediatric cancer variant content. This advanced search query displays childhood relevant data contained in CIViC. Stay tuned for more pediatric-focused features as we launch the first open-access searchable childhood-cancer-specific dataset. "),t._UZ(30,"nz-list-item-extra"),t.qZA(),t.TgZ(31,"nz-list-item"),t.TgZ(32,"nz-list-item-meta"),t.TgZ(33,"nz-list-item-meta-title"),t.TgZ(34,"span"),t._uU(35,"Explore CIViC Variants in ProteinPaint"),t.qZA(),t._UZ(36,"br"),t.TgZ(37,"span",11),t._uU(38,"June 29th, 2020"),t.qZA(),t.qZA(),t.qZA(),t._uU(39," St. Jude's ProteinPaint now incorporates a CIViC variant track, displaying CIViC curated data along with a variety of additional sources, and providing one-click access to CIViC's variant summaries. We've also added ProteinPaint links to our gene summaries. "),t.TgZ(40,"nz-list-item-extra"),t._UZ(41,"img",16),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(42,"nz-col",3),t.TgZ(43,"nz-card",17),t._UZ(44,"cvc-event-feed",18),t.qZA(),t.qZA(),t.qZA()),2&s){const o=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(41),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("showFilters",!1)("mode",o.feedMode)("pageSize",12)}}function Mt(s,a){1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-card",19),t.TgZ(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 drugs, 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(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}const Et=[{path:"",component:(()=>{class s{constructor(){this.feedMode=n.wJ2.Unscoped}ngOnInit(){}}return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-welcome"]],decls:5,vars:0,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[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%"],["nzItemLayout","vertical"],["nz-typography","","nzType","secondary"],["href","mailto:help@civicdb.org"],["href","https://www.youtube.com/watch?v=bpVkSP7qvgc","target","_blank"],[2,"padding-top","30px"],["width","250","src","https://www.youtube.com/embed/bpVkSP7qvgc","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture","allowfullscreen",""],["width","150","alt","logo","src","https://civicdb.org/assets/images/partners/protein-paint-integration.png"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"min-height","600px"],["tagDisplay","hideOrg",3,"showFilters","mode","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"]],template:function(o,r){1&o&&(t.TgZ(0,"nz-space",0),t.YNc(1,At,4,1,"nz-row",1),t.YNc(2,Pt,3,2,"nz-row",2),t.YNc(3,It,45,6,"nz-row",2),t.YNc(4,Mt,10,2,"nz-row",2),t.qZA())},directives:[A.NU,A.$1,Z.SK,Z.t3,et,m,xt,x.bd,b.n_,b.AA,b.yi,b.IO,rt.ZU,b.yw,St.o],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%]{color:#fff}"]}),s})()}];let kt=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[e.Bz.forChild(Et)],e.Bz]}),s})();var dt=i(6042),ht=i(5109),Ot=i(6559);let Nt=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[I.ez,Y.u5,e.Bz,_.WG,R.A2,Z.Jb,x.vh,u.aF,dt.sL,Ot.H0,rt.ZJ,c.PV,ht.s]]}),s})();var Ut=i(4292);let Dt=(()=>{class s{}return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[I.ez,Y.u5,_.WG,dt.sL,Z.Jb,nt,x.vh,b.Ph,u.aF,A.zf,R.A2,rt.ZJ,kt,Nt,Ut.t,ht.s]]}),s})()},6559:(j,U,i)=>{i.d(U,{ng:()=>L,H0:()=>T});var e=i(5e3),n=i(1721),t=i(655),A=i(9808),Z=i(226);const D=["nzType","avatar"];function E(g,m){if(1&g&&(e.TgZ(0,"div",5),e._UZ(1,"nz-skeleton-element",6),e.qZA()),2&g){const l=e.oxw(2);e.xp6(1),e.Q6J("nzSize",l.avatar.size||"default")("nzShape",l.avatar.shape||"circle")}}function k(g,m){if(1&g&&e._UZ(0,"h3",7),2&g){const l=e.oxw(2);e.Udp("width",l.toCSSUnit(l.title.width))}}function J(g,m){if(1&g&&e._UZ(0,"li"),2&g){const l=m.index,z=e.oxw(3);e.Udp("width",z.toCSSUnit(z.widthList[l]))}}function C(g,m){if(1&g&&(e.TgZ(0,"ul",8),e.YNc(1,J,1,2,"li",9),e.qZA()),2&g){const l=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",l.rowsList)}}function f(g,m){if(1&g&&(e.ynx(0),e.YNc(1,E,2,2,"div",1),e.TgZ(2,"div",2),e.YNc(3,k,1,2,"h3",3),e.YNc(4,C,2,1,"ul",4),e.qZA(),e.BQk()),2&g){const l=e.oxw();e.xp6(1),e.Q6J("ngIf",!!l.nzAvatar),e.xp6(2),e.Q6J("ngIf",!!l.nzTitle),e.xp6(1),e.Q6J("ngIf",!!l.nzParagraph)}}function P(g,m){1&g&&(e.ynx(0),e.Hsn(1),e.BQk())}const S=["*"];let V=(()=>{class g{constructor(){this.nzActive=!1,this.nzBlock=!1}}return g.\u0275fac=function(l){return new(l||g)},g.\u0275dir=e.lG2({type:g,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(l,z){2&l&&e.ekj("ant-skeleton-active",z.nzActive)("ant-skeleton-block",z.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,t.gn)([(0,n.yF)()],g.prototype,"nzBlock",void 0),g})(),B=(()=>{class g{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(l){if(l.nzSize&&"number"==typeof this.nzSize){const z=`${this.nzSize}px`;this.styleMap={width:z,height:z,"line-height":z}}else this.styleMap={}}}return g.\u0275fac=function(l){return new(l||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[e.TTD],attrs:D,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(l,z){1&l&&e._UZ(0,"span",0),2&l&&(e.ekj("ant-skeleton-avatar-square","square"===z.nzShape)("ant-skeleton-avatar-circle","circle"===z.nzShape)("ant-skeleton-avatar-lg","large"===z.nzSize)("ant-skeleton-avatar-sm","small"===z.nzSize),e.Q6J("ngStyle",z.styleMap))},directives:[A.PC],encapsulation:2,changeDetection:0}),g})(),L=(()=>{class g{constructor(l,z,N){this.cdr=l,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],z.addClass(N.nativeElement,"ant-skeleton")}toCSSUnit(l=""){return(0,n.WX)(l)}getTitleProps(){const l=!!this.nzAvatar,z=!!this.nzParagraph;let N="";return!l&&z?N="38%":l&&z&&(N="50%"),Object.assign({width:N},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const l=!!this.nzAvatar,z=!!this.nzTitle,N={};return(!l||!z)&&(N.width="61%"),N.rows=!l&&z?3:2,Object.assign(Object.assign({},N),this.getProps(this.nzParagraph))}getProps(l){return l&&"object"==typeof l?l:{}}getWidthList(){const{width:l,rows:z}=this.paragraph;let N=[];return l&&Array.isArray(l)?N=l:l&&!Array.isArray(l)&&(N=[],N[z-1]=l),N}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(l){(l.nzTitle||l.nzAvatar||l.nzParagraph)&&this.updateProps()}}return g.\u0275fac=function(l){return new(l||g)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq))},g.\u0275cmp=e.Xpm({type:g,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(l,z){2&l&&e.ekj("ant-skeleton-with-avatar",!!z.nzAvatar)("ant-skeleton-active",z.nzActive)("ant-skeleton-round",!!z.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[e.TTD],ngContentSelectors:S,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(l,z){1&l&&(e.F$t(),e.YNc(0,f,5,3,"ng-container",0),e.YNc(1,P,2,0,"ng-container",0)),2&l&&(e.Q6J("ngIf",z.nzLoading),e.xp6(1),e.Q6J("ngIf",!z.nzLoading))},directives:[B,A.O5,V,A.sg],encapsulation:2,changeDetection:0}),g})(),T=(()=>{class g{}return g.\u0275fac=function(l){return new(l||g)},g.\u0275mod=e.oAB({type:g}),g.\u0275inj=e.cJS({imports:[[Z.vT,A.ez]]}),g})()}}]);
\ No newline at end of file
diff --git a/server/public/6303.e5fe598bc8a5dfd2.js b/server/public/6303.e5fe598bc8a5dfd2.js
new file mode 100644
index 000000000..66dc20dac
--- /dev/null
+++ b/server/public/6303.e5fe598bc8a5dfd2.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6303],{8369:($,O,o)=>{o.d(O,{W:()=>v});var i=o(9808),e=o(325),t=o(8481),E=o(3610),S=o(647),P=o(7484),w=o(3098),Z=o(3309),k=o(4867),I=o(6286),M=o(8018),U=o(6949),C=o(9444),z=o(1894),A=o(8144),x=o(3580),J=o(8625),L=o(7026),Y=o(592),D=o(5e3);let W=(()=>{class p{}return p.\u0275fac=function(_){return new(_||p)},p.\u0275mod=D.oAB({type:p}),p.\u0275inj=D.cJS({imports:[[i.ez,e.Bz,U.WG,P.vh,w.q6,S.PV,z.Jb,A.zf,t.X,Z.U,x.Q,k.Q,I.y,M.e,C.s,Y.x,J.$L.forChild({formatter:{useClass:L.x,provide:J.KP}})]]}),p})(),v=(()=>{class p{}return p.\u0275fac=function(_){return new(_||p)},p.\u0275mod=D.oAB({type:p}),p.\u0275inj=D.cJS({imports:[[i.ez,e.Bz,t.X,E.$6,S.PV,W,C.s]]}),p})()},209:($,O,o)=>{o.d(O,{i:()=>v});var i=o(9808),e=o(325),t=o(8481),E=o(3610),S=o(647),P=o(7484),w=o(3309),Z=o(4867),k=o(1894),I=o(3098),M=o(8018),U=o(3580),C=o(6286),z=o(6949),A=o(8144),x=o(9444),J=o(9779),L=o(592),Y=o(3618),D=o(5e3);let W=(()=>{class p{}return p.\u0275fac=function(_){return new(_||p)},p.\u0275mod=D.oAB({type:p}),p.\u0275inj=D.cJS({imports:[[i.ez,e.Bz,z.WG,S.PV,P.vh,k.Jb,I.q6,t.X,A.zf,Y.ZJ,x.s,M.e,U.Q,w.U,Z.Q,C.y,J.s,L.x]]}),p})(),v=(()=>{class p{}return p.\u0275fac=function(_){return new(_||p)},p.\u0275mod=D.oAB({type:p}),p.\u0275inj=D.cJS({imports:[[i.ez,e.Bz,t.X,E.$6,S.PV,W,x.s]]}),p})()},5749:($,O,o)=>{o.d(O,{m:()=>st});var i=o(5e3),e=o(9808),t=o(325),E=o(8481),S=o(3610),P=o(4850),w=o(712),Z=o(7484),k=o(7881),I=o(1894),M=o(3098),U=o(6550),C=o(6949);const z=function(g,y){return{displayName:g,profileImagePath:y}};function A(g,y){if(1&g&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&g){const u=i.oxw().ngIf;i.Q6J("user",i.WLB(2,z,u.name,u.profileImagePath)),i.xp6(2),i.Oqu(u.name)}}function x(g,y){if(1&g&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&g){const u=y.ngIf;i.xp6(1),i.Oqu(u)}}function J(g,y){if(1&g&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&g){const u=i.oxw().ngIf;i.xp6(1),i.Q6J("href",u.url),i.xp6(1),i.hij(" ",u.name," ")}}function L(g,y){if(1&g&&(i.ynx(0),i.TgZ(1,"nz-card",4),i.YNc(2,A,3,5,"ng-template",null,5,i.W1O),i.TgZ(4,"nz-row"),i.TgZ(5,"nz-col",6),i.TgZ(6,"div",7),i.TgZ(7,"p",8),i.YNc(8,x,2,1,"span",9),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(9,"nz-descriptions",10),i.TgZ(10,"nz-descriptions-item",11),i.YNc(11,J,3,2,"ng-container",9),i.qZA(),i.qZA(),i.qZA(),i.BQk()),2&g){const u=y.ngIf,V=i.MAs(3);i.oxw();const F=i.MAs(4),ot=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",V),i.xp6(7),i.Q6J("ngIf",u.description)("ngIfElse",F),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",u.url)("ngIfElse",ot)}}function Y(g,y){1&g&&i._uU(0," Organization has not provided a description.\n")}function D(g,y){1&g&&i._uU(0," --\n")}let W=(()=>{class g{constructor(u){this.gql=u}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,P.U)(({data:u})=>u.organization))}}return g.\u0275fac=function(u){return new(u||g)(i.Y36(w.X5f))},g.\u0275cmp=i.Xpm({type:g,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(u,V){1&u&&(i.TgZ(0,"div",0),i.YNc(1,L,12,6,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA(),i.YNc(3,Y,1,0,"ng-template",null,2,i.W1O),i.YNc(5,D,1,0,"ng-template",null,3,i.W1O)),2&u&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,V.org$)))},directives:[e.O5,Z.bd,k.L,I.SK,I.t3,M.R7,M.uj,U.l],pipes:[C.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}"]}),g})();var v=o(647);function p(g,y){}function h(g,y){if(1&g&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,p,0,0,"ng-template",6),i.qZA(),i.BQk()),2&g){const u=i.oxw(),V=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",u.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",V)}}function _(g,y){}function Q(g,y){if(1&g&&i._UZ(0,"cvc-organization-popover",10),2&g){const u=i.oxw(3);i.Q6J("orgId",u.org.id)}}function q(g,y){if(1&g&&i.YNc(0,Q,1,1,"cvc-organization-popover",9),2&g){const u=i.oxw(2);i.Q6J("ngIf",u.enablePopover)}}function X(g,y){if(1&g&&(i.TgZ(0,"nz-tag",7),i.YNc(1,_,0,0,"ng-template",6),i.qZA(),i.YNc(2,q,1,1,"ng-template",null,8,i.W1O)),2&g){const u=i.MAs(3);i.oxw();const V=i.MAs(8);i.Q6J("nzPopoverContent",u),i.xp6(1),i.Q6J("ngTemplateOutlet",V)}}function K(g,y){}function tt(g,y){if(1&g&&(i.TgZ(0,"nz-tag"),i.YNc(1,K,0,0,"ng-template",6),i.qZA()),2&g){i.oxw();const u=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",u)}}function et(g,y){}function nt(g,y){if(1&g&&i.YNc(0,et,0,0,"ng-template",6),2&g){i.oxw();const u=i.MAs(2);i.Q6J("ngTemplateOutlet",u)}}function it(g,y){if(1&g&&(i._UZ(0,"i",11),i._uU(1)),2&g){const u=i.oxw();i.xp6(1),i.hij(" ",u.org.name,"\n")}}let st=(()=>{class g{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 g.\u0275fac=function(u){return new(u||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["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(u,V){if(1&u&&(i.YNc(0,h,3,2,"ng-container",0),i.YNc(1,X,4,2,"ng-template",null,1,i.W1O),i.YNc(3,tt,2,1,"ng-template",null,2,i.W1O),i.YNc(5,nt,1,1,"ng-template",null,3,i.W1O),i.YNc(7,it,2,1,"ng-template",null,4,i.W1O)),2&u){const F=i.MAs(6);i.Q6J("ngIf",V.linked)("ngIfElse",F)}},directives:[e.O5,t.yS,e.tP,E.j,S.lU,W,v.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),g})()},6286:($,O,o)=>{o.d(O,{y:()=>U});var i=o(9808),e=o(325),t=o(8481),E=o(3610),S=o(647),P=o(6949),w=o(7484),Z=o(3630),k=o(3098),I=o(5e3);let M=(()=>{class C{}return C.\u0275fac=function(A){return new(A||C)},C.\u0275mod=I.oAB({type:C}),C.\u0275inj=I.cJS({imports:[[i.ez,P.WG,S.PV,w.vh,Z.X,k.q6]]}),C})(),U=(()=>{class C{}return C.\u0275fac=function(A){return new(A||C)},C.\u0275mod=I.oAB({type:C}),C.\u0275inj=I.cJS({imports:[[i.ez,e.Bz,t.X,E.$6,S.PV,M]]}),C})()},592:($,O,o)=>{o.d(O,{x:()=>S});var i=o(9808),e=o(8481),t=o(647),E=o(5e3);let S=(()=>{class P{}return P.\u0275fac=function(Z){return new(Z||P)},P.\u0275mod=E.oAB({type:P}),P.\u0275inj=E.cJS({imports:[[i.ez,e.X,t.PV]]}),P})()},7677:($,O,o)=>{o.d(O,{G:()=>C});var i=o(9808),e=o(325),t=o(3610),E=o(8481),S=o(647),P=o(9779),w=o(4867),Z=o(7484),k=o(3098),I=o(6949),M=o(5e3);let U=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({imports:[[i.ez,I.WG,Z.vh,k.q6,P.s,w.Q]]}),z})(),C=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({imports:[[i.ez,e.Bz,t.$6,E.X,S.PV,U]]}),z})()},8664:($,O,o)=>{o.d(O,{I:()=>ot});var i=o(6654),e=o(5e3),t=o(9808),E=o(325),S=o(8481),P=o(3610),w=o(4850),Z=o(712),k=o(7484),I=o(647),M=o(3193),U=o(3098),C=o(6550),z=o(1894),A=o(8144),x=o(6949);function J(l,T){if(1&l&&(e._UZ(0,"i",13),e._uU(1)),2&l){const d=e.oxw().ngIf;e.xp6(1),e.hij(" ",d.name," ")}}function L(l,T){if(1&l&&e._UZ(0,"cvc-gene-tag",14),2&l){const d=e.oxw().ngIf;e.Q6J("enablePopover",!1)("gene",d.gene)}}function Y(l,T){1&l&&(e.TgZ(0,"span"),e._uU(1,",\xa0"),e.qZA())}function D(l,T){if(1&l&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,Y,2,0,"span",1),e.qZA()),2&l){const d=T.$implicit,N=T.last;e.xp6(1),e.hij(" ",d,""),e.xp6(1),e.Q6J("ngIf",!N)}}function W(l,T){if(1&l&&(e.TgZ(0,"nz-descriptions-item",15),e.YNc(1,D,3,2,"span",16),e.qZA()),2&l){const d=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",d.variantAliases)}}function v(l,T){if(1&l&&(e.TgZ(0,"nz-descriptions-item",17),e.TgZ(1,"cvc-link-tag",18),e._uU(2),e.qZA(),e.qZA()),2&l){const d=e.oxw().ngIf;e.xp6(1),e.MGl("href","https://reg.genome.network/allele/",d.alleleRegistryId,".html"),e.xp6(1),e.hij(" ",d.alleleRegistryId," ")}}function p(l,T){if(1&l&&(e.TgZ(0,"a",19),e.TgZ(1,"nz-tag",20),e._UZ(2,"i",21),e._uU(3),e.qZA(),e.qZA()),2&l){const d=e.oxw().ngIf;e.MGl("routerLink","/variants/",d.id,"/flags"),e.xp6(3),e.hij(" Flags (",d.flags.totalCount,") ")}}function h(l,T){if(1&l&&(e.TgZ(0,"a",19),e.TgZ(1,"nz-tag",22),e._UZ(2,"i",23),e._uU(3),e.qZA(),e.qZA()),2&l){const d=e.oxw().ngIf;e.MGl("routerLink","/variants/",d.id,"/revisions"),e.xp6(3),e.hij(" Revisions (",d.revisions.totalCount,") ")}}function _(l,T){if(1&l&&(e.TgZ(0,"a",19),e.TgZ(1,"nz-tag",24),e._UZ(2,"i",25),e._uU(3),e.qZA(),e.qZA()),2&l){const d=e.oxw().ngIf;e.MGl("routerLink","/variants/",d.id,"/comments"),e.xp6(3),e.hij(" Comments (",d.comments.totalCount,") ")}}function Q(l,T){if(1&l&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,J,2,1,"ng-template",null,3,e.W1O),e.YNc(4,L,1,2,"ng-template",null,4,e.W1O),e.TgZ(6,"nz-descriptions",5),e.YNc(7,W,2,1,"nz-descriptions-item",6),e.YNc(8,v,3,2,"nz-descriptions-item",7),e.TgZ(9,"nz-descriptions-item",8),e._uU(10),e.qZA(),e.qZA(),e.TgZ(11,"nz-row",9),e.TgZ(12,"nz-col",10),e.TgZ(13,"nz-space",11),e.YNc(14,p,4,2,"a",12),e.YNc(15,h,4,2,"a",12),e.YNc(16,_,4,2,"a",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&l){const d=T.ngIf,N=e.MAs(3),B=e.MAs(5);e.xp6(1),e.Q6J("nzTitle",N)("nzExtra",B),e.xp6(5),e.Q6J("nzColumn",2),e.xp6(1),e.Q6J("ngIf",d.variantAliases.length>0),e.xp6(1),e.Q6J("ngIf",d.alleleRegistryId),e.xp6(2),e.hij(" ",d.evidenceItems.totalCount," ")}}let q=(()=>{class l{constructor(d){this.gql=d}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,w.U)(({data:d})=>d.variant))}}return l.\u0275fac=function(d){return new(d||l)(e.Y36(Z.ZYZ))},l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(d,N){1&d&&(e.TgZ(0,"div",0),e.YNc(1,Q,17,6,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&d&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,N.variant$)))},directives:[t.O5,k.bd,I.Ls,M.H,U.R7,U.uj,t.sg,C.l,z.SK,z.t3,A.NU,A.$1,E.yS,S.j],pipes:[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}"]}),l})();function X(l,T){}function K(l,T){if(1&l&&(e.ynx(0),e.TgZ(1,"a",5),e.YNc(2,X,0,0,"ng-template",6),e.qZA(),e.BQk()),2&l){const d=e.oxw(),N=e.MAs(2);e.xp6(1),e.Q6J("routerLink",d.variant.link),e.xp6(1),e.Q6J("ngTemplateOutlet",N)}}function tt(l,T){}function et(l,T){if(1&l){const d=e.EpF();e.TgZ(0,"nz-tag",9),e.NdJ("nzOnClose",function(B){return e.CHM(d),e.oxw(2).itemClosed(B)}),e.YNc(1,tt,0,0,"ng-template",6),e.qZA()}if(2&l){e.oxw();const d=e.MAs(2),N=e.oxw(),B=e.MAs(8);e.Q6J("nzPopoverMouseEnterDelay",N.onCloseClicked?0:.5)("nzPopoverContent",d)("nzMode",N.onCloseClicked?"closeable":"default"),e.xp6(1),e.Q6J("ngTemplateOutlet",B)}}function nt(l,T){if(1&l&&e._UZ(0,"cvc-variant-popover",11),2&l){const d=e.oxw(3);e.Q6J("variantId",d.variant.id)}}function it(l,T){if(1&l&&e.YNc(0,nt,1,1,"cvc-variant-popover",10),2&l){const d=e.oxw(2);e.Q6J("ngIf",d.enablePopover)}}function st(l,T){if(1&l&&(e.YNc(0,et,2,4,"nz-tag",7),e.YNc(1,it,1,1,"ng-template",null,8,e.W1O)),2&l){const d=e.oxw(),N=e.MAs(4);e.Q6J("ngIf",d.enablePopover)("ngIfElse",N)}}function g(l,T){}function y(l,T){if(1&l){const d=e.EpF();e.TgZ(0,"nz-tag",12),e.NdJ("nzOnClose",function(B){return e.CHM(d),e.oxw().itemClosed(B)}),e.YNc(1,g,0,0,"ng-template",6),e.qZA()}if(2&l){const d=e.oxw(),N=e.MAs(8);e.Q6J("nzMode",d.onCloseClicked?"closeable":"default"),e.xp6(1),e.Q6J("ngTemplateOutlet",N)}}function u(l,T){}function V(l,T){if(1&l&&e.YNc(0,u,0,0,"ng-template",6),2&l){e.oxw();const d=e.MAs(2);e.Q6J("ngTemplateOutlet",d)}}function F(l,T){if(1&l&&(e._UZ(0,"i",13),e._uU(1)),2&l){const d=e.oxw();e.xp6(1),e.hij(" ",d.variant.name,"\n")}}let ot=(()=>{class l extends i.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[e.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(d,N){if(1&d&&(e.YNc(0,K,3,2,"ng-container",0),e.YNc(1,st,3,2,"ng-template",null,1,e.W1O),e.YNc(3,y,2,2,"ng-template",null,2,e.W1O),e.YNc(5,V,1,1,"ng-template",null,3,e.W1O),e.YNc(7,F,2,1,"ng-template",null,4,e.W1O)),2&d){const B=e.MAs(6);e.Q6J("ngIf",N.linked)("ngIfElse",B)}},directives:[t.O5,E.yS,t.tP,S.j,P.lU,q,I.Ls],styles:[""]}),l})()},4867:($,O,o)=>{o.d(O,{Q:()=>A});var i=o(9808),e=o(325),t=o(8481),E=o(647),S=o(3610),P=o(6949),w=o(7484),Z=o(1894),k=o(3098),I=o(8144),M=o(3309),U=o(3630),C=o(5e3);let z=(()=>{class x{}return x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=C.oAB({type:x}),x.\u0275inj=C.cJS({imports:[[i.ez,e.Bz,P.WG,w.vh,Z.Jb,k.q6,t.X,E.PV,I.zf,M.U,U.X]]}),x})(),A=(()=>{class x{}return x.\u0275fac=function(L){return new(L||x)},x.\u0275mod=C.oAB({type:x}),x.\u0275inj=C.cJS({imports:[[i.ez,e.Bz,t.X,S.$6,E.PV,z]]}),x})()},6528:($,O,o)=>{o.r(O),o.d(O,{WelcomeModule:()=>Ut});var i=o(325),e=o(712),t=o(5e3),E=o(8144),S=o(1894),P=o(226),w=o(925),Z=o(9808),k=o(655),I=o(1159),M=o(8929),U=o(3753),C=o(7625),z=o(9439),A=o(1721),x=o(4090);const J=["slickList"],L=["slickTrack"];function Y(s,a){}const D=function(s){return{$implicit:s}};function W(s,a){if(1&s){const n=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const m=t.CHM(n).index;return t.oxw(2).onLiClick(m)}),t.YNc(1,Y,0,0,"ng-template",10),t.qZA()}if(2&s){const n=a.index,r=t.oxw(2),c=t.MAs(8);t.ekj("slick-active",n===r.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzDotRender||c)("ngTemplateOutletContext",t.VKq(4,D,n))}}function v(s,a){if(1&s&&(t.TgZ(0,"ul",7),t.YNc(1,W,2,6,"li",8),t.qZA()),2&s){const n=t.oxw();t.ekj("slick-dots-top","top"===n.nzDotPosition)("slick-dots-bottom","bottom"===n.nzDotPosition)("slick-dots-left","left"===n.nzDotPosition)("slick-dots-right","right"===n.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",n.carouselContents)}}function p(s,a){if(1&s&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&s){const n=a.$implicit;t.xp6(1),t.Oqu(n+1)}}const h=["*"];let _=(()=>{class s{constructor(n,r){this.renderer=r,this._active=!1,this.el=n.nativeElement,this.renderer.addClass(n.nativeElement,"slick-slide")}set isActive(n){this._active=n,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(t.SBq),t.Y36(t.Qsj))},s.\u0275dir=t.lG2({type:s,selectors:[["","nz-carousel-content",""]],exportAs:["nzCarouselContent"]}),s})();class Q{constructor(a,n,r,c,m){this.cdr=n,this.renderer=r,this.platform=c,this.options=m,this.carouselComponent=a}get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}withCarouselContents(a){const n=this.carouselComponent;if(this.slickListEl=n.slickListEl,this.slickTrackEl=n.slickTrackEl,this.contents=(null==a?void 0:a.toArray())||[],this.length=this.contents.length,this.platform.isBrowser){const r=n.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else null==a||a.forEach((r,c)=>{0===c?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(a){}dispose(){}getFromToInBoundary(a,n){const r=this.maxIndex+1;return{from:(a+r)%r,to:(n+r)%r}}}class q extends Q{withCarouselContents(a){super.withCarouselContents(a),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((n,r)=>{this.renderer.setStyle(n.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(n.el,"position","relative"),this.renderer.setStyle(n.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(n.el,"left",-this.unitWidth*r+"px"),this.renderer.setStyle(n.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(a,n){const{to:r}=this.getFromToInBoundary(a,n),c=new M.xQ;return this.contents.forEach((m,j)=>{this.renderer.setStyle(m.el,"opacity",r===j?"1":"0")}),setTimeout(()=>{c.next(),c.complete()},this.carouselComponent.nzTransitionSpeed),c}dispose(){this.contents.forEach(a=>{this.renderer.setStyle(a.el,"transition",null),this.renderer.setStyle(a.el,"opacity",null),this.renderer.setStyle(a.el,"width",null),this.renderer.setStyle(a.el,"left",null)}),super.dispose()}}class X extends Q{constructor(a,n,r,c,m){super(a,n,r,c,m),this.isDragging=!1,this.isTransitioning=!1}get vertical(){return this.carouselComponent.vertical}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(a){super.withCarouselContents(a);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(c=>{this.renderer.setStyle(c.el,"position","relative"),this.renderer.setStyle(c.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(c.el,"height",`${this.unitHeight}px`)}))}switch(a,n){const{to:r}=this.getFromToInBoundary(a,n),c=new M.xQ;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(a,n):this.horizontalTransform(a,n),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(m=>{this.renderer.setStyle(m.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,c.next(),c.complete()},this.carouselComponent.nzTransitionSpeed),c.asObservable()}dragging(a){if(this.isTransitioning)return;const n=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareVerticalContext(!0):0===n&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-n*this.unitHeight+a.x}px, 0)`)):(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareHorizontalContext(!0):0===n&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-n*this.unitWidth+a.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(a,n){const{from:r,to:c}=this.getFromToInBoundary(a,n);this.length>2&&n!==c?(this.prepareVerticalContext(c2&&n!==c?(this.prepareHorizontalContext(c{class s{constructor(n,r,c,m,j,b,H,lt,ct,pt){this.nzConfigService=r,this.ngZone=c,this.renderer=m,this.cdr=j,this.platform=b,this.resizeService=H,this.nzDragService=lt,this.directionality=ct,this.customStrategies=pt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,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 M.xQ,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(f=>{var gt;this.pointerDelta=f,this.isDragging=!0,null===(gt=this.strategy)||void 0===gt||gt.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const f=this.pointerDelta?this.pointerDelta.x:0;Math.abs(f)>this.gestureRect.width/3?this.goTo(f>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.renderer.addClass(n.nativeElement,"ant-carousel"),this.el=n.nativeElement}set nzDotPosition(n){this._dotPosition=n,this.vertical="left"===n||"right"===n}get nzDotPosition(){return this._dotPosition}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,U.R)(this.slickListEl,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(n=>{const{keyCode:r}=n;r!==I.oh&&r!==I.SV||(n.preventDefault(),this.ngZone.run(()=>{r===I.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,C.R)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(n){const{nzEffect:r,nzDotPosition:c}=n;r&&!r.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),c&&!c.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(n){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting){const r=this.carouselContents.length,c=this.activeIndex,m=(n+r)%r;this.isTransiting=!0,this.nzBeforeChange.emit({from:c,to:m}),this.strategy.switch(this.activeIndex,n).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(n),this.isTransiting=!1}),this.markContentActive(m),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const n=this.customStrategies?this.customStrategies.find(r=>r.name===this.nzEffect):null;this.strategy=n?new n.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new X(this,this.cdr,this.renderer,this.platform):new q(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(n){this.activeIndex=n,this.carouselContents&&this.carouselContents.forEach((r,c)=>{r.isActive="rtl"===this.dir?n===this.carouselContents.length-1-c:n===c}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(t.SBq),t.Y36(z.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(w.t4),t.Y36(x.rI),t.Y36(x.Ml),t.Y36(P.Is,8),t.Y36(K,8))},s.\u0275cmp=t.Xpm({type:s,selectors:[["nz-carousel"]],contentQueries:function(n,r,c){if(1&n&&t.Suo(c,_,4),2&n){let m;t.iGM(m=t.CRH())&&(r.carouselContents=m)}},viewQuery:function(n,r){if(1&n&&(t.Gf(J,7),t.Gf(L,7)),2&n){let c;t.iGM(c=t.CRH())&&(r.slickList=c.first),t.iGM(c=t.CRH())&&(r.slickTrack=c.first)}},hostVars:4,hostBindings:function(n,r){2&n&&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",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[t.TTD],ngContentSelectors:h,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(n,r){1&n&&(t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1,2),t.NdJ("mousedown",function(m){return r.pointerDown(m)})("touchstart",function(m){return r.pointerDown(m)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.qZA(),t.YNc(6,v,2,9,"ul",5),t.qZA(),t.YNc(7,p,2,1,"ng-template",null,6,t.W1O)),2&n&&(t.ekj("slick-vertical","left"===r.nzDotPosition||"right"===r.nzDotPosition),t.xp6(6),t.Q6J("ngIf",r.nzDots))},directives:[Z.O5,Z.sg,Z.tP],encapsulation:2,changeDetection:0}),(0,k.gn)([(0,z.oS)()],s.prototype,"nzEffect",void 0),(0,k.gn)([(0,z.oS)(),(0,A.yF)()],s.prototype,"nzEnableSwipe",void 0),(0,k.gn)([(0,z.oS)(),(0,A.yF)()],s.prototype,"nzDots",void 0),(0,k.gn)([(0,z.oS)(),(0,A.yF)()],s.prototype,"nzAutoPlay",void 0),(0,k.gn)([(0,z.oS)(),(0,A.Rn)()],s.prototype,"nzAutoPlaySpeed",void 0),(0,k.gn)([(0,A.Rn)()],s.prototype,"nzTransitionSpeed",void 0),(0,k.gn)([(0,z.oS)()],s.prototype,"nzDotPosition",null),s})(),nt=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[P.vT,Z.ez,w.ud]]}),s})();var g=o(4850),y=o(7484),u=o(3868),V=o(4182),F=o(5249),ot=o(2683),l=o(647),T=o(6949);function d(s,a){if(1&s){const n=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(c){return t.CHM(n),t.oxw().statsType=c}),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(),t.qZA()}if(2&s){const n=t.oxw();t.Q6J("ngModel",n.statsType)}}function N(s,a){1&s&&t._UZ(0,"i",30)}function B(s,a){1&s&&t._UZ(0,"i",31)}function at(s,a){1&s&&t._UZ(0,"i",32)}function ut(s,a){1&s&&t._UZ(0,"i",33)}function mt(s,a){1&s&&t._UZ(0,"i",34)}function vt(s,a){1&s&&t._UZ(0,"i",35)}function zt(s,a){1&s&&t._UZ(0,"i",36)}function ft(s,a){1&s&&t._UZ(0,"i",37)}function Ct(s,a){1&s&&t._UZ(0,"i",38)}function Tt(s,a){1&s&&t._UZ(0,"i",39)}function yt(s,a){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",9),t.TgZ(2,"nz-col",10),t.TgZ(3,"a",11),t._UZ(4,"nz-statistic",12),t.ALo(5,"number"),t.YNc(6,N,1,0,"ng-template",null,13,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-col",10),t.TgZ(9,"a",14),t._UZ(10,"nz-statistic",12),t.ALo(11,"number"),t.YNc(12,B,1,0,"ng-template",null,15,t.W1O),t.qZA(),t.qZA(),t.TgZ(14,"nz-col",10),t.TgZ(15,"a",16),t._UZ(16,"nz-statistic",12),t.ALo(17,"number"),t.YNc(18,at,1,0,"ng-template",null,17,t.W1O),t.qZA(),t.qZA(),t.TgZ(20,"nz-col",10),t.TgZ(21,"a",18),t._UZ(22,"nz-statistic",12),t.ALo(23,"number"),t.YNc(24,ut,1,0,"ng-template",null,19,t.W1O),t.qZA(),t.qZA(),t.TgZ(26,"nz-col",10),t.TgZ(27,"a",20),t._UZ(28,"nz-statistic",12),t.ALo(29,"number"),t.YNc(30,mt,1,0,"ng-template",null,21,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"nz-row",9),t.TgZ(33,"nz-col",10),t.TgZ(34,"a",22),t._UZ(35,"nz-statistic",12),t.ALo(36,"number"),t.YNc(37,vt,1,0,"ng-template",null,23,t.W1O),t.qZA(),t.qZA(),t.TgZ(39,"nz-col",10),t.TgZ(40,"a",24),t._UZ(41,"nz-statistic",12),t.ALo(42,"number"),t.YNc(43,zt,1,0,"ng-template",null,25,t.W1O),t.qZA(),t.qZA(),t.TgZ(45,"nz-col",10),t.TgZ(46,"a",26),t._UZ(47,"nz-statistic",12),t.ALo(48,"number"),t.YNc(49,ft,1,0,"ng-template",null,27,t.W1O),t.qZA(),t.qZA(),t.TgZ(51,"nz-col",10),t._UZ(52,"nz-statistic",12),t.ALo(53,"number"),t.YNc(54,Ct,1,0,"ng-template",null,28,t.W1O),t.qZA(),t.TgZ(56,"nz-col",10),t._UZ(57,"nz-statistic",12),t.ALo(58,"number"),t.YNc(59,Tt,1,0,"ng-template",null,29,t.W1O),t.qZA(),t.qZA(),t.BQk()),2&s){const n=a.ngIf,r=t.MAs(7),c=t.MAs(13),m=t.MAs(19),j=t.MAs(25),b=t.MAs(31),H=t.MAs(38),lt=t.MAs(44),ct=t.MAs(50),pt=t.MAs(55),G=t.MAs(60),f=t.oxw();t.xp6(4),t.Q6J("nzTitle",f.statsType+" Assertions")("nzValue",t.lcZ(5,30,n.assertions[f.statsTypes[f.statsType]]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Evidence")("nzValue",t.lcZ(11,32,n.evidenceItems[f.statsTypes[f.statsType]]))("nzPrefix",c),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Genes")("nzValue",t.lcZ(17,34,n.genes[f.statsTypes[f.statsType]]))("nzPrefix",m),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Variants")("nzValue",t.lcZ(23,36,n.variants[f.statsTypes[f.statsType]]))("nzPrefix",j),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Contributors")("nzValue",t.lcZ(29,38,n.users[f.statsTypes[f.statsType]]))("nzPrefix",b),t.xp6(7),t.Q6J("nzTitle",f.statsType+" Diseases")("nzValue",t.lcZ(36,40,n.diseases[f.statsTypes[f.statsType]]))("nzPrefix",H),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Drugs")("nzValue",t.lcZ(42,42,n.drugs[f.statsTypes[f.statsType]]))("nzPrefix",lt),t.xp6(6),t.Q6J("nzTitle",f.statsType+" Sources")("nzValue",t.lcZ(48,44,n.sources[f.statsTypes[f.statsType]]))("nzPrefix",ct),t.xp6(5),t.Q6J("nzTitle",f.statsType+" Revisions")("nzValue",t.lcZ(53,46,n.revisions[f.statsTypes[f.statsType]]))("nzPrefix",pt),t.xp6(5),t.Q6J("nzTitle",f.statsType+" Comments")("nzValue",t.lcZ(58,48,n.comments[f.statsTypes[f.statsType]]))("nzPrefix",G)}}function xt(s,a){if(1&s&&(t.TgZ(0,"nz-row",9),t.TgZ(1,"nz-col",10),t._UZ(2,"nz-statistic",40),t.qZA(),t.TgZ(3,"nz-col",10),t._UZ(4,"nz-statistic",40),t.qZA(),t.TgZ(5,"nz-col",10),t._UZ(6,"nz-statistic",40),t.qZA(),t.TgZ(7,"nz-col",10),t._UZ(8,"nz-statistic",40),t.qZA(),t.TgZ(9,"nz-col",10),t._UZ(10,"nz-statistic",40),t.qZA(),t.qZA(),t.TgZ(11,"nz-row",9),t.TgZ(12,"nz-col",10),t._UZ(13,"nz-statistic",40),t.qZA(),t.TgZ(14,"nz-col",10),t._UZ(15,"nz-statistic",40),t.qZA(),t.TgZ(16,"nz-col",10),t._UZ(17,"nz-statistic",40),t.qZA(),t.TgZ(18,"nz-col",10),t._UZ(19,"nz-statistic",40),t.qZA(),t.TgZ(20,"nz-col",10),t._UZ(21,"nz-statistic",40),t.qZA(),t.qZA()),2&s){const n=t.oxw();t.xp6(2),t.Q6J("nzTitle",n.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Comments")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",n.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",n.statsType+" Comments")("nzValue","--")}}let _t=(()=>{class s{constructor(n){this.statsGql=n,this.statsTypes={Total:"allTime",Yearly:"newThisYear",Monthly:"newThisMonth",Weekly:"newThisWeek"},this.statsType="Total"}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,g.U)(n=>n.loading)),this.stats$=this.response$.pipe((0,g.U)(n=>n.data.timepointStats))}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(e.UWf))},s.\u0275cmp=t.Xpm({type:s,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","Total"],["nz-radio-button","","nzValue","Weekly"],["nz-radio-button","","nzValue","Monthly"],["nz-radio-button","","nzValue","Yearly"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["assertionIcon",""],["routerLink","/evidence"],["evidenceIcon",""],["routerLink","/genes"],["geneIcon",""],["routerLink","/variants"],["variantIcon",""],["routerLink","/users"],["userIcon",""],["routerLink","/diseases"],["diseaseIcon",""],["routerLink","/drugs"],["drugIcon",""],["routerLink","/sources"],["sourceIcon",""],["revisionsIcon",""],["commentIcon",""],["nz-icon","","nzType","civic:assertion"],["nz-icon","","nzType","civic:evidence"],["nz-icon","","nzType","civic:gene"],["nz-icon","","nzType","civic:variant"],["nz-icon","","nzType","civic:user"],["nz-icon","","nzType","civic:disease"],["nz-icon","","nzType","civic:intervention"],["nz-icon","","nzType","civic:source"],["nz-icon","","nzType","civic:revision"],["nz-icon","","nzType","civic:comment"],[3,"nzTitle","nzValue"]],template:function(n,r){if(1&n&&(t.TgZ(0,"nz-card",0),t.YNc(1,d,9,1,"ng-template",null,1,t.W1O),t.YNc(3,yt,61,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,xt,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&n){const c=t.MAs(2),m=t.MAs(6);t.Q6J("nzExtra",c),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",m)}},directives:[y.bd,u.Dg,V.JJ,V.On,u.Of,u.Bq,Z.O5,S.SK,S.t3,i.yS,F.my,ot.w,l.Ls],pipes:[T.fM,Z.JJ],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),s})();var R=o(3762),rt=o(3618),St=o(2011);function Zt(s,a){1&s&&(t.TgZ(0,"nz-carousel",5),t.TgZ(1,"div",6),t.TgZ(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.qZA(),t.TgZ(6,"div",6),t.TgZ(7,"h1"),t._uU(8," Discover supported clinical interpretations "),t._UZ(9,"br"),t._uU(10," of mutations related to cancer.\n"),t.qZA(),t.qZA(),t.TgZ(11,"div",6),t.TgZ(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.qZA(),t.TgZ(18,"div",6),t.TgZ(19,"h1"),t.TgZ(20,"a",7),t._uU(21,"Become an Editor! "),t._UZ(22,"br"),t._uU(23,"Help moderate updates to CIViC"),t.qZA(),t.qZA(),t.qZA(),t.qZA())}function At(s,a){1&s&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-space",0),t.YNc(3,Zt,24,0,"nz-carousel",4),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("nzSpan",24))}function Pt(s,a){1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t._UZ(2,"cvc-site-stats-card"),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function It(s,a){if(1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-card",9),t.TgZ(3,"nz-list",10),t.TgZ(4,"nz-list-item"),t.TgZ(5,"nz-list-item-meta"),t.TgZ(6,"nz-list-item-meta-title"),t.TgZ(7,"span"),t._uU(8,"Welcome to CIViC 2.0!"),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"span",11),t._uU(11," April 9th, 2022 "),t.qZA(),t.qZA(),t.qZA(),t._uU(12," CIViC 2.0 features a completely redesigned user interface and a more powerful GraphQL API. It provides many new ways to browse the knowledgebase while retaining the CIViC knowledge model you are already familiar with. Furthermore, existing links to CIViC entities will continue to function as before. If you have any questions, comments, or would like help adapting an existing integration to our new API, please email us at "),t.TgZ(13,"a",12),t._uU(14,"help@civicdb.org"),t.qZA(),t._uU(15,". We have also prepared an introductory video tour of the new interface, please "),t.TgZ(16,"a",13),t._uU(17,"check it out"),t.qZA(),t._uU(18,"! "),t.TgZ(19,"nz-list-item-extra",14),t._UZ(20,"iframe",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-list-item"),t.TgZ(22,"nz-list-item-meta"),t.TgZ(23,"nz-list-item-meta-title"),t.TgZ(24,"span"),t._uU(25,"Pediatric Cancer Variants"),t.qZA(),t._UZ(26,"br"),t.TgZ(27,"span",11),t._uU(28," February 12th, 2021 "),t.qZA(),t.qZA(),t.qZA(),t._uU(29," Through support from the Childhood Cancer Data Initiative (CCDI), we have executed our initial phase of highlighting pediatric cancer variant content. This advanced search query displays childhood relevant data contained in CIViC. Stay tuned for more pediatric-focused features as we launch the first open-access searchable childhood-cancer-specific dataset. "),t._UZ(30,"nz-list-item-extra"),t.qZA(),t.TgZ(31,"nz-list-item"),t.TgZ(32,"nz-list-item-meta"),t.TgZ(33,"nz-list-item-meta-title"),t.TgZ(34,"span"),t._uU(35,"Explore CIViC Variants in ProteinPaint"),t.qZA(),t._UZ(36,"br"),t.TgZ(37,"span",11),t._uU(38,"June 29th, 2020"),t.qZA(),t.qZA(),t.qZA(),t._uU(39," St. Jude's ProteinPaint now incorporates a CIViC variant track, displaying CIViC curated data along with a variety of additional sources, and providing one-click access to CIViC's variant summaries. We've also added ProteinPaint links to our gene summaries. "),t.TgZ(40,"nz-list-item-extra"),t._UZ(41,"img",16),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(42,"nz-col",3),t.TgZ(43,"nz-card",17),t._UZ(44,"cvc-event-feed",18),t.qZA(),t.qZA(),t.qZA()),2&s){const n=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(41),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("showFilters",!1)("mode",n.feedMode)("pageSize",12)}}function Et(s,a){1&s&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-card",19),t.TgZ(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 drugs, 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(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}const kt=[{path:"",component:(()=>{class s{constructor(){this.feedMode=e.wJ2.Unscoped}ngOnInit(){}}return s.\u0275fac=function(n){return new(n||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-welcome"]],decls:5,vars:0,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[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%"],["nzItemLayout","vertical"],["nz-typography","","nzType","secondary"],["href","mailto:help@civicdb.org"],["href","https://www.youtube.com/watch?v=bpVkSP7qvgc","target","_blank"],[2,"padding-top","30px"],["width","250","src","https://www.youtube.com/embed/bpVkSP7qvgc","title","YouTube video player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture","allowfullscreen",""],["width","150","alt","logo","src","https://civicdb.org/assets/images/partners/protein-paint-integration.png"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"min-height","600px"],["tagDisplay","hideOrg",3,"showFilters","mode","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"]],template:function(n,r){1&n&&(t.TgZ(0,"nz-space",0),t.YNc(1,At,4,1,"nz-row",1),t.YNc(2,Pt,3,2,"nz-row",2),t.YNc(3,It,45,6,"nz-row",2),t.YNc(4,Et,10,2,"nz-row",2),t.qZA())},directives:[E.NU,E.$1,S.SK,S.t3,et,_,_t,y.bd,R.n_,R.AA,R.yi,R.IO,rt.ZU,R.yw,St.o],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%]{color:#fff}"]}),s})()}];let Mt=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[i.Bz.forChild(kt)],i.Bz]}),s})();var dt=o(6042),ht=o(5109),Ot=o(6559);let Nt=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[Z.ez,V.u5,i.Bz,T.WG,F.A2,S.Jb,y.vh,u.aF,dt.sL,Ot.H0,rt.ZJ,l.PV,ht.s]]}),s})();var wt=o(4292);let Ut=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[Z.ez,V.u5,T.WG,dt.sL,S.Jb,nt,y.vh,R.Ph,u.aF,E.zf,F.A2,rt.ZJ,Mt,Nt,wt.t,ht.s]]}),s})()},6559:($,O,o)=>{o.d(O,{H0:()=>W});var i=o(5e3),e=o(9808),t=o(226);let W=(()=>{class v{}return v.\u0275fac=function(h){return new(h||v)},v.\u0275mod=i.oAB({type:v}),v.\u0275inj=i.cJS({imports:[[t.vT,e.ez]]}),v})()}}]);
\ No newline at end of file
diff --git a/server/public/681.507ad8cc8bfeed0c.js b/server/public/681.80f46e569d77955f.js
similarity index 97%
rename from server/public/681.507ad8cc8bfeed0c.js
rename to server/public/681.80f46e569d77955f.js
index 42db9ecd8..8ea52563f 100644
--- a/server/public/681.507ad8cc8bfeed0c.js
+++ b/server/public/681.80f46e569d77955f.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[681],{3220:(O,T,o)=>{o.d(T,{l:()=>P});var a=o(5e3),u=o(6715),n=o(9808),h=o(8481),v=o(3610);const m=function(g){return{"matched-tag":g}};function r(g,f){if(1&g&&(a.TgZ(0,"div",2),a.TgZ(1,"nz-tag"),a._uU(2),a.qZA(),a.qZA()),2&g){const c=f.$implicit,d=a.oxw();a.Q6J("ngClass",a.VKq(2,m,d.matchingText&&c.toLowerCase().includes(d.matchingText))),a.xp6(2),a.Oqu(c)}}function Z(g,f){if(1&g&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&g){const c=a.oxw(2);a.xp6(1),a.hij("",c.matchedHiddenCount," of ")}}function x(g,f){if(1&g){const c=a.EpF();a.TgZ(0,"nz-tag",5),a.NdJ("click",function(){return a.CHM(c),a.oxw().onOverflowClicked()}),a._uU(1," +"),a.YNc(2,Z,2,1,"span",6),a._uU(3),a.qZA()}if(2&g){const c=a.oxw(),d=a.MAs(5);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",d),a.xp6(2),a.Q6J("ngIf",c.matchedHiddenCount>0),a.xp6(1),a.hij("",c.hiddenCount," more ")}}function _(g,f){if(1&g&&(a.TgZ(0,"div",2),a.TgZ(1,"nz-tag"),a._uU(2),a.qZA(),a.qZA()),2&g){const c=f.$implicit,d=a.oxw(2);a.Q6J("ngClass",a.VKq(2,m,d.matchingText&&c.toLowerCase().includes(d.matchingText))),a.xp6(2),a.Oqu(c)}}function M(g,f){if(1&g&&(a.TgZ(0,"cvc-tag-list",0),a.YNc(1,_,3,4,"div",1),a.qZA()),2&g){const c=a.oxw();a.xp6(1),a.Q6J("ngForOf",c.hiddenTags)}}let P=(()=>{class g{constructor(){this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnInit(){this.calculateDisplayedTags()}calculateDisplayedTags(){var c,d,z,y;if(this.displayedTags=null===(c=this.tags)||void 0===c?void 0:c.slice(0,this.maxDisplayCount),this.hiddenTags=null===(d=this.tags)||void 0===d?void 0:d.slice(this.maxDisplayCount),this.hiddenCount=null===(z=this.hiddenTags)||void 0===z?void 0:z.length,this.matchingText=null===(y=this.matchingText)||void 0===y?void 0:y.toLowerCase(),this.matchingText&&this.hiddenTags){let I=this.matchingText;this.hiddenTags.forEach(E=>{E.toLowerCase().includes(I)&&(this.matchedHiddenCount+=1)})}}onOverflowClicked(){var c;this.maxDisplayCount=(null===(c=this.tags)||void 0===c?void 0:c.length)||0,this.calculateDisplayedTags()}}return g.\u0275fac=function(c){return new(c||g)},g.\u0275cmp=a.Xpm({type:g,selectors:[["cvc-plain-tag-overflow"]],inputs:{matchingText:"matchingText",tags:"tags",maxDisplayCount:"maxDisplayCount"},decls:6,vars:5,consts:[["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","click",4,"ngIf"],["additionalTagPopover",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent","click"],[4,"ngIf"]],template:function(c,d){1&c&&(a.TgZ(0,"cvc-tag-list",0),a.YNc(1,r,3,4,"div",1),a.TgZ(2,"div",2),a.YNc(3,x,4,4,"nz-tag",3),a.qZA(),a.YNc(4,M,2,1,"ng-template",null,4,a.W1O),a.qZA()),2&c&&(a.xp6(1),a.Q6J("ngForOf",d.displayedTags),a.xp6(1),a.Q6J("ngClass",a.VKq(3,m,d.matchedHiddenCount>0)),a.xp6(1),a.Q6J("ngIf",d.hiddenCount&&d.hiddenCount>0))},directives:[u.$,n.sg,n.mk,h.j,n.O5,v.lU],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}"]}),g})()},3968:(O,T,o)=>{o.d(T,{T:()=>m});var a=o(9808),u=o(897),n=o(8481),h=o(3610),v=o(5e3);let m=(()=>{class r{}return r.\u0275fac=function(x){return new(x||r)},r.\u0275mod=v.oAB({type:r}),r.\u0275inj=v.cJS({imports:[[a.ez,n.X,h.$6,u.$]]}),r})()},7946:(O,T,o)=>{o.d(T,{x:()=>x});var a=o(9808),u=o(897),n=o(8481),h=o(3610),v=o(8018),m=o(3580),r=o(9476),Z=o(5e3);let x=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=Z.oAB({type:_}),_.\u0275inj=Z.cJS({imports:[[a.ez,n.X,h.$6,u.$,v.e,m.Q,r.L]]}),_})()},3154:(O,T,o)=>{o.d(T,{_:()=>u});var a=o(712);function u(n){var h;switch(n.value){case"ascend":h=a.SrV.Asc;break;case"descend":h=a.SrV.Desc;break;default:return}return{column:n.key,direction:h}}},681:(O,T,o)=>{o.r(T),o.d(T,{GenesModule:()=>xn});var a=o(9808),u=o(325),n=o(5e3);let h=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-genes"]],decls:1,vars:0,template:function(e,i){1&e&&n._UZ(0,"router-outlet")},directives:[u.lC],styles:[""]}),t})();var v=o(1945),m=o(1894),r=o(1132),Z=o(4546),x=o(1047),_=o(647),M=o(3618),P=o(4182),g=o(6949),f=o(3309),c=o(7946),d=o(3968),z=o(6042),y=o(7484),I=o(404);let E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,P.u5,g.WG,r.HQ,Z.U5,x.o7,_.PV,M.ZJ,y.vh,z.sL,I.cg,f.U,c.x,d.T]]}),t})();var S=o(5630),G=o(8144);let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,S.D,E,z.sL,_.PV,G.zf,M.ZJ,v.KJ,m.Jb]]}),t})();var N=o(8992),U=o(2683),w=o(8929),b=o(4850),A=o(373),J=o(1059),L=o(2986),B=o(13),D=o(712),F=o(3154),R=o(3193),W=o(3220),H=o(392),K=o(2643);function Y(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.nameInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function $(t,s){if(1&t&&n.YNc(0,Y,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.nameInput)}}function j(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.aliasInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function V(t,s){if(1&t&&n.YNc(0,j,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.aliasInput)}}function q(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.diseaseInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function X(t,s){if(1&t&&n.YNc(0,q,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.diseaseInput)}}function k(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.drugInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function nn(t,s){if(1&t&&n.YNc(0,k,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.drugInput)}}function tn(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-gene-tag",29),n.qZA(),n.TgZ(3,"td"),n._UZ(4,"cvc-plain-tag-overflow",30),n.qZA(),n.TgZ(5,"td"),n._UZ(6,"cvc-tag-overflow",31),n.qZA(),n.TgZ(7,"td"),n._UZ(8,"cvc-tag-overflow",32),n.qZA(),n.TgZ(9,"td",33),n._uU(10),n.qZA(),n.TgZ(11,"td",33),n._uU(12),n.qZA(),n.TgZ(13,"td",33),n._uU(14),n.qZA(),n.qZA()),2&t){const e=s.$implicit,i=n.oxw(2);n.xp6(2),n.Q6J("gene",e),n.xp6(2),n.Q6J("tags",e.geneAliases)("matchingText",i.aliasInput),n.xp6(2),n.Q6J("tags",e.diseases)("matchingText",i.diseaseInput),n.xp6(2),n.Q6J("tags",e.drugs)("matchingText",i.drugInput),n.xp6(2),n.Oqu(e.variantCount),n.xp6(2),n.Oqu(e.evidenceItemCount),n.xp6(2),n.Oqu(e.assertionCount)}}function en(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"button",36),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(l.endCursor)}),n._uU(1),n.qZA()}if(2&t){const e=n.oxw(4);n.xp6(1),n.hij("Load ",e.fetchMorePageSize," More")}}function on(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td",34),n.YNc(2,en,2,1,"button",35),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function an(t,s){if(1&t&&(n.ynx(0),n.YNc(1,on,3,1,"tr",1),n.BQk()),2&t){const e=s.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function sn(t,s){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",4,5),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",6),n.NdJ("nzSortOrderChange",function(l){return n.CHM(e),n.oxw().onSortChanged(l)}),n.TgZ(6,"tr"),n.TgZ(7,"th",7),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",8),n._uU(10," Aliases "),n.qZA(),n.TgZ(11,"th",9),n._uU(12," Diseases "),n.qZA(),n.TgZ(13,"th",9),n._uU(14," Drugs "),n.qZA(),n.TgZ(15,"th",10),n._UZ(16,"i",11),n.qZA(),n.TgZ(17,"th",12),n._UZ(18,"i",13),n.qZA(),n.TgZ(19,"th",14),n._UZ(20,"i",15),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n.TgZ(22,"th"),n.TgZ(23,"nz-input-group",16),n.TgZ(24,"input",17),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().nameInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(25,$,1,1,"ng-template",null,18,n.W1O),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-input-group",16),n.TgZ(29,"input",19),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().aliasInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(30,V,1,1,"ng-template",null,20,n.W1O),n.qZA(),n.TgZ(32,"th"),n.TgZ(33,"nz-input-group",16),n.TgZ(34,"input",21),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().diseaseInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(35,X,1,1,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(37,"th"),n.TgZ(38,"nz-input-group",16),n.TgZ(39,"input",23),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().drugInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(40,nn,1,1,"ng-template",null,24,n.W1O),n.qZA(),n._UZ(42,"th"),n._UZ(43,"th"),n._UZ(44,"th"),n.qZA(),n.qZA(),n.TgZ(45,"tbody"),n.YNc(46,tn,15,10,"tr",25),n.YNc(47,an,2,1,"ng-container",26),n.qZA(),n.qZA(),n.BQk()}if(2&t){const e=n.MAs(2),i=n.MAs(26),l=n.MAs(31),p=n.MAs(36),zn=n.MAs(41),C=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,22,C.genes$))("nzLoading",n.lcZ(4,24,C.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",C.sortColumns.EntrezSymbol)("nzSortFn",!0),n.xp6(8),n.Q6J("nzColumnKey",C.sortColumns.VariantCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.EvidenceItemCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.AssertionCount)("nzSortFn",!0),n.xp6(4),n.Q6J("nzSuffix",i),n.xp6(1),n.Q6J("ngModel",C.nameInput),n.xp6(4),n.Q6J("nzSuffix",l),n.xp6(1),n.Q6J("ngModel",C.aliasInput),n.xp6(4),n.Q6J("nzSuffix",p),n.xp6(1),n.Q6J("ngModel",C.diseaseInput),n.xp6(4),n.Q6J("nzSuffix",zn),n.xp6(1),n.Q6J("ngModel",C.drugInput),n.xp6(7),n.Q6J("ngForOf",e.data),n.xp6(1),n.Q6J("ngrxLet",C.pageInfo$)}}function ln(t,s){1&t&&n._UZ(0,"i",37)}function cn(t,s){}function gn(t,s){if(1&t&&(n.ynx(0),n.YNc(1,cn,0,0,"ng-template",41),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function rn(t,s){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.cvcTitle," ")}}function dn(t,s){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" of ",e," filtered")}}function pn(t,s){if(1&t&&(n.TgZ(0,"span",42),n._uU(1),n.YNc(2,dn,2,1,"span",1),n._uU(3,") "),n.qZA()),2&t){const e=s.ngIf,i=n.oxw(2);n.xp6(1),n.AsE(" (",i.totalCount," total, showing ",i.visibleCount,""),n.xp6(1),n.Q6J("ngIf",i.totalCount&&e{class t{constructor(e){this.query=e,this.debouncedQuery=new w.xQ,this.sortColumns=D.Fvz,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.initialQueryArgs={first:this.initialPageSize},this.queryRef=this.query.watch(this.initialQueryArgs),this.data$=this.queryRef.valueChanges.pipe((0,b.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,A.j)("loading"),(0,J.O)(!0)),this.genes$=this.data$.pipe((0,A.j)("data","browseGenes","edges"),(0,b.U)(e=>e.map(i=>i.node))),this.pageInfo$=this.data$.pipe((0,A.j)("data","browseGenes","pageInfo")),this.filteredCount$=this.data$.pipe((0,A.j)("data","browseGenes","filteredCount")),this.data$.pipe((0,A.j)("data","browseGenes","totalCount")).pipe((0,L.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.pageCount$=this.data$.pipe((0,A.j)("data","browseGenes","pageCount"),(0,J.O)(0)),this.debouncedQuery.pipe((0,B.b)(500)).subscribe(e=>{var i;this.loadedPages=1,null===(i=this.queryRef)||void 0===i||i.refetch({entrezSymbol:this.nameInput,geneAlias:this.aliasInput,diseaseName:this.diseaseInput,drugName:this.drugInput})})}loadMore(e){var i;null===(i=this.queryRef)||void 0===i||i.fetchMore({variables:{first:this.fetchMorePageSize,after:e}}),this.loadedPages+=1}onSortChanged(e){var i;this.loadedPages=1,null===(i=this.queryRef)||void 0===i||i.refetch(Object.assign(Object.assign({},this.initialQueryArgs),{sortBy:(0,F._)(e)}))}onModelUpdated(e){this.debouncedQuery.next()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(D.q8c))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:7,vars:6,consts:[[3,"nzTitle"],[4,"ngIf"],["loadingTemplate",""],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["genesTable",""],[3,"nzSortOrderChange"],["nzWidth","10%",3,"nzColumnKey","nzSortFn"],["nzWidth","20%"],["nzWidth","25%"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:variant"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:assertion"],[3,"nzSuffix"],["type","text","nz-input","","placeholder","Search name",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["type","text","nz-input","","placeholder","Search alias",3,"ngModel","ngModelChange"],["aliasInputClearTpl",""],["type","text","nz-input","","placeholder","Search disease",3,"ngModel","ngModelChange"],["diseaseInputClearTpl",""],["type","text","nz-input","","placeholder","Search drug",3,"ngModel","ngModelChange"],["drugInputClearTpl",""],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["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"],[3,"gene"],[3,"tags","matchingText"],["tagType","disease",3,"tags","matchingText"],["tagType","drug",3,"tags","matchingText"],["nzRight",""],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","loading"],["nz-icon","","nzType","civic:gene"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,i){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,sn,48,26,"ng-container",1),n.ALo(2,"ngrxPush"),n.YNc(3,ln,1,0,"ng-template",null,2,n.W1O),n.qZA(),n.YNc(5,un,7,6,"ng-template",null,3,n.W1O)),2&e){const l=n.MAs(6);n.Q6J("nzTitle",l),n.xp6(1),n.Q6J("ngIf",n.VKq(4,hn,n.lcZ(2,2,i.data$)))}},directives:[y.bd,a.O5,r.N8,r.Om,r.$Z,r.Uo,r._C,r.qD,r.qn,I.SY,_.Ls,U.w,x.gB,x.ke,x.Zp,P.Fj,P.JJ,P.On,r.p0,a.sg,R.H,W.l,H.T,g.eJ,z.ix,K.dQ,a.tP,M.ZU],pipes:[g.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),t})();function fn(t,s){1&t&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Gene Model Docs "),n.qZA())}function Cn(t,s){1&t&&(n.TgZ(0,"a",15),n._UZ(1,"i",14),n._uU(2," View Gene Curation Docs "),n.qZA())}const Tn=[{path:"",component:h,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:gene"],["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/model/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Genes"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock",""]],template:function(e,i){1&e&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0),n.TgZ(2,"nz-page-header-content"),n.TgZ(3,"nz-row",1),n.TgZ(4,"nz-col",2),n._UZ(5,"i",3),n.qZA(),n.TgZ(6,"nz-col",4),n.TgZ(7,"h2"),n._uU(8,"Genes"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"CIViC Genes include a gene-level summary, a link to the Drug Gene Interation Database, and extensive gene details from MyGene.info."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,fn,3,0,"a",8),n.YNc(14,Cn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"nz-row"),n.TgZ(16,"nz-col",10),n.TgZ(17,"div",11),n._UZ(18,"cvc-genes-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&e&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[N.I,v.$O,v.u5,m.SK,m.t3,U.w,_.Ls,M.ZU,G.NU,G.$1,z.ix,mn],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{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}"]}),t})(),data:{breadcrumb:"Home"}},{path:":geneId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([o.e(6256),o.e(9001),o.e(2826),o.e(1679),o.e(2738),o.e(55),o.e(4292),o.e(2043),o.e(3482),o.e(5787),o.e(7259)]).then(o.bind(o,8252)).then(t=>t.GenesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([o.e(6256),o.e(3021),o.e(8592),o.e(3179)]).then(o.bind(o,3179)).then(t=>t.GenesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[u.Bz.forChild(Tn),Q],u.Bz]}),t})(),xn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,vn]]}),t})()}}]);
\ No newline at end of file
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[681],{3220:(O,T,o)=>{o.d(T,{l:()=>P});var a=o(5e3),u=o(6715),n=o(9808),h=o(8481),v=o(3610);const m=function(g){return{"matched-tag":g}};function r(g,f){if(1&g&&(a.TgZ(0,"div",2),a.TgZ(1,"nz-tag"),a._uU(2),a.qZA(),a.qZA()),2&g){const c=f.$implicit,d=a.oxw();a.Q6J("ngClass",a.VKq(2,m,d.matchingText&&c.toLowerCase().includes(d.matchingText))),a.xp6(2),a.Oqu(c)}}function Z(g,f){if(1&g&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&g){const c=a.oxw(2);a.xp6(1),a.hij("",c.matchedHiddenCount," of ")}}function x(g,f){if(1&g){const c=a.EpF();a.TgZ(0,"nz-tag",5),a.NdJ("click",function(){return a.CHM(c),a.oxw().onOverflowClicked()}),a._uU(1," +"),a.YNc(2,Z,2,1,"span",6),a._uU(3),a.qZA()}if(2&g){const c=a.oxw(),d=a.MAs(5);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",d),a.xp6(2),a.Q6J("ngIf",c.matchedHiddenCount>0),a.xp6(1),a.hij("",c.hiddenCount," more ")}}function _(g,f){if(1&g&&(a.TgZ(0,"div",2),a.TgZ(1,"nz-tag"),a._uU(2),a.qZA(),a.qZA()),2&g){const c=f.$implicit,d=a.oxw(2);a.Q6J("ngClass",a.VKq(2,m,d.matchingText&&c.toLowerCase().includes(d.matchingText))),a.xp6(2),a.Oqu(c)}}function M(g,f){if(1&g&&(a.TgZ(0,"cvc-tag-list",0),a.YNc(1,_,3,4,"div",1),a.qZA()),2&g){const c=a.oxw();a.xp6(1),a.Q6J("ngForOf",c.hiddenTags)}}let P=(()=>{class g{constructor(){this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnInit(){this.calculateDisplayedTags()}calculateDisplayedTags(){var c,d,z,y;if(this.displayedTags=null===(c=this.tags)||void 0===c?void 0:c.slice(0,this.maxDisplayCount),this.hiddenTags=null===(d=this.tags)||void 0===d?void 0:d.slice(this.maxDisplayCount),this.hiddenCount=null===(z=this.hiddenTags)||void 0===z?void 0:z.length,this.matchingText=null===(y=this.matchingText)||void 0===y?void 0:y.toLowerCase(),this.matchingText&&this.hiddenTags){let I=this.matchingText;this.hiddenTags.forEach(E=>{E.toLowerCase().includes(I)&&(this.matchedHiddenCount+=1)})}}onOverflowClicked(){var c;this.maxDisplayCount=(null===(c=this.tags)||void 0===c?void 0:c.length)||0,this.calculateDisplayedTags()}}return g.\u0275fac=function(c){return new(c||g)},g.\u0275cmp=a.Xpm({type:g,selectors:[["cvc-plain-tag-overflow"]],inputs:{matchingText:"matchingText",tags:"tags",maxDisplayCount:"maxDisplayCount"},decls:6,vars:5,consts:[["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","click",4,"ngIf"],["additionalTagPopover",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent","click"],[4,"ngIf"]],template:function(c,d){1&c&&(a.TgZ(0,"cvc-tag-list",0),a.YNc(1,r,3,4,"div",1),a.TgZ(2,"div",2),a.YNc(3,x,4,4,"nz-tag",3),a.qZA(),a.YNc(4,M,2,1,"ng-template",null,4,a.W1O),a.qZA()),2&c&&(a.xp6(1),a.Q6J("ngForOf",d.displayedTags),a.xp6(1),a.Q6J("ngClass",a.VKq(3,m,d.matchedHiddenCount>0)),a.xp6(1),a.Q6J("ngIf",d.hiddenCount&&d.hiddenCount>0))},directives:[u.$,n.sg,n.mk,h.j,n.O5,v.lU],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}"]}),g})()},3968:(O,T,o)=>{o.d(T,{T:()=>m});var a=o(9808),u=o(897),n=o(8481),h=o(3610),v=o(5e3);let m=(()=>{class r{}return r.\u0275fac=function(x){return new(x||r)},r.\u0275mod=v.oAB({type:r}),r.\u0275inj=v.cJS({imports:[[a.ez,n.X,h.$6,u.$]]}),r})()},7946:(O,T,o)=>{o.d(T,{x:()=>x});var a=o(9808),u=o(897),n=o(8481),h=o(3610),v=o(8018),m=o(3580),r=o(9476),Z=o(5e3);let x=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=Z.oAB({type:_}),_.\u0275inj=Z.cJS({imports:[[a.ez,n.X,h.$6,u.$,v.e,m.Q,r.L]]}),_})()},3154:(O,T,o)=>{o.d(T,{_:()=>u});var a=o(712);function u(n){var h;switch(n.value){case"ascend":h=a.SrV.Asc;break;case"descend":h=a.SrV.Desc;break;default:return}return{column:n.key,direction:h}}},681:(O,T,o)=>{o.r(T),o.d(T,{GenesModule:()=>xn});var a=o(9808),u=o(325),n=o(5e3);let h=(()=>{class t{constructor(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-genes"]],decls:1,vars:0,template:function(e,i){1&e&&n._UZ(0,"router-outlet")},directives:[u.lC],styles:[""]}),t})();var v=o(1945),m=o(1894),r=o(1132),Z=o(4546),x=o(1047),_=o(647),M=o(3618),P=o(4182),g=o(6949),f=o(3309),c=o(7946),d=o(3968),z=o(6042),y=o(7484),I=o(404);let E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,P.u5,g.WG,r.HQ,Z.U5,x.o7,_.PV,M.ZJ,y.vh,z.sL,I.cg,f.U,c.x,d.T]]}),t})();var S=o(5630),G=o(8144);let Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,S.D,E,z.sL,_.PV,G.zf,M.ZJ,v.KJ,m.Jb]]}),t})();var N=o(8992),U=o(2683),w=o(8929),b=o(4850),A=o(373),J=o(1059),L=o(2986),B=o(13),D=o(712),F=o(3154),R=o(3193),W=o(3220),H=o(392),K=o(2643);function Y(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.nameInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function $(t,s){if(1&t&&n.YNc(0,Y,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.nameInput)}}function j(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.aliasInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function V(t,s){if(1&t&&n.YNc(0,j,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.aliasInput)}}function q(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.diseaseInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function X(t,s){if(1&t&&n.YNc(0,q,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.diseaseInput)}}function k(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(3);return l.drugInput=void 0,l.onModelUpdated(void 0)}),n.qZA()}}function nn(t,s){if(1&t&&n.YNc(0,k,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.drugInput)}}function tn(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-gene-tag",29),n.qZA(),n.TgZ(3,"td"),n._UZ(4,"cvc-plain-tag-overflow",30),n.qZA(),n.TgZ(5,"td"),n._UZ(6,"cvc-tag-overflow",31),n.qZA(),n.TgZ(7,"td"),n._UZ(8,"cvc-tag-overflow",32),n.qZA(),n.TgZ(9,"td",33),n._uU(10),n.qZA(),n.TgZ(11,"td",33),n._uU(12),n.qZA(),n.TgZ(13,"td",33),n._uU(14),n.qZA(),n.qZA()),2&t){const e=s.$implicit,i=n.oxw(2);n.xp6(2),n.Q6J("gene",e),n.xp6(2),n.Q6J("tags",e.geneAliases)("matchingText",i.aliasInput),n.xp6(2),n.Q6J("tags",e.diseases)("matchingText",i.diseaseInput),n.xp6(2),n.Q6J("tags",e.drugs)("matchingText",i.drugInput),n.xp6(2),n.Oqu(e.variantCount),n.xp6(2),n.Oqu(e.evidenceItemCount),n.xp6(2),n.Oqu(e.assertionCount)}}function en(t,s){if(1&t){const e=n.EpF();n.TgZ(0,"button",36),n.NdJ("click",function(){n.CHM(e);const l=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(l.endCursor)}),n._uU(1),n.qZA()}if(2&t){const e=n.oxw(4);n.xp6(1),n.hij("Load ",e.fetchMorePageSize," More")}}function on(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td",34),n.YNc(2,en,2,1,"button",35),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function an(t,s){if(1&t&&(n.ynx(0),n.YNc(1,on,3,1,"tr",1),n.BQk()),2&t){const e=s.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function sn(t,s){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",4,5),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",6),n.NdJ("nzSortOrderChange",function(l){return n.CHM(e),n.oxw().onSortChanged(l)}),n.TgZ(6,"tr"),n.TgZ(7,"th",7),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",8),n._uU(10," Aliases "),n.qZA(),n.TgZ(11,"th",9),n._uU(12," Diseases "),n.qZA(),n.TgZ(13,"th",9),n._uU(14," Drugs "),n.qZA(),n.TgZ(15,"th",10),n._UZ(16,"i",11),n.qZA(),n.TgZ(17,"th",12),n._UZ(18,"i",13),n.qZA(),n.TgZ(19,"th",14),n._UZ(20,"i",15),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n.TgZ(22,"th"),n.TgZ(23,"nz-input-group",16),n.TgZ(24,"input",17),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().nameInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(25,$,1,1,"ng-template",null,18,n.W1O),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-input-group",16),n.TgZ(29,"input",19),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().aliasInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(30,V,1,1,"ng-template",null,20,n.W1O),n.qZA(),n.TgZ(32,"th"),n.TgZ(33,"nz-input-group",16),n.TgZ(34,"input",21),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().diseaseInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(35,X,1,1,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(37,"th"),n.TgZ(38,"nz-input-group",16),n.TgZ(39,"input",23),n.NdJ("ngModelChange",function(l){return n.CHM(e),n.oxw().drugInput=l})("ngModelChange",function(l){return n.CHM(e),n.oxw().onModelUpdated(l)}),n.qZA(),n.qZA(),n.YNc(40,nn,1,1,"ng-template",null,24,n.W1O),n.qZA(),n._UZ(42,"th"),n._UZ(43,"th"),n._UZ(44,"th"),n.qZA(),n.qZA(),n.TgZ(45,"tbody"),n.YNc(46,tn,15,10,"tr",25),n.YNc(47,an,2,1,"ng-container",26),n.qZA(),n.qZA(),n.BQk()}if(2&t){const e=n.MAs(2),i=n.MAs(26),l=n.MAs(31),p=n.MAs(36),zn=n.MAs(41),C=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,22,C.genes$))("nzLoading",n.lcZ(4,24,C.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",C.sortColumns.EntrezSymbol)("nzSortFn",!0),n.xp6(8),n.Q6J("nzColumnKey",C.sortColumns.VariantCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.EvidenceItemCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.AssertionCount)("nzSortFn",!0),n.xp6(4),n.Q6J("nzSuffix",i),n.xp6(1),n.Q6J("ngModel",C.nameInput),n.xp6(4),n.Q6J("nzSuffix",l),n.xp6(1),n.Q6J("ngModel",C.aliasInput),n.xp6(4),n.Q6J("nzSuffix",p),n.xp6(1),n.Q6J("ngModel",C.diseaseInput),n.xp6(4),n.Q6J("nzSuffix",zn),n.xp6(1),n.Q6J("ngModel",C.drugInput),n.xp6(7),n.Q6J("ngForOf",e.data),n.xp6(1),n.Q6J("ngrxLet",C.pageInfo$)}}function ln(t,s){1&t&&n._UZ(0,"i",37)}function cn(t,s){}function gn(t,s){if(1&t&&(n.ynx(0),n.YNc(1,cn,0,0,"ng-template",41),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function rn(t,s){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.cvcTitle," ")}}function dn(t,s){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" of ",e," filtered")}}function pn(t,s){if(1&t&&(n.TgZ(0,"span",42),n._uU(1),n.YNc(2,dn,2,1,"span",1),n._uU(3,") "),n.qZA()),2&t){const e=s.ngIf,i=n.oxw(2);n.xp6(1),n.AsE(" (",i.totalCount," total, showing ",i.visibleCount,""),n.xp6(1),n.Q6J("ngIf",i.totalCount&&e{class t{constructor(e){this.query=e,this.debouncedQuery=new w.xQ,this.sortColumns=D.Fvz,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.initialQueryArgs={first:this.initialPageSize},this.queryRef=this.query.watch(this.initialQueryArgs),this.data$=this.queryRef.valueChanges.pipe((0,b.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,A.j)("loading"),(0,J.O)(!0)),this.genes$=this.data$.pipe((0,A.j)("data","browseGenes","edges"),(0,b.U)(e=>e.map(i=>i.node))),this.pageInfo$=this.data$.pipe((0,A.j)("data","browseGenes","pageInfo")),this.filteredCount$=this.data$.pipe((0,A.j)("data","browseGenes","filteredCount")),this.data$.pipe((0,A.j)("data","browseGenes","totalCount")).pipe((0,L.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.pageCount$=this.data$.pipe((0,A.j)("data","browseGenes","pageCount"),(0,J.O)(0)),this.debouncedQuery.pipe((0,B.b)(500)).subscribe(e=>{var i;this.loadedPages=1,null===(i=this.queryRef)||void 0===i||i.refetch({entrezSymbol:this.nameInput,geneAlias:this.aliasInput,diseaseName:this.diseaseInput,drugName:this.drugInput})})}loadMore(e){var i;null===(i=this.queryRef)||void 0===i||i.fetchMore({variables:{first:this.fetchMorePageSize,after:e}}),this.loadedPages+=1}onSortChanged(e){var i;this.loadedPages=1,null===(i=this.queryRef)||void 0===i||i.refetch(Object.assign(Object.assign({},this.initialQueryArgs),{sortBy:(0,F._)(e)}))}onModelUpdated(e){this.debouncedQuery.next()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(D.q8c))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:7,vars:6,consts:[[3,"nzTitle"],[4,"ngIf"],["loadingTemplate",""],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["genesTable",""],[3,"nzSortOrderChange"],["nzWidth","10%",3,"nzColumnKey","nzSortFn"],["nzWidth","20%"],["nzWidth","25%"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:variant"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:assertion"],[3,"nzSuffix"],["type","text","nz-input","","placeholder","Search name",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["type","text","nz-input","","placeholder","Search alias",3,"ngModel","ngModelChange"],["aliasInputClearTpl",""],["type","text","nz-input","","placeholder","Search disease",3,"ngModel","ngModelChange"],["diseaseInputClearTpl",""],["type","text","nz-input","","placeholder","Search drug",3,"ngModel","ngModelChange"],["drugInputClearTpl",""],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["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"],[3,"gene"],[3,"tags","matchingText"],["tagType","disease",3,"tags","matchingText"],["tagType","drug",3,"tags","matchingText"],["nzRight",""],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","loading"],["nz-icon","","nzType","civic:gene"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,i){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,sn,48,26,"ng-container",1),n.ALo(2,"ngrxPush"),n.YNc(3,ln,1,0,"ng-template",null,2,n.W1O),n.qZA(),n.YNc(5,un,7,6,"ng-template",null,3,n.W1O)),2&e){const l=n.MAs(6);n.Q6J("nzTitle",l),n.xp6(1),n.Q6J("ngIf",n.VKq(4,hn,n.lcZ(2,2,i.data$)))}},directives:[y.bd,a.O5,r.N8,r.Om,r.$Z,r.Uo,r._C,r.qD,r.qn,I.SY,_.Ls,U.w,x.gB,x.ke,x.Zp,P.Fj,P.JJ,P.On,r.p0,a.sg,R.H,W.l,H.T,g.eJ,z.ix,K.dQ,a.tP,M.ZU],pipes:[g.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),t})();function fn(t,s){1&t&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Gene Model Docs "),n.qZA())}function Cn(t,s){1&t&&(n.TgZ(0,"a",15),n._UZ(1,"i",14),n._uU(2," View Gene Curation Docs "),n.qZA())}const Tn=[{path:"",component:h,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:gene"],["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/model/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Genes"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock",""]],template:function(e,i){1&e&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0),n.TgZ(2,"nz-page-header-content"),n.TgZ(3,"nz-row",1),n.TgZ(4,"nz-col",2),n._UZ(5,"i",3),n.qZA(),n.TgZ(6,"nz-col",4),n.TgZ(7,"h2"),n._uU(8,"Genes"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"CIViC Genes include a gene-level summary, a link to the Drug Gene Interation Database, and extensive gene details from MyGene.info."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,fn,3,0,"a",8),n.YNc(14,Cn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"nz-row"),n.TgZ(16,"nz-col",10),n.TgZ(17,"div",11),n._UZ(18,"cvc-genes-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&e&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[N.I,v.$O,v.u5,m.SK,m.t3,U.w,_.Ls,M.ZU,G.NU,G.$1,z.ix,mn],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{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}"]}),t})(),data:{breadcrumb:"Home"}},{path:":geneId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([o.e(6256),o.e(9001),o.e(2826),o.e(1679),o.e(2738),o.e(55),o.e(4292),o.e(2043),o.e(3482),o.e(5787),o.e(7259)]).then(o.bind(o,8252)).then(t=>t.GenesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([o.e(6256),o.e(1679),o.e(6875),o.e(4584),o.e(7893)]).then(o.bind(o,3887)).then(t=>t.GenesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[u.Bz.forChild(Tn),Q],u.Bz]}),t})(),xn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,vn]]}),t})()}}]);
\ No newline at end of file
diff --git a/server/public/6875.9a3f371a86467784.js b/server/public/6875.9a3f371a86467784.js
new file mode 100644
index 000000000..c9ee08a4f
--- /dev/null
+++ b/server/public/6875.9a3f371a86467784.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6875],{6789:(k,B,r)=>{r.d(B,{_:()=>A});var T=r(9808),b=r(7484),e=r(5109),x=r(5482),E=r(6949),I=r(19),t=r(8776),Z=r(647),v=r(404),M=r(5e3);let N=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=M.oAB({type:a}),a.\u0275inj=M.cJS({imports:[[T.ez,E.WG,t.X0,I.j,x.cD,Z.PV,v.cg,e.s]]}),a})(),A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=M.oAB({type:a}),a.\u0275inj=M.cJS({imports:[[T.ez,E.WG,t.X0,b.vh,I.j,x.cD,Z.PV,v.cg,N,e.s]]}),a})()},4889:(k,B,r)=>{r.d(B,{E:()=>A});var T=r(9808),b=r(4182),e=r(325),x=r(8776),E=r(304),I=r(6042),t=r(5e3),Z=r(2643),v=r(2683);const N={name:"cancel-button",component:(()=>{class a extends x.fS{constructor(){super(...arguments),this.redirectPath="/"}ngOnInit(){var S,C;(null===(S=this.field.templateOptions)||void 0===S?void 0:S.redirectPath)&&(this.redirectPath=null===(C=this.field.templateOptions)||void 0===C?void 0:C.redirectPath)}}return a.\u0275fac=function(){let z;return function(C){return(z||(z=t.n5z(a)))(C||a)}}(),a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-cancel-button"]],features:[t.qOj],decls:2,vars:1,consts:[["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"routerLink"]],template:function(S,C){1&S&&(t.TgZ(0,"button",0),t._uU(1,"Cancel"),t.qZA()),2&S&&t.Q6J("routerLink",C.redirectPath)},directives:[I.ix,Z.dQ,v.w,e.rH],styles:[".cancel-button[_ngcontent-%COMP%]{float:left}"]}),a})()};let A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[T.ez,b.u5,b.UX,I.sL,e.Bz,E.F,x.X0.forChild({types:[N]})]]}),a})()},8979:(k,B,r)=>{r.d(B,{N:()=>N});var T=r(9808),b=r(8776),e=r(5e3),x=r(6042),E=r(2643),I=r(2683);const Z={name:"cvc-multi-field-add-btn",component:(()=>{class A extends b.fS{constructor(){super()}}return A.\u0275fac=function(z){return new(z||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["cvc-multi-field-add-btn-type"]],features:[e.qOj],decls:2,vars:2,consts:[["type","submit","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"disabled"]],template:function(z,S){1&z&&(e.TgZ(0,"button",0),e._uU(1),e.qZA()),2&z&&(e.Q6J("disabled",S.to.disabled),e.xp6(1),e.Oqu(S.to.label))},directives:[x.ix,E.dQ,I.w],styles:[""],encapsulation:2,changeDetection:0}),A})()};var v=r(9139),M=r(4546);let N=(()=>{class A{}return A.\u0275fac=function(z){return new(z||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[T.ez,v.u,b.X0.forChild({types:[Z]}),M.U5,x.sL]]}),A})()},8390:(k,B,r)=>{r.d(B,{N:()=>F});var T=r(9808),b=r(4182),e=r(8776),x=r(4546),E=r(1047),I=r(647),t=r(5e3),Z=r(1894),v=r(8481),M=r(2683),N=r(6042),A=r(2643);function a(l,p){if(1&l){const d=t.EpF();t.TgZ(0,"nz-form-item"),t.TgZ(1,"nz-form-control",3),t.TgZ(2,"nz-tag",4),t.NdJ("click",function(Y){return t.CHM(d),t.oxw().addField(Y)}),t._UZ(3,"i",5),t._uU(4),t.qZA(),t.qZA(),t.qZA()}if(2&l){const d=t.oxw();t.xp6(1),t.Q6J("nzValidateStatus",d.errorState),t.xp6(3),t.hij(" ",d.to.addText," ")}}function z(l,p){if(1&l){const d=t.EpF();t.TgZ(0,"nz-tag",4),t.NdJ("click",function(Y){return t.CHM(d),t.oxw(4).addField(Y)}),t._UZ(1,"i",5),t._uU(2),t.qZA()}if(2&l){const d=t.oxw(4);t.xp6(2),t.hij(" ",d.to.addText," ")}}function S(l,p){if(1&l&&(t.TgZ(0,"div",11),t.YNc(1,z,3,1,"nz-tag",12),t.qZA()),2&l){const d=t.oxw(2).$implicit,w=t.oxw();t.xp6(1),t.Q6J("ngIf",0==w.to.maxCount||w.to.maxCount>d.model.length)}}function C(l,p){if(1&l){const d=t.EpF();t.ynx(0),t.TgZ(1,"nz-tag",8),t.TgZ(2,"i",9),t.NdJ("click",function(){t.CHM(d);const Y=t.oxw().index;return t.oxw().remove(Y)}),t.qZA(),t.qZA(),t.YNc(3,S,2,1,"div",10),t.BQk()}if(2&l){const d=t.oxw().last;t.xp6(3),t.Q6J("ngIf",d)}}function j(l,p){if(1&l){const d=t.EpF();t.ynx(0),t.TgZ(1,"div",13),t.TgZ(2,"button",14),t.NdJ("click",function(){t.CHM(d);const Y=t.oxw().index;return t.oxw().remove(Y)}),t._UZ(3,"i",15),t.qZA(),t.qZA(),t.BQk()}}function V(l,p){if(1&l&&(t.TgZ(0,"nz-form-item"),t.TgZ(1,"div",6),t.TgZ(2,"div",0),t._UZ(3,"formly-field",7),t.qZA(),t.YNc(4,C,4,1,"ng-container",1),t.YNc(5,j,4,0,"ng-container",1),t.qZA(),t.qZA()),2&l){const d=p.$implicit,w=p.index;t.xp6(2),t.Q6J("ngClass",d.model[w]?"selected-field-col":"default-field-col"),t.xp6(1),t.Q6J("field",d),t.xp6(1),t.Q6J("ngIf",d.model[w]),t.xp6(1),t.Q6J("ngIf",!d.model[w])}}const L=function(l){return{hidden:l}},K={name:"multi-field",component:(()=>{class l extends e.hv{constructor(){super(),this.defaultOptions={templateOptions:{maxCount:0}}}get errorState(){return this.showError?"error":""}addField(d){d&&d.preventDefault(),this.add()}ngOnInit(){this.to.add=this.add.bind(this),this.to.remove=this.remove.bind(this)}}return l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-multi-field-type"]],features:[t.qOj],decls:3,vars:5,consts:[[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzValidateStatus"],["nzNoAnimation","",1,"editable-tag",3,"click"],["nz-icon","","nzType","plus"],["ngClass","field-display"],[3,"field"],[1,"close-tag"],["nz-icon","","nzType","close",3,"click"],["class","field-add-btn",4,"ngIf"],[1,"field-add-btn"],["class","editable-tag","nzNoAnimation","",3,"click",4,"ngIf"],[1,"field-cancel-btn"],["nz-button","","nzBlock","","nzType","default","nzSize","small","nzDanger","",3,"click"],["nz-icon","","nzType","close"]],template:function(d,w){1&d&&(t.TgZ(0,"div",0),t.YNc(1,a,5,2,"nz-form-item",1),t.YNc(2,V,6,4,"nz-form-item",2),t.qZA()),2&d&&(t.Q6J("ngClass",t.VKq(3,L,!0===w.to.hidden)),t.xp6(1),t.Q6J("ngIf",0===(null==w.field.fieldGroup?null:w.field.fieldGroup.length)),t.xp6(1),t.Q6J("ngForOf",w.field.fieldGroup))},directives:[T.mk,T.O5,Z.SK,x.Nx,Z.t3,x.Fd,v.j,I.Ls,M.w,T.sg,e.cw,N.ix,A.dQ],styles:["[_nghost-%COMP%]{display:block}nz-form-item[_ngcontent-%COMP%]{margin-bottom:.25em}nz-form-item[_ngcontent-%COMP%]:last-child{margin-bottom:16px}.hidden[_ngcontent-%COMP%]{display:none}.editable-tag[_ngcontent-%COMP%]{background:#ffffff;border-style:dashed;cursor:pointer}.field-display[_ngcontent-%COMP%]{margin-top:.5em;display:inline-block} > nz-form-item[_ngcontent-%COMP%]{margin-bottom:0}.selected-field-col[_ngcontent-%COMP%]{display:inline-block}.default-field-col[_ngcontent-%COMP%]{display:inline-block;width:calc(100% - (2*(10px + 1em)))}.field-add-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em}.close-tag[_ngcontent-%COMP%]{margin-left:-9px;cursor:pointer}.field-cancel-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em;width:calc(20px + 1em)}"]}),l})()};function U(l,p){if(1&l&&t._UZ(0,"formly-validation-message",3),2&l){const d=t.oxw();t.Q6J("field",d.field)}}const s={name:"cvc-field-errors",component:(()=>{class l extends e.n2{get errorState(){return this.showError?"error":""}}return l.\u0275fac=function(){let p;return function(w){return(p||(p=t.n5z(l)))(w||l)}}(),l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-field-errors-wrapper"]],features:[t.qOj],decls:7,vars:3,consts:[[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"field"]],template:function(d,w){if(1&d&&(t.TgZ(0,"nz-form-control",0),t.TgZ(1,"p"),t._uU(2),t.qZA(),t.GkF(3,null,1),t.YNc(5,U,1,1,"ng-template",null,2,t.W1O),t.qZA()),2&d){const Y=t.MAs(6);t.Q6J("nzValidateStatus",w.errorState)("nzErrorTip",Y),t.xp6(2),t.hij("errorState: ",w.errorState,"")}},directives:[Z.t3,x.Fd,e.u_],encapsulation:2,changeDetection:0}),l})()};let i=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[T.ez,b.UX,x.U5,e.X0.forChild({wrappers:[s]})]]}),l})();var g=r(5109);let F=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[T.ez,b.u5,e.X0.forChild({types:[K]}),b.UX,i,x.U5,E.o7,I.PV,N.sL,g.s,v.X]]}),l})()},3773:(k,B,r)=>{r.d(B,{g:()=>pe});var T=r(9808),b=r(8776),e=r(5e3),x=r(4182),E=r(712),I=r(6530),t=r(444);const Z={sourceType:void 0,citationId:void 0};let v=(()=>{class o{constructor(){this.sourceSelected=new e.vpe,this.model=Z,this.form=new x.cw({}),this.options={},this.fields=[{key:"id"},{key:"citation",defaultValue:""},{key:"sourceType",type:"select",className:"source-type-field",defaultValue:E.yic.Pubmed,templateOptions:{required:!0,placeholder:"Select Type",options:(0,t.o6)(E.yic).map((n,u)=>({value:n,label:(0,I.c)(n)}))}},{key:"citationId",className:"citation-id-field",type:"source-selector-typeahead",templateOptions:{maxLength:10,required:!0,triggerParentSubmit:()=>{this.onSubmit()}},expressionProperties:{"templateOptions.disabled":"!model.sourceType","templateOptions.placeholder":'!model.sourceType ? "Select source type before searching" : "Search " + model.sourceType + " sources"',"templateOptions.sourceType":"model.sourceType","templateOptions.sourceTypeKey":n=>{if(n.sourceType)return(0,t.o6)(E.yic).getKeyOrThrow(n.sourceType)}}},{type:"cvc-multi-field-add-btn",className:"add-button",templateOptions:{label:"Add Source"},expressionProperties:{"templateOptions.disabled":"!model.citationId"}}]}ngOnInit(){}onSubmit(){console.log("source-select form submitted."),this.sourceSelected.emit(this.model)}ngOnDestroy(){console.log("source-selector onDestroy called.")}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector"]],outputs:{sourceSelected:"sourceSelected"},decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[1,"formly-form",3,"model","fields","options","form","modelChange"]],template:function(n,u){1&n&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return u.onSubmit()}),e.TgZ(1,"formly-form",1),e.NdJ("modelChange",function(Q){return u.model=Q}),e.qZA(),e.qZA()),2&n&&(e.Q6J("formGroup",u.form),e.xp6(1),e.Q6J("model",u.model)("fields",u.fields)("options",u.options)("form",u.form))},directives:[x._Y,x.JL,x.sg,b.T7],styles:[":host{display:block}cvc-source-input .formly-form{width:100%}cvc-source-input .source-type-field{display:inline-block;width:10em}cvc-source-input .citation-id-field{display:inline-block;margin-left:.5em;width:calc(100% - 19em)}cvc-source-input .add-button{display:inline-block;margin-left:.5em;width:8em}\n"],encapsulation:2}),o})();var M=r(6906);function N(o,m){if(1&o){const n=e.EpF();e.ynx(0),e.TgZ(1,"cvc-source-selector",2),e.NdJ("sourceSelected",function(_){return e.CHM(n),e.oxw().onSourceSelected(_)}),e.qZA(),e.BQk()}}function A(o,m){if(1&o&&e._UZ(0,"cvc-source-tag",3),2&o){const n=e.oxw();e.Q6J("source",n.formControl.value)}}const z={name:"source-input",component:(()=>{class o extends b.fS{constructor(){super()}onSourceSelected(n){console.log(n),this.formControl.setValue(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["sourceListItem",""],[3,"sourceSelected"],[3,"source"]],template:function(n,u){if(1&n&&(e.YNc(0,N,2,0,"ng-container",0),e.YNc(1,A,1,1,"ng-template",null,1,e.W1O)),2&n){const _=e.MAs(2);e.Q6J("ngIf",!(null!=u.formControl.value&&u.formControl.value.id))("ngIfElse",_)}},directives:[T.O5,v,M.T],styles:[""],changeDetection:0}),o})()};var S=r(9139),C=r(6042),j=r(8054),V=r(537),L=r(8144),$=r(2359),K=r(1894),U=r(4546),W=r(822),s=r(2643),i=r(2683);function g(o,m){if(1&o&&e._UZ(0,"nz-alert",6),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function F(o,m){if(1&o&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function l(o,m){1&o&&(e.ynx(0),e.YNc(1,g,1,1,"nz-alert",4),e.YNc(2,F,3,1,"ng-template",null,5,e.W1O),e.BQk())}function p(o,m){if(1&o&&e._UZ(0,"nz-alert",9),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function d(o,m){if(1&o&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function w(o,m){1&o&&(e.ynx(0),e.YNc(1,p,1,1,"nz-alert",7),e.YNc(2,d,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Y(o,m){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function D(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(_){return e.CHM(n),e.oxw(3).onCreateSourceStub(_)}),e._uU(1," Create\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 CIViC Source "),e.qZA()}if(2&o){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function ne(o,m){1&o&&(e.ynx(0),e.YNc(1,D,5,2,"button",11),e.BQk())}function oe(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(_){return e.CHM(n),e.oxw(3).onAcceptSource(_)}),e._uU(1," Add Source to List "),e.qZA()}}function re(o,m){1&o&&(e.ynx(0),e.YNc(1,oe,2,0,"button",13),e.BQk())}function y(o,m){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,l,4,0,"ng-container",3),e.YNc(3,w,4,0,"ng-container",3),e.YNc(4,Y,2,1,"nz-form-item",3),e.YNc(5,ne,2,0,"ng-container",3),e.YNc(6,re,2,0,"ng-container",3),e.qZA(),e.BQk()),2&o){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function h(o,m){if(1&o&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function c(o,m){1&o&&(e.ynx(0),e.YNc(1,h,3,1,"span",15),e.BQk())}function f(o,m){if(1&o&&e._uU(0),2&o){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function O(o,m){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,f,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&o){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function P(o,m){1&o&&(e.ynx(0),e.YNc(1,O,4,1,"span",18),e.BQk())}function J(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(_){return e.CHM(n),e.oxw(2).onExistenceQuery(_)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function X(o,m){if(1&o&&(e.TgZ(0,"nz-space",2),e.YNc(1,c,2,0,"ng-container",3),e.YNc(2,P,2,0,"ng-container",3),e.YNc(3,J,4,3,"button",11),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let G=(()=>{class o{constructor(n,u,_){this.existenceCheckQuery=n,this.createSourceStubQuery=u,this.changeDetectorRef=_,this.modelUpdate=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceError=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,t.o6)(E.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,V.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:u}})=>{null!==u?this.foundCitation=u:(this.showPrompt=!1,this.existenceFail=!0)},error:u=>{this.showPrompt=!1,this.existenceError=u.graphQLErrors.map(_=>_.message)},complete:()=>{this.existenceError=[]}})}onCreateSourceStub(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,V.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:u})=>{var _;console.log(u);const Q=null===(_=null==u?void 0:u.addRemoteCitation)||void 0===_?void 0:_.newSource;this.sourceStub=Q,this.createSuccess=!0},error:u=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=u.graphQLErrors.map(_=>_.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),console.log("source accepted");const u=Object.assign(Object.assign({},this.model),{id:this.sourceStub.id,citation:this.foundCitation,citationId:this.citationId});this.modelUpdate.emit(u)}ngAfterContentInit(){console.log("model")}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(E.fpJ),e.Y36(E.JQ3),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{modelUpdate:"modelUpdate",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,u){if(1&n&&(e.YNc(0,y,7,5,"ng-container",0),e.YNc(1,X,4,2,"ng-template",null,1,e.W1O)),2&n){const _=e.MAs(2);e.Q6J("ngIf",u.foundCitation)("ngIfElse",_)}},directives:[T.O5,L.NU,L.$1,$.r,K.SK,U.Nx,W.V,C.ix,s.dQ,i.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),o})();function H(o,m){if(1&o&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&o){const n=m.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function R(o,m){if(1&o&&(e.TgZ(0,"div",5),e._uU(1," Citation: "),e.TgZ(2,"span",6),e._uU(3),e.qZA(),e.qZA()),2&o){const n=e.oxw();e.xp6(3),e.hij(" ",n.model.citation," ")}}function te(o,m){if(1&o&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.hij(" Enter a ",n.to.sourceTypeKey," citation ID to search CIViC sources ")}}function q(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"cvc-source-loader",10),e.NdJ("modelUpdate",function(_){return e.CHM(n),e.oxw(2).onModelUpdated(_)})("sourceTypeChange",function(_){return e.CHM(n),e.oxw(2).model.sourceType=_})("citationIdChange",function(_){return e.CHM(n),e.oxw(2).to.fieldValue=_}),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.fieldValue)}}function ee(o,m){if(1&o&&(e.ynx(0,7),e.YNc(1,te,2,1,"div",8),e.YNc(2,q,1,3,"cvc-source-loader",9),e.BQk()),2&o){const n=e.oxw();e.Q6J("ngSwitch",n.to.fieldLength>0&&n.to.fieldLength>=n.to.minLengthSearch),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const se={name:"source-selector-typeahead",component:(()=>{class o extends b.fS{constructor(n,u){super(),this.sourceTypeaheadQuery=n,this.changeDetectorRef=u,this.selectedValue=null,this.nzFilterOption=()=>!0,this.defaultOptions={templateOptions:{placeholder:"Search",sourceType:void 0,showArrow:!1,onSearch:()=>{},filterOption:()=>{},modelChange:()=>{},triggerParentSubmit:()=>{},minLengthSearch:1,fieldLength:0,fieldValue:"",optionList:[]}}}ngAfterViewInit(){this.to.filterOption=()=>!0,this.to.modelChange=n=>{if(this.to.optionList.length>0){const{source:u}=this.to.optionList.find(_=>_.value===+n);u?this.form.patchValue({citation:u.citation,id:u.id}):console.error("Could not find selected citation in list?")}},this.to.onSearch=n=>{this.to.fieldValue=n,this.to.fieldLength=n.length,!(n.lengththis.to.maxLength)&&this.sourceTypeaheadQuery.fetch({sourceType:this.to.sourceType,partialCitationId:+n},{fetchPolicy:"network-only"}).subscribe(({data:{sourceTypeahead:u}})=>{this.to.optionList=u.map(_=>({value:_.citationId,label:_.citationId,source:_})),this.changeDetectorRef.detectChanges()})}}onModelUpdated(n){this.form.patchValue(n),this.changeDetectorRef.detectChanges(),this.to.triggerParentSubmit()}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(E.k2T),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector-typeahead-type"]],features:[e.qOj],decls:5,vars:8,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","ngModelChange","nzOnSearch"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["class","ant-form-item-explain",4,"ngIf"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue"],[1,"ant-form-item-explain"],[1,"source-citation"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange"]],template:function(n,u){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("ngModelChange",function(Q){return u.to.modelChange(Q)})("nzOnSearch",function(Q){return u.to.onSearch(Q)}),e.YNc(1,H,2,4,"nz-option",1),e.qZA(),e.YNc(2,R,4,1,"div",2),e.YNc(3,ee,3,3,"ng-template",null,3,e.W1O)),2&n){const _=e.MAs(4);e.Q6J("formControl",u.formControl)("formlyAttributes",u.field)("nzPlaceHolder",u.to.placeholder?u.to.placeholder:null)("nzNotFoundContent",_)("nzShowArrow",u.to.showArrow)("nzFilterOption",u.to.filterOption),e.xp6(1),e.Q6J("ngForOf",u.to.optionList),e.xp6(1),e.Q6J("ngIf",u.model.citation.length>0)}},directives:[j.Vq,x.JJ,x.oH,b.VQ,T.sg,j.Ip,T.O5,T.RF,T.n9,G],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),o})(),wrappers:["form-field"]};var ce=r(7008);let ie=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,L.zf,$.L,U.U5,ce.B,C.sL]]}),o})(),le=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,x.UX,b.X0.forChild({types:[se]}),j.LV,ie]]}),o})();var ae=r(8979);let ue=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,x.UX,b.X0,S.u,C.sL,ie,le,ae.N]]}),o})();var de=r(9779);let pe=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,b.X0.forChild({types:[z]}),ue,de.s]]}),o})()},7075:(k,B,r)=>{r.d(B,{l:()=>S});var T=r(9808),b=r(8776),e=r(5e3),x=r(9180),E=r(8227),I=r(6042),t=r(2643),Z=r(1793),v=r(2683);const N={name:"org-submit-button",component:(()=>{class C extends b.fS{constructor(){super(),this._selectedOrg=void 0,this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}get selectedOrg(){return this._selectedOrg}set selectedOrg(V){this._selectedOrg=V,this.formControl.setValue(V)}}return C.\u0275fac=function(V){return new(V||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["cvc-submit-button-type"]],features:[e.qOj],decls:5,vars:4,consts:[[3,"selectedOrg","nzSize","selectedOrgChange"],["orgButton",""],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary",3,"disabled","click"]],template:function(V,L){if(1&V){const $=e.EpF();e.TgZ(0,"cvc-form-buttons"),e.TgZ(1,"cvc-org-selector-btn-group",0,1),e.NdJ("selectedOrgChange",function(U){return L.selectedOrg=U}),e.TgZ(3,"button",2),e.NdJ("click",function(){return e.CHM($),e.MAs(2).refreshViewer()}),e._uU(4),e.qZA(),e.qZA(),e.qZA()}2&V&&(e.xp6(1),e.Q6J("selectedOrg",L.selectedOrg)("nzSize",L.to.submitSize),e.xp6(2),e.Q6J("disabled",!L.form.valid),e.xp6(1),e.hij(" ",L.to.submitLabel," "))},directives:[x.Z,E.q,I.ix,t.dQ,Z.m,v.w],styles:[""],changeDetection:0}),C})()};var A=r(4375),a=r(1825),z=r(4182);let S=(()=>{class C{}return C.\u0275fac=function(V){return new(V||C)},C.\u0275mod=e.oAB({type:C}),C.\u0275inj=e.cJS({imports:[[T.ez,z.UX,b.X0.forChild({types:[N]}),I.sL,A.R,a.A]]}),C})()},5472:(k,B,r)=>{r.d(B,{r:()=>A});var T=r(9808),b=r(6949),e=r(8776),x=r(7484),E=r(5482),I=r(1894),t=r(5109),Z=r(6789),v=r(5e3);const N={wrappers:[{name:"form-container",component:(()=>{class a extends e.n2{}return a.\u0275fac=function(){let z;return function(C){return(z||(z=v.n5z(a)))(C||a)}}(),a.\u0275cmp=v.Xpm({type:a,selectors:[["cvc-form-container-wrapper"]],features:[v.qOj],decls:5,vars:1,consts:[["nzSpan","24"],["nzSize","default",3,"nzTitle"],["fieldComponent",""]],template:function(S,C){1&S&&(v.TgZ(0,"nz-row"),v.TgZ(1,"nz-col",0),v.TgZ(2,"nz-card",1),v.GkF(3,null,2),v.qZA(),v.qZA(),v.qZA()),2&S&&(v.xp6(2),v.Q6J("nzTitle",C.to.label))},directives:[I.SK,I.t3,x.bd],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),a})()}]};let A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=v.oAB({type:a}),a.\u0275inj=v.cJS({imports:[[T.ez,b.WG,e.X0.forChild(N),I.Jb,x.vh,E.cD,Z._,t.s]]}),a})()},444:(k,B,r)=>{function T(s){return s!==String(parseFloat(s))}r.d(B,{o6:()=>W});var E=Object.getOwnPropertyNames?function b(s){return Object.getOwnPropertyNames(s).filter(function(i){return s.propertyIsEnumerable(i)&&T(i)})}:Object.keys?function e(s){return Object.keys(s).filter(T)}:function x(s){var i=[];for(var g in s)s.hasOwnProperty(g)&&s.propertyIsEnumerable(g)&&T(g)&&i.push(g);return i},I=function(){function s(i){this.enumObj=i,this.keysList=Object.freeze(E(i));for(var g=this.keysList.length,F=new Array(g),l=new Map,p=0;p=g.length,value:g.keysList[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype.values=function(){var i,g=this,F=0;return(i={next:function(){var p={done:F>=g.length,value:g.valuesList[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype.entries=function(){var i,g=this,F=0;return(i={next:function(){var p={done:F>=g.length,value:g[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype[Symbol.iterator]=function(){return this.entries()},s.prototype.forEach=function(i,g){for(var F=this.length,l=0;l{r.d(B,{$:()=>oe,j:()=>re});var T=r(655),b=r(9808),e=r(5e3),x=r(2654),E=r(839),I=r(8929),t=r(6787),Z=r(3753),v=r(3489),M=r(353);const N={leading:!0,trailing:!1};class C{constructor(h,c,f,O){this.duration=h,this.scheduler=c,this.leading=f,this.trailing=O}call(h,c){return c.subscribe(new j(h,this.duration,this.scheduler,this.leading,this.trailing))}}class j extends v.L{constructor(h,c,f,O,P){super(h),this.duration=c,this.scheduler=f,this.leading=O,this.trailing=P,this._hasTrailingValue=!1,this._trailingValue=null}_next(h){this.throttled?this.trailing&&(this._trailingValue=h,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(V,this.duration,{subscriber:this})),this.leading?this.destination.next(h):this.trailing&&(this._trailingValue=h,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const h=this.throttled;h&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),h.unsubscribe(),this.remove(h),this.throttled=null)}}function V(y){const{subscriber:h}=y;h.clearThrottle()}var L=r(7625),$=r(4850),K=r(9439),U=r(1721),W=r(4090),s=r(925),i=r(5577),g=r(226);const F=["fixedEl"],l=["*"];var p=(()=>{return(y=p||(p={})).resize="resize",y.scroll="scroll",y.touchstart="touchstart",y.touchmove="touchmove",y.touchend="touchend",y.pageshow="pageshow",y.load="LOAD",p;var y})();function w(y){return function d(y){return"undefined"!=typeof window&&y===window}(y)?{top:0,left:0,bottom:0}:y.getBoundingClientRect()}const D="ant-affix";let oe=(()=>{class y{constructor(c,f,O,P,J,X,G,H,R,te){this.nzConfigService=O,this.scrollSrv=P,this.ngZone=J,this.platform=X,this.renderer=G,this.nzResizeObserver=H,this.cdr=R,this.directionality=te,this._nzModuleName="affix",this.nzChange=new e.vpe,this.dir="ltr",this.positionChangeSubscription=x.w.EMPTY,this.offsetChanged$=new E.t(1),this.destroy$=new I.xQ,this.placeholderNode=c.nativeElement,this.document=f}get target(){const c=this.nzTarget;return("string"==typeof c?this.document.querySelector(c):c)||window}ngOnInit(){var c;null===(c=this.directionality.change)||void 0===c||c.pipe((0,L.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(c){const{nzOffsetBottom:f,nzOffsetTop:O,nzTarget:P}=c;(f||O)&&this.offsetChanged$.next(),P&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();const c=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>(0,t.T)(...Object.keys(p).map(f=>(0,Z.R)(this.target,f)),this.offsetChanged$.pipe((0,$.U)(()=>({}))),this.nzResizeObserver.observe(c)).pipe(function S(y,h=M.P,c=N){return f=>f.lift(new C(y,h,c.leading,c.trailing))}(20,void 0,{trailing:!0}),(0,L.R)(this.destroy$)).subscribe(f=>this.updatePosition(f))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}getOffset(c,f){const O=c.getBoundingClientRect(),P=w(f),J=this.scrollSrv.getScroll(f,!0),X=this.scrollSrv.getScroll(f,!1),G=this.document.body;return{top:O.top-P.top+J-(G.clientTop||0),left:O.left-P.left+X-(G.clientLeft||0),width:O.width,height:O.height}}setAffixStyle(c,f){const O=this.affixStyle,P=this.target===window;if("scroll"===c.type&&O&&f&&P||(0,U.wU)(O,f))return;const J=!!f,X=this.fixedEl.nativeElement;this.renderer.setStyle(X,"cssText",(0,U.GM)(f)),this.affixStyle=f,J?X.classList.add(D):X.classList.remove(D),this.updateRtlClass(),(f&&!O||!f&&O)&&this.nzChange.emit(J)}setPlaceholderStyle(c){(0,U.wU)(c,this.placeholderStyle)||(this.renderer.setStyle(this.placeholderNode,"cssText",(0,U.GM)(c)),this.placeholderStyle=c)}syncPlaceholderStyle(c){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;const f={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(c,Object.assign(Object.assign({},this.affixStyle),f)),this.setPlaceholderStyle(f)}updatePosition(c){if(!this.platform.isBrowser)return;const f=this.target;let O=this.nzOffsetTop;const P=this.scrollSrv.getScroll(f,!0),J=this.getOffset(this.placeholderNode,f),X=this.fixedEl.nativeElement,G={width:X.offsetWidth,height:X.offsetHeight},H={top:!1,bottom:!1};"number"!=typeof O&&"number"!=typeof this.nzOffsetBottom?(H.top=!0,O=0):(H.top="number"==typeof O,H.bottom="number"==typeof this.nzOffsetBottom);const R=w(f),te=f.innerHeight||f.clientHeight;if(P>=J.top-O&&H.top){const q=J.width;this.setAffixStyle(c,{position:"fixed",top:R.top+O,left:R.left+J.left,width:q}),this.setPlaceholderStyle({width:q,height:G.height})}else if(P<=J.top+G.height+this.nzOffsetBottom-te&&H.bottom){const q=f===window?0:window.innerHeight-R.bottom,ee=J.width;this.setAffixStyle(c,{position:"fixed",bottom:q+this.nzOffsetBottom,left:R.left+J.left,width:ee}),this.setPlaceholderStyle({width:ee,height:J.height})}else c.type===p.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(c,Object.assign(Object.assign({},this.affixStyle),{width:this.placeholderNode.offsetWidth})):this.setAffixStyle(c),this.setPlaceholderStyle();"resize"===c.type&&this.syncPlaceholderStyle(c)}updateRtlClass(){const c=this.fixedEl.nativeElement;"rtl"===this.dir&&c.classList.contains(D)?c.classList.add(`${D}-rtl`):c.classList.remove(`${D}-rtl`)}}return y.\u0275fac=function(c){return new(c||y)(e.Y36(e.SBq),e.Y36(b.K0),e.Y36(K.jY),e.Y36(W.MF),e.Y36(e.R0b),e.Y36(s.t4),e.Y36(e.Qsj),e.Y36(i.D3),e.Y36(e.sBO),e.Y36(g.Is,8))},y.\u0275cmp=e.Xpm({type:y,selectors:[["nz-affix"]],viewQuery:function(c,f){if(1&c&&e.Gf(F,7),2&c){let O;e.iGM(O=e.CRH())&&(f.fixedEl=O.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[e.TTD],ngContentSelectors:l,decls:3,vars:0,consts:[["fixedEl",""]],template:function(c,f){1&c&&(e.F$t(),e.TgZ(0,"div",null,0),e.Hsn(2),e.qZA())},encapsulation:2,changeDetection:0}),(0,T.gn)([(0,K.oS)(),(0,U.Rn)(void 0)],y.prototype,"nzOffsetTop",void 0),(0,T.gn)([(0,K.oS)(),(0,U.Rn)(void 0)],y.prototype,"nzOffsetBottom",void 0),y})(),re=(()=>{class y{}return y.\u0275fac=function(c){return new(c||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[g.vT,b.ez,s.ud]]}),y})()}}]);
\ No newline at end of file
diff --git a/server/public/7012.f719422393652a3a.js b/server/public/7012.f719422393652a3a.js
new file mode 100644
index 000000000..02ed2b3e2
--- /dev/null
+++ b/server/public/7012.f719422393652a3a.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7012],{7012:(Pe,C,i)=>{i.r(C),i.d(C,{VariantsReviseModule:()=>ze});var d=i(9808),c=i(325),f=i(373),P=i(1059),R=i(4850),e=i(5e3),u=i(712),A=i(9350),F=i(8992),g=i(1945),x=i(647),h=i(1894),Z=i(8616),y=i(6949);function N(n,r){1&n&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function B(n,r){1&n&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function J(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,N,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,B,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&n){const t=r.ngIf,o=e.MAs(14),a=e.oxw();e.xp6(1),e.Q6J("displayName",t.name),e.xp6(5),e.hij(" ",t.name," "),e.xp6(2),e.hij(" ",t.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,a.isSignedIn$))("ngIfElse",o)}}let D=(()=>{class n{constructor(t,o,a){this.gql=t,this.route=o,this.viewerService=a,this.routeSub=this.route.params.subscribe(s=>{let m=this.gql.watch({variantId:+s.variantId}).valueChanges;this.loading$=m.pipe((0,f.j)("loading"),(0,P.O)(!0)),this.variant$=m.pipe((0,f.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,f.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,f.j)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,f.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,R.U)(t=>t.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.iJT),e.Y36(c.gz),e.Y36(A.a))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variant"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(t,o){1&t&&(e.YNc(0,J,15,7,"ng-container",0),e.ALo(1,"async")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,o.variant$))},directives:[d.O5,F.I,g.$O,g.u9,x.Ls,g.yG,g.u5,c.lC,h.SK,h.t3,Z.u],pipes:[d.Ov,y.fM],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{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 E=i(3773),w=i(8390),_=i(4375),G=i(7008),Q=i(1825),v=i(8776),O=i(6042),V=i(2359),b=i(4546),p=i(4182),I=i(5109),$=i(6501),U=i(7484),Y=i(5482),j=i(6462),L=i(7075),X=i(9911),H=i(4623),W=i(9990),k=i(7462),K=i(4889),S=i(7525),q=i(5472),z=i(1047),M=i(8481);function ee(n,r){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"input",2),e.NdJ("keydown.enter",function(a){return e.CHM(t),e.oxw().onEnter(a)}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("formControl",t.formControl)("formlyAttributes",t.field)}}function te(n,r){if(1&n&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formControl.value)}}const ne={name:"tag-input",component:(()=>{class n extends v.fS{constructor(){super(),this.defaultOptions={templateOptions:{placeholder:"Enter value"},modelOptions:{updateOn:"blur"}}}onEnter(t){this.formControl.setValue(t.target.value)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-tag-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["tagItem",""],["nz-input","",3,"formControl","formlyAttributes","keydown.enter"]],template:function(t,o){if(1&t&&(e.YNc(0,ee,2,2,"ng-container",0),e.YNc(1,te,2,1,"ng-template",null,1,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",!o.formControl.value)("ngIfElse",a)}},directives:[d.O5,z.Zp,p.Fj,p.JJ,p.oH,v.VQ,M.j],styles:[""],changeDetection:0}),n})()};let ie=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,p.UX,y.WG,v.X0.forChild({types:[ne]}),M.X,z.o7]]}),n})();var ae=i(7338);let re=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,c.Bz,y.WG,p.UX,v.X0,I.s,O.sL,U.vh,Y.cD,b.U5,V.L,h.Jb,x.PV,O.sL,j.m,S.j,L.l,Q.A,q.r,G.B,_.R,X.G,H.K,w.N,E.g,$.r,W.M,k.o,K.E,ie,ae.z,I.s]]}),n})(),oe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,re]]}),n})();var se=i(8929),T=i(7625),l=i(6738),le=i(444);function de(n){switch(n){case"GRCH37":return"GRCh37 (hg19)";case"GRCH38":return"GRCh38 (hg38)";case"NCBI36":return"NCBI36 (hg18)";default:return n}}var pe=i(6123),ce=i(9169),me=i(822);function fe(n,r){1&n&&e.GkF(0)}function ue(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(a){return e.CHM(t),e.oxw(2).formModel=a}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("form",t.formGroup)("fields",t.formFields)("model",t.formModel)("options",t.formOptions)}}function ge(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(t);const a=e.oxw();return a.submitRevision(a.formModel)}),e.YNc(1,fe,1,0,"ng-container",4),e.YNc(2,ue,1,4,"formly-form",5),e.qZA()}if(2&n){const t=e.oxw(),o=e.MAs(3);e.Q6J("formGroup",t.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(1),e.Q6J("ngIf",!t.success)}}function he(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("errors",t.errorMessages)}}function ve(n,r){1&n&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function ye(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,ve,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&n){const t=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",t)}}function xe(n,r){if(1&n&&(e.YNc(0,he,3,1,"ng-container",7),e.YNc(1,ye,4,1,"ng-container",7)),2&n){const t=e.oxw();e.Q6J("ngIf",t.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",t.success)}}let be=(()=>{class n{constructor(t,o,a){this.suggestRevisionGQL=t,this.networkErrorService=o,this.revisableFieldsGQL=a,this.success=!1,this.errorMessages=[],this.loading=!1,this.formGroup=new p.cw({}),this.formOptions={},this.suggestRevisionMutator=new pe.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Variant Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"name",type:"input",templateOptions:{label:"Name",helpText:'Enter the name of the Variant according to the Variant Curation SOP',required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Variant Description",placeholder:"Enter a description for this variant.",helpText:'Provide a summary of the clinical relevance of this Variant. The Variant Summary should be a synthesis of the existing Evidence Statements for this variant. Basic information on recurrence rates and biological/functional impact of the Variant may be included, but the focus should be on the clinical impact (i.e. predictive, prognostic, diagnostic, or predisposing relevance). By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal).',required:!1}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Description Sources",addText:"Add a Source",helpText:"Add any Sources used as references for this Variant's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!1}}},{key:"variantAliases",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Aliases",addText:"Add an Alias",helpText:"List any aliases commonly used to refer to this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Add Alias",minLength:3}}},{key:"hgvsDescriptions",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"HGVS Descriptions",addText:"Add an HGVS Description",helpText:"Please specify any HGVS descriptions for this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Enter an HGVS string"}}},{key:"clinvarStatus",type:"select",templateOptions:{label:"Do Clinvar IDs exist for this variant?",placeholder:"Select Clinvar ID status",helpText:"Specify if Clinvar IDs exist, or if they are not applicable for this variant.",options:[{value:l.li.NotApplicable,label:"Clinvar IDs not applicable for this variant"},{value:l.li.NoneFound,label:"Clinvar IDs do not exist for this variant"},{value:l.li.Found,label:"Clinvar IDs were found for this variant"}]}},{key:"clinvarIds",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"ClinVar IDs",addText:"Add a ClinVar ID",helpText:"Specify any corresponding ClinVar identifiers for this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Enter a ClinVar ID"}},validators:{validation:["clinvar"]},hideExpression:(s,m,Me)=>Me.form.value.clinvarStatus!==l.li.Found},{key:"variantTypes",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Types",addText:"Add a Variant Type",helpText:'Add one or more variant types from the Sequence Ontology (e.g., missense, loss-of-function). Be specific as possible, avoid the addition of root concepts, and use the sequence_variant tree of the sequence ontology.'},fieldArray:{type:"variant-type-input",templateOptions:{required:!1}}},{template:"Primary Coordinates
"},{key:"referenceBuild",type:"select",defaultValue:u.JDX.Grch37,templateOptions:{label:"Reference Build",required:!1,helpText:"Specify the human genome reference sequence from which these coordinates are obtained.",options:(0,le.o6)(u.JDX).map(s=>({value:s,label:de(s)}))}},{key:"ensemblVersion",type:"cvc-ensembl-input"},{key:"threePrimeCoordinates.referenceBases",type:"input",defaultValue:void 0,templateOptions:{label:"Reference Bases",helpText:"The nucleotide(s) of the reference genome affected by the variant. Only used for SNVs and Indels (otherwise leave blank).",required:!1},validators:{validation:["nucleotide"]}},{key:"threePrimeCoordinates.variantBases",type:"input",defaultValue:void 0,templateOptions:{label:"Variant Bases",helpText:"The nucleotide(s) of the variant allele. Only used for SNVs and Indels (otherwise leave blank).",required:!1},validators:{validation:["nucleotide"]}},{key:"threePrimeCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",helpText:"Specify the chromosome in which this variant occurs (e.g. 17).",required:!1,options:l.aP}},{key:"threePrimeCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build.",required:!1},validators:{validation:["integer"]}},{key:"threePrimeCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build.",required:!1},validators:{validation:["integer"]}},{key:"threePrimeCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{template:"Secondary Coordinates
"},{key:"fivePrimeCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",required:!1,options:l.aP,helpText:"If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner."}},{key:"fivePrimeCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this 3-prime partner fusion variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"fivePrimeCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this 3-prime partner fusion variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"fivePrimeCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision to this variant.",helpText:"Please enter a comment describing your revision to this variant.",required:!1,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new se.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).subscribe(({data:{variant:t}})=>{t&&(this.formModel=this.toFormModel(t))},t=>{console.error("Error retrieving variant."),console.error(t)},()=>{this.formGroup.markAllAsTouched();const t=this.formGroup.get("fields.comment");t&&t.markAsUntouched()})}getClinvarStatus(t){return"NONE FOUND"===t[0]?l.li.NoneFound:"N/A"===t[0]?l.li.NotApplicable:l.li.Found}getClinvarIds(t){return"NONE FOUND"===t[0]||"N/A"===t[0]?[]:t}toFormModel(t){var o,a,s,m;return{fields:Object.assign(Object.assign({},t),{clinvarStatus:this.getClinvarStatus(t.clinvarIds),clinvarIds:this.getClinvarIds(t.clinvarIds),referenceBases:null===(o=t.fivePrimeCoordinates)||void 0===o?void 0:o.referenceBases,variantBases:null===(a=t.fivePrimeCoordinates)||void 0===a?void 0:a.variantBases,comment:null===(s=this.formModel)||void 0===s?void 0:s.fields.comment,organization:null===(m=this.formModel)||void 0===m?void 0:m.fields.organization})}}submitRevision(t){let o=this.toRevisionInput(t);if(o){let a=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:o});a.submitSuccess$.pipe((0,T.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),a.submitError$.pipe((0,T.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),a.isSubmitting$.pipe((0,T.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toRevisionInput(t){var o;if(t){const a=t.fields;return Object.assign(Object.assign({id:a.id},t),{fields:{name:a.name,geneId:a.gene.id,ensemblVersion:l.uP(a.ensemblVersion),description:l.xt(a.description),clinvarIds:l.Zg(a.clinvarIds,a.clinvarStatus),primaryCoordinates:l._$(a.threePrimeCoordinates),secondaryCoordinates:l._$(a.fivePrimeCoordinates),referenceBases:l.xt(a.referenceBases),variantBases:l.xt(a.variantBases),referenceBuild:l.dh(a.referenceBuild),hgvsDescriptions:a.hgvsDescriptions,sourceIds:t.fields.sources.map(s=>+s.id),variantTypeIds:t.fields.variantTypes.map(s=>+s.id),aliases:t.fields.variantAliases},comment:""==a.comment?void 0:a.comment,organizationId:null===(o=t.fields.organization)||void 0===o?void 0:o.id})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.Xft),e.Y36(ce.Y),e.Y36(u.nnL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variant-revise-form"]],inputs:{variantId:"variantId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(t,o){1&t&&(e.TgZ(0,"nz-spin",0),e.YNc(1,ge,3,3,"form",1),e.qZA(),e.YNc(2,xe,2,2,"ng-template",null,2,e.W1O)),2&t&&(e.Q6J("nzSpinning",o.loading),e.xp6(1),e.Q6J("ngIf",o.formModel))},directives:[S.W,d.O5,p._Y,p.JL,b.Lr,p.sg,d.tP,v.T7,h.SK,b.Nx,me.V,V.r,c.yS],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}"]}),n})();function Te(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-variant-revise-form",2),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("variantId",t.variantId)}}function Ce(n,r){1&n&&e._uU(0,"Loading Variant...")}const Oe=[{path:"",component:D,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class n{constructor(t){this.route=t,this.routeParams$=this.route.params.subscribe(o=>{this.variantId=+o.variantId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(c.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variants-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariant",""],[3,"variantId"]],template:function(t,o){if(1&t&&(e.YNc(0,Te,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",o.variantId)("ngIfElse",a)}},directives:[d.O5,be],styles:[""]}),n})(),data:{breadcrumb:"Suggest Revision"}}]}];let Ve=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[c.Bz.forChild(Oe),oe],c.Bz]}),n})();var Ie=i(5630),Se=i(9386);let ze=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.ez,Ve,g.KJ,x.PV,Ie.D,Se.a,y.WG,h.Jb]]}),n})()}}]);
\ No newline at end of file
diff --git a/server/public/7559.a5a35b67a5a564b7.js b/server/public/7559.f6ca9a429933f621.js
similarity index 79%
rename from server/public/7559.a5a35b67a5a564b7.js
rename to server/public/7559.f6ca9a429933f621.js
index 455c6e3a5..4587d5705 100644
--- a/server/public/7559.a5a35b67a5a564b7.js
+++ b/server/public/7559.f6ca9a429933f621.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7559],{7559:(Tt,M,r)=>{r.r(M),r.d(M,{EvidenceAddModule:()=>St});var s=r(9808),m=r(325),A=r(4850),e=r(5e3),U=r(9350),N=r(8992),f=r(1945),w=r(647),g=r(1894),Y=r(8616),h=r(6949);function $(t,i){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function B(t,i){1&t&&(e.TgZ(0,"nz-row",7),e.TgZ(1,"div",8),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}let V=(()=>{class t{constructor(n){this.viewerService=n}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,A.U)(n=>n.signedIn))}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(U.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["evidence-add"]],decls:13,vars:4,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,o){if(1&n&&(e._UZ(0,"cvc-section-navigation",0),e.TgZ(1,"nz-page-header",1),e.TgZ(2,"nz-page-header-title",2),e._UZ(3,"i",3),e._uU(4," Add New Evidence "),e.qZA(),e.TgZ(5,"nz-page-header-subtitle"),e._uU(6," Submit and review new evidence items "),e.qZA(),e.TgZ(7,"nz-page-header-content"),e.TgZ(8,"div",4),e.YNc(9,$,2,0,"div",5),e.ALo(10,"ngrxPush"),e.YNc(11,B,3,0,"ng-template",null,6,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&n){const a=e.MAs(12);e.xp6(9),e.Q6J("ngIf",e.lcZ(10,2,o.isSignedIn$))("ngIfElse",a)}},directives:[N.I,f.$O,f.u9,w.Ls,f.yG,f.u5,s.O5,m.lC,g.SK,g.t3,Y.u],pipes:[h.fM],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{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}"]}),t})();var p=r(8144),k=r(6559),C=r(7484),D=r(1135),R=r(4623),G=r(8006),j=r(5452),X=r(3643),H=r(4375),L=r(7008),W=r(7695),K=r(8390),q=r(1825),ee=r(5457),te=r(5743),ne=r(3773),oe=r(7075),ie=r(7462),re=r(3594),Q=r(8929),z=r(591),y=r(7625),S=r(537),l=r(712),F=r(9169);let ae=(()=>{class t{constructor(n,o){this.submitEvidenceItemGQL=n,this.networkErrorService=o,this.destroy$=new Q.xQ,this.isSubmitting$=new z.X(!1),this.submitSuccess$=new z.X(!1),this.submitError$=new z.X([])}submit(n){this.isSubmitting$.next(!0),this.submitEvidenceItemGQL.mutate({input:n}).pipe((0,y.R)(this.destroy$),(0,S.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:o=>{o.graphQLErrors.length>0?this.submitError$.next(o.graphQLErrors.map(a=>a.message)):o.networkError&&this.networkErrorService.networkError$.next(o.networkError)},complete:()=>{this.submitError$.next([]),this.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0)}})}cleanup(){this.submitError$.next([]),this.submitSuccess$.next(!1),this.isSubmitting$.next(!1),this.networkErrorService.networkError$.next(void 0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(l.WFw),e.LFG(F.Y))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})();var u=r(8776),T=r(5109),v=r(2359),b=r(6042),_=r(4546),d=r(4182),ce=r(2789),se=r(5932),le=r(3416),de=r(2480),pe=r(1830),ue=r(4581),me=r(1605),ge=r(5926),fe=r(1270),J=r(7525),he=r(6530),I=r(444),_e=r(6906);function ye(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"formly-field",2),e.BQk()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("field",n)}}function ve(t,i){if(1&t&&e._UZ(0,"cvc-source-tag",3),2&t){const n=e.oxw();e.Q6J("source",n.model.source)}}let xe=(()=>{class t extends u.fS{constructor(){super(),this.defaultOptions={templateOptions:{label:"Source",entityType:"Source",entityFragment:l.iXf},defaultValue:{sourceType:l.yic.Pubmed,source:void 0},fieldGroupClassName:"select-group",fieldGroup:[{key:"sourceType",type:"select",className:"type-field",templateOptions:{required:!1,placeholder:"Select Type",options:(0,I.o6)(l.yic).map((n,o)=>({value:n,label:(0,he.c)(n)}))},hideExpression:(n,o,a)=>(console.log(n),null!=n.source)},{key:"source",type:"citation-select",className:"citation-field",templateOptions:{required:!1},hideExpression:(n,o,a)=>(console.log(n),null!=n.source)}]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-source-select"]],features:[e.qOj],decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[3,"source",4,"ngIf"],[3,"field"],[3,"source"]],template:function(n,o){1&n&&(e.YNc(0,ye,2,1,"ng-container",0),e.YNc(1,ve,1,1,"cvc-source-tag",1)),2&n&&(e.Q6J("ngForOf",o.field.fieldGroup),e.xp6(1),e.Q6J("ngIf",null!=o.model.source))},directives:[s.sg,u.cw,s.O5,_e.T],styles:["[_nghost-%COMP%]{display:block}.type-field[_ngcontent-%COMP%]{display:inline-block;width:10em}.citation-field[_ngcontent-%COMP%]{display:inline-block;margin-left:.5em;width:calc(100% - 10.5em)}.hidden[_ngcontent-%COMP%]{display:none}"]}),t})();var x=r(8054),E=r(3618),Ce=r(8481),ze=r(373),P=r(822),Se=r(2643),Te=r(2683);function be(t,i){if(1&t&&e._UZ(0,"nz-alert",6),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function Ie(t,i){if(1&t&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,", would you like to add it? ")),2&t){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function Ee(t,i){1&t&&(e.ynx(0),e.YNc(1,be,1,1,"nz-alert",4),e.YNc(2,Ie,4,1,"ng-template",null,5,e.W1O),e.BQk())}function Oe(t,i){if(1&t&&e._UZ(0,"nz-alert",9),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function Ze(t,i){if(1&t&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&t){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function Me(t,i){1&t&&(e.ynx(0),e.YNc(1,Oe,1,1,"nz-alert",7),e.YNc(2,Ze,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Ae(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function we(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(n),e.oxw(3).onAddRemoteCitation(a)}),e._uU(1," Add\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 to CIViC Sources "),e.qZA()}if(2&t){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function Le(t,i){1&t&&(e.ynx(0),e.YNc(1,we,5,2,"button",11),e.BQk())}function Qe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(a){return e.CHM(n),e.oxw(3).onAcceptSource(a)}),e._uU(1," Specify this Source "),e.qZA()}}function Fe(t,i){1&t&&(e.ynx(0),e.YNc(1,Qe,2,0,"button",13),e.BQk())}function Je(t,i){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,Ee,4,0,"ng-container",3),e.YNc(3,Me,4,0,"ng-container",3),e.YNc(4,Ae,2,1,"nz-form-item",3),e.YNc(5,Le,2,0,"ng-container",3),e.YNc(6,Fe,2,0,"ng-container",3),e.qZA(),e.BQk()),2&t){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function Pe(t,i){if(1&t&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&t){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function Ue(t,i){1&t&&(e.ynx(0),e.YNc(1,Pe,3,1,"span",15),e.BQk())}function Ne(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.existenceErrors)}}function Ye(t,i){if(1&t&&e._uU(0),2&t){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function $e(t,i){if(1&t&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,Ye,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function Be(t,i){1&t&&(e.ynx(0),e.YNc(1,$e,4,1,"span",18),e.BQk())}function Ve(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(n),e.oxw(2).onExistenceQuery(a)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function ke(t,i){if(1&t&&(e.TgZ(0,"nz-space",2),e.YNc(1,Ue,2,0,"ng-container",3),e.YNc(2,Ne,2,1,"nz-form-item",3),e.YNc(3,Be,2,0,"ng-container",3),e.YNc(4,Ve,4,3,"button",11),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceErrors.length>0),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let De=(()=>{class t{constructor(n,o,a){this.existenceCheckQuery=n,this.createSourceStubQuery=o,this.changeDetectorRef=a,this.addCitation=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceErrors=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,I.o6)(l.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,S.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:o}})=>{null!==o?this.foundCitation=o:(this.showPrompt=!1,this.existenceFail=!0)},error:o=>{this.showPrompt=!1,this.existenceErrors=o.graphQLErrors.map(a=>a.message)},complete:()=>{this.existenceErrors=[]}})}onAddRemoteCitation(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,S.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:o})=>{var a;console.log(o);const c=null===(a=null==o?void 0:o.addRemoteCitation)||void 0===a?void 0:a.newSource;this.sourceStub=c,this.createSuccess=!0},error:o=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=o.graphQLErrors.map(a=>a.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),this.addCitation.emit({id:this.sourceStub.id,entityFragment:l.SJD})}ngAfterContentInit(){console.log("model")}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.gtM),e.Y36(l.RMv),e.Y36(e.sBO))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-citation-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{addCitation:"addCitation",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,o){if(1&n&&(e.YNc(0,Je,7,5,"ng-container",0),e.YNc(1,ke,5,3,"ng-template",null,1,e.W1O)),2&n){const a=e.MAs(2);e.Q6J("ngIf",o.foundCitation)("ngIfElse",a)}},directives:[s.O5,p.NU,p.$1,v.r,g.SK,_.Nx,P.V,b.ix,Se.dQ,Te.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),t})();function Re(t,i){if(1&t&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&t){const n=i.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.source),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function Ge(t,i){if(1&t&&(e.ynx(0),e.YNc(1,Re,2,4,"nz-option",3),e.BQk()),2&t){const n=i.ngrxLet;e.xp6(1),e.Q6J("ngForOf",n)}}function je(t,i){if(1&t&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.hij(" ",n.to.prompt," ")}}function Xe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"cvc-citation-loader",9),e.NdJ("addCitation",function(a){return e.CHM(n),e.oxw(2).onAddCitation(a)})("sourceTypeChange",function(a){return e.CHM(n),e.oxw(2).model.sourceType=a})("citationIdChange",function(a){return e.CHM(n),e.oxw(2).to.searchValue=a}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.searchValue)}}function He(t,i){if(1&t&&(e.ynx(0,5),e.YNc(1,je,2,1,"div",6),e.YNc(2,Xe,1,3,"cvc-citation-loader",7),e.BQk()),2&t){const n=e.oxw();e.Q6J("ngSwitch",n.to.searchLength>0&&n.to.searchLength>=n.to.minSearchLength),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}let We=(()=>{class t extends u.fS{constructor(n){super(),this.sourceTypeaheadQuery=n,this.defaultOptions={templateOptions:{placeholder:"Search Sources",onSearch:()=>{},minSearchLength:1,maxSearchLength:15,searchLength:0,searchValue:""},expressionProperties:{"templateOptions.prompt":o=>`Search for ${(0,I.o6)(l.yic).getKeyOrThrow(o.sourceType)} sources known to CIViC.`}},this.onAddCitation=o=>{const a=this.field.parent.templateOptions;a.entityType="SourceStub",a.entityFragment=o.entityFragment,this.field.formControl.setValue(o.id)}}ngOnInit(){this.queryRef=this.sourceTypeaheadQuery.watch({sourceType:this.model.sourceType,partialCitationId:9999999}),this.sources$=this.queryRef.valueChanges.pipe((0,ze.j)("data","sourceTypeahead"),(0,A.U)(n=>n.map(o=>({value:o.id,label:o.citation?o.citation:o.name,source:o}))))}ngAfterViewInit(){this.to.onSearch=n=>{this.to.searchLength=n.length,this.to.searchValue=n,!(n.lengththis.to.maxLength)&&this.queryRef.refetch({sourceType:l.yic.Pubmed,partialCitationId:+n})}}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.NbY))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-citation-select-type"]],features:[e.qOj],decls:4,vars:7,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["notFound",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","addCitation","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[1,"ant-form-item-explain"],[3,"model","sourceType","citationId","addCitation","sourceTypeChange","citationIdChange"]],template:function(n,o){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("nzOnSearch",function(c){return o.to.onSearch(c)}),e.YNc(1,Ge,2,1,"ng-container",1),e.qZA(),e.YNc(2,He,3,3,"ng-template",null,2,e.W1O)),2&n){const a=e.MAs(3);e.Q6J("formControl",o.formControl)("formlyAttributes",o.field)("nzPlaceHolder",o.to.placeholder?o.to.placeholder:null)("nzNotFoundContent",a)("nzShowArrow",!1)("nzFilterOption",o.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",o.sources$)}},directives:[x.Vq,d.JJ,d.oH,u.VQ,h.eJ,s.sg,x.Ip,s.RF,s.n9,De],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),t})(),Ke=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,p.zf,v.L,_.U5,L.B,b.sL]]}),t})();const qe={types:[{name:"citation-select",component:We}]};let et=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,d.UX,h.WG,x.LV,Ke,u.X0.forChild(qe),T.s]]}),t})();var tt=r(9779);const nt={types:[{name:"source-select",component:xe,wrappers:["form-field"]}]};let ot=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,d.UX,h.WG,u.X0.forChild(nt),x.LV,p.zf,E.ZJ,Ce.X,et,tt.s]]}),t})();var it=r(5472),rt=r(4889);let at=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[ae],imports:[[s.ez,m.Bz,d.UX,T.s,_.U5,v.L,g.Jb,b.sL,J.j,u.X0,q.A,L.B,H.R,W.C,oe.l,K.N,ne.g,j.C,te.W,ee.$,G.I,ie.o,R.K,re.q,X.q,D.C,ce.o,se.A,le.g,de.r,pe.S,ue.e,me.e,ge.J,fe.i,ot,it.r,rt.E,C.vh,p.zf,E.ZJ,m.Bz,T.s]]}),t})(),ct=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,g.Jb,p.zf,C.vh,k.H0,at]]}),t})();var O=r(6738),st=r(6064),lt=r(6123);function dt(t,i){1&t&&(e.TgZ(0,"nz-card"),e.TgZ(1,"nz-typography"),e._uU(2," To add an evidence item, please complete the following form, provide a short statement supporting its inclusion into the CIViC database, then click the 'Submit Evidence for Inclusion' button. If you are having difficulty filling in all of the required fields please use the "),e.TgZ(3,"a",3),e._uU(4,"Suggest Source form"),e.qZA(),e._uU(5," to suggest a publication for curators to review. "),e._UZ(6,"br"),e._UZ(7,"br"),e.TgZ(8,"strong"),e._uU(9,"Please ensure that your submission contains no "),e.TgZ(10,"a",4),e._uU(11,"Protected Health Information"),e.qZA(),e._uU(12,", and is your own original work. By contributing to CIViC you agree to release your contributions to the public domain as described by the "),e.TgZ(13,"a",5),e._uU(14,"Creative Commons Public Domain Dedication (CC0 1.0 Universal)"),e.qZA(),e._uU(15,"."),e.qZA(),e.qZA(),e.qZA())}function pt(t,i){1&t&&e.GkF(0)}function ut(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",11),e.NdJ("modelChange",function(a){return e.CHM(n),e.oxw(2).formModel=a}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function mt(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",13),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Q6J("errors",n.errorMessages)}}function gt(t,i){if(1&t&&(e.TgZ(0,"p"),e._uU(1,"View "),e.TgZ(2,"a",17),e._uU(3,"its details"),e.qZA(),e._uU(4,"."),e.qZA()),2&t){const n=e.oxw(4);e.xp6(2),e.MGl("routerLink","/evidence/",n.newId,"/summary")}}function ft(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",14),e.YNc(2,gt,5,1,"ng-template",15,16,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function ht(t,i){if(1&t&&(e.YNc(0,mt,2,1,"nz-form-item",12),e.YNc(1,ft,4,1,"ng-container",12)),2&t){const n=e.oxw(2);e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}function _t(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"nz-spin",6),e.TgZ(1,"form",7),e.NdJ("ngSubmit",function(){e.CHM(n);const a=e.oxw();return a.submitEvidence(a.formModel)}),e.YNc(2,pt,1,0,"ng-container",8),e.YNc(3,ut,1,4,"formly-form",9),e.qZA(),e.YNc(4,ht,2,2,"ng-template",null,10,e.W1O),e.qZA()}if(2&t){const n=e.MAs(5),o=e.oxw();e.Q6J("nzSpinning",o.loading),e.xp6(1),e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",n),e.xp6(1),e.Q6J("ngIf",!o.success)}}let yt=(()=>{class t{constructor(n,o){this.submitEvidenceGQL=n,this.networkErrorService=o,this.destroy$=new Q.xQ,this.formGroup=new d.cw({}),this.formOptions={formState:new st._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitEvidenceMutator=new lt.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Evidence Item Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0}},{key:"variant",type:"variant-array",templateOptions:{required:!0,maxCount:1}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{required:!0,label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!1,minLength:10}},{key:"cancel",type:"cancel-button"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item",submitSize:"large"}}]}]}ngOnInit(){}submitEvidence(n){let o=this.toSubmitInput(n);if(o){let a=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:o},c=>{this.newId=c.submitEvidence.evidenceItem.id});a.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{c&&(this.success=!0)}),a.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),a.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}toSubmitInput(n){var o,a;if(n){const c=n.fields;return{fields:{variantOrigin:c.variantOrigin,description:O.xt(c.description),variantId:c.variant[0].id,sourceId:c.source[0].id,evidenceType:c.evidenceType,evidenceDirection:c.evidenceDirection,clinicalSignificance:c.clinicalSignificance,diseaseId:O.uP(null===(o=c.disease[0])||void 0===o?void 0:o.id),evidenceLevel:c.evidenceLevel,phenotypeIds:c.phenotypes.map(Z=>Z.id),rating:+c.evidenceRating,drugIds:c.drugs.map(Z=>Z.id),drugInteractionType:O.uP(c.drugInteractionType)},comment:c.comment&&c.comment.length>0?c.comment:void 0,organizationId:null===(a=null==n?void 0:n.fields.organization)||void 0===a?void 0:a.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.WFw),e.Y36(F.Y))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit-form"]],decls:3,vars:0,consts:[["nzDirection","vertical"],[4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["routerLink","/sources/add"],["href","http://www.hipaa.com/hipaa-protected-health-information-what-does-phi-include/","target","_blank"],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Evidence Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(n,o){1&n&&(e.TgZ(0,"nz-space",0),e.YNc(1,dt,16,0,"nz-card",1),e.YNc(2,_t,6,4,"nz-spin",2),e.qZA())},directives:[p.NU,p.$1,C.bd,E.ZU,m.yS,J.W,d._Y,d.JL,_.Lr,d.sg,s.tP,s.O5,u.T7,g.SK,_.Nx,P.V,v.r],styles:[""]}),t})();const vt=[{path:"",component:V,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(o=>{this.evidenceId=+o.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(m.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit"]],decls:1,vars:0,template:function(n,o){1&n&&e._UZ(0,"cvc-evidence-submit-form")},directives:[yt],styles:[""]}),t})(),data:{breadcrumb:"Submit New Evidence"}}]}];let xt=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.Bz.forChild(vt),ct],m.Bz]}),t})();var Ct=r(5630),zt=r(9386);let St=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,xt,f.KJ,w.PV,Ct.D,zt.a,g.Jb,h.WG]]}),t})()}}]);
\ No newline at end of file
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7559],{7559:(Tt,M,r)=>{r.r(M),r.d(M,{EvidenceAddModule:()=>St});var s=r(9808),m=r(325),A=r(4850),e=r(5e3),U=r(9350),N=r(8992),f=r(1945),w=r(647),g=r(1894),Y=r(8616),h=r(6949);function $(t,i){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function B(t,i){1&t&&(e.TgZ(0,"nz-row",7),e.TgZ(1,"div",8),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}let V=(()=>{class t{constructor(n){this.viewerService=n}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,A.U)(n=>n.signedIn))}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(U.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["evidence-add"]],decls:13,vars:4,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,o){if(1&n&&(e._UZ(0,"cvc-section-navigation",0),e.TgZ(1,"nz-page-header",1),e.TgZ(2,"nz-page-header-title",2),e._UZ(3,"i",3),e._uU(4," Add New Evidence "),e.qZA(),e.TgZ(5,"nz-page-header-subtitle"),e._uU(6," Submit and review new evidence items "),e.qZA(),e.TgZ(7,"nz-page-header-content"),e.TgZ(8,"div",4),e.YNc(9,$,2,0,"div",5),e.ALo(10,"ngrxPush"),e.YNc(11,B,3,0,"ng-template",null,6,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&n){const a=e.MAs(12);e.xp6(9),e.Q6J("ngIf",e.lcZ(10,2,o.isSignedIn$))("ngIfElse",a)}},directives:[N.I,f.$O,f.u9,w.Ls,f.yG,f.u5,s.O5,m.lC,g.SK,g.t3,Y.u],pipes:[h.fM],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{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}"]}),t})();var p=r(8144),k=r(6559),C=r(7484),D=r(1135),R=r(4623),G=r(8006),j=r(5452),X=r(3643),H=r(4375),L=r(7008),W=r(7695),K=r(8390),q=r(1825),ee=r(5457),te=r(5743),ne=r(3773),oe=r(7075),ie=r(7462),re=r(3594),Q=r(8929),z=r(591),y=r(7625),S=r(537),l=r(712),F=r(9169);let ae=(()=>{class t{constructor(n,o){this.submitEvidenceItemGQL=n,this.networkErrorService=o,this.destroy$=new Q.xQ,this.isSubmitting$=new z.X(!1),this.submitSuccess$=new z.X(!1),this.submitError$=new z.X([])}submit(n){this.isSubmitting$.next(!0),this.submitEvidenceItemGQL.mutate({input:n}).pipe((0,y.R)(this.destroy$),(0,S.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:o=>{o.graphQLErrors.length>0?this.submitError$.next(o.graphQLErrors.map(a=>a.message)):o.networkError&&this.networkErrorService.networkError$.next(o.networkError)},complete:()=>{this.submitError$.next([]),this.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0)}})}cleanup(){this.submitError$.next([]),this.submitSuccess$.next(!1),this.isSubmitting$.next(!1),this.networkErrorService.networkError$.next(void 0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.LFG(l.WFw),e.LFG(F.Y))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})();var u=r(8776),T=r(5109),v=r(2359),b=r(6042),_=r(4546),d=r(4182),ce=r(2789),se=r(5932),le=r(3416),de=r(2480),pe=r(1830),ue=r(4581),me=r(1605),ge=r(5926),fe=r(1270),J=r(7525),he=r(6530),I=r(444),_e=r(6906);function ye(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"formly-field",2),e.BQk()),2&t){const n=i.$implicit;e.xp6(1),e.Q6J("field",n)}}function ve(t,i){if(1&t&&e._UZ(0,"cvc-source-tag",3),2&t){const n=e.oxw();e.Q6J("source",n.model.source)}}let xe=(()=>{class t extends u.fS{constructor(){super(),this.defaultOptions={templateOptions:{label:"Source",entityType:"Source",entityFragment:l.iXf},defaultValue:{sourceType:l.yic.Pubmed,source:void 0},fieldGroupClassName:"select-group",fieldGroup:[{key:"sourceType",type:"select",className:"type-field",templateOptions:{required:!1,placeholder:"Select Type",options:(0,I.o6)(l.yic).map((n,o)=>({value:n,label:(0,he.c)(n)}))},hideExpression:(n,o,a)=>(console.log(n),null!=n.source)},{key:"source",type:"citation-select",className:"citation-field",templateOptions:{required:!1},hideExpression:(n,o,a)=>(console.log(n),null!=n.source)}]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-source-select"]],features:[e.qOj],decls:2,vars:2,consts:[[4,"ngFor","ngForOf"],[3,"source",4,"ngIf"],[3,"field"],[3,"source"]],template:function(n,o){1&n&&(e.YNc(0,ye,2,1,"ng-container",0),e.YNc(1,ve,1,1,"cvc-source-tag",1)),2&n&&(e.Q6J("ngForOf",o.field.fieldGroup),e.xp6(1),e.Q6J("ngIf",null!=o.model.source))},directives:[s.sg,u.cw,s.O5,_e.T],styles:["[_nghost-%COMP%]{display:block}.type-field[_ngcontent-%COMP%]{display:inline-block;width:10em}.citation-field[_ngcontent-%COMP%]{display:inline-block;margin-left:.5em;width:calc(100% - 10.5em)}.hidden[_ngcontent-%COMP%]{display:none}"]}),t})();var x=r(8054),E=r(3618),Ce=r(8481),ze=r(373),P=r(822),Se=r(2643),Te=r(2683);function be(t,i){if(1&t&&e._UZ(0,"nz-alert",6),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function Ie(t,i){if(1&t&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,", would you like to add it? ")),2&t){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function Ee(t,i){1&t&&(e.ynx(0),e.YNc(1,be,1,1,"nz-alert",4),e.YNc(2,Ie,4,1,"ng-template",null,5,e.W1O),e.BQk())}function Oe(t,i){if(1&t&&e._UZ(0,"nz-alert",9),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function Ze(t,i){if(1&t&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&t){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function Me(t,i){1&t&&(e.ynx(0),e.YNc(1,Oe,1,1,"nz-alert",7),e.YNc(2,Ze,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Ae(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function we(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(n),e.oxw(3).onAddRemoteCitation(a)}),e._uU(1," Add\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 to CIViC Sources "),e.qZA()}if(2&t){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function Le(t,i){1&t&&(e.ynx(0),e.YNc(1,we,5,2,"button",11),e.BQk())}function Qe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(a){return e.CHM(n),e.oxw(3).onAcceptSource(a)}),e._uU(1," Specify this Source "),e.qZA()}}function Fe(t,i){1&t&&(e.ynx(0),e.YNc(1,Qe,2,0,"button",13),e.BQk())}function Je(t,i){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,Ee,4,0,"ng-container",3),e.YNc(3,Me,4,0,"ng-container",3),e.YNc(4,Ae,2,1,"nz-form-item",3),e.YNc(5,Le,2,0,"ng-container",3),e.YNc(6,Fe,2,0,"ng-container",3),e.qZA(),e.BQk()),2&t){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function Pe(t,i){if(1&t&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&t){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function Ue(t,i){1&t&&(e.ynx(0),e.YNc(1,Pe,3,1,"span",15),e.BQk())}function Ne(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.existenceErrors)}}function Ye(t,i){if(1&t&&e._uU(0),2&t){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function $e(t,i){if(1&t&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,Ye,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function Be(t,i){1&t&&(e.ynx(0),e.YNc(1,$e,4,1,"span",18),e.BQk())}function Ve(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(n),e.oxw(2).onExistenceQuery(a)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function ke(t,i){if(1&t&&(e.TgZ(0,"nz-space",2),e.YNc(1,Ue,2,0,"ng-container",3),e.YNc(2,Ne,2,1,"nz-form-item",3),e.YNc(3,Be,2,0,"ng-container",3),e.YNc(4,Ve,4,3,"button",11),e.qZA()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceErrors.length>0),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let De=(()=>{class t{constructor(n,o,a){this.existenceCheckQuery=n,this.createSourceStubQuery=o,this.changeDetectorRef=a,this.addCitation=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceErrors=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,I.o6)(l.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,S.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:o}})=>{null!==o?this.foundCitation=o:(this.showPrompt=!1,this.existenceFail=!0)},error:o=>{this.showPrompt=!1,this.existenceErrors=o.graphQLErrors.map(a=>a.message)},complete:()=>{this.existenceErrors=[]}})}onAddRemoteCitation(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,S.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:o})=>{var a;console.log(o);const c=null===(a=null==o?void 0:o.addRemoteCitation)||void 0===a?void 0:a.newSource;this.sourceStub=c,this.createSuccess=!0},error:o=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=o.graphQLErrors.map(a=>a.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),this.addCitation.emit({id:this.sourceStub.id,entityFragment:l.SJD})}ngAfterContentInit(){console.log("model")}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.gtM),e.Y36(l.RMv),e.Y36(e.sBO))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-citation-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{addCitation:"addCitation",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,o){if(1&n&&(e.YNc(0,Je,7,5,"ng-container",0),e.YNc(1,ke,5,3,"ng-template",null,1,e.W1O)),2&n){const a=e.MAs(2);e.Q6J("ngIf",o.foundCitation)("ngIfElse",a)}},directives:[s.O5,p.NU,p.$1,v.r,g.SK,_.Nx,P.V,b.ix,Se.dQ,Te.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),t})();function Re(t,i){if(1&t&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&t){const n=i.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.source),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function Ge(t,i){if(1&t&&(e.ynx(0),e.YNc(1,Re,2,4,"nz-option",3),e.BQk()),2&t){const n=i.ngrxLet;e.xp6(1),e.Q6J("ngForOf",n)}}function je(t,i){if(1&t&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&t){const n=e.oxw(2);e.xp6(1),e.hij(" ",n.to.prompt," ")}}function Xe(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"cvc-citation-loader",9),e.NdJ("addCitation",function(a){return e.CHM(n),e.oxw(2).onAddCitation(a)})("sourceTypeChange",function(a){return e.CHM(n),e.oxw(2).model.sourceType=a})("citationIdChange",function(a){return e.CHM(n),e.oxw(2).to.searchValue=a}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.searchValue)}}function He(t,i){if(1&t&&(e.ynx(0,5),e.YNc(1,je,2,1,"div",6),e.YNc(2,Xe,1,3,"cvc-citation-loader",7),e.BQk()),2&t){const n=e.oxw();e.Q6J("ngSwitch",n.to.searchLength>0&&n.to.searchLength>=n.to.minSearchLength),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}let We=(()=>{class t extends u.fS{constructor(n){super(),this.sourceTypeaheadQuery=n,this.defaultOptions={templateOptions:{placeholder:"Search Sources",onSearch:()=>{},minSearchLength:1,maxSearchLength:15,searchLength:0,searchValue:""},expressionProperties:{"templateOptions.prompt":o=>`Search for ${(0,I.o6)(l.yic).getKeyOrThrow(o.sourceType)} sources known to CIViC.`}},this.onAddCitation=o=>{const a=this.field.parent.templateOptions;a.entityType="SourceStub",a.entityFragment=o.entityFragment,this.field.formControl.setValue(o.id)}}ngOnInit(){this.queryRef=this.sourceTypeaheadQuery.watch({sourceType:this.model.sourceType,partialCitationId:9999999}),this.sources$=this.queryRef.valueChanges.pipe((0,ze.j)("data","sourceTypeahead"),(0,A.U)(n=>n.map(o=>({value:o.id,label:o.citation?o.citation:o.name,source:o}))))}ngAfterViewInit(){this.to.onSearch=n=>{this.to.searchLength=n.length,this.to.searchValue=n,!(n.lengththis.to.maxLength)&&this.queryRef.refetch({sourceType:l.yic.Pubmed,partialCitationId:+n})}}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.NbY))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-citation-select-type"]],features:[e.qOj],decls:4,vars:7,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["notFound",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","addCitation","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[1,"ant-form-item-explain"],[3,"model","sourceType","citationId","addCitation","sourceTypeChange","citationIdChange"]],template:function(n,o){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("nzOnSearch",function(c){return o.to.onSearch(c)}),e.YNc(1,Ge,2,1,"ng-container",1),e.qZA(),e.YNc(2,He,3,3,"ng-template",null,2,e.W1O)),2&n){const a=e.MAs(3);e.Q6J("formControl",o.formControl)("formlyAttributes",o.field)("nzPlaceHolder",o.to.placeholder?o.to.placeholder:null)("nzNotFoundContent",a)("nzShowArrow",!1)("nzFilterOption",o.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",o.sources$)}},directives:[x.Vq,d.JJ,d.oH,u.VQ,h.eJ,s.sg,x.Ip,s.RF,s.n9,De],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),t})(),Ke=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,p.zf,v.L,_.U5,L.B,b.sL]]}),t})();const qe={types:[{name:"citation-select",component:We}]};let et=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,d.UX,h.WG,x.LV,Ke,u.X0.forChild(qe),T.s]]}),t})();var tt=r(9779);const nt={types:[{name:"source-select",component:xe,wrappers:["form-field"]}]};let ot=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,d.UX,h.WG,u.X0.forChild(nt),x.LV,p.zf,E.ZJ,Ce.X,et,tt.s]]}),t})();var it=r(5472),rt=r(4889);let at=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[ae],imports:[[s.ez,m.Bz,d.UX,T.s,_.U5,v.L,g.Jb,b.sL,J.j,u.X0,q.A,L.B,H.R,W.C,oe.l,K.N,ne.g,j.C,te.W,ee.$,G.I,ie.o,R.K,re.q,X.q,D.C,ce.o,se.A,le.g,de.r,pe.S,ue.e,me.e,ge.J,fe.i,ot,it.r,rt.E,C.vh,p.zf,E.ZJ,m.Bz,T.s]]}),t})(),ct=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,g.Jb,p.zf,C.vh,k.H0,at]]}),t})();var O=r(6738),st=r(6064),lt=r(6123);function dt(t,i){1&t&&(e.TgZ(0,"nz-card"),e.TgZ(1,"nz-typography"),e._uU(2," To add an evidence item, please complete the following form, provide a short statement supporting its inclusion into the CIViC database, then click the 'Submit Evidence for Inclusion' button. If you are having difficulty filling in all of the required fields please use the "),e.TgZ(3,"a",3),e._uU(4,"Suggest Source form"),e.qZA(),e._uU(5," to suggest a publication for curators to review. "),e._UZ(6,"br"),e._UZ(7,"br"),e.TgZ(8,"strong"),e._uU(9,"Please ensure that your submission contains no "),e.TgZ(10,"a",4),e._uU(11,"Protected Health Information"),e.qZA(),e._uU(12,", and is your own original work. By contributing to CIViC you agree to release your contributions to the public domain as described by the "),e.TgZ(13,"a",5),e._uU(14,"Creative Commons Public Domain Dedication (CC0 1.0 Universal)"),e.qZA(),e._uU(15,"."),e.qZA(),e.qZA(),e.qZA())}function pt(t,i){1&t&&e.GkF(0)}function ut(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",11),e.NdJ("modelChange",function(a){return e.CHM(n),e.oxw(2).formModel=a}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function mt(t,i){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",13),e.qZA()),2&t){const n=e.oxw(3);e.xp6(1),e.Q6J("errors",n.errorMessages)}}function gt(t,i){if(1&t&&(e.TgZ(0,"p"),e._uU(1,"View "),e.TgZ(2,"a",17),e._uU(3,"its details"),e.qZA(),e._uU(4,"."),e.qZA()),2&t){const n=e.oxw(4);e.xp6(2),e.MGl("routerLink","/evidence/",n.newId,"/summary")}}function ft(t,i){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",14),e.YNc(2,gt,5,1,"ng-template",15,16,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function ht(t,i){if(1&t&&(e.YNc(0,mt,2,1,"nz-form-item",12),e.YNc(1,ft,4,1,"ng-container",12)),2&t){const n=e.oxw(2);e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}function _t(t,i){if(1&t){const n=e.EpF();e.TgZ(0,"nz-spin",6),e.TgZ(1,"form",7),e.NdJ("ngSubmit",function(){e.CHM(n);const a=e.oxw();return a.submitEvidence(a.formModel)}),e.YNc(2,pt,1,0,"ng-container",8),e.YNc(3,ut,1,4,"formly-form",9),e.qZA(),e.YNc(4,ht,2,2,"ng-template",null,10,e.W1O),e.qZA()}if(2&t){const n=e.MAs(5),o=e.oxw();e.Q6J("nzSpinning",o.loading),e.xp6(1),e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",n),e.xp6(1),e.Q6J("ngIf",!o.success)}}let yt=(()=>{class t{constructor(n,o){this.submitEvidenceGQL=n,this.networkErrorService=o,this.destroy$=new Q.xQ,this.formGroup=new d.cw({}),this.formOptions={formState:new st._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitEvidenceMutator=new lt.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Evidence Item Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0}},{key:"variant",type:"variant-array",templateOptions:{required:!0,maxCount:1,helpText:"The most specific description of the variant that the underlying source allows."}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{required:!0,label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!1,minLength:10}},{key:"cancel",type:"cancel-button"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item",submitSize:"large"}}]}]}ngOnInit(){}submitEvidence(n){let o=this.toSubmitInput(n);if(o){let a=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:o},c=>{this.newId=c.submitEvidence.evidenceItem.id});a.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{c&&(this.success=!0)}),a.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),a.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}toSubmitInput(n){var o,a;if(n){const c=n.fields;return{fields:{variantOrigin:c.variantOrigin,description:O.xt(c.description),variantId:c.variant[0].id,sourceId:c.source[0].id,evidenceType:c.evidenceType,evidenceDirection:c.evidenceDirection,clinicalSignificance:c.clinicalSignificance,diseaseId:O.uP(null===(o=c.disease[0])||void 0===o?void 0:o.id),evidenceLevel:c.evidenceLevel,phenotypeIds:c.phenotypes.map(Z=>Z.id),rating:+c.evidenceRating,drugIds:c.drugs.map(Z=>Z.id),drugInteractionType:O.uP(c.drugInteractionType)},comment:c.comment&&c.comment.length>0?c.comment:void 0,organizationId:null===(a=null==n?void 0:n.fields.organization)||void 0===a?void 0:a.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.WFw),e.Y36(F.Y))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit-form"]],decls:3,vars:0,consts:[["nzDirection","vertical"],[4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["routerLink","/sources/add"],["href","http://www.hipaa.com/hipaa-protected-health-information-what-does-phi-include/","target","_blank"],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Evidence Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(n,o){1&n&&(e.TgZ(0,"nz-space",0),e.YNc(1,dt,16,0,"nz-card",1),e.YNc(2,_t,6,4,"nz-spin",2),e.qZA())},directives:[p.NU,p.$1,C.bd,E.ZU,m.yS,J.W,d._Y,d.JL,_.Lr,d.sg,s.tP,s.O5,u.T7,g.SK,_.Nx,P.V,v.r],styles:[""]}),t})();const vt=[{path:"",component:V,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(o=>{this.evidenceId=+o.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(m.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit"]],decls:1,vars:0,template:function(n,o){1&n&&e._UZ(0,"cvc-evidence-submit-form")},directives:[yt],styles:[""]}),t})(),data:{breadcrumb:"Submit New Evidence"}}]}];let xt=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.Bz.forChild(vt),ct],m.Bz]}),t})();var Ct=r(5630),zt=r(9386);let St=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,xt,f.KJ,w.PV,Ct.D,zt.a,g.Jb,h.WG]]}),t})()}}]);
\ No newline at end of file
diff --git a/server/public/7598.72692bbf9e6a5d2a.js b/server/public/7598.72692bbf9e6a5d2a.js
deleted file mode 100644
index 4b70ad81a..000000000
--- a/server/public/7598.72692bbf9e6a5d2a.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7598],{8616:(x,v,n)=>{n.d(v,{u:()=>t});var a=n(5e3),g=n(685),l=n(1912),m=n(3618),f=n(647);function c(r,_){1&r&&(a.TgZ(0,"span"),a._uU(1," You must be logged in to view this page. "),a.qZA())}function y(r,_){1&r&&a._UZ(0,"cvc-login-button")}function p(r,_){1&r&&(a.TgZ(0,"nz-typography",4),a._UZ(1,"i",5),a.qZA())}let t=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=a.Xpm({type:r,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(d,u){if(1&d&&(a.TgZ(0,"nz-empty",0),a.YNc(1,c,2,0,"ng-template",null,1,a.W1O),a.YNc(3,y,1,0,"ng-template",null,2,a.W1O),a.qZA(),a.YNc(5,p,2,0,"ng-template",null,3,a.W1O)),2&d){const T=a.MAs(2),z=a.MAs(4),C=a.MAs(6);a.Q6J("nzNotFoundImage",C)("nzNotFoundContent",T)("nzNotFoundFooter",z)}},directives:[g.p9,l.s,m.ZU,f.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),r})()},9386:(x,v,n)=>{n.d(v,{a:()=>y});var a=n(9808),g=n(1844),l=n(685),m=n(647),f=n(3618),c=n(5e3);let y=(()=>{class p{}return p.\u0275fac=function(r){return new(r||p)},p.\u0275mod=c.oAB({type:p}),p.\u0275inj=c.cJS({imports:[[a.ez,g.B,l.Xo,m.PV,f.ZJ]]}),p})()},8926:(x,v,n)=>{n.d(v,{A:()=>l});var a=n(5e3),g=n(2313);let l=(()=>{class m{constructor(c){this.sanitizer=c}transform(c,y){if(!y||""==y)return c;const p=new RegExp(y,"gi"),t=c.match(p);if(!t)return c;let r=c.replace(p,`${t[0]}`);return this.sanitizer.bypassSecurityTrustHtml(r)}}return m.\u0275fac=function(c){return new(c||m)(a.Y36(g.H7,16))},m.\u0275pipe=a.Yjl({name:"highlightTypeahead",type:m,pure:!0}),m})()},3077:(x,v,n)=>{function a(g){return void 0!==g}n.d(v,{$:()=>a})},7462:(x,v,n)=>{n.d(v,{o:()=>p});var a=n(9808),g=n(8776),l=n(5e3),m=n(1047),f=n(4182);const y={name:"cvc-textarea",component:(()=>{class t extends g.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return t.\u0275fac=function(){let r;return function(d){return(r||(r=l.n5z(t)))(d||t)}}(),t.\u0275cmp=l.Xpm({type:t,selectors:[["cvc-textarea-base-type"]],features:[l.qOj],decls:1,vars:3,consts:[["nz-input","",3,"nzAutosize","formControl","formlyAttributes"]],template:function(_,d){1&_&&l._UZ(0,"textarea",0),2&_&&l.Q6J("nzAutosize",d.to.autosize)("formControl",d.formControl)("formlyAttributes",d.field)},directives:[m.Zp,m.rh,f.Fj,f.JJ,f.oH,g.VQ],styles:[""],changeDetection:0}),t})(),wrappers:["form-field"]};let p=(()=>{class t{}return t.\u0275fac=function(_){return new(_||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[a.ez,f.u5,f.UX,g.X0.forChild({types:[y]}),m.o7]]}),t})()},4181:(x,v,n)=>{n.d(v,{O:()=>H});var a=n(9808),g=n(6123),l=n(8776),m=n(8929),f=n(591),c=n(373),y=n(4850),p=n(7625),t=n(5e3),r=n(712),_=n(9169),d=n(8054),u=n(4182),T=n(8664),z=n(822),C=n(6042),L=n(2643),S=n(2683),E=n(647),V=n(6949),F=n(8926);function B(e,h){if(1&e&&(t.TgZ(0,"nz-option",6),t._UZ(1,"span",7),t.ALo(2,"highlightTypeahead"),t.qZA()),2&e){const o=h.$implicit,s=t.oxw(2);t.Q6J("nzValue",o.variant),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,o.label,s.to.searchString),t.oJD)}}function D(e,h){1&e&&t._uU(0," No variant found in CIViC that matches the string provided. ")}function U(e,h){if(1&e){const o=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(i){return t.CHM(o),t.oxw().to.onSearch(i)}),t.YNc(2,B,3,5,"nz-option",4),t.ALo(3,"ngrxPush"),t.qZA(),t.YNc(4,D,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&e){const o=t.MAs(5),s=t.oxw(),i=t.MAs(4);t.xp6(1),t.Q6J("formControl",s.formControl)("formlyAttributes",s.field)("nzPlaceHolder",s.to.placeholder?s.to.placeholder:null)("nzDropdownRender",s.to.allowCreate?i:null)("nzNotFoundContent",o)("nzShowArrow",s.to.showArrow),t.xp6(1),t.Q6J("ngForOf",t.lcZ(3,7,s.variants$))}}function Z(e,h){if(1&e&&t._UZ(0,"cvc-variant-tag",8),2&e){const o=t.oxw();t.Q6J("variant",o.formControl.value)}}function W(e,h){if(1&e&&t._UZ(0,"cvc-form-errors-alert",12),2&e){const o=t.oxw(4);t.Q6J("errors",o.errorMessages)}}function J(e,h){if(1&e){const o=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(o);const i=t.oxw(4);return i.addVariant(i.to.searchString)}),t._UZ(1,"i",14),t._uU(2,"No Existing CIViC Variant\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Variant? "),t.qZA()}if(2&e){const o=t.oxw(4);t.Q6J("nzLoading",o.loading),t.xp6(4),t.Oqu(o.to.searchString)}}function Q(e,h){if(1&e&&(t.ynx(0),t.YNc(1,W,1,1,"cvc-form-errors-alert",10),t.YNc(2,J,6,2,"button",11),t.BQk()),2&e){const o=t.oxw(3);t.xp6(1),t.Q6J("ngIf",o.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",0==o.errorMessages.length)}}function R(e,h){if(1&e&&(t.ynx(0),t.YNc(1,Q,3,2,"ng-container",9),t.BQk()),2&e){const o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==o.to.searchString)}}function N(e,h){if(1&e&&(t.YNc(0,R,2,1,"ng-container",9),t.ALo(1,"ngrxPush")),2&e){const o=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,o.displayAdd$))}}const Y={name:"variant-input",component:(()=>{class e extends l.fS{constructor(o,s,i){super(),this.variantTypeaheadQuery=o,this.networkErrorService=s,this.addVariantGQL=i,this.destroy$=new m.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new f.X(!1),this.addVariantMutator=new g.U(s),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(I,w,A)=>{var O,P;let M=null===(P=null===(O=null==A?void 0:A.parent)||void 0===O?void 0:O.parent)||void 0===P?void 0:P.model;if(M&&M.gene&&M.gene[0])return M.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,c.j)("data","variants","nodes"),(0,y.U)(o=>o.map(i=>({value:i.id,label:i.name,variant:i}))))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{this.displayAdd$.next(0==s.data.variants.nodes.filter(i=>i.name.toUpperCase()==o.toUpperCase()).length)}))}}addVariant(o){if(o&&""!=o&&this.to.geneId){let s=this.addVariantMutator.mutate(this.addVariantGQL,{name:o,geneId:this.to.geneId},i=>{var I;null===(I=this.field.formControl)||void 0===I||I.setValue({id:i.addVariant.variant.id,name:i.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});s.submitSuccess$.pipe((0,p.R)(this.destroy$)).subscribe(i=>{i&&(this.success=!0)}),s.submitError$.pipe((0,p.R)(this.destroy$)).subscribe(i=>{i&&(this.errorMessages=i,this.success=!1)}),s.isSubmitting$.pipe((0,p.R)(this.destroy$)).subscribe(i=>{this.loading=i})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(r._eC),t.Y36(_.Y),t.Y36(r.LUc))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(o,s){if(1&o&&(t.YNc(0,U,6,9,"ng-container",0),t.YNc(1,Z,1,1,"ng-template",null,1,t.W1O),t.YNc(3,N,2,3,"ng-template",null,2,t.W1O)),2&o){const i=t.MAs(2);t.Q6J("ngIf",!(null!=s.formControl.value&&s.formControl.value.id))("ngIfElse",i)}},directives:[a.O5,d.Vq,u.JJ,u.oH,l.VQ,a.sg,d.Ip,T.I,z.V,C.ix,L.dQ,S.w,E.Ls],pipes:[V.fM,F.A],styles:[""],changeDetection:0}),e})()};var $=n(4867),K=n(7008),j=n(9444);let H=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.ez,u.UX,V.WG,l.X0.forChild({types:[Y]}),d.LV,C.sL,E.PV,$.Q,K.B,j.s]]}),e})()},5472:(x,v,n)=>{n.d(v,{r:()=>d});var a=n(9808),g=n(6949),l=n(8776),m=n(7484),f=n(5482),c=n(1894),y=n(5109),p=n(6789),t=n(5e3);const _={wrappers:[{name:"form-container",component:(()=>{class u extends l.n2{}return u.\u0275fac=function(){let T;return function(C){return(T||(T=t.n5z(u)))(C||u)}}(),u.\u0275cmp=t.Xpm({type:u,selectors:[["cvc-form-container-wrapper"]],features:[t.qOj],decls:5,vars:1,consts:[["nzSpan","24"],["nzSize","default",3,"nzTitle"],["fieldComponent",""]],template:function(z,C){1&z&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",0),t.TgZ(2,"nz-card",1),t.GkF(3,null,2),t.qZA(),t.qZA(),t.qZA()),2&z&&(t.xp6(2),t.Q6J("nzTitle",C.to.label))},directives:[c.SK,c.t3,m.bd],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),u})()}]};let d=(()=>{class u{}return u.\u0275fac=function(z){return new(z||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[a.ez,g.WG,l.X0.forChild(_),c.Jb,m.vh,f.cD,p._,y.s]]}),u})()}}]);
\ No newline at end of file
diff --git a/server/public/7893.09cc89d441456629.js b/server/public/7893.09cc89d441456629.js
new file mode 100644
index 000000000..12f92fa79
--- /dev/null
+++ b/server/public/7893.09cc89d441456629.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7893],{7695:(D,M,o)=>{o.d(M,{C:()=>a});var m=o(9808),f=o(6949),x=o(8776),u=o(7484),y=o(5482),v=o(1894),N=o(5109),I=o(6789),e=o(5e3),_=o(19),O=o(647),A=o(404);function C(i,p){1&i&&e._UZ(0,"div",9),2&i&&e.Q6J("innerHtml",p.ngIf,e.oJD)}function b(i,p){1&i&&(e.TgZ(0,"div",10),e._uU(1,"Help not available for this field."),e.qZA())}function S(i,p){if(1&i&&(e.TgZ(0,"nz-collapse-panel",6),e.YNc(1,C,1,1,"div",7),e.YNc(2,b,2,0,"ng-template",null,8,e.W1O),e.qZA()),2&i){const g=p.ngIf,z=e.MAs(3),T=e.oxw().$implicit,Z=e.MAs(3);e.Q6J("nzHeader",g)("nzActive",T.templateOptions.hasFocus)("nzExtra",Z),e.xp6(1),e.Q6J("ngIf",null==T.templateOptions?null:T.templateOptions.helpText)("ngIfElse",z)}}function k(i,p){if(1&i&&e._UZ(0,"formly-validation-message",14),2&i){const g=e.oxw(4).$implicit;e.Q6J("field",g)}}function E(i,p){if(1&i&&(e.ynx(0),e._UZ(1,"i",12),e.YNc(2,k,1,1,"ng-template",null,13,e.W1O),e.BQk()),2&i){const g=e.MAs(3);e.xp6(1),e.Q6J("nzTooltipTitle",g)}}function F(i,p){if(1&i&&(e.ynx(0),e.YNc(1,E,4,1,"ng-container",11),e.BQk()),2&i){const g=p.ngIf;e.xp6(1),e.Q6J("ngIf","INVALID"===g)}}function G(i,p){if(1&i&&(e.YNc(0,F,2,1,"ng-container",11),e.ALo(1,"ngrxPush")),2&i){const g=e.oxw().$implicit;e.Q6J("ngIf",e.lcZ(1,1,g.formControl.statusChanges))}}function R(i,p){if(1&i&&(e.ynx(0),e.YNc(1,S,4,5,"nz-collapse-panel",4),e.YNc(2,G,2,3,"ng-template",null,5,e.W1O),e.BQk()),2&i){const g=p.$implicit;e.xp6(1),e.Q6J("ngIf",null==g.templateOptions?null:g.templateOptions.label)}}let P=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(g,z){1&g&&(e.TgZ(0,"nz-affix",0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-collapse",2),e.YNc(3,R,4,1,"ng-container",3),e.qZA(),e.qZA(),e.qZA()),2&g&&(e.Q6J("nzOffsetTop",0)("nzTarget",z.affixTo),e.xp6(2),e.Q6J("nzBordered",!1),e.xp6(1),e.Q6J("ngForOf",z.fieldGroup))},directives:[_.$,u.bd,y.yH,m.sg,m.O5,y.Zv,O.Ls,A.SY,x.u_],pipes:[f.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),i})();const s={name:"form-info",component:(()=>{class i extends x.n2{}return i.\u0275fac=function(){let p;return function(z){return(p||(p=e.n5z(i)))(z||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-form-info-wrapper"]],features:[e.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(g,z){if(1&g&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",2),e.GkF(3,null,3),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",null,4),e._UZ(8,"cvc-form-info-card",5),e.qZA(),e.qZA(),e.qZA()),2&g){const T=e.MAs(7);e.xp6(1),e.Q6J("nzSpan",16),e.xp6(1),e.Q6J("nzTitle",z.to.label),e.xp6(3),e.Q6J("nzSpan",8),e.xp6(3),e.Q6J("fieldGroup",z.field.fieldGroup)("affixTo",T)}},directives:[v.SK,v.t3,u.bd,P],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),i})()};let a=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[m.ez,f.WG,x.X0.forChild({wrappers:[s]}),v.Jb,u.vh,y.cD,I._,N.s]]}),i})()},3887:(D,M,o)=>{o.r(M),o.d(M,{GenesReviseModule:()=>Se});var m=o(9808),f=o(325),x=o(5630),u=o(1945),y=o(647),v=o(373),N=o(1059),I=o(4850),e=o(5e3),_=o(712),O=o(9350),A=o(8992),C=o(1894),b=o(8616),S=o(6949);function k(t,c){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function E(t,c){1&t&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function F(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,k,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,E,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=c.ngIf,l=e.MAs(14),d=e.oxw();e.xp6(1),e.Q6J("displayName",n.name),e.xp6(5),e.hij(" ",n.name," "),e.xp6(2),e.hij(" ",n.officialName," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,d.isSignedIn$))("ngIfElse",l)}}let G=(()=>{class t{constructor(n,l,d){this.gql=n,this.route=l,this.viewerService=d,this.routeSub=this.route.params.subscribe(h=>{let Q=this.gql.watch({geneId:+h.geneId}).valueChanges;this.loading$=Q.pipe((0,v.j)("loading"),(0,N.O)(!0)),this.gene$=Q.pipe((0,v.j)("data","gene")),this.commentsTotal$=this.gene$.pipe((0,v.j)("comments","totalCount")),this.flagsTotal$=this.gene$.pipe((0,v.j)("flags","totalCount")),this.revisionsTotal$=this.gene$.pipe((0,v.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,I.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(_.TNk),e.Y36(f.gz),e.Y36(O.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["genes-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:gene"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,l){1&n&&(e.YNc(0,F,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,l.gene$))},directives:[m.O5,A.I,u.$O,u.u9,y.Ls,u.yG,u.u5,f.lC,C.SK,C.t3,b.u],pipes:[m.Ov,S.fM],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{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}"]}),t})();var R=o(8144),P=o(6559),r=o(4182),s=o(4546),a=o(2359),i=o(8776),p=o(1825),g=o(7008),z=o(4375),T=o(6042),Z=o(8390),U=o(3773),J=o(5109),j=o(4623),Y=o(7462),$=o(4889),L=o(7525),W=o(5472),V=o(7338),B=o(7484),H=o(5482),K=o(6462),X=o(9990),q=o(7075),ee=o(9911),te=o(6501),ne=o(7695);let oe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,f.Bz,S.WG,r.UX,i.X0,J.s,T.sL,B.vh,H.cD,s.U5,a.L,C.Jb,y.PV,K.m,L.j,q.l,p.A,W.r,g.B,z.R,ee.G,j.K,Z.N,U.g,te.r,X.M,Y.o,$.E,V.z,J.s,ne.C]]}),t})(),ie=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,S.WG,B.vh,C.Jb,R.zf,P.H0,u.KJ,oe,x.D]]}),t})();var ae=o(8929),w=o(7625),re=o(6738),se=o(6123),le=o(9169),ce=o(822);function pe(t,c){1&t&&e.GkF(0)}function ge(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(d){return e.CHM(n),e.oxw(2).formModel=d}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function de(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const d=e.oxw();return d.submitRevision(d.formModel)}),e.YNc(1,pe,1,0,"ng-container",4),e.YNc(2,ge,1,4,"formly-form",5),e.qZA()}if(2&t){const n=e.oxw(),l=e.MAs(3);e.Q6J("formGroup",n.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",l),e.xp6(1),e.Q6J("ngIf",!n.success)}}function me(t,c){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function fe(t,c){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function he(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,fe,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function ue(t,c){if(1&t&&(e.YNc(0,me,3,1,"ng-container",7),e.YNc(1,he,4,1,"ng-container",7)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let ze=(()=>{class t{constructor(n,l,d){this.suggestRevisionGQL=n,this.networkErrorService=l,this.revisableFieldsGQL=d,this.destroy$=new ae.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.formGroup=new r.cw({}),this.formOptions={},this.suggestRevisionMutator=new se.U(l),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Gene Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"description",type:"cvc-textarea",templateOptions:{label:"Gene Description",helpText:'User-defined summary of the clinical relevance of this Gene. By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal)
Should include:
- relevance to appropriate cancer(s)
- treatment(s) related specifically to variants affecting this Gene
May include relevant mechanistic information such as:
- pathway interactions
- functional alterations caused by variants in this Gene (i.e., activating, loss-of-function, etc.)
- normal functions key to its oncogenic properties.
',placeholder:"Enter a description for this gene.",required:!1}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Gene Description Sources",addText:"Add a Source",helpText:"Add any Sources used as references for this Gene's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Gene Revision",submitSize:"large"}}]}]}ngOnInit(){console.log(this.geneId)}ngAfterViewInit(){this.revisableFieldsGQL.fetch({geneId:this.geneId},{fetchPolicy:"network-only"}).subscribe(({data:{gene:n}})=>{console.log("gene"),n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving gene."),console.error(n)},()=>{console.log("complete"),this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var l,d;return{fields:Object.assign(Object.assign({},n),{comment:null===(l=this.formModel)||void 0===l?void 0:l.fields.comment,organization:null===(d=this.formModel)||void 0===d?void 0:d.fields.organization})}}submitRevision(n){let l=this.toRevisionInput(n);if(l){let d=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:l});d.submitSuccess$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{h&&(this.success=!0)}),d.submitError$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{h&&(this.errorMessages=h,this.success=!1)}),d.isSubmitting$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{this.loading=h})}}toRevisionInput(n){var l;if(n){const d=n.fields;return{id:d.id,comment:d.comment,organizationId:null===(l=d.organization)||void 0===l?void 0:l.id,fields:{description:(0,re.xt)(n.fields.description),sourceIds:n.fields.sources.map(h=>+h.id)}}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(_.D9L),e.Y36(le.Y),e.Y36(_.FOU))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-gene-revise-form"]],inputs:{geneId:"geneId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,l){1&n&&(e.TgZ(0,"nz-spin",0),e.YNc(1,de,3,3,"form",1),e.qZA(),e.YNc(2,ue,2,2,"ng-template",null,2,e.W1O)),2&n&&(e.Q6J("nzSpinning",l.loading),e.xp6(1),e.Q6J("ngIf",l.formModel))},directives:[L.W,m.O5,r._Y,r.JL,s.Lr,r.sg,m.tP,i.T7,C.SK,s.Nx,ce.V,a.r,f.yS],styles:["[_nghost-%COMP%]{display:block}"]}),t})();function ve(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-gene-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("geneId",n.geneId)}}function Ce(t,c){1&t&&e._uU(0,"Loading Gene...")}const xe=[{path:"",component:G,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(l=>{this.geneId=+l.geneId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-genes-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingGene",""],[3,"geneId"]],template:function(n,l){if(1&n&&(e.YNc(0,ve,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&n){const d=e.MAs(2);e.Q6J("ngIf",l.geneId)("ngIfElse",d)}},directives:[m.O5,ze],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{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}"]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let ye=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[f.Bz.forChild(xe),ie]]}),t})();var _e=o(9386);let Se=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,ye,f.Bz,x.D,u.KJ,y.PV,S.WG,C.Jb,_e.a]]}),t})()},6559:(D,M,o)=>{o.d(M,{H0:()=>P});var m=o(5e3),f=o(9808),x=o(226);let P=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=m.oAB({type:r}),r.\u0275inj=m.cJS({imports:[[x.vT,f.ez]]}),r})()}}]);
\ No newline at end of file
diff --git a/server/public/79.45fe3ea68943616b.js b/server/public/79.88f59fde8cf78eea.js
similarity index 95%
rename from server/public/79.45fe3ea68943616b.js
rename to server/public/79.88f59fde8cf78eea.js
index 745b6ff94..e6cbb7a8a 100644
--- a/server/public/79.45fe3ea68943616b.js
+++ b/server/public/79.88f59fde8cf78eea.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[79],{8369:(S,y,t)=>{t.d(y,{W:()=>D});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(7484),h=t(3098),A=t(3309),C=t(4867),v=t(6286),T=t(8018),P=t(6949),d=t(9444),u=t(1894),I=t(8144),Z=t(3580),J=t(8625),U=t(7026),B=t(592),G=t(5e3);let F=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,P.WG,f.vh,h.q6,M.PV,u.Jb,I.zf,n.X,A.U,Z.Q,C.Q,v.y,T.e,d.s,B.x,J.$L.forChild({formatter:{useClass:U.x,provide:J.KP}})]]}),m})(),D=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,F,d.s]]}),m})()},209:(S,y,t)=>{t.d(y,{i:()=>D});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(7484),h=t(3309),A=t(4867),C=t(1894),v=t(3098),T=t(8018),P=t(3580),d=t(6286),u=t(6949),I=t(8144),Z=t(9444),J=t(9779),U=t(592),B=t(3618),G=t(5e3);let F=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,u.WG,M.PV,f.vh,C.Jb,v.q6,n.X,I.zf,B.ZJ,Z.s,T.e,P.Q,h.U,A.Q,d.y,J.s,U.x]]}),m})(),D=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,F,Z.s]]}),m})()},6286:(S,y,t)=>{t.d(y,{y:()=>P});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(6949),h=t(7484),A=t(3630),C=t(3098),v=t(5e3);let T=(()=>{class d{}return d.\u0275fac=function(I){return new(I||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({imports:[[a.ez,f.WG,M.PV,h.vh,A.X,C.q6]]}),d})(),P=(()=>{class d{}return d.\u0275fac=function(I){return new(I||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,T]]}),d})()},2166:(S,y,t)=>{t.d(y,{p:()=>A});var a=t(5e3),o=t(1047),n=t(4182),_=t(9808),M=t(647);function f(C,v){if(1&C){const T=a.EpF();a.TgZ(0,"i",4),a.NdJ("click",function(){a.CHM(T);const d=a.oxw(2);return d.inputModel=void 0,d.onModelUpdated()}),a.qZA()}}function h(C,v){if(1&C&&a.YNc(0,f,1,0,"i",3),2&C){const T=a.oxw();a.Q6J("ngIf",T.inputModel)}}let A=(()=>{class C{constructor(){this.inputModelChange=new a.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return C.\u0275fac=function(T){return new(T||C)},C.\u0275cmp=a.Xpm({type:C,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","",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(T,P){if(1&T&&(a.TgZ(0,"nz-input-group",0),a.TgZ(1,"input",1),a.NdJ("ngModelChange",function(u){return P.inputModel=u})("ngModelChange",function(){return P.onModelUpdated()}),a.qZA(),a.qZA(),a.YNc(2,h,1,1,"ng-template",null,2,a.W1O)),2&T){const d=a.MAs(3);a.Q6J("nzSuffix",d),a.xp6(1),a.Q6J("placeholder",P.placeholderText?P.placeholderText:"")("ngModel",P.inputModel)}},directives:[o.gB,o.ke,o.Zp,n.Fj,n.JJ,n.On,_.O5,M.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),C})()},4125:(S,y,t)=>{t.d(y,{k:()=>f});var a=t(9808),o=t(1047),n=t(4182),_=t(647),M=t(5e3);let f=(()=>{class h{}return h.\u0275fac=function(C){return new(C||h)},h.\u0275mod=M.oAB({type:h}),h.\u0275inj=M.cJS({imports:[[a.ez,n.u5,o.o7,_.PV]]}),h})()},592:(S,y,t)=>{t.d(y,{x:()=>M});var a=t(9808),o=t(8481),n=t(647),_=t(5e3);let M=(()=>{class f{}return f.\u0275fac=function(A){return new(A||f)},f.\u0275mod=_.oAB({type:f}),f.\u0275inj=_.cJS({imports:[[a.ez,o.X,n.PV]]}),f})()},7946:(S,y,t)=>{t.d(y,{x:()=>C});var a=t(9808),o=t(897),n=t(8481),_=t(3610),M=t(8018),f=t(3580),h=t(9476),A=t(5e3);let C=(()=>{class v{}return v.\u0275fac=function(P){return new(P||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({imports:[[a.ez,n.X,_.$6,o.$,M.e,f.Q,h.L]]}),v})()},112:(S,y,t)=>{t.d(y,{u:()=>b});var a=t(5e3),o=t(9808),n=t(325),_=t(8481),M=t(3610),f=t(4850),h=t(712),A=t(7484),C=t(3098),v=t(8664),T=t(6906),P=t(6949);function d(l,x){if(1&l&&(a._UZ(0,"i",7),a._uU(1)),2&l){const p=a.oxw().ngIf;a.xp6(1),a.hij(" ",p.name," ")}}function u(l,x){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-variant-tag",10),a.qZA()),2&l){const p=x.$implicit;a.xp6(1),a.Q6J("variant",p.node)}}function I(l,x){if(1&l&&(a.TgZ(0,"nz-descriptions-item",8),a.YNc(1,u,2,1,"span",9),a.qZA()),2&l){const p=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",p.variants.edges)}}function Z(l,x){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-source-tag",12),a.qZA()),2&l){const p=x.$implicit;a.xp6(1),a.Q6J("source",p)}}function J(l,x){if(1&l&&(a.TgZ(0,"nz-descriptions-item",11),a.YNc(1,Z,2,1,"span",9),a.qZA()),2&l){const p=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",p.sources)}}function U(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,d,2,1,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,I,2,1,"nz-descriptions-item",5),a.YNc(7,J,2,1,"nz-descriptions-item",6),a.qZA(),a.qZA(),a.BQk()),2&l){const p=x.ngIf,E=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",E),a.xp6(3),a.hij(" ",p.description," "),a.xp6(1),a.Q6J("nzColumn",2),a.xp6(1),a.Q6J("ngIf",p.variants.edges.length>0),a.xp6(1),a.Q6J("ngIf",p.sources.length>0)}}let B=(()=>{class l{constructor(p){this.gql=p}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,f.U)(({data:p})=>p.variantGroup))}}return l.\u0275fac=function(p){return new(p||l)(a.Y36(h.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","","nzType","civic:variant-group"],["nzTitle","Variants","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"variant"],["nzTitle","Sources","nzSpan","2"],[3,"source"]],template:function(p,E){1&p&&(a.TgZ(0,"div",0),a.YNc(1,U,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&p&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,E.variantGroup$)))},directives:[o.O5,A.bd,C.R7,C.uj,o.sg,v.I,T.T],pipes:[P.fM],styles:["[_nghost-%COMP%]{display:block}"]}),l})();var G=t(647);function F(l,x){}function D(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,F,0,0,"ng-template",6),a.qZA(),a.BQk()),2&l){const p=a.oxw(),E=a.MAs(2);a.xp6(1),a.Q6J("routerLink",p.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",E)}}function m(l,x){}function V(l,x){if(1&l&&(a.TgZ(0,"nz-tag",9),a.YNc(1,m,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const p=a.MAs(2);a.oxw();const E=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p),a.xp6(1),a.Q6J("ngTemplateOutlet",E)}}function Q(l,x){if(1&l&&a._UZ(0,"cvc-variant-group-popover",11),2&l){const p=a.oxw(3);a.Q6J("variantGroupId",p.variantgroup.id)}}function W(l,x){if(1&l&&a.YNc(0,Q,1,1,"cvc-variant-group-popover",10),2&l){const p=a.oxw(2);a.Q6J("ngIf",p.enablePopover)}}function j(l,x){if(1&l&&(a.YNc(0,V,2,3,"nz-tag",7),a.YNc(1,W,1,1,"ng-template",null,8,a.W1O)),2&l){const p=a.oxw(),E=a.MAs(4);a.Q6J("ngIf",p.enablePopover)("ngIfElse",E)}}function R(l,x){}function $(l,x){if(1&l&&(a.TgZ(0,"nz-tag"),a.YNc(1,R,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const p=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",p)}}function K(l,x){}function H(l,x){if(1&l&&a.YNc(0,K,0,0,"ng-template",6),2&l){a.oxw();const p=a.MAs(2);a.Q6J("ngTemplateOutlet",p)}}function X(l,x){if(1&l&&(a._UZ(0,"i",12),a._uU(1)),2&l){const p=a.oxw();a.xp6(1),a.hij(" ",p.variantgroup.name,"\n")}}let b=(()=>{class l{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.variantgroup)throw new Error("Must pass a LinkableVariantgroup into the variantgroup tag component")}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(p,E){if(1&p&&(a.YNc(0,D,3,2,"ng-container",0),a.YNc(1,j,3,2,"ng-template",null,1,a.W1O),a.YNc(3,$,2,1,"ng-template",null,2,a.W1O),a.YNc(5,H,1,1,"ng-template",null,3,a.W1O),a.YNc(7,X,2,1,"ng-template",null,4,a.W1O)),2&p){const w=a.MAs(6);a.Q6J("ngIf",E.linked)("ngIfElse",w)}},directives:[o.O5,n.yS,o.tP,_.j,M.lU,B,G.Ls],styles:[""]}),l})()},7677:(S,y,t)=>{t.d(y,{G:()=>d});var a=t(9808),o=t(325),n=t(3610),_=t(8481),M=t(647),f=t(9779),h=t(4867),A=t(7484),C=t(3098),v=t(6949),T=t(5e3);let P=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=T.oAB({type:u}),u.\u0275inj=T.cJS({imports:[[a.ez,v.WG,A.vh,C.q6,f.s,h.Q]]}),u})(),d=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=T.oAB({type:u}),u.\u0275inj=T.cJS({imports:[[a.ez,o.Bz,n.$6,_.X,M.PV,P]]}),u})()},8664:(S,y,t)=>{t.d(y,{I:()=>k});var a=t(6654),o=t(5e3),n=t(9808),_=t(325),M=t(8481),f=t(3610),h=t(4850),A=t(712),C=t(7484),v=t(647),T=t(3193),P=t(3098),d=t(6550),u=t(1894),I=t(8144),Z=t(6949);function J(i,z){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const c=o.oxw().ngIf;o.xp6(1),o.hij(" ",c.name," ")}}function U(i,z){if(1&i&&o._UZ(0,"cvc-gene-tag",14),2&i){const c=o.oxw().ngIf;o.Q6J("enablePopover",!1)("gene",c.gene)}}function B(i,z){1&i&&(o.TgZ(0,"span"),o._uU(1,",\xa0"),o.qZA())}function G(i,z){if(1&i&&(o.TgZ(0,"span"),o._uU(1),o.YNc(2,B,2,0,"span",1),o.qZA()),2&i){const c=z.$implicit,O=z.last;o.xp6(1),o.hij(" ",c,""),o.xp6(1),o.Q6J("ngIf",!O)}}function F(i,z){if(1&i&&(o.TgZ(0,"nz-descriptions-item",15),o.YNc(1,G,3,2,"span",16),o.qZA()),2&i){const c=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",c.variantAliases)}}function D(i,z){if(1&i&&(o.TgZ(0,"nz-descriptions-item",17),o.TgZ(1,"cvc-link-tag",18),o._uU(2),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.xp6(1),o.MGl("href","https://reg.genome.network/allele/",c.alleleRegistryId,".html"),o.xp6(1),o.hij(" ",c.alleleRegistryId," ")}}function m(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",20),o._UZ(2,"i",21),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/flags"),o.xp6(3),o.hij(" Flags (",c.flags.totalCount,") ")}}function V(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",22),o._UZ(2,"i",23),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/revisions"),o.xp6(3),o.hij(" Revisions (",c.revisions.totalCount,") ")}}function Q(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",24),o._UZ(2,"i",25),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/comments"),o.xp6(3),o.hij(" Comments (",c.comments.totalCount,") ")}}function W(i,z){if(1&i&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,J,2,1,"ng-template",null,3,o.W1O),o.YNc(4,U,1,2,"ng-template",null,4,o.W1O),o.TgZ(6,"nz-descriptions",5),o.YNc(7,F,2,1,"nz-descriptions-item",6),o.YNc(8,D,3,2,"nz-descriptions-item",7),o.TgZ(9,"nz-descriptions-item",8),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"nz-row",9),o.TgZ(12,"nz-col",10),o.TgZ(13,"nz-space",11),o.YNc(14,m,4,2,"a",12),o.YNc(15,V,4,2,"a",12),o.YNc(16,Q,4,2,"a",12),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&i){const c=z.ngIf,O=o.MAs(3),L=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",O)("nzExtra",L),o.xp6(5),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",c.variantAliases.length>0),o.xp6(1),o.Q6J("ngIf",c.alleleRegistryId),o.xp6(2),o.hij(" ",c.evidenceItems.totalCount," ")}}let j=(()=>{class i{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,h.U)(({data:c})=>c.variant))}}return i.\u0275fac=function(c){return new(c||i)(o.Y36(A.ZYZ))},i.\u0275cmp=o.Xpm({type:i,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(c,O){1&c&&(o.TgZ(0,"div",0),o.YNc(1,W,17,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&c&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,O.variant$)))},directives:[n.O5,C.bd,v.Ls,T.H,P.R7,P.uj,n.sg,d.l,u.SK,u.t3,I.NU,I.$1,_.yS,M.j],pipes:[Z.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}"]}),i})();function R(i,z){}function $(i,z){if(1&i&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,R,0,0,"ng-template",6),o.qZA(),o.BQk()),2&i){const c=o.oxw(),O=o.MAs(2);o.xp6(1),o.Q6J("routerLink",c.variant.link),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function K(i,z){}function H(i,z){if(1&i){const c=o.EpF();o.TgZ(0,"nz-tag",9),o.NdJ("nzOnClose",function(L){return o.CHM(c),o.oxw(2).itemClosed(L)}),o.YNc(1,K,0,0,"ng-template",6),o.qZA()}if(2&i){o.oxw();const c=o.MAs(2),O=o.oxw(),L=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",O.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",O.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",L)}}function X(i,z){if(1&i&&o._UZ(0,"cvc-variant-popover",11),2&i){const c=o.oxw(3);o.Q6J("variantId",c.variant.id)}}function b(i,z){if(1&i&&o.YNc(0,X,1,1,"cvc-variant-popover",10),2&i){const c=o.oxw(2);o.Q6J("ngIf",c.enablePopover)}}function l(i,z){if(1&i&&(o.YNc(0,H,2,4,"nz-tag",7),o.YNc(1,b,1,1,"ng-template",null,8,o.W1O)),2&i){const c=o.oxw(),O=o.MAs(4);o.Q6J("ngIf",c.enablePopover)("ngIfElse",O)}}function x(i,z){}function p(i,z){if(1&i){const c=o.EpF();o.TgZ(0,"nz-tag",12),o.NdJ("nzOnClose",function(L){return o.CHM(c),o.oxw().itemClosed(L)}),o.YNc(1,x,0,0,"ng-template",6),o.qZA()}if(2&i){const c=o.oxw(),O=o.MAs(8);o.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function E(i,z){}function w(i,z){if(1&i&&o.YNc(0,E,0,0,"ng-template",6),2&i){o.oxw();const c=o.MAs(2);o.Q6J("ngTemplateOutlet",c)}}function q(i,z){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const c=o.oxw();o.xp6(1),o.hij(" ",c.variant.name,"\n")}}let k=(()=>{class i extends a.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=o.Xpm({type:i,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[o.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(c,O){if(1&c&&(o.YNc(0,$,3,2,"ng-container",0),o.YNc(1,l,3,2,"ng-template",null,1,o.W1O),o.YNc(3,p,2,2,"ng-template",null,2,o.W1O),o.YNc(5,w,1,1,"ng-template",null,3,o.W1O),o.YNc(7,q,2,1,"ng-template",null,4,o.W1O)),2&c){const L=o.MAs(6);o.Q6J("ngIf",O.linked)("ngIfElse",L)}},directives:[n.O5,_.yS,n.tP,M.j,f.lU,j,v.Ls],styles:[""]}),i})()},4867:(S,y,t)=>{t.d(y,{Q:()=>I});var a=t(9808),o=t(325),n=t(8481),_=t(647),M=t(3610),f=t(6949),h=t(7484),A=t(1894),C=t(3098),v=t(8144),T=t(3309),P=t(3630),d=t(5e3);let u=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=d.oAB({type:Z}),Z.\u0275inj=d.cJS({imports:[[a.ez,o.Bz,f.WG,h.vh,A.Jb,C.q6,n.X,_.PV,v.zf,T.U,P.X]]}),Z})(),I=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=d.oAB({type:Z}),Z.\u0275inj=d.cJS({imports:[[a.ez,o.Bz,n.X,M.$6,_.PV,u]]}),Z})()},3154:(S,y,t)=>{t.d(y,{_:()=>o});var a=t(712);function o(n){var _;switch(n.value){case"ascend":_=a.SrV.Asc;break;case"descend":_=a.SrV.Desc;break;default:return}return{column:n.key,direction:_}}},79:(S,y,t)=>{t.r(y),t.d(y,{VariantGroupsModule:()=>Zn});var a=t(9808),o=t(325),n=t(5e3),_=t(9350),M=t(8992),f=t(6949),h=t(6042),A=t(2643),C=t(2683),v=t(647),T=t(1945),P=t(1894),d=t(3618),u=t(8144),I=t(712),Z=t(3154),J=t(8929),U=t(4850),B=t(373),G=t(1059),F=t(2986),D=t(13),m=t(7484),V=t(1132),Q=t(404),W=t(2166),j=t(112);function R(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.$implicit,s=g.last;n.xp6(1),n.AsE(" ",r,"",s?"":", "," ")}}function $(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.$implicit,s=g.last;n.xp6(1),n.AsE(" ",r,"",s?"":", "," ")}}function K(e,g){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-variant-group-tag",17),n.qZA(),n.TgZ(3,"td"),n.TgZ(4,"p",18),n.YNc(5,R,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(6,"td"),n.TgZ(7,"p",18),n.YNc(8,$,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.qZA(),n.qZA()),2&e){const r=g.$implicit;n.xp6(2),n.Q6J("variantgroup",r),n.xp6(3),n.Q6J("ngForOf",r.variantNames),n.xp6(3),n.Q6J("ngForOf",r.geneNames),n.xp6(2),n.hij(" ",r.variantCount," "),n.xp6(2),n.hij(" ",r.evidenceItemCount," ")}}function H(e,g){if(1&e){const r=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(r);const N=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(N.endCursor)}),n._uU(1),n.qZA()}if(2&e){const r=n.oxw(4);n.xp6(1),n.hij("Load ",r.pageSize," More")}}function X(e,g){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td",19),n.YNc(2,H,2,1,"button",20),n.qZA(),n.qZA()),2&e){const r=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",r.hasNextPage)}}function b(e,g){if(1&e&&(n.ynx(0),n.YNc(1,X,3,1,"tr",1),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.hasNextPage)}}function l(e,g){if(1&e){const r=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",3,4),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",5),n.NdJ("nzSortOrderChange",function(N){return n.CHM(r),n.oxw().onSortChanged(N)}),n.TgZ(6,"tr"),n.TgZ(7,"th",6),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",7),n._uU(10," Variants "),n.qZA(),n.TgZ(11,"th",7),n._uU(12," Genes "),n.qZA(),n.TgZ(13,"th",8),n._UZ(14,"i",9),n.qZA(),n.TgZ(15,"th",10),n._UZ(16,"i",11),n.qZA(),n.qZA(),n.TgZ(17,"tr"),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().nameInput=N}),n.qZA(),n.qZA(),n.TgZ(20,"th"),n.TgZ(21,"cvc-clearable-input-filter",13),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().variantNameInput=N}),n.qZA(),n.qZA(),n.TgZ(22,"th"),n.TgZ(23,"cvc-clearable-input-filter",14),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().geneNameInput=N}),n.qZA(),n.qZA(),n._UZ(24,"th"),n._UZ(25,"th"),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,K,13,5,"tr",15),n.YNc(28,b,2,1,"ng-container",16),n.qZA(),n.qZA(),n.BQk()}if(2&e){const r=n.MAs(2),s=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,18,s.variantGroups$))("nzLoading",n.lcZ(4,20,s.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.Name)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.VariantCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortFn",!0),n.xp6(4),n.Q6J("inputModel",s.nameInput)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.variantNameInput)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.geneNameInput)("onInputChanged",s.textInputCallback),n.xp6(4),n.Q6J("ngForOf",r.data),n.xp6(1),n.Q6J("ngrxLet",s.pageInfo$)}}function x(e,g){}function p(e,g){if(1&e&&(n.ynx(0),n.YNc(1,x,0,0,"ng-template",25),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",r.cvcTitleTemplate)}}function E(e,g){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.hij(" ",r.cvcTitle," ")}}function w(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=n.oxw().ngIf;n.xp6(1),n.hij(" of ",r," filtered")}}function q(e,g){if(1&e&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,w,2,1,"span",1),n._uU(3,") "),n.qZA()),2&e){const r=g.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&r{class e{constructor(r){this.gql=r,this.debouncedQuery=new J.xQ,this.pageSize=25,this.sortColumns=I.FB1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize}),this.data$=this.queryRef.valueChanges.pipe((0,U.U)(r=>({data:r.data,loading:r.loading,networkStatus:r.networkStatus}))),this.isLoading$=this.data$.pipe((0,B.j)("loading"),(0,G.O)(!0)),this.variantGroups$=this.data$.pipe((0,B.j)("data","browseVariantGroups","edges"),(0,U.U)(r=>r.map(s=>s.node))),this.pageInfo$=this.data$.pipe((0,B.j)("data","browseVariantGroups","pageInfo")),this.filteredCount$=this.data$.pipe((0,B.j)("data","browseVariantGroups","filteredCount")),this.filteredCount$.pipe((0,F.q)(1)).subscribe(r=>this.totalCount=r),this.filteredCount$.subscribe(r=>{rr&&(this.visibleCount=r))}),this.debouncedQuery.pipe((0,D.b)(500)).subscribe(r=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var r;this.loadedPages=1,null===(r=this.queryRef)||void 0===r||r.refetch({name:this.nameInput,geneNames:this.geneNameInput,variantNames:this.variantNameInput})}onSortChanged(r){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,Z._)(r)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(r){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.pageSize,after:r}}),this.loadedPages+=1}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(I.qf4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-variant-groups-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:5,vars:6,consts:[[3,"nzTitle"],[4,"ngIf"],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["variantGroupsTable",""],[3,"nzSortOrderChange"],["nzWidth","20%",3,"nzColumnKey","nzSortFn"],["nzWidth","30%"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:variant"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["placeholderText","Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Variant Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],[3,"variantgroup"],["nz-typography",""],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:variantgroup"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(r,s){if(1&r&&(n.TgZ(0,"nz-card",0),n.YNc(1,l,29,22,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,i,7,6,"ng-template",null,2,n.W1O)),2&r){const N=n.MAs(4);n.Q6J("nzTitle",N),n.xp6(1),n.Q6J("ngIf",n.VKq(4,z,n.lcZ(2,2,s.data$)))}},directives:[m.bd,a.O5,V.N8,V.Om,V.$Z,V.Uo,V._C,V.qD,Q.SY,C.w,v.Ls,W.p,V.p0,a.sg,j.u,d.ZU,f.eJ,h.ix,A.dQ,a.tP],pipes:[f.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function O(e,g){1&e&&(n.TgZ(0,"button",18),n._UZ(1,"i",19),n._uU(2," Submit New Variant Group "),n.qZA())}function L(e,g){if(1&e&&(n.ynx(0),n.YNc(1,O,3,0,"button",17),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)}}function nn(e,g){if(1&e&&n.YNc(0,L,2,1,"ng-container",16),2&e){const r=n.oxw();n.Q6J("ngrxLet",r.viewer$)}}function on(e,g){1&e&&(n.TgZ(0,"a",20),n._UZ(1,"i",21),n._uU(2," View Variant Group Model Docs "),n.qZA())}function an(e,g){1&e&&(n.TgZ(0,"a",22),n._UZ(1,"i",21),n._uU(2," View Variant Group Curation Docs "),n.qZA())}const en=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-variant-groups"]],decls:1,vars:0,template:function(r,s){1&r&&n._UZ(0,"router-outlet")},directives:[o.lC],styles:[""]}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class e{constructor(r){this.viewerService=r,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(_.a))},e.\u0275cmp=n.Xpm({type:e,selectors:[["variant-groups-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["vargroupActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:variantgroup"],["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/model/variant_groups.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variant Groups"],[4,"ngrxLet"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock",""]],template:function(r,s){if(1&r&&(n._UZ(0,"cvc-section-navigation",0),n.YNc(1,nn,1,1,"ng-template",null,1,n.W1O),n.TgZ(3,"nz-page-header",2),n.TgZ(4,"nz-page-header-content"),n.TgZ(5,"nz-row",3),n.TgZ(6,"nz-col",4),n._UZ(7,"i",5),n.qZA(),n.TgZ(8,"nz-col",6),n.TgZ(9,"h2"),n._uU(10,"Variant Groups"),n.qZA(),n.TgZ(11,"p",7),n._uU(12,"Variant Groups provide user-defined grouping of Variants within and between genes based on unifying characteristics."),n.qZA(),n.qZA(),n.TgZ(13,"nz-col",8),n.TgZ(14,"nz-space",9),n.YNc(15,on,3,0,"a",10),n.YNc(16,an,3,0,"a",11),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"div",12),n.TgZ(18,"div",13),n.TgZ(19,"div",14),n._UZ(20,"cvc-variant-groups-table",15),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&r){const N=n.MAs(2);n.Q6J("actionsTpl",N),n.xp6(11),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24)}},directives:[M.I,f.eJ,a.O5,h.ix,A.dQ,o.rH,C.w,v.Ls,T.$O,T.u5,P.SK,P.t3,d.ZU,u.NU,u.$1,c],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{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}"]}),e})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(1679),t.e(3021),t.e(8776),t.e(7598),t.e(885)]).then(t.bind(t,885)).then(e=>e.VariantGroupsAddModule),data:{breadcrumb:"Add"}},{path:":variantGroupId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(5193),t.e(9001),t.e(2826),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(2043),t.e(3482),t.e(392),t.e(1750),t.e(5787),t.e(8482)]).then(t.bind(t,8482)).then(e=>e.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(1679),t.e(3021),t.e(8776),t.e(7598),t.e(605)]).then(t.bind(t,605)).then(e=>e.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let rn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[o.Bz.forChild(en)],o.Bz]}),e})();var ln=t(4182),cn=t(4546),pn=t(1047),sn=t(8054),tn=t(4125),gn=t(9444),dn=t(3309),vn=t(4867),un=t(3580),mn=t(8018),fn=t(8369),Cn=t(209),zn=t(897),hn=t(7946),Tn=t(7677);let _n=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,ln.u5,f.WG,h.sL,V.HQ,cn.U5,pn.o7,v.PV,d.ZJ,Q.cg,sn.LV,v.PV,m.vh,d.ZJ,tn.k,gn.s,dn.U,vn.Q,un.Q,mn.e,fn.W,Cn.i,zn.$,hn.x,tn.k,Tn.G]]}),e})();var xn=t(5630);let Mn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,o.Bz,f.WG,h.sL,P.Jb,T.KJ,v.PV,d.ZJ,u.zf,_n,xn.D]]}),e})(),Zn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,rn,Mn]]}),e})()}}]);
\ No newline at end of file
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[79],{8369:(S,y,t)=>{t.d(y,{W:()=>D});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(7484),h=t(3098),A=t(3309),C=t(4867),v=t(6286),T=t(8018),P=t(6949),d=t(9444),u=t(1894),I=t(8144),Z=t(3580),J=t(8625),U=t(7026),B=t(592),G=t(5e3);let F=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,P.WG,f.vh,h.q6,M.PV,u.Jb,I.zf,n.X,A.U,Z.Q,C.Q,v.y,T.e,d.s,B.x,J.$L.forChild({formatter:{useClass:U.x,provide:J.KP}})]]}),m})(),D=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,F,d.s]]}),m})()},209:(S,y,t)=>{t.d(y,{i:()=>D});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(7484),h=t(3309),A=t(4867),C=t(1894),v=t(3098),T=t(8018),P=t(3580),d=t(6286),u=t(6949),I=t(8144),Z=t(9444),J=t(9779),U=t(592),B=t(3618),G=t(5e3);let F=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,u.WG,M.PV,f.vh,C.Jb,v.q6,n.X,I.zf,B.ZJ,Z.s,T.e,P.Q,h.U,A.Q,d.y,J.s,U.x]]}),m})(),D=(()=>{class m{}return m.\u0275fac=function(Q){return new(Q||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,F,Z.s]]}),m})()},6286:(S,y,t)=>{t.d(y,{y:()=>P});var a=t(9808),o=t(325),n=t(8481),_=t(3610),M=t(647),f=t(6949),h=t(7484),A=t(3630),C=t(3098),v=t(5e3);let T=(()=>{class d{}return d.\u0275fac=function(I){return new(I||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({imports:[[a.ez,f.WG,M.PV,h.vh,A.X,C.q6]]}),d})(),P=(()=>{class d{}return d.\u0275fac=function(I){return new(I||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({imports:[[a.ez,o.Bz,n.X,_.$6,M.PV,T]]}),d})()},2166:(S,y,t)=>{t.d(y,{p:()=>A});var a=t(5e3),o=t(1047),n=t(4182),_=t(9808),M=t(647);function f(C,v){if(1&C){const T=a.EpF();a.TgZ(0,"i",4),a.NdJ("click",function(){a.CHM(T);const d=a.oxw(2);return d.inputModel=void 0,d.onModelUpdated()}),a.qZA()}}function h(C,v){if(1&C&&a.YNc(0,f,1,0,"i",3),2&C){const T=a.oxw();a.Q6J("ngIf",T.inputModel)}}let A=(()=>{class C{constructor(){this.inputModelChange=new a.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return C.\u0275fac=function(T){return new(T||C)},C.\u0275cmp=a.Xpm({type:C,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","",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(T,P){if(1&T&&(a.TgZ(0,"nz-input-group",0),a.TgZ(1,"input",1),a.NdJ("ngModelChange",function(u){return P.inputModel=u})("ngModelChange",function(){return P.onModelUpdated()}),a.qZA(),a.qZA(),a.YNc(2,h,1,1,"ng-template",null,2,a.W1O)),2&T){const d=a.MAs(3);a.Q6J("nzSuffix",d),a.xp6(1),a.Q6J("placeholder",P.placeholderText?P.placeholderText:"")("ngModel",P.inputModel)}},directives:[o.gB,o.ke,o.Zp,n.Fj,n.JJ,n.On,_.O5,M.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),C})()},4125:(S,y,t)=>{t.d(y,{k:()=>f});var a=t(9808),o=t(1047),n=t(4182),_=t(647),M=t(5e3);let f=(()=>{class h{}return h.\u0275fac=function(C){return new(C||h)},h.\u0275mod=M.oAB({type:h}),h.\u0275inj=M.cJS({imports:[[a.ez,n.u5,o.o7,_.PV]]}),h})()},592:(S,y,t)=>{t.d(y,{x:()=>M});var a=t(9808),o=t(8481),n=t(647),_=t(5e3);let M=(()=>{class f{}return f.\u0275fac=function(A){return new(A||f)},f.\u0275mod=_.oAB({type:f}),f.\u0275inj=_.cJS({imports:[[a.ez,o.X,n.PV]]}),f})()},7946:(S,y,t)=>{t.d(y,{x:()=>C});var a=t(9808),o=t(897),n=t(8481),_=t(3610),M=t(8018),f=t(3580),h=t(9476),A=t(5e3);let C=(()=>{class v{}return v.\u0275fac=function(P){return new(P||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({imports:[[a.ez,n.X,_.$6,o.$,M.e,f.Q,h.L]]}),v})()},112:(S,y,t)=>{t.d(y,{u:()=>b});var a=t(5e3),o=t(9808),n=t(325),_=t(8481),M=t(3610),f=t(4850),h=t(712),A=t(7484),C=t(3098),v=t(8664),T=t(6906),P=t(6949);function d(l,x){if(1&l&&(a._UZ(0,"i",7),a._uU(1)),2&l){const p=a.oxw().ngIf;a.xp6(1),a.hij(" ",p.name," ")}}function u(l,x){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-variant-tag",10),a.qZA()),2&l){const p=x.$implicit;a.xp6(1),a.Q6J("variant",p.node)}}function I(l,x){if(1&l&&(a.TgZ(0,"nz-descriptions-item",8),a.YNc(1,u,2,1,"span",9),a.qZA()),2&l){const p=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",p.variants.edges)}}function Z(l,x){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-source-tag",12),a.qZA()),2&l){const p=x.$implicit;a.xp6(1),a.Q6J("source",p)}}function J(l,x){if(1&l&&(a.TgZ(0,"nz-descriptions-item",11),a.YNc(1,Z,2,1,"span",9),a.qZA()),2&l){const p=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",p.sources)}}function U(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,d,2,1,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,I,2,1,"nz-descriptions-item",5),a.YNc(7,J,2,1,"nz-descriptions-item",6),a.qZA(),a.qZA(),a.BQk()),2&l){const p=x.ngIf,E=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",E),a.xp6(3),a.hij(" ",p.description," "),a.xp6(1),a.Q6J("nzColumn",2),a.xp6(1),a.Q6J("ngIf",p.variants.edges.length>0),a.xp6(1),a.Q6J("ngIf",p.sources.length>0)}}let B=(()=>{class l{constructor(p){this.gql=p}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,f.U)(({data:p})=>p.variantGroup))}}return l.\u0275fac=function(p){return new(p||l)(a.Y36(h.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","","nzType","civic:variant-group"],["nzTitle","Variants","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"variant"],["nzTitle","Sources","nzSpan","2"],[3,"source"]],template:function(p,E){1&p&&(a.TgZ(0,"div",0),a.YNc(1,U,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&p&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,E.variantGroup$)))},directives:[o.O5,A.bd,C.R7,C.uj,o.sg,v.I,T.T],pipes:[P.fM],styles:["[_nghost-%COMP%]{display:block}"]}),l})();var G=t(647);function F(l,x){}function D(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,F,0,0,"ng-template",6),a.qZA(),a.BQk()),2&l){const p=a.oxw(),E=a.MAs(2);a.xp6(1),a.Q6J("routerLink",p.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",E)}}function m(l,x){}function V(l,x){if(1&l&&(a.TgZ(0,"nz-tag",9),a.YNc(1,m,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const p=a.MAs(2);a.oxw();const E=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p),a.xp6(1),a.Q6J("ngTemplateOutlet",E)}}function Q(l,x){if(1&l&&a._UZ(0,"cvc-variant-group-popover",11),2&l){const p=a.oxw(3);a.Q6J("variantGroupId",p.variantgroup.id)}}function W(l,x){if(1&l&&a.YNc(0,Q,1,1,"cvc-variant-group-popover",10),2&l){const p=a.oxw(2);a.Q6J("ngIf",p.enablePopover)}}function j(l,x){if(1&l&&(a.YNc(0,V,2,3,"nz-tag",7),a.YNc(1,W,1,1,"ng-template",null,8,a.W1O)),2&l){const p=a.oxw(),E=a.MAs(4);a.Q6J("ngIf",p.enablePopover)("ngIfElse",E)}}function R(l,x){}function $(l,x){if(1&l&&(a.TgZ(0,"nz-tag"),a.YNc(1,R,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const p=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",p)}}function K(l,x){}function H(l,x){if(1&l&&a.YNc(0,K,0,0,"ng-template",6),2&l){a.oxw();const p=a.MAs(2);a.Q6J("ngTemplateOutlet",p)}}function X(l,x){if(1&l&&(a._UZ(0,"i",12),a._uU(1)),2&l){const p=a.oxw();a.xp6(1),a.hij(" ",p.variantgroup.name,"\n")}}let b=(()=>{class l{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.variantgroup)throw new Error("Must pass a LinkableVariantgroup into the variantgroup tag component")}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(p,E){if(1&p&&(a.YNc(0,D,3,2,"ng-container",0),a.YNc(1,j,3,2,"ng-template",null,1,a.W1O),a.YNc(3,$,2,1,"ng-template",null,2,a.W1O),a.YNc(5,H,1,1,"ng-template",null,3,a.W1O),a.YNc(7,X,2,1,"ng-template",null,4,a.W1O)),2&p){const w=a.MAs(6);a.Q6J("ngIf",E.linked)("ngIfElse",w)}},directives:[o.O5,n.yS,o.tP,_.j,M.lU,B,G.Ls],styles:[""]}),l})()},7677:(S,y,t)=>{t.d(y,{G:()=>d});var a=t(9808),o=t(325),n=t(3610),_=t(8481),M=t(647),f=t(9779),h=t(4867),A=t(7484),C=t(3098),v=t(6949),T=t(5e3);let P=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=T.oAB({type:u}),u.\u0275inj=T.cJS({imports:[[a.ez,v.WG,A.vh,C.q6,f.s,h.Q]]}),u})(),d=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=T.oAB({type:u}),u.\u0275inj=T.cJS({imports:[[a.ez,o.Bz,n.$6,_.X,M.PV,P]]}),u})()},8664:(S,y,t)=>{t.d(y,{I:()=>k});var a=t(6654),o=t(5e3),n=t(9808),_=t(325),M=t(8481),f=t(3610),h=t(4850),A=t(712),C=t(7484),v=t(647),T=t(3193),P=t(3098),d=t(6550),u=t(1894),I=t(8144),Z=t(6949);function J(i,z){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const c=o.oxw().ngIf;o.xp6(1),o.hij(" ",c.name," ")}}function U(i,z){if(1&i&&o._UZ(0,"cvc-gene-tag",14),2&i){const c=o.oxw().ngIf;o.Q6J("enablePopover",!1)("gene",c.gene)}}function B(i,z){1&i&&(o.TgZ(0,"span"),o._uU(1,",\xa0"),o.qZA())}function G(i,z){if(1&i&&(o.TgZ(0,"span"),o._uU(1),o.YNc(2,B,2,0,"span",1),o.qZA()),2&i){const c=z.$implicit,O=z.last;o.xp6(1),o.hij(" ",c,""),o.xp6(1),o.Q6J("ngIf",!O)}}function F(i,z){if(1&i&&(o.TgZ(0,"nz-descriptions-item",15),o.YNc(1,G,3,2,"span",16),o.qZA()),2&i){const c=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",c.variantAliases)}}function D(i,z){if(1&i&&(o.TgZ(0,"nz-descriptions-item",17),o.TgZ(1,"cvc-link-tag",18),o._uU(2),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.xp6(1),o.MGl("href","https://reg.genome.network/allele/",c.alleleRegistryId,".html"),o.xp6(1),o.hij(" ",c.alleleRegistryId," ")}}function m(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",20),o._UZ(2,"i",21),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/flags"),o.xp6(3),o.hij(" Flags (",c.flags.totalCount,") ")}}function V(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",22),o._UZ(2,"i",23),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/revisions"),o.xp6(3),o.hij(" Revisions (",c.revisions.totalCount,") ")}}function Q(i,z){if(1&i&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",24),o._UZ(2,"i",25),o._uU(3),o.qZA(),o.qZA()),2&i){const c=o.oxw().ngIf;o.MGl("routerLink","/variants/",c.id,"/comments"),o.xp6(3),o.hij(" Comments (",c.comments.totalCount,") ")}}function W(i,z){if(1&i&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,J,2,1,"ng-template",null,3,o.W1O),o.YNc(4,U,1,2,"ng-template",null,4,o.W1O),o.TgZ(6,"nz-descriptions",5),o.YNc(7,F,2,1,"nz-descriptions-item",6),o.YNc(8,D,3,2,"nz-descriptions-item",7),o.TgZ(9,"nz-descriptions-item",8),o._uU(10),o.qZA(),o.qZA(),o.TgZ(11,"nz-row",9),o.TgZ(12,"nz-col",10),o.TgZ(13,"nz-space",11),o.YNc(14,m,4,2,"a",12),o.YNc(15,V,4,2,"a",12),o.YNc(16,Q,4,2,"a",12),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&i){const c=z.ngIf,O=o.MAs(3),L=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",O)("nzExtra",L),o.xp6(5),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",c.variantAliases.length>0),o.xp6(1),o.Q6J("ngIf",c.alleleRegistryId),o.xp6(2),o.hij(" ",c.evidenceItems.totalCount," ")}}let j=(()=>{class i{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,h.U)(({data:c})=>c.variant))}}return i.\u0275fac=function(c){return new(c||i)(o.Y36(A.ZYZ))},i.\u0275cmp=o.Xpm({type:i,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(c,O){1&c&&(o.TgZ(0,"div",0),o.YNc(1,W,17,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&c&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,O.variant$)))},directives:[n.O5,C.bd,v.Ls,T.H,P.R7,P.uj,n.sg,d.l,u.SK,u.t3,I.NU,I.$1,_.yS,M.j],pipes:[Z.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}"]}),i})();function R(i,z){}function $(i,z){if(1&i&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,R,0,0,"ng-template",6),o.qZA(),o.BQk()),2&i){const c=o.oxw(),O=o.MAs(2);o.xp6(1),o.Q6J("routerLink",c.variant.link),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function K(i,z){}function H(i,z){if(1&i){const c=o.EpF();o.TgZ(0,"nz-tag",9),o.NdJ("nzOnClose",function(L){return o.CHM(c),o.oxw(2).itemClosed(L)}),o.YNc(1,K,0,0,"ng-template",6),o.qZA()}if(2&i){o.oxw();const c=o.MAs(2),O=o.oxw(),L=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",O.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",O.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",L)}}function X(i,z){if(1&i&&o._UZ(0,"cvc-variant-popover",11),2&i){const c=o.oxw(3);o.Q6J("variantId",c.variant.id)}}function b(i,z){if(1&i&&o.YNc(0,X,1,1,"cvc-variant-popover",10),2&i){const c=o.oxw(2);o.Q6J("ngIf",c.enablePopover)}}function l(i,z){if(1&i&&(o.YNc(0,H,2,4,"nz-tag",7),o.YNc(1,b,1,1,"ng-template",null,8,o.W1O)),2&i){const c=o.oxw(),O=o.MAs(4);o.Q6J("ngIf",c.enablePopover)("ngIfElse",O)}}function x(i,z){}function p(i,z){if(1&i){const c=o.EpF();o.TgZ(0,"nz-tag",12),o.NdJ("nzOnClose",function(L){return o.CHM(c),o.oxw().itemClosed(L)}),o.YNc(1,x,0,0,"ng-template",6),o.qZA()}if(2&i){const c=o.oxw(),O=o.MAs(8);o.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",O)}}function E(i,z){}function w(i,z){if(1&i&&o.YNc(0,E,0,0,"ng-template",6),2&i){o.oxw();const c=o.MAs(2);o.Q6J("ngTemplateOutlet",c)}}function q(i,z){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const c=o.oxw();o.xp6(1),o.hij(" ",c.variant.name,"\n")}}let k=(()=>{class i extends a.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=o.Xpm({type:i,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[o.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(c,O){if(1&c&&(o.YNc(0,$,3,2,"ng-container",0),o.YNc(1,l,3,2,"ng-template",null,1,o.W1O),o.YNc(3,p,2,2,"ng-template",null,2,o.W1O),o.YNc(5,w,1,1,"ng-template",null,3,o.W1O),o.YNc(7,q,2,1,"ng-template",null,4,o.W1O)),2&c){const L=o.MAs(6);o.Q6J("ngIf",O.linked)("ngIfElse",L)}},directives:[n.O5,_.yS,n.tP,M.j,f.lU,j,v.Ls],styles:[""]}),i})()},4867:(S,y,t)=>{t.d(y,{Q:()=>I});var a=t(9808),o=t(325),n=t(8481),_=t(647),M=t(3610),f=t(6949),h=t(7484),A=t(1894),C=t(3098),v=t(8144),T=t(3309),P=t(3630),d=t(5e3);let u=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=d.oAB({type:Z}),Z.\u0275inj=d.cJS({imports:[[a.ez,o.Bz,f.WG,h.vh,A.Jb,C.q6,n.X,_.PV,v.zf,T.U,P.X]]}),Z})(),I=(()=>{class Z{}return Z.\u0275fac=function(U){return new(U||Z)},Z.\u0275mod=d.oAB({type:Z}),Z.\u0275inj=d.cJS({imports:[[a.ez,o.Bz,n.X,M.$6,_.PV,u]]}),Z})()},3154:(S,y,t)=>{t.d(y,{_:()=>o});var a=t(712);function o(n){var _;switch(n.value){case"ascend":_=a.SrV.Asc;break;case"descend":_=a.SrV.Desc;break;default:return}return{column:n.key,direction:_}}},79:(S,y,t)=>{t.r(y),t.d(y,{VariantGroupsModule:()=>Zn});var a=t(9808),o=t(325),n=t(5e3),_=t(9350),M=t(8992),f=t(6949),h=t(6042),A=t(2643),C=t(2683),v=t(647),T=t(1945),P=t(1894),d=t(3618),u=t(8144),I=t(712),Z=t(3154),J=t(8929),U=t(4850),B=t(373),G=t(1059),F=t(2986),D=t(13),m=t(7484),V=t(1132),Q=t(404),W=t(2166),j=t(112);function R(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.$implicit,s=g.last;n.xp6(1),n.AsE(" ",r,"",s?"":", "," ")}}function $(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.$implicit,s=g.last;n.xp6(1),n.AsE(" ",r,"",s?"":", "," ")}}function K(e,g){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-variant-group-tag",17),n.qZA(),n.TgZ(3,"td"),n.TgZ(4,"p",18),n.YNc(5,R,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(6,"td"),n.TgZ(7,"p",18),n.YNc(8,$,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.qZA(),n.qZA()),2&e){const r=g.$implicit;n.xp6(2),n.Q6J("variantgroup",r),n.xp6(3),n.Q6J("ngForOf",r.variantNames),n.xp6(3),n.Q6J("ngForOf",r.geneNames),n.xp6(2),n.hij(" ",r.variantCount," "),n.xp6(2),n.hij(" ",r.evidenceItemCount," ")}}function H(e,g){if(1&e){const r=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(r);const N=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(N.endCursor)}),n._uU(1),n.qZA()}if(2&e){const r=n.oxw(4);n.xp6(1),n.hij("Load ",r.pageSize," More")}}function X(e,g){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td",19),n.YNc(2,H,2,1,"button",20),n.qZA(),n.qZA()),2&e){const r=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",r.hasNextPage)}}function b(e,g){if(1&e&&(n.ynx(0),n.YNc(1,X,3,1,"tr",1),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.hasNextPage)}}function l(e,g){if(1&e){const r=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",3,4),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",5),n.NdJ("nzSortOrderChange",function(N){return n.CHM(r),n.oxw().onSortChanged(N)}),n.TgZ(6,"tr"),n.TgZ(7,"th",6),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",7),n._uU(10," Variants "),n.qZA(),n.TgZ(11,"th",7),n._uU(12," Genes "),n.qZA(),n.TgZ(13,"th",8),n._UZ(14,"i",9),n.qZA(),n.TgZ(15,"th",10),n._UZ(16,"i",11),n.qZA(),n.qZA(),n.TgZ(17,"tr"),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().nameInput=N}),n.qZA(),n.qZA(),n.TgZ(20,"th"),n.TgZ(21,"cvc-clearable-input-filter",13),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().variantNameInput=N}),n.qZA(),n.qZA(),n.TgZ(22,"th"),n.TgZ(23,"cvc-clearable-input-filter",14),n.NdJ("inputModelChange",function(N){return n.CHM(r),n.oxw().geneNameInput=N}),n.qZA(),n.qZA(),n._UZ(24,"th"),n._UZ(25,"th"),n.qZA(),n.qZA(),n.TgZ(26,"tbody"),n.YNc(27,K,13,5,"tr",15),n.YNc(28,b,2,1,"ng-container",16),n.qZA(),n.qZA(),n.BQk()}if(2&e){const r=n.MAs(2),s=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,18,s.variantGroups$))("nzLoading",n.lcZ(4,20,s.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.Name)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.VariantCount)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortFn",!0),n.xp6(4),n.Q6J("inputModel",s.nameInput)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.variantNameInput)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.geneNameInput)("onInputChanged",s.textInputCallback),n.xp6(4),n.Q6J("ngForOf",r.data),n.xp6(1),n.Q6J("ngrxLet",s.pageInfo$)}}function x(e,g){}function p(e,g){if(1&e&&(n.ynx(0),n.YNc(1,x,0,0,"ng-template",25),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",r.cvcTitleTemplate)}}function E(e,g){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.hij(" ",r.cvcTitle," ")}}function w(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=n.oxw().ngIf;n.xp6(1),n.hij(" of ",r," filtered")}}function q(e,g){if(1&e&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,w,2,1,"span",1),n._uU(3,") "),n.qZA()),2&e){const r=g.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&r{class e{constructor(r){this.gql=r,this.debouncedQuery=new J.xQ,this.pageSize=25,this.sortColumns=I.FB1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize}),this.data$=this.queryRef.valueChanges.pipe((0,U.U)(r=>({data:r.data,loading:r.loading,networkStatus:r.networkStatus}))),this.isLoading$=this.data$.pipe((0,B.j)("loading"),(0,G.O)(!0)),this.variantGroups$=this.data$.pipe((0,B.j)("data","browseVariantGroups","edges"),(0,U.U)(r=>r.map(s=>s.node))),this.pageInfo$=this.data$.pipe((0,B.j)("data","browseVariantGroups","pageInfo")),this.filteredCount$=this.data$.pipe((0,B.j)("data","browseVariantGroups","filteredCount")),this.filteredCount$.pipe((0,F.q)(1)).subscribe(r=>this.totalCount=r),this.filteredCount$.subscribe(r=>{rr&&(this.visibleCount=r))}),this.debouncedQuery.pipe((0,D.b)(500)).subscribe(r=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var r;this.loadedPages=1,null===(r=this.queryRef)||void 0===r||r.refetch({name:this.nameInput,geneNames:this.geneNameInput,variantNames:this.variantNameInput})}onSortChanged(r){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,Z._)(r)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(r){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.pageSize,after:r}}),this.loadedPages+=1}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(I.qf4))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-variant-groups-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:5,vars:6,consts:[[3,"nzTitle"],[4,"ngIf"],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["variantGroupsTable",""],[3,"nzSortOrderChange"],["nzWidth","20%",3,"nzColumnKey","nzSortFn"],["nzWidth","30%"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:variant"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["placeholderText","Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Variant Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],[3,"variantgroup"],["nz-typography",""],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:variantgroup"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(r,s){if(1&r&&(n.TgZ(0,"nz-card",0),n.YNc(1,l,29,22,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,i,7,6,"ng-template",null,2,n.W1O)),2&r){const N=n.MAs(4);n.Q6J("nzTitle",N),n.xp6(1),n.Q6J("ngIf",n.VKq(4,z,n.lcZ(2,2,s.data$)))}},directives:[m.bd,a.O5,V.N8,V.Om,V.$Z,V.Uo,V._C,V.qD,Q.SY,C.w,v.Ls,W.p,V.p0,a.sg,j.u,d.ZU,f.eJ,h.ix,A.dQ,a.tP],pipes:[f.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function O(e,g){1&e&&(n.TgZ(0,"button",18),n._UZ(1,"i",19),n._uU(2," Submit New Variant Group "),n.qZA())}function L(e,g){if(1&e&&(n.ynx(0),n.YNc(1,O,3,0,"button",17),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)}}function nn(e,g){if(1&e&&n.YNc(0,L,2,1,"ng-container",16),2&e){const r=n.oxw();n.Q6J("ngrxLet",r.viewer$)}}function on(e,g){1&e&&(n.TgZ(0,"a",20),n._UZ(1,"i",21),n._uU(2," View Variant Group Model Docs "),n.qZA())}function an(e,g){1&e&&(n.TgZ(0,"a",22),n._UZ(1,"i",21),n._uU(2," View Variant Group Curation Docs "),n.qZA())}const en=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-variant-groups"]],decls:1,vars:0,template:function(r,s){1&r&&n._UZ(0,"router-outlet")},directives:[o.lC],styles:[""]}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class e{constructor(r){this.viewerService=r,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(_.a))},e.\u0275cmp=n.Xpm({type:e,selectors:[["variant-groups-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["vargroupActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:variantgroup"],["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/model/variant_groups.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variant Groups"],[4,"ngrxLet"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock",""]],template:function(r,s){if(1&r&&(n._UZ(0,"cvc-section-navigation",0),n.YNc(1,nn,1,1,"ng-template",null,1,n.W1O),n.TgZ(3,"nz-page-header",2),n.TgZ(4,"nz-page-header-content"),n.TgZ(5,"nz-row",3),n.TgZ(6,"nz-col",4),n._UZ(7,"i",5),n.qZA(),n.TgZ(8,"nz-col",6),n.TgZ(9,"h2"),n._uU(10,"Variant Groups"),n.qZA(),n.TgZ(11,"p",7),n._uU(12,"Variant Groups provide user-defined grouping of Variants within and between genes based on unifying characteristics."),n.qZA(),n.qZA(),n.TgZ(13,"nz-col",8),n.TgZ(14,"nz-space",9),n.YNc(15,on,3,0,"a",10),n.YNc(16,an,3,0,"a",11),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"div",12),n.TgZ(18,"div",13),n.TgZ(19,"div",14),n._UZ(20,"cvc-variant-groups-table",15),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&r){const N=n.MAs(2);n.Q6J("actionsTpl",N),n.xp6(11),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24)}},directives:[M.I,f.eJ,a.O5,h.ix,A.dQ,o.rH,C.w,v.Ls,T.$O,T.u5,P.SK,P.t3,d.ZU,u.NU,u.$1,c],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{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}"]}),e})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(1679),t.e(6875),t.e(5632),t.e(885)]).then(t.bind(t,885)).then(e=>e.VariantGroupsAddModule),data:{breadcrumb:"Add"}},{path:":variantGroupId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(5193),t.e(9001),t.e(2826),t.e(1679),t.e(2738),t.e(55),t.e(4292),t.e(2043),t.e(3482),t.e(392),t.e(1750),t.e(5787),t.e(8482)]).then(t.bind(t,8482)).then(e=>e.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(1679),t.e(6875),t.e(5632),t.e(605)]).then(t.bind(t,605)).then(e=>e.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let rn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[o.Bz.forChild(en)],o.Bz]}),e})();var ln=t(4182),cn=t(4546),pn=t(1047),sn=t(8054),tn=t(4125),gn=t(9444),dn=t(3309),vn=t(4867),un=t(3580),mn=t(8018),fn=t(8369),Cn=t(209),zn=t(897),hn=t(7946),Tn=t(7677);let _n=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,ln.u5,f.WG,h.sL,V.HQ,cn.U5,pn.o7,v.PV,d.ZJ,Q.cg,sn.LV,v.PV,m.vh,d.ZJ,tn.k,gn.s,dn.U,vn.Q,un.Q,mn.e,fn.W,Cn.i,zn.$,hn.x,tn.k,Tn.G]]}),e})();var xn=t(5630);let Mn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,o.Bz,f.WG,h.sL,P.Jb,T.KJ,v.PV,d.ZJ,u.zf,_n,xn.D]]}),e})(),Zn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,rn,Mn]]}),e})()}}]);
\ No newline at end of file
diff --git a/server/public/8571.5eda17590c08c24e.js b/server/public/8571.5eda17590c08c24e.js
deleted file mode 100644
index 085d52755..000000000
--- a/server/public/8571.5eda17590c08c24e.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8571],{8571:(Le,O,i)=>{i.r(O),i.d(O,{EvidenceReviseModule:()=>Ye});var d=i(9808),c=i(325),p=i(373),E=i(1059),Z=i(4850),e=i(5e3),f=i(712),P=i(9350),C=i(8992),v=i(8144),T=i(3618),A=i(3193),b=i(8664),u=i(1945),I=i(647),l=i(1894),F=i(8616),h=i(6949);function J(t,o){if(1&t&&(e.TgZ(0,"span",12),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(2),e.Oqu(n.name)}}function U(t,o){if(1&t&&(e.TgZ(0,"span",13),e.TgZ(1,"a",14),e._UZ(2,"cvc-gene-tag",15),e.qZA(),e.TgZ(3,"a",14),e._UZ(4,"cvc-variant-tag",16),e.qZA(),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",n.gene.id,""),e.xp6(1),e.Q6J("gene",n.gene),e.xp6(1),e.MGl("routerLink","/variants/",n.variant.id,""),e.xp6(1),e.Q6J("variant",n.variant)}}function Q(t,o){1&t&&(e.TgZ(0,"nz-space",9),e.YNc(1,J,4,1,"span",10),e.YNc(2,U,5,4,"span",11),e.qZA())}function $(t,o){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function Y(t,o){1&t&&(e.TgZ(0,"nz-row",17),e.TgZ(1,"div",18),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function L(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,Q,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-page-header",3),e.TgZ(5,"nz-page-header-title",4),e._uU(6," REVISE "),e._UZ(7,"i",5),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",6),e.YNc(11,$,2,0,"div",7),e.ALo(12,"ngrxPush"),e.YNc(13,Y,3,0,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=o.ngIf,a=e.MAs(3),r=e.MAs(14),s=e.oxw();e.xp6(1),e.Q6J("displayName",n.name)("relationsTpl",a),e.xp6(7),e.hij(" ",n.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,s.isSignedIn$))("ngIfElse",r)}}let N=(()=>{class t{constructor(n,a,r){this.gql=n,this.route=a,this.viewerService=r,this.routeSub=this.route.params.subscribe(s=>{let g=this.gql.watch({evidenceId:+s.evidenceId}).valueChanges;this.loading$=g.pipe((0,p.j)("loading"),(0,E.O)(!0)),this.evidence$=g.pipe((0,p.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,p.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,p.j)("flags","totalCount")),this.revisionsTotal$=this.evidence$.pipe((0,p.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.pHu),e.Y36(c.gz),e.Y36(P.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,a){1&n&&(e.YNc(0,L,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,a.evidence$))},directives:[d.O5,C.I,v.NU,v.$1,T.ZU,c.yS,A.H,b.I,u.$O,u.u9,I.Ls,u.u5,c.lC,l.SK,l.t3,F.u],pipes:[d.Ov,h.fM],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{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}"]}),t})();var V=i(7484),j=i(6559),G=i(3773),B=i(8390),D=i(4375),W=i(7008),H=i(1825),M=i(8776),X=i(6042),R=i(2359),y=i(4546),K=i(5109),m=i(4182),w=i(5743),k=i(5452),_=i(5457),q=i(8006),ee=i(7075),te=i(7695),ne=i(7462),ie=i(3594),oe=i(3643),ae=i(1135),S=i(7525),se=i(2789),re=i(5932),de=i(3416),ce=i(2480),le=i(1830),ge=i(4581),pe=i(5926),ve=i(5472),me=i(4889);let ue=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[],imports:[[d.ez,c.Bz,m.UX,K.s,y.U5,R.L,l.Jb,X.sL,S.j,M.X0,H.A,W.B,D.R,te.C,ee.l,B.N,G.g,k.C,w.W,_.$,q.I,ne.o,ie.q,oe.q,ae.C,se.o,re.A,de.g,ce.r,le.S,ge.e,pe.J,ve.r,me.E]]}),t})(),fe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,h.WG,l.Jb,V.vh,j.H0,v.zf,ue]]}),t})();var x=i(6738),he=i(8929),z=i(7625),ye=i(6123),xe=i(6064),ze=i(9169),Oe=i(822);function Te(t,o){1&t&&e.GkF(0)}function Ie(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",5),e.NdJ("modelChange",function(r){return e.CHM(n),e.oxw().formModel=r}),e.qZA()}if(2&t){const n=e.oxw();e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function Me(t,o){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",7),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function Re(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",11),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4," or suggest another revision below."),e.qZA())}function Se(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",8),e.YNc(2,Re,5,0,"ng-template",9,10,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function Ee(t,o){if(1&t&&(e.YNc(0,Me,3,1,"ng-container",6),e.YNc(1,Se,4,1,"ng-container",6)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let Ze=(()=>{class t{constructor(n,a,r){this.suggestRevisionGQL=n,this.networkErrorService=a,this.revisableFieldsGQL=r,this.formGroup=new m.cw({}),this.formOptions={formState:new xe._},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new ye.U(a),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Evidence Item Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"variant",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant",addText:"Specify a Variant",maxCount:1},fieldArray:{type:"variant-input",templateOptions:{required:!0}}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance.",required:!0}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new he.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).subscribe(({data:{evidenceItem:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var a,r;return{fields:Object.assign(Object.assign({},n),{variant:[n.variant],source:[n.source],drugs:n.drugs.length>0?n.drugs:[],disease:[n.disease],comment:null===(a=this.formModel)||void 0===a?void 0:a.fields.comment,drugInteractionType:n.drugInteractionType,organization:null===(r=this.formModel)||void 0===r?void 0:r.fields.organization,evidenceRating:n.evidenceRating})}}submitRevision(n){let a=this.toRevisionInput(n);if(a){let r=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:a});r.submitSuccess$.pipe((0,z.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),r.submitError$.pipe((0,z.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),r.isSubmitting$.pipe((0,z.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toRevisionInput(n){var a,r;if(n){const s=n.fields;return{id:s.id,comment:s.comment,fields:{variantOrigin:s.variantOrigin,description:x.xt(s.description),variantId:s.variant[0].id,sourceId:s.source[0].id,evidenceType:s.evidenceType,evidenceDirection:s.evidenceDirection,clinicalSignificance:s.clinicalSignificance,diseaseId:x.uP(null===(a=s.disease[0])||void 0===a?void 0:a.id),evidenceLevel:s.evidenceLevel,phenotypeIds:s.phenotypes.map(g=>g.id),rating:s.evidenceRating,drugIds:s.drugs.map(g=>g.id),drugInteractionType:x.uP(s.drugInteractionType)},organizationId:null===(r=n.fields.organization)||void 0===r?void 0:r.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.Vj7),e.Y36(ze.Y),e.Y36(f.Q_P))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:4,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,a){if(1&n&&(e.TgZ(0,"nz-spin",0),e.TgZ(1,"form",1),e.NdJ("ngSubmit",function(){return a.submitRevision(a.formModel)}),e.YNc(2,Te,1,0,"ng-container",2),e.YNc(3,Ie,1,4,"formly-form",3),e.qZA(),e.qZA(),e.YNc(4,Ee,2,2,"ng-template",null,4,e.W1O)),2&n){const r=e.MAs(5);e.Q6J("nzSpinning",a.loading),e.xp6(1),e.Q6J("formGroup",a.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",r),e.xp6(1),e.Q6J("ngIf",!a.success)}},directives:[S.W,m._Y,m.JL,y.Lr,m.sg,d.tP,d.O5,M.T7,l.SK,y.Nx,Oe.V,R.r,c.yS],styles:[""]}),t})();function Pe(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-evidence-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("evidenceId",n.evidenceId)}}function Ce(t,o){1&t&&e._uU(0,"Loading Evidence...")}const Ae=[{path:"",component:N,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(a=>{this.evidenceId=+a.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(c.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingEvidence",""],[3,"evidenceId"]],template:function(n,a){if(1&n&&(e.YNc(0,Pe,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&n){const r=e.MAs(2);e.Q6J("ngIf",a.evidenceId)("ngIfElse",r)}},directives:[d.O5,Ze],styles:[""]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let be=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.Bz.forChild(Ae),fe],c.Bz]}),t})();var Fe=i(5630),Je=i(3309),Ue=i(4867),Qe=i(4623),$e=i(9386);let Ye=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,be,u.KJ,v.zf,I.PV,T.ZJ,v.zf,Je.U,Ue.Q,Fe.D,Qe.K,$e.a,h.WG,l.Jb]]}),t})()}}]);
\ No newline at end of file
diff --git a/server/public/8571.600728d2995f4bfc.js b/server/public/8571.600728d2995f4bfc.js
new file mode 100644
index 000000000..af7481c2a
--- /dev/null
+++ b/server/public/8571.600728d2995f4bfc.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8571],{8571:(Ve,T,i)=>{i.r(T),i.d(T,{EvidenceReviseModule:()=>Ne});var d=i(9808),c=i(325),p=i(373),E=i(1059),Z=i(4850),e=i(5e3),f=i(712),C=i(9350),P=i(8992),m=i(8144),I=i(3618),A=i(3193),b=i(8664),u=i(1945),O=i(647),l=i(1894),F=i(8616),h=i(6949);function J(t,o){if(1&t&&(e.TgZ(0,"span",12),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(2),e.Oqu(n.name)}}function Q(t,o){if(1&t&&(e.TgZ(0,"span",13),e.TgZ(1,"a",14),e._UZ(2,"cvc-gene-tag",15),e.qZA(),e.TgZ(3,"a",14),e._UZ(4,"cvc-variant-tag",16),e.qZA(),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",n.gene.id,""),e.xp6(1),e.Q6J("gene",n.gene),e.xp6(1),e.MGl("routerLink","/variants/",n.variant.id,""),e.xp6(1),e.Q6J("variant",n.variant)}}function U(t,o){1&t&&(e.TgZ(0,"nz-space",9),e.YNc(1,J,4,1,"span",10),e.YNc(2,Q,5,4,"span",11),e.qZA())}function $(t,o){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function Y(t,o){1&t&&(e.TgZ(0,"nz-row",17),e.TgZ(1,"div",18),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function L(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,U,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-page-header",3),e.TgZ(5,"nz-page-header-title",4),e._uU(6," REVISE "),e._UZ(7,"i",5),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",6),e.YNc(11,$,2,0,"div",7),e.ALo(12,"ngrxPush"),e.YNc(13,Y,3,0,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=o.ngIf,r=e.MAs(3),s=e.MAs(14),a=e.oxw();e.xp6(1),e.Q6J("displayName",n.name)("relationsTpl",r),e.xp6(7),e.hij(" ",n.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,a.isSignedIn$))("ngIfElse",s)}}let N=(()=>{class t{constructor(n,r,s){this.gql=n,this.route=r,this.viewerService=s,this.routeSub=this.route.params.subscribe(a=>{let g=this.gql.watch({evidenceId:+a.evidenceId}).valueChanges;this.loading$=g.pipe((0,p.j)("loading"),(0,E.O)(!0)),this.evidence$=g.pipe((0,p.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,p.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,p.j)("flags","totalCount")),this.revisionsTotal$=this.evidence$.pipe((0,p.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.pHu),e.Y36(c.gz),e.Y36(C.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,r){1&n&&(e.YNc(0,L,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,r.evidence$))},directives:[d.O5,P.I,m.NU,m.$1,I.ZU,c.yS,A.H,b.I,u.$O,u.u9,O.Ls,u.u5,c.lC,l.SK,l.t3,F.u],pipes:[d.Ov,h.fM],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{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}"]}),t})();var V=i(7484),j=i(6559),G=i(3773),B=i(8390),D=i(4375),W=i(7008),H=i(1825),M=i(8776),X=i(6042),R=i(2359),y=i(4546),K=i(5109),v=i(4182),w=i(5743),_=i(5452),k=i(5457),q=i(8006),ee=i(7075),te=i(7695),ne=i(7462),ie=i(3594),oe=i(3643),re=i(1135),S=i(7525),ae=i(2789),se=i(5932),de=i(3416),ce=i(2480),le=i(1830),ge=i(4581),pe=i(5926),me=i(5472),ve=i(4889),ue=i(7338);let fe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[],imports:[[d.ez,c.Bz,v.UX,K.s,y.U5,R.L,l.Jb,X.sL,S.j,M.X0,H.A,W.B,D.R,te.C,ee.l,B.N,G.g,_.C,w.W,k.$,q.I,ne.o,ie.q,oe.q,re.C,ae.o,se.A,de.g,ce.r,le.S,ge.e,pe.J,me.r,ue.z,ve.E]]}),t})(),he=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,h.WG,l.Jb,V.vh,j.H0,m.zf,fe]]}),t})();var x=i(6738),ye=i(8929),z=i(7625),xe=i(6123),ze=i(6064),Te=i(9169),Ie=i(822);function Oe(t,o){1&t&&e.GkF(0)}function Me(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(s){return e.CHM(n),e.oxw(2).formModel=s}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function Re(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const s=e.oxw();return s.submitRevision(s.formModel)}),e.YNc(1,Oe,1,0,"ng-container",4),e.YNc(2,Me,1,4,"formly-form",5),e.qZA()}if(2&t){const n=e.oxw(),r=e.MAs(3);e.Q6J("formGroup",n.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",r),e.xp6(1),e.Q6J("ngIf",!n.success)}}function Se(t,o){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function Ee(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function Ze(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,Ee,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function Ce(t,o){if(1&t&&(e.YNc(0,Se,3,1,"ng-container",7),e.YNc(1,Ze,4,1,"ng-container",7)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let Pe=(()=>{class t{constructor(n,r,s){this.suggestRevisionGQL=n,this.networkErrorService=r,this.revisableFieldsGQL=s,this.formGroup=new v.cw({}),this.formOptions={formState:new ze._},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new xe.U(r),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Evidence Item Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"variant",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant",addText:"Specify a Variant",maxCount:1,required:!0,helpText:"The most specific description of the variant that the underlying source allows."},fieldArray:{type:"variant-input",templateOptions:{required:!0,allowCreate:!1}}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1,required:!0},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance.",required:!0}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new ye.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).subscribe(({data:{evidenceItem:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var r,s;return{fields:Object.assign(Object.assign({},n),{variant:[n.variant],source:[n.source],drugs:n.drugs.length>0?n.drugs:[],disease:[n.disease],comment:null===(r=this.formModel)||void 0===r?void 0:r.fields.comment,drugInteractionType:n.drugInteractionType,organization:null===(s=this.formModel)||void 0===s?void 0:s.fields.organization,evidenceRating:n.evidenceRating})}}submitRevision(n){let r=this.toRevisionInput(n);if(r){let s=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:r});s.submitSuccess$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{a&&(this.success=!0)}),s.submitError$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{a&&(this.errorMessages=a,this.success=!1)}),s.isSubmitting$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{this.loading=a})}}toRevisionInput(n){var r,s;if(n){const a=n.fields;return{id:a.id,comment:a.comment,fields:{variantOrigin:a.variantOrigin,description:x.xt(a.description),variantId:a.variant[0].id,sourceId:a.source[0].id,evidenceType:a.evidenceType,evidenceDirection:a.evidenceDirection,clinicalSignificance:a.clinicalSignificance,diseaseId:x.uP(null===(r=a.disease[0])||void 0===r?void 0:r.id),evidenceLevel:a.evidenceLevel,phenotypeIds:a.phenotypes.map(g=>g.id),rating:a.evidenceRating,drugIds:a.drugs.map(g=>g.id),drugInteractionType:x.uP(a.drugInteractionType)},organizationId:null===(s=n.fields.organization)||void 0===s?void 0:s.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.Vj7),e.Y36(Te.Y),e.Y36(f.Q_P))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,r){1&n&&(e.TgZ(0,"nz-spin",0),e.YNc(1,Re,3,3,"form",1),e.qZA(),e.YNc(2,Ce,2,2,"ng-template",null,2,e.W1O)),2&n&&(e.Q6J("nzSpinning",r.loading),e.xp6(1),e.Q6J("ngIf",r.formModel))},directives:[S.W,d.O5,v._Y,v.JL,y.Lr,v.sg,d.tP,M.T7,l.SK,y.Nx,Ie.V,R.r,c.yS],styles:[""]}),t})();function Ae(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-evidence-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("evidenceId",n.evidenceId)}}function be(t,o){1&t&&e._uU(0,"Loading Evidence...")}const Fe=[{path:"",component:N,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(r=>{this.evidenceId=+r.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(c.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingEvidence",""],[3,"evidenceId"]],template:function(n,r){if(1&n&&(e.YNc(0,Ae,2,1,"ng-container",0),e.YNc(1,be,1,0,"ng-template",null,1,e.W1O)),2&n){const s=e.MAs(2);e.Q6J("ngIf",r.evidenceId)("ngIfElse",s)}},directives:[d.O5,Pe],styles:[""]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Je=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.Bz.forChild(Fe),he],c.Bz]}),t})();var Qe=i(5630),Ue=i(3309),$e=i(4867),Ye=i(4623),Le=i(9386);let Ne=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,Je,u.KJ,m.zf,O.PV,I.ZJ,m.zf,Ue.U,$e.Q,Qe.D,Ye.K,Le.a,h.WG,l.Jb]]}),t})()}}]);
\ No newline at end of file
diff --git a/server/public/8776.ed869c164e41c284.js b/server/public/8776.ed869c164e41c284.js
deleted file mode 100644
index eac981661..000000000
--- a/server/public/8776.ed869c164e41c284.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8776],{6789:(Z,F,s)=>{s.d(F,{_:()=>P});var v=s(9808),y=s(7484),e=s(5109),O=s(5482),x=s(6949),S=s(19),B=s(8776),A=s(647),M=s(404),z=s(5e3);let N=(()=>{class l{}return l.\u0275fac=function(T){return new(T||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[[v.ez,x.WG,B.X0,S.j,O.cD,A.PV,M.cg,e.s]]}),l})(),P=(()=>{class l{}return l.\u0275fac=function(T){return new(T||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[[v.ez,x.WG,B.X0,y.vh,S.j,O.cD,A.PV,M.cg,N,e.s]]}),l})()},7075:(Z,F,s)=>{s.d(F,{l:()=>T});var v=s(9808),y=s(8776),e=s(5e3),O=s(9180),x=s(8227),S=s(6042),B=s(2643),A=s(1793),M=s(2683);const N={name:"org-submit-button",component:(()=>{class h extends y.fS{constructor(){super(),this._selectedOrg=void 0,this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}get selectedOrg(){return this._selectedOrg}set selectedOrg(d){this._selectedOrg=d,this.formControl.setValue(d)}}return h.\u0275fac=function(d){return new(d||h)},h.\u0275cmp=e.Xpm({type:h,selectors:[["cvc-submit-button-type"]],features:[e.qOj],decls:5,vars:4,consts:[[3,"selectedOrg","nzSize","selectedOrgChange"],["orgButton",""],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary",3,"disabled","click"]],template:function(d,m){if(1&d){const I=e.EpF();e.TgZ(0,"cvc-form-buttons"),e.TgZ(1,"cvc-org-selector-btn-group",0,1),e.NdJ("selectedOrgChange",function(u){return m.selectedOrg=u}),e.TgZ(3,"button",2),e.NdJ("click",function(){return e.CHM(I),e.MAs(2).refreshViewer()}),e._uU(4),e.qZA(),e.qZA(),e.qZA()}2&d&&(e.xp6(1),e.Q6J("selectedOrg",m.selectedOrg)("nzSize",m.to.submitSize),e.xp6(2),e.Q6J("disabled",!m.form.valid),e.xp6(1),e.hij(" ",m.to.submitLabel," "))},directives:[O.Z,x.q,S.ix,B.dQ,A.m,M.w],styles:[""]}),h})()};var P=s(4375),l=s(1825),b=s(4182);let T=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275mod=e.oAB({type:h}),h.\u0275inj=e.cJS({imports:[[v.ez,b.UX,y.X0.forChild({types:[N]}),S.sL,P.R,l.A]]}),h})()},19:(Z,F,s)=>{s.d(F,{$:()=>k,j:()=>q});var v=s(655),y=s(9808),e=s(5e3),O=s(2654),x=s(839),S=s(8929),B=s(6787),A=s(3753),M=s(3489),z=s(353);const N={leading:!0,trailing:!1};class h{constructor(n,t,i,r){this.duration=n,this.scheduler=t,this.leading=i,this.trailing=r}call(n,t){return t.subscribe(new L(n,this.duration,this.scheduler,this.leading,this.trailing))}}class L extends M.L{constructor(n,t,i,r,c){super(n),this.duration=t,this.scheduler=i,this.leading=r,this.trailing=c,this._hasTrailingValue=!1,this._trailingValue=null}_next(n){this.throttled?this.trailing&&(this._trailingValue=n,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(d,this.duration,{subscriber:this})),this.leading?this.destination.next(n):this.trailing&&(this._trailingValue=n,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const n=this.throttled;n&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),n.unsubscribe(),this.remove(n),this.throttled=null)}}function d(o){const{subscriber:n}=o;n.clearThrottle()}var m=s(7625),I=s(4850),j=s(9439),u=s(1721),X=s(4090),$=s(925),J=s(5577),Y=s(226);const U=["fixedEl"],W=["*"];var w=(()=>{return(o=w||(w={})).resize="resize",o.scroll="scroll",o.touchstart="touchstart",o.touchmove="touchmove",o.touchend="touchend",o.pageshow="pageshow",o.load="LOAD",w;var o})();function H(o){return function G(o){return"undefined"!=typeof window&&o===window}(o)?{top:0,left:0,bottom:0}:o.getBoundingClientRect()}const V="ant-affix";let k=(()=>{class o{constructor(t,i,r,c,a,f,C,g,p,R){this.nzConfigService=r,this.scrollSrv=c,this.ngZone=a,this.platform=f,this.renderer=C,this.nzResizeObserver=g,this.cdr=p,this.directionality=R,this._nzModuleName="affix",this.nzChange=new e.vpe,this.dir="ltr",this.positionChangeSubscription=O.w.EMPTY,this.offsetChanged$=new x.t(1),this.destroy$=new S.xQ,this.placeholderNode=t.nativeElement,this.document=i}get target(){const t=this.nzTarget;return("string"==typeof t?this.document.querySelector(t):t)||window}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe((0,m.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(t){const{nzOffsetBottom:i,nzOffsetTop:r,nzTarget:c}=t;(i||r)&&this.offsetChanged$.next(),c&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();const t=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>(0,B.T)(...Object.keys(w).map(i=>(0,A.R)(this.target,i)),this.offsetChanged$.pipe((0,I.U)(()=>({}))),this.nzResizeObserver.observe(t)).pipe(function T(o,n=z.P,t=N){return i=>i.lift(new h(o,n,t.leading,t.trailing))}(20,void 0,{trailing:!0}),(0,m.R)(this.destroy$)).subscribe(i=>this.updatePosition(i))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}getOffset(t,i){const r=t.getBoundingClientRect(),c=H(i),a=this.scrollSrv.getScroll(i,!0),f=this.scrollSrv.getScroll(i,!1),C=this.document.body;return{top:r.top-c.top+a-(C.clientTop||0),left:r.left-c.left+f-(C.clientLeft||0),width:r.width,height:r.height}}setAffixStyle(t,i){const r=this.affixStyle,c=this.target===window;if("scroll"===t.type&&r&&i&&c||(0,u.wU)(r,i))return;const a=!!i,f=this.fixedEl.nativeElement;this.renderer.setStyle(f,"cssText",(0,u.GM)(i)),this.affixStyle=i,a?f.classList.add(V):f.classList.remove(V),this.updateRtlClass(),(i&&!r||!i&&r)&&this.nzChange.emit(a)}setPlaceholderStyle(t){(0,u.wU)(t,this.placeholderStyle)||(this.renderer.setStyle(this.placeholderNode,"cssText",(0,u.GM)(t)),this.placeholderStyle=t)}syncPlaceholderStyle(t){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;const i={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(t,Object.assign(Object.assign({},this.affixStyle),i)),this.setPlaceholderStyle(i)}updatePosition(t){if(!this.platform.isBrowser)return;const i=this.target;let r=this.nzOffsetTop;const c=this.scrollSrv.getScroll(i,!0),a=this.getOffset(this.placeholderNode,i),f=this.fixedEl.nativeElement,C={width:f.offsetWidth,height:f.offsetHeight},g={top:!1,bottom:!1};"number"!=typeof r&&"number"!=typeof this.nzOffsetBottom?(g.top=!0,r=0):(g.top="number"==typeof r,g.bottom="number"==typeof this.nzOffsetBottom);const p=H(i),R=i.innerHeight||i.clientHeight;if(c>=a.top-r&&g.top){const D=a.width;this.setAffixStyle(t,{position:"fixed",top:p.top+r,left:p.left+a.left,width:D}),this.setPlaceholderStyle({width:D,height:C.height})}else if(c<=a.top+C.height+this.nzOffsetBottom-R&&g.bottom){const D=i===window?0:window.innerHeight-p.bottom,E=a.width;this.setAffixStyle(t,{position:"fixed",bottom:D+this.nzOffsetBottom,left:p.left+a.left,width:E}),this.setPlaceholderStyle({width:E,height:a.height})}else t.type===w.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(t,Object.assign(Object.assign({},this.affixStyle),{width:this.placeholderNode.offsetWidth})):this.setAffixStyle(t),this.setPlaceholderStyle();"resize"===t.type&&this.syncPlaceholderStyle(t)}updateRtlClass(){const t=this.fixedEl.nativeElement;"rtl"===this.dir&&t.classList.contains(V)?t.classList.add(`${V}-rtl`):t.classList.remove(`${V}-rtl`)}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(e.SBq),e.Y36(y.K0),e.Y36(j.jY),e.Y36(X.MF),e.Y36(e.R0b),e.Y36($.t4),e.Y36(e.Qsj),e.Y36(J.D3),e.Y36(e.sBO),e.Y36(Y.Is,8))},o.\u0275cmp=e.Xpm({type:o,selectors:[["nz-affix"]],viewQuery:function(t,i){if(1&t&&e.Gf(U,7),2&t){let r;e.iGM(r=e.CRH())&&(i.fixedEl=r.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[e.TTD],ngContentSelectors:W,decls:3,vars:0,consts:[["fixedEl",""]],template:function(t,i){1&t&&(e.F$t(),e.TgZ(0,"div",null,0),e.Hsn(2),e.qZA())},encapsulation:2,changeDetection:0}),(0,v.gn)([(0,j.oS)(),(0,u.Rn)(void 0)],o.prototype,"nzOffsetTop",void 0),(0,v.gn)([(0,j.oS)(),(0,u.Rn)(void 0)],o.prototype,"nzOffsetBottom",void 0),o})(),q=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[Y.vT,y.ez,$.ud]]}),o})()}}]);
\ No newline at end of file
diff --git a/server/public/9020.4668e5b29104dae0.js b/server/public/9020.4a98dc48a9af4544.js
similarity index 65%
rename from server/public/9020.4668e5b29104dae0.js
rename to server/public/9020.4a98dc48a9af4544.js
index 2800ffb6b..baf5f015f 100644
--- a/server/public/9020.4668e5b29104dae0.js
+++ b/server/public/9020.4a98dc48a9af4544.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9020],{7946:(G,V,e)=>{e.d(V,{x:()=>m});var d=e(9808),n=e(897),a=e(8481),S=e(3610),Z=e(8018),t=e(3580),l=e(9476),v=e(5e3);let m=(()=>{class T{}return T.\u0275fac=function(s){return new(s||T)},T.\u0275mod=v.oAB({type:T}),T.\u0275inj=v.cJS({imports:[[d.ez,a.X,S.$6,n.$,Z.e,t.Q,l.L]]}),T})()},8664:(G,V,e)=>{e.d(V,{I:()=>ie});var d=e(6654),n=e(5e3),a=e(9808),S=e(325),Z=e(8481),t=e(3610),l=e(4850),v=e(712),m=e(7484),T=e(647),N=e(3193),s=e(3098),i=e(6550),M=e(1894),E=e(8144),c=e(6949);function b(u,L){if(1&u&&(n._UZ(0,"i",13),n._uU(1)),2&u){const y=n.oxw().ngIf;n.xp6(1),n.hij(" ",y.name," ")}}function x(u,L){if(1&u&&n._UZ(0,"cvc-gene-tag",14),2&u){const y=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",y.gene)}}function $(u,L){1&u&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function Y(u,L){if(1&u&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,$,2,0,"span",1),n.qZA()),2&u){const y=L.$implicit,Q=L.last;n.xp6(1),n.hij(" ",y,""),n.xp6(1),n.Q6J("ngIf",!Q)}}function W(u,L){if(1&u&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,Y,3,2,"span",16),n.qZA()),2&u){const y=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",y.variantAliases)}}function O(u,L){if(1&u&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",y.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",y.alleleRegistryId," ")}}function J(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/flags"),n.xp6(3),n.hij(" Flags (",y.flags.totalCount,") ")}}function P(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",y.revisions.totalCount,") ")}}function z(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/comments"),n.xp6(3),n.hij(" Comments (",y.comments.totalCount,") ")}}function I(u,L){if(1&u&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,b,2,1,"ng-template",null,3,n.W1O),n.YNc(4,x,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,W,2,1,"nz-descriptions-item",6),n.YNc(8,O,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,J,4,2,"a",12),n.YNc(15,P,4,2,"a",12),n.YNc(16,z,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&u){const y=L.ngIf,Q=n.MAs(3),w=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",Q)("nzExtra",w),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",y.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",y.alleleRegistryId),n.xp6(2),n.hij(" ",y.evidenceItems.totalCount," ")}}let p=(()=>{class u{constructor(y){this.gql=y}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,l.U)(({data:y})=>y.variant))}}return u.\u0275fac=function(y){return new(y||u)(n.Y36(v.ZYZ))},u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(y,Q){1&y&&(n.TgZ(0,"div",0),n.YNc(1,I,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&y&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,Q.variant$)))},directives:[a.O5,m.bd,T.Ls,N.H,s.R7,s.uj,a.sg,i.l,M.SK,M.t3,E.NU,E.$1,S.yS,Z.j],pipes:[c.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 h(u,L){}function C(u,L){if(1&u&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,h,0,0,"ng-template",6),n.qZA(),n.BQk()),2&u){const y=n.oxw(),Q=n.MAs(2);n.xp6(1),n.Q6J("routerLink",y.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function _(u,L){}function o(u,L){if(1&u){const y=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(w){return n.CHM(y),n.oxw(2).itemClosed(w)}),n.YNc(1,_,0,0,"ng-template",6),n.qZA()}if(2&u){n.oxw();const y=n.MAs(2),Q=n.oxw(),w=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",Q.onCloseClicked?0:.5)("nzPopoverContent",y)("nzMode",Q.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",w)}}function A(u,L){if(1&u&&n._UZ(0,"cvc-variant-popover",11),2&u){const y=n.oxw(3);n.Q6J("variantId",y.variant.id)}}function f(u,L){if(1&u&&n.YNc(0,A,1,1,"cvc-variant-popover",10),2&u){const y=n.oxw(2);n.Q6J("ngIf",y.enablePopover)}}function U(u,L){if(1&u&&(n.YNc(0,o,2,4,"nz-tag",7),n.YNc(1,f,1,1,"ng-template",null,8,n.W1O)),2&u){const y=n.oxw(),Q=n.MAs(4);n.Q6J("ngIf",y.enablePopover)("ngIfElse",Q)}}function j(u,L){}function q(u,L){if(1&u){const y=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(w){return n.CHM(y),n.oxw().itemClosed(w)}),n.YNc(1,j,0,0,"ng-template",6),n.qZA()}if(2&u){const y=n.oxw(),Q=n.MAs(8);n.Q6J("nzMode",y.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function ne(u,L){}function te(u,L){if(1&u&&n.YNc(0,ne,0,0,"ng-template",6),2&u){n.oxw();const y=n.MAs(2);n.Q6J("ngTemplateOutlet",y)}}function oe(u,L){if(1&u&&(n._UZ(0,"i",13),n._uU(1)),2&u){const y=n.oxw();n.xp6(1),n.hij(" ",y.variant.name,"\n")}}let ie=(()=>{class u extends d.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return u.\u0275fac=function(y){return new(y||u)},u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(y,Q){if(1&y&&(n.YNc(0,C,3,2,"ng-container",0),n.YNc(1,U,3,2,"ng-template",null,1,n.W1O),n.YNc(3,q,2,2,"ng-template",null,2,n.W1O),n.YNc(5,te,1,1,"ng-template",null,3,n.W1O),n.YNc(7,oe,2,1,"ng-template",null,4,n.W1O)),2&y){const w=n.MAs(6);n.Q6J("ngIf",Q.linked)("ngIfElse",w)}},directives:[a.O5,S.yS,a.tP,Z.j,t.lU,p,T.Ls],styles:[""]}),u})()},4867:(G,V,e)=>{e.d(V,{Q:()=>E});var d=e(9808),n=e(325),a=e(8481),S=e(647),Z=e(3610),t=e(6949),l=e(7484),v=e(1894),m=e(3098),T=e(8144),N=e(3309),s=e(3630),i=e(5e3);let M=(()=>{class c{}return c.\u0275fac=function(x){return new(x||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({imports:[[d.ez,n.Bz,t.WG,l.vh,v.Jb,m.q6,a.X,S.PV,T.zf,N.U,s.X]]}),c})(),E=(()=>{class c{}return c.\u0275fac=function(x){return new(x||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({imports:[[d.ez,n.Bz,a.X,Z.$6,S.PV,M]]}),c})()},3154:(G,V,e)=>{e.d(V,{_:()=>n});var d=e(712);function n(a){var S;switch(a.value){case"ascend":S=d.SrV.Asc;break;case"descend":S=d.SrV.Desc;break;default:return}return{column:a.key,direction:S}}},1837:(G,V,e)=>{e.d(V,{_:()=>a});var d=e(712),n=e(7905);class a extends n.nT{constructor(){super(n.yQ.ASSERTION),this.validStates.set(d.uBv.Predictive,{entityType:d.uBv.Predictive,clinicalSignificance:[d.Vr2.Sensitivityresponse,d.Vr2.Resistance,d.Vr2.AdverseResponse,d.Vr2.ReducedSensitivity,d.Vr2.Na],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(d.uBv.Diagnostic,{entityType:d.uBv.Diagnostic,clinicalSignificance:[d.Vr2.Positive,d.Vr2.Negative],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(d.uBv.Prognostic,{entityType:d.uBv.Prognostic,clinicalSignificance:[d.Vr2.BetterOutcome,d.Vr2.PoorOutcome,d.Vr2.Na],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(d.uBv.Predisposing,{entityType:d.uBv.Predisposing,clinicalSignificance:[d.Vr2.Pathogenic,d.Vr2.LikelyPathogenic,d.Vr2.Benign,d.Vr2.LikelyBenign,d.Vr2.UncertainSignificance],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},3759:(G,V,e)=>{e.d(V,{D:()=>_});var d=e(9808),n=e(915);const S={name:"acmg-code-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"ACMG/AMP Code(s)",required:!1,addText:"Add an ACMG/AMP Code",helpText:'Refers to evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP in Richards et. al. 2015.'},fieldArray:{type:"acmg-code-select",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(o,A)=>{const f=(null==A?void 0:A.form)?A.form.get("evidenceType"):null;return f&&f.value?`${(0,n.E)(f.value)} Assertions requires at least one ACMG code to be specified.`:"ACMG Code is required."}}},hooks:{onInit:o=>{var A;const f=o.templateOptions,U=null===(A=null==o?void 0:o.options)||void 0===A?void 0:A.formState,j=(null==o?void 0:o.form)?o.form.get("evidenceType"):null;!j||(f.vcSub=j.valueChanges.subscribe(q=>{U.requiresAcmgCodes(q)?(f.hidden=!1,f.required=!0):(f.hidden=!0,f.required=!1,o.model.length>0&&(o.model.splice(1),f.remove(0)))}))}}}};var Z=e(8776),t=e(8390),l=e(4182),v=e(3793),m=e(8929),T=e(7625),N=e(4850),s=e(5e3),i=e(712),M=e(8054),E=e(6949),c=e(8144),b=e(8481),x=e(8926);function $(o,A){if(1&o&&(s.TgZ(0,"span"),s._UZ(1,"span",8),s.ALo(2,"highlightTypeahead"),s._uU(3),s.qZA()),2&o){const f=s.oxw().$implicit,U=s.oxw(3);s.xp6(1),s.Q6J("innerHtml",s.xi3(2,2,f.code,U.searchVal),s.oJD),s.xp6(2),s.hij(" - ",f.description," ")}}function Y(o,A){if(1&o&&(s.TgZ(0,"nz-option",6),s.TgZ(1,"nz-space"),s.YNc(2,$,4,5,"span",7),s.qZA(),s.qZA()),2&o){const f=A.$implicit;s.Q6J("nzLabel",f.code)("nzValue",f)}}function W(o,A){if(1&o&&(s.ynx(0),s.YNc(1,Y,3,2,"nz-option",5),s.BQk()),2&o){const f=A.ngrxLet;s.xp6(1),s.Q6J("ngForOf",f)}}function O(o,A){1&o&&s._uU(0," No ACMG code found in CIViC that matches the string provided. ")}function J(o,A){if(1&o){const f=s.EpF();s.ynx(0),s.TgZ(1,"nz-select",2),s.NdJ("nzOnSearch",function(j){return s.CHM(f),s.oxw().onSearch(j)}),s.YNc(2,W,2,1,"ng-container",3),s.qZA(),s.YNc(3,O,1,0,"ng-template",null,4,s.W1O),s.BQk()}if(2&o){const f=s.MAs(4),U=s.oxw();s.xp6(1),s.Q6J("formControl",U.formControl)("formlyAttributes",U.field)("nzPlaceHolder",U.to.placeholder?U.to.placeholder:null)("nzNotFoundContent",f)("nzShowArrow",U.to.showArrow)("nzFilterOption",U.to.filterOption),s.xp6(1),s.Q6J("ngrxLet",U.codes$)}}function P(o,A){if(1&o&&(s.TgZ(0,"nz-tag"),s._uU(1),s.qZA()),2&o){const f=s.oxw();s.xp6(1),s.Oqu(f.formControl.value.code)}}const I={name:"acmg-code-select",extends:"select",component:(()=>{class o extends Z.fS{constructor(f){super(),this.acmgCodeGQL=f,this.destroy$=new m.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.acmgCodeGQL.watch({code:this.searchVal}),this.codes$=this.queryRef.valueChanges.pipe((0,T.R)(this.destroy$),(0,N.U)(({data:f})=>f.acmgCodesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(f){var U;this.searchVal=f,null===(U=this.queryRef)||void 0===U||U.refetch({code:f})}}return o.\u0275fac=function(f){return new(f||o)(s.Y36(i.$G1))},o.\u0275cmp=s.Xpm({type:o,selectors:[["cvc-acmg-code-select-type"]],features:[s.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["acmgCodeItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[4,"nzSpaceItem"],[3,"innerHtml"]],template:function(f,U){if(1&f&&(s.YNc(0,J,5,7,"ng-container",0),s.YNc(1,P,2,1,"ng-template",null,1,s.W1O)),2&f){const j=s.MAs(2);s.Q6J("ngIf",!(null!=U.formControl.value&&U.formControl.value.id))("ngIfElse",j)}},directives:[d.O5,M.Vq,l.JJ,l.oH,Z.VQ,E.eJ,d.sg,M.Ip,c.NU,c.$1,b.j],pipes:[x.A],styles:[""]}),o})(),wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"None specified."},modelOptions:{debounce:{default:500}}}};var p=e(9444),h=e(7338);let C=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[[d.ez,l.UX,E.WG,v.F,b.X,M.LV,c.zf,p.s,Z.X0.forChild({types:[I]}),h.z]]}),o})(),_=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[[d.ez,Z.X0.forChild({types:[S]}),t.N,C]]}),o})()},3314:(G,V,e)=>{e.d(V,{p:()=>s});var d=e(9808),n=e(4182),a=e(8776),S=e(9657),Z=e(712),t=e(444);const l=new S.t,v={TIER_I_LEVEL_A:"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines",TIER_I_LEVEL_B:"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field",TIER_II_LEVEL_C:"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus",TIER_II_LEVEL_D:"Biomarkers that show plausible therapeutic significance based on preclinical studies",TIER_III:"Somatic variants in cancer genes reported in the same or different cancer types with unknown clinical significance and variants in cancer genes that have not been reported in any cancers",TIER_IV:"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation","Not Applicable":"AMP/ASCO/CAP category is not relevant to this assertion."},m={name:"amp-level-input",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"Please Select an AMP/ASCO/CAP Category",label:"AMP/ASCO/CAP Category",helpText:'If applicable, please provide the AMP/ASCO/CAP somatic variant classification.',required:!1,options:(0,t.o6)(Z.iwm).map(i=>({value:i,label:l.transform(i,"verbose")}))},hideExpression:(i,M,E)=>{var c;return(null===(c=null==E?void 0:E.templateOptions)||void 0===c?void 0:c.hidden)||!1},hooks:{onInit:i=>{var M;const E=i.templateOptions,c=null===(M=null==i?void 0:i.options)||void 0===M?void 0:M.formState,b=(null==i?void 0:i.form)?i.form.get("evidenceType"):null;!b||(E.vcSub=b.valueChanges.subscribe(x=>{c.requiresAmpLevel(x)?(E.hidden=!1,E.required=!0):(E.hidden=!0,E.required=!1,i.model[i.key]=void 0)}))}},expressionProperties:{"templateOptions.optionText":(i,M,E)=>v[i.ampLevel]}}};var T=e(9444),N=e(5e3);let s=(()=>{class i{}return i.\u0275fac=function(E){return new(E||i)},i.\u0275mod=N.oAB({type:i}),i.\u0275inj=N.cJS({imports:[[d.ez,n.UX,T.s,a.X0.forChild({types:[m]})]]}),i})()},9946:(G,V,e)=>{e.d(V,{d:()=>I});var d=e(9808),n=e(8776),a=e(8054),S=e(4182),Z=e(8144),t=e(3618),l=e(6949),v=e(7008),m=e(6042),T=e(1047),N=e(9444),s=e(7625),i=e(373),M=e(4850),E=e(8929),c=e(5e3),b=e(712),x=e(9001);function $(p,h){if(1&p&&(c.ynx(0),c.TgZ(1,"nz-option",5),c._uU(2),c.qZA(),c.BQk()),2&p){const C=h.ngIf;c.xp6(1),c.Q6J("nzLabel",C.tooltip)("nzValue",C.eid),c.xp6(1),c.hij(" ",C.label," ")}}function Y(p,h){1&p&&c._uU(0," No EID matches the provided ID ")}function W(p,h){if(1&p){const C=c.EpF();c.ynx(0),c.TgZ(1,"nz-select",2),c.NdJ("nzOnSearch",function(o){return c.CHM(C),c.oxw().to.onSearch(o)}),c.YNc(2,$,3,3,"ng-container",3),c.ALo(3,"ngrxPush"),c.qZA(),c.YNc(4,Y,1,0,"ng-template",null,4,c.W1O),c.BQk()}if(2&p){const C=c.MAs(5),_=c.oxw();c.xp6(1),c.Q6J("formControl",_.formControl)("formlyAttributes",_.field)("nzPlaceHolder",_.to.placeholder?_.to.placeholder:null)("nzNotFoundContent",C)("nzShowArrow",_.to.showArrow)("nzFilterOption",_.to.filterOption),c.xp6(1),c.Q6J("ngIf",c.lcZ(3,7,_.eid$))}}function O(p,h){if(1&p&&c._UZ(0,"cvc-evidence-tag",6),2&p){const C=c.oxw();c.Q6J("evidence",C.formControl.value)}}const P={name:"evidence-input",component:(()=>{class p extends n.fS{constructor(C){super(),this.evidenceGQL=C,this.destroy$=new E.xQ,this.defaultOptions={templateOptions:{placeholder:"Enter Evidence",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:""}}}ngOnInit(){this.queryRef=this.evidenceGQL.watch({id:99999999}),this.eid$=this.queryRef.valueChanges.pipe((0,s.R)(this.destroy$),(0,i.j)("data","evidenceItem"),(0,M.U)(C=>{if(C)return{value:C.id,label:C.name,eid:C}}))}ngAfterViewInit(){this.to.onSearch=C=>{if(C.length{class p{}return p.\u0275fac=function(C){return new(C||p)},p.\u0275mod=c.oAB({type:p}),p.\u0275inj=c.cJS({imports:[[d.ez,S.u5,S.UX,l.WG,n.X0.forChild({types:[P]}),a.LV,Z.zf,t.ZJ,m.sL,T.o7,z.i,v.B,N.s]]}),p})()},464:(G,V,e)=>{e.d(V,{N:()=>t});var d=e(9808),n=e(4182);const a={name:"fda-approval-checkbox",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"FDA Regulatory Approval?",helpText:"Select yes if the referenced therapy is approved for use by the FDA in the specific disease associated with the Assertion (as in a listing here.)",placeholder:"None Specified",options:[{value:!0,label:"Yes"},{value:!1,label:"No"},{value:void 0,label:""}]},hooks:{onInit:l=>{var v;if(l){const m=l.templateOptions,T=(null==l?void 0:l.form)?l.form.get("evidenceType"):null,N=null===(v=null==l?void 0:l.options)||void 0===v?void 0:v.formState;if(!T||!m)return;m.ncSub=T.valueChanges.subscribe(s=>{var i,M;s&&N.allowsFdaApproval(s)?(m.hidden=!1,m.required=!0):(null===(M=null===(i=l.form)||void 0===i?void 0:i.get(l.key))||void 0===M||M.setValue(void 0),m.modelCallback(void 0),l.model[l.key]=void 0,m.hidden=!0,m.required=!1)})}},onDestroy:l=>{var v;if(l){const m=l.templateOptions;null===(v=null==m?void 0:m.ncSub)||void 0===v||v.unsubscribe()}}}}};var S=e(8776),Z=e(5e3);let t=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[d.ez,n.UX,S.X0.forChild({types:[a]})]]}),l})()},7795:(G,V,e)=>{e.d(V,{k:()=>t});var d=e(9808),n=e(4182),a=e(8776);const S={name:"fda-test-checkbox",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"FDA Companion Test?",placeholder:"None Specified",helpText:'Select Yes if an FDA approved companion test exists for the variant and drug associated with the Assertion (such as tests listed here).',options:[{value:!0,label:"Yes"},{value:!1,label:"No"},{value:void 0,label:""}]},hooks:{onInit:l=>{var v;if(l){const m=l.templateOptions,T=(null==l?void 0:l.form)?l.form.get("fdaRegulatoryApproval"):null,N=(null==l?void 0:l.form)?l.form.get("evidenceType"):null,s=null===(v=null==l?void 0:l.options)||void 0===v?void 0:v.formState;if(!T||!m||!N)return;m.etSub=N.valueChanges.subscribe(i=>{var M,E;i&&s.allowsFdaApproval(i)?(m.hidden=!1,m.required=!0):(null===(E=null===(M=l.form)||void 0===M?void 0:M.get(l.key))||void 0===E||E.setValue(void 0),m.modelCallback(void 0),l.model[l.key]=void 0,m.hidden=!0,m.required=!1)}),m.ncSub=T.valueChanges.subscribe(i=>{i?(m.hidden=!1,m.required=!0,m.modelCallback(!0),l.model[l.key]=!0):(m.modelCallback(!1),l.model[l.key]=!1,m.hidden=!0,m.required=!1)})}},onDestroy:l=>{var v,m;if(l){const T=l.templateOptions;null===(v=null==T?void 0:T.ncSub)||void 0===v||v.unsubscribe(),null===(m=null==T?void 0:T.etSub)||void 0===m||m.unsubscribe()}}}}};var Z=e(5e3);let t=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[d.ez,n.UX,a.X0.forChild({types:[S]})]]}),l})()},5486:(G,V,e)=>{e.d(V,{$:()=>W});var d=e(9808),n=e(8776),a=e(8929),S=e(7625),Z=e(4850),t=e(5e3),l=e(712),v=e(8054),m=e(4182),T=e(6949),N=e(8144),s=e(8481);function i(O,J){if(1&O&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&O){const P=t.oxw().$implicit;t.xp6(1),t.hij(" ",P.name," ")}}function M(O,J){if(1&O&&(t.TgZ(0,"nz-option",6),t.TgZ(1,"nz-space"),t.YNc(2,i,2,1,"span",7),t.qZA(),t.qZA()),2&O){const P=J.$implicit;t.Q6J("nzLabel",P.name)("nzValue",P)}}function E(O,J){if(1&O&&(t.ynx(0),t.YNc(1,M,3,2,"nz-option",5),t.BQk()),2&O){const P=J.ngrxLet;t.xp6(1),t.Q6J("ngForOf",P)}}function c(O,J){1&O&&t._uU(0," No NCCN Guideline found in CIViC that matches the string provided. ")}function b(O,J){if(1&O){const P=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",2),t.NdJ("nzOnSearch",function(I){return t.CHM(P),t.oxw().onSearch(I)}),t.YNc(2,E,2,1,"ng-container",3),t.qZA(),t.YNc(3,c,1,0,"ng-template",null,4,t.W1O),t.BQk()}if(2&O){const P=t.MAs(4),z=t.oxw();t.xp6(1),t.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",P)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),t.xp6(1),t.Q6J("ngrxLet",z.guidelines$)}}function x(O,J){if(1&O&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&O){const P=t.oxw();t.xp6(1),t.Oqu(P.formControl.value.name)}}const Y={name:"nccn-guideline-input",extends:"select",wrappers:["form-field"],component:(()=>{class O extends n.fS{constructor(P){super(),this.nccnGuidelineGQL=P,this.destroy$=new a.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.nccnGuidelineGQL.watch({name:this.searchVal}),this.guidelines$=this.queryRef.valueChanges.pipe((0,S.R)(this.destroy$),(0,Z.U)(({data:P})=>P.nccnGuidelinesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(P){var z;null===(z=this.queryRef)||void 0===z||z.refetch({name:P})}}return O.\u0275fac=function(P){return new(P||O)(t.Y36(l.lfy))},O.\u0275cmp=t.Xpm({type:O,selectors:[["cvc-nccn-guideline-input-type"]],features:[t.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["nccnItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[4,"nzSpaceItem"]],template:function(P,z){if(1&P&&(t.YNc(0,b,5,7,"ng-container",0),t.YNc(1,x,2,1,"ng-template",null,1,t.W1O)),2&P){const I=t.MAs(2);t.Q6J("ngIf",!(null!=z.formControl.value&&z.formControl.value.id))("ngIfElse",I)}},directives:[d.O5,v.Vq,m.JJ,m.oH,n.VQ,T.eJ,d.sg,v.Ip,N.NU,N.$1,s.j],styles:[""]}),O})(),defaultOptions:{templateOptions:{label:"NCCN Guideline",placeholder:"None specified",helpText:'If applicable, please provide cancer (e.g., Breast Cancer) and version (e.g., 5.2016) for the appropriate NCCN guideline.'},modelOptions:{debounce:{default:500}}}};let W=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[[d.ez,m.UX,T.WG,v.LV,N.zf,s.X,n.X0.forChild({types:[Y]})]]}),O})()},4902:(G,V,e)=>{e.d(V,{a:()=>l});var d=e(9808);const n={name:"nccn-version-input",extends:"input",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"NCCN Guideline Version",placeholder:"None specified"},validators:["format"],validation:{messages:{required:"If you specify an NCCN Guideline it must have a version."}},hideExpression:(v,m,T)=>!v.nccnGuideline,hooks:{onInit:v=>{if(v){const m=v.templateOptions,T=(null==v?void 0:v.form)?v.form.get("nccnGuideline"):null;if(!T||!m)return;m.ncSub=T.valueChanges.subscribe(N=>{N?m.required=!0:(m.required=!1,v.model[v.key]=void 0)})}},onDestroy:v=>{var m;if(v){const T=v.templateOptions;null===(m=null==T?void 0:T.ncSub)||void 0===m||m.unsubscribe()}}}}};var a=e(4182),S=e(8776),Z=e(5e3);function t(v){return/^\d{1,2}\.\d{4}$/.test(v.value)?{format:!0}:null}let l=(()=>{class v{}return v.\u0275fac=function(T){return new(T||v)},v.\u0275mod=Z.oAB({type:v}),v.\u0275inj=Z.cJS({imports:[[d.ez,a.UX,S.X0.forChild({types:[n],validators:[{name:"format",validation:t}],validationMessages:[{name:"format",message:"The NCCN Guideline version must be in the format {version number}.{year}."}]})]]}),v})()},9754:(G,V,e)=>{e.d(V,{K:()=>z});var d=e(9808),n=e(767),a=e(9444),S=e(6949),Z=e(8776),t=e(6042),l=e(7484),v=e(5482),m=e(4546),T=e(1894),N=e(647),s=e(3640),i=e(3610),M=e(8144),E=e(3618),c=e(5109),b=e(6789),x=e(5e3),$=e(2643),Y=e(2683),W=e(8965);function O(I,p){if(1&I){const h=x.EpF();x.TgZ(0,"cvc-evidence-table",4),x.NdJ("selectedEids",function(_){return x.CHM(h),x.oxw().onEidSelectionChange(_)}),x.qZA()}if(2&I){const h=x.oxw();x.Q6J("initialPageSize",15)("initialUserFilters",h.evidenceGridFilters)("initialSelectedEids",h.alreadySelected)}}const P={wrappers:[{name:"evidence-manager",component:(()=>{class I extends Z.n2{constructor(){super(...arguments),this.managerVisible=!1,this.alreadySelected=[],this.managerSelectedEids=[],this.evidenceGridFilters={eidInput:void 0,diseaseNameInput:void 0,drugNameInput:void 0,descriptionInput:void 0,evidenceLevelInput:void 0,evidenceTypeInput:void 0,evidenceDirectionInput:void 0,clinicalSignificanceInput:void 0,variantOriginInput:void 0,evidenceRatingInput:void 0,variantNameInput:void 0,geneSymbolInput:void 0}}handleOpen(){var h,C,_;if(null===(h=this.field.parent)||void 0===h?void 0:h.model){const o=null===(C=this.field.parent)||void 0===C?void 0:C.model;this.evidenceGridFilters.geneSymbolInput=1==(null===(_=o.gene)||void 0===_?void 0:_.length)&&o.gene[0]?o.gene[0].name:void 0,this.evidenceGridFilters.variantNameInput=1==o.variant.length&&o.variant[0]?o.variant[0].name:void 0,this.evidenceGridFilters.evidenceTypeInput=o.evidenceType?o.evidenceType:void 0,this.evidenceGridFilters.diseaseNameInput=1==o.disease.length&&o.disease[0]?o.disease[0].name:void 0}this.model&&(this.alreadySelected=this.model.filter(o=>o)),this.managerVisible=!0}handleCancel(){this.managerVisible=!1}handleOk(){this.managerVisible=!1;const h=this.managerSelectedEids;for(;this.formControl.value.lengthh.length;)this.to.remove(this.formControl.value.length-1);h.forEach((C,_)=>{this.field.formControl.controls[_].setValue(C)}),this.to.eidCallback&&this.to.eidCallback(h)}onEidSelectionChange(h){this.managerSelectedEids=h}}return I.\u0275fac=function(){let p;return function(C){return(p||(p=x.n5z(I)))(C||I)}}(),I.\u0275cmp=x.Xpm({type:I,selectors:[["cvc-with-evidence-manager-wrapper"]],features:[x.qOj],decls:7,vars:2,consts:[["fieldComponent",""],["nz-button","","type","button","nzType","default",3,"click"],["nzCentered","","nzClosable","","nzOkText","Select Evidence Items","nzWidth","100%",3,"nzVisible","nzContent","nzVisibleChange","nzOnCancel","nzOnOk"],["evidenceManager",""],["mode","select","cvcTitle","Evidence Manager",3,"initialPageSize","initialUserFilters","initialSelectedEids","selectedEids"]],template:function(h,C){if(1&h&&(x.GkF(0,null,0),x.TgZ(2,"button",1),x.NdJ("click",function(){return C.handleOpen()}),x._uU(3,"Show Evidence Manager"),x.qZA(),x.TgZ(4,"nz-modal",2),x.NdJ("nzVisibleChange",function(o){return C.managerVisible=o})("nzOnCancel",function(){return C.handleCancel()})("nzOnOk",function(){return C.handleOk()}),x.qZA(),x.YNc(5,O,1,3,"ng-template",null,3,x.W1O)),2&h){const _=x.MAs(6);x.xp6(4),x.Q6J("nzVisible",C.managerVisible)("nzContent",_)}},directives:[t.ix,$.dQ,Y.w,s.du,W.a],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),I})()}]};let z=(()=>{class I{}return I.\u0275fac=function(h){return new(h||I)},I.\u0275mod=x.oAB({type:I}),I.\u0275inj=x.cJS({imports:[[d.ez,S.WG,Z.X0.forChild(P),T.Jb,l.vh,v.cD,b._,c.s,m.U5,N.PV,t.sL,M.zf,i.$6,a.s,n.Q,E.ZJ,s.Qp]]}),I})()},5878:(G,V,e)=>{e.r(V),e.d(V,{AssertionsReviseModule:()=>qe});var d=e(9808),n=e(325),a=e(373),S=e(1059),Z=e(4850),t=e(5e3),l=e(712),v=e(9350),m=e(8992),T=e(8144),N=e(3618),s=e(3193),i=e(8664),M=e(1945),E=e(647),c=e(1894),b=e(8616),x=e(6949);function $(g,D){if(1&g&&(t.TgZ(0,"span",12),t.TgZ(1,"strong"),t._uU(2),t.qZA(),t._uU(3," Parents:"),t.qZA()),2&g){const r=t.oxw(2).ngIf;t.xp6(2),t.Oqu(r.name)}}function Y(g,D){if(1&g&&(t.TgZ(0,"span",13),t.TgZ(1,"a",14),t._UZ(2,"cvc-gene-tag",15),t.qZA(),t.TgZ(3,"a",14),t._UZ(4,"cvc-variant-tag",16),t.qZA(),t.qZA()),2&g){const r=t.oxw(2).ngIf;t.xp6(1),t.MGl("routerLink","/genes/",r.gene.id,""),t.xp6(1),t.Q6J("gene",r.gene),t.xp6(1),t.MGl("routerLink","/variants/",r.variant.id,""),t.xp6(1),t.Q6J("variant",r.variant)}}function W(g,D){1&g&&(t.TgZ(0,"nz-space",9),t.YNc(1,$,4,1,"span",10),t.YNc(2,Y,5,4,"span",11),t.qZA())}function O(g,D){1&g&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function J(g,D){1&g&&(t.TgZ(0,"nz-row",17),t.TgZ(1,"div",18),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function P(g,D){if(1&g&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,W,3,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3),t.TgZ(5,"nz-page-header-title",4),t._uU(6," REVISE "),t._UZ(7,"i",5),t._uU(8),t.qZA(),t.TgZ(9,"nz-page-header-content"),t.TgZ(10,"div",6),t.YNc(11,O,2,0,"div",7),t.ALo(12,"ngrxPush"),t.YNc(13,J,3,0,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&g){const r=D.ngIf,R=t.MAs(3),B=t.MAs(14),H=t.oxw();t.xp6(1),t.Q6J("displayName",r.name)("relationsTpl",R),t.xp6(7),t.hij(" ",r.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(12,5,H.isSignedIn$))("ngIfElse",B)}}let z=(()=>{class g{constructor(r,R,B){this.gql=r,this.route=R,this.viewerService=B,this.routeSub=this.route.params.subscribe(H=>{let F=this.gql.watch({assertionId:+H.assertionId}).valueChanges;this.loading$=F.pipe((0,a.j)("loading"),(0,S.O)(!0)),this.assertion$=F.pipe((0,a.j)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(r=>r.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(l.A94),t.Y36(n.gz),t.Y36(v.a))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertions-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:assertion"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,R){1&r&&(t.YNc(0,P,15,7,"ng-container",0),t.ALo(1,"async")),2&r&&t.Q6J("ngIf",t.lcZ(1,1,R.assertion$))},directives:[d.O5,m.I,T.NU,T.$1,N.ZU,n.yS,s.H,i.I,M.$O,M.u9,E.Ls,M.u5,n.lC,c.SK,c.t3,b.u],pipes:[d.Ov,x.fM],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{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}"]}),g})();var I=e(7484),p=e(6559),h=e(4182),C=e(5109),_=e(4546),o=e(2359),A=e(6042),f=e(7525),U=e(8776),j=e(1825),q=e(7008),ne=e(4375),te=e(7695),oe=e(7075),ie=e(8390),u=e(3773),L=e(5452),y=e(5743),Q=e(5457),w=e(8006),ae=e(7462),le=e(4623),de=e(3594),pe=e(3643),ge=e(1135),me=e(2789),ue=e(5932),ve=e(3416),he=e(2480),fe=e(1830),ye=e(4581),ze=e(1605),Ce=e(5926),Te=e(1270),xe=e(3314),Ae=e(3759),Oe=e(4902),Me=e(5486),Ie=e(464),_e=e(7795),Se=e(5472),Pe=e(9946),Ee=e(9754),Ze=e(4889);let Ne=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,n.Bz,h.UX,C.s,_.U5,o.L,c.Jb,A.sL,f.j,U.X0,j.A,q.B,ne.R,te.C,oe.l,ie.N,u.g,L.C,y.W,Q.$,w.I,ae.o,le.K,de.q,pe.q,ge.C,me.o,ue.A,ve.g,he.r,fe.S,ye.e,ze.e,Ce.J,Te.i,xe.p,Ae.D,Oe.a,Me.$,Ie.N,_e.k,Se.r,Pe.d,Ee.K,Ze.E]]}),g})(),Ve=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,x.WG,c.Jb,I.vh,p.H0,T.zf,Ne]]}),g})();var Le=e(6123),De=e(8929),Re=e(1837),K=e(6738),se=e(7625),Fe=e(9169),Ue=e(822);function Je(g,D){1&g&&t.GkF(0)}function be(g,D){if(1&g){const r=t.EpF();t.TgZ(0,"formly-form",6),t.NdJ("modelChange",function(B){return t.CHM(r),t.oxw(2).formModel=B}),t.qZA()}if(2&g){const r=t.oxw(2);t.Q6J("form",r.formGroup)("fields",r.formFields)("model",r.formModel)("options",r.formOptions)}}function Qe(g,D){if(1&g){const r=t.EpF();t.TgZ(0,"form",3),t.NdJ("ngSubmit",function(){t.CHM(r);const B=t.oxw();return B.reviseAssertion(B.formModel)}),t.YNc(1,Je,1,0,"ng-container",4),t.YNc(2,be,1,4,"formly-form",5),t.qZA()}if(2&g){const r=t.oxw(),R=t.MAs(3);t.Q6J("formGroup",r.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",R),t.xp6(1),t.Q6J("ngIf",!r.success)}}function Be(g,D){if(1&g&&(t.ynx(0),t.TgZ(1,"nz-form-item"),t._UZ(2,"cvc-form-errors-alert",8),t.qZA(),t.BQk()),2&g){const r=t.oxw(2);t.xp6(2),t.Q6J("errors",r.errorMessages)}}function Ge(g,D){1&g&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",12),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4," or suggest another revision below."),t.qZA())}function Ye(g,D){if(1&g&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.YNc(2,Ge,5,0,"ng-template",10,11,t.W1O),t.BQk()),2&g){const r=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",r)}}function We(g,D){if(1&g&&(t.YNc(0,Be,3,1,"ng-container",7),t.YNc(1,Ye,4,1,"ng-container",7)),2&g){const r=t.oxw();t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",r.success)}}let $e=(()=>{class g{constructor(r,R,B){this.suggestAssertionRevisionGQL=r,this.networkErrorService=R,this.revisableFieldsGQL=B,this.destroy$=new De.xQ,this.formGroup=new h.cw({}),this.formOptions={formState:new Re._},this.success=!1,this.errorMessages=[],this.loading=!0,this.reviseAssertion=k=>{let ce=this.toReviseInput(k);if(ce){let re=this.suggestAssertionRevisionMutator.mutate(this.suggestAssertionRevisionGQL,{input:ce});re.submitSuccess$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{ee&&(this.success=!0)}),re.submitError$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{ee&&(this.errorMessages=ee,this.success=!1)}),re.isSubmitting$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{this.loading=ee})}},this.suggestAssertionRevisionMutator=new Le.U(R),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Assertion Revision Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0}},{key:"variant",type:"variant-array",templateOptions:{required:!0,maxCount:1,allowCreate:!1}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1,allowCreate:!1}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{label:"Assertion Type",required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{label:"Assertion Direction",required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array",templateOptions:{allowCreate:!1}},{key:"drugInteractionType",type:"drug-interaction-select",templateOptions:{}},{key:"ampLevel",type:"amp-level-input",templateOptions:{}},{key:"acmgCodes",type:"acmg-code-array",templateOptions:{label:"ACMG/AMP Code(s)"}},{key:"phenotypes",type:"phenotype-array",templateOptions:{}},{key:"nccnGuideline",type:"nccn-guideline-input",templateOptions:{}},{key:"nccnGuidelineVersion",type:"nccn-version-input",templateOptions:{}},{key:"fdaRegulatoryApproval",type:"fda-approval-checkbox",templateOptions:{modelCallback:k=>{this.formModel.fields.fdaRegulatoryApproval=k}}},{key:"fdaCompanionTest",type:"fda-test-checkbox",templateOptions:{modelCallback:k=>{this.formModel.fields.fdaCompanionTest=k}}},{key:"summary",type:"cvc-textarea",templateOptions:{label:"Assertion Summary",helpText:"A short, one sentence summary of this new assertion",placeholder:"No description provided",required:!0}},{key:"description",type:"cvc-textarea",wrappers:["form-field"],templateOptions:{label:"Assertion Statement",helpText:"A complete, original description of this new assertion, limited to one paragraph",placeholder:"No description provided",required:!0}},{key:"evidenceItems",type:"multi-field",wrappers:["form-field","evidence-manager"],templateOptions:{label:"Evidence Items",helpText:"Evidence Items that support the assertion.",addText:"Add Evidence by ID",required:!0,eidCallback:k=>{this.formModel.fields.evidenceItems=k}},fieldArray:{type:"evidence-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Assertion Revision",submitSize:"large"}}]}]}toReviseInput(r){var R,B,H;if(r){const F=r.fields;return{id:F.id,comment:F.comment,organizationId:null===(R=F.organization)||void 0===R?void 0:R.id,fields:{description:K.xt(F.description),summary:K.xt(F.summary),variantId:F.variant[0].id,geneId:F.gene[0].id,variantOrigin:F.variantOrigin,assertionType:F.evidenceType,clinicalSignificance:F.clinicalSignificance,diseaseId:K.uP(null===(B=F.disease[0])||void 0===B?void 0:B.id),assertionDirection:F.evidenceDirection,phenotypeIds:F.phenotypes.map(X=>X.id),drugIds:F.drugs.map(X=>X.id),drugInteractionType:K.uP(F.drugInteractionType),ampLevel:K.uP(F.ampLevel),nccnGuidelineId:K.uP(null===(H=F.nccnGuideline)||void 0===H?void 0:H.id),nccnGuidelineVersion:K.xt(F.nccnGuidelineVersion),acmgCodeIds:F.acmgCodes.map(X=>X.id),fdaCompanionTest:K.uP(F.fdaCompanionTest),fdaRegulatoryApproval:K.uP(F.fdaRegulatoryApproval),evidenceItemIds:F.evidenceItems.map(X=>X.id)}}}}toFormModel(r){var R,B;return{fields:{id:r.id,description:r.description,summary:r.summary,variant:[r.variant],gene:[r.gene],variantOrigin:r.variantOrigin,evidenceType:r.assertionType,clinicalSignificance:r.clinicalSignificance,disease:[r.disease],evidenceDirection:r.assertionDirection,phenotypes:r.phenotypes,drugs:r.drugs,drugInteractionType:r.drugInteractionType,ampLevel:r.ampLevel,evidenceItems:r.evidenceItems,nccnGuideline:r.nccnGuideline,nccnGuidelineVersion:r.nccnGuidelineVersion,acmgCodes:r.acmgCodes,fdaCompanionTest:r.fdaCompanionTest,fdaRegulatoryApproval:r.regulatoryApproval,comment:null===(R=this.formModel)||void 0===R?void 0:R.fields.comment,organization:null===(B=this.formModel)||void 0===B?void 0:B.fields.organization}}}ngAfterViewInit(){this.assertionId&&this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).subscribe(({data:{assertion:r}})=>{r&&(this.formModel=this.toFormModel(r),this.loading=!1)},r=>{console.error("Error retrieving assertion."),console.error(r)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const r=this.formGroup.get("fields.comment");r&&r.markAsUntouched()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(l.c$m),t.Y36(Fe.Y),t.Y36(l.bgg))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertion-revise-form"]],inputs:{assertionId:"assertionId"},decls:4,vars:2,consts:[[3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(r,R){1&r&&(t.TgZ(0,"nz-spin",0),t.YNc(1,Qe,3,3,"form",1),t.YNc(2,We,2,2,"ng-template",null,2,t.W1O),t.qZA()),2&r&&(t.Q6J("nzSpinning",R.loading),t.xp6(1),t.Q6J("ngIf",R.formModel))},directives:[f.W,d.O5,h._Y,h.JL,_.Lr,h.sg,d.tP,U.T7,c.SK,_.Nx,Ue.V,o.r,n.yS],styles:["[_nghost-%COMP%]{display:block}"]}),g})();const je=[{path:"",component:z,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class g{constructor(r){this.route=r,this.routeParams$=this.route.params.subscribe(R=>{this.assertionId=+R.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(n.gz))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertions-suggest-page"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(r,R){1&r&&t._UZ(0,"cvc-assertion-revise-form",0),2&r&&t.Q6J("assertionId",R.assertionId)},directives:[$e],styles:[""]}),g})(),data:{breadcrumb:"Suggest Revision"}}]}];let we=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[n.Bz.forChild(je),Ve],n.Bz]}),g})();var He=e(5630),Ke=e(3309),Xe=e(4867),ke=e(9386);let qe=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,we,M.KJ,T.zf,E.PV,N.ZJ,T.zf,Ke.U,Xe.Q,He.D,le.K,x.WG,c.Jb,ke.a]]}),g})()},136:(G,V,e)=>{e.r(V),e.d(V,{AssertionsModule:()=>_});var d=e(9808),n=e(325),a=e(3618),S=e(1945),Z=e(1894),t=e(6949),l=e(6462),v=e(9441),m=e(647),T=e(5630),N=e(6042),s=e(8144),i=e(5e3);let M=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[d.ez,t.WG,n.Bz,m.PV,a.ZJ,S.KJ,Z.Jb,l.m,N.sL,s.zf,v.s,T.D]]}),o})();var E=e(9350),c=e(8992),b=e(2643),x=e(2683),$=e(3756);function Y(o,A){1&o&&(i.TgZ(0,"button",17),i._UZ(1,"i",18),i._uU(2," Submit New Assertion "),i.qZA())}function W(o,A){if(1&o&&(i.ynx(0),i.YNc(1,Y,3,0,"button",16),i.BQk()),2&o){const f=A.ngrxLet;i.xp6(1),i.Q6J("ngIf",f.signedIn)}}function O(o,A){if(1&o&&i.YNc(0,W,2,1,"ng-container",15),2&o){const f=i.oxw();i.Q6J("ngrxLet",f.viewer$)}}function J(o,A){1&o&&(i.TgZ(0,"a",19),i._UZ(1,"i",20),i._uU(2," View Assertion Model Docs "),i.qZA())}function P(o,A){1&o&&(i.TgZ(0,"a",21),i._UZ(1,"i",20),i._uU(2," View Assertion Curation Docs "),i.qZA())}const p=[{path:"",component:(()=>{class o{constructor(){}}return o.\u0275fac=function(f){return new(f||o)},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-assertions"]],decls:1,vars:0,template:function(f,U){1&f&&i._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(f){this.viewerService=f,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return o.\u0275fac=function(f){return new(f||o)(i.Y36(E.a))},o.\u0275cmp=i.Xpm({type:o,selectors:[["assertions-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["assertionActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:assertion"],["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/model/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Assertions"],[4,"ngrxLet"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock",""]],template:function(f,U){if(1&f&&(i._UZ(0,"cvc-section-navigation",0),i.YNc(1,O,1,1,"ng-template",null,1,i.W1O),i.TgZ(3,"nz-page-header",2),i.TgZ(4,"nz-page-header-content"),i.TgZ(5,"nz-row",3),i.TgZ(6,"nz-col",4),i._UZ(7,"i",5),i.qZA(),i.TgZ(8,"nz-col",6),i.TgZ(9,"h2"),i._uU(10,"Assertions"),i.qZA(),i.TgZ(11,"p",7),i._uU(12,"A CIViC Assertion summarizes a collection of Evidence Items that cover predictive/therapeutic, diagnostic, prognostic or predisposing clinical information for a variant in a specific cancer context."),i.qZA(),i.qZA(),i.TgZ(13,"nz-col",8),i.TgZ(14,"nz-space",9),i.YNc(15,J,3,0,"a",10),i.YNc(16,P,3,0,"a",11),i.qZA(),i.qZA(),i.qZA(),i.TgZ(17,"nz-row"),i.TgZ(18,"nz-col",12),i.TgZ(19,"div",13),i._UZ(20,"cvc-assertions-table",14),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&f){const j=i.MAs(2);i.Q6J("actionsTpl",j),i.xp6(11),i.Q6J("nzEllipsisRows",2),i.xp6(7),i.Q6J("nzSpan",24)}},directives:[c.I,t.eJ,d.O5,N.ix,b.dQ,n.rH,x.w,m.Ls,S.$O,S.u5,Z.SK,Z.t3,a.ZU,s.NU,s.$1,$.x],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{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}"]}),o})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(o=>o.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(2738),e.e(55),e.e(4292),e.e(2043),e.e(3482),e.e(775),e.e(3438)]).then(e.bind(e,3438)).then(o=>o.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(e.bind(e,5878)).then(o=>o.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(o=>o.AssertionAddModule)}];let h=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[n.Bz.forChild(p),M],n.Bz]}),o})();var C=e(5878);let _=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[d.ez,h,C.AssertionsReviseModule]]}),o})()},6462:(G,V,e)=>{e.d(V,{i:()=>J,m:()=>P});var d=e(655),n=e(1159),a=e(5e3),S=e(4182),Z=e(8929),t=e(3753),l=e(7625),v=e(9439),m=e(1721),T=e(5664),N=e(226),s=e(2643),i=e(9808),M=e(647),E=e(969);const c=["switchElement"];function b(z,I){1&z&&a._UZ(0,"i",8)}function x(z,I){if(1&z&&(a.ynx(0),a._uU(1),a.BQk()),2&z){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzCheckedChildren)}}function $(z,I){if(1&z&&(a.ynx(0),a.YNc(1,x,2,1,"ng-container",9),a.BQk()),2&z){const p=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",p.nzCheckedChildren)}}function Y(z,I){if(1&z&&(a.ynx(0),a._uU(1),a.BQk()),2&z){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzUnCheckedChildren)}}function W(z,I){if(1&z&&a.YNc(0,Y,2,1,"ng-container",9),2&z){const p=a.oxw();a.Q6J("nzStringTemplateOutlet",p.nzUnCheckedChildren)}}let J=(()=>{class z{constructor(p,h,C,_,o,A){this.nzConfigService=p,this.host=h,this.ngZone=C,this.cdr=_,this.focusMonitor=o,this.directionality=A,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new Z.xQ}updateValue(p){this.isChecked!==p&&(this.isChecked=p,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,l.R)(this.destroy$)).subscribe(p=>{this.dir=p,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,t.R)(this.host.nativeElement,"click").pipe((0,l.R)(this.destroy$)).subscribe(p=>{p.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,t.R)(this.switchElement.nativeElement,"keydown").pipe((0,l.R)(this.destroy$)).subscribe(p=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:h}=p;h!==n.oh&&h!==n.SV&&h!==n.L_&&h!==n.K5||(p.preventDefault(),this.ngZone.run(()=>{h===n.oh?this.updateValue(!1):h===n.SV?this.updateValue(!0):(h===n.L_||h===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,l.R)(this.destroy$)).subscribe(p=>{p||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(p){this.isChecked=p,this.cdr.markForCheck()}registerOnChange(p){this.onChange=p}registerOnTouched(p){this.onTouched=p}setDisabledState(p){this.nzDisabled=p,this.cdr.markForCheck()}}return z.\u0275fac=function(p){return new(p||z)(a.Y36(v.jY),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(T.tE),a.Y36(N.Is,8))},z.\u0275cmp=a.Xpm({type:z,selectors:[["nz-switch"]],viewQuery:function(p,h){if(1&p&&a.Gf(c,7),2&p){let C;a.iGM(C=a.CRH())&&(h.switchElement=C.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[a._Bn([{provide:S.JU,useExisting:(0,a.Gpc)(()=>z),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(p,h){if(1&p&&(a.TgZ(0,"button",0,1),a.TgZ(2,"span",2),a.YNc(3,b,1,0,"i",3),a.qZA(),a.TgZ(4,"span",4),a.YNc(5,$,2,1,"ng-container",5),a.YNc(6,W,1,1,"ng-template",null,6,a.W1O),a.qZA(),a._UZ(8,"div",7),a.qZA()),2&p){const C=a.MAs(7);a.ekj("ant-switch-checked",h.isChecked)("ant-switch-loading",h.nzLoading)("ant-switch-disabled",h.nzDisabled)("ant-switch-small","small"===h.nzSize)("ant-switch-rtl","rtl"===h.dir),a.Q6J("disabled",h.nzDisabled)("nzWaveExtraNode",!0),a.xp6(3),a.Q6J("ngIf",h.nzLoading),a.xp6(2),a.Q6J("ngIf",h.isChecked)("ngIfElse",C)}},directives:[s.dQ,i.O5,M.Ls,E.f],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,m.yF)()],z.prototype,"nzLoading",void 0),(0,d.gn)([(0,m.yF)()],z.prototype,"nzDisabled",void 0),(0,d.gn)([(0,m.yF)()],z.prototype,"nzControl",void 0),(0,d.gn)([(0,v.oS)()],z.prototype,"nzSize",void 0),z})(),P=(()=>{class z{}return z.\u0275fac=function(p){return new(p||z)},z.\u0275mod=a.oAB({type:z}),z.\u0275inj=a.cJS({imports:[[N.vT,i.ez,s.vG,M.PV,E.T]]}),z})()}}]);
\ No newline at end of file
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9020],{7946:(G,V,e)=>{e.d(V,{x:()=>m});var d=e(9808),n=e(897),a=e(8481),S=e(3610),Z=e(8018),t=e(3580),l=e(9476),v=e(5e3);let m=(()=>{class T{}return T.\u0275fac=function(s){return new(s||T)},T.\u0275mod=v.oAB({type:T}),T.\u0275inj=v.cJS({imports:[[d.ez,a.X,S.$6,n.$,Z.e,t.Q,l.L]]}),T})()},8664:(G,V,e)=>{e.d(V,{I:()=>ie});var d=e(6654),n=e(5e3),a=e(9808),S=e(325),Z=e(8481),t=e(3610),l=e(4850),v=e(712),m=e(7484),T=e(647),N=e(3193),s=e(3098),i=e(6550),M=e(1894),E=e(8144),c=e(6949);function b(u,L){if(1&u&&(n._UZ(0,"i",13),n._uU(1)),2&u){const y=n.oxw().ngIf;n.xp6(1),n.hij(" ",y.name," ")}}function x(u,L){if(1&u&&n._UZ(0,"cvc-gene-tag",14),2&u){const y=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",y.gene)}}function $(u,L){1&u&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function Y(u,L){if(1&u&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,$,2,0,"span",1),n.qZA()),2&u){const y=L.$implicit,Q=L.last;n.xp6(1),n.hij(" ",y,""),n.xp6(1),n.Q6J("ngIf",!Q)}}function W(u,L){if(1&u&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,Y,3,2,"span",16),n.qZA()),2&u){const y=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",y.variantAliases)}}function O(u,L){if(1&u&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",y.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",y.alleleRegistryId," ")}}function J(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/flags"),n.xp6(3),n.hij(" Flags (",y.flags.totalCount,") ")}}function P(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",y.revisions.totalCount,") ")}}function z(u,L){if(1&u&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&u){const y=n.oxw().ngIf;n.MGl("routerLink","/variants/",y.id,"/comments"),n.xp6(3),n.hij(" Comments (",y.comments.totalCount,") ")}}function I(u,L){if(1&u&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,b,2,1,"ng-template",null,3,n.W1O),n.YNc(4,x,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,W,2,1,"nz-descriptions-item",6),n.YNc(8,O,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,J,4,2,"a",12),n.YNc(15,P,4,2,"a",12),n.YNc(16,z,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&u){const y=L.ngIf,Q=n.MAs(3),w=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",Q)("nzExtra",w),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",y.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",y.alleleRegistryId),n.xp6(2),n.hij(" ",y.evidenceItems.totalCount," ")}}let p=(()=>{class u{constructor(y){this.gql=y}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,l.U)(({data:y})=>y.variant))}}return u.\u0275fac=function(y){return new(y||u)(n.Y36(v.ZYZ))},u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(y,Q){1&y&&(n.TgZ(0,"div",0),n.YNc(1,I,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&y&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,Q.variant$)))},directives:[a.O5,m.bd,T.Ls,N.H,s.R7,s.uj,a.sg,i.l,M.SK,M.t3,E.NU,E.$1,S.yS,Z.j],pipes:[c.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 h(u,L){}function C(u,L){if(1&u&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,h,0,0,"ng-template",6),n.qZA(),n.BQk()),2&u){const y=n.oxw(),Q=n.MAs(2);n.xp6(1),n.Q6J("routerLink",y.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function _(u,L){}function o(u,L){if(1&u){const y=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(w){return n.CHM(y),n.oxw(2).itemClosed(w)}),n.YNc(1,_,0,0,"ng-template",6),n.qZA()}if(2&u){n.oxw();const y=n.MAs(2),Q=n.oxw(),w=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",Q.onCloseClicked?0:.5)("nzPopoverContent",y)("nzMode",Q.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",w)}}function A(u,L){if(1&u&&n._UZ(0,"cvc-variant-popover",11),2&u){const y=n.oxw(3);n.Q6J("variantId",y.variant.id)}}function f(u,L){if(1&u&&n.YNc(0,A,1,1,"cvc-variant-popover",10),2&u){const y=n.oxw(2);n.Q6J("ngIf",y.enablePopover)}}function U(u,L){if(1&u&&(n.YNc(0,o,2,4,"nz-tag",7),n.YNc(1,f,1,1,"ng-template",null,8,n.W1O)),2&u){const y=n.oxw(),Q=n.MAs(4);n.Q6J("ngIf",y.enablePopover)("ngIfElse",Q)}}function j(u,L){}function q(u,L){if(1&u){const y=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(w){return n.CHM(y),n.oxw().itemClosed(w)}),n.YNc(1,j,0,0,"ng-template",6),n.qZA()}if(2&u){const y=n.oxw(),Q=n.MAs(8);n.Q6J("nzMode",y.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function ne(u,L){}function te(u,L){if(1&u&&n.YNc(0,ne,0,0,"ng-template",6),2&u){n.oxw();const y=n.MAs(2);n.Q6J("ngTemplateOutlet",y)}}function oe(u,L){if(1&u&&(n._UZ(0,"i",13),n._uU(1)),2&u){const y=n.oxw();n.xp6(1),n.hij(" ",y.variant.name,"\n")}}let ie=(()=>{class u extends d.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return u.\u0275fac=function(y){return new(y||u)},u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(y,Q){if(1&y&&(n.YNc(0,C,3,2,"ng-container",0),n.YNc(1,U,3,2,"ng-template",null,1,n.W1O),n.YNc(3,q,2,2,"ng-template",null,2,n.W1O),n.YNc(5,te,1,1,"ng-template",null,3,n.W1O),n.YNc(7,oe,2,1,"ng-template",null,4,n.W1O)),2&y){const w=n.MAs(6);n.Q6J("ngIf",Q.linked)("ngIfElse",w)}},directives:[a.O5,S.yS,a.tP,Z.j,t.lU,p,T.Ls],styles:[""]}),u})()},4867:(G,V,e)=>{e.d(V,{Q:()=>E});var d=e(9808),n=e(325),a=e(8481),S=e(647),Z=e(3610),t=e(6949),l=e(7484),v=e(1894),m=e(3098),T=e(8144),N=e(3309),s=e(3630),i=e(5e3);let M=(()=>{class c{}return c.\u0275fac=function(x){return new(x||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({imports:[[d.ez,n.Bz,t.WG,l.vh,v.Jb,m.q6,a.X,S.PV,T.zf,N.U,s.X]]}),c})(),E=(()=>{class c{}return c.\u0275fac=function(x){return new(x||c)},c.\u0275mod=i.oAB({type:c}),c.\u0275inj=i.cJS({imports:[[d.ez,n.Bz,a.X,Z.$6,S.PV,M]]}),c})()},3154:(G,V,e)=>{e.d(V,{_:()=>n});var d=e(712);function n(a){var S;switch(a.value){case"ascend":S=d.SrV.Asc;break;case"descend":S=d.SrV.Desc;break;default:return}return{column:a.key,direction:S}}},1837:(G,V,e)=>{e.d(V,{_:()=>a});var d=e(712),n=e(7905);class a extends n.nT{constructor(){super(n.yQ.ASSERTION),this.validStates.set(d.uBv.Predictive,{entityType:d.uBv.Predictive,clinicalSignificance:[d.Vr2.Sensitivityresponse,d.Vr2.Resistance,d.Vr2.AdverseResponse,d.Vr2.ReducedSensitivity,d.Vr2.Na],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(d.uBv.Diagnostic,{entityType:d.uBv.Diagnostic,clinicalSignificance:[d.Vr2.Positive,d.Vr2.Negative],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(d.uBv.Prognostic,{entityType:d.uBv.Prognostic,clinicalSignificance:[d.Vr2.BetterOutcome,d.Vr2.PoorOutcome,d.Vr2.Na],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(d.uBv.Predisposing,{entityType:d.uBv.Predisposing,clinicalSignificance:[d.Vr2.Pathogenic,d.Vr2.LikelyPathogenic,d.Vr2.Benign,d.Vr2.LikelyBenign,d.Vr2.UncertainSignificance],entityDirection:[d.mdl.Supports,d.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},3759:(G,V,e)=>{e.d(V,{D:()=>_});var d=e(9808),n=e(915);const S={name:"acmg-code-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"ACMG/AMP Code(s)",required:!1,addText:"Add an ACMG/AMP Code",helpText:'Refers to evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP in Richards et. al. 2015.'},fieldArray:{type:"acmg-code-select",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(o,A)=>{const f=(null==A?void 0:A.form)?A.form.get("evidenceType"):null;return f&&f.value?`${(0,n.E)(f.value)} Assertions requires at least one ACMG code to be specified.`:"ACMG Code is required."}}},hooks:{onInit:o=>{var A;const f=o.templateOptions,U=null===(A=null==o?void 0:o.options)||void 0===A?void 0:A.formState,j=(null==o?void 0:o.form)?o.form.get("evidenceType"):null;!j||(f.vcSub=j.valueChanges.subscribe(q=>{U.requiresAcmgCodes(q)?(f.hidden=!1,f.required=!0):(f.hidden=!0,f.required=!1,o.model.length>0&&(o.model.splice(1),f.remove(0)))}))}}}};var Z=e(8776),t=e(8390),l=e(4182),v=e(3793),m=e(8929),T=e(7625),N=e(4850),s=e(5e3),i=e(712),M=e(8054),E=e(6949),c=e(8144),b=e(8481),x=e(8926);function $(o,A){if(1&o&&(s.TgZ(0,"span"),s._UZ(1,"span",8),s.ALo(2,"highlightTypeahead"),s._uU(3),s.qZA()),2&o){const f=s.oxw().$implicit,U=s.oxw(3);s.xp6(1),s.Q6J("innerHtml",s.xi3(2,2,f.code,U.searchVal),s.oJD),s.xp6(2),s.hij(" - ",f.description," ")}}function Y(o,A){if(1&o&&(s.TgZ(0,"nz-option",6),s.TgZ(1,"nz-space"),s.YNc(2,$,4,5,"span",7),s.qZA(),s.qZA()),2&o){const f=A.$implicit;s.Q6J("nzLabel",f.code)("nzValue",f)}}function W(o,A){if(1&o&&(s.ynx(0),s.YNc(1,Y,3,2,"nz-option",5),s.BQk()),2&o){const f=A.ngrxLet;s.xp6(1),s.Q6J("ngForOf",f)}}function O(o,A){1&o&&s._uU(0," No ACMG code found in CIViC that matches the string provided. ")}function J(o,A){if(1&o){const f=s.EpF();s.ynx(0),s.TgZ(1,"nz-select",2),s.NdJ("nzOnSearch",function(j){return s.CHM(f),s.oxw().onSearch(j)}),s.YNc(2,W,2,1,"ng-container",3),s.qZA(),s.YNc(3,O,1,0,"ng-template",null,4,s.W1O),s.BQk()}if(2&o){const f=s.MAs(4),U=s.oxw();s.xp6(1),s.Q6J("formControl",U.formControl)("formlyAttributes",U.field)("nzPlaceHolder",U.to.placeholder?U.to.placeholder:null)("nzNotFoundContent",f)("nzShowArrow",U.to.showArrow)("nzFilterOption",U.to.filterOption),s.xp6(1),s.Q6J("ngrxLet",U.codes$)}}function P(o,A){if(1&o&&(s.TgZ(0,"nz-tag"),s._uU(1),s.qZA()),2&o){const f=s.oxw();s.xp6(1),s.Oqu(f.formControl.value.code)}}const I={name:"acmg-code-select",extends:"select",component:(()=>{class o extends Z.fS{constructor(f){super(),this.acmgCodeGQL=f,this.destroy$=new m.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.acmgCodeGQL.watch({code:this.searchVal}),this.codes$=this.queryRef.valueChanges.pipe((0,T.R)(this.destroy$),(0,N.U)(({data:f})=>f.acmgCodesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(f){var U;this.searchVal=f,null===(U=this.queryRef)||void 0===U||U.refetch({code:f})}}return o.\u0275fac=function(f){return new(f||o)(s.Y36(i.$G1))},o.\u0275cmp=s.Xpm({type:o,selectors:[["cvc-acmg-code-select-type"]],features:[s.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["acmgCodeItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[4,"nzSpaceItem"],[3,"innerHtml"]],template:function(f,U){if(1&f&&(s.YNc(0,J,5,7,"ng-container",0),s.YNc(1,P,2,1,"ng-template",null,1,s.W1O)),2&f){const j=s.MAs(2);s.Q6J("ngIf",!(null!=U.formControl.value&&U.formControl.value.id))("ngIfElse",j)}},directives:[d.O5,M.Vq,l.JJ,l.oH,Z.VQ,E.eJ,d.sg,M.Ip,c.NU,c.$1,b.j],pipes:[x.A],styles:[""]}),o})(),wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"None specified."},modelOptions:{debounce:{default:500}}}};var p=e(9444),h=e(7338);let C=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[[d.ez,l.UX,E.WG,v.F,b.X,M.LV,c.zf,p.s,Z.X0.forChild({types:[I]}),h.z]]}),o})(),_=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=s.oAB({type:o}),o.\u0275inj=s.cJS({imports:[[d.ez,Z.X0.forChild({types:[S]}),t.N,C]]}),o})()},3314:(G,V,e)=>{e.d(V,{p:()=>s});var d=e(9808),n=e(4182),a=e(8776),S=e(9657),Z=e(712),t=e(444);const l=new S.t,v={TIER_I_LEVEL_A:"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines",TIER_I_LEVEL_B:"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field",TIER_II_LEVEL_C:"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus",TIER_II_LEVEL_D:"Biomarkers that show plausible therapeutic significance based on preclinical studies",TIER_III:"Somatic variants in cancer genes reported in the same or different cancer types with unknown clinical significance and variants in cancer genes that have not been reported in any cancers",TIER_IV:"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation","Not Applicable":"AMP/ASCO/CAP category is not relevant to this assertion."},m={name:"amp-level-input",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"Please Select an AMP/ASCO/CAP Category",label:"AMP/ASCO/CAP Category",helpText:'If applicable, please provide the AMP/ASCO/CAP somatic variant classification.',required:!1,options:(0,t.o6)(Z.iwm).map(i=>({value:i,label:l.transform(i,"verbose")}))},hideExpression:(i,M,E)=>{var c;return(null===(c=null==E?void 0:E.templateOptions)||void 0===c?void 0:c.hidden)||!1},hooks:{onInit:i=>{var M;const E=i.templateOptions,c=null===(M=null==i?void 0:i.options)||void 0===M?void 0:M.formState,b=(null==i?void 0:i.form)?i.form.get("evidenceType"):null;!b||(E.vcSub=b.valueChanges.subscribe(x=>{c.requiresAmpLevel(x)?(E.hidden=!1,E.required=!0):(E.hidden=!0,E.required=!1,i.model[i.key]=void 0)}))}},expressionProperties:{"templateOptions.optionText":(i,M,E)=>v[i.ampLevel]}}};var T=e(9444),N=e(5e3);let s=(()=>{class i{}return i.\u0275fac=function(E){return new(E||i)},i.\u0275mod=N.oAB({type:i}),i.\u0275inj=N.cJS({imports:[[d.ez,n.UX,T.s,a.X0.forChild({types:[m]})]]}),i})()},9946:(G,V,e)=>{e.d(V,{d:()=>I});var d=e(9808),n=e(8776),a=e(8054),S=e(4182),Z=e(8144),t=e(3618),l=e(6949),v=e(7008),m=e(6042),T=e(1047),N=e(9444),s=e(7625),i=e(373),M=e(4850),E=e(8929),c=e(5e3),b=e(712),x=e(9001);function $(p,h){if(1&p&&(c.ynx(0),c.TgZ(1,"nz-option",5),c._uU(2),c.qZA(),c.BQk()),2&p){const C=h.ngIf;c.xp6(1),c.Q6J("nzLabel",C.tooltip)("nzValue",C.eid),c.xp6(1),c.hij(" ",C.label," ")}}function Y(p,h){1&p&&c._uU(0," No EID matches the provided ID ")}function W(p,h){if(1&p){const C=c.EpF();c.ynx(0),c.TgZ(1,"nz-select",2),c.NdJ("nzOnSearch",function(o){return c.CHM(C),c.oxw().to.onSearch(o)}),c.YNc(2,$,3,3,"ng-container",3),c.ALo(3,"ngrxPush"),c.qZA(),c.YNc(4,Y,1,0,"ng-template",null,4,c.W1O),c.BQk()}if(2&p){const C=c.MAs(5),_=c.oxw();c.xp6(1),c.Q6J("formControl",_.formControl)("formlyAttributes",_.field)("nzPlaceHolder",_.to.placeholder?_.to.placeholder:null)("nzNotFoundContent",C)("nzShowArrow",_.to.showArrow)("nzFilterOption",_.to.filterOption),c.xp6(1),c.Q6J("ngIf",c.lcZ(3,7,_.eid$))}}function O(p,h){if(1&p&&c._UZ(0,"cvc-evidence-tag",6),2&p){const C=c.oxw();c.Q6J("evidence",C.formControl.value)}}const P={name:"evidence-input",component:(()=>{class p extends n.fS{constructor(C){super(),this.evidenceGQL=C,this.destroy$=new E.xQ,this.defaultOptions={templateOptions:{placeholder:"Enter Evidence",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:""}}}ngOnInit(){this.queryRef=this.evidenceGQL.watch({id:99999999}),this.eid$=this.queryRef.valueChanges.pipe((0,s.R)(this.destroy$),(0,i.j)("data","evidenceItem"),(0,M.U)(C=>{if(C)return{value:C.id,label:C.name,eid:C}}))}ngAfterViewInit(){this.to.onSearch=C=>{if(C.length{class p{}return p.\u0275fac=function(C){return new(C||p)},p.\u0275mod=c.oAB({type:p}),p.\u0275inj=c.cJS({imports:[[d.ez,S.u5,S.UX,l.WG,n.X0.forChild({types:[P]}),a.LV,Z.zf,t.ZJ,m.sL,T.o7,z.i,v.B,N.s]]}),p})()},464:(G,V,e)=>{e.d(V,{N:()=>t});var d=e(9808),n=e(4182);const a={name:"fda-approval-checkbox",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"FDA Regulatory Approval?",helpText:"Select yes if the referenced therapy is approved for use by the FDA in the specific disease associated with the Assertion (as in a listing here.)",placeholder:"None Specified",options:[{value:!0,label:"Yes"},{value:!1,label:"No"},{value:void 0,label:""}]},hooks:{onInit:l=>{var v;if(l){const m=l.templateOptions,T=(null==l?void 0:l.form)?l.form.get("evidenceType"):null,N=null===(v=null==l?void 0:l.options)||void 0===v?void 0:v.formState;if(!T||!m)return;m.ncSub=T.valueChanges.subscribe(s=>{var i,M;s&&N.allowsFdaApproval(s)?(m.hidden=!1,m.required=!0):(null===(M=null===(i=l.form)||void 0===i?void 0:i.get(l.key))||void 0===M||M.setValue(void 0),m.modelCallback(void 0),l.model[l.key]=void 0,m.hidden=!0,m.required=!1)})}},onDestroy:l=>{var v;if(l){const m=l.templateOptions;null===(v=null==m?void 0:m.ncSub)||void 0===v||v.unsubscribe()}}}}};var S=e(8776),Z=e(5e3);let t=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[d.ez,n.UX,S.X0.forChild({types:[a]})]]}),l})()},7795:(G,V,e)=>{e.d(V,{k:()=>t});var d=e(9808),n=e(4182),a=e(8776);const S={name:"fda-test-checkbox",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"FDA Companion Test?",placeholder:"None Specified",helpText:'Select Yes if an FDA approved companion test exists for the variant and drug associated with the Assertion (such as tests listed here).',options:[{value:!0,label:"Yes"},{value:!1,label:"No"},{value:void 0,label:""}]},hooks:{onInit:l=>{var v;if(l){const m=l.templateOptions,T=(null==l?void 0:l.form)?l.form.get("fdaRegulatoryApproval"):null,N=(null==l?void 0:l.form)?l.form.get("evidenceType"):null,s=null===(v=null==l?void 0:l.options)||void 0===v?void 0:v.formState;if(!T||!m||!N)return;m.etSub=N.valueChanges.subscribe(i=>{var M,E;i&&s.allowsFdaApproval(i)?(m.hidden=!1,m.required=!0):(null===(E=null===(M=l.form)||void 0===M?void 0:M.get(l.key))||void 0===E||E.setValue(void 0),m.modelCallback(void 0),l.model[l.key]=void 0,m.hidden=!0,m.required=!1)}),m.ncSub=T.valueChanges.subscribe(i=>{i?(m.hidden=!1,m.required=!0,m.modelCallback(!0),l.model[l.key]=!0):(m.modelCallback(!1),l.model[l.key]=!1,m.hidden=!0,m.required=!1)})}},onDestroy:l=>{var v,m;if(l){const T=l.templateOptions;null===(v=null==T?void 0:T.ncSub)||void 0===v||v.unsubscribe(),null===(m=null==T?void 0:T.etSub)||void 0===m||m.unsubscribe()}}}}};var Z=e(5e3);let t=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[d.ez,n.UX,a.X0.forChild({types:[S]})]]}),l})()},5486:(G,V,e)=>{e.d(V,{$:()=>W});var d=e(9808),n=e(8776),a=e(8929),S=e(7625),Z=e(4850),t=e(5e3),l=e(712),v=e(8054),m=e(4182),T=e(6949),N=e(8144),s=e(8481);function i(O,J){if(1&O&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&O){const P=t.oxw().$implicit;t.xp6(1),t.hij(" ",P.name," ")}}function M(O,J){if(1&O&&(t.TgZ(0,"nz-option",6),t.TgZ(1,"nz-space"),t.YNc(2,i,2,1,"span",7),t.qZA(),t.qZA()),2&O){const P=J.$implicit;t.Q6J("nzLabel",P.name)("nzValue",P)}}function E(O,J){if(1&O&&(t.ynx(0),t.YNc(1,M,3,2,"nz-option",5),t.BQk()),2&O){const P=J.ngrxLet;t.xp6(1),t.Q6J("ngForOf",P)}}function c(O,J){1&O&&t._uU(0," No NCCN Guideline found in CIViC that matches the string provided. ")}function b(O,J){if(1&O){const P=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",2),t.NdJ("nzOnSearch",function(I){return t.CHM(P),t.oxw().onSearch(I)}),t.YNc(2,E,2,1,"ng-container",3),t.qZA(),t.YNc(3,c,1,0,"ng-template",null,4,t.W1O),t.BQk()}if(2&O){const P=t.MAs(4),z=t.oxw();t.xp6(1),t.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",P)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),t.xp6(1),t.Q6J("ngrxLet",z.guidelines$)}}function x(O,J){if(1&O&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&O){const P=t.oxw();t.xp6(1),t.Oqu(P.formControl.value.name)}}const Y={name:"nccn-guideline-input",extends:"select",wrappers:["form-field"],component:(()=>{class O extends n.fS{constructor(P){super(),this.nccnGuidelineGQL=P,this.destroy$=new a.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.nccnGuidelineGQL.watch({name:this.searchVal}),this.guidelines$=this.queryRef.valueChanges.pipe((0,S.R)(this.destroy$),(0,Z.U)(({data:P})=>P.nccnGuidelinesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(P){var z;null===(z=this.queryRef)||void 0===z||z.refetch({name:P})}}return O.\u0275fac=function(P){return new(P||O)(t.Y36(l.lfy))},O.\u0275cmp=t.Xpm({type:O,selectors:[["cvc-nccn-guideline-input-type"]],features:[t.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["nccnItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[4,"nzSpaceItem"]],template:function(P,z){if(1&P&&(t.YNc(0,b,5,7,"ng-container",0),t.YNc(1,x,2,1,"ng-template",null,1,t.W1O)),2&P){const I=t.MAs(2);t.Q6J("ngIf",!(null!=z.formControl.value&&z.formControl.value.id))("ngIfElse",I)}},directives:[d.O5,v.Vq,m.JJ,m.oH,n.VQ,T.eJ,d.sg,v.Ip,N.NU,N.$1,s.j],styles:[""]}),O})(),defaultOptions:{templateOptions:{label:"NCCN Guideline",placeholder:"None specified",helpText:'If applicable, please provide cancer (e.g., Breast Cancer) and version (e.g., 5.2016) for the appropriate NCCN guideline.'},modelOptions:{debounce:{default:500}}}};let W=(()=>{class O{}return O.\u0275fac=function(P){return new(P||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[[d.ez,m.UX,T.WG,v.LV,N.zf,s.X,n.X0.forChild({types:[Y]})]]}),O})()},4902:(G,V,e)=>{e.d(V,{a:()=>l});var d=e(9808);const n={name:"nccn-version-input",extends:"input",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"NCCN Guideline Version",placeholder:"None specified"},validators:["format"],validation:{messages:{required:"If you specify an NCCN Guideline it must have a version."}},hideExpression:(v,m,T)=>!v.nccnGuideline,hooks:{onInit:v=>{if(v){const m=v.templateOptions,T=(null==v?void 0:v.form)?v.form.get("nccnGuideline"):null;if(!T||!m)return;m.ncSub=T.valueChanges.subscribe(N=>{N?m.required=!0:(m.required=!1,v.model[v.key]=void 0)})}},onDestroy:v=>{var m;if(v){const T=v.templateOptions;null===(m=null==T?void 0:T.ncSub)||void 0===m||m.unsubscribe()}}}}};var a=e(4182),S=e(8776),Z=e(5e3);function t(v){return/^\d{1,2}\.\d{4}$/.test(v.value)?{format:!0}:null}let l=(()=>{class v{}return v.\u0275fac=function(T){return new(T||v)},v.\u0275mod=Z.oAB({type:v}),v.\u0275inj=Z.cJS({imports:[[d.ez,a.UX,S.X0.forChild({types:[n],validators:[{name:"format",validation:t}],validationMessages:[{name:"format",message:"The NCCN Guideline version must be in the format {version number}.{year}."}]})]]}),v})()},9754:(G,V,e)=>{e.d(V,{K:()=>z});var d=e(9808),n=e(767),a=e(9444),S=e(6949),Z=e(8776),t=e(6042),l=e(7484),v=e(5482),m=e(4546),T=e(1894),N=e(647),s=e(3640),i=e(3610),M=e(8144),E=e(3618),c=e(5109),b=e(6789),x=e(5e3),$=e(2643),Y=e(2683),W=e(8965);function O(I,p){if(1&I){const h=x.EpF();x.TgZ(0,"cvc-evidence-table",4),x.NdJ("selectedEids",function(_){return x.CHM(h),x.oxw().onEidSelectionChange(_)}),x.qZA()}if(2&I){const h=x.oxw();x.Q6J("initialPageSize",15)("initialUserFilters",h.evidenceGridFilters)("initialSelectedEids",h.alreadySelected)}}const P={wrappers:[{name:"evidence-manager",component:(()=>{class I extends Z.n2{constructor(){super(...arguments),this.managerVisible=!1,this.alreadySelected=[],this.managerSelectedEids=[],this.evidenceGridFilters={eidInput:void 0,diseaseNameInput:void 0,drugNameInput:void 0,descriptionInput:void 0,evidenceLevelInput:void 0,evidenceTypeInput:void 0,evidenceDirectionInput:void 0,clinicalSignificanceInput:void 0,variantOriginInput:void 0,evidenceRatingInput:void 0,variantNameInput:void 0,geneSymbolInput:void 0}}handleOpen(){var h,C,_;if(null===(h=this.field.parent)||void 0===h?void 0:h.model){const o=null===(C=this.field.parent)||void 0===C?void 0:C.model;this.evidenceGridFilters.geneSymbolInput=1==(null===(_=o.gene)||void 0===_?void 0:_.length)&&o.gene[0]?o.gene[0].name:void 0,this.evidenceGridFilters.variantNameInput=1==o.variant.length&&o.variant[0]?o.variant[0].name:void 0,this.evidenceGridFilters.evidenceTypeInput=o.evidenceType?o.evidenceType:void 0,this.evidenceGridFilters.diseaseNameInput=1==o.disease.length&&o.disease[0]?o.disease[0].name:void 0}this.model&&(this.alreadySelected=this.model.filter(o=>o)),this.managerVisible=!0}handleCancel(){this.managerVisible=!1}handleOk(){this.managerVisible=!1;const h=this.managerSelectedEids;for(;this.formControl.value.lengthh.length;)this.to.remove(this.formControl.value.length-1);h.forEach((C,_)=>{this.field.formControl.controls[_].setValue(C)}),this.to.eidCallback&&this.to.eidCallback(h)}onEidSelectionChange(h){this.managerSelectedEids=h}}return I.\u0275fac=function(){let p;return function(C){return(p||(p=x.n5z(I)))(C||I)}}(),I.\u0275cmp=x.Xpm({type:I,selectors:[["cvc-with-evidence-manager-wrapper"]],features:[x.qOj],decls:7,vars:2,consts:[["fieldComponent",""],["nz-button","","type","button","nzType","default",3,"click"],["nzCentered","","nzClosable","","nzOkText","Select Evidence Items","nzWidth","100%",3,"nzVisible","nzContent","nzVisibleChange","nzOnCancel","nzOnOk"],["evidenceManager",""],["mode","select","cvcTitle","Evidence Manager",3,"initialPageSize","initialUserFilters","initialSelectedEids","selectedEids"]],template:function(h,C){if(1&h&&(x.GkF(0,null,0),x.TgZ(2,"button",1),x.NdJ("click",function(){return C.handleOpen()}),x._uU(3,"Show Evidence Manager"),x.qZA(),x.TgZ(4,"nz-modal",2),x.NdJ("nzVisibleChange",function(o){return C.managerVisible=o})("nzOnCancel",function(){return C.handleCancel()})("nzOnOk",function(){return C.handleOk()}),x.qZA(),x.YNc(5,O,1,3,"ng-template",null,3,x.W1O)),2&h){const _=x.MAs(6);x.xp6(4),x.Q6J("nzVisible",C.managerVisible)("nzContent",_)}},directives:[t.ix,$.dQ,Y.w,s.du,W.a],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),I})()}]};let z=(()=>{class I{}return I.\u0275fac=function(h){return new(h||I)},I.\u0275mod=x.oAB({type:I}),I.\u0275inj=x.cJS({imports:[[d.ez,S.WG,Z.X0.forChild(P),T.Jb,l.vh,v.cD,b._,c.s,m.U5,N.PV,t.sL,M.zf,i.$6,a.s,n.Q,E.ZJ,s.Qp]]}),I})()},5878:(G,V,e)=>{e.r(V),e.d(V,{AssertionsReviseModule:()=>qe});var d=e(9808),n=e(325),a=e(373),S=e(1059),Z=e(4850),t=e(5e3),l=e(712),v=e(9350),m=e(8992),T=e(8144),N=e(3618),s=e(3193),i=e(8664),M=e(1945),E=e(647),c=e(1894),b=e(8616),x=e(6949);function $(g,D){if(1&g&&(t.TgZ(0,"span",12),t.TgZ(1,"strong"),t._uU(2),t.qZA(),t._uU(3," Parents:"),t.qZA()),2&g){const r=t.oxw(2).ngIf;t.xp6(2),t.Oqu(r.name)}}function Y(g,D){if(1&g&&(t.TgZ(0,"span",13),t.TgZ(1,"a",14),t._UZ(2,"cvc-gene-tag",15),t.qZA(),t.TgZ(3,"a",14),t._UZ(4,"cvc-variant-tag",16),t.qZA(),t.qZA()),2&g){const r=t.oxw(2).ngIf;t.xp6(1),t.MGl("routerLink","/genes/",r.gene.id,""),t.xp6(1),t.Q6J("gene",r.gene),t.xp6(1),t.MGl("routerLink","/variants/",r.variant.id,""),t.xp6(1),t.Q6J("variant",r.variant)}}function W(g,D){1&g&&(t.TgZ(0,"nz-space",9),t.YNc(1,$,4,1,"span",10),t.YNc(2,Y,5,4,"span",11),t.qZA())}function O(g,D){1&g&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function J(g,D){1&g&&(t.TgZ(0,"nz-row",17),t.TgZ(1,"div",18),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function P(g,D){if(1&g&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,W,3,0,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3),t.TgZ(5,"nz-page-header-title",4),t._uU(6," REVISE "),t._UZ(7,"i",5),t._uU(8),t.qZA(),t.TgZ(9,"nz-page-header-content"),t.TgZ(10,"div",6),t.YNc(11,O,2,0,"div",7),t.ALo(12,"ngrxPush"),t.YNc(13,J,3,0,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&g){const r=D.ngIf,R=t.MAs(3),B=t.MAs(14),H=t.oxw();t.xp6(1),t.Q6J("displayName",r.name)("relationsTpl",R),t.xp6(7),t.hij(" ",r.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(12,5,H.isSignedIn$))("ngIfElse",B)}}let z=(()=>{class g{constructor(r,R,B){this.gql=r,this.route=R,this.viewerService=B,this.routeSub=this.route.params.subscribe(H=>{let F=this.gql.watch({assertionId:+H.assertionId}).valueChanges;this.loading$=F.pipe((0,a.j)("loading"),(0,S.O)(!0)),this.assertion$=F.pipe((0,a.j)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(r=>r.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(l.A94),t.Y36(n.gz),t.Y36(v.a))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertions-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:assertion"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,R){1&r&&(t.YNc(0,P,15,7,"ng-container",0),t.ALo(1,"async")),2&r&&t.Q6J("ngIf",t.lcZ(1,1,R.assertion$))},directives:[d.O5,m.I,T.NU,T.$1,N.ZU,n.yS,s.H,i.I,M.$O,M.u9,E.Ls,M.u5,n.lC,c.SK,c.t3,b.u],pipes:[d.Ov,x.fM],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{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}"]}),g})();var I=e(7484),p=e(6559),h=e(4182),C=e(5109),_=e(4546),o=e(2359),A=e(6042),f=e(7525),U=e(8776),j=e(1825),q=e(7008),ne=e(4375),te=e(7695),oe=e(7075),ie=e(8390),u=e(3773),L=e(5452),y=e(5743),Q=e(5457),w=e(8006),ae=e(7462),le=e(4623),de=e(3594),pe=e(3643),ge=e(1135),me=e(2789),ue=e(5932),ve=e(3416),he=e(2480),fe=e(1830),ye=e(4581),ze=e(1605),Ce=e(5926),Te=e(1270),xe=e(3314),Ae=e(3759),Oe=e(4902),Me=e(5486),Ie=e(464),_e=e(7795),Se=e(5472),Pe=e(9946),Ee=e(9754),Ze=e(4889);let Ne=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,n.Bz,h.UX,C.s,_.U5,o.L,c.Jb,A.sL,f.j,U.X0,j.A,q.B,ne.R,te.C,oe.l,ie.N,u.g,L.C,y.W,Q.$,w.I,ae.o,le.K,de.q,pe.q,ge.C,me.o,ue.A,ve.g,he.r,fe.S,ye.e,ze.e,Ce.J,Te.i,xe.p,Ae.D,Oe.a,Me.$,Ie.N,_e.k,Se.r,Pe.d,Ee.K,Ze.E]]}),g})(),Ve=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,x.WG,c.Jb,I.vh,p.H0,T.zf,Ne]]}),g})();var Le=e(6123),De=e(8929),Re=e(1837),K=e(6738),se=e(7625),Fe=e(9169),Ue=e(822);function Je(g,D){1&g&&t.GkF(0)}function be(g,D){if(1&g){const r=t.EpF();t.TgZ(0,"formly-form",6),t.NdJ("modelChange",function(B){return t.CHM(r),t.oxw(2).formModel=B}),t.qZA()}if(2&g){const r=t.oxw(2);t.Q6J("form",r.formGroup)("fields",r.formFields)("model",r.formModel)("options",r.formOptions)}}function Qe(g,D){if(1&g){const r=t.EpF();t.TgZ(0,"form",3),t.NdJ("ngSubmit",function(){t.CHM(r);const B=t.oxw();return B.reviseAssertion(B.formModel)}),t.YNc(1,Je,1,0,"ng-container",4),t.YNc(2,be,1,4,"formly-form",5),t.qZA()}if(2&g){const r=t.oxw(),R=t.MAs(3);t.Q6J("formGroup",r.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",R),t.xp6(1),t.Q6J("ngIf",!r.success)}}function Be(g,D){if(1&g&&(t.ynx(0),t.TgZ(1,"nz-form-item"),t._UZ(2,"cvc-form-errors-alert",8),t.qZA(),t.BQk()),2&g){const r=t.oxw(2);t.xp6(2),t.Q6J("errors",r.errorMessages)}}function Ge(g,D){1&g&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",12),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4,"."),t.qZA())}function Ye(g,D){if(1&g&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.YNc(2,Ge,5,0,"ng-template",10,11,t.W1O),t.BQk()),2&g){const r=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",r)}}function We(g,D){if(1&g&&(t.YNc(0,Be,3,1,"ng-container",7),t.YNc(1,Ye,4,1,"ng-container",7)),2&g){const r=t.oxw();t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",r.success)}}let $e=(()=>{class g{constructor(r,R,B){this.suggestAssertionRevisionGQL=r,this.networkErrorService=R,this.revisableFieldsGQL=B,this.destroy$=new De.xQ,this.formGroup=new h.cw({}),this.formOptions={formState:new Re._},this.success=!1,this.errorMessages=[],this.loading=!0,this.reviseAssertion=k=>{let ce=this.toReviseInput(k);if(ce){let re=this.suggestAssertionRevisionMutator.mutate(this.suggestAssertionRevisionGQL,{input:ce});re.submitSuccess$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{ee&&(this.success=!0)}),re.submitError$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{ee&&(this.errorMessages=ee,this.success=!1)}),re.isSubmitting$.pipe((0,se.R)(this.destroy$)).subscribe(ee=>{this.loading=ee})}},this.suggestAssertionRevisionMutator=new Le.U(R),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Assertion Revision Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0}},{key:"variant",type:"variant-array",templateOptions:{required:!0,maxCount:1,allowCreate:!1}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1,allowCreate:!1}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{label:"Assertion Type",required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{label:"Assertion Direction",required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array",templateOptions:{allowCreate:!1}},{key:"drugInteractionType",type:"drug-interaction-select",templateOptions:{}},{key:"ampLevel",type:"amp-level-input",templateOptions:{}},{key:"acmgCodes",type:"acmg-code-array",templateOptions:{label:"ACMG/AMP Code(s)"}},{key:"phenotypes",type:"phenotype-array",templateOptions:{}},{key:"nccnGuideline",type:"nccn-guideline-input",templateOptions:{}},{key:"nccnGuidelineVersion",type:"nccn-version-input",templateOptions:{}},{key:"fdaRegulatoryApproval",type:"fda-approval-checkbox",templateOptions:{modelCallback:k=>{this.formModel.fields.fdaRegulatoryApproval=k}}},{key:"fdaCompanionTest",type:"fda-test-checkbox",templateOptions:{modelCallback:k=>{this.formModel.fields.fdaCompanionTest=k}}},{key:"summary",type:"cvc-textarea",templateOptions:{label:"Assertion Summary",helpText:"A short, one sentence summary of this new assertion",placeholder:"No description provided",required:!0}},{key:"description",type:"cvc-textarea",wrappers:["form-field"],templateOptions:{label:"Assertion Statement",helpText:"A complete, original description of this new assertion, limited to one paragraph",placeholder:"No description provided",required:!0}},{key:"evidenceItems",type:"multi-field",wrappers:["form-field","evidence-manager"],templateOptions:{label:"Evidence Items",helpText:"Evidence Items that support the assertion.",addText:"Add Evidence by ID",required:!0,eidCallback:k=>{this.formModel.fields.evidenceItems=k}},fieldArray:{type:"evidence-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Assertion Revision",submitSize:"large"}}]}]}toReviseInput(r){var R,B,H;if(r){const F=r.fields;return{id:F.id,comment:F.comment,organizationId:null===(R=F.organization)||void 0===R?void 0:R.id,fields:{description:K.xt(F.description),summary:K.xt(F.summary),variantId:F.variant[0].id,geneId:F.gene[0].id,variantOrigin:F.variantOrigin,assertionType:F.evidenceType,clinicalSignificance:F.clinicalSignificance,diseaseId:K.uP(null===(B=F.disease[0])||void 0===B?void 0:B.id),assertionDirection:F.evidenceDirection,phenotypeIds:F.phenotypes.map(X=>X.id),drugIds:F.drugs.map(X=>X.id),drugInteractionType:K.uP(F.drugInteractionType),ampLevel:K.uP(F.ampLevel),nccnGuidelineId:K.uP(null===(H=F.nccnGuideline)||void 0===H?void 0:H.id),nccnGuidelineVersion:K.xt(F.nccnGuidelineVersion),acmgCodeIds:F.acmgCodes.map(X=>X.id),fdaCompanionTest:K.uP(F.fdaCompanionTest),fdaRegulatoryApproval:K.uP(F.fdaRegulatoryApproval),evidenceItemIds:F.evidenceItems.map(X=>X.id)}}}}toFormModel(r){var R,B;return{fields:{id:r.id,description:r.description,summary:r.summary,variant:[r.variant],gene:[r.gene],variantOrigin:r.variantOrigin,evidenceType:r.assertionType,clinicalSignificance:r.clinicalSignificance,disease:[r.disease],evidenceDirection:r.assertionDirection,phenotypes:r.phenotypes,drugs:r.drugs,drugInteractionType:r.drugInteractionType,ampLevel:r.ampLevel,evidenceItems:r.evidenceItems,nccnGuideline:r.nccnGuideline,nccnGuidelineVersion:r.nccnGuidelineVersion,acmgCodes:r.acmgCodes,fdaCompanionTest:r.fdaCompanionTest,fdaRegulatoryApproval:r.regulatoryApproval,comment:null===(R=this.formModel)||void 0===R?void 0:R.fields.comment,organization:null===(B=this.formModel)||void 0===B?void 0:B.fields.organization}}}ngAfterViewInit(){this.assertionId&&this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).subscribe(({data:{assertion:r}})=>{r&&(this.formModel=this.toFormModel(r),this.loading=!1)},r=>{console.error("Error retrieving assertion."),console.error(r)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const r=this.formGroup.get("fields.comment");r&&r.markAsUntouched()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(l.c$m),t.Y36(Fe.Y),t.Y36(l.bgg))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertion-revise-form"]],inputs:{assertionId:"assertionId"},decls:4,vars:2,consts:[[3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(r,R){1&r&&(t.TgZ(0,"nz-spin",0),t.YNc(1,Qe,3,3,"form",1),t.YNc(2,We,2,2,"ng-template",null,2,t.W1O),t.qZA()),2&r&&(t.Q6J("nzSpinning",R.loading),t.xp6(1),t.Q6J("ngIf",R.formModel))},directives:[f.W,d.O5,h._Y,h.JL,_.Lr,h.sg,d.tP,U.T7,c.SK,_.Nx,Ue.V,o.r,n.yS],styles:["[_nghost-%COMP%]{display:block}"]}),g})();const je=[{path:"",component:z,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class g{constructor(r){this.route=r,this.routeParams$=this.route.params.subscribe(R=>{this.assertionId=+R.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return g.\u0275fac=function(r){return new(r||g)(t.Y36(n.gz))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-assertions-suggest-page"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(r,R){1&r&&t._UZ(0,"cvc-assertion-revise-form",0),2&r&&t.Q6J("assertionId",R.assertionId)},directives:[$e],styles:[""]}),g})(),data:{breadcrumb:"Suggest Revision"}}]}];let we=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[n.Bz.forChild(je),Ve],n.Bz]}),g})();var He=e(5630),Ke=e(3309),Xe=e(4867),ke=e(9386);let qe=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[d.ez,we,M.KJ,T.zf,E.PV,N.ZJ,T.zf,Ke.U,Xe.Q,He.D,le.K,x.WG,c.Jb,ke.a]]}),g})()},136:(G,V,e)=>{e.r(V),e.d(V,{AssertionsModule:()=>_});var d=e(9808),n=e(325),a=e(3618),S=e(1945),Z=e(1894),t=e(6949),l=e(6462),v=e(9441),m=e(647),T=e(5630),N=e(6042),s=e(8144),i=e(5e3);let M=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[d.ez,t.WG,n.Bz,m.PV,a.ZJ,S.KJ,Z.Jb,l.m,N.sL,s.zf,v.s,T.D]]}),o})();var E=e(9350),c=e(8992),b=e(2643),x=e(2683),$=e(3756);function Y(o,A){1&o&&(i.TgZ(0,"button",17),i._UZ(1,"i",18),i._uU(2," Submit New Assertion "),i.qZA())}function W(o,A){if(1&o&&(i.ynx(0),i.YNc(1,Y,3,0,"button",16),i.BQk()),2&o){const f=A.ngrxLet;i.xp6(1),i.Q6J("ngIf",f.signedIn)}}function O(o,A){if(1&o&&i.YNc(0,W,2,1,"ng-container",15),2&o){const f=i.oxw();i.Q6J("ngrxLet",f.viewer$)}}function J(o,A){1&o&&(i.TgZ(0,"a",19),i._UZ(1,"i",20),i._uU(2," View Assertion Model Docs "),i.qZA())}function P(o,A){1&o&&(i.TgZ(0,"a",21),i._UZ(1,"i",20),i._uU(2," View Assertion Curation Docs "),i.qZA())}const p=[{path:"",component:(()=>{class o{constructor(){}}return o.\u0275fac=function(f){return new(f||o)},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-assertions"]],decls:1,vars:0,template:function(f,U){1&f&&i._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(f){this.viewerService=f,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return o.\u0275fac=function(f){return new(f||o)(i.Y36(E.a))},o.\u0275cmp=i.Xpm({type:o,selectors:[["assertions-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["assertionActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:assertion"],["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/model/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Assertions"],[4,"ngrxLet"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock",""]],template:function(f,U){if(1&f&&(i._UZ(0,"cvc-section-navigation",0),i.YNc(1,O,1,1,"ng-template",null,1,i.W1O),i.TgZ(3,"nz-page-header",2),i.TgZ(4,"nz-page-header-content"),i.TgZ(5,"nz-row",3),i.TgZ(6,"nz-col",4),i._UZ(7,"i",5),i.qZA(),i.TgZ(8,"nz-col",6),i.TgZ(9,"h2"),i._uU(10,"Assertions"),i.qZA(),i.TgZ(11,"p",7),i._uU(12,"A CIViC Assertion summarizes a collection of Evidence Items that cover predictive/therapeutic, diagnostic, prognostic or predisposing clinical information for a variant in a specific cancer context."),i.qZA(),i.qZA(),i.TgZ(13,"nz-col",8),i.TgZ(14,"nz-space",9),i.YNc(15,J,3,0,"a",10),i.YNc(16,P,3,0,"a",11),i.qZA(),i.qZA(),i.qZA(),i.TgZ(17,"nz-row"),i.TgZ(18,"nz-col",12),i.TgZ(19,"div",13),i._UZ(20,"cvc-assertions-table",14),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&f){const j=i.MAs(2);i.Q6J("actionsTpl",j),i.xp6(11),i.Q6J("nzEllipsisRows",2),i.xp6(7),i.Q6J("nzSpan",24)}},directives:[c.I,t.eJ,d.O5,N.ix,b.dQ,n.rH,x.w,m.Ls,S.$O,S.u5,Z.SK,Z.t3,a.ZU,s.NU,s.$1,$.x],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{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}"]}),o})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(o=>o.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(2738),e.e(55),e.e(4292),e.e(2043),e.e(3482),e.e(775),e.e(3438)]).then(e.bind(e,3438)).then(o=>o.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(e.bind(e,5878)).then(o=>o.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(o=>o.AssertionAddModule)}];let h=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[n.Bz.forChild(p),M],n.Bz]}),o})();var C=e(5878);let _=(()=>{class o{}return o.\u0275fac=function(f){return new(f||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[d.ez,h,C.AssertionsReviseModule]]}),o})()},6462:(G,V,e)=>{e.d(V,{i:()=>J,m:()=>P});var d=e(655),n=e(1159),a=e(5e3),S=e(4182),Z=e(8929),t=e(3753),l=e(7625),v=e(9439),m=e(1721),T=e(5664),N=e(226),s=e(2643),i=e(9808),M=e(647),E=e(969);const c=["switchElement"];function b(z,I){1&z&&a._UZ(0,"i",8)}function x(z,I){if(1&z&&(a.ynx(0),a._uU(1),a.BQk()),2&z){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzCheckedChildren)}}function $(z,I){if(1&z&&(a.ynx(0),a.YNc(1,x,2,1,"ng-container",9),a.BQk()),2&z){const p=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",p.nzCheckedChildren)}}function Y(z,I){if(1&z&&(a.ynx(0),a._uU(1),a.BQk()),2&z){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzUnCheckedChildren)}}function W(z,I){if(1&z&&a.YNc(0,Y,2,1,"ng-container",9),2&z){const p=a.oxw();a.Q6J("nzStringTemplateOutlet",p.nzUnCheckedChildren)}}let J=(()=>{class z{constructor(p,h,C,_,o,A){this.nzConfigService=p,this.host=h,this.ngZone=C,this.cdr=_,this.focusMonitor=o,this.directionality=A,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new Z.xQ}updateValue(p){this.isChecked!==p&&(this.isChecked=p,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,l.R)(this.destroy$)).subscribe(p=>{this.dir=p,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,t.R)(this.host.nativeElement,"click").pipe((0,l.R)(this.destroy$)).subscribe(p=>{p.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,t.R)(this.switchElement.nativeElement,"keydown").pipe((0,l.R)(this.destroy$)).subscribe(p=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:h}=p;h!==n.oh&&h!==n.SV&&h!==n.L_&&h!==n.K5||(p.preventDefault(),this.ngZone.run(()=>{h===n.oh?this.updateValue(!1):h===n.SV?this.updateValue(!0):(h===n.L_||h===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,l.R)(this.destroy$)).subscribe(p=>{p||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(p){this.isChecked=p,this.cdr.markForCheck()}registerOnChange(p){this.onChange=p}registerOnTouched(p){this.onTouched=p}setDisabledState(p){this.nzDisabled=p,this.cdr.markForCheck()}}return z.\u0275fac=function(p){return new(p||z)(a.Y36(v.jY),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(T.tE),a.Y36(N.Is,8))},z.\u0275cmp=a.Xpm({type:z,selectors:[["nz-switch"]],viewQuery:function(p,h){if(1&p&&a.Gf(c,7),2&p){let C;a.iGM(C=a.CRH())&&(h.switchElement=C.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[a._Bn([{provide:S.JU,useExisting:(0,a.Gpc)(()=>z),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(p,h){if(1&p&&(a.TgZ(0,"button",0,1),a.TgZ(2,"span",2),a.YNc(3,b,1,0,"i",3),a.qZA(),a.TgZ(4,"span",4),a.YNc(5,$,2,1,"ng-container",5),a.YNc(6,W,1,1,"ng-template",null,6,a.W1O),a.qZA(),a._UZ(8,"div",7),a.qZA()),2&p){const C=a.MAs(7);a.ekj("ant-switch-checked",h.isChecked)("ant-switch-loading",h.nzLoading)("ant-switch-disabled",h.nzDisabled)("ant-switch-small","small"===h.nzSize)("ant-switch-rtl","rtl"===h.dir),a.Q6J("disabled",h.nzDisabled)("nzWaveExtraNode",!0),a.xp6(3),a.Q6J("ngIf",h.nzLoading),a.xp6(2),a.Q6J("ngIf",h.isChecked)("ngIfElse",C)}},directives:[s.dQ,i.O5,M.Ls,E.f],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,m.yF)()],z.prototype,"nzLoading",void 0),(0,d.gn)([(0,m.yF)()],z.prototype,"nzDisabled",void 0),(0,d.gn)([(0,m.yF)()],z.prototype,"nzControl",void 0),(0,d.gn)([(0,v.oS)()],z.prototype,"nzSize",void 0),z})(),P=(()=>{class z{}return z.\u0275fac=function(p){return new(p||z)},z.\u0275mod=a.oAB({type:z}),z.\u0275inj=a.cJS({imports:[[N.vT,i.ez,s.vG,M.PV,E.T]]}),z})()}}]);
\ No newline at end of file
diff --git a/server/public/9081.0ab72e89b7403f00.js b/server/public/9081.0ab72e89b7403f00.js
deleted file mode 100644
index 3f5ac32c7..000000000
--- a/server/public/9081.0ab72e89b7403f00.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9081],{8616:(B,I,i)=>{i.d(I,{u:()=>o});var d=i(5e3),n=i(685),r=i(1912),b=i(3618),x=i(647);function e(v,_){1&v&&(d.TgZ(0,"span"),d._uU(1," You must be logged in to view this page. "),d.qZA())}function C(v,_){1&v&&d._UZ(0,"cvc-login-button")}function u(v,_){1&v&&(d.TgZ(0,"nz-typography",4),d._UZ(1,"i",5),d.qZA())}let o=(()=>{class v{}return v.\u0275fac=function(T){return new(T||v)},v.\u0275cmp=d.Xpm({type:v,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(T,O){if(1&T&&(d.TgZ(0,"nz-empty",0),d.YNc(1,e,2,0,"ng-template",null,1,d.W1O),d.YNc(3,C,1,0,"ng-template",null,2,d.W1O),d.qZA(),d.YNc(5,u,2,0,"ng-template",null,3,d.W1O)),2&T){const M=d.MAs(2),E=d.MAs(4),A=d.MAs(6);d.Q6J("nzNotFoundImage",A)("nzNotFoundContent",M)("nzNotFoundFooter",E)}},directives:[n.p9,r.s,b.ZU,x.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),v})()},9386:(B,I,i)=>{i.d(I,{a:()=>C});var d=i(9808),n=i(1844),r=i(685),b=i(647),x=i(3618),e=i(5e3);let C=(()=>{class u{}return u.\u0275fac=function(v){return new(v||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[[d.ez,n.B,r.Xo,b.PV,x.ZJ]]}),u})()},7701:(B,I,i)=>{i.d(I,{j:()=>F});var d=i(6654),n=i(5e3),r=i(9808),b=i(325),x=i(8481),e=i(3610),C=i(4850),u=i(712),o=i(7484),v=i(647),_=i(6550),T=i(3098),O=i(6949);function M(m,z){if(1&m&&(n._UZ(0,"i",7),n._uU(1)),2&m){const f=n.oxw().ngIf;n.xp6(1),n.hij(" ",f.name," ")}}function E(m,z){if(1&m&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&m){const f=n.oxw(2).ngIf;n.Q6J("href",f.url),n.xp6(1),n.hij(" ",f.soid," ")}}function A(m,z){if(1&m&&n.YNc(0,E,2,2,"cvc-link-tag",8),2&m){const f=n.oxw().ngIf;n.Q6J("ngIf","N/A"!=f.soid)}}function D(m,z){if(1&m&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,M,2,1,"ng-template",null,3,n.W1O),n.YNc(4,A,1,1,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&m){const f=z.ngIf,S=n.MAs(3),w=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",S)("nzExtra",w),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",f.variantCount," ")}}let R=(()=>{class m{constructor(f){this.gql=f}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,C.U)(({data:f})=>f.variantTypePopover))}}return m.\u0275fac=function(f){return new(f||m)(n.Y36(u.tw_))},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(f,S){1&f&&(n.TgZ(0,"div",0),n.YNc(1,D,9,4,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&f&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,S.variantType$)))},directives:[r.O5,o.bd,v.Ls,_.l,T.R7,T.uj],pipes:[O.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}"]}),m})();function L(m,z){}function N(m,z){if(1&m&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,L,0,0,"ng-template",6),n.qZA(),n.BQk()),2&m){const f=n.oxw(),S=n.MAs(2);n.xp6(1),n.Q6J("routerLink",f.variantType.link),n.xp6(1),n.Q6J("ngTemplateOutlet",S)}}function J(m,z){}function U(m,z){if(1&m&&(n.TgZ(0,"nz-tag",9),n.YNc(1,J,0,0,"ng-template",6),n.qZA()),2&m){n.oxw();const f=n.MAs(2);n.oxw();const S=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",f),n.xp6(1),n.Q6J("ngTemplateOutlet",S)}}function Q(m,z){if(1&m&&n._UZ(0,"cvc-variant-type-popover",10),2&m){const f=n.oxw(2);n.Q6J("variantTypeId",f.variantType.id)}}function V(m,z){if(1&m&&(n.YNc(0,U,2,3,"nz-tag",7),n.YNc(1,Q,1,1,"ng-template",null,8,n.W1O)),2&m){const f=n.oxw(),S=n.MAs(6);n.Q6J("ngIf",f.enablePopover)("ngIfElse",S)}}function s(m,z){}function h(m,z){if(1&m&&n.YNc(0,s,0,0,"ng-template",6),2&m){n.oxw();const f=n.MAs(2);n.Q6J("ngTemplateOutlet",f)}}function l(m,z){}function g(m,z){if(1&m&&(n.TgZ(0,"nz-tag"),n.YNc(1,l,0,0,"ng-template",6),n.qZA()),2&m){n.oxw();const f=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",f)}}function P(m,z){if(1&m&&(n._UZ(0,"i",11),n._uU(1)),2&m){const f=n.oxw();n.xp6(1),n.hij(" ",f.variantType.name,"\n")}}let F=(()=>{class m extends d.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return m.\u0275fac=function(f){return new(f||m)},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(f,S){if(1&f&&(n.YNc(0,N,3,2,"ng-container",0),n.YNc(1,V,3,2,"ng-template",null,1,n.W1O),n.YNc(3,h,1,1,"ng-template",null,2,n.W1O),n.YNc(5,g,2,1,"ng-template",null,3,n.W1O),n.YNc(7,P,2,1,"ng-template",null,4,n.W1O)),2&f){const w=n.MAs(4);n.Q6J("ngIf",S.linked)("ngIfElse",w)}},directives:[r.O5,b.yS,r.tP,x.j,e.lU,R,v.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),m})()},8645:(B,I,i)=>{i.d(I,{M:()=>T});var d=i(9808),n=i(325),r=i(8481),b=i(7484),x=i(3630),e=i(3098),C=i(6949),u=i(647),o=i(5e3);let v=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=o.oAB({type:O}),O.\u0275inj=o.cJS({imports:[[d.ez,C.WG,u.PV,b.vh,e.q6,x.X]]}),O})();var _=i(3610);let T=(()=>{class O{}return O.\u0275fac=function(E){return new(E||O)},O.\u0275mod=o.oAB({type:O}),O.\u0275inj=o.cJS({imports:[[d.ez,n.Bz,u.PV,r.X,_.$6,v]]}),O})()},7462:(B,I,i)=>{i.d(I,{o:()=>u});var d=i(9808),n=i(8776),r=i(5e3),b=i(1047),x=i(4182);const C={name:"cvc-textarea",component:(()=>{class o extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return o.\u0275fac=function(){let v;return function(T){return(v||(v=r.n5z(o)))(T||o)}}(),o.\u0275cmp=r.Xpm({type:o,selectors:[["cvc-textarea-base-type"]],features:[r.qOj],decls:1,vars:3,consts:[["nz-input","",3,"nzAutosize","formControl","formlyAttributes"]],template:function(_,T){1&_&&r._UZ(0,"textarea",0),2&_&&r.Q6J("nzAutosize",T.to.autosize)("formControl",T.formControl)("formlyAttributes",T.field)},directives:[b.Zp,b.rh,x.Fj,x.JJ,x.oH,n.VQ],styles:[""],changeDetection:0}),o})(),wrappers:["form-field"]};let u=(()=>{class o{}return o.\u0275fac=function(_){return new(_||o)},o.\u0275mod=r.oAB({type:o}),o.\u0275inj=r.cJS({imports:[[d.ez,x.u5,x.UX,n.X0.forChild({types:[C]}),b.o7]]}),o})()},6738:(B,I,i)=>{function d(u){let o={value:void 0,unset:void 0};return u&&u.trim().length>0?o.value=u.trim():o.unset=!0,o}function n(u){let o={value:void 0,unset:void 0};return void 0!==u?o.value=u:o.unset=!0,o}function r(u){let o,v;return u&&u.includes("N/A")?(u=void 0,v=void 0,o=!0):u||(u=void 0,o=void 0,v=!0),{ids:u?u.map(_=>+_):void 0,noneFound:v,notApplicable:o}}function b(u){return{chromosome:e(u.chromosome),representativeTranscript:e(u.representativeTranscript),start:u.start?+u.start:void 0,stop:u.stop?+u.stop:void 0}}function x(u){let o={value:void 0,unset:void 0};return u?o.value=u:o.unset=!0,o}function e(u){let o;return o=u&&u.length>0?u:void 0,o}i.d(I,{aP:()=>C,Zg:()=>r,_$:()=>b,uP:()=>n,dh:()=>x,xt:()=>d});const C=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7695:(B,I,i)=>{i.d(I,{C:()=>V});var d=i(9808),n=i(6949),r=i(8776),b=i(7484),x=i(5482),e=i(1894),C=i(5109),u=i(6789),o=i(5e3),v=i(19),_=i(647),T=i(404);function O(s,h){1&s&&o._UZ(0,"div",9),2&s&&o.Q6J("innerHtml",h.ngIf,o.oJD)}function M(s,h){1&s&&(o.TgZ(0,"div",10),o._uU(1,"Help not available for this field."),o.qZA())}function E(s,h){if(1&s&&(o.TgZ(0,"nz-collapse-panel",6),o.YNc(1,O,1,1,"div",7),o.YNc(2,M,2,0,"ng-template",null,8,o.W1O),o.qZA()),2&s){const l=h.ngIf,g=o.MAs(3),P=o.oxw().$implicit,F=o.MAs(3);o.Q6J("nzHeader",l)("nzActive",P.templateOptions.hasFocus)("nzExtra",F),o.xp6(1),o.Q6J("ngIf",null==P.templateOptions?null:P.templateOptions.helpText)("ngIfElse",g)}}function A(s,h){if(1&s&&o._UZ(0,"formly-validation-message",14),2&s){const l=o.oxw(4).$implicit;o.Q6J("field",l)}}function D(s,h){if(1&s&&(o.ynx(0),o._UZ(1,"i",12),o.YNc(2,A,1,1,"ng-template",null,13,o.W1O),o.BQk()),2&s){const l=o.MAs(3);o.xp6(1),o.Q6J("nzTooltipTitle",l)}}function R(s,h){if(1&s&&(o.ynx(0),o.YNc(1,D,4,1,"ng-container",11),o.BQk()),2&s){const l=h.ngIf;o.xp6(1),o.Q6J("ngIf","INVALID"===l)}}function L(s,h){if(1&s&&(o.YNc(0,R,2,1,"ng-container",11),o.ALo(1,"ngrxPush")),2&s){const l=o.oxw().$implicit;o.Q6J("ngIf",o.lcZ(1,1,l.formControl.statusChanges))}}function N(s,h){if(1&s&&(o.ynx(0),o.YNc(1,E,4,5,"nz-collapse-panel",4),o.YNc(2,L,2,3,"ng-template",null,5,o.W1O),o.BQk()),2&s){const l=h.$implicit;o.xp6(1),o.Q6J("ngIf",null==l.templateOptions?null:l.templateOptions.label)}}let J=(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275cmp=o.Xpm({type:s,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(l,g){1&l&&(o.TgZ(0,"nz-affix",0),o.TgZ(1,"nz-card",1),o.TgZ(2,"nz-collapse",2),o.YNc(3,N,4,1,"ng-container",3),o.qZA(),o.qZA(),o.qZA()),2&l&&(o.Q6J("nzOffsetTop",0)("nzTarget",g.affixTo),o.xp6(2),o.Q6J("nzBordered",!1),o.xp6(1),o.Q6J("ngForOf",g.fieldGroup))},directives:[v.$,b.bd,x.yH,d.sg,d.O5,x.Zv,_.Ls,T.SY,r.u_],pipes:[n.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),s})();const Q={name:"form-info",component:(()=>{class s extends r.n2{}return s.\u0275fac=function(){let h;return function(g){return(h||(h=o.n5z(s)))(g||s)}}(),s.\u0275cmp=o.Xpm({type:s,selectors:[["cvc-form-info-wrapper"]],features:[o.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(l,g){if(1&l&&(o.TgZ(0,"nz-row",0),o.TgZ(1,"nz-col",1),o.TgZ(2,"nz-card",2),o.GkF(3,null,3),o.qZA(),o.qZA(),o.TgZ(5,"nz-col",1),o.TgZ(6,"div",null,4),o._UZ(8,"cvc-form-info-card",5),o.qZA(),o.qZA(),o.qZA()),2&l){const P=o.MAs(7);o.xp6(1),o.Q6J("nzSpan",16),o.xp6(1),o.Q6J("nzTitle",g.to.label),o.xp6(3),o.Q6J("nzSpan",8),o.xp6(3),o.Q6J("fieldGroup",g.field.fieldGroup)("affixTo",P)}},directives:[e.SK,e.t3,b.bd,J],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),s})()};let V=(()=>{class s{}return s.\u0275fac=function(l){return new(l||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[d.ez,n.WG,r.X0.forChild({wrappers:[Q]}),e.Jb,b.vh,x.cD,u._,C.s]]}),s})()},9081:(B,I,i)=>{i.r(I),i.d(I,{VariantsReviseModule:()=>Le});var d=i(9808),n=i(325),r=i(373),b=i(1059),x=i(4850),e=i(5e3),C=i(712),u=i(9350),o=i(8992),v=i(1945),_=i(647),T=i(1894),O=i(8616),M=i(6949);function E(t,p){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function A(t,p){1&t&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function D(t,p){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,E,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,A,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const a=p.ngIf,c=e.MAs(14),y=e.oxw();e.xp6(1),e.Q6J("displayName",a.name),e.xp6(5),e.hij(" ",a.name," "),e.xp6(2),e.hij(" ",a.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,y.isSignedIn$))("ngIfElse",c)}}let R=(()=>{class t{constructor(a,c,y){this.gql=a,this.route=c,this.viewerService=y,this.routeSub=this.route.params.subscribe(Y=>{let X=this.gql.watch({variantId:+Y.variantId}).valueChanges;this.loading$=X.pipe((0,r.j)("loading"),(0,b.O)(!0)),this.variant$=X.pipe((0,r.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,r.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,r.j)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,r.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,x.U)(a=>a.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(C.iJT),e.Y36(n.gz),e.Y36(u.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variant"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(a,c){1&a&&(e.YNc(0,D,15,7,"ng-container",0),e.ALo(1,"async")),2&a&&e.Q6J("ngIf",e.lcZ(1,1,c.variant$))},directives:[d.O5,o.I,v.$O,v.u9,_.Ls,v.yG,v.u5,n.lC,T.SK,T.t3,O.u],pipes:[d.Ov,M.fM],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{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}"]}),t})();var L=i(3773),N=i(8390),J=i(4375),U=i(7008),Q=i(1825),V=i(8776),s=i(6042),h=i(2359),l=i(4546),g=i(4182),P=i(5109),F=i(8929),m=i(591),z=i(5284),f=i(7625),S=i(537),w=i(9169);let j=(()=>{class t{constructor(a,c){this.suggestVariantRevisionGQL=a,this.networkErrorService=c,this.destroy$=new F.xQ,this.isSubmitting$=new m.X(!1),this.submitSuccess$=new m.X(!1),this.submitError$=new m.X([])}suggest(a){this.storeObj={id:a.id,__typename:(0,z.e)("Variant")},this.isSubmitting$.next(!0),this.suggestVariantRevisionGQL.mutate({input:a},{update:(c,{data:{suggestVariantRevision:y}})=>{c.modify({id:c.identify(this.storeObj),fields:{revisions:(Y=[])=>y.variant.revisions}})}}).pipe((0,f.R)(this.destroy$),(0,S.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:c=>{c.graphQLErrors.length>0?this.submitError$.next(c.graphQLErrors.map(y=>y.message)):c.networkError&&this.networkErrorService.networkError$.next(c.networkError)},complete:()=>{this.submitError$.next([]),this.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0)}})}cleanup(){this.submitError$.next([]),this.submitSuccess$.next(!1),this.isSubmitting$.next(!1),this.networkErrorService.networkError$.next(void 0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(a){return new(a||t)(e.LFG(C.Xft),e.LFG(w.Y))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac}),t})();var $=i(8054),K=i(7701);function H(t,p){if(1&t&&(e.TgZ(0,"nz-option",6),e._uU(1),e.qZA()),2&t){const a=p.$implicit;e.hYB("nzLabel","",a.name," (",a.soid,")"),e.Q6J("nzValue",a),e.xp6(1),e.AsE(" ",a.name," (",a.soid,") ")}}function k(t,p){if(1&t&&(e.ynx(0),e.YNc(1,H,2,5,"nz-option",5),e.BQk()),2&t){const a=p.ngrxLet;e.xp6(1),e.Q6J("ngForOf",a)}}function q(t,p){1&t&&e._uU(0," No variant type found in CIViC that matches the string provided. ")}function ee(t,p){if(1&t){const a=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",2),e.NdJ("nzOnSearch",function(y){return e.CHM(a),e.oxw().to.onSearch(y)}),e.YNc(2,k,2,1,"ng-container",3),e.qZA(),e.YNc(3,q,1,0,"ng-template",null,4,e.W1O),e.BQk()}if(2&t){const a=e.MAs(4),c=e.oxw();e.xp6(1),e.Q6J("formControl",c.formControl)("formlyAttributes",c.field)("nzPlaceHolder",c.to.placeholder?c.to.placeholder:null)("nzNotFoundContent",a)("nzShowArrow",c.to.showArrow)("nzFilterOption",c.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",c.variantTypes$)}}function te(t,p){if(1&t&&e._UZ(0,"cvc-variant-type-tag",7),2&t){const a=e.oxw();e.Q6J("variantType",a.formControl.value)}}const ne={name:"variant-type-input",component:(()=>{class t extends V.fS{constructor(a){super(),this.variantTypeTypeaheadQuery=a,this.destroy$=new F.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Variant Types",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.variantTypeTypeaheadQuery.watch({name:""}),this.variantTypes$=this.queryRef.valueChanges.pipe((0,f.R)(this.destroy$),(0,r.j)("data","variantTypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=a=>{var c;this.to.fieldValue=a,this.to.fieldLength=a.length,!(a.lengththis.to.maxLength)&&(null===(c=this.queryRef)||void 0===c||c.refetch({name:a}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(C.BnY))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variant-type-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"variantType"]],template:function(a,c){if(1&a&&(e.YNc(0,ee,5,7,"ng-container",0),e.YNc(1,te,1,1,"ng-template",null,1,e.W1O)),2&a){const y=e.MAs(2);e.Q6J("ngIf",!(null!=c.formControl.value&&c.formControl.value.id))("ngIfElse",y)}},directives:[d.O5,$.Vq,g.JJ,g.oH,V.VQ,M.eJ,d.sg,$.Ip,K.j],styles:[""]}),t})()};var oe=i(8645);let ie=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,g.UX,V.X0.forChild({types:[ne]}),M.WG,$.LV,oe.M]]}),t})();var W=i(7484),ae=i(5482),re=i(6462),se=i(7075),le=i(7695);const ce={name:"variant-coordinates-card",component:(()=>{class t extends V.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{isFusionVariant:!1}}}}return t.\u0275fac=function(){let p;return function(c){return(p||(p=e.n5z(t)))(c||t)}}(),t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variant-coordinates-card-type"]],features:[e.qOj],decls:3,vars:1,consts:[[3,"nzTitle"],["fieldComponent",""]],template:function(a,c){1&a&&(e.TgZ(0,"nz-card",0),e.GkF(1,null,1),e.qZA()),2&a&&e.Q6J("nzTitle",c.to.label)},directives:[W.bd],styles:[""],changeDetection:0}),t})()};let pe=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,g.UX,V.X0.forChild({types:[ce]}),W.vh]]}),t})();var de=i(4623),G=i(656);const ue={name:"ensembl-version",validation:(t,p)=>{if(void 0===t.value)return null;{let a=+t.value;return a<76||a>150?{"ensembl-version":!0}:null}}},ge={name:"ensembl-version",message:(t,p)=>{var a;return`${null===(a=p.formControl)||void 0===a?void 0:a.value} is not a valid version of Ensembl. Must be an number between 76 and the latest version of Ensembl.`}},fe={name:"cvc-ensembl-input",component:(()=>{class t extends V.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{label:"Ensembl Version",helpText:"Enter a valid Ensembl database version (e.g. 75)."},validators:{validation:["ensembl-version"]}}}}return t.\u0275fac=function(){let p;return function(c){return(p||(p=e.n5z(t)))(c||t)}}(),t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-ensembl-input-type"]],features:[e.qOj],decls:1,vars:2,consts:[[3,"formControl","formlyAttributes"]],template:function(a,c){1&a&&e._UZ(0,"nz-input-number",0),2&a&&e.Q6J("formControl",c.formControl)("formlyAttributes",c.field)},directives:[G._,g.JJ,g.oH,V.VQ],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})(),wrappers:["form-field"]};let ve=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,g.u5,g.UX,V.X0.forChild({types:[fe],validators:[ue],validationMessages:[ge]}),G.Z]]}),t})();var he=i(7462),ye=i(4889);let _e=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[j],imports:[[d.ez,n.Bz,M.WG,g.UX,V.X0,P.s,s.sL,W.vh,ae.cD,l.U5,h.L,T.Jb,_.PV,s.sL,re.m,se.l,Q.A,le.C,U.B,J.R,pe,de.K,N.N,L.g,ie,ve,he.o,ye.E,P.s]]}),t})(),Te=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,_e]]}),t})();var Z=i(6738),Ce=i(444);function ze(t){switch(t){case"GRCH37":return"GRCh37 (hg19)";case"GRCH38":return"GRCh38 (hg38)";case"NCBI36":return"NCBI36 (hg18)";default:return t}}var xe=i(822);function Oe(t,p){1&t&&e.GkF(0)}function be(t,p){1&t&&e.GkF(0)}function Ie(t,p){if(1&t&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",5),e.qZA()),2&t){const a=e.oxw().ngIf;e.xp6(1),e.Q6J("errors",a)}}function Me(t,p){if(1&t&&(e.ynx(0),e.YNc(1,Ie,2,1,"nz-form-item",4),e.BQk()),2&t){const a=p.ngIf;e.xp6(1),e.Q6J("ngIf",a.length>0)}}function Pe(t,p){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",9),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4," or suggest another revision below."),e.qZA())}function Ve(t,p){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",6),e.YNc(2,Pe,5,0,"ng-template",7,8,e.W1O),e.BQk()),2&t){const a=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",a)}}function Ee(t,p){if(1&t&&(e.YNc(0,Me,2,1,"ng-container",4),e.ALo(1,"async"),e.YNc(2,Ve,4,1,"ng-container",4),e.ALo(3,"async")),2&t){const a=e.oxw();e.Q6J("ngIf",e.lcZ(1,2,a.submitError$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,4,a.submitSuccess$))}}let Se=(()=>{class t{constructor(a,c){this.revisionService=a,this.revisableFieldsGQL=c,this.destroy$=new F.xQ,this.formGroup=new g.cw({}),this.formOptions={},this.submitError$=this.revisionService.submitError$,this.isSubmitting$=this.revisionService.isSubmitting$,this.submitSuccess$=this.revisionService.submitSuccess$,this.formFields=[{key:"fields",wrappers:["form-info"],templateOptions:{label:"Suggest Variant Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"description",type:"cvc-textarea",templateOptions:{label:"Variant Description",placeholder:"Enter a description for this variant.",helpText:'Provide a summary of the clinical relevance of this Variant. The Variant Summary should be a synthesis of the existing Evidence Statements for this variant. Basic information on recurrence rates and biological/functional impact of the Variant may be included, but the focus should be on the clinical impact (i.e. predictive, prognostic, diagnostic, or predisposing relevance). By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal).',required:!0}},{key:"sources",type:"multi-field",templateOptions:{label:"Description Sources",addText:"Add another Source",helpText:"Add any Sources used as references for this Variant's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!1}}},{key:"variantAliases",type:"multi-field",templateOptions:{label:"Variant Aliases",addText:"Add an Alias",helpText:"List any aliases commonly used to refer to this variant."},fieldArray:{type:"input",templateOptions:{required:!1,placeholder:"Add Alias",minLength:3}}},{key:"hgvsDescriptions",type:"multi-field",templateOptions:{label:"HGVS Descriptions",addText:"Add an HGVS Description",helpText:"Please specify any HGVS descriptions for this variant."},fieldArray:{type:"input",templateOptions:{required:!0,placeholder:"Enter an HGVS string"}}},{key:"clinvarIds",type:"multi-field",templateOptions:{label:"ClinVar IDs",addText:"Add a ClinVar ID",helpText:"Specify any corresponding ClinVar identifiers for this variant."},fieldArray:{type:"input",templateOptions:{required:!1,placeholder:"Enter a ClinVar ID"}}},{key:"variantTypes",type:"multi-field",templateOptions:{label:"Variant Types",addText:"Add a Variant Type",helpText:'Add one or more variant types from the Sequence Ontology (e.g., missense, loss-of-function). Be specific as possible, avoid the addition of root concepts, and use the sequence_variant tree of the sequence ontology.'},fieldArray:{type:"variant-type-input",templateOptions:{required:!1}}},{template:"Primary Coordinates
"},{key:"referenceBuild",type:"select",defaultValue:C.JDX.Grch37,templateOptions:{label:"Reference Build",required:!1,helpText:"Specify the human genome reference sequence from which these coordinates are obtained.",options:(0,Ce.o6)(C.JDX).map(y=>({value:y,label:ze(y)}))}},{key:"ensemblVersion",type:"cvc-ensembl-input"},{key:"fivePrimeCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",helpText:"Specify the chromosome in which this variant occurs (e.g. 17).",required:!1,options:Z.aP}},{key:"fivePrimeCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"fivePrimeCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"fivePrimeCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{template:"Secondary Coordinates
"},{key:"threePrimeCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",required:!1,options:Z.aP,helpText:"If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner."}},{key:"threePrimeCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this 3-prime partner fusion variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"threePrimeCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this 3-prime partner fusion variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"threePrimeCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision to this variant.",helpText:"Please enter a comment describing your revision to this variant.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Revision",submitSize:"large"}}]}],this.submitSuccess$.pipe((0,f.R)(this.destroy$)).subscribe(y=>{y&&this.formOptions.resetModel&&this.formOptions.resetModel()})}ngOnInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).subscribe(({data:{variant:a}})=>{a&&(this.formModel=this.toFormModel(a)),this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue()},a=>{console.error("Error retrieving variant."),console.error(a)},()=>{this.formGroup.markAllAsTouched();const a=this.formGroup.get("fields.comment");a&&a.markAsUntouched()})}submitRevision(a){this.revisionService.suggest(this.toRevisionInput(a))}toFormModel(a){var c,y;return{id:a.id,fields:Object.assign(Object.assign({},a),{referenceBases:null===(c=a.fivePrimeCoordinates)||void 0===c?void 0:c.referenceBases,variantBases:null===(y=a.fivePrimeCoordinates)||void 0===y?void 0:y.variantBases,comment:this.formModel.fields.comment,organization:this.formModel.fields.organization})}}toRevisionInput(a){const c=a.fields;return Object.assign(Object.assign({},a),{fields:{name:c.name,geneId:c.gene.id,ensemblVersion:+c.ensemblVersion,description:Z.xt(c.description),clinvarIds:Z.Zg(c.clinvarIds),primaryCoordinates:Z._$(c.fivePrimeCoordinates),secondaryCoordinates:Z._$(c.threePrimeCoordinates),referenceBases:Z.xt(c.referenceBases),variantBases:Z.xt(c.variantBases),referenceBuild:Z.dh(c.referenceBuild),hgvsDescriptions:c.hgvsDescriptions,sourceIds:a.fields.sources.map(y=>+y.id),variantTypeIds:a.fields.variantTypes.map(y=>+y.id),aliases:a.fields.variantAliases},comment:a.fields.comment,organizationId:void 0===a.fields.organization?void 0:a.fields.organization.id})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.revisionService.cleanup()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(j),e.Y36(C.nnL))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:7,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange"],["formMessages",""],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(a,c){if(1&a&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return c.submitRevision(c.formModel)}),e.YNc(1,Oe,1,0,"ng-container",1),e.TgZ(2,"formly-form",2),e.NdJ("modelChange",function(Y){return c.formModel=Y}),e.qZA(),e.YNc(3,be,1,0,"ng-container",1),e.qZA(),e.YNc(4,Ee,4,6,"ng-template",null,3,e.W1O)),2&a){const y=e.MAs(5);e.Q6J("formGroup",c.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",y),e.xp6(1),e.Q6J("form",c.formGroup)("fields",c.formFields)("model",c.formModel)("options",c.formOptions),e.xp6(1),e.Q6J("ngTemplateOutlet",y)}},directives:[g._Y,g.JL,l.Lr,g.sg,d.tP,V.T7,d.O5,T.SK,l.Nx,xe.V,h.r,n.yS],pipes:[d.Ov],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}"]}),t})();function Ae(t,p){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-variant-revise-form",2),e.BQk()),2&t){const a=e.oxw();e.xp6(1),e.Q6J("variantId",a.variantId)}}function Fe(t,p){1&t&&e._uU(0,"Loading Variant...")}const Ze=[{path:"",component:R,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(a){this.route=a,this.routeParams$=this.route.params.subscribe(c=>{this.variantId=+c.variantId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(n.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-variants-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariant",""],[3,"variantId"]],template:function(a,c){if(1&a&&(e.YNc(0,Ae,2,1,"ng-container",0),e.YNc(1,Fe,1,0,"ng-template",null,1,e.W1O)),2&a){const y=e.MAs(2);e.Q6J("ngIf",c.variantId)("ngIfElse",y)}},directives:[d.O5,Se],styles:[""]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Be=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.Bz.forChild(Ze),Te],n.Bz]}),t})();var De=i(5630),Re=i(9386);let Le=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,Be,v.KJ,_.PV,De.D,Re.a,M.WG,T.Jb]]}),t})()},6462:(B,I,i)=>{i.d(I,{i:()=>Q,m:()=>V});var d=i(655),n=i(1159),r=i(5e3),b=i(4182),x=i(8929),e=i(3753),C=i(7625),u=i(9439),o=i(1721),v=i(5664),_=i(226),T=i(2643),O=i(9808),M=i(647),E=i(969);const A=["switchElement"];function D(s,h){1&s&&r._UZ(0,"i",8)}function R(s,h){if(1&s&&(r.ynx(0),r._uU(1),r.BQk()),2&s){const l=r.oxw(2);r.xp6(1),r.Oqu(l.nzCheckedChildren)}}function L(s,h){if(1&s&&(r.ynx(0),r.YNc(1,R,2,1,"ng-container",9),r.BQk()),2&s){const l=r.oxw();r.xp6(1),r.Q6J("nzStringTemplateOutlet",l.nzCheckedChildren)}}function N(s,h){if(1&s&&(r.ynx(0),r._uU(1),r.BQk()),2&s){const l=r.oxw(2);r.xp6(1),r.Oqu(l.nzUnCheckedChildren)}}function J(s,h){if(1&s&&r.YNc(0,N,2,1,"ng-container",9),2&s){const l=r.oxw();r.Q6J("nzStringTemplateOutlet",l.nzUnCheckedChildren)}}let Q=(()=>{class s{constructor(l,g,P,F,m,z){this.nzConfigService=l,this.host=g,this.ngZone=P,this.cdr=F,this.focusMonitor=m,this.directionality=z,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new x.xQ}updateValue(l){this.isChecked!==l&&(this.isChecked=l,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.host.nativeElement,"click").pipe((0,C.R)(this.destroy$)).subscribe(l=>{l.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,e.R)(this.switchElement.nativeElement,"keydown").pipe((0,C.R)(this.destroy$)).subscribe(l=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:g}=l;g!==n.oh&&g!==n.SV&&g!==n.L_&&g!==n.K5||(l.preventDefault(),this.ngZone.run(()=>{g===n.oh?this.updateValue(!1):g===n.SV?this.updateValue(!0):(g===n.L_||g===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,C.R)(this.destroy$)).subscribe(l=>{l||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(l){this.isChecked=l,this.cdr.markForCheck()}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}setDisabledState(l){this.nzDisabled=l,this.cdr.markForCheck()}}return s.\u0275fac=function(l){return new(l||s)(r.Y36(u.jY),r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(r.sBO),r.Y36(v.tE),r.Y36(_.Is,8))},s.\u0275cmp=r.Xpm({type:s,selectors:[["nz-switch"]],viewQuery:function(l,g){if(1&l&&r.Gf(A,7),2&l){let P;r.iGM(P=r.CRH())&&(g.switchElement=P.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[r._Bn([{provide:b.JU,useExisting:(0,r.Gpc)(()=>s),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(l,g){if(1&l&&(r.TgZ(0,"button",0,1),r.TgZ(2,"span",2),r.YNc(3,D,1,0,"i",3),r.qZA(),r.TgZ(4,"span",4),r.YNc(5,L,2,1,"ng-container",5),r.YNc(6,J,1,1,"ng-template",null,6,r.W1O),r.qZA(),r._UZ(8,"div",7),r.qZA()),2&l){const P=r.MAs(7);r.ekj("ant-switch-checked",g.isChecked)("ant-switch-loading",g.nzLoading)("ant-switch-disabled",g.nzDisabled)("ant-switch-small","small"===g.nzSize)("ant-switch-rtl","rtl"===g.dir),r.Q6J("disabled",g.nzDisabled)("nzWaveExtraNode",!0),r.xp6(3),r.Q6J("ngIf",g.nzLoading),r.xp6(2),r.Q6J("ngIf",g.isChecked)("ngIfElse",P)}},directives:[T.dQ,O.O5,M.Ls,E.f],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,o.yF)()],s.prototype,"nzLoading",void 0),(0,d.gn)([(0,o.yF)()],s.prototype,"nzDisabled",void 0),(0,d.gn)([(0,o.yF)()],s.prototype,"nzControl",void 0),(0,d.gn)([(0,u.oS)()],s.prototype,"nzSize",void 0),s})(),V=(()=>{class s{}return s.\u0275fac=function(l){return new(l||s)},s.\u0275mod=r.oAB({type:s}),s.\u0275inj=r.cJS({imports:[[_.vT,O.ez,T.vG,M.PV,E.T]]}),s})()}}]);
\ No newline at end of file
diff --git a/server/public/9484.aee7e3e6cb2747e5.js b/server/public/9484.aee7e3e6cb2747e5.js
deleted file mode 100644
index b83d5c7e0..000000000
--- a/server/public/9484.aee7e3e6cb2747e5.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9484],{7946:(F,I,o)=>{o.d(I,{x:()=>n});var _=o(9808),t=o(897),m=o(8481),C=o(3610),T=o(8018),A=o(3580),J=o(9476),y=o(5e3);let n=(()=>{class f{}return f.\u0275fac=function(M){return new(M||f)},f.\u0275mod=y.oAB({type:f}),f.\u0275inj=y.cJS({imports:[[_.ez,m.X,C.$6,t.$,T.e,A.Q,J.L]]}),f})()},9814:(F,I,o)=>{o.d(I,{O:()=>Un});var _=o(712),t=o(3154),m=o(8929),C=o(4850),T=o(373),A=o(1059),J=o(2986),y=o(13),n=o(5e3),f=o(9350),h=o(9169),M=o(7484),S=o(6949),u=o(1132),x=o(9808),d=o(8054),Z=o(4182),N=o(2166),Y=o(647),V=o(2683),L=o(404),$=o(125),D=o(6906),R=o(3193),B=o(8664),W=o(4022),O=o(6042),Q=o(2643),w=o(3610),P=o(7625),j=o(6123),z=o(8144),b=o(2359),E=o(822),H=o(1047),G=o(7525),K=o(9180),X=o(8227),q=o(1793);function k(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-alert",6),n.NdJ("nzOnClose",function(){return n.CHM(e),n.oxw().onSuccessBannerClose()}),n.qZA()}}function i(a,g){if(1&a&&n._UZ(0,"cvc-form-errors-alert",7),2&a){const e=n.oxw();n.Q6J("errors",e.errorMessages)}}function l(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"textarea",8),n.NdJ("ngModelChange",function(r){return n.CHM(e),n.oxw().reason=r}),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("ngModel",e.reason)}}function c(a,g){1&a&&n._UZ(0,"nz-option",13)}function v(a,g){1&a&&n._UZ(0,"nz-option",14)}function U(a,g){1&a&&n._UZ(0,"nz-option",15)}function nn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-select",9),n.NdJ("ngModelChange",function(r){return n.CHM(e),n.oxw().newStatus=r}),n.YNc(1,c,1,0,"nz-option",10),n.YNc(2,v,1,0,"nz-option",11),n.YNc(3,U,1,0,"nz-option",12),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("ngModel",e.newStatus),n.xp6(1),n.Q6J("ngIf","NEW"==e.currentStatus),n.xp6(1),n.Q6J("ngIf","NEW"!=e.currentStatus),n.xp6(1),n.Q6J("ngIf","NEW"==e.currentStatus)}}function tn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-spin",16),n.TgZ(1,"cvc-form-buttons"),n.TgZ(2,"cvc-org-selector-btn-group",17),n.NdJ("selectedOrgChange",function(r){return n.CHM(e),n.oxw().mostRecentOrg=r}),n.TgZ(3,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().updateSourceSuggestionStatus()}),n._uU(4," Update Source Suggestion status "),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("nzSpinning",e.loading),n.xp6(2),n.Q6J("selectedOrg",e.mostRecentOrg),n.xp6(1),n.Q6J("disabled",e.loading)}}let en=(()=>{class a{constructor(e,s,r){this.viewerService=e,this.networkErrorService=s,this.updateSuggestionStatusGql=r,this.commentAddedEvent=new n.vpe,this.destroy$=new m.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,P.R)(this.destroy$)).subscribe(p=>{this.organizations=p.organizations,this.mostRecentOrg=p.mostRecentOrg}),this.sourceSuggestionStatusMutator=new j.U(s)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){var e;if(this.newStatus){let s=this.sourceSuggestionStatusMutator.mutate(this.updateSuggestionStatusGql,{input:{id:this.sourceSuggestionId,newStatus:this.newStatus,reason:this.reason,organizationId:null===(e=this.mostRecentOrg)||void 0===e?void 0:e.id}});s.submitSuccess$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{this.resetForm(),this.success=!0}),s.submitError$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{r&&(this.errorMessages=r)}),s.isSubmitting$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{this.loading=r})}}resetForm(){this.commentText=""}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(f.a),n.Y36(h.Y),n.Y36(_.wRZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-update-source-suggestion-form"]],inputs:{sourceSuggestionId:"sourceSuggestionId",currentStatus:"currentStatus"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:7,vars:2,consts:[["nzDirection","vertical"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[3,"errors",4,"ngIf"],["rows","4","nz-input","",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"],["rows","4","nz-input","",3,"ngModel","ngModelChange"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange"],["nzValue","CURATED","nzLabel","Curated",4,"ngIf"],["nzValue","NEW","nzLabel","New",4,"ngIf"],["nzValue","REJECTED","nzLabel","Rejected",4,"ngIf"],["nzValue","CURATED","nzLabel","Curated"],["nzValue","NEW","nzLabel","New"],["nzValue","REJECTED","nzLabel","Rejected"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled","click"]],template:function(e,s){1&e&&(n.TgZ(0,"nz-card"),n.TgZ(1,"nz-space",0),n.YNc(2,k,1,0,"nz-alert",1),n.YNc(3,i,1,1,"cvc-form-errors-alert",2),n.YNc(4,l,1,1,"textarea",3),n.YNc(5,nn,4,4,"nz-select",4),n.YNc(6,tn,5,3,"nz-spin",5),n.qZA(),n.qZA()),2&e&&(n.xp6(2),n.Q6J("ngIf",s.success),n.xp6(1),n.Q6J("ngIf",s.errorMessages.length))},directives:[M.bd,z.NU,x.O5,b.r,E.V,z.$1,H.Zp,Z.Fj,Z.JJ,Z.On,d.Vq,Z.Q7,d.Ip,G.W,K.Z,X.q,O.ix,Q.dQ,q.m,V.w],styles:[""],encapsulation:2}),a})();var on=o(3618);function an(a,g){1&a&&(n.TgZ(0,"th",25),n._uU(1," Actions "),n.qZA())}function rn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw(2).submitterInput=r}),n.qZA()}if(2&a){const e=n.oxw(2);n.Q6J("inputModel",e.submitterInput)("onInputChanged",e.textInputCallback)}}function cn(a,g){1&a&&n._UZ(0,"th")}function sn(a,g){if(1&a&&n._UZ(0,"i",35),2&a){const e=n.oxw().$implicit;n.Q6J("nzTooltipTitle",e.reason)}}function gn(a,g){if(1&a&&n._UZ(0,"cvc-user-tag",36),2&a){const e=n.oxw().$implicit;n.Q6J("user",e.user)}}function ln(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.source.displayType," ")}}function un(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.source.citationId," ")}}function pn(a,g){if(1&a&&n._UZ(0,"cvc-source-tag",37),2&a){const e=n.oxw().$implicit;n.Q6J("source",e.source)}}function dn(a,g){if(1&a&&n._UZ(0,"cvc-gene-tag",38),2&a){const e=n.oxw().$implicit;n.Q6J("gene",e.gene)}}function _n(a,g){if(1&a&&n._UZ(0,"cvc-variant-tag",39),2&a){const e=n.oxw().$implicit;n.Q6J("variant",e.variant)}}function mn(a,g){if(1&a&&n._UZ(0,"cvc-disease-tag",40),2&a){const e=n.oxw().$implicit;n.Q6J("disease",e.disease)}}function vn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"td"),n.TgZ(1,"nz-button-group"),n.TgZ(2,"button",41),n._UZ(3,"i",42),n.qZA(),n.TgZ(4,"button",43),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit;return n.oxw(2).setFormInputs(r.id,r.status)}),n._UZ(5,"i",44),n.qZA(),n.qZA(),n.qZA()}if(2&a){const e=n.oxw().$implicit;n.oxw();const s=n.MAs(54),r=n.oxw();n.xp6(2),n.Q6J("disabled",e.status!=r.status.New),n.xp6(2),n.Q6J("nzPopoverContent",s)}}function Cn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.ALo(3,"lowercase"),n.YNc(4,sn,1,1,"i",27),n.qZA(),n.TgZ(5,"td"),n.YNc(6,gn,1,1,"cvc-user-tag",28),n.qZA(),n.TgZ(7,"td"),n.YNc(8,ln,2,1,"ng-container",22),n.qZA(),n.TgZ(9,"td"),n.YNc(10,un,2,1,"ng-container",22),n.qZA(),n.TgZ(11,"td"),n.YNc(12,pn,1,1,"cvc-source-tag",29),n.qZA(),n.TgZ(13,"td"),n.YNc(14,dn,1,1,"cvc-gene-tag",30),n.qZA(),n.TgZ(15,"td"),n.YNc(16,_n,1,1,"cvc-variant-tag",31),n.qZA(),n.TgZ(17,"td"),n.YNc(18,mn,1,1,"cvc-disease-tag",32),n.qZA(),n.TgZ(19,"td",33),n._UZ(20,"i",34),n.qZA(),n.YNc(21,vn,6,2,"td",22),n.qZA()),2&a){const e=g.$implicit,s=n.oxw().ngrxLet;n.xp6(2),n.hij(" ",n.lcZ(3,11,e.status)," "),n.xp6(2),n.Q6J("ngIf",e.reason&&""!=e.reason),n.xp6(2),n.Q6J("ngIf",e.user),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.gene),n.xp6(2),n.Q6J("ngIf",e.variant),n.xp6(2),n.Q6J("ngIf",e.disease),n.xp6(1),n.Q6J("nzTooltipTitle",e.initialComment),n.xp6(2),n.Q6J("ngIf",s.signedIn)}}function fn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"button",47),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(r.endCursor)}),n._uU(1),n.qZA()}if(2&a){const e=n.oxw(4);n.xp6(1),n.hij("Load ",e.pageSize," More")}}function zn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td",45),n.YNc(2,fn,2,1,"button",46),n.qZA(),n.qZA()),2&a){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function Tn(a,g){if(1&a&&(n.ynx(0),n.YNc(1,zn,3,1,"tr",22),n.BQk()),2&a){const e=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function xn(a,g){if(1&a&&n._UZ(0,"cvc-update-source-suggestion-form",49),2&a){const e=n.oxw(3);n.Q6J("currentStatus",e.selectedStatus)("sourceSuggestionId",e.selectedSourceId)}}function hn(a,g){if(1&a&&n.YNc(0,xn,1,2,"cvc-update-source-suggestion-form",48),2&a){const e=n.oxw(2);n.Q6J("ngIf",e.selectedSourceId&&e.selectedStatus)}}function Sn(a,g){if(1&a){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",3,4),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",5),n.NdJ("nzSortOrderChange",function(r){return n.CHM(e),n.oxw().onSortChanged(r)}),n.TgZ(6,"tr"),n.TgZ(7,"th"),n._uU(8," Status "),n.qZA(),n.TgZ(9,"th",6),n._uU(10," Submitter "),n.qZA(),n.TgZ(11,"th",7),n._uU(12," Source Type "),n.qZA(),n.TgZ(13,"th",7),n._uU(14," Citation ID "),n.qZA(),n.TgZ(15,"th",8),n._uU(16," Citation "),n.qZA(),n.TgZ(17,"th",7),n._uU(18," Gene "),n.qZA(),n.TgZ(19,"th",7),n._uU(20," Variant "),n.qZA(),n.TgZ(21,"th",7),n._uU(22," Disease "),n.qZA(),n.TgZ(23,"th"),n._uU(24," Comment "),n.qZA(),n.YNc(25,an,2,0,"th",9),n.qZA(),n.TgZ(26,"tr"),n.TgZ(27,"th"),n.TgZ(28,"nz-select",10),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw().onModelChanged()})("ngModelChange",function(r){return n.CHM(e),n.oxw().statusInput=r}),n._UZ(29,"nz-option",11),n._UZ(30,"nz-option",12),n._UZ(31,"nz-option",13),n.qZA(),n.qZA(),n.TgZ(32,"th"),n.YNc(33,rn,1,2,"cvc-clearable-input-filter",14),n.qZA(),n.TgZ(34,"th"),n.TgZ(35,"nz-select",10),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw().onModelChanged()})("ngModelChange",function(r){return n.CHM(e),n.oxw().sourceTypeInput=r}),n._UZ(36,"nz-option",15),n._UZ(37,"nz-option",16),n.qZA(),n.qZA(),n.TgZ(38,"th"),n.TgZ(39,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().citationIdInput=r}),n.qZA(),n.qZA(),n.TgZ(40,"th"),n.TgZ(41,"cvc-clearable-input-filter",18),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().citationInput=r}),n.qZA(),n.qZA(),n.TgZ(42,"th"),n.TgZ(43,"cvc-clearable-input-filter",19),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().geneNameInput=r}),n.qZA(),n.qZA(),n.TgZ(44,"th"),n.TgZ(45,"cvc-clearable-input-filter",20),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().variantNameInput=r}),n.qZA(),n.qZA(),n.TgZ(46,"th"),n.TgZ(47,"cvc-clearable-input-filter",21),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().diseaseNameInput=r}),n.qZA(),n.qZA(),n._UZ(48,"th"),n.YNc(49,cn,1,0,"th",22),n.qZA(),n.qZA(),n.TgZ(50,"tbody"),n.YNc(51,Cn,22,13,"tr",23),n.YNc(52,Tn,2,1,"ng-container",1),n.qZA(),n.qZA(),n.YNc(53,hn,1,1,"ng-template",null,24,n.W1O),n.BQk()}if(2&a){const e=g.ngrxLet,s=n.MAs(2),r=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,35,r.sourceSuggestions$))("nzLoading",n.lcZ(4,37,r.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",r.sortColumns.Submitter)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.SourceType)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.CitationId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.Citation)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.GeneName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.VariantName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.DiseaseName)("nzSortFn",!0),n.xp6(4),n.Q6J("ngIf",e.signedIn),n.xp6(3),n.Q6J("ngModel",r.statusInput),n.xp6(5),n.Q6J("ngIf",!r.submitterId),n.xp6(2),n.Q6J("ngModel",r.sourceTypeInput),n.xp6(4),n.Q6J("inputModel",r.citationIdInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.citationInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.geneNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.variantNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.diseaseNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("ngIf",e.signedIn),n.xp6(2),n.Q6J("ngForOf",s.data),n.xp6(1),n.Q6J("ngrxLet",r.pageInfo$)}}function Zn(a,g){}function In(a,g){if(1&a&&(n.ynx(0),n.YNc(1,Zn,0,0,"ng-template",53),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function Mn(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.cvcTitle," ")}}function An(a,g){if(1&a&&(n.TgZ(0,"span",54),n._uU(1),n.qZA()),2&a){const e=g.ngIf,s=n.oxw(2);n.xp6(1),n.lnq(" (",s.totalCount," new, showing ",s.visibleCount," of ",e," filtered) ")}}function yn(a,g){1&a&&(n.TgZ(0,"span",54),n._uU(1," (0 total) "),n.qZA())}function Jn(a,g){if(1&a&&(n._UZ(0,"i",50),n.YNc(1,In,2,1,"ng-container",22),n.YNc(2,Mn,2,1,"ng-container",22),n.YNc(3,An,2,3,"span",51),n.ALo(4,"ngrxPush"),n.YNc(5,yn,2,0,"ng-template",null,52,n.W1O)),2&a){const e=n.MAs(6),s=n.oxw();n.xp6(1),n.Q6J("ngIf",s.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",s.cvcTitle),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,4,s.filteredCount$))("ngIfElse",e)}}let Un=(()=>{class a{constructor(e,s,r){this.gql=e,this.viewerService=s,this.networkErrorService=r,this.debouncedQuery=new m.xQ,this.statusInput=_.F3s.New,this.pageSize=25,this.sortColumns=_.jw9,this.status=_.F3s,this.showManageForm=!1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize,sourceId:this.sourceId,submitterId:this.submitterId,status:this.status.New}),this.viewer$=this.viewerService.viewer$,this.data$=this.queryRef.valueChanges.pipe((0,C.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,T.j)("loading"),(0,A.O)(!0)),this.sourceSuggestions$=this.data$.pipe((0,T.j)("data","sourceSuggestions","edges"),(0,C.U)(e=>e.map(s=>s.node))),this.pageInfo$=this.data$.pipe((0,T.j)("data","sourceSuggestions","pageInfo")),this.filteredCount$=this.data$.pipe((0,T.j)("data","sourceSuggestions","filteredCount")),this.filteredCount$.pipe((0,J.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.debouncedQuery.pipe((0,y.b)(500)).subscribe(e=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var e;this.loadedPages=1,null===(e=this.queryRef)||void 0===e||e.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,sourceType:this.sourceTypeInput?this.sourceTypeInput:void 0,sourceId:this.sourceIdInput?+this.sourceIdInput:void 0,geneName:this.geneNameInput,variantName:this.variantNameInput,diseaseName:this.diseaseNameInput,comment:this.commentInput,submitter:this.submitterInput,citation:this.citationInput,status:this.statusInput?this.statusInput:void 0})}onSortChanged(e){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,t._)(e)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}setFormInputs(e,s){this.selectedSourceId=e,this.selectedStatus=s,this.showManageForm=!0}closePopover(){this.showManageForm=!1}loadMore(e){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.pageSize,after:e}}),this.loadedPages+=1}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(_.WRV),n.Y36(f.a),n.Y36(h.Y))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-source-suggestions-table"]],inputs:{sourceId:"sourceId",submitterId:"submitterId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:4,vars:2,consts:[[3,"nzTitle"],[4,"ngrxLet"],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["sourceSuggestionsTable",""],[3,"nzSortOrderChange"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],[3,"nzColumnKey","nzSortFn"],["nzWidth","25%",3,"nzColumnKey","nzSortFn"],["nzWidth","5%",4,"ngIf"],["nzAllowClear","","nzPlaceHolder","Choose",3,"ngModel","ngModelChange"],["nzValue","NEW","nzLabel","new"],["nzValue","CURATED","nzLabel","curated"],["nzValue","REJECTED","nzLabel","rejected"],["placeholderText","Submitter",3,"inputModel","onInputChanged","inputModelChange",4,"ngIf"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["placeholderText","ID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Citation",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Variant",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Disease",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["manageSuggestionTemplate",""],["nzWidth","5%"],["placeholderText","Submitter",3,"inputModel","onInputChanged","inputModelChange"],["nz-icon","","nz-tooltip","","nzType","info-circle",3,"nzTooltipTitle",4,"ngIf"],[3,"user",4,"ngIf"],[3,"source",4,"ngIf"],[3,"gene",4,"ngIf"],[3,"variant",4,"ngIf"],[3,"disease",4,"ngIf"],["nzAlign","center","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["nz-icon","","nzType","comment"],["nz-icon","","nz-tooltip","","nzType","info-circle",3,"nzTooltipTitle"],[3,"user"],[3,"source"],[3,"gene"],[3,"variant"],[3,"disease"],["nz-button","","nzSize","small","nz-tooltip","","nzTooltipTitle","Curate an Evidence Item from this Source Suggestion",3,"disabled"],["nz-icon","","nzType","plus"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Manage Source Suggestion","nzPopoverPlacement","left","nzPopoverTrigger","click",3,"nzPopoverContent","click"],["nz-icon","","nzType","edit"],["colspan","10"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],[3,"currentStatus","sourceSuggestionId",4,"ngIf"],[3,"currentStatus","sourceSuggestionId"],["nz-icon","","nzType","civic:source"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,s){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,Sn,55,39,"ng-container",1),n.qZA(),n.YNc(2,Jn,7,6,"ng-template",null,2,n.W1O)),2&e){const r=n.MAs(3);n.Q6J("nzTitle",r),n.xp6(1),n.Q6J("ngrxLet",s.viewer$)}},directives:[M.bd,S.eJ,u.N8,u.Om,u.$Z,u.Uo,u._C,u.qD,x.O5,d.Vq,Z.JJ,Z.On,d.Ip,N.p,u.p0,x.sg,Y.Ls,V.w,L.SY,$.I,D.T,R.H,B.I,W.n,u.UX,O.fY,O.ix,Q.dQ,w.lU,en,x.tP,on.ZU],pipes:[S.fM,x.i8],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})()},2832:(F,I,o)=>{o.d(I,{W:()=>j});var _=o(9808),t=o(1132),m=o(8054),C=o(4125),T=o(4182),A=o(6949),J=o(7345),y=o(9779),n=o(3309),f=o(4867),h=o(3580),M=o(647),S=o(6042),u=o(404),x=o(7008),d=o(3610),Z=o(8776),N=o(7484),Y=o(4546),V=o(1825),L=o(4375),$=o(868),D=o(7525),R=o(2359),B=o(1047),W=o(4509),O=o(8144),Q=o(5e3);let w=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[_.ez,T.UX,A.WG,S.sL,N.vh,$.we,Y.U5,D.j,R.L,B.o7,m.LV,O.zf,T.u5,Z.X0,x.B,V.A,L.R,W.w]]}),z})();var P=o(3618);let j=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[_.ez,T.u5,A.WG,t.HQ,m.LV,u.cg,M.PV,S.sL,d.$6,P.ZJ,N.vh,C.k,J.W,y.s,n.U,f.Q,h.Q,x.B,w]]}),z})()},7677:(F,I,o)=>{o.d(I,{G:()=>S});var _=o(9808),t=o(325),m=o(3610),C=o(8481),T=o(647),A=o(9779),J=o(4867),y=o(7484),n=o(3098),f=o(6949),h=o(5e3);let M=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({imports:[[_.ez,f.WG,y.vh,n.q6,A.s,J.Q]]}),u})(),S=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({imports:[[_.ez,t.Bz,m.$6,C.X,T.PV,M]]}),u})()},8664:(F,I,o)=>{o.d(I,{I:()=>k});var _=o(6654),t=o(5e3),m=o(9808),C=o(325),T=o(8481),A=o(3610),J=o(4850),y=o(712),n=o(7484),f=o(647),h=o(3193),M=o(3098),S=o(6550),u=o(1894),x=o(8144),d=o(6949);function Z(i,l){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const c=t.oxw().ngIf;t.xp6(1),t.hij(" ",c.name," ")}}function N(i,l){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const c=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",c.gene)}}function Y(i,l){1&i&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function V(i,l){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,Y,2,0,"span",1),t.qZA()),2&i){const c=l.$implicit,v=l.last;t.xp6(1),t.hij(" ",c,""),t.xp6(1),t.Q6J("ngIf",!v)}}function L(i,l){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,V,3,2,"span",16),t.qZA()),2&i){const c=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",c.variantAliases)}}function $(i,l){if(1&i&&(t.TgZ(0,"nz-descriptions-item",17),t.TgZ(1,"cvc-link-tag",18),t._uU(2),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",c.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",c.alleleRegistryId," ")}}function D(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",20),t._UZ(2,"i",21),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/flags"),t.xp6(3),t.hij(" Flags (",c.flags.totalCount,") ")}}function R(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",22),t._UZ(2,"i",23),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",c.revisions.totalCount,") ")}}function B(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",24),t._UZ(2,"i",25),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/comments"),t.xp6(3),t.hij(" Comments (",c.comments.totalCount,") ")}}function W(i,l){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,Z,2,1,"ng-template",null,3,t.W1O),t.YNc(4,N,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,L,2,1,"nz-descriptions-item",6),t.YNc(8,$,3,2,"nz-descriptions-item",7),t.TgZ(9,"nz-descriptions-item",8),t._uU(10),t.qZA(),t.qZA(),t.TgZ(11,"nz-row",9),t.TgZ(12,"nz-col",10),t.TgZ(13,"nz-space",11),t.YNc(14,D,4,2,"a",12),t.YNc(15,R,4,2,"a",12),t.YNc(16,B,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const c=l.ngIf,v=t.MAs(3),U=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",v)("nzExtra",U),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",c.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",c.alleleRegistryId),t.xp6(2),t.hij(" ",c.evidenceItems.totalCount," ")}}let O=(()=>{class i{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,J.U)(({data:c})=>c.variant))}}return i.\u0275fac=function(c){return new(c||i)(t.Y36(y.ZYZ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(c,v){1&c&&(t.TgZ(0,"div",0),t.YNc(1,W,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&c&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,v.variant$)))},directives:[m.O5,n.bd,f.Ls,h.H,M.R7,M.uj,m.sg,S.l,u.SK,u.t3,x.NU,x.$1,C.yS,T.j],pipes:[d.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}"]}),i})();function Q(i,l){}function w(i,l){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,Q,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const c=t.oxw(),v=t.MAs(2);t.xp6(1),t.Q6J("routerLink",c.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",v)}}function P(i,l){}function j(i,l){if(1&i){const c=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(U){return t.CHM(c),t.oxw(2).itemClosed(U)}),t.YNc(1,P,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const c=t.MAs(2),v=t.oxw(),U=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",v.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",v.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",U)}}function z(i,l){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const c=t.oxw(3);t.Q6J("variantId",c.variant.id)}}function b(i,l){if(1&i&&t.YNc(0,z,1,1,"cvc-variant-popover",10),2&i){const c=t.oxw(2);t.Q6J("ngIf",c.enablePopover)}}function E(i,l){if(1&i&&(t.YNc(0,j,2,4,"nz-tag",7),t.YNc(1,b,1,1,"ng-template",null,8,t.W1O)),2&i){const c=t.oxw(),v=t.MAs(4);t.Q6J("ngIf",c.enablePopover)("ngIfElse",v)}}function H(i,l){}function G(i,l){if(1&i){const c=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(U){return t.CHM(c),t.oxw().itemClosed(U)}),t.YNc(1,H,0,0,"ng-template",6),t.qZA()}if(2&i){const c=t.oxw(),v=t.MAs(8);t.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",v)}}function K(i,l){}function X(i,l){if(1&i&&t.YNc(0,K,0,0,"ng-template",6),2&i){t.oxw();const c=t.MAs(2);t.Q6J("ngTemplateOutlet",c)}}function q(i,l){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const c=t.oxw();t.xp6(1),t.hij(" ",c.variant.name,"\n")}}let k=(()=>{class i extends _.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[t.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(c,v){if(1&c&&(t.YNc(0,w,3,2,"ng-container",0),t.YNc(1,E,3,2,"ng-template",null,1,t.W1O),t.YNc(3,G,2,2,"ng-template",null,2,t.W1O),t.YNc(5,X,1,1,"ng-template",null,3,t.W1O),t.YNc(7,q,2,1,"ng-template",null,4,t.W1O)),2&c){const U=t.MAs(6);t.Q6J("ngIf",v.linked)("ngIfElse",U)}},directives:[m.O5,C.yS,m.tP,T.j,A.lU,O,f.Ls],styles:[""]}),i})()},4867:(F,I,o)=>{o.d(I,{Q:()=>x});var _=o(9808),t=o(325),m=o(8481),C=o(647),T=o(3610),A=o(6949),J=o(7484),y=o(1894),n=o(3098),f=o(8144),h=o(3309),M=o(3630),S=o(5e3);let u=(()=>{class d{}return d.\u0275fac=function(N){return new(N||d)},d.\u0275mod=S.oAB({type:d}),d.\u0275inj=S.cJS({imports:[[_.ez,t.Bz,A.WG,J.vh,y.Jb,n.q6,m.X,C.PV,f.zf,h.U,M.X]]}),d})(),x=(()=>{class d{}return d.\u0275fac=function(N){return new(N||d)},d.\u0275mod=S.oAB({type:d}),d.\u0275inj=S.cJS({imports:[[_.ez,t.Bz,m.X,T.$6,C.PV,u]]}),d})()},3154:(F,I,o)=>{o.d(I,{_:()=>t});var _=o(712);function t(m){var C;switch(m.value){case"ascend":C=_.SrV.Asc;break;case"descend":C=_.SrV.Desc;break;default:return}return{column:m.key,direction:C}}}}]);
\ No newline at end of file
diff --git a/server/public/9484.eba4a2cb1d41b5d4.js b/server/public/9484.eba4a2cb1d41b5d4.js
new file mode 100644
index 000000000..a2e58b7fc
--- /dev/null
+++ b/server/public/9484.eba4a2cb1d41b5d4.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9484],{7946:(F,I,o)=>{o.d(I,{x:()=>n});var _=o(9808),t=o(897),m=o(8481),C=o(3610),T=o(8018),A=o(3580),J=o(9476),y=o(5e3);let n=(()=>{class f{}return f.\u0275fac=function(M){return new(M||f)},f.\u0275mod=y.oAB({type:f}),f.\u0275inj=y.cJS({imports:[[_.ez,m.X,C.$6,t.$,T.e,A.Q,J.L]]}),f})()},9814:(F,I,o)=>{o.d(I,{O:()=>Un});var _=o(712),t=o(3154),m=o(8929),C=o(4850),T=o(373),A=o(1059),J=o(2986),y=o(13),n=o(5e3),f=o(9350),h=o(9169),M=o(7484),S=o(6949),u=o(1132),x=o(9808),d=o(8054),Z=o(4182),N=o(2166),Y=o(647),V=o(2683),L=o(404),$=o(125),D=o(6906),R=o(3193),B=o(8664),W=o(4022),O=o(6042),Q=o(2643),j=o(3610),P=o(7625),w=o(6123),z=o(8144),b=o(2359),E=o(822),H=o(1047),G=o(7525),K=o(9180),X=o(8227),q=o(1793);function k(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-alert",6),n.NdJ("nzOnClose",function(){return n.CHM(e),n.oxw().onSuccessBannerClose()}),n.qZA()}}function i(a,g){if(1&a&&n._UZ(0,"cvc-form-errors-alert",7),2&a){const e=n.oxw();n.Q6J("errors",e.errorMessages)}}function l(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"textarea",8),n.NdJ("ngModelChange",function(r){return n.CHM(e),n.oxw().reason=r}),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("ngModel",e.reason)}}function c(a,g){1&a&&n._UZ(0,"nz-option",13)}function v(a,g){1&a&&n._UZ(0,"nz-option",14)}function U(a,g){1&a&&n._UZ(0,"nz-option",15)}function nn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-select",9),n.NdJ("ngModelChange",function(r){return n.CHM(e),n.oxw().newStatus=r}),n.YNc(1,c,1,0,"nz-option",10),n.YNc(2,v,1,0,"nz-option",11),n.YNc(3,U,1,0,"nz-option",12),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("ngModel",e.newStatus),n.xp6(1),n.Q6J("ngIf","NEW"==e.currentStatus),n.xp6(1),n.Q6J("ngIf","NEW"!=e.currentStatus),n.xp6(1),n.Q6J("ngIf","NEW"==e.currentStatus)}}function tn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-spin",16),n.TgZ(1,"cvc-form-buttons"),n.TgZ(2,"cvc-org-selector-btn-group",17),n.NdJ("selectedOrgChange",function(r){return n.CHM(e),n.oxw().mostRecentOrg=r}),n.TgZ(3,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().updateSourceSuggestionStatus()}),n._uU(4," Update Source Suggestion status "),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&a){const e=n.oxw();n.Q6J("nzSpinning",e.loading),n.xp6(2),n.Q6J("selectedOrg",e.mostRecentOrg),n.xp6(1),n.Q6J("disabled",e.loading)}}let en=(()=>{class a{constructor(e,s,r){this.viewerService=e,this.networkErrorService=s,this.updateSuggestionStatusGql=r,this.commentAddedEvent=new n.vpe,this.destroy$=new m.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,P.R)(this.destroy$)).subscribe(p=>{this.organizations=p.organizations,this.mostRecentOrg=p.mostRecentOrg}),this.sourceSuggestionStatusMutator=new w.U(s)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){var e;if(this.newStatus){let s=this.sourceSuggestionStatusMutator.mutate(this.updateSuggestionStatusGql,{input:{id:this.sourceSuggestionId,newStatus:this.newStatus,reason:this.reason,organizationId:null===(e=this.mostRecentOrg)||void 0===e?void 0:e.id}});s.submitSuccess$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{this.resetForm(),this.success=!0}),s.submitError$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{r&&(this.errorMessages=r)}),s.isSubmitting$.pipe((0,P.R)(this.destroy$)).subscribe(r=>{this.loading=r})}}resetForm(){this.commentText=""}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(f.a),n.Y36(h.Y),n.Y36(_.wRZ))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-update-source-suggestion-form"]],inputs:{sourceSuggestionId:"sourceSuggestionId",currentStatus:"currentStatus"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:7,vars:2,consts:[["nzDirection","vertical"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[3,"errors",4,"ngIf"],["rows","4","nz-input","",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"],["rows","4","nz-input","",3,"ngModel","ngModelChange"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange"],["nzValue","CURATED","nzLabel","Curated",4,"ngIf"],["nzValue","NEW","nzLabel","New",4,"ngIf"],["nzValue","REJECTED","nzLabel","Rejected",4,"ngIf"],["nzValue","CURATED","nzLabel","Curated"],["nzValue","NEW","nzLabel","New"],["nzValue","REJECTED","nzLabel","Rejected"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled","click"]],template:function(e,s){1&e&&(n.TgZ(0,"nz-card"),n.TgZ(1,"nz-space",0),n.YNc(2,k,1,0,"nz-alert",1),n.YNc(3,i,1,1,"cvc-form-errors-alert",2),n.YNc(4,l,1,1,"textarea",3),n.YNc(5,nn,4,4,"nz-select",4),n.YNc(6,tn,5,3,"nz-spin",5),n.qZA(),n.qZA()),2&e&&(n.xp6(2),n.Q6J("ngIf",s.success),n.xp6(1),n.Q6J("ngIf",s.errorMessages.length))},directives:[M.bd,z.NU,x.O5,b.r,E.V,z.$1,H.Zp,Z.Fj,Z.JJ,Z.On,d.Vq,Z.Q7,d.Ip,G.W,K.Z,X.q,O.ix,Q.dQ,q.m,V.w],styles:[""],encapsulation:2}),a})();var on=o(3618);function an(a,g){1&a&&(n.TgZ(0,"th",25),n._uU(1," Actions "),n.qZA())}function rn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"cvc-clearable-input-filter",26),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw(2).submitterInput=r}),n.qZA()}if(2&a){const e=n.oxw(2);n.Q6J("inputModel",e.submitterInput)("onInputChanged",e.textInputCallback)}}function cn(a,g){1&a&&n._UZ(0,"th")}function sn(a,g){if(1&a&&n._UZ(0,"i",35),2&a){const e=n.oxw().$implicit;n.Q6J("nzTooltipTitle",e.reason)}}function gn(a,g){if(1&a&&n._UZ(0,"cvc-user-tag",36),2&a){const e=n.oxw().$implicit;n.Q6J("user",e.user)}}function ln(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.source.displayType," ")}}function un(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.source.citationId," ")}}function pn(a,g){if(1&a&&n._UZ(0,"cvc-source-tag",37),2&a){const e=n.oxw().$implicit;n.Q6J("source",e.source)}}function dn(a,g){if(1&a&&n._UZ(0,"cvc-gene-tag",38),2&a){const e=n.oxw().$implicit;n.Q6J("gene",e.gene)}}function _n(a,g){if(1&a&&n._UZ(0,"cvc-variant-tag",39),2&a){const e=n.oxw().$implicit;n.Q6J("variant",e.variant)}}function mn(a,g){if(1&a&&n._UZ(0,"cvc-disease-tag",40),2&a){const e=n.oxw().$implicit;n.Q6J("disease",e.disease)}}function vn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"td"),n.TgZ(1,"nz-button-group"),n.TgZ(2,"button",41),n._UZ(3,"i",42),n.qZA(),n.TgZ(4,"button",43),n.NdJ("click",function(){n.CHM(e);const r=n.oxw().$implicit;return n.oxw(2).setFormInputs(r.id,r.status)}),n._UZ(5,"i",44),n.qZA(),n.qZA(),n.qZA()}if(2&a){n.oxw(2);const e=n.MAs(54);n.xp6(2),n.Q6J("disabled",!0),n.xp6(2),n.Q6J("nzPopoverContent",e)}}function Cn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.ALo(3,"lowercase"),n.YNc(4,sn,1,1,"i",27),n.qZA(),n.TgZ(5,"td"),n.YNc(6,gn,1,1,"cvc-user-tag",28),n.qZA(),n.TgZ(7,"td"),n.YNc(8,ln,2,1,"ng-container",22),n.qZA(),n.TgZ(9,"td"),n.YNc(10,un,2,1,"ng-container",22),n.qZA(),n.TgZ(11,"td"),n.YNc(12,pn,1,1,"cvc-source-tag",29),n.qZA(),n.TgZ(13,"td"),n.YNc(14,dn,1,1,"cvc-gene-tag",30),n.qZA(),n.TgZ(15,"td"),n.YNc(16,_n,1,1,"cvc-variant-tag",31),n.qZA(),n.TgZ(17,"td"),n.YNc(18,mn,1,1,"cvc-disease-tag",32),n.qZA(),n.TgZ(19,"td",33),n._UZ(20,"i",34),n.qZA(),n.YNc(21,vn,6,2,"td",22),n.qZA()),2&a){const e=g.$implicit,s=n.oxw().ngrxLet;n.xp6(2),n.hij(" ",n.lcZ(3,11,e.status)," "),n.xp6(2),n.Q6J("ngIf",e.reason&&""!=e.reason),n.xp6(2),n.Q6J("ngIf",e.user),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.source),n.xp6(2),n.Q6J("ngIf",e.gene),n.xp6(2),n.Q6J("ngIf",e.variant),n.xp6(2),n.Q6J("ngIf",e.disease),n.xp6(1),n.Q6J("nzTooltipTitle",e.initialComment),n.xp6(2),n.Q6J("ngIf",s.signedIn)}}function fn(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"button",47),n.NdJ("click",function(){n.CHM(e);const r=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(r.endCursor)}),n._uU(1),n.qZA()}if(2&a){const e=n.oxw(4);n.xp6(1),n.hij("Load ",e.pageSize," More")}}function zn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td",45),n.YNc(2,fn,2,1,"button",46),n.qZA(),n.qZA()),2&a){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function Tn(a,g){if(1&a&&(n.ynx(0),n.YNc(1,zn,3,1,"tr",22),n.BQk()),2&a){const e=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function xn(a,g){if(1&a&&n._UZ(0,"cvc-update-source-suggestion-form",49),2&a){const e=n.oxw(3);n.Q6J("currentStatus",e.selectedStatus)("sourceSuggestionId",e.selectedSourceId)}}function hn(a,g){if(1&a&&n.YNc(0,xn,1,2,"cvc-update-source-suggestion-form",48),2&a){const e=n.oxw(2);n.Q6J("ngIf",e.selectedSourceId&&e.selectedStatus)}}function Sn(a,g){if(1&a){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-table",3,4),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",5),n.NdJ("nzSortOrderChange",function(r){return n.CHM(e),n.oxw().onSortChanged(r)}),n.TgZ(6,"tr"),n.TgZ(7,"th"),n._uU(8," Status "),n.qZA(),n.TgZ(9,"th",6),n._uU(10," Submitter "),n.qZA(),n.TgZ(11,"th",7),n._uU(12," Source Type "),n.qZA(),n.TgZ(13,"th",7),n._uU(14," Citation ID "),n.qZA(),n.TgZ(15,"th",8),n._uU(16," Citation "),n.qZA(),n.TgZ(17,"th",7),n._uU(18," Gene "),n.qZA(),n.TgZ(19,"th",7),n._uU(20," Variant "),n.qZA(),n.TgZ(21,"th",7),n._uU(22," Disease "),n.qZA(),n.TgZ(23,"th"),n._uU(24," Comment "),n.qZA(),n.YNc(25,an,2,0,"th",9),n.qZA(),n.TgZ(26,"tr"),n.TgZ(27,"th"),n.TgZ(28,"nz-select",10),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw().onModelChanged()})("ngModelChange",function(r){return n.CHM(e),n.oxw().statusInput=r}),n._UZ(29,"nz-option",11),n._UZ(30,"nz-option",12),n._UZ(31,"nz-option",13),n.qZA(),n.qZA(),n.TgZ(32,"th"),n.YNc(33,rn,1,2,"cvc-clearable-input-filter",14),n.qZA(),n.TgZ(34,"th"),n.TgZ(35,"nz-select",10),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw().onModelChanged()})("ngModelChange",function(r){return n.CHM(e),n.oxw().sourceTypeInput=r}),n._UZ(36,"nz-option",15),n._UZ(37,"nz-option",16),n.qZA(),n.qZA(),n.TgZ(38,"th"),n.TgZ(39,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().citationIdInput=r}),n.qZA(),n.qZA(),n.TgZ(40,"th"),n.TgZ(41,"cvc-clearable-input-filter",18),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().citationInput=r}),n.qZA(),n.qZA(),n.TgZ(42,"th"),n.TgZ(43,"cvc-clearable-input-filter",19),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().geneNameInput=r}),n.qZA(),n.qZA(),n.TgZ(44,"th"),n.TgZ(45,"cvc-clearable-input-filter",20),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().variantNameInput=r}),n.qZA(),n.qZA(),n.TgZ(46,"th"),n.TgZ(47,"cvc-clearable-input-filter",21),n.NdJ("inputModelChange",function(r){return n.CHM(e),n.oxw().diseaseNameInput=r}),n.qZA(),n.qZA(),n._UZ(48,"th"),n.YNc(49,cn,1,0,"th",22),n.qZA(),n.qZA(),n.TgZ(50,"tbody"),n.YNc(51,Cn,22,13,"tr",23),n.YNc(52,Tn,2,1,"ng-container",1),n.qZA(),n.qZA(),n.YNc(53,hn,1,1,"ng-template",null,24,n.W1O),n.BQk()}if(2&a){const e=g.ngrxLet,s=n.MAs(2),r=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,35,r.sourceSuggestions$))("nzLoading",n.lcZ(4,37,r.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(8),n.Q6J("nzColumnKey",r.sortColumns.Submitter)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.SourceType)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.CitationId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.Citation)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.GeneName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.VariantName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",r.sortColumns.DiseaseName)("nzSortFn",!0),n.xp6(4),n.Q6J("ngIf",e.signedIn),n.xp6(3),n.Q6J("ngModel",r.statusInput),n.xp6(5),n.Q6J("ngIf",!r.submitterId),n.xp6(2),n.Q6J("ngModel",r.sourceTypeInput),n.xp6(4),n.Q6J("inputModel",r.citationIdInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.citationInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.geneNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.variantNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("inputModel",r.diseaseNameInput)("onInputChanged",r.textInputCallback),n.xp6(2),n.Q6J("ngIf",e.signedIn),n.xp6(2),n.Q6J("ngForOf",s.data),n.xp6(1),n.Q6J("ngrxLet",r.pageInfo$)}}function Zn(a,g){}function In(a,g){if(1&a&&(n.ynx(0),n.YNc(1,Zn,0,0,"ng-template",53),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function Mn(a,g){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.cvcTitle," ")}}function An(a,g){if(1&a&&(n.TgZ(0,"span",54),n._uU(1),n.qZA()),2&a){const e=g.ngIf,s=n.oxw(2);n.xp6(1),n.lnq(" (",s.totalCount," new, showing ",s.visibleCount," of ",e," filtered) ")}}function yn(a,g){1&a&&(n.TgZ(0,"span",54),n._uU(1," (0 total) "),n.qZA())}function Jn(a,g){if(1&a&&(n._UZ(0,"i",50),n.YNc(1,In,2,1,"ng-container",22),n.YNc(2,Mn,2,1,"ng-container",22),n.YNc(3,An,2,3,"span",51),n.ALo(4,"ngrxPush"),n.YNc(5,yn,2,0,"ng-template",null,52,n.W1O)),2&a){const e=n.MAs(6),s=n.oxw();n.xp6(1),n.Q6J("ngIf",s.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",s.cvcTitle),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,4,s.filteredCount$))("ngIfElse",e)}}let Un=(()=>{class a{constructor(e,s,r){this.gql=e,this.viewerService=s,this.networkErrorService=r,this.debouncedQuery=new m.xQ,this.statusInput=_.F3s.New,this.pageSize=25,this.sortColumns=_.jw9,this.status=_.F3s,this.showManageForm=!1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize,sourceId:this.sourceId,submitterId:this.submitterId,status:this.status.New}),this.viewer$=this.viewerService.viewer$,this.data$=this.queryRef.valueChanges.pipe((0,C.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,T.j)("loading"),(0,A.O)(!0)),this.sourceSuggestions$=this.data$.pipe((0,T.j)("data","sourceSuggestions","edges"),(0,C.U)(e=>e.map(s=>s.node))),this.pageInfo$=this.data$.pipe((0,T.j)("data","sourceSuggestions","pageInfo")),this.filteredCount$=this.data$.pipe((0,T.j)("data","sourceSuggestions","filteredCount")),this.filteredCount$.pipe((0,J.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.debouncedQuery.pipe((0,y.b)(500)).subscribe(e=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var e;this.loadedPages=1,null===(e=this.queryRef)||void 0===e||e.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,sourceType:this.sourceTypeInput?this.sourceTypeInput:void 0,sourceId:this.sourceIdInput?+this.sourceIdInput:void 0,geneName:this.geneNameInput,variantName:this.variantNameInput,diseaseName:this.diseaseNameInput,comment:this.commentInput,submitter:this.submitterInput,citation:this.citationInput,status:this.statusInput?this.statusInput:void 0})}onSortChanged(e){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,t._)(e)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}setFormInputs(e,s){this.selectedSourceId=e,this.selectedStatus=s,this.showManageForm=!0}closePopover(){this.showManageForm=!1}loadMore(e){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.pageSize,after:e}}),this.loadedPages+=1}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(_.WRV),n.Y36(f.a),n.Y36(h.Y))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-source-suggestions-table"]],inputs:{sourceId:"sourceId",submitterId:"submitterId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:4,vars:2,consts:[[3,"nzTitle"],[4,"ngrxLet"],["titleTemplate",""],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["sourceSuggestionsTable",""],[3,"nzSortOrderChange"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],[3,"nzColumnKey","nzSortFn"],["nzWidth","25%",3,"nzColumnKey","nzSortFn"],["nzWidth","5%",4,"ngIf"],["nzAllowClear","","nzPlaceHolder","Choose",3,"ngModel","ngModelChange"],["nzValue","NEW","nzLabel","new"],["nzValue","CURATED","nzLabel","curated"],["nzValue","REJECTED","nzLabel","rejected"],["placeholderText","Submitter",3,"inputModel","onInputChanged","inputModelChange",4,"ngIf"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["placeholderText","ID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Citation",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Variant",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Disease",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngIf"],[4,"ngFor","ngForOf"],["manageSuggestionTemplate",""],["nzWidth","5%"],["placeholderText","Submitter",3,"inputModel","onInputChanged","inputModelChange"],["nz-icon","","nz-tooltip","","nzType","info-circle",3,"nzTooltipTitle",4,"ngIf"],[3,"user",4,"ngIf"],[3,"source",4,"ngIf"],[3,"gene",4,"ngIf"],[3,"variant",4,"ngIf"],[3,"disease",4,"ngIf"],["nzAlign","center","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["nz-icon","","nzType","comment"],["nz-icon","","nz-tooltip","","nzType","info-circle",3,"nzTooltipTitle"],[3,"user"],[3,"source"],[3,"gene"],[3,"variant"],[3,"disease"],["nz-button","","nzSize","small","nz-tooltip","","nzTooltipTitle","(Coming Soon) Curate an Evidence Item from this Source Suggestion",3,"disabled"],["nz-icon","","nzType","plus"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Manage Source Suggestion","nzPopoverPlacement","left","nzPopoverTrigger","click",3,"nzPopoverContent","click"],["nz-icon","","nzType","edit"],["colspan","10"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],[3,"currentStatus","sourceSuggestionId",4,"ngIf"],[3,"currentStatus","sourceSuggestionId"],["nz-icon","","nzType","civic:source"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,s){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,Sn,55,39,"ng-container",1),n.qZA(),n.YNc(2,Jn,7,6,"ng-template",null,2,n.W1O)),2&e){const r=n.MAs(3);n.Q6J("nzTitle",r),n.xp6(1),n.Q6J("ngrxLet",s.viewer$)}},directives:[M.bd,S.eJ,u.N8,u.Om,u.$Z,u.Uo,u._C,u.qD,x.O5,d.Vq,Z.JJ,Z.On,d.Ip,N.p,u.p0,x.sg,Y.Ls,V.w,L.SY,$.I,D.T,R.H,B.I,W.n,u.UX,O.fY,O.ix,Q.dQ,j.lU,en,x.tP,on.ZU],pipes:[S.fM,x.i8],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})()},2832:(F,I,o)=>{o.d(I,{W:()=>w});var _=o(9808),t=o(1132),m=o(8054),C=o(4125),T=o(4182),A=o(6949),J=o(7345),y=o(9779),n=o(3309),f=o(4867),h=o(3580),M=o(647),S=o(6042),u=o(404),x=o(7008),d=o(3610),Z=o(8776),N=o(7484),Y=o(4546),V=o(1825),L=o(4375),$=o(868),D=o(7525),R=o(2359),B=o(1047),W=o(4509),O=o(8144),Q=o(5e3);let j=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[_.ez,T.UX,A.WG,S.sL,N.vh,$.we,Y.U5,D.j,R.L,B.o7,m.LV,O.zf,T.u5,Z.X0,x.B,V.A,L.R,W.w]]}),z})();var P=o(3618);let w=(()=>{class z{}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[_.ez,T.u5,A.WG,t.HQ,m.LV,u.cg,M.PV,S.sL,d.$6,P.ZJ,N.vh,C.k,J.W,y.s,n.U,f.Q,h.Q,x.B,j]]}),z})()},7677:(F,I,o)=>{o.d(I,{G:()=>S});var _=o(9808),t=o(325),m=o(3610),C=o(8481),T=o(647),A=o(9779),J=o(4867),y=o(7484),n=o(3098),f=o(6949),h=o(5e3);let M=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({imports:[[_.ez,f.WG,y.vh,n.q6,A.s,J.Q]]}),u})(),S=(()=>{class u{}return u.\u0275fac=function(d){return new(d||u)},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({imports:[[_.ez,t.Bz,m.$6,C.X,T.PV,M]]}),u})()},8664:(F,I,o)=>{o.d(I,{I:()=>k});var _=o(6654),t=o(5e3),m=o(9808),C=o(325),T=o(8481),A=o(3610),J=o(4850),y=o(712),n=o(7484),f=o(647),h=o(3193),M=o(3098),S=o(6550),u=o(1894),x=o(8144),d=o(6949);function Z(i,l){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const c=t.oxw().ngIf;t.xp6(1),t.hij(" ",c.name," ")}}function N(i,l){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const c=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",c.gene)}}function Y(i,l){1&i&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function V(i,l){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,Y,2,0,"span",1),t.qZA()),2&i){const c=l.$implicit,v=l.last;t.xp6(1),t.hij(" ",c,""),t.xp6(1),t.Q6J("ngIf",!v)}}function L(i,l){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,V,3,2,"span",16),t.qZA()),2&i){const c=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",c.variantAliases)}}function $(i,l){if(1&i&&(t.TgZ(0,"nz-descriptions-item",17),t.TgZ(1,"cvc-link-tag",18),t._uU(2),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",c.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",c.alleleRegistryId," ")}}function D(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",20),t._UZ(2,"i",21),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/flags"),t.xp6(3),t.hij(" Flags (",c.flags.totalCount,") ")}}function R(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",22),t._UZ(2,"i",23),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",c.revisions.totalCount,") ")}}function B(i,l){if(1&i&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",24),t._UZ(2,"i",25),t._uU(3),t.qZA(),t.qZA()),2&i){const c=t.oxw().ngIf;t.MGl("routerLink","/variants/",c.id,"/comments"),t.xp6(3),t.hij(" Comments (",c.comments.totalCount,") ")}}function W(i,l){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,Z,2,1,"ng-template",null,3,t.W1O),t.YNc(4,N,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,L,2,1,"nz-descriptions-item",6),t.YNc(8,$,3,2,"nz-descriptions-item",7),t.TgZ(9,"nz-descriptions-item",8),t._uU(10),t.qZA(),t.qZA(),t.TgZ(11,"nz-row",9),t.TgZ(12,"nz-col",10),t.TgZ(13,"nz-space",11),t.YNc(14,D,4,2,"a",12),t.YNc(15,R,4,2,"a",12),t.YNc(16,B,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const c=l.ngIf,v=t.MAs(3),U=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",v)("nzExtra",U),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",c.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",c.alleleRegistryId),t.xp6(2),t.hij(" ",c.evidenceItems.totalCount," ")}}let O=(()=>{class i{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,J.U)(({data:c})=>c.variant))}}return i.\u0275fac=function(c){return new(c||i)(t.Y36(y.ZYZ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["gene",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Evidence Items","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:variant"],[3,"enablePopover","gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(c,v){1&c&&(t.TgZ(0,"div",0),t.YNc(1,W,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&c&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,v.variant$)))},directives:[m.O5,n.bd,f.Ls,h.H,M.R7,M.uj,m.sg,S.l,u.SK,u.t3,x.NU,x.$1,C.yS,T.j],pipes:[d.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}"]}),i})();function Q(i,l){}function j(i,l){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,Q,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const c=t.oxw(),v=t.MAs(2);t.xp6(1),t.Q6J("routerLink",c.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",v)}}function P(i,l){}function w(i,l){if(1&i){const c=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(U){return t.CHM(c),t.oxw(2).itemClosed(U)}),t.YNc(1,P,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const c=t.MAs(2),v=t.oxw(),U=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",v.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",v.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",U)}}function z(i,l){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const c=t.oxw(3);t.Q6J("variantId",c.variant.id)}}function b(i,l){if(1&i&&t.YNc(0,z,1,1,"cvc-variant-popover",10),2&i){const c=t.oxw(2);t.Q6J("ngIf",c.enablePopover)}}function E(i,l){if(1&i&&(t.YNc(0,w,2,4,"nz-tag",7),t.YNc(1,b,1,1,"ng-template",null,8,t.W1O)),2&i){const c=t.oxw(),v=t.MAs(4);t.Q6J("ngIf",c.enablePopover)("ngIfElse",v)}}function H(i,l){}function G(i,l){if(1&i){const c=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(U){return t.CHM(c),t.oxw().itemClosed(U)}),t.YNc(1,H,0,0,"ng-template",6),t.qZA()}if(2&i){const c=t.oxw(),v=t.MAs(8);t.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",v)}}function K(i,l){}function X(i,l){if(1&i&&t.YNc(0,K,0,0,"ng-template",6),2&i){t.oxw();const c=t.MAs(2);t.Q6J("ngTemplateOutlet",c)}}function q(i,l){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const c=t.oxw();t.xp6(1),t.hij(" ",c.variant.name,"\n")}}let k=(()=>{class i extends _.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}}return i.\u0275fac=function(c){return new(c||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover"},features:[t.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["popoverContent",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-variant","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(c,v){if(1&c&&(t.YNc(0,j,3,2,"ng-container",0),t.YNc(1,E,3,2,"ng-template",null,1,t.W1O),t.YNc(3,G,2,2,"ng-template",null,2,t.W1O),t.YNc(5,X,1,1,"ng-template",null,3,t.W1O),t.YNc(7,q,2,1,"ng-template",null,4,t.W1O)),2&c){const U=t.MAs(6);t.Q6J("ngIf",v.linked)("ngIfElse",U)}},directives:[m.O5,C.yS,m.tP,T.j,A.lU,O,f.Ls],styles:[""]}),i})()},4867:(F,I,o)=>{o.d(I,{Q:()=>x});var _=o(9808),t=o(325),m=o(8481),C=o(647),T=o(3610),A=o(6949),J=o(7484),y=o(1894),n=o(3098),f=o(8144),h=o(3309),M=o(3630),S=o(5e3);let u=(()=>{class d{}return d.\u0275fac=function(N){return new(N||d)},d.\u0275mod=S.oAB({type:d}),d.\u0275inj=S.cJS({imports:[[_.ez,t.Bz,A.WG,J.vh,y.Jb,n.q6,m.X,C.PV,f.zf,h.U,M.X]]}),d})(),x=(()=>{class d{}return d.\u0275fac=function(N){return new(N||d)},d.\u0275mod=S.oAB({type:d}),d.\u0275inj=S.cJS({imports:[[_.ez,t.Bz,m.X,T.$6,C.PV,u]]}),d})()},3154:(F,I,o)=>{o.d(I,{_:()=>t});var _=o(712);function t(m){var C;switch(m.value){case"ascend":C=_.SrV.Asc;break;case"descend":C=_.SrV.Desc;break;default:return}return{column:m.key,direction:C}}}}]);
\ No newline at end of file
diff --git a/server/public/9636.8eed820d942857de.js b/server/public/9636.fb2df4966b3986b1.js
similarity index 55%
rename from server/public/9636.8eed820d942857de.js
rename to server/public/9636.fb2df4966b3986b1.js
index b73cc5815..463725f88 100644
--- a/server/public/9636.8eed820d942857de.js
+++ b/server/public/9636.fb2df4966b3986b1.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9636],{9636:(k,S,a)=>{a.r(S),a.d(S,{EvidenceDetailModule:()=>jn});var o=a(9808),f=a(6949),I=a(5630),m=a(8144),y=a(3618),L=a(3309),b=a(4682),h=a(1945),Z=a(6042),E=a(8481),g=a(325),A=a(4867),x=a(647),u=a(712),v=a(373),C=a(1059),P=a(7625),B=a(8929),M=a(591),e=a(5e3),U=a(9350),N=a(8992),w=a(3193),r=a(8664),d=a(5623),c=a(8168),l=a(2683),_=a(2643),R=a(9077),F=a(8525),Y=a(2359),j=a(2233),T=a(1894),$=a(759),V=a(3997);function q(n,i){if(1&n&&(e.TgZ(0,"span",8),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Oqu(t.name)}}function W(n,i){if(1&n&&(e.TgZ(0,"span",9),e.TgZ(1,"a",10),e._UZ(2,"cvc-gene-tag",11),e.qZA(),e.TgZ(3,"a",10),e._UZ(4,"cvc-variant-tag",12),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",t.gene.id,""),e.xp6(1),e.Q6J("gene",t.gene),e.xp6(1),e.MGl("routerLink","/variants/",t.variant.id,""),e.xp6(1),e.Q6J("variant",t.variant)}}function G(n,i){1&n&&(e.TgZ(0,"nz-space",5),e.YNc(1,q,4,1,"span",6),e.YNc(2,W,5,4,"span",7),e.qZA())}function X(n,i){1&n&&(e.TgZ(0,"nz-tag",26),e._uU(1,"Flagged"),e.qZA()),2&n&&e.Q6J("nzColor","red")}const H=function(n){return["/evidence",n,"revise"]};function K(n,i){if(1&n&&(e.TgZ(0,"button",28,29),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),s=e.oxw(3).ngIf;e.Q6J("routerLink",e.VKq(2,H,s.id))("nzType",t.isActive?"primary":"default")}}function ee(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,K,3,4,"button",27),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ne(n,i){if(1&n&&(e.TgZ(0,"button",31,29),e._uU(2," Flag "),e.qZA()),2&n){const t=e.MAs(1);e.Q6J("nzType",t.isActive?"primary":"default")}}function te(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ne,3,1,"button",30),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ie(n,i){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",33),2&n){const t=e.oxw(2).ngrxLet,s=e.oxw(2);e.Q6J("viewer",t)("subscribableId",s.subscribable.id)}}function ae(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ie,1,2,"cvc-entity-subscription-button",32),e.qZA()),2&n){const t=e.oxw().ngrxLet,s=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.signedIn&&s.subscribable)}}function oe(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-revert-entity-button",35),e.NdJ("onReverted",function(p){return e.CHM(t),e.oxw(4).onRevertCompleted(p)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,s=e.oxw().ngIf;e.Q6J("viewer",t)("entityId",s.id)}}function se(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,oe,1,2,"cvc-revert-entity-button",34),e.qZA()),2&n){const t=e.oxw().ngrxLet,s=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=s.status)}}function ce(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){const z=e.CHM(t).$implicit;return e.oxw(3).onErrorBannerClose(z)}),e.qZA()}2&n&&e.Q6J("nzMessage",i.$implicit)}function re(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",37),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(3).onSuccessBannerClose()}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("nzMessage",t.successMessage)}}function le(n,i){1&n&&e._UZ(0,"nz-alert",38)}function de(n,i){if(1&n&&(e.TgZ(0,"nz-col",39),e._UZ(1,"cvc-contributor-avatars",40),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}function pe(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-moderate-entity-buttons",42),e.NdJ("onModerated",function(p){return e.CHM(t),e.oxw(4).onModerateCompleted(p)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,s=e.oxw().ngIf;e.Q6J("entityId",s.id)("viewer",t)}}function ge(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,pe,1,2,"cvc-moderate-entity-buttons",41),e.qZA()),2&n){const t=e.oxw().ngrxLet,s=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"==s.status)}}const _e=function(n){return{flagged:n}};function me(n,i){if(1&n&&(e.TgZ(0,"nz-page-header",13),e.TgZ(1,"nz-page-header-title",14),e._UZ(2,"i",15),e._uU(3),e.qZA(),e.TgZ(4,"nz-page-header-tags"),e.YNc(5,X,2,1,"nz-tag",16),e.qZA(),e.TgZ(6,"nz-page-header-extra"),e.TgZ(7,"nz-space",17),e.YNc(8,ee,2,1,"span",18),e.YNc(9,te,2,1,"span",18),e.YNc(10,ae,2,1,"span",18),e.YNc(11,se,2,1,"span",18),e.qZA(),e.qZA(),e.TgZ(12,"nz-page-header-content"),e.YNc(13,ce,1,1,"nz-alert",19),e.YNc(14,re,1,1,"nz-alert",20),e.YNc(15,le,1,0,"nz-alert",21),e.TgZ(16,"cvc-tab-navigation",22),e.ALo(17,"ngrxPush"),e.YNc(18,de,2,1,"ng-template",null,23,e.W1O),e.qZA(),e.TgZ(20,"nz-space",24),e.YNc(21,ge,2,1,"span",18),e.qZA(),e.TgZ(22,"div",25),e._UZ(23,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().ngIf,s=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(9,_e,t.flags.totalCount>0)),e.xp6(2),e.hij(" ",t.name," "),e.xp6(2),e.Q6J("ngIf",!1),e.xp6(8),e.Q6J("ngForOf",s.errors),e.xp6(1),e.Q6J("ngIf",s.successMessage),e.xp6(1),e.Q6J("ngIf","SUBMITTED"==t.status),e.xp6(1),e.Q6J("tabs",e.lcZ(17,7,s.tabs$))}}function ue(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,G,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"div",3),e.ALo(5,"ngrxPush"),e.YNc(6,me,24,11,"nz-page-header",4),e.qZA(),e.BQk()),2&n){const t=i.ngIf,s=e.MAs(3),p=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("relationsTpl",s),e.xp6(3),e.Q6J("flags",e.lcZ(5,4,p.flagsTotal$)),e.xp6(2),e.Q6J("ngrxLet",p.viewer$)}}let ve=(()=>{class n{constructor(t,s,p){this.gql=t,this.viewerService=s,this.route=p,this.errors=[],this.destroy$=new B.xQ,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new M.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(z=>{this.queryRef=this.gql.watch({evidenceId:+z.evidenceId});let D=this.queryRef.valueChanges;this.loading$=D.pipe((0,v.j)("loading"),(0,C.O)(!0)),this.evidence$=D.pipe((0,v.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,v.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,v.j)("flags","totalCount")),this.evidence$.pipe((0,v.j)("revisions","totalCount"),(0,P.R)(this.destroy$)).subscribe({next:$n=>{this.tabs$.next(this.defaultTabs.map(O=>"Revisions"===O.tabLabel?Object.assign({badgeCount:$n},O):O))}}),this.subscribable={id:+z.evidenceId,entityType:u.o71.EvidenceItem},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){var s;!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",null===(s=this.queryRef)||void 0===s||s.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){var s;Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,null===(s=this.queryRef)||void 0===s||s.refetch())}onErrorBannerClose(t){var s;this.errors=null===(s=this.errors)||void 0===s?void 0:s.filter(p=>p!=t)}onSuccessBannerClose(){this.successMessage=void 0}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.pHu),e.Y36(U.a),e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:evidence"],[3,"nzColor",4,"ngIf"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical"],[1,"content"],[3,"nzColor"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["rlaComments","routerLinkActive"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","EvidenceItem",3,"viewer","subscribableId",4,"ngIf"],["typename","EvidenceItem",3,"viewer","subscribableId"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted",4,"ngIf"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["id","contributors-col"],[3,"subscribable"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated",4,"ngIf"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated"]],template:function(t,s){1&t&&(e.YNc(0,ue,7,6,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,s.evidence$))},directives:[o.O5,N.I,m.NU,m.$1,y.ZU,g.yS,w.H,r.I,d.o,f.eJ,h.$O,h.u9,c.Y,o.mk,l.w,x.Ls,h.ZJ,E.j,h.Jp,Z.ix,_.dQ,g.Od,g.rH,R.Q,F.e,h.u5,o.sg,Y.r,j.P,T.t3,$.N,V.m,g.lC],pipes:[f.fM],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{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 ze=a(2278);let fe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,ze.l]]}),n})();var he=a(3801);let ye=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:u.OfU.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",s.commentable)},directives:[he.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var xe=a(7484),Te=a(6559),Ee=a(4271);let Se=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,T.Jb,xe.vh,m.zf,Te.H0,Ee.M]]}),n})();var Ze=a(7036);let Ce=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:u.sfv.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",s.flaggable)},directives:[Ze.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ie=a(2914);let be=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,Ie.A]]}),n})();var Ae=a(8291);let Pe=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(s=>{this.eid=+s.evidenceId,this.entityType=u.oRL.EvidenceItem})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,s){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",s.eid)("entityType",s.entityType)},directives:[Ae.a],styles:[""]}),n})();var J=a(3098),Me=a(9444),Ne=a(3384),we=a(592),Je=a(7345),Qe=a(5453),De=a(6286),Oe=a(8018),Le=a(9441),Be=a(9779),Ue=a(897),Ye=a(3580),Q=a(8625),ke=a(7026);let Re=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,g.Bz,f.WG,T.Jb,m.zf,y.ZJ,Z.sL,E.X,x.PV,J.q6,Me.s,Ne.h,Ye.Q,we.x,Ue.$,Je.W,Qe.N,Be.s,De.y,Oe.e,Le.s,Q.$L.forChild({formatter:{useClass:ke.x,provide:Q.KP}})]]}),n})();function Fe(n,i){1&n&&e._UZ(0,"i",4)}function je(n,i){1&n&&e._UZ(0,"i",5)}function $e(n,i){if(1&n&&(e.ynx(0),e.YNc(1,Fe,1,0,"i",2),e.YNc(2,je,1,0,"i",3),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.filledStars),e.xp6(1),e.Q6J("ngForOf",t.emptyStars)}}function Ve(n,i){1&n&&e._uU(0," --\n")}let qe=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noStars",""],["nzType","star","nzTheme","fill","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","outline","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","fill","nz-icon",""],["nzType","star","nzTheme","outline","nz-icon",""]],template:function(t,s){if(1&t&&(e.YNc(0,$e,3,2,"ng-container",0),e.YNc(1,Ve,1,0,"ng-template",null,1,e.W1O)),2&t){const p=e.MAs(2);e.Q6J("ngIf",s.starRating)("ngIfElse",p)}},directives:[o.O5,o.sg,x.Ls],styles:[""]}),n})();var We=a(4590),Ge=a(125),Xe=a(6906),He=a(4049),Ke=a(4022),en=a(6715),nn=a(7956),tn=a(7469),an=a(3756),on=a(4110);function sn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",12),e.TgZ(2,"p",13),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("nzEllipsisRows",14),e.xp6(1),e.Oqu(t.description)}}function cn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",14),e.TgZ(1,"nz-descriptions-item",15),e._uU(2),e.ALo(3,"evidenceEnumDisplay"),e.qZA(),e.TgZ(4,"nz-descriptions-item",16),e._uU(5),e.ALo(6,"evidenceEnumDisplay"),e.qZA(),e.TgZ(7,"nz-descriptions-item",17),e._uU(8),e.ALo(9,"evidenceEnumDisplay"),e.qZA(),e.TgZ(10,"nz-descriptions-item",18),e._uU(11),e.qZA(),e.TgZ(12,"nz-descriptions-item",19),e._UZ(13,"cvc-evidence-rating",20),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.Q6J("nzColumn",2),e.xp6(2),e.hij(" ",e.lcZ(3,6,t.evidenceType)," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,t.evidenceDirection)," "),e.xp6(3),e.hij(" ",e.lcZ(9,10,t.clinicalSignificance)," "),e.xp6(3),e.hij(" ",t.evidenceLevel," "),e.xp6(2),e.Q6J("starRating",t.evidenceRating)}}function rn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions-item",30),e._uU(1),e.ALo(2,"timeago"),e._UZ(3,"cvc-user-tag",25),e.qZA()),2&n){const t=e.oxw(4).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,2,t.acceptanceEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.acceptanceEvent.originatingUser)}}function ln(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions-item",31),e._uU(1),e.ALo(2,"timeago"),e._UZ(3,"cvc-user-tag",25),e.qZA()),2&n){const t=e.oxw(4).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,2,t.rejectionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.rejectionEvent.originatingUser)}}function dn(n,i){if(1&n&&(e.ynx(0),e.ynx(1,27),e.YNc(2,rn,4,4,"nz-descriptions-item",28),e.YNc(3,ln,4,4,"nz-descriptions-item",29),e.BQk(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngSwitch",null===t.rejectionEvent),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1)}}function pn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",21),e.TgZ(1,"nz-descriptions-item",22),e._UZ(2,"cvc-status-tag",23),e.qZA(),e.TgZ(3,"nz-descriptions-item",24),e._uU(4),e.ALo(5,"timeago"),e._UZ(6,"cvc-user-tag",25),e.qZA(),e.YNc(7,dn,4,3,"ng-container",26),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("status",t.status),e.xp6(2),e.hij(" ",e.lcZ(5,4,t.submissionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.submissionEvent.originatingUser),e.xp6(1),e.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent)}}function gn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-clinical-trial-tag",36),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("clinicalTrial",t)}}function _n(n,i){if(1&n&&(e.ynx(0),e.YNc(1,gn,2,1,"ng-container",35),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.source.clinicalTrials)}}function mn(n,i){1&n&&(e.ynx(0),e.TgZ(1,"span",37),e._uU(2,"None Specified"),e.qZA(),e.BQk())}function un(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",14),e.TgZ(1,"nz-descriptions-item",32),e._UZ(2,"cvc-source-tag",33),e.qZA(),e.TgZ(3,"nz-descriptions-item",34),e.YNc(4,_n,2,1,"ng-container",26),e.YNc(5,mn,3,0,"ng-container",26),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("source",t.source),e.xp6(1),e.Q6J("nzTitle",t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.xp6(1),e.Q6J("ngIf",t.source.clinicalTrials.length>0),e.xp6(1),e.Q6J("ngIf",0===t.source.clinicalTrials.length)}}function vn(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"a",43),e._UZ(2,"cvc-disease-tag",44),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.MGl("routerLink","/diseases/",t.disease.id,""),e.xp6(1),e.Q6J("disease",t.disease)}}function zn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function fn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-phenotype-tag",45),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("phenotype",t)}}function hn(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,fn,2,1,"ng-container",35),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.Q6J("ngForOf",t.phenotypes)}}function yn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"None Specified"),e.qZA())}function xn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",38),e.TgZ(1,"nz-descriptions-item",39),e.YNc(2,vn,3,2,"ng-container",26),e.YNc(3,zn,2,0,"span",40),e.qZA(),e.TgZ(4,"nz-descriptions-item",34),e.YNc(5,hn,3,1,"ng-container",41),e.YNc(6,yn,2,0,"ng-template",null,42,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(7),s=e.oxw(2).ngIf;e.Q6J("nzColumn",void 0!==(null==s.disease?null:s.disease.name)&&s.phenotypes.length>0?1:2),e.xp6(2),e.Q6J("ngIf",s.disease),e.xp6(1),e.Q6J("ngIf",!s.disease),e.xp6(1),e.Q6J("nzTitle",s.phenotypes.length>1?"Phenotypes":"Phenotype"),e.xp6(1),e.Q6J("ngIf",s.phenotypes.length>0)("ngIfElse",t)}}function Tn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function En(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-drug-tag",50),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("drug",t)}}function Sn(n,i){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,En,2,1,"ng-container",35),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.drugs)}}function Zn(n,i){1&n&&e._uU(0," Drug ")}function Cn(n,i){1&n&&e._uU(0," Drug ")}function In(n,i){if(1&n&&(e._uU(0),e.ALo(1,"titlecase")),2&n){const t=e.oxw(4).ngIf;e.hij(" Drugs (",e.lcZ(1,1,t.drugInteractionType),") ")}}function bn(n,i){if(1&n&&(e.ynx(0,46),e.YNc(1,Zn,1,0,"ng-template",47),e.YNc(2,Cn,1,0,"ng-template",51),e.YNc(3,In,2,3,"ng-template",48),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.Q6J("ngPlural",t.drugs.length)}}function An(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",34),e.ynx(2,46),e.YNc(3,Tn,2,0,"ng-template",47),e.YNc(4,Sn,2,1,"ng-template",48),e.BQk(),e.YNc(5,bn,4,1,"ng-template",null,49,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(6),s=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(1),e.Q6J("ngPlural",s.drugs.length)}}function Pn(n,i){1&n&&(e.TgZ(0,"nz-row",4),e.TgZ(1,"nz-col",5),e.TgZ(2,"nz-space",6),e.YNc(3,sn,4,2,"nz-descriptions",7),e.YNc(4,cn,14,12,"nz-descriptions",8),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",5),e.TgZ(6,"nz-space",6),e.YNc(7,pn,8,6,"nz-descriptions",9),e.YNc(8,un,6,5,"nz-descriptions",8),e.YNc(9,xn,8,6,"nz-descriptions",10),e.YNc(10,An,7,2,"nz-descriptions",7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(4),e.Q6J("nzSpan",12))}function Mn(n,i){if(1&n&&e._UZ(0,"cvc-assertions-table",52),2&n){const t=e.oxw().ngIf;e.MGl("cvcTitle","",t.name," Assertions"),e.Q6J("evidenceId",t.id)}}function Nn(n,i){1&n&&(e.TgZ(0,"nz-space",1),e.YNc(1,Pn,11,3,"nz-row",2),e.YNc(2,Mn,1,2,"cvc-assertions-table",3),e.qZA())}let wn=(()=>{class n{constructor(t,s){var p;if(this.gql=t,this.route=s,null==(p=this.evidenceId?this.evidenceId:+this.route.snapshot.params.evidenceId))throw new Error("Must pass in an evidence ID as an input or via the route.");this.queryRef=this.gql.watch({evidenceId:p});let z=this.queryRef.valueChanges;this.loading$=z.pipe((0,v.j)("loading"),(0,C.O)(!0)),this.evidence$=z.pipe((0,v.j)("data","evidenceItem")),this.subscribable={entityType:u.o71.EvidenceItem,id:p}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.sBY),e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[3,"nzGutter",4,"nzSpaceItem"],[3,"evidenceId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true","class","status-tags",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Level"],["nzTitle","Rating"],[3,"starRating"],["nzLayout","horizontal","nzSize","small","nzBordered","true",1,"status-tags"],["nzTitle","Status"],[3,"status"],["nzTitle","Submitted"],[3,"user"],[4,"ngIf"],[3,"ngSwitch"],["nzTitle","Accepted",4,"ngSwitchCase"],["nzTitle","Rejected",4,"ngSwitchCase"],["nzTitle","Accepted"],["nzTitle","Rejected"],["nzTitle","Source","nzSpan","2"],[3,"source"],[3,"nzTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-typography","","nzType","secondary"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[4,"ngIf","ngIfElse"],["noPhenotypes",""],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["drugsTitle",""],[3,"drug"],["ngPluralCase","=1"],[3,"evidenceId","cvcTitle"]],template:function(t,s){1&t&&(e.YNc(0,Nn,3,0,"nz-space",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,s.evidence$))},directives:[o.O5,m.NU,m.$1,T.SK,T.t3,J.R7,J.uj,y.ZU,qe,We.h,Ge.I,o.RF,o.n9,Xe.T,o.sg,He.G,g.yS,Ke.n,en.$,nn.i,o.iq,o.zE,tn.u,an.x],pipes:[f.fM,on.D,Q.wr,o.rS],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}.status-tags[_ngcontent-%COMP%] nz-tag{margin-right:0}.status-tags[_ngcontent-%COMP%] .ant-descriptions-item-label{white-space:nowrap}"]}),n})();var Jn=a(2011);let Qn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:u.o71.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(g.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",s.subscribable)},directives:[Jn.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Dn=a(4292);let On=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,Dn.t]]}),n})();const Ln=[{path:"",component:ve,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:wn,data:{breadcrumb:"Summary"}},{path:"comments",component:ye,data:{breadcrumb:"Comments"}},{path:"revisions",component:Pe,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ce,data:{breadcrumb:"Flags"}},{path:"events",component:Qn,data:{breadcrumb:"Events"}}]}];let Bn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[g.Bz.forChild(Ln),Re,fe,be,Se,On],g.Bz]}),n})();var Un=a(4609),Yn=a(694),kn=a(8766),Rn=a(8762),Fn=a(5750);let jn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,Bn,g.Bz,f.WG,m.zf,y.ZJ,h.KJ,Z.sL,E.X,x.PV,Y.L,T.Jb,I.D,L.U,b.m,A.Q,Un.g,Yn.G,kn.P,Rn.c,Fn.Z]]}),n})()},6559:(k,S,a)=>{a.d(S,{ng:()=>N,H0:()=>w});var o=a(5e3),f=a(1721),I=a(655),m=a(9808),y=a(226);const b=["nzType","avatar"];function E(r,d){if(1&r&&(o.TgZ(0,"div",5),o._UZ(1,"nz-skeleton-element",6),o.qZA()),2&r){const c=o.oxw(2);o.xp6(1),o.Q6J("nzSize",c.avatar.size||"default")("nzShape",c.avatar.shape||"circle")}}function g(r,d){if(1&r&&o._UZ(0,"h3",7),2&r){const c=o.oxw(2);o.Udp("width",c.toCSSUnit(c.title.width))}}function A(r,d){if(1&r&&o._UZ(0,"li"),2&r){const c=d.index,l=o.oxw(3);o.Udp("width",l.toCSSUnit(l.widthList[c]))}}function x(r,d){if(1&r&&(o.TgZ(0,"ul",8),o.YNc(1,A,1,2,"li",9),o.qZA()),2&r){const c=o.oxw(2);o.xp6(1),o.Q6J("ngForOf",c.rowsList)}}function u(r,d){if(1&r&&(o.ynx(0),o.YNc(1,E,2,2,"div",1),o.TgZ(2,"div",2),o.YNc(3,g,1,2,"h3",3),o.YNc(4,x,2,1,"ul",4),o.qZA(),o.BQk()),2&r){const c=o.oxw();o.xp6(1),o.Q6J("ngIf",!!c.nzAvatar),o.xp6(2),o.Q6J("ngIf",!!c.nzTitle),o.xp6(1),o.Q6J("ngIf",!!c.nzParagraph)}}function v(r,d){1&r&&(o.ynx(0),o.Hsn(1),o.BQk())}const C=["*"];let P=(()=>{class r{constructor(){this.nzActive=!1,this.nzBlock=!1}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275dir=o.lG2({type:r,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(c,l){2&c&&o.ekj("ant-skeleton-active",l.nzActive)("ant-skeleton-block",l.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,I.gn)([(0,f.yF)()],r.prototype,"nzBlock",void 0),r})(),M=(()=>{class r{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(c){if(c.nzSize&&"number"==typeof this.nzSize){const l=`${this.nzSize}px`;this.styleMap={width:l,height:l,"line-height":l}}else this.styleMap={}}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275cmp=o.Xpm({type:r,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[o.TTD],attrs:b,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(c,l){1&c&&o._UZ(0,"span",0),2&c&&(o.ekj("ant-skeleton-avatar-square","square"===l.nzShape)("ant-skeleton-avatar-circle","circle"===l.nzShape)("ant-skeleton-avatar-lg","large"===l.nzSize)("ant-skeleton-avatar-sm","small"===l.nzSize),o.Q6J("ngStyle",l.styleMap))},directives:[m.PC],encapsulation:2,changeDetection:0}),r})(),N=(()=>{class r{constructor(c,l,_){this.cdr=c,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],l.addClass(_.nativeElement,"ant-skeleton")}toCSSUnit(c=""){return(0,f.WX)(c)}getTitleProps(){const c=!!this.nzAvatar,l=!!this.nzParagraph;let _="";return!c&&l?_="38%":c&&l&&(_="50%"),Object.assign({width:_},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const c=!!this.nzAvatar,l=!!this.nzTitle,_={};return(!c||!l)&&(_.width="61%"),_.rows=!c&&l?3:2,Object.assign(Object.assign({},_),this.getProps(this.nzParagraph))}getProps(c){return c&&"object"==typeof c?c:{}}getWidthList(){const{width:c,rows:l}=this.paragraph;let _=[];return c&&Array.isArray(c)?_=c:c&&!Array.isArray(c)&&(_=[],_[l-1]=c),_}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(c){(c.nzTitle||c.nzAvatar||c.nzParagraph)&&this.updateProps()}}return r.\u0275fac=function(c){return new(c||r)(o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(o.SBq))},r.\u0275cmp=o.Xpm({type:r,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(c,l){2&c&&o.ekj("ant-skeleton-with-avatar",!!l.nzAvatar)("ant-skeleton-active",l.nzActive)("ant-skeleton-round",!!l.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[o.TTD],ngContentSelectors:C,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(c,l){1&c&&(o.F$t(),o.YNc(0,u,5,3,"ng-container",0),o.YNc(1,v,2,0,"ng-container",0)),2&c&&(o.Q6J("ngIf",l.nzLoading),o.xp6(1),o.Q6J("ngIf",!l.nzLoading))},directives:[M,m.O5,P,m.sg],encapsulation:2,changeDetection:0}),r})(),w=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=o.oAB({type:r}),r.\u0275inj=o.cJS({imports:[[y.vT,m.ez]]}),r})()}}]);
\ No newline at end of file
+"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9636],{9636:(B,C,a)=>{a.r(C),a.d(C,{EvidenceDetailModule:()=>jn});var l=a(9808),f=a(6949),Z=a(5630),v=a(8144),y=a(3618),M=a(3309),D=a(4682),u=a(1945),x=a(6042),T=a(8481),d=a(325),J=a(4867),S=a(647),_=a(712),z=a(373),I=a(1059),k=a(7625),Q=a(8929),L=a(591),e=a(5e3),b=a(9350),c=a(8992),r=a(3193),s=a(8664),g=a(5623),E=a(8168),U=a(2683),R=a(2643),Y=a(9077),F=a(8525),O=a(2359),j=a(2233),h=a(1894),V=a(759),$=a(3997);function q(n,i){if(1&n&&(e.TgZ(0,"span",8),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Oqu(t.name)}}function W(n,i){if(1&n&&(e.TgZ(0,"span",9),e.TgZ(1,"a",10),e._UZ(2,"cvc-gene-tag",11),e.qZA(),e.TgZ(3,"a",10),e._UZ(4,"cvc-variant-tag",12),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",t.gene.id,""),e.xp6(1),e.Q6J("gene",t.gene),e.xp6(1),e.MGl("routerLink","/variants/",t.variant.id,""),e.xp6(1),e.Q6J("variant",t.variant)}}function G(n,i){1&n&&(e.TgZ(0,"nz-space",5),e.YNc(1,q,4,1,"span",6),e.YNc(2,W,5,4,"span",7),e.qZA())}function H(n,i){1&n&&(e.TgZ(0,"nz-tag",26),e._uU(1,"Flagged"),e.qZA()),2&n&&e.Q6J("nzColor","red")}const X=function(n){return["/evidence",n,"revise"]};function K(n,i){if(1&n&&(e.TgZ(0,"button",28,29),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),o=e.oxw(3).ngIf;e.Q6J("routerLink",e.VKq(2,X,o.id))("nzType",t.isActive?"primary":"default")}}function ee(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,K,3,4,"button",27),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ne(n,i){if(1&n&&(e.TgZ(0,"button",31,29),e._uU(2," Flag "),e.qZA()),2&n){const t=e.MAs(1);e.Q6J("nzType",t.isActive?"primary":"default")}}function te(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ne,3,1,"button",30),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ie(n,i){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",33),2&n){const t=e.oxw(2).ngrxLet,o=e.oxw(2);e.Q6J("viewer",t)("subscribableId",o.subscribable.id)}}function ae(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ie,1,2,"cvc-entity-subscription-button",32),e.qZA()),2&n){const t=e.oxw().ngrxLet,o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.signedIn&&o.subscribable)}}function oe(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-revert-entity-button",35),e.NdJ("onReverted",function(p){return e.CHM(t),e.oxw(4).onRevertCompleted(p)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,o=e.oxw().ngIf;e.Q6J("viewer",t)("entityId",o.id)}}function se(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,oe,1,2,"cvc-revert-entity-button",34),e.qZA()),2&n){const t=e.oxw().ngrxLet,o=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=o.status)}}function ce(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){const m=e.CHM(t).$implicit;return e.oxw(3).onErrorBannerClose(m)}),e.qZA()}2&n&&e.Q6J("nzMessage",i.$implicit)}function re(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",37),e.NdJ("nzOnClose",function(){return e.CHM(t),e.oxw(3).onSuccessBannerClose()}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("nzMessage",t.successMessage)}}function le(n,i){1&n&&e._UZ(0,"nz-alert",38)}function pe(n,i){if(1&n&&(e.TgZ(0,"nz-col",39),e._UZ(1,"cvc-contributor-avatars",40),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("subscribable",t.subscribable)}}function de(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-moderate-entity-buttons",42),e.NdJ("onModerated",function(p){return e.CHM(t),e.oxw(4).onModerateCompleted(p)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,o=e.oxw().ngIf;e.Q6J("entityId",o.id)("viewer",t)}}function ge(n,i){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,de,1,2,"cvc-moderate-entity-buttons",41),e.qZA()),2&n){const t=e.oxw().ngrxLet,o=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"==o.status)}}const _e=function(n){return{flagged:n}};function me(n,i){if(1&n&&(e.TgZ(0,"nz-page-header",13),e.TgZ(1,"nz-page-header-title",14),e._UZ(2,"i",15),e._uU(3),e.qZA(),e.TgZ(4,"nz-page-header-tags"),e.YNc(5,H,2,1,"nz-tag",16),e.qZA(),e.TgZ(6,"nz-page-header-extra"),e.TgZ(7,"nz-space",17),e.YNc(8,ee,2,1,"span",18),e.YNc(9,te,2,1,"span",18),e.YNc(10,ae,2,1,"span",18),e.YNc(11,se,2,1,"span",18),e.qZA(),e.qZA(),e.TgZ(12,"nz-page-header-content"),e.YNc(13,ce,1,1,"nz-alert",19),e.YNc(14,re,1,1,"nz-alert",20),e.YNc(15,le,1,0,"nz-alert",21),e.TgZ(16,"cvc-tab-navigation",22),e.ALo(17,"ngrxPush"),e.YNc(18,pe,2,1,"ng-template",null,23,e.W1O),e.qZA(),e.TgZ(20,"nz-space",24),e.YNc(21,ge,2,1,"span",18),e.qZA(),e.TgZ(22,"div",25),e._UZ(23,"router-outlet"),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().ngIf,o=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(9,_e,t.flags.totalCount>0)),e.xp6(2),e.hij(" ",t.name," "),e.xp6(2),e.Q6J("ngIf",!1),e.xp6(8),e.Q6J("ngForOf",o.errors),e.xp6(1),e.Q6J("ngIf",o.successMessage),e.xp6(1),e.Q6J("ngIf","SUBMITTED"==t.status),e.xp6(1),e.Q6J("tabs",e.lcZ(17,7,o.tabs$))}}function ve(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,G,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"div",3),e.ALo(5,"ngrxPush"),e.YNc(6,me,24,11,"nz-page-header",4),e.qZA(),e.BQk()),2&n){const t=i.ngIf,o=e.MAs(3),p=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("relationsTpl",o),e.xp6(3),e.Q6J("flags",e.lcZ(5,4,p.flagsTotal$)),e.xp6(2),e.Q6J("ngrxLet",p.viewer$)}}let ue=(()=>{class n{constructor(t,o,p){this.gql=t,this.viewerService=o,this.route=p,this.errors=[],this.destroy$=new Q.xQ,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new L.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(m=>{this.queryRef=this.gql.watch({evidenceId:+m.evidenceId});let w=this.queryRef.valueChanges;this.loading$=w.pipe((0,z.j)("loading"),(0,I.O)(!0)),this.evidence$=w.pipe((0,z.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,z.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,z.j)("flags","totalCount")),this.evidence$.pipe((0,z.j)("revisions","totalCount"),(0,k.R)(this.destroy$)).subscribe({next:Vn=>{this.tabs$.next(this.defaultTabs.map(P=>"Revisions"===P.tabLabel?Object.assign({badgeCount:Vn},P):P))}}),this.subscribable={id:+m.evidenceId,entityType:_.o71.EvidenceItem},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){var o;!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",null===(o=this.queryRef)||void 0===o||o.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){var o;Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,null===(o=this.queryRef)||void 0===o||o.refetch())}onErrorBannerClose(t){var o;this.errors=null===(o=this.errors)||void 0===o?void 0:o.filter(p=>p!=t)}onSuccessBannerClose(){this.successMessage=void 0}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.pHu),e.Y36(b.a),e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:evidence"],[3,"nzColor",4,"ngIf"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical"],[1,"content"],[3,"nzColor"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["rlaComments","routerLinkActive"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","EvidenceItem",3,"viewer","subscribableId",4,"ngIf"],["typename","EvidenceItem",3,"viewer","subscribableId"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted",4,"ngIf"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["id","contributors-col"],[3,"subscribable"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated",4,"ngIf"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated"]],template:function(t,o){1&t&&(e.YNc(0,ve,7,6,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,o.evidence$))},directives:[l.O5,c.I,v.NU,v.$1,y.ZU,d.yS,r.H,s.I,g.o,f.eJ,u.$O,u.u9,E.Y,l.mk,U.w,S.Ls,u.ZJ,T.j,u.Jp,x.ix,R.dQ,d.Od,d.rH,Y.Q,F.e,u.u5,l.sg,O.r,j.P,h.t3,V.N,$.m,d.lC],pipes:[f.fM],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{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 ze=a(2278);let fe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,ze.l]]}),n})();var he=a(3801);let ye=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:_.OfU.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,o){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",o.commentable)},directives:[he.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var xe=a(7484),Te=a(6559),Se=a(4271);let Ee=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,h.Jb,xe.vh,v.zf,Te.H0,Se.M]]}),n})();var Ce=a(7036);let Ze=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:_.sfv.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,o){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",o.flaggable)},directives:[Ce.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ie=a(2914);let be=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,Ie.A]]}),n})();var Ae=a(8291);let Ne=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(o=>{this.eid=+o.evidenceId,this.entityType=_.oRL.EvidenceItem})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,o){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",o.eid)("entityType",o.entityType)},directives:[Ae.a],styles:[""]}),n})();var A=a(3098),we=a(9444),Pe=a(3384),Me=a(592),De=a(7345),Je=a(5453),ke=a(6286),Qe=a(8018),Le=a(9441),Oe=a(9779),Be=a(897),Ue=a(3580),N=a(8625),Re=a(7026);let Ye=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,d.Bz,f.WG,h.Jb,v.zf,y.ZJ,x.sL,T.X,S.PV,A.q6,we.s,Pe.h,Ue.Q,Me.x,Be.$,De.W,Je.N,Oe.s,ke.y,Qe.e,Le.s,N.$L.forChild({formatter:{useClass:Re.x,provide:N.KP}})]]}),n})();function Fe(n,i){1&n&&e._UZ(0,"i",4)}function je(n,i){1&n&&e._UZ(0,"i",5)}function Ve(n,i){if(1&n&&(e.ynx(0),e.YNc(1,Fe,1,0,"i",2),e.YNc(2,je,1,0,"i",3),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.filledStars),e.xp6(1),e.Q6J("ngForOf",t.emptyStars)}}function $e(n,i){1&n&&e._uU(0," --\n")}let qe=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noStars",""],["nzType","star","nzTheme","fill","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","outline","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","fill","nz-icon",""],["nzType","star","nzTheme","outline","nz-icon",""]],template:function(t,o){if(1&t&&(e.YNc(0,Ve,3,2,"ng-container",0),e.YNc(1,$e,1,0,"ng-template",null,1,e.W1O)),2&t){const p=e.MAs(2);e.Q6J("ngIf",o.starRating)("ngIfElse",p)}},directives:[l.O5,l.sg,S.Ls],styles:[""]}),n})();var We=a(4590),Ge=a(125),He=a(6906),Xe=a(4049),Ke=a(4022),en=a(6715),nn=a(7956),tn=a(7469),an=a(3756),on=a(4110);function sn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",12),e.TgZ(2,"p",13),e._uU(3),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("nzEllipsisRows",14),e.xp6(1),e.Oqu(t.description)}}function cn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",14),e.TgZ(1,"nz-descriptions-item",15),e._uU(2),e.ALo(3,"evidenceEnumDisplay"),e.qZA(),e.TgZ(4,"nz-descriptions-item",16),e._uU(5),e.ALo(6,"evidenceEnumDisplay"),e.qZA(),e.TgZ(7,"nz-descriptions-item",17),e._uU(8),e.ALo(9,"evidenceEnumDisplay"),e.qZA(),e.TgZ(10,"nz-descriptions-item",18),e._uU(11),e.qZA(),e.TgZ(12,"nz-descriptions-item",19),e._UZ(13,"cvc-evidence-rating",20),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.Q6J("nzColumn",2),e.xp6(2),e.hij(" ",e.lcZ(3,6,t.evidenceType)," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,t.evidenceDirection)," "),e.xp6(3),e.hij(" ",e.lcZ(9,10,t.clinicalSignificance)," "),e.xp6(3),e.hij(" ",t.evidenceLevel," "),e.xp6(2),e.Q6J("starRating",t.evidenceRating)}}function rn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions-item",30),e._uU(1),e.ALo(2,"timeago"),e._UZ(3,"cvc-user-tag",25),e.qZA()),2&n){const t=e.oxw(4).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,2,t.acceptanceEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.acceptanceEvent.originatingUser)}}function ln(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions-item",31),e._uU(1),e.ALo(2,"timeago"),e._UZ(3,"cvc-user-tag",25),e.qZA()),2&n){const t=e.oxw(4).ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,2,t.rejectionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.rejectionEvent.originatingUser)}}function pn(n,i){if(1&n&&(e.ynx(0),e.ynx(1,27),e.YNc(2,rn,4,4,"nz-descriptions-item",28),e.YNc(3,ln,4,4,"nz-descriptions-item",29),e.BQk(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngSwitch",null===t.rejectionEvent),e.xp6(1),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1)}}function dn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",21),e.TgZ(1,"nz-descriptions-item",22),e._UZ(2,"cvc-status-tag",23),e.qZA(),e.TgZ(3,"nz-descriptions-item",24),e._uU(4),e.ALo(5,"timeago"),e._UZ(6,"cvc-user-tag",25),e.qZA(),e.YNc(7,pn,4,3,"ng-container",26),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.xp6(2),e.Q6J("status",t.status),e.xp6(2),e.hij(" ",e.lcZ(5,4,t.submissionEvent.createdAt)," by "),e.xp6(2),e.Q6J("user",t.submissionEvent.originatingUser),e.xp6(1),e.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent)}}function gn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-clinical-trial-tag",36),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("clinicalTrial",t)}}function _n(n,i){if(1&n&&(e.ynx(0),e.YNc(1,gn,2,1,"ng-container",35),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.source.clinicalTrials)}}function mn(n,i){1&n&&(e.ynx(0),e.TgZ(1,"span",37),e._uU(2,"None Specified"),e.qZA(),e.BQk())}function vn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",14),e.TgZ(1,"nz-descriptions-item",32),e._UZ(2,"cvc-source-tag",33),e.qZA(),e.TgZ(3,"nz-descriptions-item",34),e.YNc(4,_n,2,1,"ng-container",26),e.YNc(5,mn,3,0,"ng-container",26),e.qZA(),e.qZA()),2&n){const t=e.oxw(2).ngIf;e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("source",t.source),e.xp6(1),e.Q6J("nzTitle",t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.xp6(1),e.Q6J("ngIf",t.source.clinicalTrials.length>0),e.xp6(1),e.Q6J("ngIf",0===t.source.clinicalTrials.length)}}function un(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"a",43),e._UZ(2,"cvc-disease-tag",44),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.MGl("routerLink","/diseases/",t.disease.id,""),e.xp6(1),e.Q6J("disease",t.disease)}}function zn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function fn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-phenotype-tag",45),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("phenotype",t)}}function hn(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"cvc-tag-list"),e.YNc(2,fn,2,1,"ng-container",35),e.qZA(),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.xp6(2),e.Q6J("ngForOf",t.phenotypes)}}function yn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"None Specified"),e.qZA())}function xn(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",38),e.TgZ(1,"nz-descriptions-item",39),e.YNc(2,un,3,2,"ng-container",26),e.YNc(3,zn,2,0,"span",40),e.qZA(),e.TgZ(4,"nz-descriptions-item",34),e.YNc(5,hn,3,1,"ng-container",41),e.YNc(6,yn,2,0,"ng-template",null,42,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(7),o=e.oxw(2).ngIf;e.Q6J("nzColumn",void 0!==(null==o.disease?null:o.disease.name)&&o.phenotypes.length>0?1:2),e.xp6(2),e.Q6J("ngIf",o.disease),e.xp6(1),e.Q6J("ngIf",!o.disease),e.xp6(1),e.Q6J("nzTitle",o.phenotypes.length>1?"Phenotypes":"Phenotype"),e.xp6(1),e.Q6J("ngIf",o.phenotypes.length>0)("ngIfElse",t)}}function Tn(n,i){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function Sn(n,i){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-drug-tag",50),e.BQk()),2&n){const t=i.$implicit;e.xp6(1),e.Q6J("drug",t)}}function En(n,i){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,Sn,2,1,"ng-container",35),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.drugs)}}function Cn(n,i){1&n&&e._uU(0," Drug ")}function Zn(n,i){1&n&&e._uU(0," Drug ")}function In(n,i){if(1&n&&(e._uU(0),e.ALo(1,"titlecase")),2&n){const t=e.oxw(4).ngIf;e.hij(" Drugs (",e.lcZ(1,1,t.drugInteractionType),") ")}}function bn(n,i){if(1&n&&(e.ynx(0,46),e.YNc(1,Cn,1,0,"ng-template",47),e.YNc(2,Zn,1,0,"ng-template",51),e.YNc(3,In,2,3,"ng-template",48),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.Q6J("ngPlural",t.drugs.length)}}function An(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",34),e.ynx(2,46),e.YNc(3,Tn,2,0,"ng-template",47),e.YNc(4,En,2,1,"ng-template",48),e.BQk(),e.YNc(5,bn,4,1,"ng-template",null,49,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(6),o=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(1),e.Q6J("ngPlural",o.drugs.length)}}function Nn(n,i){1&n&&(e.TgZ(0,"nz-row",4),e.TgZ(1,"nz-col",5),e.TgZ(2,"nz-space",6),e.YNc(3,sn,4,2,"nz-descriptions",7),e.YNc(4,cn,14,12,"nz-descriptions",8),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",5),e.TgZ(6,"nz-space",6),e.YNc(7,dn,8,6,"nz-descriptions",9),e.YNc(8,vn,6,5,"nz-descriptions",8),e.YNc(9,xn,8,6,"nz-descriptions",10),e.YNc(10,An,7,2,"nz-descriptions",7),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Q6J("nzGutter",16),e.xp6(1),e.Q6J("nzSpan",12),e.xp6(4),e.Q6J("nzSpan",12))}function wn(n,i){if(1&n&&e._UZ(0,"cvc-assertions-table",52),2&n){const t=e.oxw().ngIf;e.MGl("cvcTitle","",t.name," Assertions"),e.Q6J("evidenceId",t.id)}}function Pn(n,i){1&n&&(e.TgZ(0,"nz-space",1),e.YNc(1,Nn,11,3,"nz-row",2),e.YNc(2,wn,1,2,"cvc-assertions-table",3),e.qZA())}let Mn=(()=>{class n{constructor(t,o){var p;if(this.gql=t,this.route=o,null==(p=this.evidenceId?this.evidenceId:+this.route.snapshot.params.evidenceId))throw new Error("Must pass in an evidence ID as an input or via the route.");this.queryRef=this.gql.watch({evidenceId:p});let m=this.queryRef.valueChanges;this.loading$=m.pipe((0,z.j)("loading"),(0,I.O)(!0)),this.evidence$=m.pipe((0,z.j)("data","evidenceItem")),this.subscribable={entityType:_.o71.EvidenceItem,id:p}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.sBY),e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[3,"nzGutter",4,"nzSpaceItem"],[3,"evidenceId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true","class","status-tags",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Level"],["nzTitle","Rating"],[3,"starRating"],["nzLayout","horizontal","nzSize","small","nzBordered","true",1,"status-tags"],["nzTitle","Status"],[3,"status"],["nzTitle","Submitted"],[3,"user"],[4,"ngIf"],[3,"ngSwitch"],["nzTitle","Accepted",4,"ngSwitchCase"],["nzTitle","Rejected",4,"ngSwitchCase"],["nzTitle","Accepted"],["nzTitle","Rejected"],["nzTitle","Source","nzSpan","2"],[3,"source"],[3,"nzTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-typography","","nzType","secondary"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[4,"ngIf","ngIfElse"],["noPhenotypes",""],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["drugsTitle",""],[3,"drug"],["ngPluralCase","=1"],[3,"evidenceId","cvcTitle"]],template:function(t,o){1&t&&(e.YNc(0,Pn,3,0,"nz-space",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,o.evidence$))},directives:[l.O5,v.NU,v.$1,h.SK,h.t3,A.R7,A.uj,y.ZU,qe,We.h,Ge.I,l.RF,l.n9,He.T,l.sg,Xe.G,d.yS,Ke.n,en.$,nn.i,l.iq,l.zE,tn.u,an.x],pipes:[f.fM,on.D,N.wr,l.rS],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}.status-tags[_ngcontent-%COMP%] nz-tag{margin-right:0}.status-tags[_ngcontent-%COMP%] .ant-descriptions-item-label{white-space:nowrap}"]}),n})();var Dn=a(2011);let Jn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:_.o71.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,o){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",o.subscribable)},directives:[Dn.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var kn=a(4292);let Qn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,kn.t]]}),n})();const Ln=[{path:"",component:ue,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Mn,data:{breadcrumb:"Summary"}},{path:"comments",component:ye,data:{breadcrumb:"Comments"}},{path:"revisions",component:Ne,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ze,data:{breadcrumb:"Flags"}},{path:"events",component:Jn,data:{breadcrumb:"Events"}}]}];let On=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.Bz.forChild(Ln),Ye,fe,be,Ee,Qn],d.Bz]}),n})();var Bn=a(4609),Un=a(694),Rn=a(8766),Yn=a(8762),Fn=a(5750);let jn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[l.ez,On,d.Bz,f.WG,v.zf,y.ZJ,u.KJ,x.sL,T.X,S.PV,O.L,h.Jb,Z.D,M.U,D.m,J.Q,Bn.g,Un.G,Rn.P,Yn.c,Fn.Z]]}),n})()},6559:(B,C,a)=>{a.d(C,{H0:()=>b});var l=a(5e3),f=a(9808),Z=a(226);let b=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[Z.vT,f.ez]]}),c})()}}]);
\ No newline at end of file
diff --git a/server/public/assets/.sprockets-manifest-0b0c8677246b646bb0889aeddbe910a3.json b/server/public/assets/.sprockets-manifest-8354fbb7c7cf2522fbdf49603160eca2.json
similarity index 83%
rename from server/public/assets/.sprockets-manifest-0b0c8677246b646bb0889aeddbe910a3.json
rename to server/public/assets/.sprockets-manifest-8354fbb7c7cf2522fbdf49603160eca2.json
index aaba5d4ef..5e61132bf 100644
--- a/server/public/assets/.sprockets-manifest-0b0c8677246b646bb0889aeddbe910a3.json
+++ b/server/public/assets/.sprockets-manifest-8354fbb7c7cf2522fbdf49603160eca2.json
@@ -1 +1 @@
-{"files":{"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css":{"logical_path":"trestle/admin.css","mtime":"2022-04-09T15:20:13+00:00","size":325032,"digest":"9ea0ca00cd399964bc65f3868ac8949a16a6f9c1f423043202afc29085bc47c9","integrity":"sha256-nqDKAM05mWS8ZfOGisiUmham+cH0IwQyAq/CkIW8R8k="},"trestle/fa-regular-400-9c3b0d7842673b6863e8200b9a6790f5156015904c2e55d0a76eadeb1ad4f519.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2022-04-09T15:20:13+00:00","size":34350,"digest":"d7858047be52401462cf08a32a73fb8edc2f0824fab4bc3c928f97d5c1301550","integrity":"sha256-14WAR75SQBRizwijKnP7jtwvCCT6tLw8ko+X1cEwFVA="},"trestle/fa-regular-400-8bf7666bc5c4ed2d1549f41ed3960ee344a9da4ec470032baa2f082504fa2468.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2022-04-09T15:20:13+00:00","size":13588,"digest":"b3b8c21edfe6c5e402fdc607366fd8d15949a65914f58134733dc68922bc8d61","integrity":"sha256-s7jCHt/mxeQC/cYHNm/Y0VlJplkU9YE0cz3GiSK8jWE="},"trestle/fa-regular-400-057c0082f82431e4aedc10c25634b441374d11ffdbbc82246f404774c38376ba.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2022-04-09T15:20:13+00:00","size":16776,"digest":"59c188c0320df9e338aaf70ccba3ad4eae5714ff6a4a5b323fcad2937de164df","integrity":"sha256-WcGIwDIN+eM4qvcMy6OtTq5XFP9qSlsyP8rSk33hZN8="},"trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2022-04-09T15:20:13+00:00","size":34052,"digest":"96353a91851616607cf2e7f9f61519675d16119dd43b4d51be4930b28da20330","integrity":"sha256-ljU6kYUWFmB88uf59hUZZ10WEZ3UO01Rvkkwso2iAzA="},"trestle/fa-regular-400-0a73a2a6067e6f740b012ae8e43e742356f7b5da951980969a599e81f99a2a93.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2022-04-09T15:20:13+00:00","size":144714,"digest":"165101542d8b8339e451556c199d517cdc88833537fd1efecce7f5469bce3fe6","integrity":"sha256-FlEBVC2LgznkUVVsGZ1RfNyIgzU3/R7+zOf1RpvOP+Y="},"trestle/fa-solid-900-7911caac9acd6d976fa6726626ffc161c2c575664a13ef43d2cae15ee7d92221.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2022-04-09T15:20:13+00:00","size":204814,"digest":"7fa0a8d2ff9cf56367af3da926117e8c649d741ec2601ce016298984771a954c","integrity":"sha256-f6Co0v+c9WNnrz2pJhF+jGSddB7CYBzgFimJhHcalUw="},"trestle/fa-solid-900-8db4e70b05ee471ba02b2819249cb424eba5e7bd8b192b81c0bdc61a95e726bd.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2022-04-09T15:20:13+00:00","size":80252,"digest":"6c916669cf923b4f1b2db5c5107c83b6ca205e7ad0dcd840b251e63f0c8d28a2","integrity":"sha256-bJFmac+SO08bLbXFEHyDtsogXnrQ3NhAslHmPwyNKKI="},"trestle/fa-solid-900-0a59e8ea35b5acca3176699da5a8b9af85681a8afdd5e07b7adce32901733184.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2022-04-09T15:20:13+00:00","size":104280,"digest":"54b246419327b460f37af4f2dfaa4ac9cb901f62ea517ab95c06ae8605cf51e6","integrity":"sha256-VLJGQZMntGDzevTy36pKycuQH2LqUXq5XAauhgXPUeY="},"trestle/fa-solid-900-f5ac49b1523ec7ffe58ab6cf0efa50495c34782e75988e02e1b0f971b4d0bfdf.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2022-04-09T15:20:13+00:00","size":204528,"digest":"83027b10416216a20a0d7522c1e367a16948f450c0ac6b4c0d5af7b05ab9f207","integrity":"sha256-gwJ7EEFiFqIKDXUiweNnoWlI9FDArGtMDVr3sFq58gc="},"trestle/fa-solid-900-cc705c0da5bca6335d9c2e52de7c358870cb59968ec411d70f060d6bc684f721.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2022-04-09T15:20:13+00:00","size":917575,"digest":"a27b561face9f54ee9cb8db85baf678e307c1be3e6774fca606e97d316a0d040","integrity":"sha256-ontWH6zp9U7py424W69njjB8G+Pmd0/KYG6X0xag0EA="},"trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2022-04-09T15:20:13+00:00","size":136822,"digest":"9860d6f05386a150d5356afc249a4a67f5161372fee2c80c9b81eddd13259706","integrity":"sha256-mGDW8FOGoVDVNWr8JJpKZ/UWE3L+4sgMm4Ht3RMllwY="},"trestle/fa-brands-400-2279774165b8ac5d3a6e7b3157e6529c5c6d763c258b254dd3b7daa35b8f15b1.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2022-04-09T15:20:13+00:00","size":78472,"digest":"529d0a7b3944929222155bca3272ba1a87acc2faa09b2ed26a713872b7ff8794","integrity":"sha256-Up0KezlEkpIiFVvKMnK6Goeswvqgmy7SanE4crf/h5Q="},"trestle/fa-brands-400-dd64cb64f2ec1ed47c9c8087ee8111b5adb88d486477f4dd58a6c305af95aa2b.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2022-04-09T15:20:13+00:00","size":92136,"digest":"8d79ac2164bf3d60583e0c44707f79d73f8de3b55e365f9839c91ccb6b4e5e0f","integrity":"sha256-jXmsIWS/PWBYPgxEcH951z+N47VeNl+YOckcy2tOXg8="},"trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2022-04-09T15:20:13+00:00","size":136516,"digest":"dee03b559ef15082f4864001d7ecc562b2ff4dd2c1a761047c8fd52919a9ee04","integrity":"sha256-3uA7VZ7xUIL0hkAB1+zFYrL/TdLBp2EEfI/VKRmp7gQ="},"trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2022-04-09T15:20:13+00:00","size":747545,"digest":"8594ac7ea23505e2c5096659c6f642c610d2ef126d8ba718c42067ccc6338c32","integrity":"sha256-hZSsfqI1BeLFCWZZxvZCxhDS7xJti6cYxCBnzMYzjDI="},"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js":{"logical_path":"trestle/admin.js","mtime":"2022-04-09T15:20:13+00:00","size":391334,"digest":"74a613c3a1dcc91bf57578762da604c78518fcd895484cfe783f77d90ef2f940","integrity":"sha256-dKYTw6HcyRv1dXh2LaYEx4UY/NiVSEz+eD932Q7y+UA="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2022-04-09T15:20:13+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2022-04-09T15:20:13+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2022-04-09T15:20:13+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2022-04-09T15:20:13+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2022-04-09T15:20:13+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2022-04-09T15:20:13+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css":{"logical_path":"trestle/theme.css","mtime":"2022-04-09T15:20:13+00:00","size":18638,"digest":"c3ef17df680003ea4f56615a8e3cf3b4e121104811243e3c5c1046f5463fc80b","integrity":"sha256-w+8X32gAA+pPVmFajjzztOEhEEgRJD48XBBG9UY/yAs="}},"assets":{"trestle/admin.css":"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-9c3b0d7842673b6863e8200b9a6790f5156015904c2e55d0a76eadeb1ad4f519.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-8bf7666bc5c4ed2d1549f41ed3960ee344a9da4ec470032baa2f082504fa2468.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-057c0082f82431e4aedc10c25634b441374d11ffdbbc82246f404774c38376ba.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-0a73a2a6067e6f740b012ae8e43e742356f7b5da951980969a599e81f99a2a93.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-7911caac9acd6d976fa6726626ffc161c2c575664a13ef43d2cae15ee7d92221.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-8db4e70b05ee471ba02b2819249cb424eba5e7bd8b192b81c0bdc61a95e726bd.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-0a59e8ea35b5acca3176699da5a8b9af85681a8afdd5e07b7adce32901733184.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-f5ac49b1523ec7ffe58ab6cf0efa50495c34782e75988e02e1b0f971b4d0bfdf.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-cc705c0da5bca6335d9c2e52de7c358870cb59968ec411d70f060d6bc684f721.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-2279774165b8ac5d3a6e7b3157e6529c5c6d763c258b254dd3b7daa35b8f15b1.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-dd64cb64f2ec1ed47c9c8087ee8111b5adb88d486477f4dd58a6c305af95aa2b.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg","trestle/admin.js":"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.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-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css"}}
\ No newline at end of file
+{"files":{"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css":{"logical_path":"trestle/admin.css","mtime":"2022-04-12T21:20:56+00:00","size":325032,"digest":"9ea0ca00cd399964bc65f3868ac8949a16a6f9c1f423043202afc29085bc47c9","integrity":"sha256-nqDKAM05mWS8ZfOGisiUmham+cH0IwQyAq/CkIW8R8k="},"trestle/fa-regular-400-9c3b0d7842673b6863e8200b9a6790f5156015904c2e55d0a76eadeb1ad4f519.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2022-04-12T21:20:56+00:00","size":34350,"digest":"d7858047be52401462cf08a32a73fb8edc2f0824fab4bc3c928f97d5c1301550","integrity":"sha256-14WAR75SQBRizwijKnP7jtwvCCT6tLw8ko+X1cEwFVA="},"trestle/fa-regular-400-8bf7666bc5c4ed2d1549f41ed3960ee344a9da4ec470032baa2f082504fa2468.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2022-04-12T21:20:56+00:00","size":13588,"digest":"b3b8c21edfe6c5e402fdc607366fd8d15949a65914f58134733dc68922bc8d61","integrity":"sha256-s7jCHt/mxeQC/cYHNm/Y0VlJplkU9YE0cz3GiSK8jWE="},"trestle/fa-regular-400-057c0082f82431e4aedc10c25634b441374d11ffdbbc82246f404774c38376ba.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2022-04-12T21:20:56+00:00","size":16776,"digest":"59c188c0320df9e338aaf70ccba3ad4eae5714ff6a4a5b323fcad2937de164df","integrity":"sha256-WcGIwDIN+eM4qvcMy6OtTq5XFP9qSlsyP8rSk33hZN8="},"trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2022-04-12T21:20:56+00:00","size":34052,"digest":"96353a91851616607cf2e7f9f61519675d16119dd43b4d51be4930b28da20330","integrity":"sha256-ljU6kYUWFmB88uf59hUZZ10WEZ3UO01Rvkkwso2iAzA="},"trestle/fa-regular-400-0a73a2a6067e6f740b012ae8e43e742356f7b5da951980969a599e81f99a2a93.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2022-04-12T21:20:56+00:00","size":144714,"digest":"165101542d8b8339e451556c199d517cdc88833537fd1efecce7f5469bce3fe6","integrity":"sha256-FlEBVC2LgznkUVVsGZ1RfNyIgzU3/R7+zOf1RpvOP+Y="},"trestle/fa-solid-900-7911caac9acd6d976fa6726626ffc161c2c575664a13ef43d2cae15ee7d92221.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2022-04-12T21:20:56+00:00","size":204814,"digest":"7fa0a8d2ff9cf56367af3da926117e8c649d741ec2601ce016298984771a954c","integrity":"sha256-f6Co0v+c9WNnrz2pJhF+jGSddB7CYBzgFimJhHcalUw="},"trestle/fa-solid-900-8db4e70b05ee471ba02b2819249cb424eba5e7bd8b192b81c0bdc61a95e726bd.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2022-04-12T21:20:56+00:00","size":80252,"digest":"6c916669cf923b4f1b2db5c5107c83b6ca205e7ad0dcd840b251e63f0c8d28a2","integrity":"sha256-bJFmac+SO08bLbXFEHyDtsogXnrQ3NhAslHmPwyNKKI="},"trestle/fa-solid-900-0a59e8ea35b5acca3176699da5a8b9af85681a8afdd5e07b7adce32901733184.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2022-04-12T21:20:56+00:00","size":104280,"digest":"54b246419327b460f37af4f2dfaa4ac9cb901f62ea517ab95c06ae8605cf51e6","integrity":"sha256-VLJGQZMntGDzevTy36pKycuQH2LqUXq5XAauhgXPUeY="},"trestle/fa-solid-900-f5ac49b1523ec7ffe58ab6cf0efa50495c34782e75988e02e1b0f971b4d0bfdf.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2022-04-12T21:20:56+00:00","size":204528,"digest":"83027b10416216a20a0d7522c1e367a16948f450c0ac6b4c0d5af7b05ab9f207","integrity":"sha256-gwJ7EEFiFqIKDXUiweNnoWlI9FDArGtMDVr3sFq58gc="},"trestle/fa-solid-900-cc705c0da5bca6335d9c2e52de7c358870cb59968ec411d70f060d6bc684f721.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2022-04-12T21:20:56+00:00","size":917575,"digest":"a27b561face9f54ee9cb8db85baf678e307c1be3e6774fca606e97d316a0d040","integrity":"sha256-ontWH6zp9U7py424W69njjB8G+Pmd0/KYG6X0xag0EA="},"trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2022-04-12T21:20:56+00:00","size":136822,"digest":"9860d6f05386a150d5356afc249a4a67f5161372fee2c80c9b81eddd13259706","integrity":"sha256-mGDW8FOGoVDVNWr8JJpKZ/UWE3L+4sgMm4Ht3RMllwY="},"trestle/fa-brands-400-2279774165b8ac5d3a6e7b3157e6529c5c6d763c258b254dd3b7daa35b8f15b1.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2022-04-12T21:20:56+00:00","size":78472,"digest":"529d0a7b3944929222155bca3272ba1a87acc2faa09b2ed26a713872b7ff8794","integrity":"sha256-Up0KezlEkpIiFVvKMnK6Goeswvqgmy7SanE4crf/h5Q="},"trestle/fa-brands-400-dd64cb64f2ec1ed47c9c8087ee8111b5adb88d486477f4dd58a6c305af95aa2b.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2022-04-12T21:20:56+00:00","size":92136,"digest":"8d79ac2164bf3d60583e0c44707f79d73f8de3b55e365f9839c91ccb6b4e5e0f","integrity":"sha256-jXmsIWS/PWBYPgxEcH951z+N47VeNl+YOckcy2tOXg8="},"trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2022-04-12T21:20:56+00:00","size":136516,"digest":"dee03b559ef15082f4864001d7ecc562b2ff4dd2c1a761047c8fd52919a9ee04","integrity":"sha256-3uA7VZ7xUIL0hkAB1+zFYrL/TdLBp2EEfI/VKRmp7gQ="},"trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2022-04-12T21:20:56+00:00","size":747545,"digest":"8594ac7ea23505e2c5096659c6f642c610d2ef126d8ba718c42067ccc6338c32","integrity":"sha256-hZSsfqI1BeLFCWZZxvZCxhDS7xJti6cYxCBnzMYzjDI="},"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js":{"logical_path":"trestle/admin.js","mtime":"2022-04-12T21:20:56+00:00","size":391334,"digest":"74a613c3a1dcc91bf57578762da604c78518fcd895484cfe783f77d90ef2f940","integrity":"sha256-dKYTw6HcyRv1dXh2LaYEx4UY/NiVSEz+eD932Q7y+UA="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2022-04-12T21:20:56+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2022-04-12T21:20:56+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2022-04-12T21:20:56+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2022-04-12T21:20:56+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2022-04-12T21:20:56+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2022-04-12T21:20:56+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css":{"logical_path":"trestle/theme.css","mtime":"2022-04-12T21:20:56+00:00","size":18638,"digest":"c3ef17df680003ea4f56615a8e3cf3b4e121104811243e3c5c1046f5463fc80b","integrity":"sha256-w+8X32gAA+pPVmFajjzztOEhEEgRJD48XBBG9UY/yAs="}},"assets":{"trestle/admin.css":"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-9c3b0d7842673b6863e8200b9a6790f5156015904c2e55d0a76eadeb1ad4f519.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-8bf7666bc5c4ed2d1549f41ed3960ee344a9da4ec470032baa2f082504fa2468.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-057c0082f82431e4aedc10c25634b441374d11ffdbbc82246f404774c38376ba.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-0a73a2a6067e6f740b012ae8e43e742356f7b5da951980969a599e81f99a2a93.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-7911caac9acd6d976fa6726626ffc161c2c575664a13ef43d2cae15ee7d92221.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-8db4e70b05ee471ba02b2819249cb424eba5e7bd8b192b81c0bdc61a95e726bd.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-0a59e8ea35b5acca3176699da5a8b9af85681a8afdd5e07b7adce32901733184.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-f5ac49b1523ec7ffe58ab6cf0efa50495c34782e75988e02e1b0f971b4d0bfdf.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-cc705c0da5bca6335d9c2e52de7c358870cb59968ec411d70f060d6bc684f721.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-2279774165b8ac5d3a6e7b3157e6529c5c6d763c258b254dd3b7daa35b8f15b1.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-dd64cb64f2ec1ed47c9c8087ee8111b5adb88d486477f4dd58a6c305af95aa2b.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg","trestle/admin.js":"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.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-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.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 02661a318397ae86e00eeef5b6a7e367d97c574b..8d4e50e49883975fb95cd97ca732f81ce7b037c1 100644
GIT binary patch
delta 16
XcmZo+ZeeDZ@8)2zcpJKry_OLGBhCbP
delta 16
XcmZo+ZeeDZ@8)38T@tvFy_OLGA-4n|
diff --git a/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz b/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz
index 0476f92e6ae85a6114ee5925db4a3d77dc9a39c7..fa52d23128f0b92bdc3f6448bd9cf26f1eefa695 100644
GIT binary patch
delta 16
Xcmca)bIFEXzMF%=;%(?gc5gWVGUo+x
delta 16
Xcmca)bIFEXzMF$VcS+zzc5gWVFwg}V
diff --git a/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz b/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz
index 518bbc575e96de6fea58f59d82625d0d47d5ee72..6248a06594194f96720695e710555b4097fed530 100644
GIT binary patch
delta 75
zcmWN_IRS$}002S0usk7r0g!JVQJK%U&hl|GFWmWRgoE
ZFDd28N@{7OmA7>AkzNKFWxAMu#|{4~5-|V(
delta 75
zcmWN_NfCoU002R*FdQLV0#FbQaj;cL;xR7}fPh%Q!s>#4c05Bo1Iu0|-~YNHsbrE%
aAulQA$x3Qzq?NaH@{wK!8D+Ydf5#2!dlA_H
diff --git a/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz b/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz
index 07128574f3a9ca03b6942cd79a4de28af6c106d2..d47b68fde06e283b4f476d76bc0bf76e9d898a97 100644
GIT binary patch
literal 24
fcmb2|=3uaR8=Az#{P@wMM@$S>yF(&b7#J7;Y2^pS
literal 24
fcmb2|=3vlW5}3rq{P@wMM@$S>yF(&b7#J7;V^#-k
diff --git a/server/public/assets/trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js.gz b/server/public/assets/trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js.gz
index f0998ff8f448ed55518342864b9640617ba90c2a..820c6925fb38baa676449969ecac4350d8b5de46 100644
GIT binary patch
delta 21
dcmbRDjcwjHHg@@L4hD<2p^fZY*%`%m0{~lq2Y&zn
delta 21
dcmbRDjcwjHHg@@L4hG#NfsO22*%`%m0{~cI2PXgk
diff --git a/server/public/assets/trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css.gz b/server/public/assets/trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css.gz
index 0d3bc1f968e8e455d73bca0985759fb6be00bdbb..66f411e2bfe7ec190247683eac4315e1abdd4290 100644
GIT binary patch
delta 18
acmeymi}~v=W_I~*4hD<2p&Qxr?g9WyGzXgi
delta 18
acmeymi}~v=W_I~*4hG#Nfg9QL?g9Ww9S1`I
diff --git a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
index be23763c7c51f1603a121ac46652cb863d93068c..de177fd028617c8e50cfecb67b7aa0c03ac16e3b 100644
GIT binary patch
literal 20
Ucmb2|=3uaR8=Az#%*+4-04TcxmjD0&
literal 20
Ucmb2|=3vlW5}3rq%*+4-03(b7KL7v#
diff --git a/server/public/assets/trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg.gz b/server/public/assets/trestle/fa-brands-400-6602de0f93956c46063cf8a4ec738a57c6cc3f1043baf75e29c8349022a42907.svg.gz
index 5fa019b027678f78759d77fb15b9a9ccb4b17944..33c2166eb3934fc3a804bde727f7977dd4cb6f45 100644
GIT binary patch
delta 27
jcmexxg#W`4es=k84hD<2p^faV?2N7KOk3HRGamr}lE(>W
delta 27
jcmexxg#W`4es=k84hG#NfsO2~?2N7KOk3HRGamr}jhG1!
diff --git a/server/public/assets/trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf.gz b/server/public/assets/trestle/fa-brands-400-d0360fa6543ba99bd4ef497fb85b28dda939e190a18149f57d5bc1fe4ac11b8d.ttf.gz
index 82aac13b3a92584b5eac6c3acffa58ebeb50aad5..b7a04065144b25510e3e62efa7584fd4e807e23f 100644
GIT binary patch
delta 21
dcmex$nf2FYR(APr4hD<2p^fZY*%?1)0sv*W2zdYi
delta 21
dcmex$nf2FYR(APr4hG#NfsO22*%?1)0svx}2q6Ff
diff --git a/server/public/assets/trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot.gz b/server/public/assets/trestle/fa-brands-400-ec52fd0b82d40ef90a986001e818b5e1158f767541186b9c692faa9394475059.eot.gz
index f4c8343acc08f7c203fadc93af4371b86b07722a..a2e1d3414163226a920ae72b86690e0b25882e11 100644
GIT binary patch
delta 21
ccmex{r.d(d,{h:()=>f});var t=r(9808),s=r(647),l=r(5e3);let f=(()=>{class c{}return c.\u0275fac=function(e){return new(e||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[t.ez,s.PV]]}),c})()},6064:(_,d,r)=>{r.d(d,{_:()=>l});var t=r(712),s=r(7905);class l extends s.nT{constructor(){super(s.yQ.EVIDENCE),this.validStates.set(t.kqt.Predictive,{entityType:t.kqt.Predictive,clinicalSignificance:[t._Aq.Sensitivityresponse,t._Aq.Resistance,t._Aq.AdverseResponse,t._Aq.ReducedSensitivity,t._Aq.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Diagnostic,{entityType:t.kqt.Diagnostic,clinicalSignificance:[t._Aq.Positive,t._Aq.Negative],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Prognostic,{entityType:t.kqt.Prognostic,clinicalSignificance:[t._Aq.BetterOutcome,t._Aq.PoorOutcome,t._Aq.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Oncogenic,{entityType:t.kqt.Oncogenic,clinicalSignificance:[t._Aq.Na],entityDirection:[t.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Predisposing,{entityType:t.kqt.Predisposing,clinicalSignificance:[t._Aq.Na],entityDirection:[t.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Functional,{entityType:t.kqt.Functional,clinicalSignificance:[t._Aq.GainOfFunction,t._Aq.LossOfFunction,t._Aq.UnalteredFunction,t._Aq.Neomorphic,t._Aq.DominantNegative,t._Aq.Unknown],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!1,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},1605:(_,d,r)=>{r.d(d,{e:()=>ee});var t=r(9808),s=r(4182),l=r(8776),f=r(3793),c=r(304),p=r(8054),e=r(5e3),v=r(1894),g=r(4546);let T=(()=>{class n{constructor(){console.log("FormCardDirective constructed.")}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275dir=e.lG2({type:n,selectors:[["",8,"cvc-form-card-control"]]}),n})();var y=r(7484),h=r(404);function u(n,i){1&n&&e._UZ(0,"i",7)}function A(n,i){if(1&n&&(e.TgZ(0,"nz-form-label",5),e._uU(1),e.YNc(2,u,1,0,"i",6),e.qZA()),2&n){const o=e.oxw();e.Q6J("nzRequired",o.to.required&&!0!==o.to.hideRequiredMarker)("nzFor",o.id),e.xp6(1),e.hij(" ",o.to.label," "),e.xp6(1),e.Q6J("ngIf",o.to.helpText)}}function z(n,i){if(1&n&&e._UZ(0,"formly-validation-message",9),2&n){const o=e.oxw(2);e.Q6J("field",o.field)}}function F(n,i){if(1&n&&e.YNc(0,z,1,1,"formly-validation-message",8),2&n){const o=e.oxw();e.Q6J("ngIf",o.showError)}}let O=(()=>{class n extends l.n2{constructor(){super()}get errorState(){return console.log(`form-card.wrapper showError: ${this.showError}`),this.showError?"error":""}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["form-card-wrapper"]],features:[e.qOj],decls:9,vars:4,consts:[[1,"cvc-form-card-control",3,"nzValidateStatus","nzErrorTip"],["nzSize","small","nzType","inner",3,"nzTitle","nzExtra"],["fieldComponent",""],["cardTitle",""],["cardExtra",""],[3,"nzRequired","nzFor"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText",4,"ngIf"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText"],[3,"field",4,"ngIf"],[3,"field"]],template:function(o,a){if(1&o&&(e.TgZ(0,"nz-form-item"),e.TgZ(1,"nz-form-control",0),e.TgZ(2,"nz-card",1),e.GkF(3,null,2),e.qZA(),e.YNc(5,A,3,4,"ng-template",null,3,e.W1O),e.YNc(7,F,1,1,"ng-template",null,4,e.W1O),e.qZA(),e.qZA()),2&o){const m=e.MAs(6),C=e.MAs(8);e.xp6(1),e.Q6J("nzValidateStatus",a.errorState)("nzErrorTip",C),e.xp6(1),e.Q6J("nzTitle",m)("nzExtra",C)}},directives:[v.SK,g.Nx,v.t3,g.Fd,T,y.bd,g.iK,t.O5,h.SY,l.u_],styles:["[_nghost-%COMP%]{display:block}.ant-form-item-label[_ngcontent-%COMP%]{padding:0}"],changeDetection:0}),n})();var q=r(647),D=r(5109);const M={wrappers:[{name:"form-card",component:O}]};let E=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.UX,g.U5,y.vh,q.PV,h.cg,l.X0.forChild(M),D.s]]}),n})();var N=r(8929),G=r(7625),L=r(373),J=r(4850),P=r(712),S=r(6949),x=r(8144),I=r(3618),U=r(3193),Q=r(8926);function V(n,i){if(1&n&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&n){const o=e.oxw().$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,a.to.searchString),e.oJD)}}function Z(n,i){if(1&n&&(e._UZ(0,"span",12),e.ALo(1,"highlightTypeahead")),2&n){const o=e.oxw(2).$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.gene.geneAliases.join(", "),a.to.searchString),e.oJD)}}function R(n,i){1&n&&(e.ynx(0),e.YNc(1,Z,2,4,"span",11),e.BQk())}function W(n,i){if(1&n&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,V,2,4,"span",8),e.YNc(3,R,2,0,"ng-container",9),e.qZA(),e.qZA()),2&n){const o=i.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.gene),e.xp6(3),e.Q6J("ngIf",o.gene.geneAliases.length>0)}}function $(n,i){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"json"),e.YNc(3,W,4,3,"nz-option",6),e.BQk()),2&n){const o=i.ngrxLet;e.xp6(1),e.hij(" ",e.lcZ(2,2,o)," "),e.xp6(2),e.Q6J("ngForOf",o)}}function j(n,i){1&n&&e._uU(0," No gene found in CIViC that matches the string provided. ")}function B(n,i){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",2,3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(3,$,4,4,"ng-container",4),e.qZA(),e.YNc(4,j,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&n){const o=e.MAs(5),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.formControl)("formlyAttributes",a.field)("nzPlaceHolder",a.to.placeholder?a.to.placeholder:null)("nzNotFoundContent",o)("nzShowArrow",a.to.showArrow)("nzFilterOption",a.to.filterOption),e.xp6(2),e.Q6J("ngrxLet",a.genes$)}}function Y(n,i){if(1&n&&e._UZ(0,"cvc-gene-tag",13),2&n){const o=e.oxw();e.Q6J("gene",o.formControl.value)}}const w={name:"cvc-gene-input",component:(()=>{class n extends l.fS{constructor(o){super(),this.geneTypeaheadQuery=o,this.defaultOptions={templateOptions:{placeholder:"Search Genes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}},this.destroy$=new N.xQ}ngOnInit(){this.queryRef=this.geneTypeaheadQuery.watch({entrezSymbol:""}),this.genes$=this.queryRef.valueChanges.pipe((0,G.R)(this.destroy$),(0,L.j)("data","geneTypeahead"),(0,J.U)(o=>o.map(a=>{let m=a.geneAliases.length>0?`Aliases: ${a.geneAliases.join(", ")}`:"";return{value:a.id,tooltip:`${a.name} (${a.entrezId}) ${m}`,label:`${a.name} (${a.entrezId})`,gene:a}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.UX,S.WG,l.X0.forChild({types:[w]}),p.LV,x.zf,I.ZJ,H.U,X.s]]}),n})();var k=r(8390);const b={name:"gene-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Gene",helpText:"Entrez Gene name (e.g. BRAF). Gene name must be known to the Entrez database.",required:!1,addText:"Specify a Gene"},fieldArray:{type:"cvc-gene-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Gene be specified."}}}};let ee=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.u5,s.UX,p.LV,c.F,f.F,l.X0.forChild({types:[b]}),K,k.N,E]]}),n})()},1270:(_,d,r)=>{r.d(d,{i:()=>h});var t=r(9808),s=r(4182),l=r(8776),f=r(3793),c=r(304),p=r(8054),e=r(3773),v=r(8390);const T={name:"source-array",extends:"multi-field",defaultOptions:{templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",required:!1,addText:"Specify a Source"},fieldArray:{type:"source-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"A Source is required."}}}};var y=r(5e3);let h=(()=>{class u{}return u.\u0275fac=function(z){return new(z||u)},u.\u0275mod=y.oAB({type:u}),u.\u0275inj=y.cJS({imports:[[t.ez,s.u5,s.UX,p.LV,c.F,f.F,l.X0.forChild({types:[T]}),e.g,v.N]]}),u})()}}]);
\ No newline at end of file
diff --git a/server/public/common.acceea69d48490b4.js b/server/public/common.acceea69d48490b4.js
deleted file mode 100644
index 1af54ea35..000000000
--- a/server/public/common.acceea69d48490b4.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8592],{3384:(v,p,r)=>{r.d(p,{h:()=>f});var n=r(9808),l=r(647),s=r(5e3);let f=(()=>{class c{}return c.\u0275fac=function(e){return new(e||c)},c.\u0275mod=s.oAB({type:c}),c.\u0275inj=s.cJS({imports:[[n.ez,l.PV]]}),c})()},5284:(v,p,r)=>{function n(l){return l.toLowerCase().split("_").map(s=>s[0].toUpperCase()+s.substring(1)).join("")}r.d(p,{e:()=>n})},6064:(v,p,r)=>{r.d(p,{_:()=>s});var n=r(712),l=r(7905);class s extends l.nT{constructor(){super(l.yQ.EVIDENCE),this.validStates.set(n.kqt.Predictive,{entityType:n.kqt.Predictive,clinicalSignificance:[n._Aq.Sensitivityresponse,n._Aq.Resistance,n._Aq.AdverseResponse,n._Aq.ReducedSensitivity,n._Aq.Na],entityDirection:[n.tI1.Supports,n.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Diagnostic,{entityType:n.kqt.Diagnostic,clinicalSignificance:[n._Aq.Positive,n._Aq.Negative],entityDirection:[n.tI1.Supports,n.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Prognostic,{entityType:n.kqt.Prognostic,clinicalSignificance:[n._Aq.BetterOutcome,n._Aq.PoorOutcome,n._Aq.Na],entityDirection:[n.tI1.Supports,n.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Oncogenic,{entityType:n.kqt.Oncogenic,clinicalSignificance:[n._Aq.Na],entityDirection:[n.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Predisposing,{entityType:n.kqt.Predisposing,clinicalSignificance:[n._Aq.Na],entityDirection:[n.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(n.kqt.Functional,{entityType:n.kqt.Functional,clinicalSignificance:[n._Aq.GainOfFunction,n._Aq.LossOfFunction,n._Aq.UnalteredFunction,n._Aq.Neomorphic,n._Aq.DominantNegative,n._Aq.Unknown],entityDirection:[n.tI1.Supports,n.tI1.DoesNotSupport],requiresDisease:!1,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},1605:(v,p,r)=>{r.d(p,{e:()=>ee});var n=r(9808),l=r(4182),s=r(8776),f=r(3793),c=r(304),u=r(8054),e=r(5e3),h=r(1894),g=r(4546);let T=(()=>{class t{constructor(){console.log("FormCardDirective constructed.")}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=e.lG2({type:t,selectors:[["",8,"cvc-form-card-control"]]}),t})();var y=r(7484),_=r(404);function d(t,i){1&t&&e._UZ(0,"i",7)}function A(t,i){if(1&t&&(e.TgZ(0,"nz-form-label",5),e._uU(1),e.YNc(2,d,1,0,"i",6),e.qZA()),2&t){const o=e.oxw();e.Q6J("nzRequired",o.to.required&&!0!==o.to.hideRequiredMarker)("nzFor",o.id),e.xp6(1),e.hij(" ",o.to.label," "),e.xp6(1),e.Q6J("ngIf",o.to.helpText)}}function z(t,i){if(1&t&&e._UZ(0,"formly-validation-message",9),2&t){const o=e.oxw(2);e.Q6J("field",o.field)}}function F(t,i){if(1&t&&e.YNc(0,z,1,1,"formly-validation-message",8),2&t){const o=e.oxw();e.Q6J("ngIf",o.showError)}}let O=(()=>{class t extends s.n2{constructor(){super()}get errorState(){return console.log(`form-card.wrapper showError: ${this.showError}`),this.showError?"error":""}ngOnInit(){}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["form-card-wrapper"]],features:[e.qOj],decls:9,vars:4,consts:[[1,"cvc-form-card-control",3,"nzValidateStatus","nzErrorTip"],["nzSize","small","nzType","inner",3,"nzTitle","nzExtra"],["fieldComponent",""],["cardTitle",""],["cardExtra",""],[3,"nzRequired","nzFor"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText",4,"ngIf"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText"],[3,"field",4,"ngIf"],[3,"field"]],template:function(o,a){if(1&o&&(e.TgZ(0,"nz-form-item"),e.TgZ(1,"nz-form-control",0),e.TgZ(2,"nz-card",1),e.GkF(3,null,2),e.qZA(),e.YNc(5,A,3,4,"ng-template",null,3,e.W1O),e.YNc(7,F,1,1,"ng-template",null,4,e.W1O),e.qZA(),e.qZA()),2&o){const m=e.MAs(6),x=e.MAs(8);e.xp6(1),e.Q6J("nzValidateStatus",a.errorState)("nzErrorTip",x),e.xp6(1),e.Q6J("nzTitle",m)("nzExtra",x)}},directives:[h.SK,g.Nx,h.t3,g.Fd,T,y.bd,g.iK,n.O5,_.SY,s.u_],styles:["[_nghost-%COMP%]{display:block}.ant-form-item-label[_ngcontent-%COMP%]{padding:0}"],changeDetection:0}),t})();var q=r(647),D=r(5109);const M={wrappers:[{name:"form-card",component:O}]};let E=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.ez,l.UX,g.U5,y.vh,q.PV,_.cg,s.X0.forChild(M),D.s]]}),t})();var N=r(8929),G=r(7625),L=r(373),J=r(4850),P=r(712),S=r(6949),C=r(8144),I=r(3618),U=r(3193),Q=r(8926);function V(t,i){if(1&t&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&t){const o=e.oxw().$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,a.to.searchString),e.oJD)}}function Z(t,i){if(1&t&&(e._UZ(0,"span",12),e.ALo(1,"highlightTypeahead")),2&t){const o=e.oxw(2).$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.gene.geneAliases.join(", "),a.to.searchString),e.oJD)}}function R(t,i){1&t&&(e.ynx(0),e.YNc(1,Z,2,4,"span",11),e.BQk())}function W(t,i){if(1&t&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,V,2,4,"span",8),e.YNc(3,R,2,0,"ng-container",9),e.qZA(),e.qZA()),2&t){const o=i.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.gene),e.xp6(3),e.Q6J("ngIf",o.gene.geneAliases.length>0)}}function $(t,i){if(1&t&&(e.ynx(0),e._uU(1),e.ALo(2,"json"),e.YNc(3,W,4,3,"nz-option",6),e.BQk()),2&t){const o=i.ngrxLet;e.xp6(1),e.hij(" ",e.lcZ(2,2,o)," "),e.xp6(2),e.Q6J("ngForOf",o)}}function j(t,i){1&t&&e._uU(0," No gene found in CIViC that matches the string provided. ")}function w(t,i){if(1&t){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",2,3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(3,$,4,4,"ng-container",4),e.qZA(),e.YNc(4,j,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&t){const o=e.MAs(5),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.formControl)("formlyAttributes",a.field)("nzPlaceHolder",a.to.placeholder?a.to.placeholder:null)("nzNotFoundContent",o)("nzShowArrow",a.to.showArrow)("nzFilterOption",a.to.filterOption),e.xp6(2),e.Q6J("ngrxLet",a.genes$)}}function B(t,i){if(1&t&&e._UZ(0,"cvc-gene-tag",13),2&t){const o=e.oxw();e.Q6J("gene",o.formControl.value)}}const Y={name:"cvc-gene-input",component:(()=>{class t extends s.fS{constructor(o){super(),this.geneTypeaheadQuery=o,this.defaultOptions={templateOptions:{placeholder:"Search Genes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}},this.destroy$=new N.xQ}ngOnInit(){this.queryRef=this.geneTypeaheadQuery.watch({entrezSymbol:""}),this.genes$=this.queryRef.valueChanges.pipe((0,G.R)(this.destroy$),(0,L.j)("data","geneTypeahead"),(0,J.U)(o=>o.map(a=>{let m=a.geneAliases.length>0?`Aliases: ${a.geneAliases.join(", ")}`:"";return{value:a.id,tooltip:`${a.name} (${a.entrezId}) ${m}`,label:`${a.name} (${a.entrezId})`,gene:a}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.ez,l.UX,S.WG,s.X0.forChild({types:[Y]}),u.LV,C.zf,I.ZJ,H.U,X.s]]}),t})();var k=r(8390);const b={name:"gene-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Gene",helpText:"Entrez Gene name (e.g. BRAF). Gene name must be known to the Entrez database.",required:!1,addText:"Specify a Gene"},fieldArray:{type:"cvc-gene-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Gene be specified."}}}};let ee=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.ez,l.u5,l.UX,u.LV,c.F,f.F,s.X0.forChild({types:[b]}),K,k.N,E]]}),t})()},1270:(v,p,r)=>{r.d(p,{i:()=>_});var n=r(9808),l=r(4182),s=r(8776),f=r(3793),c=r(304),u=r(8054),e=r(3773),h=r(8390);const T={name:"source-array",extends:"multi-field",defaultOptions:{templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",required:!1,addText:"Specify a Source"},fieldArray:{type:"source-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"A Source is required."}}}};var y=r(5e3);let _=(()=>{class d{}return d.\u0275fac=function(z){return new(z||d)},d.\u0275mod=y.oAB({type:d}),d.\u0275inj=y.cJS({imports:[[n.ez,l.u5,l.UX,u.LV,c.F,f.F,s.X0.forChild({types:[T]}),e.g,h.N]]}),d})()}}]);
\ No newline at end of file
diff --git a/server/public/index.html b/server/public/index.html
index fc4d8b033..c2924e52a 100644
--- a/server/public/index.html
+++ b/server/public/index.html
@@ -17,6 +17,6 @@
-
+