From 701934e64d4f56a9626b0357e15e15c0adb3c324 Mon Sep 17 00:00:00 2001 From: susannasiebert Date: Thu, 14 Apr 2022 15:52:23 +0000 Subject: [PATCH] Automated frontend build --- ...efa3cfff40.js => 1457.34c1b62d4d2a7ed2.js} | 2 +- ...bec340ee7a.js => 3073.2c9b479fe3dca9f8.js} | 2 +- ...ae0aa809aa.js => 3218.b9650131e157c42a.js} | 2 +- ...58cf6ba4f4.js => 3438.f54dc1103b98eab1.js} | 2 +- ...978b2c0e0b.js => 3894.f1b117e8387ec68f.js} | 2 +- ...ab226b478d.js => 4024.4198b82988b533fe.js} | 136 +++++++++++------- ...ef34d7116e.js => 4276.bc012717d8d8d96c.js} | 2 +- server/public/4292.73f4c12168601c38.js | 1 - ...d78524e647.js => 4658.5c85d7945136a277.js} | 2 +- server/public/5291.95fc472ce90a140e.js | 1 + server/public/535.41583e85177a9773.js | 1 + server/public/6303.e5fe598bc8a5dfd2.js | 1 - ...e569d77955f.js => 681.86186dfa0324b3e1.js} | 2 +- ...2d5c87028f.js => 7259.3d0ae570e3bb4dac.js} | 2 +- server/public/7559.223e892b79fdc7b5.js | 1 + server/public/7559.f6ca9a429933f621.js | 1 - ...9fde8cf78eea.js => 79.c2ee2d04f9a73d83.js} | 2 +- ...93207c0c97.js => 8482.97546a52cadedf70.js} | 2 +- ...48a9af4544.js => 9020.d6f9f3844668aecf.js} | 2 +- ...54ff6709b6.js => 9286.1078d57cf8d3724d.js} | 2 +- server/public/9484.e48ad84613f06f22.js | 1 + server/public/9484.eba4a2cb1d41b5d4.js | 1 - ...966b3986b1.js => 9636.90e794638acf3e95.js} | 2 +- server/public/9716.5e244a9bae2799f5.js | 1 + ...est-749f0df926e6496715e483247ca7c642.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/index.html | 2 +- server/public/runtime.4a803f5f358cadcc.js | 1 - server/public/runtime.51ca8a9f4c0b56df.js | 1 + 46 files changed, 106 insertions(+), 73 deletions(-) rename server/public/{1457.91c95cefa3cfff40.js => 1457.34c1b62d4d2a7ed2.js} (74%) rename server/public/{3073.8d568bbec340ee7a.js => 3073.2c9b479fe3dca9f8.js} (99%) rename server/public/{3218.9a2a6eae0aa809aa.js => 3218.b9650131e157c42a.js} (99%) rename server/public/{3438.4547ca58cf6ba4f4.js => 3438.f54dc1103b98eab1.js} (99%) rename server/public/{3894.018c5c978b2c0e0b.js => 3894.f1b117e8387ec68f.js} (98%) rename server/public/{4024.60d65aab226b478d.js => 4024.4198b82988b533fe.js} (52%) rename server/public/{4276.08cec2ef34d7116e.js => 4276.bc012717d8d8d96c.js} (73%) delete mode 100644 server/public/4292.73f4c12168601c38.js rename server/public/{4658.0b2f1cd78524e647.js => 4658.5c85d7945136a277.js} (95%) create mode 100644 server/public/5291.95fc472ce90a140e.js create mode 100644 server/public/535.41583e85177a9773.js delete mode 100644 server/public/6303.e5fe598bc8a5dfd2.js rename server/public/{681.80f46e569d77955f.js => 681.86186dfa0324b3e1.js} (96%) rename server/public/{7259.5cb9a32d5c87028f.js => 7259.3d0ae570e3bb4dac.js} (99%) create mode 100644 server/public/7559.223e892b79fdc7b5.js delete mode 100644 server/public/7559.f6ca9a429933f621.js rename server/public/{79.88f59fde8cf78eea.js => 79.c2ee2d04f9a73d83.js} (96%) rename server/public/{8482.43089493207c0c97.js => 8482.97546a52cadedf70.js} (99%) rename server/public/{9020.4a98dc48a9af4544.js => 9020.d6f9f3844668aecf.js} (84%) rename server/public/{9286.77907954ff6709b6.js => 9286.1078d57cf8d3724d.js} (99%) create mode 100644 server/public/9484.e48ad84613f06f22.js delete mode 100644 server/public/9484.eba4a2cb1d41b5d4.js rename server/public/{9636.fb2df4966b3986b1.js => 9636.90e794638acf3e95.js} (99%) create mode 100644 server/public/9716.5e244a9bae2799f5.js rename server/public/assets/{.sprockets-manifest-4c0650ca72a239c847e6524040f006b4.json => .sprockets-manifest-749f0df926e6496715e483247ca7c642.json} (83%) delete mode 100644 server/public/runtime.4a803f5f358cadcc.js create mode 100644 server/public/runtime.51ca8a9f4c0b56df.js diff --git a/server/public/1457.91c95cefa3cfff40.js b/server/public/1457.34c1b62d4d2a7ed2.js similarity index 74% rename from server/public/1457.91c95cefa3cfff40.js rename to server/public/1457.34c1b62d4d2a7ed2.js index f4ae70a63..ed7368d3e 100644 --- a/server/public/1457.91c95cefa3cfff40.js +++ b/server/public/1457.34c1b62d4d2a7ed2.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(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 +"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(9716),t.e(3883),t.e(5291),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/3073.8d568bbec340ee7a.js b/server/public/3073.2c9b479fe3dca9f8.js similarity index 99% rename from server/public/3073.8d568bbec340ee7a.js rename to server/public/3073.2c9b479fe3dca9f8.js index 6a57e29a0..bc9f24ee3 100644 --- a/server/public/3073.8d568bbec340ee7a.js +++ b/server/public/3073.2c9b479fe3dca9f8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3073],{3073:(Bn,ft,l)=>{l.r(ft),l.d(ft,{OrganizationsModule:()=>Hn});var p=l(9808),D=l(6949),ne=l(9441),x=l(647),t=l(5e3);let oe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,ne.s,x.PV]]}),i})();var _t=l(5630),u=l(8929),vt=l(2198),R=l(2986),N=l(7625),zt=l(9439),Ct=l(1721),F=l(2845),bt=l(7429),Dt=l(1159),se=l(8076),w=l(925),m=l(3191),xt=l(5664),U=l(2654),K=l(2916),yt=l(353),re=l(4241);function ce(i){const{subscriber:n,counter:e,period:o}=i;n.next(e),this.schedule({subscriber:n,counter:e+1,period:o},o)}var le=l(352),wt=l(6787),Y=l(4850),M=l(1059),de=l(2868),he=l(7545),Pt=l(2321),X=l(226);function tt(i,n,e){for(let o in n)if(n.hasOwnProperty(o)){const s=n[o];s?i.setProperty(o,s,(null==e?void 0:e.has(o))?"important":""):i.removeProperty(o)}return i}function A(i,n){const e=n?"":"none";tt(i.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function St(i,n,e){tt(i.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function B(i,n){return n&&"none"!=n?i+" "+n:i}function Tt(i){const n=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*n}function et(i,n){return i.getPropertyValue(n).split(",").map(o=>o.trim())}function it(i){const n=i.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function nt(i,n,e){const{top:o,bottom:s,left:r,right:a}=i;return e>=o&&e<=s&&n>=r&&n<=a}function Q(i,n,e){i.top+=n,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function It(i,n,e,o){const{top:s,right:r,bottom:a,left:c,width:d,height:h}=i,g=d*n,f=h*n;return o>s-f&&oc-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:it(e)})})}handleScroll(n){const e=(0,w.sA)(n),o=this.positions.get(e);if(!o)return null;const s=o.scrollPosition;let r,a;if(e===this._document){const h=this._viewportRuler.getViewportScrollPosition();r=h.top,a=h.left}else r=e.scrollTop,a=e.scrollLeft;const c=s.top-r,d=s.left-a;return this.positions.forEach((h,g)=>{h.clientRect&&e!==g&&e.contains(g)&&Q(h.clientRect,c,d)}),s.top=r,s.left=a,{top:c,left:d}}}function Et(i){const n=i.cloneNode(!0),e=n.querySelectorAll("[id]"),o=i.nodeName.toLowerCase();n.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const d=this._handles.find(h=>c.target&&(c.target===h||h.contains(c.target)));d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const d=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(d.x-this._pickupPositionOnPage.x)+Math.abs(d.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const H=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),E=this._dropContainer;if(!H)return void this._endDragSequence(c);(!E||!E.isDragging()&&!E.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),c.preventDefault();const h=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,d);else{const g=this._activeTransform;g.x=h.x-this._pickupPositionOnPage.x+this._passiveTransform.x,g.y=h.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(g.x,g.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:h,event:c,distance:this._getDragDistance(h),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new Ot(o,r),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(n){const e=(0,m.Ig)(n);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(o=>A(o,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(o=>(0,m.fI)(o)),this._handles.forEach(o=>A(o,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(o=>{this._handles.indexOf(o)>-1&&e.add(o)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=(0,m.fI)(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Zt),e.addEventListener("touchstart",this._pointerDown,kt)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?(0,m.fI)(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){var n,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(n=this._rootElement)||void 0===n||n.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),A(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),A(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var n,e;null===(n=this._preview)||void 0===n||n.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var n,e;null===(n=this._placeholder)||void 0===n||n.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){J(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const o=this._rootElement,s=o.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();s.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),St(o,!1,ot),this._document.body.appendChild(s.replaceChild(r,o)),this._getPreviewInsertionPoint(s,c).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const o=this.isDragging(),s=J(e),r=!s&&0!==e.button,a=this._rootElement,c=(0,w.sA)(e),d=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=s?(0,xt.yG)(e):(0,xt.X6)(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),o||r||d||h)return;if(this._handles.length){const C=a.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(C=>this._updateOnScroll(C)),this._boundaryElement&&(this._boundaryRect=it(this._boundaryElement));const g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(n,e);const f=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:f.x,y:f.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){St(this._rootElement,!0,ot),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,o=e.getItemIndex(this),s=this._getPointerPositionOnPage(n),r=this._getDragDistance(s),a=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:r,dropPoint:s}),this.dropped.next({item:this,currentIndex:o,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:s}),e.drop(this,o,this._initialIndex,this._initialContainer,a,r,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:o,y:s}){let r=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,n,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,s),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,o=n?n.template:null;let s;if(o&&n){const r=n.matchSize?this._rootElement.getBoundingClientRect():null,a=n.viewContainer.createEmbeddedView(o,n.context);a.detectChanges(),s=Nt(a,this._document),this._previewRef=a,n.matchSize?Ft(s,r):s.style.transform=$(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const r=this._rootElement;s=Et(r),Ft(s,r.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return tt(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ot),A(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>s.classList.add(r)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function ge(i){const n=getComputedStyle(i),e=et(n,"transition-property"),o=e.find(c=>"transform"===c||"all"===c);if(!o)return 0;const s=e.indexOf(o),r=et(n,"transition-duration"),a=et(n,"transition-delay");return Tt(r[s])+Tt(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(o=>{const s=a=>{var c;(!a||(0,w.sA)(a)===this._preview&&"transform"===a.propertyName)&&(null===(c=this._preview)||void 0===c||c.removeEventListener("transitionend",s),o(),clearTimeout(r))},r=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let o;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),o=Nt(this._placeholderRef,this._document)):o=Et(this._rootElement),o.classList.add("cdk-drag-placeholder"),o}_getPointerPositionInElement(n,e){const o=this._rootElement.getBoundingClientRect(),s=n===this._rootElement?null:n,r=s?s.getBoundingClientRect():o,a=J(e)?e.targetTouches[0]:e,c=this._getViewportScrollPosition();return{x:r.left-o.left+(a.pageX-r.left-c.left),y:r.top-o.top+(a.pageY-r.top-c.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),o=J(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,s=o.pageX-e.left,r=o.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=s,c.y=r,c.matrixTransform(a.inverse())}}return{x:s,y:r}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:o,y:s}=this.constrainPosition?this.constrainPosition(n,this):n;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(o=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,c=this._boundaryRect,d=this._previewRect,h=c.top+a,g=c.bottom-(d.height-a);o=Lt(o,c.left+r,c.right-(d.width-r)),s=Lt(s,h,g)}return{x:o,y:s}}_updatePointerDirectionDelta(n){const{x:e,y:o}=n,s=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),c=Math.abs(o-r.y);return a>this._config.pointerDirectionChangeThreshold&&(s.x=e>r.x?1:-1,r.x=e),c>this._config.pointerDirectionChangeThreshold&&(s.y=o>r.y?1:-1,r.y=o),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,A(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,Zt),n.removeEventListener("touchstart",this._pointerDown,kt)}_applyRootElementTransform(n,e){const o=$(n,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=B(o,this._initialTransform)}_applyPreviewTransform(n,e){var o;const s=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,r=$(n,e);this._preview.style.transform=B(r,s)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const o=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===s.width&&0===s.height)return;const r=o.left-s.left,a=s.right-o.right,c=o.top-s.top,d=s.bottom-o.bottom;o.width>s.width?(r>0&&(n+=r),a>0&&(n-=a)):n=0,o.height>s.height?(c>0&&(e+=c),d>0&&(e-=d)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:J(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const o=(0,w.sA)(n);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&Q(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const n=this._parentPositions.positions.get(this._document);return n?n.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const o=this._previewContainer||"global";if("parent"===o)return n;if("global"===o){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,m.fI)(o)}}function $(i,n){return`translate3d(${Math.round(i)}px, ${Math.round(n)}px, 0)`}function Lt(i,n,e){return Math.max(n,Math.min(e,i))}function J(i){return"t"===i.type[0]}function Nt(i,n){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const o=n.createElement("div");return e.forEach(s=>o.appendChild(s)),o}function Ft(i,n){i.style.width=`${n.width}px`,i.style.height=`${n.height}px`,i.style.transform=$(n.left,n.top)}function G(i,n){return Math.max(0,Math.min(n,i))}class _e{constructor(n,e,o,s,r){this._dragDropRegistry=e,this._ngZone=s,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new u.xQ,this.entered=new u.xQ,this.exited=new u.xQ,this.dropped=new u.xQ,this.sorted=new u.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=U.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new u.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function ae(i=0,n=yt.P){return(!(0,re.k)(i)||i<0)&&(i=0),(!n||"function"!=typeof n.schedule)&&(n=yt.P),new K.y(e=>(e.add(n.schedule(ce,i,{subscriber:e,counter:0,period:i})),e))}(0,le.Z).pipe((0,N.R)(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=(0,m.fI)(n),this._document=o,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Ot(o,r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,o,s){let r;this._draggingStarted(),null==s?(r=this.sortingDisabled?this._draggables.indexOf(n):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(n,e,o))):r=s;const a=this._activeDraggables,c=a.indexOf(n),d=n.getPlaceholderElement();let h=a[r];if(h===n&&(h=a[r+1]),!h&&(null==r||-1===r||r-1&&a.splice(c,1),h&&!this._dragDropRegistry.isDragging(h)){const g=h.getRootElement();g.parentElement.insertBefore(d,g),a.splice(r,0,n)}else(0,m.fI)(this.element).appendChild(d),a.push(n);d.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,o,s,r,a,c){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:o,container:this,previousContainer:s,isPointerOverContainer:r,distance:a,dropPoint:c})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(o=>o._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===n.indexOf(s))?this._reset():this._cacheItems()),this}withDirection(n){return this._direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._orientation=n,this}withScrollableParents(n){const e=(0,m.fI)(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(o=>o.drag===n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,o,s){if(this.sortingDisabled||!this._clientRect||!It(this._clientRect,.05,e,o))return;const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(n,e,o,s);if(-1===a&&r.length>0)return;const c="horizontal"===this._orientation,d=r.findIndex(b=>b.drag===n),h=r[a],f=h.clientRect,C=d>a?1:-1,H=this._getItemOffsetPx(r[d].clientRect,f,C),E=this._getSiblingOffsetPx(d,r,C),L=r.slice();(function fe(i,n,e){const o=G(n,i.length-1),s=G(e,i.length-1);if(o===s)return;const r=i[o],a=s{if(L[Yn]===b)return;const ee=b.drag===n,mt=ee?H:E,ie=ee?n.getPlaceholderElement():b.drag.getRootElement();b.offset+=mt,c?(ie.style.transform=B(`translate3d(${Math.round(b.offset)}px, 0, 0)`,b.initialTransform),Q(b.clientRect,0,mt)):(ie.style.transform=B(`translate3d(0, ${Math.round(b.offset)}px, 0)`,b.initialTransform),Q(b.clientRect,mt,0))}),this._previousSwap.overlaps=nt(f,e,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=c?s.x:s.y}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let o,s=0,r=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||o||It(a.clientRect,.05,n,e)&&([s,r]=function ve(i,n,e,o){const s=Jt(n,o),r=Gt(n,e);let a=0,c=0;if(s){const d=i.scrollTop;1===s?d>0&&(a=1):i.scrollHeight-d>i.clientHeight&&(a=2)}if(r){const d=i.scrollLeft;1===r?d>0&&(c=1):i.scrollWidth-d>i.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,n,e),(s||r)&&(o=c))}),!s&&!r){const{width:a,height:c}=this._viewportRuler.getViewportSize(),d={width:a,height:c,top:0,right:a,bottom:c,left:0};s=Jt(d,e),r=Gt(d,n),o=window}o&&(s!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||o!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=r,this._scrollNode=o,(s||r)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=(0,m.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=(0,m.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(n).clientRect}_cacheItemPositions(){const n="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const o=e.getVisibleElement();return{drag:e,offset:0,initialTransform:o.style.transform||"",clientRect:it(o)}}).sort((e,o)=>n?e.clientRect.left-o.clientRect.left:e.clientRect.top-o.clientRect.top)}_reset(){this._isDragging=!1;const n=(0,m.fI)(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var o;const s=e.getRootElement();if(s){const r=null===(o=this._itemPositions.find(a=>a.drag===e))||void 0===o?void 0:o.initialTransform;s.style.transform=r||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(n,e,o){const s="horizontal"===this._orientation,r=e[n].clientRect,a=e[n+-1*o];let c=r[s?"width":"height"]*o;if(a){const d=s?"left":"top",h=s?"right":"bottom";-1===o?c-=a.clientRect[d]-r[h]:c+=r[d]-a.clientRect[h]}return c}_getItemOffsetPx(n,e,o){const s="horizontal"===this._orientation;let r=s?e.left-n.left:e.top-n.top;return-1===o&&(r+=s?e.width-n.width:e.height-n.height),r}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const o=this._itemPositions,s="horizontal"===this._orientation;if(o[0].drag!==this._activeDraggables[0]){const a=o[o.length-1].clientRect;return s?n>=a.right:e>=a.bottom}{const a=o[0].clientRect;return s?n<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(n,e,o,s){const r="horizontal"===this._orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:d})=>{if(c===n)return!1;if(s){const h=r?s.x:s.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&h===this._previousSwap.delta)return!1}return r?e>=Math.floor(d.left)&&e=Math.floor(d.top)&&os._canReceive(n,e,o))}_canReceive(n,e,o){if(!this._clientRect||!nt(this._clientRect,e,o)||!this.enterPredicate(n,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,o);if(!s)return!1;const r=(0,m.fI)(this.element);return s===r||r.contains(s)}_startReceiving(n,e){const o=this._activeSiblings;!o.has(n)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(o.add(n),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&(this._itemPositions.forEach(({clientRect:o})=>{Q(o,e.top,e.left)}),this._itemPositions.forEach(({drag:o})=>{this._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=(0,w.kV)((0,m.fI)(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function Jt(i,n){const{top:e,bottom:o,height:s}=i,r=.05*s;return n>=e-r&&n<=e+r?1:n>=o-r&&n<=o+r?2:0}function Gt(i,n){const{left:e,right:o,width:s}=i,r=.05*s;return n>=e-r&&n<=e+r?1:n>=o-r&&n<=o+r?2:0}const j=(0,w.i$)({passive:!1,capture:!0});let ze=(()=>{class i{constructor(e,o){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new u.xQ,this.pointerUp=new u.xQ,this.scroll=new u.xQ,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=o}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,j)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,j)}startDragging(e,o){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:j}),s||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:j}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(e){const o=this._activeDragInstances.indexOf(e);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const o=[this.scroll];return e&&e!==this._document&&o.push(new K.y(s=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&s.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),(0,wt.T)(...o)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,o)=>{this._document.removeEventListener(o,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(t.R0b),t.LFG(p.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Ce={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Ht=(()=>{class i{constructor(e,o,s,r){this._document=e,this._ngZone=o,this._viewportRuler=s,this._dragDropRegistry=r}createDrag(e,o=Ce){return new me(e,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new _e(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(p.K0),t.LFG(t.R0b),t.LFG(Pt.rL),t.LFG(ze))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const st=new t.OlP("CDK_DRAG_PARENT"),be=new t.OlP("CDK_DRAG_CONFIG"),De=new t.OlP("CdkDropList"),rt=new t.OlP("CdkDragHandle");let xe=(()=>{class i{constructor(e,o){this.element=e,this._stateChanges=new u.xQ,this._disabled=!1,this._parentDrag=o}get disabled(){return this._disabled}set disabled(e){this._disabled=(0,m.Ig)(e),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(st,12))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:rt,useExisting:i}])]}),i})();const ye=new t.OlP("CdkDragPlaceholder"),we=new t.OlP("CdkDragPreview");let Se=(()=>{class i{constructor(e,o,s,r,a,c,d,h,g,f,C){this.element=e,this.dropContainer=o,this._ngZone=r,this._viewContainerRef=a,this._dir=d,this._changeDetectorRef=g,this._selfHandle=f,this._parentDrag=C,this._destroyed=new u.xQ,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new K.y(H=>{const E=this._dragRef.moved.pipe((0,Y.U)(L=>({source:this,pointerPosition:L.pointerPosition,event:L.event,delta:L.delta,distance:L.distance}))).subscribe(H);return()=>{E.unsubscribe()}}),this._dragRef=h.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:null==c?void 0:c.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),c&&this._assignDefaults(c),o&&(this._dragRef._withDropContainer(o._dropListRef),o.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=(0,m.Ig)(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,R.q)(1),(0,N.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const o=e.rootElementSelector,s=e.freeDragPosition;o&&!o.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=i._dragInstances.indexOf(this);e>-1&&i._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var e;const o=this.element.nativeElement;let s=o;this.rootElementSelector&&(s=void 0!==o.closest?o.closest(this.rootElementSelector):null===(e=o.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(s||o)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,m.fI)(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const o=this._dir,s=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof s&&s?s:(0,m.su)(s),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,R.q)(1)).subscribe(()=>{var o;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(s.classList.contains("cdk-drag")){e.withParent((null===(o=i._dragInstances.find(r=>r.element.nativeElement===s))||void 0===o?void 0:o._dragRef)||null);break}s=s.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(o=>{this.ended.emit({source:this,distance:o.distance,dropPoint:o.dropPoint}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(o=>{this.entered.emit({container:o.container.data,item:this,currentIndex:o.currentIndex})}),e.exited.subscribe(o=>{this.exited.emit({container:o.container.data,item:this})}),e.dropped.subscribe(o=>{this.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:this,distance:o.distance,dropPoint:o.dropPoint})})}_assignDefaults(e){const{lockAxis:o,dragStartDelay:s,constrainPosition:r,previewClass:a,boundaryElement:c,draggingDisabled:d,rootElementSelector:h,previewContainer:g}=e;this.disabled=null!=d&&d,this.dragStartDelay=s||0,o&&(this.lockAxis=o),r&&(this.constrainPosition=r),a&&(this.previewClass=a),c&&(this.boundaryElement=c),h&&(this.rootElementSelector=h),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.changes.pipe((0,M.O)(this._handles),(0,de.b)(e=>{const o=e.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&o.push(this.element),this._dragRef.withHandles(o)}),(0,he.w)(e=>(0,wt.T)(...e.map(o=>o._stateChanges.pipe((0,M.O)(o))))),(0,N.R)(this._destroyed)).subscribe(e=>{const o=this._dragRef,s=e.element.nativeElement;e.disabled?o.disableHandle(s):o.enableHandle(s)})}}return i._dragInstances=[],i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(De,12),t.Y36(p.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(be,8),t.Y36(X.Is,8),t.Y36(Ht),t.Y36(t.sBO),t.Y36(rt,10),t.Y36(st,12))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdkDrag",""]],contentQueries:function(e,o,s){if(1&e&&(t.Suo(s,we,5),t.Suo(s,ye,5),t.Suo(s,rt,5)),2&e){let r;t.iGM(r=t.CRH())&&(o._previewTemplate=r.first),t.iGM(r=t.CRH())&&(o._placeholderTemplate=r.first),t.iGM(r=t.CRH())&&(o._handles=r)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[t._Bn([{provide:st,useExisting:i}]),t.TTD]}),i})(),Te=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Ht],imports:[Pt.ZD]}),i})();var Ie=l(2051);const Oe=["imgRef"];function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){return t.CHM(e).$implicit.onClick()}),t._UZ(1,"span",10),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.ekj("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===e.type),t.xp6(1),t.Q6J("nzType",e.icon)}}function Re(i,n){if(1&i&&t._UZ(0,"img",12,13),2&i){const e=t.oxw().$implicit,o=t.oxw();t.Udp("width",e.width)("height",e.height)("transform",o.previewImageTransform),t.uIk("src",e.src,t.LSH)("srcset",e.srcset,t.LSH)("alt",e.alt)}}function Me(i,n){if(1&i&&(t.ynx(0),t.YNc(1,Re,2,9,"img",11),t.BQk()),2&i){const e=n.index,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.index===e)}}function Ae(i,n){if(1&i){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",14),t.NdJ("click",function(s){return t.CHM(e),t.oxw().onSwitchLeft(s)}),t._UZ(2,"span",15),t.qZA(),t.TgZ(3,"div",16),t.NdJ("click",function(s){return t.CHM(e),t.oxw().onSwitchRight(s)}),t._UZ(4,"span",17),t.qZA(),t.BQk()}if(2&i){const e=t.oxw();t.xp6(1),t.ekj("ant-image-preview-switch-left-disabled",e.index<=0),t.xp6(2),t.ekj("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}class at{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}class Ze{constructor(n,e,o){this.previewInstance=n,this.config=e,this.overlayRef=o,this.destroy$=new u.xQ,o.keydownEvents().pipe((0,vt.h)(s=>this.config.nzKeyboard&&s.keyCode===Dt.hY&&!(0,Dt.Vb)(s))).subscribe(s=>{s.preventDefault(),this.close()}),o.detachments().subscribe(()=>{this.overlayRef.dispose()}),n.containerClick.pipe((0,R.q)(1),(0,N.R)(this.destroy$)).subscribe(()=>{this.close()}),n.closeClick.pipe((0,R.q)(1),(0,N.R)(this.destroy$)).subscribe(()=>{this.close()}),n.animationStateChanged.pipe((0,vt.h)(s=>"done"===s.phaseName&&"leave"===s.toState),(0,R.q)(1)).subscribe(()=>{this.dispose()})}switchTo(n){this.previewInstance.switchTo(n)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.previewInstance.startLeaveAnimation()}dispose(){this.destroy$.next(),this.overlayRef.dispose()}}function Bt(i,n,e){const o=i+n,s=(n-e)/2;let r=null;return n>e?(i>0&&(r=s),i<0&&oe)&&(r=i<0?s:-s),r}const W={x:0,y:0};let Ue=(()=>{class i{constructor(e,o,s,r){var a,c;this.cdr=e,this.nzConfigService=o,this.config=s,this.overlayRef=r,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationState="enter",this.animationStateChanged=new t.vpe,this.previewImageTransform="",this.previewImageWrapperTransform="",this.operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"}],this.zoomOutDisabled=!1,this.position=Object.assign({},W),this.containerClick=new t.vpe,this.closeClick=new t.vpe,this.destroy$=new u.xQ,this.zoom=null!==(a=this.config.nzZoom)&&void 0!==a?a:1,this.rotate=null!==(c=this.config.nzRotate)&&void 0!==c?c:0,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}get animationDisabled(){var e;return null!==(e=this.config.nzNoAnimation)&&void 0!==e&&e}get maskClosable(){var e,o;const s=this.nzConfigService.getConfigForComponent("image")||{};return null===(o=null!==(e=this.config.nzMaskClosable)&&void 0!==e?e:s.nzMaskClosable)||void 0===o||o}setImages(e){this.images=e,this.cdr.markForCheck()}switchTo(e){this.index=e,this.cdr.markForCheck()}next(){this.index0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.cdr.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.closeClick.emit()}onZoomIn(){this.zoom+=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position=Object.assign({},W)}onZoomOut(){this.zoom>1&&(this.zoom-=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position=Object.assign({},W))}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onContainerClick(e){e.target===e.currentTarget&&this.maskClosable&&this.containerClick.emit()}onAnimationStart(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}onAnimationDone(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}startLeaveAnimation(){this.animationState="leave",this.cdr.markForCheck()}onDragStarted(){this.isDragging=!0}onDragReleased(){this.isDragging=!1;const e=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:s,top:r}=function Ne(i){const n=i.getBoundingClientRect(),e=document.documentElement;return{left:n.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:a,height:c}=function Fe(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),d=this.rotate%180!=0,g=function Le(i){let n={};return i.width<=i.clientWidth&&i.height<=i.clientHeight&&(n={x:0,y:0}),(i.width>i.clientWidth||i.height>i.clientHeight)&&(n={x:Bt(i.left,i.width,i.clientWidth),y:Bt(i.top,i.height,i.clientHeight)}),n}({width:d?o:e,height:d?e:o,left:s,top:r,clientWidth:a,clientHeight:c});((0,Ct.DX)(g.x)||(0,Ct.DX)(g.y))&&(this.position=Object.assign(Object.assign({},this.position),g))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom}, ${this.zoom}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}setEnterAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-enter"),e.classList.add("ant-fade-enter-active"))}setLeaveAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-leave"),e.classList.add("ant-fade-leave-active"))}reset(){this.zoom=1,this.rotate=0,this.position=Object.assign({},W)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.sBO),t.Y36(zt.jY),t.Y36(at),t.Y36(F.Iu))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-image-preview"]],viewQuery:function(e,o){if(1&e&&t.Gf(Oe,5),2&e){let s;t.iGM(s=t.CRH())&&(o.imageRef=s.first)}},hostAttrs:["tabindex","-1","role","document",1,"ant-image-preview-wrap"],hostVars:6,hostBindings:function(e,o){1&e&&(t.WFA("@fadeMotion.start",function(r){return o.onAnimationStart(r)})("@fadeMotion.done",function(r){return o.onAnimationDone(r)}),t.NdJ("click",function(r){return o.onContainerClick(r)})),2&e&&(t.d8E("@.disabled",o.config.nzNoAnimation)("@fadeMotion",o.animationState),t.Udp("z-index",o.config.nzZIndex),t.ekj("ant-image-preview-moving",o.isDragging))},exportAs:["nzImagePreview"],decls:10,vars:6,consts:[[1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],[1,"ant-image-preview-operations"],["class","ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled","click",4,"ngFor","ngForOf"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragFreeDragPosition","mousedown","cdkDragReleased"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType"],["cdkDragHandle","","class","ant-image-preview-img",3,"width","height","transform",4,"ngIf"],["cdkDragHandle","",1,"ant-image-preview-img"],["imgRef",""],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"ul",4),t.YNc(5,Ee,2,3,"li",5),t.qZA(),t.TgZ(6,"div",6),t.NdJ("mousedown",function(){return o.onDragStarted()})("cdkDragReleased",function(){return o.onDragReleased()}),t.YNc(7,Me,2,1,"ng-container",7),t.qZA(),t.YNc(8,Ae,5,4,"ng-container",8),t.qZA(),t.qZA(),t._UZ(9,"div",1),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngForOf",o.operations),t.xp6(1),t.Udp("transform",o.previewImageWrapperTransform),t.Q6J("cdkDragFreeDragPosition",o.position),t.xp6(1),t.Q6J("ngForOf",o.images),t.xp6(1),t.Q6J("ngIf",o.images.length>1))},directives:[p.sg,x.Ls,Se,p.O5,xe],encapsulation:2,data:{animation:[se.MC]},changeDetection:0}),i})(),Qe=(()=>{class i{constructor(e,o,s,r){this.overlay=e,this.injector=o,this.nzConfigService=s,this.directionality=r}preview(e,o){return this.display(e,o)}display(e,o){const s=Object.assign(Object.assign({},new at),null!=o?o:{}),r=this.createOverlay(s),a=this.attachPreviewComponent(r,s);a.setImages(e);const c=new Ze(a,s,r);return a.previewRef=c,c}attachPreviewComponent(e,o){const s=t.zs3.create({parent:this.injector,providers:[{provide:F.Iu,useValue:e},{provide:at,useValue:o}]}),r=new bt.C5(Ue,null,s);return e.attach(r).instance}createOverlay(e){var o,s;const r=this.nzConfigService.getConfigForComponent("image")||{},a=new F.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:null===(s=null!==(o=e.nzCloseOnNavigation)&&void 0!==o?o:r.nzCloseOnNavigation)||void 0===s||s,backdropClass:"ant-image-preview-mask",direction:e.nzDirection||r.nzDirection||this.directionality.value});return this.overlay.create(a)}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(F.aV),t.LFG(t.zs3),t.LFG(zt.jY),t.LFG(X.Is,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac}),i})(),Je=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Qe],imports:[[X.vT,F.U8,bt.eL,Te,p.ez,x.PV,Ie.YS]]}),i})();var k=l(1945),Ge=l(8762),v=l(1894),_=l(8144),z=l(325),ct=l(3630),$t=l(5249),I=l(7484),He=l(3762),lt=l(6699),O=l(3098),q=l(5737),jt=l(9444),Ye=l(6286),Be=l(3384),$e=l(8018),je=l(3580),Ve=l(5453);let We=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,lt.Rt]]}),i})();var S=l(3618),dt=l(9476),qe=l(5013),Ke=l(897),Vt=l(6114),ht=l(4182);let Wt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,ht.u5,I.vh,v.Jb,_.zf,S.ZJ,$t.A2,O.q6,q.S,Vt.Wr,ct.X,Ve.N,je.Q,$e.e,Be.h,Ye.y,We,jt.s,dt.L,qe.C,Ke.$]]}),i})(),Xe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,z.Bz,D.WG,k.KJ,v.Jb,x.PV,_.zf,Je,I.vh,$t.A2,He.Ph,lt.Rt,O.q6,q.S,ct.X,Ge.c,_t.D,Wt]]}),i})();var ti=l(4292);let ei=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,ti.t]]}),i})();var ii=l(767);let ni=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,ii.Q]]}),i})(),oi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,D.WG,_.zf,v.Jb,Wt]]}),i})();var T=l(1132),si=l(4125),ri=l(7946),qt=l(8625),Z=l(6042);let ai=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,D.WG,x.PV,T.HQ,Z.sL,I.vh,x.PV,S.ZJ,si.k,dt.L,ri.x,qt.$L]]}),i})(),ci=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,k.KJ,x.PV,v.Jb,Z.sL,_.zf,S.ZJ,_t.D,ai]]}),i})();var li=l(5473),di=l(7345);let hi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,I.vh,O.q6,S.ZJ,x.PV,_.zf,v.Jb,q.S,li.H,ct.X,jt.s,dt.L,di.W]]}),i})(),gi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,D.WG,v.Jb,_.zf,Z.sL,hi]]}),i})();var pi=l(3756);let ui=(()=>{class i{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},directives:[pi.x],styles:["[_nghost-%COMP%]{display:block}"]}),i})();var y=l(373),P=l(712),gt=l(9350),Kt=l(8992);function mi(i,n){if(1&i&&t._UZ(0,"nz-avatar",2),2&i){const e=t.oxw();t.Q6J("nzSrc",e.organization.profileImagePath)("nzSize",e.size)}}function fi(i,n){if(1&i&&t._UZ(0,"nz-avatar",3),2&i){const e=t.oxw();t.Q6J("nzText",e.organization.name)("nzSize",e.size)}}let _i=(()=>{class i{ngOnInit(){if(void 0===this.organization)throw new Error("Must supply an organization to use this component");void 0===this.size&&(this.size="default")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organization-avatar"]],inputs:{organization:"organization",size:"size"},decls:3,vars:2,consts:[["nz-comment-avatar","",3,"nzSrc","nzSize",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc","nzSize"],["nz-comment-avatar","",3,"nzText","nzSize"]],template:function(e,o){if(1&e&&(t.YNc(0,mi,1,2,"nz-avatar",0),t.YNc(1,fi,1,2,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",o.organization.profileImagePath)("ngIfElse",s)}},directives:[p.O5,lt.Dz],styles:["[_nghost-%COMP%]{display:inline-block}"]}),i})();var vi=l(6550),zi=l(6715),pt=l(5749),Ci=l(7893);function bi(i,n){}function Di(i,n){if(1&i&&(t.TgZ(0,"nz-card",3),t.YNc(1,bi,0,0,"ng-template",4),t.qZA()),2&i){const e=t.oxw(),o=t.MAs(4);t.Q6J("nzTitle",e.organization.name),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function xi(i,n){}function yi(i,n){if(1&i&&t.YNc(0,xi,0,0,"ng-template",4),2&i){t.oxw();const e=t.MAs(4);t.Q6J("ngTemplateOutlet",e)}}function wi(i,n){if(1&i&&(t.TgZ(0,"cvc-link-tag",20),t._uU(1," View Organization Website "),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("href",e.organization.url)}}function Pi(i,n){if(1&i&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",22),t.BQk()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("org",e)}}function Si(i,n){if(1&i&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,Pi,2,1,"ng-container",21),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.organization.subGroups)}}function Ti(i,n){1&i&&(t.ynx(0),t.TgZ(1,"span",23),t.TgZ(2,"i"),t._uU(3,"No child organizations specified."),t.qZA(),t.qZA(),t.BQk())}function Ii(i,n){if(1&i){const e=t.EpF();t.ynx(0),t.TgZ(1,"label",24),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw(3).includeSubStats=s}),t._uU(2," Include sub-orgs "),t.qZA(),t.BQk()}if(2&i){const e=t.oxw(3);t.xp6(1),t.Q6J("ngModel",e.includeSubStats)}}function Oi(i,n){if(1&i&&t.YNc(0,Ii,3,1,"ng-container",16),2&i){const e=t.oxw(2);t.Q6J("ngIf",e.organization.subGroups.length>0)}}function Ei(i,n){if(1&i&&(t.TgZ(0,"nz-row",5),t.TgZ(1,"nz-col",6),t.TgZ(2,"div",7),t._UZ(3,"cvc-organization-avatar",8),t.qZA(),t.TgZ(4,"div",9),t.TgZ(5,"span",10),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"nz-col",6),t.TgZ(9,"nz-card",11),t.YNc(10,wi,2,1,"ng-template",null,12,t.W1O),t.TgZ(12,"nz-descriptions",13),t.TgZ(13,"nz-descriptions-item",14),t._uU(14),t.qZA(),t.TgZ(15,"nz-descriptions-item",15),t.YNc(16,Si,2,1,"cvc-tag-list",16),t.YNc(17,Ti,4,0,"ng-container",16),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"nz-col",6),t.TgZ(19,"nz-card",17),t._UZ(20,"cvc-stats-card",18),t.qZA(),t.YNc(21,Oi,1,1,"ng-template",null,19,t.W1O),t.qZA(),t.qZA()),2&i){const e=t.MAs(11),o=t.MAs(22),s=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",3),t.xp6(2),t.Q6J("organization",s.organization)("size",128),t.xp6(4),t.Oqu(s.organization.name),t.xp6(1),t.Q6J("nzSpan",13),t.xp6(1),t.Q6J("nzExtra",e),t.xp6(3),t.Q6J("nzColumn",1),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",s.organization.description," "),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("ngIf",s.organization.subGroups.length>0),t.xp6(1),t.Q6J("ngIf",0===s.organization.subGroups.length),t.xp6(1),t.Q6J("nzSpan",8),t.xp6(1),t.Q6J("nzExtra",o),t.xp6(1),t.Q6J("stats",s.includeSubStats?s.organization.orgAndSuborgsStatsHash:s.organization.orgStatsHash)}}let Xt=(()=>{class i{constructor(){this.inCard=!0,this.includeSubStats=!0}ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organization-card"]],inputs:{organization:"organization",inCard:"inCard"},decls:5,vars:2,consts:[[3,"nzTitle",4,"ngIf","ngIfElse"],["noCard",""],["content",""],[3,"nzTitle"],[3,"ngTemplateOutlet"],[3,"nzGutter"],[3,"nzSpan"],[1,"org-avatar"],[3,"organization","size"],[1,"org-name"],["nz-typography",""],["nzTitle","Profile","nzSize","small",1,"organization-profile",3,"nzExtra"],["orgLink",""],["nzBordered","","nzLayout","vertical","nzSize","small",3,"nzColumn"],["nzTitle","Description",3,"nzSpan"],["nzTitle","Child Organizations",3,"nzSpan"],[4,"ngIf"],["nzSize","small","nzTitle","Curation Stats",3,"nzExtra"],["header","User Statistics",3,"stats"],["subGroupToggle",""],[3,"href"],[4,"ngFor","ngForOf"],[3,"org"],["nz-typography","","nzType","secondary"],["nz-checkbox","",1,"stats-toggle",3,"ngModel","ngModelChange"]],template:function(e,o){if(1&e&&(t.YNc(0,Di,2,2,"nz-card",0),t.YNc(1,yi,1,1,"ng-template",null,1,t.W1O),t.YNc(3,Ei,23,16,"ng-template",null,2,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",o.inCard)("ngIfElse",s)}},directives:[p.O5,I.bd,p.tP,v.SK,v.t3,_i,S.ZU,vi.l,O.R7,O.uj,zi.$,p.sg,pt.m,Ci.z,Vt.Ie,ht.JJ,ht.On],styles:["[_nghost-%COMP%] .organization-profile .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] .stats-toggle span{padding-right:0}.org-avatar[_ngcontent-%COMP%], .org-name[_ngcontent-%COMP%]{text-align:center}.org-name[_ngcontent-%COMP%]{font-size:120%}"]}),i})();var Ri=l(2233);function Mi(i,n){if(1&i&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-content"),t.TgZ(4,"div",3),t._UZ(5,"cvc-organization-card",4),t.qZA(),t._UZ(6,"cvc-tab-navigation",5),t.ALo(7,"ngrxPush"),t.TgZ(8,"div",6),t._UZ(9,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const e=n.ngIf,o=t.oxw();t.xp6(1),t.Q6J("displayName",e.name),t.xp6(4),t.Q6J("organization",e)("inCard",!1),t.xp6(1),t.Q6J("tabs",t.lcZ(7,4,o.tabs$))}}let Ai=(()=>{class i{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.queryRef=this.gql.watch({organizationId:+this.route.snapshot.params.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,y.j)("loading"),(0,M.O)(!0)),this.organization$=a.pipe((0,y.j)("data","organization")),this.viewer$=this.viewerService.viewer$,this.tabs$=this.organization$.pipe((0,Y.U)(c=>{const d=[{routeName:"members",tabLabel:"Members",iconName:"pic-right"},{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"}];return c&&c.subGroups.length>0&&d.splice(1,0,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}),d}))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(P.WOS),t.Y36(gt.a),t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["organizations-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],[1,"detail-content"],[3,"organization","inCard"],[3,"tabs"],[1,"content"]],template:function(e,o){1&e&&(t.YNc(0,Mi,10,6,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organization$))},directives:[p.O5,Kt.I,k.$O,k.u5,Xt,Ri.P,z.lC],pipes:[D.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}.detail-content[_ngcontent-%COMP%]{margin-top:8px}.content[_ngcontent-%COMP%]{margin-bottom:8px}"]}),i})();var ki=l(2011);let Zi=(()=>{class i{constructor(e){this.route=e,this.mode=P.wJ2.Organization,this.organizationId=+this.route.snapshot.params.organizationId}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[["tagDisplay","hideOrg",3,"organizationId","mode"]],template:function(e,o){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("organizationId",o.organizationId)("mode",o.mode)},directives:[ki.o],styles:["[_nghost-%COMP%]{display:block}"]}),i})();var Li=l(8965);let Ni=(()=>{class i{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},directives:[Li.a],styles:["[_nghost-%COMP%]{display:block}"]}),i})();function Fi(i,n){if(1&i&&t._UZ(0,"cvc-organization-card",4),2&i){const e=t.oxw().$implicit;t.Q6J("organization",e)}}function Ui(i,n){1&i&&(t.TgZ(0,"nz-space",2),t.YNc(1,Fi,1,1,"cvc-organization-card",3),t.qZA())}function Qi(i,n){if(1&i&&(t.ynx(0),t.YNc(1,Ui,2,0,"nz-space",1),t.BQk()),2&i){const e=n.ngIf;t.xp6(1),t.Q6J("ngForOf",e)}}let Ji=(()=>{class i{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.queryRef=this.gql.watch({organizationId:+this.route.snapshot.params.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,y.j)("loading"),(0,M.O)(!0)),this.organizations$=a.pipe((0,y.j)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(P.Lr0),t.Y36(gt.a),t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-groups"]],decls:2,vars:3,consts:[[4,"ngIf"],["nzDirection","vertical",4,"ngFor","ngForOf"],["nzDirection","vertical"],[3,"organization",4,"nzSpaceItem"],[3,"organization"]],template:function(e,o){1&e&&(t.YNc(0,Qi,2,1,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organizations$))},directives:[p.O5,p.sg,_.NU,_.$1,Xt],pipes:[D.fM],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]}),i})();var ut=l(2683),Gi=l(3154),Hi=l(13),Yi=l(2166),Bi=l(392),te=l(2643);function $i(i,n){if(1&i&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._UZ(2,"cvc-organization-tag",9),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._UZ(6,"cvc-tag-overflow",10),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.ALo(11,"timeago"),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(2),t.Q6J("org",e),t.xp6(2),t.hij(" ",e.memberCount," "),t.xp6(2),t.Q6J("maxDisplayCount",3)("tags",e.subGroups),t.xp6(2),t.hij(" ",e.eventCount," "),t.xp6(2),t.hij(" ",t.lcZ(11,6,null==e.mostRecentEvent?null:e.mostRecentEvent.createdAt)," ")}}function ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).ngrxLet;return t.oxw().loadMore(s.endCursor)}),t._uU(1),t.qZA()}if(2&i){const e=t.oxw(3);t.xp6(1),t.hij("Load ",e.fetchMorePageSize," More")}}function Vi(i,n){if(1&i&&(t.TgZ(0,"tr"),t.TgZ(1,"td",12),t.YNc(2,ji,2,1,"button",13),t.qZA(),t.qZA()),2&i){const e=t.oxw().ngrxLet;t.xp6(2),t.Q6J("ngIf",e.hasNextPage)}}function Wi(i,n){if(1&i&&(t.ynx(0),t.YNc(1,Vi,3,1,"tr",11),t.BQk()),2&i){const e=n.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function qi(i,n){}function Ki(i,n){if(1&i&&(t.ynx(0),t.YNc(1,qi,0,0,"ng-template",18),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function Xi(i,n){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function tn(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().ngIf;t.xp6(1),t.hij(" of ",e," filtered")}}function en(i,n){if(1&i&&(t.TgZ(0,"span",19),t._uU(1),t.YNc(2,tn,2,1,"span",11),t._uU(3,") "),t.qZA()),2&i){const e=n.ngIf,o=t.oxw(2);t.xp6(1),t.AsE(" (",o.totalCount," total, showing ",o.visibleCount,""),t.xp6(1),t.Q6J("ngIf",o.totalCount&&e{class i{constructor(e){this.gql=e,this.initialPageSize=25,this.debouncedQuery=new u.xQ,this.tableView=!0,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.sortColumns=P.xlL,this.fetchMorePageSize=25}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,cardView:!this.tableView});let e=this.queryRef.valueChanges;this.isLoading$=e.pipe((0,y.j)("loading"),(0,M.O)(!0)),this.organizations$=e.pipe((0,y.j)("data","organizations","edges"),(0,Y.U)(o=>o.map(s=>s.node))),this.filteredCount$=e.pipe((0,y.j)("data","organizations","totalCount")),this.filteredCount$.pipe((0,R.q)(1)).subscribe(o=>this.totalCount=o),this.filteredCount$.subscribe(o=>{oo&&(this.visibleCount=o))}),this.pageInfo$=e.pipe((0,y.j)("data","organizations","pageInfo")),this.debouncedQuery.pipe((0,Hi.b)(500)).subscribe(o=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){this.loadedPages=1,this.queryRef.refetch({orgName:this.orgNameInput,id:this.idInput?+this.idInput:void 0,cardView:!this.tableView})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(e){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,Gi._)(e),cardView:!this.tableView})}loadMore(e){var o;null===(o=this.queryRef)||void 0===o||o.fetchMore({variables:{first:this.fetchMorePageSize,after:e}}),this.loadedPages+=1}ngOnDestroy(){this.debouncedQuery.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(P.io))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:29,vars:15,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["organizationsTable",""],[3,"nzSortOrderChange"],["nzWidth","25%",3,"nzColumnKey","nzSortFn"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"org"],["tagType","organization",3,"maxDisplayCount","tags"],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:organization"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.TgZ(5,"thead",3),t.NdJ("nzSortOrderChange",function(r){return o.onSortChanged(r)}),t.TgZ(6,"tr"),t.TgZ(7,"th",4),t._uU(8," Name "),t.qZA(),t.TgZ(9,"th"),t._uU(10," Members "),t.qZA(),t.TgZ(11,"th"),t._uU(12," Sub Organizations "),t.qZA(),t.TgZ(13,"th"),t._uU(14," Actions "),t.qZA(),t.TgZ(15,"th"),t._uU(16," Last Action "),t.qZA(),t.qZA(),t.TgZ(17,"tr"),t.TgZ(18,"th"),t.TgZ(19,"cvc-clearable-input-filter",5),t.NdJ("inputModelChange",function(r){return o.orgNameInput=r}),t.qZA(),t.qZA(),t._UZ(20,"th"),t._UZ(21,"th"),t._UZ(22,"th"),t._UZ(23,"th"),t.qZA(),t.qZA(),t.TgZ(24,"tbody"),t.YNc(25,$i,12,8,"tr",6),t.YNc(26,Wi,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.YNc(27,on,7,6,"ng-template",null,8,t.W1O)),2&e){const s=t.MAs(2),r=t.MAs(28);t.Q6J("nzTitle",r),t.xp6(1),t.Q6J("nzData",t.lcZ(3,11,o.organizations$))("nzLoading",t.lcZ(4,13,o.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(6),t.Q6J("nzColumnKey",o.sortColumns.Name)("nzSortFn",!0),t.xp6(12),t.Q6J("inputModel",o.orgNameInput)("onInputChanged",o.textInputCallback),t.xp6(6),t.Q6J("ngForOf",s.data),t.xp6(1),t.Q6J("ngrxLet",o.pageInfo$)}},directives:[I.bd,T.N8,T.Om,T.$Z,T.Uo,T._C,T.qD,Yi.p,T.p0,p.sg,pt.m,Bi.T,D.eJ,p.O5,Z.ix,te.dQ,ut.w,x.Ls,p.tP,S.ZU],pipes:[D.fM,qt.wr],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),i})();function rn(i,n){1&i&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t._uU(2," View Organization Docs "),t.qZA())}let an=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["organizations-home"]],decls:18,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:organization"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse Organizations"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,o){1&e&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0),t.TgZ(2,"nz-page-header-content"),t.TgZ(3,"nz-row",1),t.TgZ(4,"nz-col",2),t._UZ(5,"i",3),t.qZA(),t.TgZ(6,"nz-col",4),t.TgZ(7,"h2"),t._uU(8,"Organizations"),t.qZA(),t.TgZ(9,"p",5),t._uU(10,"Users may be included in Organizations, primarily in order to keep track of an organization\u2019s contributions to CIViC curation. A User\u2019s organization affiliation is displayed in their profile and user card."),t.qZA(),t.qZA(),t.TgZ(11,"nz-col",6),t.TgZ(12,"nz-space",7),t.YNc(13,rn,3,0,"a",8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",9),t.TgZ(15,"div",10),t.TgZ(16,"div",11),t._UZ(17,"cvc-organizations-table",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(6),t.Q6J("nzSpan",24))},directives:[Kt.I,k.$O,k.u5,v.SK,v.t3,x.Ls,ut.w,S.ZU,_.NU,_.$1,Z.ix,sn],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})();var cn=l(7881),ln=l(125),dn=l(1243);function hn(i,n){if(1&i&&t._UZ(0,"cvc-user-avatar",8),2&i){const e=t.oxw(2);t.Q6J("user",e.user)("size",32)}}function gn(i,n){if(1&i&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t.qZA()),2&i){const e=t.oxw(4);t.MGl("href","http://twitter.com/",e.user.twitterHandle,"",t.LSH)}}function pn(i,n){1&i&&(t.ynx(0),t.YNc(1,gn,2,1,"a",12),t.BQk())}function un(i,n){if(1&i&&(t.TgZ(0,"a",13),t._UZ(1,"i",15),t.qZA()),2&i){const e=t.oxw(4);t.MGl("href","http://facebook.com/",e.user.facebookProfile,"",t.LSH)}}function mn(i,n){1&i&&(t.ynx(0),t.YNc(1,un,2,1,"a",12),t.BQk())}function fn(i,n){if(1&i&&(t.TgZ(0,"a",13),t._UZ(1,"i",16),t.qZA()),2&i){const e=t.oxw(4);t.MGl("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.LSH)}}function _n(i,n){1&i&&(t.ynx(0),t.YNc(1,fn,2,1,"a",12),t.BQk())}function vn(i,n){if(1&i&&(t.TgZ(0,"a",13),t.TgZ(1,"span"),t._uU(2,"ID"),t.qZA(),t.qZA()),2&i){const e=t.oxw(4);t.MGl("href","https://orcid.org/",e.user.orcid,"",t.LSH)}}function zn(i,n){1&i&&(t.ynx(0),t.YNc(1,vn,3,1,"a",12),t.BQk())}function Cn(i,n){1&i&&t._UZ(0,"nz-divider",17)}function bn(i,n){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-space",9),t.YNc(2,pn,2,0,"ng-container",10),t.YNc(3,mn,2,0,"ng-container",10),t.YNc(4,_n,2,0,"ng-container",10),t.YNc(5,zn,2,0,"ng-container",10),t.qZA(),t.YNc(6,Cn,1,0,"ng-template",null,11,t.W1O),t.BQk()),2&i){const e=t.MAs(7),o=t.oxw(2);t.xp6(1),t.Q6J("nzSplit",e),t.xp6(1),t.Q6J("ngIf",o.user.twitterHandle),t.xp6(1),t.Q6J("ngIf",o.user.facebookProfile),t.xp6(1),t.Q6J("ngIf",o.user.linkedinProfile),t.xp6(1),t.Q6J("ngIf",o.user.orcid)}}function Dn(i,n){1&i&&(t.ynx(0),t.TgZ(1,"nz-space",6),t.YNc(2,hn,1,2,"cvc-user-avatar",7),t.YNc(3,bn,8,5,"ng-container",2),t.qZA(),t.BQk())}function xn(i,n){if(1&i&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user.areaOfExpertise)," ")}}function yn(i,n){if(1&i&&t._UZ(0,"cvc-organization-tag",25),2&i){const e=t.oxw().$implicit;t.Q6J("org",e)}}function wn(i,n){1&i&&(t.ynx(0),t.YNc(1,yn,1,1,"cvc-organization-tag",24),t.BQk())}function Pn(i,n){if(1&i&&(t.TgZ(0,"nz-descriptions",18),t.TgZ(1,"nz-descriptions-item",19),t.YNc(2,xn,3,3,"ng-container",20),t.qZA(),t.TgZ(3,"nz-descriptions-item",21),t.TgZ(4,"nz-space",22),t.YNc(5,wn,2,0,"ng-container",23),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(),o=t.MAs(5);t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",e.user.areaOfExpertise)("ngIfElse",o),t.xp6(2),t.Q6J("nzSize",1),t.xp6(1),t.Q6J("ngForOf",e.user.organizations)}}function Sn(i,n){1&i&&(t.TgZ(0,"span",26),t._uU(1,"Not provided"),t.qZA())}function Tn(i,n){if(1&i&&t._UZ(0,"cvc-user-tag",27),2&i){const e=t.oxw();t.Q6J("user",e.user)("enablePopover",!1)}}let In=(()=>{class i{ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case P.i44.Admin:this.icon="civic-admin";break;case P.i44.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-user-card"]],inputs:{user:"user"},decls:8,vars:1,consts:[[2,"height","100%",3,"nzTitle"],["nzDirection","vertical",2,"width","100%"],[4,"nzSpaceItem"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],["notProvided",""],["titleTemplate",""],["nzSize","large"],[3,"user","size",4,"nzSpaceItem"],[3,"user","size"],["nzAlign","center",3,"nzSplit"],[4,"ngIf"],["spaceSplit",""],["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"],["nzType","vertical"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Expertise"],[4,"ngIf","ngIfElse"],["nzTitle","Organization"],["nzDirection","vertical",3,"nzSize"],[4,"ngFor","ngForOf"],[3,"org",4,"nzSpaceItem"],[3,"org"],["nz-typography","","nzType","secondary"],[2,"font-weight","normal",3,"user","enablePopover"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-space",1),t.YNc(2,Dn,4,0,"ng-container",2),t.YNc(3,Pn,6,5,"nz-descriptions",3),t.YNc(4,Sn,2,0,"ng-template",null,4,t.W1O),t.qZA(),t.qZA(),t.YNc(6,Tn,1,2,"ng-template",null,5,t.W1O)),2&e){const s=t.MAs(7);t.Q6J("nzTitle",s)}},directives:[I.bd,_.NU,_.$1,cn.L,p.O5,x.Ls,q.g,O.R7,O.uj,p.sg,pt.m,S.ZU,ln.I],pipes:[dn.I],styles:[""]}),i})();function On(i,n){if(1&i&&(t.TgZ(0,"div",6),t._UZ(1,"cvc-user-card",7),t.qZA()),2&i){const e=n.$implicit;t.Q6J("nzSpan",6),t.xp6(1),t.Q6J("user",e)}}const En=function(){return[16,16]};function Rn(i,n){if(1&i&&(t.TgZ(0,"div",4),t.YNc(1,On,2,2,"div",5),t.qZA()),2&i){const e=t.oxw().ngIf;t.Q6J("nzGutter",t.DdM(2,En)),t.xp6(1),t.Q6J("ngForOf",e)}}function Mn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).ngrxLet;return t.oxw(3).loadMore(s.endCursor)}),t._uU(1),t.qZA()}if(2&i){const e=t.oxw(5);t.xp6(1),t.hij("Load ",e.initialPageSize," More")}}function An(i,n){if(1&i&&(t.ynx(0),t.YNc(1,Mn,2,1,"button",10),t.BQk()),2&i){const e=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function kn(i,n){if(1&i&&(t.ynx(0),t.YNc(1,An,2,1,"ng-container",9),t.BQk()),2&i){const e=n.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function Zn(i,n){if(1&i&&(t.ynx(0),t.YNc(1,kn,2,1,"ng-container",8),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngrxLet",e.pageInfo$)}}function Ln(i,n){1&i&&(t.TgZ(0,"nz-space",1),t.YNc(1,Rn,2,3,"div",2),t.YNc(2,Zn,2,1,"ng-container",3),t.qZA())}let Nn=(()=>{class i{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.initialPageSize=20,this.queryRef=this.gql.watch({organizationId:+this.route.snapshot.params.organizationId,first:this.initialPageSize});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,y.j)("loading"),(0,M.O)(!0)),this.members$=a.pipe((0,y.j)("data","users","edges"),(0,Y.U)(c=>c.map(d=>d.node))),this.pageInfo$=a.pipe((0,y.j)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$}loadMore(e){this.queryRef.fetchMore({variables:{after:e}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(P.Del),t.Y36(gt.a),t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-members"]],decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["nz-row","",3,"nzGutter",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan"],[3,"user"],[4,"ngrxLet"],[4,"ngIf"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,Ln,3,0,"nz-space",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.members$))},directives:[p.O5,_.NU,_.$1,v.SK,p.sg,v.t3,In,D.eJ,Z.ix,te.dQ,ut.w],pipes:[D.fM],styles:[""]}),i})();var Fn=l(9814);const Un=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-organizations"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},directives:[z.lC],styles:[""]}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:an},{path:":organizationId",component:Ai,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Nn,data:{breadcrumb:"Members"}},{path:"groups",component:Ji,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:Ni,data:{breadcrumb:"Evidence"}},{path:"assertions",component:ui,data:{breadcrumb:"Assertions"}},{path:"activity",component:Zi,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class i{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(e,o){1&e&&t._UZ(0,"cvc-source-suggestions-table",0)},directives:[Fn.O],styles:["[_nghost-%COMP%]{display:block}"]}),i})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let Qn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[z.Bz.forChild(Un)],z.Bz]}),i})();var Jn=l(2832);let Gn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,Jn.W]]}),i})(),Hn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,D.WG,Qn,ci,ni,oe,Xe,ei,oi,gi,Gn]]}),i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3073],{3073:(Bn,ft,l)=>{l.r(ft),l.d(ft,{OrganizationsModule:()=>Hn});var p=l(9808),D=l(6949),ne=l(9441),x=l(647),t=l(5e3);let oe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,ne.s,x.PV]]}),i})();var _t=l(5630),u=l(8929),vt=l(2198),R=l(2986),N=l(7625),zt=l(9439),Ct=l(1721),F=l(2845),bt=l(7429),Dt=l(1159),se=l(8076),w=l(925),m=l(3191),xt=l(5664),U=l(2654),K=l(2916),yt=l(353),re=l(4241);function ce(i){const{subscriber:n,counter:e,period:o}=i;n.next(e),this.schedule({subscriber:n,counter:e+1,period:o},o)}var le=l(352),wt=l(6787),Y=l(4850),M=l(1059),de=l(2868),he=l(7545),Pt=l(2321),X=l(226);function tt(i,n,e){for(let o in n)if(n.hasOwnProperty(o)){const s=n[o];s?i.setProperty(o,s,(null==e?void 0:e.has(o))?"important":""):i.removeProperty(o)}return i}function A(i,n){const e=n?"":"none";tt(i.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function St(i,n,e){tt(i.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function B(i,n){return n&&"none"!=n?i+" "+n:i}function Tt(i){const n=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*n}function et(i,n){return i.getPropertyValue(n).split(",").map(o=>o.trim())}function it(i){const n=i.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function nt(i,n,e){const{top:o,bottom:s,left:r,right:a}=i;return e>=o&&e<=s&&n>=r&&n<=a}function Q(i,n,e){i.top+=n,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function It(i,n,e,o){const{top:s,right:r,bottom:a,left:c,width:d,height:h}=i,g=d*n,f=h*n;return o>s-f&&oc-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:it(e)})})}handleScroll(n){const e=(0,w.sA)(n),o=this.positions.get(e);if(!o)return null;const s=o.scrollPosition;let r,a;if(e===this._document){const h=this._viewportRuler.getViewportScrollPosition();r=h.top,a=h.left}else r=e.scrollTop,a=e.scrollLeft;const c=s.top-r,d=s.left-a;return this.positions.forEach((h,g)=>{h.clientRect&&e!==g&&e.contains(g)&&Q(h.clientRect,c,d)}),s.top=r,s.left=a,{top:c,left:d}}}function Et(i){const n=i.cloneNode(!0),e=n.querySelectorAll("[id]"),o=i.nodeName.toLowerCase();n.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const d=this._handles.find(h=>c.target&&(c.target===h||h.contains(c.target)));d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const d=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(d.x-this._pickupPositionOnPage.x)+Math.abs(d.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const H=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),E=this._dropContainer;if(!H)return void this._endDragSequence(c);(!E||!E.isDragging()&&!E.isReceiving())&&(c.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(c)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),c.preventDefault();const h=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,d);else{const g=this._activeTransform;g.x=h.x-this._pickupPositionOnPage.x+this._passiveTransform.x,g.y=h.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(g.x,g.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:h,event:c,distance:this._getDragDistance(h),delta:this._pointerDirectionDelta})})},this._pointerUp=c=>{this._endDragSequence(c)},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new Ot(o,r),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(n){const e=(0,m.Ig)(n);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(o=>A(o,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(o=>(0,m.fI)(o)),this._handles.forEach(o=>A(o,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(o=>{this._handles.indexOf(o)>-1&&e.add(o)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=(0,m.fI)(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Zt),e.addEventListener("touchstart",this._pointerDown,kt)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?(0,m.fI)(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){var n,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(n=this._rootElement)||void 0===n||n.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),A(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),A(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var n,e;null===(n=this._preview)||void 0===n||n.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var n,e;null===(n=this._placeholder)||void 0===n||n.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){J(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const o=this._rootElement,s=o.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();s.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),St(o,!1,ot),this._document.body.appendChild(s.replaceChild(r,o)),this._getPreviewInsertionPoint(s,c).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const o=this.isDragging(),s=J(e),r=!s&&0!==e.button,a=this._rootElement,c=(0,w.sA)(e),d=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=s?(0,xt.yG)(e):(0,xt.X6)(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),o||r||d||h)return;if(this._handles.length){const C=a.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(C=>this._updateOnScroll(C)),this._boundaryElement&&(this._boundaryRect=it(this._boundaryElement));const g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(n,e);const f=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:f.x,y:f.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){St(this._rootElement,!0,ot),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,o=e.getItemIndex(this),s=this._getPointerPositionOnPage(n),r=this._getDragDistance(s),a=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:r,dropPoint:s}),this.dropped.next({item:this,currentIndex:o,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:s}),e.drop(this,o,this._initialIndex,this._initialContainer,a,r,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:o,y:s}){let r=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,n,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,s),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,o=n?n.template:null;let s;if(o&&n){const r=n.matchSize?this._rootElement.getBoundingClientRect():null,a=n.viewContainer.createEmbeddedView(o,n.context);a.detectChanges(),s=Nt(a,this._document),this._previewRef=a,n.matchSize?Ft(s,r):s.style.transform=$(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const r=this._rootElement;s=Et(r),Ft(s,r.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return tt(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ot),A(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>s.classList.add(r)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function ge(i){const n=getComputedStyle(i),e=et(n,"transition-property"),o=e.find(c=>"transform"===c||"all"===c);if(!o)return 0;const s=e.indexOf(o),r=et(n,"transition-duration"),a=et(n,"transition-delay");return Tt(r[s])+Tt(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(o=>{const s=a=>{var c;(!a||(0,w.sA)(a)===this._preview&&"transform"===a.propertyName)&&(null===(c=this._preview)||void 0===c||c.removeEventListener("transitionend",s),o(),clearTimeout(r))},r=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let o;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),o=Nt(this._placeholderRef,this._document)):o=Et(this._rootElement),o.classList.add("cdk-drag-placeholder"),o}_getPointerPositionInElement(n,e){const o=this._rootElement.getBoundingClientRect(),s=n===this._rootElement?null:n,r=s?s.getBoundingClientRect():o,a=J(e)?e.targetTouches[0]:e,c=this._getViewportScrollPosition();return{x:r.left-o.left+(a.pageX-r.left-c.left),y:r.top-o.top+(a.pageY-r.top-c.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),o=J(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,s=o.pageX-e.left,r=o.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=s,c.y=r,c.matrixTransform(a.inverse())}}return{x:s,y:r}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:o,y:s}=this.constrainPosition?this.constrainPosition(n,this):n;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(o=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,c=this._boundaryRect,d=this._previewRect,h=c.top+a,g=c.bottom-(d.height-a);o=Lt(o,c.left+r,c.right-(d.width-r)),s=Lt(s,h,g)}return{x:o,y:s}}_updatePointerDirectionDelta(n){const{x:e,y:o}=n,s=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),c=Math.abs(o-r.y);return a>this._config.pointerDirectionChangeThreshold&&(s.x=e>r.x?1:-1,r.x=e),c>this._config.pointerDirectionChangeThreshold&&(s.y=o>r.y?1:-1,r.y=o),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,A(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,Zt),n.removeEventListener("touchstart",this._pointerDown,kt)}_applyRootElementTransform(n,e){const o=$(n,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=B(o,this._initialTransform)}_applyPreviewTransform(n,e){var o;const s=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,r=$(n,e);this._preview.style.transform=B(r,s)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const o=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===s.width&&0===s.height)return;const r=o.left-s.left,a=s.right-o.right,c=o.top-s.top,d=s.bottom-o.bottom;o.width>s.width?(r>0&&(n+=r),a>0&&(n-=a)):n=0,o.height>s.height?(c>0&&(e+=c),d>0&&(e-=d)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:J(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const o=(0,w.sA)(n);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&Q(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const n=this._parentPositions.positions.get(this._document);return n?n.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const o=this._previewContainer||"global";if("parent"===o)return n;if("global"===o){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,m.fI)(o)}}function $(i,n){return`translate3d(${Math.round(i)}px, ${Math.round(n)}px, 0)`}function Lt(i,n,e){return Math.max(n,Math.min(e,i))}function J(i){return"t"===i.type[0]}function Nt(i,n){const e=i.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const o=n.createElement("div");return e.forEach(s=>o.appendChild(s)),o}function Ft(i,n){i.style.width=`${n.width}px`,i.style.height=`${n.height}px`,i.style.transform=$(n.left,n.top)}function G(i,n){return Math.max(0,Math.min(n,i))}class _e{constructor(n,e,o,s,r){this._dragDropRegistry=e,this._ngZone=s,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new u.xQ,this.entered=new u.xQ,this.exited=new u.xQ,this.dropped=new u.xQ,this.sorted=new u.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=U.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new u.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function ae(i=0,n=yt.P){return(!(0,re.k)(i)||i<0)&&(i=0),(!n||"function"!=typeof n.schedule)&&(n=yt.P),new K.y(e=>(e.add(n.schedule(ce,i,{subscriber:e,counter:0,period:i})),e))}(0,le.Z).pipe((0,N.R)(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,c=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-c):2===this._verticalScrollDirection&&a.scrollBy(0,c),1===this._horizontalScrollDirection?a.scrollBy(-c,0):2===this._horizontalScrollDirection&&a.scrollBy(c,0)})},this.element=(0,m.fI)(n),this._document=o,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Ot(o,r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,o,s){let r;this._draggingStarted(),null==s?(r=this.sortingDisabled?this._draggables.indexOf(n):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(n,e,o))):r=s;const a=this._activeDraggables,c=a.indexOf(n),d=n.getPlaceholderElement();let h=a[r];if(h===n&&(h=a[r+1]),!h&&(null==r||-1===r||r-1&&a.splice(c,1),h&&!this._dragDropRegistry.isDragging(h)){const g=h.getRootElement();g.parentElement.insertBefore(d,g),a.splice(r,0,n)}else(0,m.fI)(this.element).appendChild(d),a.push(n);d.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,o,s,r,a,c){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:o,container:this,previousContainer:s,isPointerOverContainer:r,distance:a,dropPoint:c})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(o=>o._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===n.indexOf(s))?this._reset():this._cacheItems()),this}withDirection(n){return this._direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._orientation=n,this}withScrollableParents(n){const e=(0,m.fI)(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(o=>o.drag===n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,o,s){if(this.sortingDisabled||!this._clientRect||!It(this._clientRect,.05,e,o))return;const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(n,e,o,s);if(-1===a&&r.length>0)return;const c="horizontal"===this._orientation,d=r.findIndex(b=>b.drag===n),h=r[a],f=h.clientRect,C=d>a?1:-1,H=this._getItemOffsetPx(r[d].clientRect,f,C),E=this._getSiblingOffsetPx(d,r,C),L=r.slice();(function fe(i,n,e){const o=G(n,i.length-1),s=G(e,i.length-1);if(o===s)return;const r=i[o],a=s{if(L[Yn]===b)return;const ee=b.drag===n,mt=ee?H:E,ie=ee?n.getPlaceholderElement():b.drag.getRootElement();b.offset+=mt,c?(ie.style.transform=B(`translate3d(${Math.round(b.offset)}px, 0, 0)`,b.initialTransform),Q(b.clientRect,0,mt)):(ie.style.transform=B(`translate3d(0, ${Math.round(b.offset)}px, 0)`,b.initialTransform),Q(b.clientRect,mt,0))}),this._previousSwap.overlaps=nt(f,e,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=c?s.x:s.y}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let o,s=0,r=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||o||It(a.clientRect,.05,n,e)&&([s,r]=function ve(i,n,e,o){const s=Jt(n,o),r=Gt(n,e);let a=0,c=0;if(s){const d=i.scrollTop;1===s?d>0&&(a=1):i.scrollHeight-d>i.clientHeight&&(a=2)}if(r){const d=i.scrollLeft;1===r?d>0&&(c=1):i.scrollWidth-d>i.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,n,e),(s||r)&&(o=c))}),!s&&!r){const{width:a,height:c}=this._viewportRuler.getViewportSize(),d={width:a,height:c,top:0,right:a,bottom:c,left:0};s=Jt(d,e),r=Gt(d,n),o=window}o&&(s!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||o!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=r,this._scrollNode=o,(s||r)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=(0,m.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=(0,m.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(n).clientRect}_cacheItemPositions(){const n="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const o=e.getVisibleElement();return{drag:e,offset:0,initialTransform:o.style.transform||"",clientRect:it(o)}}).sort((e,o)=>n?e.clientRect.left-o.clientRect.left:e.clientRect.top-o.clientRect.top)}_reset(){this._isDragging=!1;const n=(0,m.fI)(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var o;const s=e.getRootElement();if(s){const r=null===(o=this._itemPositions.find(a=>a.drag===e))||void 0===o?void 0:o.initialTransform;s.style.transform=r||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(n,e,o){const s="horizontal"===this._orientation,r=e[n].clientRect,a=e[n+-1*o];let c=r[s?"width":"height"]*o;if(a){const d=s?"left":"top",h=s?"right":"bottom";-1===o?c-=a.clientRect[d]-r[h]:c+=r[d]-a.clientRect[h]}return c}_getItemOffsetPx(n,e,o){const s="horizontal"===this._orientation;let r=s?e.left-n.left:e.top-n.top;return-1===o&&(r+=s?e.width-n.width:e.height-n.height),r}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const o=this._itemPositions,s="horizontal"===this._orientation;if(o[0].drag!==this._activeDraggables[0]){const a=o[o.length-1].clientRect;return s?n>=a.right:e>=a.bottom}{const a=o[0].clientRect;return s?n<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(n,e,o,s){const r="horizontal"===this._orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:d})=>{if(c===n)return!1;if(s){const h=r?s.x:s.y;if(c===this._previousSwap.drag&&this._previousSwap.overlaps&&h===this._previousSwap.delta)return!1}return r?e>=Math.floor(d.left)&&e=Math.floor(d.top)&&os._canReceive(n,e,o))}_canReceive(n,e,o){if(!this._clientRect||!nt(this._clientRect,e,o)||!this.enterPredicate(n,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,o);if(!s)return!1;const r=(0,m.fI)(this.element);return s===r||r.contains(s)}_startReceiving(n,e){const o=this._activeSiblings;!o.has(n)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(o.add(n),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&(this._itemPositions.forEach(({clientRect:o})=>{Q(o,e.top,e.left)}),this._itemPositions.forEach(({drag:o})=>{this._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=(0,w.kV)((0,m.fI)(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function Jt(i,n){const{top:e,bottom:o,height:s}=i,r=.05*s;return n>=e-r&&n<=e+r?1:n>=o-r&&n<=o+r?2:0}function Gt(i,n){const{left:e,right:o,width:s}=i,r=.05*s;return n>=e-r&&n<=e+r?1:n>=o-r&&n<=o+r?2:0}const j=(0,w.i$)({passive:!1,capture:!0});let ze=(()=>{class i{constructor(e,o){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new u.xQ,this.pointerUp=new u.xQ,this.scroll=new u.xQ,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=o}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,j)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,j)}startDragging(e,o){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:j}),s||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:j}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(e){const o=this._activeDragInstances.indexOf(e);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const o=[this.scroll];return e&&e!==this._document&&o.push(new K.y(s=>this._ngZone.runOutsideAngular(()=>{const a=c=>{this._activeDragInstances.length&&s.next(c)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),(0,wt.T)(...o)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,o)=>{this._document.removeEventListener(o,e.handler,e.options)}),this._globalListeners.clear()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(t.R0b),t.LFG(p.K0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Ce={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Ht=(()=>{class i{constructor(e,o,s,r){this._document=e,this._ngZone=o,this._viewportRuler=s,this._dragDropRegistry=r}createDrag(e,o=Ce){return new me(e,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new _e(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(p.K0),t.LFG(t.R0b),t.LFG(Pt.rL),t.LFG(ze))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const st=new t.OlP("CDK_DRAG_PARENT"),be=new t.OlP("CDK_DRAG_CONFIG"),De=new t.OlP("CdkDropList"),rt=new t.OlP("CdkDragHandle");let xe=(()=>{class i{constructor(e,o){this.element=e,this._stateChanges=new u.xQ,this._disabled=!1,this._parentDrag=o}get disabled(){return this._disabled}set disabled(e){this._disabled=(0,m.Ig)(e),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(st,12))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:rt,useExisting:i}])]}),i})();const ye=new t.OlP("CdkDragPlaceholder"),we=new t.OlP("CdkDragPreview");let Se=(()=>{class i{constructor(e,o,s,r,a,c,d,h,g,f,C){this.element=e,this.dropContainer=o,this._ngZone=r,this._viewContainerRef=a,this._dir=d,this._changeDetectorRef=g,this._selfHandle=f,this._parentDrag=C,this._destroyed=new u.xQ,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new K.y(H=>{const E=this._dragRef.moved.pipe((0,Y.U)(L=>({source:this,pointerPosition:L.pointerPosition,event:L.event,delta:L.delta,distance:L.distance}))).subscribe(H);return()=>{E.unsubscribe()}}),this._dragRef=h.createDrag(e,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5,zIndex:null==c?void 0:c.zIndex}),this._dragRef.data=this,i._dragInstances.push(this),c&&this._assignDefaults(c),o&&(this._dragRef._withDropContainer(o._dropListRef),o.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=(0,m.Ig)(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,R.q)(1),(0,N.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const o=e.rootElementSelector,s=e.freeDragPosition;o&&!o.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=i._dragInstances.indexOf(this);e>-1&&i._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var e;const o=this.element.nativeElement;let s=o;this.rootElementSelector&&(s=void 0!==o.closest?o.closest(this.rootElementSelector):null===(e=o.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(s||o)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,m.fI)(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const o=this._dir,s=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof s&&s?s:(0,m.su)(s),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,R.q)(1)).subscribe(()=>{var o;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(s.classList.contains("cdk-drag")){e.withParent((null===(o=i._dragInstances.find(r=>r.element.nativeElement===s))||void 0===o?void 0:o._dragRef)||null);break}s=s.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(o=>{this.ended.emit({source:this,distance:o.distance,dropPoint:o.dropPoint}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(o=>{this.entered.emit({container:o.container.data,item:this,currentIndex:o.currentIndex})}),e.exited.subscribe(o=>{this.exited.emit({container:o.container.data,item:this})}),e.dropped.subscribe(o=>{this.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:this,distance:o.distance,dropPoint:o.dropPoint})})}_assignDefaults(e){const{lockAxis:o,dragStartDelay:s,constrainPosition:r,previewClass:a,boundaryElement:c,draggingDisabled:d,rootElementSelector:h,previewContainer:g}=e;this.disabled=null!=d&&d,this.dragStartDelay=s||0,o&&(this.lockAxis=o),r&&(this.constrainPosition=r),a&&(this.previewClass=a),c&&(this.boundaryElement=c),h&&(this.rootElementSelector=h),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.changes.pipe((0,M.O)(this._handles),(0,de.b)(e=>{const o=e.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&o.push(this.element),this._dragRef.withHandles(o)}),(0,he.w)(e=>(0,wt.T)(...e.map(o=>o._stateChanges.pipe((0,M.O)(o))))),(0,N.R)(this._destroyed)).subscribe(e=>{const o=this._dragRef,s=e.element.nativeElement;e.disabled?o.disableHandle(s):o.enableHandle(s)})}}return i._dragInstances=[],i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(De,12),t.Y36(p.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(be,8),t.Y36(X.Is,8),t.Y36(Ht),t.Y36(t.sBO),t.Y36(rt,10),t.Y36(st,12))},i.\u0275dir=t.lG2({type:i,selectors:[["","cdkDrag",""]],contentQueries:function(e,o,s){if(1&e&&(t.Suo(s,we,5),t.Suo(s,ye,5),t.Suo(s,rt,5)),2&e){let r;t.iGM(r=t.CRH())&&(o._previewTemplate=r.first),t.iGM(r=t.CRH())&&(o._placeholderTemplate=r.first),t.iGM(r=t.CRH())&&(o._handles=r)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[t._Bn([{provide:st,useExisting:i}]),t.TTD]}),i})(),Te=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Ht],imports:[Pt.ZD]}),i})();var Ie=l(2051);const Oe=["imgRef"];function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){return t.CHM(e).$implicit.onClick()}),t._UZ(1,"span",10),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.ekj("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===e.type),t.xp6(1),t.Q6J("nzType",e.icon)}}function Re(i,n){if(1&i&&t._UZ(0,"img",12,13),2&i){const e=t.oxw().$implicit,o=t.oxw();t.Udp("width",e.width)("height",e.height)("transform",o.previewImageTransform),t.uIk("src",e.src,t.LSH)("srcset",e.srcset,t.LSH)("alt",e.alt)}}function Me(i,n){if(1&i&&(t.ynx(0),t.YNc(1,Re,2,9,"img",11),t.BQk()),2&i){const e=n.index,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.index===e)}}function Ae(i,n){if(1&i){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",14),t.NdJ("click",function(s){return t.CHM(e),t.oxw().onSwitchLeft(s)}),t._UZ(2,"span",15),t.qZA(),t.TgZ(3,"div",16),t.NdJ("click",function(s){return t.CHM(e),t.oxw().onSwitchRight(s)}),t._UZ(4,"span",17),t.qZA(),t.BQk()}if(2&i){const e=t.oxw();t.xp6(1),t.ekj("ant-image-preview-switch-left-disabled",e.index<=0),t.xp6(2),t.ekj("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}class at{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}class Ze{constructor(n,e,o){this.previewInstance=n,this.config=e,this.overlayRef=o,this.destroy$=new u.xQ,o.keydownEvents().pipe((0,vt.h)(s=>this.config.nzKeyboard&&s.keyCode===Dt.hY&&!(0,Dt.Vb)(s))).subscribe(s=>{s.preventDefault(),this.close()}),o.detachments().subscribe(()=>{this.overlayRef.dispose()}),n.containerClick.pipe((0,R.q)(1),(0,N.R)(this.destroy$)).subscribe(()=>{this.close()}),n.closeClick.pipe((0,R.q)(1),(0,N.R)(this.destroy$)).subscribe(()=>{this.close()}),n.animationStateChanged.pipe((0,vt.h)(s=>"done"===s.phaseName&&"leave"===s.toState),(0,R.q)(1)).subscribe(()=>{this.dispose()})}switchTo(n){this.previewInstance.switchTo(n)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.previewInstance.startLeaveAnimation()}dispose(){this.destroy$.next(),this.overlayRef.dispose()}}function Bt(i,n,e){const o=i+n,s=(n-e)/2;let r=null;return n>e?(i>0&&(r=s),i<0&&oe)&&(r=i<0?s:-s),r}const W={x:0,y:0};let Ue=(()=>{class i{constructor(e,o,s,r){var a,c;this.cdr=e,this.nzConfigService=o,this.config=s,this.overlayRef=r,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationState="enter",this.animationStateChanged=new t.vpe,this.previewImageTransform="",this.previewImageWrapperTransform="",this.operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"}],this.zoomOutDisabled=!1,this.position=Object.assign({},W),this.containerClick=new t.vpe,this.closeClick=new t.vpe,this.destroy$=new u.xQ,this.zoom=null!==(a=this.config.nzZoom)&&void 0!==a?a:1,this.rotate=null!==(c=this.config.nzRotate)&&void 0!==c?c:0,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}get animationDisabled(){var e;return null!==(e=this.config.nzNoAnimation)&&void 0!==e&&e}get maskClosable(){var e,o;const s=this.nzConfigService.getConfigForComponent("image")||{};return null===(o=null!==(e=this.config.nzMaskClosable)&&void 0!==e?e:s.nzMaskClosable)||void 0===o||o}setImages(e){this.images=e,this.cdr.markForCheck()}switchTo(e){this.index=e,this.cdr.markForCheck()}next(){this.index0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.cdr.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.closeClick.emit()}onZoomIn(){this.zoom+=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position=Object.assign({},W)}onZoomOut(){this.zoom>1&&(this.zoom-=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position=Object.assign({},W))}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onContainerClick(e){e.target===e.currentTarget&&this.maskClosable&&this.containerClick.emit()}onAnimationStart(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}onAnimationDone(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}startLeaveAnimation(){this.animationState="leave",this.cdr.markForCheck()}onDragStarted(){this.isDragging=!0}onDragReleased(){this.isDragging=!1;const e=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:s,top:r}=function Ne(i){const n=i.getBoundingClientRect(),e=document.documentElement;return{left:n.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:a,height:c}=function Fe(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),d=this.rotate%180!=0,g=function Le(i){let n={};return i.width<=i.clientWidth&&i.height<=i.clientHeight&&(n={x:0,y:0}),(i.width>i.clientWidth||i.height>i.clientHeight)&&(n={x:Bt(i.left,i.width,i.clientWidth),y:Bt(i.top,i.height,i.clientHeight)}),n}({width:d?o:e,height:d?e:o,left:s,top:r,clientWidth:a,clientHeight:c});((0,Ct.DX)(g.x)||(0,Ct.DX)(g.y))&&(this.position=Object.assign(Object.assign({},this.position),g))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom}, ${this.zoom}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}setEnterAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-enter"),e.classList.add("ant-fade-enter-active"))}setLeaveAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-leave"),e.classList.add("ant-fade-leave-active"))}reset(){this.zoom=1,this.rotate=0,this.position=Object.assign({},W)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.sBO),t.Y36(zt.jY),t.Y36(at),t.Y36(F.Iu))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-image-preview"]],viewQuery:function(e,o){if(1&e&&t.Gf(Oe,5),2&e){let s;t.iGM(s=t.CRH())&&(o.imageRef=s.first)}},hostAttrs:["tabindex","-1","role","document",1,"ant-image-preview-wrap"],hostVars:6,hostBindings:function(e,o){1&e&&(t.WFA("@fadeMotion.start",function(r){return o.onAnimationStart(r)})("@fadeMotion.done",function(r){return o.onAnimationDone(r)}),t.NdJ("click",function(r){return o.onContainerClick(r)})),2&e&&(t.d8E("@.disabled",o.config.nzNoAnimation)("@fadeMotion",o.animationState),t.Udp("z-index",o.config.nzZIndex),t.ekj("ant-image-preview-moving",o.isDragging))},exportAs:["nzImagePreview"],decls:10,vars:6,consts:[[1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],[1,"ant-image-preview-operations"],["class","ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled","click",4,"ngFor","ngForOf"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragFreeDragPosition","mousedown","cdkDragReleased"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType"],["cdkDragHandle","","class","ant-image-preview-img",3,"width","height","transform",4,"ngIf"],["cdkDragHandle","",1,"ant-image-preview-img"],["imgRef",""],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"ul",4),t.YNc(5,Ee,2,3,"li",5),t.qZA(),t.TgZ(6,"div",6),t.NdJ("mousedown",function(){return o.onDragStarted()})("cdkDragReleased",function(){return o.onDragReleased()}),t.YNc(7,Me,2,1,"ng-container",7),t.qZA(),t.YNc(8,Ae,5,4,"ng-container",8),t.qZA(),t.qZA(),t._UZ(9,"div",1),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngForOf",o.operations),t.xp6(1),t.Udp("transform",o.previewImageWrapperTransform),t.Q6J("cdkDragFreeDragPosition",o.position),t.xp6(1),t.Q6J("ngForOf",o.images),t.xp6(1),t.Q6J("ngIf",o.images.length>1))},directives:[p.sg,x.Ls,Se,p.O5,xe],encapsulation:2,data:{animation:[se.MC]},changeDetection:0}),i})(),Qe=(()=>{class i{constructor(e,o,s,r){this.overlay=e,this.injector=o,this.nzConfigService=s,this.directionality=r}preview(e,o){return this.display(e,o)}display(e,o){const s=Object.assign(Object.assign({},new at),null!=o?o:{}),r=this.createOverlay(s),a=this.attachPreviewComponent(r,s);a.setImages(e);const c=new Ze(a,s,r);return a.previewRef=c,c}attachPreviewComponent(e,o){const s=t.zs3.create({parent:this.injector,providers:[{provide:F.Iu,useValue:e},{provide:at,useValue:o}]}),r=new bt.C5(Ue,null,s);return e.attach(r).instance}createOverlay(e){var o,s;const r=this.nzConfigService.getConfigForComponent("image")||{},a=new F.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:null===(s=null!==(o=e.nzCloseOnNavigation)&&void 0!==o?o:r.nzCloseOnNavigation)||void 0===s||s,backdropClass:"ant-image-preview-mask",direction:e.nzDirection||r.nzDirection||this.directionality.value});return this.overlay.create(a)}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(F.aV),t.LFG(t.zs3),t.LFG(zt.jY),t.LFG(X.Is,8))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac}),i})(),Je=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Qe],imports:[[X.vT,F.U8,bt.eL,Te,p.ez,x.PV,Ie.YS]]}),i})();var k=l(1945),Ge=l(8762),v=l(1894),_=l(8144),z=l(325),ct=l(3630),$t=l(5249),I=l(7484),He=l(3762),lt=l(6699),O=l(3098),q=l(5737),jt=l(9444),Ye=l(6286),Be=l(3384),$e=l(8018),je=l(3580),Ve=l(5453);let We=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,lt.Rt]]}),i})();var S=l(3618),dt=l(9476),qe=l(5013),Ke=l(897),Vt=l(6114),ht=l(4182);let Wt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,ht.u5,I.vh,v.Jb,_.zf,S.ZJ,$t.A2,O.q6,q.S,Vt.Wr,ct.X,Ve.N,je.Q,$e.e,Be.h,Ye.y,We,jt.s,dt.L,qe.C,Ke.$]]}),i})(),Xe=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,z.Bz,D.WG,k.KJ,v.Jb,x.PV,_.zf,Je,I.vh,$t.A2,He.Ph,lt.Rt,O.q6,q.S,ct.X,Ge.c,_t.D,Wt]]}),i})();var ti=l(5291);let ei=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,ti.t]]}),i})();var ii=l(767);let ni=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,ii.Q]]}),i})(),oi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,D.WG,_.zf,v.Jb,Wt]]}),i})();var T=l(1132),si=l(4125),ri=l(7946),qt=l(8625),Z=l(6042);let ai=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,D.WG,x.PV,T.HQ,Z.sL,I.vh,x.PV,S.ZJ,si.k,dt.L,ri.x,qt.$L]]}),i})(),ci=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,k.KJ,x.PV,v.Jb,Z.sL,_.zf,S.ZJ,_t.D,ai]]}),i})();var li=l(5473),di=l(7345);let hi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,I.vh,O.q6,S.ZJ,x.PV,_.zf,v.Jb,q.S,li.H,ct.X,jt.s,dt.L,di.W]]}),i})(),gi=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,D.WG,v.Jb,_.zf,Z.sL,hi]]}),i})();var pi=l(3756);let ui=(()=>{class i{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},directives:[pi.x],styles:["[_nghost-%COMP%]{display:block}"]}),i})();var y=l(373),P=l(712),gt=l(9350),Kt=l(8992);function mi(i,n){if(1&i&&t._UZ(0,"nz-avatar",2),2&i){const e=t.oxw();t.Q6J("nzSrc",e.organization.profileImagePath)("nzSize",e.size)}}function fi(i,n){if(1&i&&t._UZ(0,"nz-avatar",3),2&i){const e=t.oxw();t.Q6J("nzText",e.organization.name)("nzSize",e.size)}}let _i=(()=>{class i{ngOnInit(){if(void 0===this.organization)throw new Error("Must supply an organization to use this component");void 0===this.size&&(this.size="default")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organization-avatar"]],inputs:{organization:"organization",size:"size"},decls:3,vars:2,consts:[["nz-comment-avatar","",3,"nzSrc","nzSize",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc","nzSize"],["nz-comment-avatar","",3,"nzText","nzSize"]],template:function(e,o){if(1&e&&(t.YNc(0,mi,1,2,"nz-avatar",0),t.YNc(1,fi,1,2,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",o.organization.profileImagePath)("ngIfElse",s)}},directives:[p.O5,lt.Dz],styles:["[_nghost-%COMP%]{display:inline-block}"]}),i})();var vi=l(6550),zi=l(6715),pt=l(5749),Ci=l(7893);function bi(i,n){}function Di(i,n){if(1&i&&(t.TgZ(0,"nz-card",3),t.YNc(1,bi,0,0,"ng-template",4),t.qZA()),2&i){const e=t.oxw(),o=t.MAs(4);t.Q6J("nzTitle",e.organization.name),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function xi(i,n){}function yi(i,n){if(1&i&&t.YNc(0,xi,0,0,"ng-template",4),2&i){t.oxw();const e=t.MAs(4);t.Q6J("ngTemplateOutlet",e)}}function wi(i,n){if(1&i&&(t.TgZ(0,"cvc-link-tag",20),t._uU(1," View Organization Website "),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("href",e.organization.url)}}function Pi(i,n){if(1&i&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",22),t.BQk()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("org",e)}}function Si(i,n){if(1&i&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,Pi,2,1,"ng-container",21),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.organization.subGroups)}}function Ti(i,n){1&i&&(t.ynx(0),t.TgZ(1,"span",23),t.TgZ(2,"i"),t._uU(3,"No child organizations specified."),t.qZA(),t.qZA(),t.BQk())}function Ii(i,n){if(1&i){const e=t.EpF();t.ynx(0),t.TgZ(1,"label",24),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw(3).includeSubStats=s}),t._uU(2," Include sub-orgs "),t.qZA(),t.BQk()}if(2&i){const e=t.oxw(3);t.xp6(1),t.Q6J("ngModel",e.includeSubStats)}}function Oi(i,n){if(1&i&&t.YNc(0,Ii,3,1,"ng-container",16),2&i){const e=t.oxw(2);t.Q6J("ngIf",e.organization.subGroups.length>0)}}function Ei(i,n){if(1&i&&(t.TgZ(0,"nz-row",5),t.TgZ(1,"nz-col",6),t.TgZ(2,"div",7),t._UZ(3,"cvc-organization-avatar",8),t.qZA(),t.TgZ(4,"div",9),t.TgZ(5,"span",10),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"nz-col",6),t.TgZ(9,"nz-card",11),t.YNc(10,wi,2,1,"ng-template",null,12,t.W1O),t.TgZ(12,"nz-descriptions",13),t.TgZ(13,"nz-descriptions-item",14),t._uU(14),t.qZA(),t.TgZ(15,"nz-descriptions-item",15),t.YNc(16,Si,2,1,"cvc-tag-list",16),t.YNc(17,Ti,4,0,"ng-container",16),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"nz-col",6),t.TgZ(19,"nz-card",17),t._UZ(20,"cvc-stats-card",18),t.qZA(),t.YNc(21,Oi,1,1,"ng-template",null,19,t.W1O),t.qZA(),t.qZA()),2&i){const e=t.MAs(11),o=t.MAs(22),s=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",3),t.xp6(2),t.Q6J("organization",s.organization)("size",128),t.xp6(4),t.Oqu(s.organization.name),t.xp6(1),t.Q6J("nzSpan",13),t.xp6(1),t.Q6J("nzExtra",e),t.xp6(3),t.Q6J("nzColumn",1),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",s.organization.description," "),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("ngIf",s.organization.subGroups.length>0),t.xp6(1),t.Q6J("ngIf",0===s.organization.subGroups.length),t.xp6(1),t.Q6J("nzSpan",8),t.xp6(1),t.Q6J("nzExtra",o),t.xp6(1),t.Q6J("stats",s.includeSubStats?s.organization.orgAndSuborgsStatsHash:s.organization.orgStatsHash)}}let Xt=(()=>{class i{constructor(){this.inCard=!0,this.includeSubStats=!0}ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organization-card"]],inputs:{organization:"organization",inCard:"inCard"},decls:5,vars:2,consts:[[3,"nzTitle",4,"ngIf","ngIfElse"],["noCard",""],["content",""],[3,"nzTitle"],[3,"ngTemplateOutlet"],[3,"nzGutter"],[3,"nzSpan"],[1,"org-avatar"],[3,"organization","size"],[1,"org-name"],["nz-typography",""],["nzTitle","Profile","nzSize","small",1,"organization-profile",3,"nzExtra"],["orgLink",""],["nzBordered","","nzLayout","vertical","nzSize","small",3,"nzColumn"],["nzTitle","Description",3,"nzSpan"],["nzTitle","Child Organizations",3,"nzSpan"],[4,"ngIf"],["nzSize","small","nzTitle","Curation Stats",3,"nzExtra"],["header","User Statistics",3,"stats"],["subGroupToggle",""],[3,"href"],[4,"ngFor","ngForOf"],[3,"org"],["nz-typography","","nzType","secondary"],["nz-checkbox","",1,"stats-toggle",3,"ngModel","ngModelChange"]],template:function(e,o){if(1&e&&(t.YNc(0,Di,2,2,"nz-card",0),t.YNc(1,yi,1,1,"ng-template",null,1,t.W1O),t.YNc(3,Ei,23,16,"ng-template",null,2,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",o.inCard)("ngIfElse",s)}},directives:[p.O5,I.bd,p.tP,v.SK,v.t3,_i,S.ZU,vi.l,O.R7,O.uj,zi.$,p.sg,pt.m,Ci.z,Vt.Ie,ht.JJ,ht.On],styles:["[_nghost-%COMP%] .organization-profile .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] .stats-toggle span{padding-right:0}.org-avatar[_ngcontent-%COMP%], .org-name[_ngcontent-%COMP%]{text-align:center}.org-name[_ngcontent-%COMP%]{font-size:120%}"]}),i})();var Ri=l(2233);function Mi(i,n){if(1&i&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-content"),t.TgZ(4,"div",3),t._UZ(5,"cvc-organization-card",4),t.qZA(),t._UZ(6,"cvc-tab-navigation",5),t.ALo(7,"ngrxPush"),t.TgZ(8,"div",6),t._UZ(9,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const e=n.ngIf,o=t.oxw();t.xp6(1),t.Q6J("displayName",e.name),t.xp6(4),t.Q6J("organization",e)("inCard",!1),t.xp6(1),t.Q6J("tabs",t.lcZ(7,4,o.tabs$))}}let Ai=(()=>{class i{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.queryRef=this.gql.watch({organizationId:+this.route.snapshot.params.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,y.j)("loading"),(0,M.O)(!0)),this.organization$=a.pipe((0,y.j)("data","organization")),this.viewer$=this.viewerService.viewer$,this.tabs$=this.organization$.pipe((0,Y.U)(c=>{const d=[{routeName:"members",tabLabel:"Members",iconName:"pic-right"},{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"}];return c&&c.subGroups.length>0&&d.splice(1,0,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}),d}))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(P.WOS),t.Y36(gt.a),t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["organizations-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],[1,"detail-content"],[3,"organization","inCard"],[3,"tabs"],[1,"content"]],template:function(e,o){1&e&&(t.YNc(0,Mi,10,6,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organization$))},directives:[p.O5,Kt.I,k.$O,k.u5,Xt,Ri.P,z.lC],pipes:[D.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}.detail-content[_ngcontent-%COMP%]{margin-top:8px}.content[_ngcontent-%COMP%]{margin-bottom:8px}"]}),i})();var ki=l(2011);let Zi=(()=>{class i{constructor(e){this.route=e,this.mode=P.wJ2.Organization,this.organizationId=+this.route.snapshot.params.organizationId}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[["tagDisplay","hideOrg",3,"organizationId","mode"]],template:function(e,o){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("organizationId",o.organizationId)("mode",o.mode)},directives:[ki.o],styles:["[_nghost-%COMP%]{display:block}"]}),i})();var Li=l(8965);let Ni=(()=>{class i{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},directives:[Li.a],styles:["[_nghost-%COMP%]{display:block}"]}),i})();function Fi(i,n){if(1&i&&t._UZ(0,"cvc-organization-card",4),2&i){const e=t.oxw().$implicit;t.Q6J("organization",e)}}function Ui(i,n){1&i&&(t.TgZ(0,"nz-space",2),t.YNc(1,Fi,1,1,"cvc-organization-card",3),t.qZA())}function Qi(i,n){if(1&i&&(t.ynx(0),t.YNc(1,Ui,2,0,"nz-space",1),t.BQk()),2&i){const e=n.ngIf;t.xp6(1),t.Q6J("ngForOf",e)}}let Ji=(()=>{class i{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.queryRef=this.gql.watch({organizationId:+this.route.snapshot.params.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,y.j)("loading"),(0,M.O)(!0)),this.organizations$=a.pipe((0,y.j)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(P.Lr0),t.Y36(gt.a),t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-groups"]],decls:2,vars:3,consts:[[4,"ngIf"],["nzDirection","vertical",4,"ngFor","ngForOf"],["nzDirection","vertical"],[3,"organization",4,"nzSpaceItem"],[3,"organization"]],template:function(e,o){1&e&&(t.YNc(0,Qi,2,1,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organizations$))},directives:[p.O5,p.sg,_.NU,_.$1,Xt],pipes:[D.fM],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]}),i})();var ut=l(2683),Gi=l(3154),Hi=l(13),Yi=l(2166),Bi=l(392),te=l(2643);function $i(i,n){if(1&i&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._UZ(2,"cvc-organization-tag",9),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._UZ(6,"cvc-tag-overflow",10),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.ALo(11,"timeago"),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(2),t.Q6J("org",e),t.xp6(2),t.hij(" ",e.memberCount," "),t.xp6(2),t.Q6J("maxDisplayCount",3)("tags",e.subGroups),t.xp6(2),t.hij(" ",e.eventCount," "),t.xp6(2),t.hij(" ",t.lcZ(11,6,null==e.mostRecentEvent?null:e.mostRecentEvent.createdAt)," ")}}function ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).ngrxLet;return t.oxw().loadMore(s.endCursor)}),t._uU(1),t.qZA()}if(2&i){const e=t.oxw(3);t.xp6(1),t.hij("Load ",e.fetchMorePageSize," More")}}function Vi(i,n){if(1&i&&(t.TgZ(0,"tr"),t.TgZ(1,"td",12),t.YNc(2,ji,2,1,"button",13),t.qZA(),t.qZA()),2&i){const e=t.oxw().ngrxLet;t.xp6(2),t.Q6J("ngIf",e.hasNextPage)}}function Wi(i,n){if(1&i&&(t.ynx(0),t.YNc(1,Vi,3,1,"tr",11),t.BQk()),2&i){const e=n.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function qi(i,n){}function Ki(i,n){if(1&i&&(t.ynx(0),t.YNc(1,qi,0,0,"ng-template",18),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function Xi(i,n){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function tn(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().ngIf;t.xp6(1),t.hij(" of ",e," filtered")}}function en(i,n){if(1&i&&(t.TgZ(0,"span",19),t._uU(1),t.YNc(2,tn,2,1,"span",11),t._uU(3,") "),t.qZA()),2&i){const e=n.ngIf,o=t.oxw(2);t.xp6(1),t.AsE(" (",o.totalCount," total, showing ",o.visibleCount,""),t.xp6(1),t.Q6J("ngIf",o.totalCount&&e{class i{constructor(e){this.gql=e,this.initialPageSize=25,this.debouncedQuery=new u.xQ,this.tableView=!0,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.sortColumns=P.xlL,this.fetchMorePageSize=25}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,cardView:!this.tableView});let e=this.queryRef.valueChanges;this.isLoading$=e.pipe((0,y.j)("loading"),(0,M.O)(!0)),this.organizations$=e.pipe((0,y.j)("data","organizations","edges"),(0,Y.U)(o=>o.map(s=>s.node))),this.filteredCount$=e.pipe((0,y.j)("data","organizations","totalCount")),this.filteredCount$.pipe((0,R.q)(1)).subscribe(o=>this.totalCount=o),this.filteredCount$.subscribe(o=>{oo&&(this.visibleCount=o))}),this.pageInfo$=e.pipe((0,y.j)("data","organizations","pageInfo")),this.debouncedQuery.pipe((0,Hi.b)(500)).subscribe(o=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){this.loadedPages=1,this.queryRef.refetch({orgName:this.orgNameInput,id:this.idInput?+this.idInput:void 0,cardView:!this.tableView})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(e){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,Gi._)(e),cardView:!this.tableView})}loadMore(e){var o;null===(o=this.queryRef)||void 0===o||o.fetchMore({variables:{first:this.fetchMorePageSize,after:e}}),this.loadedPages+=1}ngOnDestroy(){this.debouncedQuery.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(P.io))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:29,vars:15,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["organizationsTable",""],[3,"nzSortOrderChange"],["nzWidth","25%",3,"nzColumnKey","nzSortFn"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"org"],["tagType","organization",3,"maxDisplayCount","tags"],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:organization"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.TgZ(5,"thead",3),t.NdJ("nzSortOrderChange",function(r){return o.onSortChanged(r)}),t.TgZ(6,"tr"),t.TgZ(7,"th",4),t._uU(8," Name "),t.qZA(),t.TgZ(9,"th"),t._uU(10," Members "),t.qZA(),t.TgZ(11,"th"),t._uU(12," Sub Organizations "),t.qZA(),t.TgZ(13,"th"),t._uU(14," Actions "),t.qZA(),t.TgZ(15,"th"),t._uU(16," Last Action "),t.qZA(),t.qZA(),t.TgZ(17,"tr"),t.TgZ(18,"th"),t.TgZ(19,"cvc-clearable-input-filter",5),t.NdJ("inputModelChange",function(r){return o.orgNameInput=r}),t.qZA(),t.qZA(),t._UZ(20,"th"),t._UZ(21,"th"),t._UZ(22,"th"),t._UZ(23,"th"),t.qZA(),t.qZA(),t.TgZ(24,"tbody"),t.YNc(25,$i,12,8,"tr",6),t.YNc(26,Wi,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.YNc(27,on,7,6,"ng-template",null,8,t.W1O)),2&e){const s=t.MAs(2),r=t.MAs(28);t.Q6J("nzTitle",r),t.xp6(1),t.Q6J("nzData",t.lcZ(3,11,o.organizations$))("nzLoading",t.lcZ(4,13,o.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(6),t.Q6J("nzColumnKey",o.sortColumns.Name)("nzSortFn",!0),t.xp6(12),t.Q6J("inputModel",o.orgNameInput)("onInputChanged",o.textInputCallback),t.xp6(6),t.Q6J("ngForOf",s.data),t.xp6(1),t.Q6J("ngrxLet",o.pageInfo$)}},directives:[I.bd,T.N8,T.Om,T.$Z,T.Uo,T._C,T.qD,Yi.p,T.p0,p.sg,pt.m,Bi.T,D.eJ,p.O5,Z.ix,te.dQ,ut.w,x.Ls,p.tP,S.ZU],pipes:[D.fM,qt.wr],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),i})();function rn(i,n){1&i&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t._uU(2," View Organization Docs "),t.qZA())}let an=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["organizations-home"]],decls:18,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:organization"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse Organizations"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,o){1&e&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0),t.TgZ(2,"nz-page-header-content"),t.TgZ(3,"nz-row",1),t.TgZ(4,"nz-col",2),t._UZ(5,"i",3),t.qZA(),t.TgZ(6,"nz-col",4),t.TgZ(7,"h2"),t._uU(8,"Organizations"),t.qZA(),t.TgZ(9,"p",5),t._uU(10,"Users may be included in Organizations, primarily in order to keep track of an organization\u2019s contributions to CIViC curation. A User\u2019s organization affiliation is displayed in their profile and user card."),t.qZA(),t.qZA(),t.TgZ(11,"nz-col",6),t.TgZ(12,"nz-space",7),t.YNc(13,rn,3,0,"a",8),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",9),t.TgZ(15,"div",10),t.TgZ(16,"div",11),t._UZ(17,"cvc-organizations-table",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(6),t.Q6J("nzSpan",24))},directives:[Kt.I,k.$O,k.u5,v.SK,v.t3,x.Ls,ut.w,S.ZU,_.NU,_.$1,Z.ix,sn],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})();var cn=l(7881),ln=l(125),dn=l(1243);function hn(i,n){if(1&i&&t._UZ(0,"cvc-user-avatar",8),2&i){const e=t.oxw(2);t.Q6J("user",e.user)("size",32)}}function gn(i,n){if(1&i&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t.qZA()),2&i){const e=t.oxw(4);t.MGl("href","http://twitter.com/",e.user.twitterHandle,"",t.LSH)}}function pn(i,n){1&i&&(t.ynx(0),t.YNc(1,gn,2,1,"a",12),t.BQk())}function un(i,n){if(1&i&&(t.TgZ(0,"a",13),t._UZ(1,"i",15),t.qZA()),2&i){const e=t.oxw(4);t.MGl("href","http://facebook.com/",e.user.facebookProfile,"",t.LSH)}}function mn(i,n){1&i&&(t.ynx(0),t.YNc(1,un,2,1,"a",12),t.BQk())}function fn(i,n){if(1&i&&(t.TgZ(0,"a",13),t._UZ(1,"i",16),t.qZA()),2&i){const e=t.oxw(4);t.MGl("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.LSH)}}function _n(i,n){1&i&&(t.ynx(0),t.YNc(1,fn,2,1,"a",12),t.BQk())}function vn(i,n){if(1&i&&(t.TgZ(0,"a",13),t.TgZ(1,"span"),t._uU(2,"ID"),t.qZA(),t.qZA()),2&i){const e=t.oxw(4);t.MGl("href","https://orcid.org/",e.user.orcid,"",t.LSH)}}function zn(i,n){1&i&&(t.ynx(0),t.YNc(1,vn,3,1,"a",12),t.BQk())}function Cn(i,n){1&i&&t._UZ(0,"nz-divider",17)}function bn(i,n){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-space",9),t.YNc(2,pn,2,0,"ng-container",10),t.YNc(3,mn,2,0,"ng-container",10),t.YNc(4,_n,2,0,"ng-container",10),t.YNc(5,zn,2,0,"ng-container",10),t.qZA(),t.YNc(6,Cn,1,0,"ng-template",null,11,t.W1O),t.BQk()),2&i){const e=t.MAs(7),o=t.oxw(2);t.xp6(1),t.Q6J("nzSplit",e),t.xp6(1),t.Q6J("ngIf",o.user.twitterHandle),t.xp6(1),t.Q6J("ngIf",o.user.facebookProfile),t.xp6(1),t.Q6J("ngIf",o.user.linkedinProfile),t.xp6(1),t.Q6J("ngIf",o.user.orcid)}}function Dn(i,n){1&i&&(t.ynx(0),t.TgZ(1,"nz-space",6),t.YNc(2,hn,1,2,"cvc-user-avatar",7),t.YNc(3,bn,8,5,"ng-container",2),t.qZA(),t.BQk())}function xn(i,n){if(1&i&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user.areaOfExpertise)," ")}}function yn(i,n){if(1&i&&t._UZ(0,"cvc-organization-tag",25),2&i){const e=t.oxw().$implicit;t.Q6J("org",e)}}function wn(i,n){1&i&&(t.ynx(0),t.YNc(1,yn,1,1,"cvc-organization-tag",24),t.BQk())}function Pn(i,n){if(1&i&&(t.TgZ(0,"nz-descriptions",18),t.TgZ(1,"nz-descriptions-item",19),t.YNc(2,xn,3,3,"ng-container",20),t.qZA(),t.TgZ(3,"nz-descriptions-item",21),t.TgZ(4,"nz-space",22),t.YNc(5,wn,2,0,"ng-container",23),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(),o=t.MAs(5);t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",e.user.areaOfExpertise)("ngIfElse",o),t.xp6(2),t.Q6J("nzSize",1),t.xp6(1),t.Q6J("ngForOf",e.user.organizations)}}function Sn(i,n){1&i&&(t.TgZ(0,"span",26),t._uU(1,"Not provided"),t.qZA())}function Tn(i,n){if(1&i&&t._UZ(0,"cvc-user-tag",27),2&i){const e=t.oxw();t.Q6J("user",e.user)("enablePopover",!1)}}let In=(()=>{class i{ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case P.i44.Admin:this.icon="civic-admin";break;case P.i44.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-user-card"]],inputs:{user:"user"},decls:8,vars:1,consts:[[2,"height","100%",3,"nzTitle"],["nzDirection","vertical",2,"width","100%"],[4,"nzSpaceItem"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],["notProvided",""],["titleTemplate",""],["nzSize","large"],[3,"user","size",4,"nzSpaceItem"],[3,"user","size"],["nzAlign","center",3,"nzSplit"],[4,"ngIf"],["spaceSplit",""],["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"],["nzType","vertical"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Expertise"],[4,"ngIf","ngIfElse"],["nzTitle","Organization"],["nzDirection","vertical",3,"nzSize"],[4,"ngFor","ngForOf"],[3,"org",4,"nzSpaceItem"],[3,"org"],["nz-typography","","nzType","secondary"],[2,"font-weight","normal",3,"user","enablePopover"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-space",1),t.YNc(2,Dn,4,0,"ng-container",2),t.YNc(3,Pn,6,5,"nz-descriptions",3),t.YNc(4,Sn,2,0,"ng-template",null,4,t.W1O),t.qZA(),t.qZA(),t.YNc(6,Tn,1,2,"ng-template",null,5,t.W1O)),2&e){const s=t.MAs(7);t.Q6J("nzTitle",s)}},directives:[I.bd,_.NU,_.$1,cn.L,p.O5,x.Ls,q.g,O.R7,O.uj,p.sg,pt.m,S.ZU,ln.I],pipes:[dn.I],styles:[""]}),i})();function On(i,n){if(1&i&&(t.TgZ(0,"div",6),t._UZ(1,"cvc-user-card",7),t.qZA()),2&i){const e=n.$implicit;t.Q6J("nzSpan",6),t.xp6(1),t.Q6J("user",e)}}const En=function(){return[16,16]};function Rn(i,n){if(1&i&&(t.TgZ(0,"div",4),t.YNc(1,On,2,2,"div",5),t.qZA()),2&i){const e=t.oxw().ngIf;t.Q6J("nzGutter",t.DdM(2,En)),t.xp6(1),t.Q6J("ngForOf",e)}}function Mn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const s=t.oxw(2).ngrxLet;return t.oxw(3).loadMore(s.endCursor)}),t._uU(1),t.qZA()}if(2&i){const e=t.oxw(5);t.xp6(1),t.hij("Load ",e.initialPageSize," More")}}function An(i,n){if(1&i&&(t.ynx(0),t.YNc(1,Mn,2,1,"button",10),t.BQk()),2&i){const e=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function kn(i,n){if(1&i&&(t.ynx(0),t.YNc(1,An,2,1,"ng-container",9),t.BQk()),2&i){const e=n.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function Zn(i,n){if(1&i&&(t.ynx(0),t.YNc(1,kn,2,1,"ng-container",8),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngrxLet",e.pageInfo$)}}function Ln(i,n){1&i&&(t.TgZ(0,"nz-space",1),t.YNc(1,Rn,2,3,"div",2),t.YNc(2,Zn,2,1,"ng-container",3),t.qZA())}let Nn=(()=>{class i{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.initialPageSize=20,this.queryRef=this.gql.watch({organizationId:+this.route.snapshot.params.organizationId,first:this.initialPageSize});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,y.j)("loading"),(0,M.O)(!0)),this.members$=a.pipe((0,y.j)("data","users","edges"),(0,Y.U)(c=>c.map(d=>d.node))),this.pageInfo$=a.pipe((0,y.j)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$}loadMore(e){this.queryRef.fetchMore({variables:{after:e}})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(P.Del),t.Y36(gt.a),t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-members"]],decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["nz-row","",3,"nzGutter",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan"],[3,"user"],[4,"ngrxLet"],[4,"ngIf"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"]],template:function(e,o){1&e&&(t.YNc(0,Ln,3,0,"nz-space",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.members$))},directives:[p.O5,_.NU,_.$1,v.SK,p.sg,v.t3,In,D.eJ,Z.ix,te.dQ,ut.w],pipes:[D.fM],styles:[""]}),i})();var Fn=l(9814);const Un=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-organizations"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},directives:[z.lC],styles:[""]}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:an},{path:":organizationId",component:Ai,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Nn,data:{breadcrumb:"Members"}},{path:"groups",component:Ji,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:Ni,data:{breadcrumb:"Evidence"}},{path:"assertions",component:ui,data:{breadcrumb:"Assertions"}},{path:"activity",component:Zi,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class i{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(e,o){1&e&&t._UZ(0,"cvc-source-suggestions-table",0)},directives:[Fn.O],styles:["[_nghost-%COMP%]{display:block}"]}),i})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let Qn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[z.Bz.forChild(Un)],z.Bz]}),i})();var Jn=l(2832);let Gn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,Jn.W]]}),i})(),Hn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.ez,D.WG,Qn,ci,ni,oe,Xe,ei,oi,gi,Gn]]}),i})()}}]); \ No newline at end of file diff --git a/server/public/3218.9a2a6eae0aa809aa.js b/server/public/3218.b9650131e157c42a.js similarity index 99% rename from server/public/3218.9a2a6eae0aa809aa.js rename to server/public/3218.b9650131e157c42a.js index 73b149b01..b3734a3d3 100644 --- a/server/public/3218.9a2a6eae0aa809aa.js +++ b/server/public/3218.b9650131e157c42a.js @@ -1 +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 +"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(5291);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/3438.4547ca58cf6ba4f4.js b/server/public/3438.f54dc1103b98eab1.js similarity index 99% rename from server/public/3438.4547ca58cf6ba4f4.js rename to server/public/3438.f54dc1103b98eab1.js index e92b6edbb..d54a8164a 100644 --- a/server/public/3438.4547ca58cf6ba4f4.js +++ b/server/public/3438.f54dc1103b98eab1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3438],{3438:(Ge,Z,i)=>{i.r(Z),i.d(Z,{AssertionsDetailModule:()=>Ve});var r=i(9808),c=i(325),m=i(6949),p=i(8144),u=i(3618),z=i(1945),v=i(6042),y=i(8481),f=i(647),b=i(2359),g=i(1894),C=i(5630),w=i(3309),Q=i(4682),P=i(4867),J=i(4609),M=i(694),N=i(8766),U=i(8762),Y=i(5750),_=i(712),d=i(373),I=i(1059),L=i(7625),D=i(8929),O=i(591),n=i(5e3),B=i(9350),E=i(8992),R=i(3193),j=i(8664),F=i(5623),$=i(8168),S=i(2683),V=i(2643),q=i(9077),G=i(8525),X=i(2233),H=i(759),W=i(3997);function K(e,s){if(1&e&&(n.TgZ(0,"span",8),n._uU(1,"Related to "),n.TgZ(2,"strong"),n._uU(3),n.qZA(),n._uU(4,":"),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.xp6(3),n.Oqu(t.name)}}function k(e,s){if(1&e&&(n.TgZ(0,"span",9),n.TgZ(1,"a",10),n._UZ(2,"cvc-gene-tag",11),n.qZA(),n.TgZ(3,"a",10),n._UZ(4,"cvc-variant-tag",12),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.xp6(1),n.MGl("routerLink","/genes/",t.gene.id,""),n.xp6(1),n.Q6J("gene",t.gene),n.xp6(1),n.MGl("routerLink","/variants/",t.variant.id,""),n.xp6(1),n.Q6J("variant",t.variant)}}function nn(e,s){1&e&&(n.TgZ(0,"nz-space",5),n.YNc(1,K,5,1,"span",6),n.YNc(2,k,5,4,"span",7),n.qZA())}const en=function(e){return["/assertions",e,"revise"]};function tn(e,s){if(1&e&&(n.TgZ(0,"button",26,27),n._uU(2," Revise "),n.qZA()),2&e){const t=n.MAs(1),o=n.oxw(3).ngIf;n.Q6J("routerLink",n.VKq(2,en,o.id))("nzType",t.isActive?"primary":"default")}}function sn(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,tn,3,4,"button",25),n.qZA()),2&e){const t=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",t.signedIn)}}function on(e,s){if(1&e&&(n.TgZ(0,"span"),n.TgZ(1,"button",28,27),n._uU(3," Flag "),n.qZA(),n.qZA()),2&e){const t=n.MAs(2);n.xp6(1),n.Q6J("nzType",t.isActive?"primary":"default")}}function an(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-entity-subscription-button",29),n.BQk()),2&e){const t=n.oxw(2).ngrxLet,o=n.oxw(2);n.xp6(1),n.Q6J("viewer",t)("subscribableId",o.subscribable.id)}}function rn(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,an,2,2,"ng-container",0),n.qZA()),2&e){const t=n.oxw().ngrxLet,o=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.signedIn&&o.subscribable)}}function cn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"cvc-revert-entity-button",31),n.NdJ("onReverted",function(a){return n.CHM(t),n.oxw(5).onRevertCompleted(a)}),n.qZA()}if(2&e){const t=n.oxw(4).ngIf;n.Q6J("entityId",t.id)}}function _n(e,s){1&e&&(n.ynx(0),n.YNc(1,cn,1,1,"cvc-revert-entity-button",30),n.BQk())}function ln(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,_n,2,0,"ng-container",0),n.qZA()),2&e){const t=n.oxw().ngrxLet,o=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=o.status)}}function pn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"nz-alert",32),n.NdJ("nzOnClose",function(){const l=n.CHM(t).$implicit;return n.oxw(3).onErrorBannerClose(l)}),n.qZA()}2&e&&n.Q6J("nzMessage",s.$implicit)}function gn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"nz-alert",33),n.NdJ("nzOnClose",function(){return n.CHM(t),n.oxw(3).onSuccessBannerClose()}),n.qZA()}if(2&e){const t=n.oxw(3);n.Q6J("nzMessage",t.successMessage)}}function dn(e,s){1&e&&n._UZ(0,"nz-alert",34)}function mn(e,s){if(1&e&&(n.TgZ(0,"nz-col",35),n._UZ(1,"cvc-contributor-avatars",36),n.qZA()),2&e){const t=n.oxw(3);n.xp6(1),n.Q6J("subscribable",t.subscribable)}}function zn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"cvc-moderate-entity-buttons",38),n.NdJ("onModerated",function(a){return n.CHM(t),n.oxw(4).onModerateCompleted(a)}),n.qZA()}if(2&e){const t=n.oxw(2).ngrxLet,o=n.oxw().ngIf;n.Q6J("entityId",o.id)("viewer",t)}}function un(e,s){1&e&&(n.ynx(0),n.YNc(1,zn,1,2,"cvc-moderate-entity-buttons",37),n.BQk())}const fn=function(e){return{flagged:e}};function vn(e,s){if(1&e&&(n.TgZ(0,"nz-page-header",13),n.TgZ(1,"nz-page-header-title",14),n._UZ(2,"i",15),n._uU(3),n.qZA(),n.TgZ(4,"nz-page-header-extra"),n.TgZ(5,"nz-space",16),n.YNc(6,sn,2,1,"span",17),n.YNc(7,on,4,1,"span",17),n.YNc(8,rn,2,1,"span",17),n.YNc(9,ln,2,1,"span",17),n.qZA(),n.qZA(),n.TgZ(10,"nz-page-header-content"),n.YNc(11,pn,1,1,"nz-alert",18),n.YNc(12,gn,1,1,"nz-alert",19),n.YNc(13,dn,1,0,"nz-alert",20),n.TgZ(14,"cvc-tab-navigation",21),n.ALo(15,"ngrxPush"),n.YNc(16,mn,2,1,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(18,"nz-space",23),n.YNc(19,un,2,0,"ng-container",0),n.qZA(),n.TgZ(20,"div",24),n._UZ(21,"router-outlet"),n.qZA(),n.qZA(),n.qZA()),2&e){const t=s.ngrxLet,o=n.oxw().ngIf,a=n.oxw();n.xp6(1),n.Q6J("ngClass",n.VKq(9,fn,o.flags.totalCount>0)),n.xp6(2),n.hij(" ",o.name," "),n.xp6(8),n.Q6J("ngForOf",a.errors),n.xp6(1),n.Q6J("ngIf",a.successMessage),n.xp6(1),n.Q6J("ngIf","SUBMITTED"==o.status),n.xp6(1),n.Q6J("tabs",n.lcZ(15,7,a.tabs$)),n.xp6(5),n.Q6J("ngIf",t.canModerate&&"SUBMITTED"==o.status)}}function yn(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,nn,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"div",3),n.ALo(5,"ngrxPush"),n.YNc(6,vn,22,11,"nz-page-header",4),n.qZA(),n.BQk()),2&e){const t=s.ngIf,o=n.MAs(3),a=n.oxw();n.xp6(1),n.Q6J("displayName",t.name)("relationsTpl",o),n.xp6(3),n.Q6J("flags",n.lcZ(5,4,a.flagsTotal$)),n.xp6(2),n.Q6J("ngrxLet",a.viewer$)}}let hn=(()=>{class e{constructor(t,o,a){this.gql=t,this.viewerService=o,this.route=a,this.destroy$=new D.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.errors=[],this.tabs$=new O.X(this.defaultTabs),this.paramsSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({assertionId:+l.assertionId});let A=this.queryRef.valueChanges;this.loading$=A.pipe((0,d.j)("loading"),(0,I.O)(!0)),this.assertion$=A.pipe((0,d.j)("data","assertion")),this.commentsTotal$=this.assertion$.pipe((0,d.j)("comments","totalCount")),this.flagsTotal$=this.assertion$.pipe((0,d.j)("flags","totalCount")),this.assertion$.pipe((0,d.j)("revisions","totalCount"),(0,L.R)(this.destroy$)).subscribe({next:qe=>{this.tabs$.next(this.defaultTabs.map(T=>"Revisions"===T.tabLabel?Object.assign({badgeCount:qe},T):T))}}),this.subscribable={id:+l.assertionId,entityType:_.o71.Assertion},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.paramsSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){var o;!0===t?(this.errors=[],this.successMessage="Assertion reverted to submitted status.",null===(o=this.queryRef)||void 0===o||o.refetch()):(this.errors=t,this.successMessage=void 0)}onErrorBannerClose(t){var o;this.errors=null===(o=this.errors)||void 0===o?void 0:o.filter(a=>a!=t)}onSuccessBannerClose(){this.successMessage=void 0}onModerateCompleted(t){var o;Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Assertion successfully ${t}.`,null===(o=this.queryRef)||void 0===o||o.refetch())}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(_.A94),n.Y36(B.a),n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["assertions-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],["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:assertion"],["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 Assertion 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"],["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"],["typename","Assertion",3,"viewer","subscribableId"],["entityType","Assertion",3,"entityId","onReverted",4,"nzSpaceItem"],["entityType","Assertion",3,"entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["id","contributors-col"],[3,"subscribable"],["entityType","Assertion",3,"entityId","viewer","onModerated",4,"nzSpaceItem"],["entityType","Assertion",3,"entityId","viewer","onModerated"]],template:function(t,o){1&t&&(n.YNc(0,yn,7,6,"ng-container",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,o.assertion$))},directives:[r.O5,E.I,p.NU,p.$1,u.ZU,c.yS,R.H,j.I,F.o,m.eJ,z.$O,z.u9,$.Y,r.mk,S.w,f.Ls,z.Jp,v.ix,V.dQ,c.Od,c.rH,q.Q,G.e,z.u5,r.sg,b.r,X.P,g.t3,H.N,W.m,c.lC],pipes:[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}"]}),e})();var xn=i(2278);let An=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,xn.l]]}),e})();var Tn=i(3801);let Zn=(()=>{class e{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.assertionId,entityType:_.OfU.Assertion}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,o){1&t&&n._UZ(0,"cvc-comment-list",0),2&t&&n.Q6J("commentable",o.commentable)},directives:[Tn.D],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var bn=i(7484),In=i(6559),Sn=i(4271);let Cn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,g.Jb,bn.vh,p.zf,In.H0,Sn.M]]}),e})();var wn=i(7036);let Qn=(()=>{class e{constructor(t){this.route=t,this.flaggable={entityType:_.sfv.Assertion,id:+this.route.snapshot.params.assertionId}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,o){1&t&&n._UZ(0,"cvc-flag-list-and-filter",0),2&t&&n.Q6J("flaggable",o.flaggable)},directives:[wn.L],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Pn=i(2914);let Jn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,Pn.A]]}),e})();var Mn=i(8291);let Nn=(()=>{class e{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(o=>{this.aid=+o.assertionId,this.entityType=_.oRL.Assertion})}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,o){1&t&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&n.Q6J("id",o.aid)("entityType",o.entityType)},directives:[Mn.a],styles:[""]}),e})();var h=i(3098),Un=i(9444),Yn=i(592),Ln=i(7345),Dn=i(897),On=i(8018),Bn=i(767),En=i(3580),Rn=i(6286),x=i(8625),jn=i(7026);let Fn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,m.WG,g.Jb,p.zf,g.Jb,p.zf,u.ZJ,v.sL,y.X,f.PV,h.q6,Un.s,Yn.x,Ln.W,Dn.$,On.e,Bn.Q,En.Q,Rn.y,x.$L.forChild({formatter:{useClass:jn.x,provide:x.KP}})]]}),e})();var $n=i(4590),Vn=i(125),qn=i(4022),Gn=i(6715),Xn=i(7956),Hn=i(7469),Wn=i(8965),Kn=i(4110),kn=i(9657);function ne(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",13),n.TgZ(1,"nz-descriptions-item",14),n.TgZ(2,"p",15),n._uU(3),n.qZA(),n.qZA(),n.TgZ(4,"nz-descriptions-item",16),n.TgZ(5,"p",17),n._uU(6),n.qZA(),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(3),n.Oqu(t.summary),n.xp6(2),n.Q6J("nzEllipsisRows",14),n.xp6(1),n.Oqu(t.description)}}function ee(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",18),n.TgZ(1,"nz-descriptions-item",19),n._uU(2),n.ALo(3,"evidenceEnumDisplay"),n.qZA(),n.TgZ(4,"nz-descriptions-item",20),n._uU(5),n.ALo(6,"evidenceEnumDisplay"),n.qZA(),n.TgZ(7,"nz-descriptions-item",21),n._uU(8),n.ALo(9,"evidenceEnumDisplay"),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",n.lcZ(3,4,t.assertionType)," "),n.xp6(3),n.hij(" ",n.lcZ(6,6,t.assertionDirection)," "),n.xp6(3),n.hij(" ",n.lcZ(9,8,t.clinicalSignificance)," ")}}function te(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"formatAmp"),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij(" ",n.xi3(2,1,t.ampLevel,"verbose")," ")}}function se(e,s){1&e&&(n.ynx(0),n._uU(1,",\xa0"),n.BQk())}function ie(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.YNc(2,se,2,0,"ng-container",27),n.BQk()),2&e){const t=s.$implicit,o=s.last;n.xp6(1),n.hij(" ",t.code," "),n.xp6(1),n.Q6J("ngIf",!o)}}function oe(e,s){if(1&e&&(n.ynx(0),n.YNc(1,ie,3,2,"ng-container",28),n.BQk()),2&e){const t=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngForOf",t.acmgCodes)}}function ae(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",29),n._uU(2,"None provided"),n.qZA(),n.BQk())}function re(e,s){if(1&e&&(n.ynx(0),n.YNc(1,oe,2,1,"ng-container",27),n.YNc(2,ae,3,0,"ng-container",27),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngIf",t.acmgCodes.length>0),n.xp6(1),n.Q6J("ngIf",0==t.acmgCodes.length)}}function ce(e,s){1&e&&(n.TgZ(0,"span",29),n._uU(1,"Not applicable"),n.qZA())}function _e(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",22),n.TgZ(1,"nz-descriptions-item",23),n.YNc(2,te,3,4,"ng-container",24),n.qZA(),n.TgZ(3,"nz-descriptions-item",25),n.YNc(4,re,3,2,"ng-container",24),n.qZA(),n.YNc(5,ce,2,0,"ng-template",null,26,n.W1O),n.qZA()),2&e){const t=n.MAs(6),o=n.oxw(2).ngIf,a=n.oxw();n.xp6(2),n.Q6J("ngIf",o.assertionType!=a.predisposingAssertionType$)("ngIfElse",t),n.xp6(2),n.Q6J("ngIf",o.assertionType==a.predisposingAssertionType$)("ngIfElse",t)}}function le(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",38),n._uU(1),n.ALo(2,"timeago"),n._UZ(3,"cvc-user-tag",34),n.qZA()),2&e){const t=n.oxw(4).ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,2,t.acceptanceEvent.createdAt)," by "),n.xp6(2),n.Q6J("user",t.acceptanceEvent.originatingUser)}}function pe(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",39),n._uU(1),n.ALo(2,"timeago"),n._UZ(3,"cvc-user-tag",34),n.qZA()),2&e){const t=n.oxw(4).ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,2,t.rejectionEvent.createdAt)," by "),n.xp6(2),n.Q6J("user",t.rejectionEvent.originatingUser)}}function ge(e,s){if(1&e&&(n.ynx(0),n.ynx(1,35),n.YNc(2,le,4,4,"nz-descriptions-item",36),n.YNc(3,pe,4,4,"nz-descriptions-item",37),n.BQk(),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngSwitch",null===t.rejectionEvent),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1)}}function de(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",30),n.TgZ(1,"nz-descriptions-item",31),n._UZ(2,"cvc-status-tag",32),n.qZA(),n.TgZ(3,"nz-descriptions-item",33),n._uU(4),n.ALo(5,"timeago"),n._UZ(6,"cvc-user-tag",34),n.qZA(),n.YNc(7,ge,4,3,"ng-container",27),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.xp6(2),n.Q6J("status",t.status),n.xp6(2),n.hij(" ",n.lcZ(5,4,t.submissionEvent.createdAt)," by "),n.xp6(2),n.Q6J("user",t.submissionEvent.originatingUser),n.xp6(1),n.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent)}}function me(e,s){if(1&e&&(n.TgZ(0,"a",46),n.TgZ(1,"nz-tag",47),n._UZ(2,"i",48),n._uU(3),n.qZA(),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.Q6J("href","https://reg.genome.network/allele/"+t.variant.alleleRegistryId+".html",n.LSH),n.xp6(3),n.hij("",t.variant.alleleRegistryId," ")}}function ze(e,s){1&e&&(n.TgZ(0,"span",29),n._uU(1,"None provided"),n.qZA())}function ue(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",40),n.TgZ(1,"nz-descriptions-item",41),n._UZ(2,"i",42),n.ALo(3,"evidenceEnumDisplay"),n._uU(4),n.ALo(5,"evidenceEnumDisplay"),n.qZA(),n.TgZ(6,"nz-descriptions-item",43),n.YNc(7,me,4,2,"a",44),n.YNc(8,ze,2,0,"ng-template",null,45,n.W1O),n.qZA(),n.qZA()),2&e){const t=n.MAs(9),o=n.oxw(2).ngIf;n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("nzType",n.xi3(3,5,o.variantOrigin,"icon-name")),n.xp6(2),n.hij(" ",n.lcZ(5,8,o.variantOrigin)," "),n.xp6(3),n.Q6J("ngIf",o.variant.alleleRegistryId)("ngIfElse",t)}}function fe(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",52),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("disease",t.disease)}}function ve(e,s){1&e&&(n.TgZ(0,"span",29),n._uU(1,"Not applicable"),n.qZA())}function ye(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",29),n._uU(2,"None Specified"),n.qZA(),n.BQk())}function he(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-phenotype-tag",53),n.BQk()),2&e){const t=s.$implicit;n.xp6(1),n.Q6J("phenotype",t)}}function xe(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,he,2,1,"ng-container",28),n.qZA(),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",t.phenotypes)}}function Ae(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",13),n.TgZ(1,"nz-descriptions-item",49),n.YNc(2,fe,2,1,"ng-container",27),n.YNc(3,ve,2,0,"span",50),n.qZA(),n.TgZ(4,"nz-descriptions-item",51),n.YNc(5,ye,3,0,"ng-container",27),n.YNc(6,xe,3,1,"ng-container",27),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzColumn",void 0!==t.disease.name&&t.phenotypes.length>0?1:2),n.xp6(2),n.Q6J("ngIf",t.disease.name),n.xp6(1),n.Q6J("ngIf",!t.disease.name),n.xp6(1),n.Q6J("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),n.xp6(1),n.Q6J("ngIf",0===t.phenotypes.length),n.xp6(1),n.Q6J("ngIf",t.phenotypes.length>0)}}function Te(e,s){1&e&&(n.TgZ(0,"span",29),n._uU(1,"Not applicable"),n.qZA())}function Ze(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-drug-tag",58),n.BQk()),2&e){const t=s.$implicit;n.xp6(1),n.Q6J("drug",t)}}function be(e,s){if(1&e&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,Ze,2,1,"ng-container",28),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",t.drugs)}}function Ie(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",54),n.TgZ(1,"nz-descriptions-item",51),n.ynx(2,55),n.YNc(3,Te,2,0,"ng-template",56),n.YNc(4,be,2,1,"ng-template",57),n.BQk(),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzLayout",t.drugs.length>1?"vertical":"horizontal"),n.xp6(1),n.Q6J("nzTitle",t.drugs.length>1?"Drugs":"Drug"),n.xp6(1),n.Q6J("ngPlural",t.drugs.length)}}function Se(e,s){1&e&&n._UZ(0,"i",63),2&e&&n.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Ce(e,s){1&e&&n._UZ(0,"i",63),2&e&&n.Q6J("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function we(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,t.regulatoryApprovalLastUpdated),") ")}}function Qe(e,s){1&e&&n._UZ(0,"i",63),2&e&&n.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Pe(e,s){1&e&&n._UZ(0,"i",63),2&e&&n.Q6J("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Je(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,t.fdaCompanionTestLastUpdated),") ")}}function Me(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.AsE("",t.nccnGuideline.name," (",t.nccnGuidelineVersion,")")}}function Ne(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",29),n._uU(2,"None Provided"),n.qZA(),n.BQk())}function Ue(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",40),n.TgZ(1,"nz-descriptions-item",59),n.YNc(2,Se,1,3,"i",60),n.YNc(3,Ce,1,3,"i",60),n.YNc(4,we,3,3,"ng-container",27),n.qZA(),n.TgZ(5,"nz-descriptions-item",61),n.YNc(6,Qe,1,3,"i",60),n.YNc(7,Pe,1,3,"i",60),n.YNc(8,Je,3,3,"ng-container",27),n.qZA(),n.TgZ(9,"nz-descriptions-item",62),n.YNc(10,Me,2,2,"ng-container",27),n.YNc(11,Ne,3,0,"ng-container",27),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",t.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",!t.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",t.regulatoryApprovalLastUpdated),n.xp6(2),n.Q6J("ngIf",t.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",!t.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",t.fdaCompanionTestLastUpdated),n.xp6(2),n.Q6J("ngIf",t.nccnGuideline),n.xp6(1),n.Q6J("ngIf",!t.nccnGuideline)}}function Ye(e,s){1&e&&(n.TgZ(0,"nz-row",4),n.TgZ(1,"nz-col",5),n.TgZ(2,"nz-space",6),n.YNc(3,ne,7,4,"nz-descriptions",7),n.YNc(4,ee,10,10,"nz-descriptions",8),n.YNc(5,_e,7,4,"nz-descriptions",9),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",5),n.TgZ(7,"nz-space",6),n.YNc(8,de,8,6,"nz-descriptions",10),n.YNc(9,ue,10,10,"nz-descriptions",11),n.YNc(10,Ae,7,6,"nz-descriptions",7),n.YNc(11,Ie,5,3,"nz-descriptions",12),n.YNc(12,Ue,12,9,"nz-descriptions",11),n.qZA(),n.qZA(),n.qZA()),2&e&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(5),n.Q6J("nzSpan",12))}function Le(e,s){if(1&e&&n._UZ(0,"cvc-evidence-table",64),2&e){const t=n.oxw().ngIf;n.MGl("cvcTitle","",t.name," Evidence"),n.Q6J("assertionId",t.id)}}function De(e,s){1&e&&(n.TgZ(0,"nz-space",1),n.YNc(1,Ye,13,3,"nz-row",2),n.YNc(2,Le,1,2,"cvc-evidence-table",3),n.qZA())}let Oe=(()=>{class e{constructor(t,o){var a;if(this.gql=t,this.route=o,this.predisposingAssertionType$=_.uBv.Predisposing,null==(a=this.assertionId?this.assertionId:+this.route.snapshot.params.assertionId))throw new Error("Must pass in an assertion ID as an input or via the route.");this.queryRef=this.gql.watch({assertionId:a});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,d.j)("loading"),(0,I.O)(!0)),this.assertion$=l.pipe((0,d.j)("data","assertion")),this.subscribable={entityType:_.o71.Assertion,id:a}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(_.ejK),n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertion-summary"]],inputs:{assertionId:"assertionId"},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,"assertionId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true","class","status-tags",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzLayout",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Summary"],["nz-typography",""],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzLayout","horizontal","nzSize","small","nzBordered","true"],["nzTitle","AMP/ASCO/CAP Category"],[4,"ngIf","ngIfElse"],["nzTitle","ACMG Codes"],["notApplicable",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nzLayout","horizontal","nzSize","small","nzBordered","true",1,"status-tags"],["nzTitle","Status"],[3,"status"],["nzTitle","Submitted"],[3,"user"],[3,"ngSwitch"],["nzTitle","Accepted",4,"ngSwitchCase"],["nzTitle","Rejected",4,"ngSwitchCase"],["nzTitle","Accepted"],["nzTitle","Rejected"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variant Origin"],["nz-icon","",3,"nzType"],["nzTitle","Allele Registry ID"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["noAlleleRegistry",""],["target","_blank",3,"href"],["nzColor","default"],["nz-icon","","nzType","link","nzTheme","outline"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"nzTitle"],[3,"disease"],[3,"phenotype"],["nzSize","small","nzBordered","true",3,"nzLayout"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],[3,"drug"],["nzTitle","Regulatory Approval","nzSpan","1"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor",4,"ngIf"],["nzTitle","FDA Companion Test","nzSpan","1"],["nzTitle","NCCN Guideline","nzSpan","2"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor"],[3,"assertionId","cvcTitle"]],template:function(t,o){1&t&&(n.YNc(0,De,3,0,"nz-space",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,o.assertion$))},directives:[r.O5,p.NU,p.$1,g.SK,g.t3,h.R7,h.uj,u.ZU,r.sg,$n.h,Vn.I,r.RF,r.n9,S.w,f.Ls,y.j,qn.n,Gn.$,Xn.i,r.iq,r.zE,Hn.u,Wn.a],pipes:[m.fM,Kn.D,kn.t,x.wr],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),e})();var Be=i(2011);let Ee=(()=>{class e{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.assertionId,entityType:_.o71.Assertion}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,o){1&t&&n._UZ(0,"cvc-event-feed",0),2&t&&n.Q6J("subscribable",o.subscribable)},directives:[Be.o],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Re=i(4292);let je=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,Re.t]]}),e})();const Fe=[{path:"",component:hn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Oe,data:{breadcrumb:"Summary"}},{path:"events",component:Ee,data:{breadcrumb:"Events"}},{path:"comments",component:Zn,data:{breadcrumb:"Comments"}},{path:"revisions",component:Nn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Qn,data:{breadcrumb:"Flags"}}]}];let $e=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[c.Bz.forChild(Fe),Fn,An,Jn,Cn,je],c.Bz]}),e})(),Ve=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,$e,c.Bz,m.WG,p.zf,u.ZJ,z.KJ,v.sL,y.X,f.PV,b.L,g.Jb,C.D,w.U,Q.m,P.Q,J.g,M.G,N.P,U.c,Y.Z]]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3438],{3438:(Ge,Z,i)=>{i.r(Z),i.d(Z,{AssertionsDetailModule:()=>Ve});var r=i(9808),c=i(325),m=i(6949),p=i(8144),u=i(3618),z=i(1945),v=i(6042),y=i(8481),f=i(647),b=i(2359),g=i(1894),C=i(5630),w=i(3309),Q=i(4682),P=i(4867),J=i(4609),M=i(694),N=i(8766),U=i(8762),Y=i(5750),_=i(712),d=i(373),I=i(1059),L=i(7625),D=i(8929),O=i(591),n=i(5e3),B=i(9350),E=i(8992),R=i(3193),j=i(8664),F=i(5623),$=i(8168),S=i(2683),V=i(2643),q=i(9077),G=i(8525),X=i(2233),H=i(759),W=i(3997);function K(e,s){if(1&e&&(n.TgZ(0,"span",8),n._uU(1,"Related to "),n.TgZ(2,"strong"),n._uU(3),n.qZA(),n._uU(4,":"),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.xp6(3),n.Oqu(t.name)}}function k(e,s){if(1&e&&(n.TgZ(0,"span",9),n.TgZ(1,"a",10),n._UZ(2,"cvc-gene-tag",11),n.qZA(),n.TgZ(3,"a",10),n._UZ(4,"cvc-variant-tag",12),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.xp6(1),n.MGl("routerLink","/genes/",t.gene.id,""),n.xp6(1),n.Q6J("gene",t.gene),n.xp6(1),n.MGl("routerLink","/variants/",t.variant.id,""),n.xp6(1),n.Q6J("variant",t.variant)}}function nn(e,s){1&e&&(n.TgZ(0,"nz-space",5),n.YNc(1,K,5,1,"span",6),n.YNc(2,k,5,4,"span",7),n.qZA())}const en=function(e){return["/assertions",e,"revise"]};function tn(e,s){if(1&e&&(n.TgZ(0,"button",26,27),n._uU(2," Revise "),n.qZA()),2&e){const t=n.MAs(1),o=n.oxw(3).ngIf;n.Q6J("routerLink",n.VKq(2,en,o.id))("nzType",t.isActive?"primary":"default")}}function sn(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,tn,3,4,"button",25),n.qZA()),2&e){const t=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",t.signedIn)}}function on(e,s){if(1&e&&(n.TgZ(0,"span"),n.TgZ(1,"button",28,27),n._uU(3," Flag "),n.qZA(),n.qZA()),2&e){const t=n.MAs(2);n.xp6(1),n.Q6J("nzType",t.isActive?"primary":"default")}}function an(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-entity-subscription-button",29),n.BQk()),2&e){const t=n.oxw(2).ngrxLet,o=n.oxw(2);n.xp6(1),n.Q6J("viewer",t)("subscribableId",o.subscribable.id)}}function rn(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,an,2,2,"ng-container",0),n.qZA()),2&e){const t=n.oxw().ngrxLet,o=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.signedIn&&o.subscribable)}}function cn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"cvc-revert-entity-button",31),n.NdJ("onReverted",function(a){return n.CHM(t),n.oxw(5).onRevertCompleted(a)}),n.qZA()}if(2&e){const t=n.oxw(4).ngIf;n.Q6J("entityId",t.id)}}function _n(e,s){1&e&&(n.ynx(0),n.YNc(1,cn,1,1,"cvc-revert-entity-button",30),n.BQk())}function ln(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,_n,2,0,"ng-container",0),n.qZA()),2&e){const t=n.oxw().ngrxLet,o=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=o.status)}}function pn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"nz-alert",32),n.NdJ("nzOnClose",function(){const l=n.CHM(t).$implicit;return n.oxw(3).onErrorBannerClose(l)}),n.qZA()}2&e&&n.Q6J("nzMessage",s.$implicit)}function gn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"nz-alert",33),n.NdJ("nzOnClose",function(){return n.CHM(t),n.oxw(3).onSuccessBannerClose()}),n.qZA()}if(2&e){const t=n.oxw(3);n.Q6J("nzMessage",t.successMessage)}}function dn(e,s){1&e&&n._UZ(0,"nz-alert",34)}function mn(e,s){if(1&e&&(n.TgZ(0,"nz-col",35),n._UZ(1,"cvc-contributor-avatars",36),n.qZA()),2&e){const t=n.oxw(3);n.xp6(1),n.Q6J("subscribable",t.subscribable)}}function zn(e,s){if(1&e){const t=n.EpF();n.TgZ(0,"cvc-moderate-entity-buttons",38),n.NdJ("onModerated",function(a){return n.CHM(t),n.oxw(4).onModerateCompleted(a)}),n.qZA()}if(2&e){const t=n.oxw(2).ngrxLet,o=n.oxw().ngIf;n.Q6J("entityId",o.id)("viewer",t)}}function un(e,s){1&e&&(n.ynx(0),n.YNc(1,zn,1,2,"cvc-moderate-entity-buttons",37),n.BQk())}const fn=function(e){return{flagged:e}};function vn(e,s){if(1&e&&(n.TgZ(0,"nz-page-header",13),n.TgZ(1,"nz-page-header-title",14),n._UZ(2,"i",15),n._uU(3),n.qZA(),n.TgZ(4,"nz-page-header-extra"),n.TgZ(5,"nz-space",16),n.YNc(6,sn,2,1,"span",17),n.YNc(7,on,4,1,"span",17),n.YNc(8,rn,2,1,"span",17),n.YNc(9,ln,2,1,"span",17),n.qZA(),n.qZA(),n.TgZ(10,"nz-page-header-content"),n.YNc(11,pn,1,1,"nz-alert",18),n.YNc(12,gn,1,1,"nz-alert",19),n.YNc(13,dn,1,0,"nz-alert",20),n.TgZ(14,"cvc-tab-navigation",21),n.ALo(15,"ngrxPush"),n.YNc(16,mn,2,1,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(18,"nz-space",23),n.YNc(19,un,2,0,"ng-container",0),n.qZA(),n.TgZ(20,"div",24),n._UZ(21,"router-outlet"),n.qZA(),n.qZA(),n.qZA()),2&e){const t=s.ngrxLet,o=n.oxw().ngIf,a=n.oxw();n.xp6(1),n.Q6J("ngClass",n.VKq(9,fn,o.flags.totalCount>0)),n.xp6(2),n.hij(" ",o.name," "),n.xp6(8),n.Q6J("ngForOf",a.errors),n.xp6(1),n.Q6J("ngIf",a.successMessage),n.xp6(1),n.Q6J("ngIf","SUBMITTED"==o.status),n.xp6(1),n.Q6J("tabs",n.lcZ(15,7,a.tabs$)),n.xp6(5),n.Q6J("ngIf",t.canModerate&&"SUBMITTED"==o.status)}}function yn(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,nn,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"div",3),n.ALo(5,"ngrxPush"),n.YNc(6,vn,22,11,"nz-page-header",4),n.qZA(),n.BQk()),2&e){const t=s.ngIf,o=n.MAs(3),a=n.oxw();n.xp6(1),n.Q6J("displayName",t.name)("relationsTpl",o),n.xp6(3),n.Q6J("flags",n.lcZ(5,4,a.flagsTotal$)),n.xp6(2),n.Q6J("ngrxLet",a.viewer$)}}let hn=(()=>{class e{constructor(t,o,a){this.gql=t,this.viewerService=o,this.route=a,this.destroy$=new D.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.errors=[],this.tabs$=new O.X(this.defaultTabs),this.paramsSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({assertionId:+l.assertionId});let A=this.queryRef.valueChanges;this.loading$=A.pipe((0,d.j)("loading"),(0,I.O)(!0)),this.assertion$=A.pipe((0,d.j)("data","assertion")),this.commentsTotal$=this.assertion$.pipe((0,d.j)("comments","totalCount")),this.flagsTotal$=this.assertion$.pipe((0,d.j)("flags","totalCount")),this.assertion$.pipe((0,d.j)("revisions","totalCount"),(0,L.R)(this.destroy$)).subscribe({next:qe=>{this.tabs$.next(this.defaultTabs.map(T=>"Revisions"===T.tabLabel?Object.assign({badgeCount:qe},T):T))}}),this.subscribable={id:+l.assertionId,entityType:_.o71.Assertion},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.paramsSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){var o;!0===t?(this.errors=[],this.successMessage="Assertion reverted to submitted status.",null===(o=this.queryRef)||void 0===o||o.refetch()):(this.errors=t,this.successMessage=void 0)}onErrorBannerClose(t){var o;this.errors=null===(o=this.errors)||void 0===o?void 0:o.filter(a=>a!=t)}onSuccessBannerClose(){this.successMessage=void 0}onModerateCompleted(t){var o;Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Assertion successfully ${t}.`,null===(o=this.queryRef)||void 0===o||o.refetch())}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(_.A94),n.Y36(B.a),n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["assertions-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["assertionRelations",""],["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:assertion"],["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 Assertion 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"],["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"],["typename","Assertion",3,"viewer","subscribableId"],["entityType","Assertion",3,"entityId","onReverted",4,"nzSpaceItem"],["entityType","Assertion",3,"entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["id","contributors-col"],[3,"subscribable"],["entityType","Assertion",3,"entityId","viewer","onModerated",4,"nzSpaceItem"],["entityType","Assertion",3,"entityId","viewer","onModerated"]],template:function(t,o){1&t&&(n.YNc(0,yn,7,6,"ng-container",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,o.assertion$))},directives:[r.O5,E.I,p.NU,p.$1,u.ZU,c.yS,R.H,j.I,F.o,m.eJ,z.$O,z.u9,$.Y,r.mk,S.w,f.Ls,z.Jp,v.ix,V.dQ,c.Od,c.rH,q.Q,G.e,z.u5,r.sg,b.r,X.P,g.t3,H.N,W.m,c.lC],pipes:[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}"]}),e})();var xn=i(2278);let An=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,xn.l]]}),e})();var Tn=i(3801);let Zn=(()=>{class e{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.assertionId,entityType:_.OfU.Assertion}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,o){1&t&&n._UZ(0,"cvc-comment-list",0),2&t&&n.Q6J("commentable",o.commentable)},directives:[Tn.D],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var bn=i(7484),In=i(6559),Sn=i(4271);let Cn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,g.Jb,bn.vh,p.zf,In.H0,Sn.M]]}),e})();var wn=i(7036);let Qn=(()=>{class e{constructor(t){this.route=t,this.flaggable={entityType:_.sfv.Assertion,id:+this.route.snapshot.params.assertionId}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,o){1&t&&n._UZ(0,"cvc-flag-list-and-filter",0),2&t&&n.Q6J("flaggable",o.flaggable)},directives:[wn.L],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Pn=i(2914);let Jn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,Pn.A]]}),e})();var Mn=i(8291);let Nn=(()=>{class e{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(o=>{this.aid=+o.assertionId,this.entityType=_.oRL.Assertion})}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,o){1&t&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&n.Q6J("id",o.aid)("entityType",o.entityType)},directives:[Mn.a],styles:[""]}),e})();var h=i(3098),Un=i(9444),Yn=i(592),Ln=i(7345),Dn=i(897),On=i(8018),Bn=i(767),En=i(3580),Rn=i(6286),x=i(8625),jn=i(7026);let Fn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,m.WG,g.Jb,p.zf,g.Jb,p.zf,u.ZJ,v.sL,y.X,f.PV,h.q6,Un.s,Yn.x,Ln.W,Dn.$,On.e,Bn.Q,En.Q,Rn.y,x.$L.forChild({formatter:{useClass:jn.x,provide:x.KP}})]]}),e})();var $n=i(4590),Vn=i(125),qn=i(4022),Gn=i(6715),Xn=i(7956),Hn=i(7469),Wn=i(8965),Kn=i(4110),kn=i(9657);function ne(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",13),n.TgZ(1,"nz-descriptions-item",14),n.TgZ(2,"p",15),n._uU(3),n.qZA(),n.qZA(),n.TgZ(4,"nz-descriptions-item",16),n.TgZ(5,"p",17),n._uU(6),n.qZA(),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(3),n.Oqu(t.summary),n.xp6(2),n.Q6J("nzEllipsisRows",14),n.xp6(1),n.Oqu(t.description)}}function ee(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",18),n.TgZ(1,"nz-descriptions-item",19),n._uU(2),n.ALo(3,"evidenceEnumDisplay"),n.qZA(),n.TgZ(4,"nz-descriptions-item",20),n._uU(5),n.ALo(6,"evidenceEnumDisplay"),n.qZA(),n.TgZ(7,"nz-descriptions-item",21),n._uU(8),n.ALo(9,"evidenceEnumDisplay"),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",n.lcZ(3,4,t.assertionType)," "),n.xp6(3),n.hij(" ",n.lcZ(6,6,t.assertionDirection)," "),n.xp6(3),n.hij(" ",n.lcZ(9,8,t.clinicalSignificance)," ")}}function te(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"formatAmp"),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij(" ",n.xi3(2,1,t.ampLevel,"verbose")," ")}}function se(e,s){1&e&&(n.ynx(0),n._uU(1,",\xa0"),n.BQk())}function ie(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.YNc(2,se,2,0,"ng-container",27),n.BQk()),2&e){const t=s.$implicit,o=s.last;n.xp6(1),n.hij(" ",t.code," "),n.xp6(1),n.Q6J("ngIf",!o)}}function oe(e,s){if(1&e&&(n.ynx(0),n.YNc(1,ie,3,2,"ng-container",28),n.BQk()),2&e){const t=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngForOf",t.acmgCodes)}}function ae(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",29),n._uU(2,"None provided"),n.qZA(),n.BQk())}function re(e,s){if(1&e&&(n.ynx(0),n.YNc(1,oe,2,1,"ng-container",27),n.YNc(2,ae,3,0,"ng-container",27),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngIf",t.acmgCodes.length>0),n.xp6(1),n.Q6J("ngIf",0==t.acmgCodes.length)}}function ce(e,s){1&e&&(n.TgZ(0,"span",29),n._uU(1,"Not applicable"),n.qZA())}function _e(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",22),n.TgZ(1,"nz-descriptions-item",23),n.YNc(2,te,3,4,"ng-container",24),n.qZA(),n.TgZ(3,"nz-descriptions-item",25),n.YNc(4,re,3,2,"ng-container",24),n.qZA(),n.YNc(5,ce,2,0,"ng-template",null,26,n.W1O),n.qZA()),2&e){const t=n.MAs(6),o=n.oxw(2).ngIf,a=n.oxw();n.xp6(2),n.Q6J("ngIf",o.assertionType!=a.predisposingAssertionType$)("ngIfElse",t),n.xp6(2),n.Q6J("ngIf",o.assertionType==a.predisposingAssertionType$)("ngIfElse",t)}}function le(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",38),n._uU(1),n.ALo(2,"timeago"),n._UZ(3,"cvc-user-tag",34),n.qZA()),2&e){const t=n.oxw(4).ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,2,t.acceptanceEvent.createdAt)," by "),n.xp6(2),n.Q6J("user",t.acceptanceEvent.originatingUser)}}function pe(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",39),n._uU(1),n.ALo(2,"timeago"),n._UZ(3,"cvc-user-tag",34),n.qZA()),2&e){const t=n.oxw(4).ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,2,t.rejectionEvent.createdAt)," by "),n.xp6(2),n.Q6J("user",t.rejectionEvent.originatingUser)}}function ge(e,s){if(1&e&&(n.ynx(0),n.ynx(1,35),n.YNc(2,le,4,4,"nz-descriptions-item",36),n.YNc(3,pe,4,4,"nz-descriptions-item",37),n.BQk(),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngSwitch",null===t.rejectionEvent),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1)}}function de(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",30),n.TgZ(1,"nz-descriptions-item",31),n._UZ(2,"cvc-status-tag",32),n.qZA(),n.TgZ(3,"nz-descriptions-item",33),n._uU(4),n.ALo(5,"timeago"),n._UZ(6,"cvc-user-tag",34),n.qZA(),n.YNc(7,ge,4,3,"ng-container",27),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.xp6(2),n.Q6J("status",t.status),n.xp6(2),n.hij(" ",n.lcZ(5,4,t.submissionEvent.createdAt)," by "),n.xp6(2),n.Q6J("user",t.submissionEvent.originatingUser),n.xp6(1),n.Q6J("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent)}}function me(e,s){if(1&e&&(n.TgZ(0,"a",46),n.TgZ(1,"nz-tag",47),n._UZ(2,"i",48),n._uU(3),n.qZA(),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.Q6J("href","https://reg.genome.network/allele/"+t.variant.alleleRegistryId+".html",n.LSH),n.xp6(3),n.hij("",t.variant.alleleRegistryId," ")}}function ze(e,s){1&e&&(n.TgZ(0,"span",29),n._uU(1,"None provided"),n.qZA())}function ue(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",40),n.TgZ(1,"nz-descriptions-item",41),n._UZ(2,"i",42),n.ALo(3,"evidenceEnumDisplay"),n._uU(4),n.ALo(5,"evidenceEnumDisplay"),n.qZA(),n.TgZ(6,"nz-descriptions-item",43),n.YNc(7,me,4,2,"a",44),n.YNc(8,ze,2,0,"ng-template",null,45,n.W1O),n.qZA(),n.qZA()),2&e){const t=n.MAs(9),o=n.oxw(2).ngIf;n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("nzType",n.xi3(3,5,o.variantOrigin,"icon-name")),n.xp6(2),n.hij(" ",n.lcZ(5,8,o.variantOrigin)," "),n.xp6(3),n.Q6J("ngIf",o.variant.alleleRegistryId)("ngIfElse",t)}}function fe(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",52),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("disease",t.disease)}}function ve(e,s){1&e&&(n.TgZ(0,"span",29),n._uU(1,"Not applicable"),n.qZA())}function ye(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",29),n._uU(2,"None Specified"),n.qZA(),n.BQk())}function he(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-phenotype-tag",53),n.BQk()),2&e){const t=s.$implicit;n.xp6(1),n.Q6J("phenotype",t)}}function xe(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,he,2,1,"ng-container",28),n.qZA(),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",t.phenotypes)}}function Ae(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",13),n.TgZ(1,"nz-descriptions-item",49),n.YNc(2,fe,2,1,"ng-container",27),n.YNc(3,ve,2,0,"span",50),n.qZA(),n.TgZ(4,"nz-descriptions-item",51),n.YNc(5,ye,3,0,"ng-container",27),n.YNc(6,xe,3,1,"ng-container",27),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzColumn",void 0!==t.disease.name&&t.phenotypes.length>0?1:2),n.xp6(2),n.Q6J("ngIf",t.disease.name),n.xp6(1),n.Q6J("ngIf",!t.disease.name),n.xp6(1),n.Q6J("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),n.xp6(1),n.Q6J("ngIf",0===t.phenotypes.length),n.xp6(1),n.Q6J("ngIf",t.phenotypes.length>0)}}function Te(e,s){1&e&&(n.TgZ(0,"span",29),n._uU(1,"Not applicable"),n.qZA())}function Ze(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-drug-tag",58),n.BQk()),2&e){const t=s.$implicit;n.xp6(1),n.Q6J("drug",t)}}function be(e,s){if(1&e&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,Ze,2,1,"ng-container",28),n.qZA()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",t.drugs)}}function Ie(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",54),n.TgZ(1,"nz-descriptions-item",51),n.ynx(2,55),n.YNc(3,Te,2,0,"ng-template",56),n.YNc(4,be,2,1,"ng-template",57),n.BQk(),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzLayout",t.drugs.length>1?"vertical":"horizontal"),n.xp6(1),n.Q6J("nzTitle",t.drugs.length>1?"Drugs":"Drug"),n.xp6(1),n.Q6J("ngPlural",t.drugs.length)}}function Se(e,s){1&e&&n._UZ(0,"i",63),2&e&&n.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Ce(e,s){1&e&&n._UZ(0,"i",63),2&e&&n.Q6J("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function we(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,t.regulatoryApprovalLastUpdated),") ")}}function Qe(e,s){1&e&&n._UZ(0,"i",63),2&e&&n.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Pe(e,s){1&e&&n._UZ(0,"i",63),2&e&&n.Q6J("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Je(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,t.fdaCompanionTestLastUpdated),") ")}}function Me(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(1),n.AsE("",t.nccnGuideline.name," (",t.nccnGuidelineVersion,")")}}function Ne(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",29),n._uU(2,"None Provided"),n.qZA(),n.BQk())}function Ue(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",40),n.TgZ(1,"nz-descriptions-item",59),n.YNc(2,Se,1,3,"i",60),n.YNc(3,Ce,1,3,"i",60),n.YNc(4,we,3,3,"ng-container",27),n.qZA(),n.TgZ(5,"nz-descriptions-item",61),n.YNc(6,Qe,1,3,"i",60),n.YNc(7,Pe,1,3,"i",60),n.YNc(8,Je,3,3,"ng-container",27),n.qZA(),n.TgZ(9,"nz-descriptions-item",62),n.YNc(10,Me,2,2,"ng-container",27),n.YNc(11,Ne,3,0,"ng-container",27),n.qZA(),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",t.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",!t.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",t.regulatoryApprovalLastUpdated),n.xp6(2),n.Q6J("ngIf",t.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",!t.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",t.fdaCompanionTestLastUpdated),n.xp6(2),n.Q6J("ngIf",t.nccnGuideline),n.xp6(1),n.Q6J("ngIf",!t.nccnGuideline)}}function Ye(e,s){1&e&&(n.TgZ(0,"nz-row",4),n.TgZ(1,"nz-col",5),n.TgZ(2,"nz-space",6),n.YNc(3,ne,7,4,"nz-descriptions",7),n.YNc(4,ee,10,10,"nz-descriptions",8),n.YNc(5,_e,7,4,"nz-descriptions",9),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",5),n.TgZ(7,"nz-space",6),n.YNc(8,de,8,6,"nz-descriptions",10),n.YNc(9,ue,10,10,"nz-descriptions",11),n.YNc(10,Ae,7,6,"nz-descriptions",7),n.YNc(11,Ie,5,3,"nz-descriptions",12),n.YNc(12,Ue,12,9,"nz-descriptions",11),n.qZA(),n.qZA(),n.qZA()),2&e&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(5),n.Q6J("nzSpan",12))}function Le(e,s){if(1&e&&n._UZ(0,"cvc-evidence-table",64),2&e){const t=n.oxw().ngIf;n.MGl("cvcTitle","",t.name," Evidence"),n.Q6J("assertionId",t.id)}}function De(e,s){1&e&&(n.TgZ(0,"nz-space",1),n.YNc(1,Ye,13,3,"nz-row",2),n.YNc(2,Le,1,2,"cvc-evidence-table",3),n.qZA())}let Oe=(()=>{class e{constructor(t,o){var a;if(this.gql=t,this.route=o,this.predisposingAssertionType$=_.uBv.Predisposing,null==(a=this.assertionId?this.assertionId:+this.route.snapshot.params.assertionId))throw new Error("Must pass in an assertion ID as an input or via the route.");this.queryRef=this.gql.watch({assertionId:a});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,d.j)("loading"),(0,I.O)(!0)),this.assertion$=l.pipe((0,d.j)("data","assertion")),this.subscribable={entityType:_.o71.Assertion,id:a}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(_.ejK),n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertion-summary"]],inputs:{assertionId:"assertionId"},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,"assertionId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true","class","status-tags",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzLayout",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Summary"],["nz-typography",""],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzLayout","horizontal","nzSize","small","nzBordered","true"],["nzTitle","AMP/ASCO/CAP Category"],[4,"ngIf","ngIfElse"],["nzTitle","ACMG Codes"],["notApplicable",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nzLayout","horizontal","nzSize","small","nzBordered","true",1,"status-tags"],["nzTitle","Status"],[3,"status"],["nzTitle","Submitted"],[3,"user"],[3,"ngSwitch"],["nzTitle","Accepted",4,"ngSwitchCase"],["nzTitle","Rejected",4,"ngSwitchCase"],["nzTitle","Accepted"],["nzTitle","Rejected"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variant Origin"],["nz-icon","",3,"nzType"],["nzTitle","Allele Registry ID"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["noAlleleRegistry",""],["target","_blank",3,"href"],["nzColor","default"],["nz-icon","","nzType","link","nzTheme","outline"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"nzTitle"],[3,"disease"],[3,"phenotype"],["nzSize","small","nzBordered","true",3,"nzLayout"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],[3,"drug"],["nzTitle","Regulatory Approval","nzSpan","1"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor",4,"ngIf"],["nzTitle","FDA Companion Test","nzSpan","1"],["nzTitle","NCCN Guideline","nzSpan","2"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor"],[3,"assertionId","cvcTitle"]],template:function(t,o){1&t&&(n.YNc(0,De,3,0,"nz-space",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,o.assertion$))},directives:[r.O5,p.NU,p.$1,g.SK,g.t3,h.R7,h.uj,u.ZU,r.sg,$n.h,Vn.I,r.RF,r.n9,S.w,f.Ls,y.j,qn.n,Gn.$,Xn.i,r.iq,r.zE,Hn.u,Wn.a],pipes:[m.fM,Kn.D,kn.t,x.wr],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),e})();var Be=i(2011);let Ee=(()=>{class e{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.assertionId,entityType:_.o71.Assertion}}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(c.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-assertions-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,o){1&t&&n._UZ(0,"cvc-event-feed",0),2&t&&n.Q6J("subscribable",o.subscribable)},directives:[Be.o],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Re=i(5291);let je=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,Re.t]]}),e})();const Fe=[{path:"",component:hn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Oe,data:{breadcrumb:"Summary"}},{path:"events",component:Ee,data:{breadcrumb:"Events"}},{path:"comments",component:Zn,data:{breadcrumb:"Comments"}},{path:"revisions",component:Nn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Qn,data:{breadcrumb:"Flags"}}]}];let $e=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[c.Bz.forChild(Fe),Fn,An,Jn,Cn,je],c.Bz]}),e})(),Ve=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,$e,c.Bz,m.WG,p.zf,u.ZJ,z.KJ,v.sL,y.X,f.PV,b.L,g.Jb,C.D,w.U,Q.m,P.Q,J.g,M.G,N.P,U.c,Y.Z]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/3894.018c5c978b2c0e0b.js b/server/public/3894.f1b117e8387ec68f.js similarity index 98% rename from server/public/3894.018c5c978b2c0e0b.js rename to server/public/3894.f1b117e8387ec68f.js index 582fb5aa4..acdadf748 100644 --- a/server/public/3894.018c5c978b2c0e0b.js +++ b/server/public/3894.f1b117e8387ec68f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3894],{112:(J,z,o)=>{o.d(z,{u:()=>Q});var n=o(5e3),p=o(9808),t=o(325),g=o(8481),O=o(3610),P=o(4850),_=o(712),T=o(7484),h=o(3098),I=o(8664),E=o(6906),M=o(6949);function C(e,s){if(1&e&&(n._UZ(0,"i",7),n._uU(1)),2&e){const i=n.oxw().ngIf;n.xp6(1),n.hij(" ",i.name," ")}}function x(e,s){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"cvc-variant-tag",10),n.qZA()),2&e){const i=s.$implicit;n.xp6(1),n.Q6J("variant",i.node)}}function y(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",8),n.YNc(1,x,2,1,"span",9),n.qZA()),2&e){const i=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",i.variants.edges)}}function D(e,s){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"cvc-source-tag",12),n.qZA()),2&e){const i=s.$implicit;n.xp6(1),n.Q6J("source",i)}}function A(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",11),n.YNc(1,D,2,1,"span",9),n.qZA()),2&e){const i=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",i.sources)}}function G(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,C,2,1,"ng-template",null,3,n.W1O),n._uU(4),n.TgZ(5,"nz-descriptions",4),n.YNc(6,y,2,1,"nz-descriptions-item",5),n.YNc(7,A,2,1,"nz-descriptions-item",6),n.qZA(),n.qZA(),n.BQk()),2&e){const i=s.ngIf,m=n.MAs(3);n.xp6(1),n.Q6J("nzTitle",m),n.xp6(3),n.hij(" ",i.description," "),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",i.variants.edges.length>0),n.xp6(1),n.Q6J("ngIf",i.sources.length>0)}}let N=(()=>{class e{constructor(i){this.gql=i}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,P.U)(({data:i})=>i.variantGroup))}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(_.Zo2))},e.\u0275cmp=n.Xpm({type:e,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(i,m){1&i&&(n.TgZ(0,"div",0),n.YNc(1,G,8,5,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&i&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,m.variantGroup$)))},directives:[p.O5,T.bd,h.R7,h.uj,p.sg,I.I,E.T],pipes:[M.fM],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var c=o(647);function d(e,s){}function u(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,d,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){const i=n.oxw(),m=n.MAs(2);n.xp6(1),n.Q6J("routerLink",i.variantgroup.link),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function S(e,s){}function Z(e,s){if(1&e&&(n.TgZ(0,"nz-tag",9),n.YNc(1,S,0,0,"ng-template",6),n.qZA()),2&e){n.oxw();const i=n.MAs(2);n.oxw();const m=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",i),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function r(e,s){if(1&e&&n._UZ(0,"cvc-variant-group-popover",11),2&e){const i=n.oxw(3);n.Q6J("variantGroupId",i.variantgroup.id)}}function v(e,s){if(1&e&&n.YNc(0,r,1,1,"cvc-variant-group-popover",10),2&e){const i=n.oxw(2);n.Q6J("ngIf",i.enablePopover)}}function a(e,s){if(1&e&&(n.YNc(0,Z,2,3,"nz-tag",7),n.YNc(1,v,1,1,"ng-template",null,8,n.W1O)),2&e){const i=n.oxw(),m=n.MAs(4);n.Q6J("ngIf",i.enablePopover)("ngIfElse",m)}}function l(e,s){}function f(e,s){if(1&e&&(n.TgZ(0,"nz-tag"),n.YNc(1,l,0,0,"ng-template",6),n.qZA()),2&e){n.oxw();const i=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function V(e,s){}function U(e,s){if(1&e&&n.YNc(0,V,0,0,"ng-template",6),2&e){n.oxw();const i=n.MAs(2);n.Q6J("ngTemplateOutlet",i)}}function w(e,s){if(1&e&&(n._UZ(0,"i",12),n._uU(1)),2&e){const i=n.oxw();n.xp6(1),n.hij(" ",i.variantgroup.name,"\n")}}let Q=(()=>{class e{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 e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=n.Xpm({type:e,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(i,m){if(1&i&&(n.YNc(0,u,3,2,"ng-container",0),n.YNc(1,a,3,2,"ng-template",null,1,n.W1O),n.YNc(3,f,2,1,"ng-template",null,2,n.W1O),n.YNc(5,U,1,1,"ng-template",null,3,n.W1O),n.YNc(7,w,2,1,"ng-template",null,4,n.W1O)),2&i){const B=n.MAs(6);n.Q6J("ngIf",m.linked)("ngIfElse",B)}},directives:[p.O5,t.yS,p.tP,g.j,O.lU,N,c.Ls],styles:[""]}),e})()},6461:(J,z,o)=>{o.r(z),o.d(z,{CurationActivityModule:()=>N});var n=o(9808),p=o(325),t=o(712),g=o(5e3),O=o(2011);const _=[{path:"",redirectTo:"curation-timeline",pathMatch:"full"},{path:"curation-timeline",component:(()=>{class c{constructor(){this.feedMode=t.wJ2.Unscoped}ngOnInit(){}}return c.\u0275fac=function(u){return new(u||c)},c.\u0275cmp=g.Xpm({type:c,selectors:[["cvc-curation-activity-timeline"]],decls:1,vars:3,consts:[[3,"showFilters","mode","pageSize"]],template:function(u,S){1&u&&g._UZ(0,"cvc-event-feed",0),2&u&&g.Q6J("showFilters",!0)("mode",S.feedMode)("pageSize",12)},directives:[O.o],styles:[""]}),c})(),data:{breadcrumb:"Timeline"}}];let T=(()=>{class c{}return c.\u0275fac=function(u){return new(u||c)},c.\u0275mod=g.oAB({type:c}),c.\u0275inj=g.cJS({imports:[[p.Bz.forChild(_)],p.Bz]}),c})();var h=o(5630),I=o(1945),E=o(8762),M=o(647),C=o(1894),x=o(7484),y=o(4292);let D=(()=>{class c{}return c.\u0275fac=function(u){return new(u||c)},c.\u0275mod=g.oAB({type:c}),c.\u0275inj=g.cJS({imports:[[n.ez,C.Jb,x.vh,y.t]]}),c})();var A=o(8144),G=o(3618);let N=(()=>{class c{}return c.\u0275fac=function(u){return new(u||c)},c.\u0275mod=g.oAB({type:c}),c.\u0275inj=g.cJS({imports:[[n.ez,T,D,I.KJ,M.PV,A.zf,G.ZJ,C.Jb,h.D,E.c]]}),c})()},6462:(J,z,o)=>{o.d(z,{i:()=>S,m:()=>Z});var n=o(655),p=o(1159),t=o(5e3),g=o(4182),O=o(8929),P=o(3753),_=o(7625),T=o(9439),h=o(1721),I=o(5664),E=o(226),M=o(2643),C=o(9808),x=o(647),y=o(969);const D=["switchElement"];function A(r,v){1&r&&t._UZ(0,"i",8)}function G(r,v){if(1&r&&(t.ynx(0),t._uU(1),t.BQk()),2&r){const a=t.oxw(2);t.xp6(1),t.Oqu(a.nzCheckedChildren)}}function N(r,v){if(1&r&&(t.ynx(0),t.YNc(1,G,2,1,"ng-container",9),t.BQk()),2&r){const a=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",a.nzCheckedChildren)}}function c(r,v){if(1&r&&(t.ynx(0),t._uU(1),t.BQk()),2&r){const a=t.oxw(2);t.xp6(1),t.Oqu(a.nzUnCheckedChildren)}}function d(r,v){if(1&r&&t.YNc(0,c,2,1,"ng-container",9),2&r){const a=t.oxw();t.Q6J("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let S=(()=>{class r{constructor(a,l,f,V,U,w){this.nzConfigService=a,this.host=l,this.ngZone=f,this.cdr=V,this.focusMonitor=U,this.directionality=w,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 O.xQ}updateValue(a){this.isChecked!==a&&(this.isChecked=a,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(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,P.R)(this.host.nativeElement,"click").pipe((0,_.R)(this.destroy$)).subscribe(a=>{a.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,_.R)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:l}=a;l!==p.oh&&l!==p.SV&&l!==p.L_&&l!==p.K5||(a.preventDefault(),this.ngZone.run(()=>{l===p.oh?this.updateValue(!1):l===p.SV?this.updateValue(!0):(l===p.L_||l===p.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,_.R)(this.destroy$)).subscribe(a=>{a||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(a){this.isChecked=a,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=a,this.cdr.markForCheck()}}return r.\u0275fac=function(a){return new(a||r)(t.Y36(T.jY),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(I.tE),t.Y36(E.Is,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["nz-switch"]],viewQuery:function(a,l){if(1&a&&t.Gf(D,7),2&a){let f;t.iGM(f=t.CRH())&&(l.switchElement=f.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[t._Bn([{provide:g.JU,useExisting:(0,t.Gpc)(()=>r),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(a,l){if(1&a&&(t.TgZ(0,"button",0,1),t.TgZ(2,"span",2),t.YNc(3,A,1,0,"i",3),t.qZA(),t.TgZ(4,"span",4),t.YNc(5,N,2,1,"ng-container",5),t.YNc(6,d,1,1,"ng-template",null,6,t.W1O),t.qZA(),t._UZ(8,"div",7),t.qZA()),2&a){const f=t.MAs(7);t.ekj("ant-switch-checked",l.isChecked)("ant-switch-loading",l.nzLoading)("ant-switch-disabled",l.nzDisabled)("ant-switch-small","small"===l.nzSize)("ant-switch-rtl","rtl"===l.dir),t.Q6J("disabled",l.nzDisabled)("nzWaveExtraNode",!0),t.xp6(3),t.Q6J("ngIf",l.nzLoading),t.xp6(2),t.Q6J("ngIf",l.isChecked)("ngIfElse",f)}},directives:[M.dQ,C.O5,x.Ls,y.f],encapsulation:2,changeDetection:0}),(0,n.gn)([(0,h.yF)()],r.prototype,"nzLoading",void 0),(0,n.gn)([(0,h.yF)()],r.prototype,"nzDisabled",void 0),(0,n.gn)([(0,h.yF)()],r.prototype,"nzControl",void 0),(0,n.gn)([(0,T.oS)()],r.prototype,"nzSize",void 0),r})(),Z=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[[E.vT,C.ez,M.vG,x.PV,y.T]]}),r})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3894],{112:(J,z,o)=>{o.d(z,{u:()=>Q});var n=o(5e3),p=o(9808),t=o(325),g=o(8481),O=o(3610),P=o(4850),_=o(712),T=o(7484),h=o(3098),I=o(8664),E=o(6906),M=o(6949);function C(e,s){if(1&e&&(n._UZ(0,"i",7),n._uU(1)),2&e){const i=n.oxw().ngIf;n.xp6(1),n.hij(" ",i.name," ")}}function x(e,s){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"cvc-variant-tag",10),n.qZA()),2&e){const i=s.$implicit;n.xp6(1),n.Q6J("variant",i.node)}}function y(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",8),n.YNc(1,x,2,1,"span",9),n.qZA()),2&e){const i=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",i.variants.edges)}}function D(e,s){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"cvc-source-tag",12),n.qZA()),2&e){const i=s.$implicit;n.xp6(1),n.Q6J("source",i)}}function A(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions-item",11),n.YNc(1,D,2,1,"span",9),n.qZA()),2&e){const i=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",i.sources)}}function G(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,C,2,1,"ng-template",null,3,n.W1O),n._uU(4),n.TgZ(5,"nz-descriptions",4),n.YNc(6,y,2,1,"nz-descriptions-item",5),n.YNc(7,A,2,1,"nz-descriptions-item",6),n.qZA(),n.qZA(),n.BQk()),2&e){const i=s.ngIf,m=n.MAs(3);n.xp6(1),n.Q6J("nzTitle",m),n.xp6(3),n.hij(" ",i.description," "),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",i.variants.edges.length>0),n.xp6(1),n.Q6J("ngIf",i.sources.length>0)}}let N=(()=>{class e{constructor(i){this.gql=i}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,P.U)(({data:i})=>i.variantGroup))}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(_.Zo2))},e.\u0275cmp=n.Xpm({type:e,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(i,m){1&i&&(n.TgZ(0,"div",0),n.YNc(1,G,8,5,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&i&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,m.variantGroup$)))},directives:[p.O5,T.bd,h.R7,h.uj,p.sg,I.I,E.T],pipes:[M.fM],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var c=o(647);function d(e,s){}function u(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,d,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){const i=n.oxw(),m=n.MAs(2);n.xp6(1),n.Q6J("routerLink",i.variantgroup.link),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function S(e,s){}function Z(e,s){if(1&e&&(n.TgZ(0,"nz-tag",9),n.YNc(1,S,0,0,"ng-template",6),n.qZA()),2&e){n.oxw();const i=n.MAs(2);n.oxw();const m=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",i),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function r(e,s){if(1&e&&n._UZ(0,"cvc-variant-group-popover",11),2&e){const i=n.oxw(3);n.Q6J("variantGroupId",i.variantgroup.id)}}function v(e,s){if(1&e&&n.YNc(0,r,1,1,"cvc-variant-group-popover",10),2&e){const i=n.oxw(2);n.Q6J("ngIf",i.enablePopover)}}function a(e,s){if(1&e&&(n.YNc(0,Z,2,3,"nz-tag",7),n.YNc(1,v,1,1,"ng-template",null,8,n.W1O)),2&e){const i=n.oxw(),m=n.MAs(4);n.Q6J("ngIf",i.enablePopover)("ngIfElse",m)}}function l(e,s){}function f(e,s){if(1&e&&(n.TgZ(0,"nz-tag"),n.YNc(1,l,0,0,"ng-template",6),n.qZA()),2&e){n.oxw();const i=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function V(e,s){}function U(e,s){if(1&e&&n.YNc(0,V,0,0,"ng-template",6),2&e){n.oxw();const i=n.MAs(2);n.Q6J("ngTemplateOutlet",i)}}function w(e,s){if(1&e&&(n._UZ(0,"i",12),n._uU(1)),2&e){const i=n.oxw();n.xp6(1),n.hij(" ",i.variantgroup.name,"\n")}}let Q=(()=>{class e{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 e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=n.Xpm({type:e,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(i,m){if(1&i&&(n.YNc(0,u,3,2,"ng-container",0),n.YNc(1,a,3,2,"ng-template",null,1,n.W1O),n.YNc(3,f,2,1,"ng-template",null,2,n.W1O),n.YNc(5,U,1,1,"ng-template",null,3,n.W1O),n.YNc(7,w,2,1,"ng-template",null,4,n.W1O)),2&i){const B=n.MAs(6);n.Q6J("ngIf",m.linked)("ngIfElse",B)}},directives:[p.O5,t.yS,p.tP,g.j,O.lU,N,c.Ls],styles:[""]}),e})()},6461:(J,z,o)=>{o.r(z),o.d(z,{CurationActivityModule:()=>N});var n=o(9808),p=o(325),t=o(712),g=o(5e3),O=o(2011);const _=[{path:"",redirectTo:"curation-timeline",pathMatch:"full"},{path:"curation-timeline",component:(()=>{class c{constructor(){this.feedMode=t.wJ2.Unscoped}ngOnInit(){}}return c.\u0275fac=function(u){return new(u||c)},c.\u0275cmp=g.Xpm({type:c,selectors:[["cvc-curation-activity-timeline"]],decls:1,vars:3,consts:[[3,"showFilters","mode","pageSize"]],template:function(u,S){1&u&&g._UZ(0,"cvc-event-feed",0),2&u&&g.Q6J("showFilters",!0)("mode",S.feedMode)("pageSize",17)},directives:[O.o],styles:[""]}),c})(),data:{breadcrumb:"Timeline"}}];let T=(()=>{class c{}return c.\u0275fac=function(u){return new(u||c)},c.\u0275mod=g.oAB({type:c}),c.\u0275inj=g.cJS({imports:[[p.Bz.forChild(_)],p.Bz]}),c})();var h=o(5630),I=o(1945),E=o(8762),M=o(647),C=o(1894),x=o(7484),y=o(5291);let D=(()=>{class c{}return c.\u0275fac=function(u){return new(u||c)},c.\u0275mod=g.oAB({type:c}),c.\u0275inj=g.cJS({imports:[[n.ez,C.Jb,x.vh,y.t]]}),c})();var A=o(8144),G=o(3618);let N=(()=>{class c{}return c.\u0275fac=function(u){return new(u||c)},c.\u0275mod=g.oAB({type:c}),c.\u0275inj=g.cJS({imports:[[n.ez,T,D,I.KJ,M.PV,A.zf,G.ZJ,C.Jb,h.D,E.c]]}),c})()},6462:(J,z,o)=>{o.d(z,{i:()=>S,m:()=>Z});var n=o(655),p=o(1159),t=o(5e3),g=o(4182),O=o(8929),P=o(3753),_=o(7625),T=o(9439),h=o(1721),I=o(5664),E=o(226),M=o(2643),C=o(9808),x=o(647),y=o(969);const D=["switchElement"];function A(r,v){1&r&&t._UZ(0,"i",8)}function G(r,v){if(1&r&&(t.ynx(0),t._uU(1),t.BQk()),2&r){const a=t.oxw(2);t.xp6(1),t.Oqu(a.nzCheckedChildren)}}function N(r,v){if(1&r&&(t.ynx(0),t.YNc(1,G,2,1,"ng-container",9),t.BQk()),2&r){const a=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",a.nzCheckedChildren)}}function c(r,v){if(1&r&&(t.ynx(0),t._uU(1),t.BQk()),2&r){const a=t.oxw(2);t.xp6(1),t.Oqu(a.nzUnCheckedChildren)}}function d(r,v){if(1&r&&t.YNc(0,c,2,1,"ng-container",9),2&r){const a=t.oxw();t.Q6J("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let S=(()=>{class r{constructor(a,l,f,V,U,w){this.nzConfigService=a,this.host=l,this.ngZone=f,this.cdr=V,this.focusMonitor=U,this.directionality=w,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 O.xQ}updateValue(a){this.isChecked!==a&&(this.isChecked=a,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(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,P.R)(this.host.nativeElement,"click").pipe((0,_.R)(this.destroy$)).subscribe(a=>{a.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,_.R)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:l}=a;l!==p.oh&&l!==p.SV&&l!==p.L_&&l!==p.K5||(a.preventDefault(),this.ngZone.run(()=>{l===p.oh?this.updateValue(!1):l===p.SV?this.updateValue(!0):(l===p.L_||l===p.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,_.R)(this.destroy$)).subscribe(a=>{a||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(a){this.isChecked=a,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=a,this.cdr.markForCheck()}}return r.\u0275fac=function(a){return new(a||r)(t.Y36(T.jY),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(I.tE),t.Y36(E.Is,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["nz-switch"]],viewQuery:function(a,l){if(1&a&&t.Gf(D,7),2&a){let f;t.iGM(f=t.CRH())&&(l.switchElement=f.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[t._Bn([{provide:g.JU,useExisting:(0,t.Gpc)(()=>r),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(a,l){if(1&a&&(t.TgZ(0,"button",0,1),t.TgZ(2,"span",2),t.YNc(3,A,1,0,"i",3),t.qZA(),t.TgZ(4,"span",4),t.YNc(5,N,2,1,"ng-container",5),t.YNc(6,d,1,1,"ng-template",null,6,t.W1O),t.qZA(),t._UZ(8,"div",7),t.qZA()),2&a){const f=t.MAs(7);t.ekj("ant-switch-checked",l.isChecked)("ant-switch-loading",l.nzLoading)("ant-switch-disabled",l.nzDisabled)("ant-switch-small","small"===l.nzSize)("ant-switch-rtl","rtl"===l.dir),t.Q6J("disabled",l.nzDisabled)("nzWaveExtraNode",!0),t.xp6(3),t.Q6J("ngIf",l.nzLoading),t.xp6(2),t.Q6J("ngIf",l.isChecked)("ngIfElse",f)}},directives:[M.dQ,C.O5,x.Ls,y.f],encapsulation:2,changeDetection:0}),(0,n.gn)([(0,h.yF)()],r.prototype,"nzLoading",void 0),(0,n.gn)([(0,h.yF)()],r.prototype,"nzDisabled",void 0),(0,n.gn)([(0,h.yF)()],r.prototype,"nzControl",void 0),(0,n.gn)([(0,T.oS)()],r.prototype,"nzSize",void 0),r})(),Z=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[[E.vT,C.ez,M.vG,x.PV,y.T]]}),r})()}}]); \ No newline at end of file diff --git a/server/public/4024.60d65aab226b478d.js b/server/public/4024.4198b82988b533fe.js similarity index 52% rename from server/public/4024.60d65aab226b478d.js rename to server/public/4024.4198b82988b533fe.js index 3c1db837c..296ae007e 100644 --- a/server/public/4024.60d65aab226b478d.js +++ b/server/public/4024.4198b82988b533fe.js @@ -1,4 +1,4 @@ -"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` +"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 R,ne;return!(!I||I.role!==F.i44.Editor&&I.role!==F.i44.Admin||!I.mostRecentConflictOfInterestStatement||(null===(R=I.mostRecentConflictOfInterestStatement)||void 0===R?void 0:R.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(R=>R.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 R(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,R,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:()=>Cs,mdl:()=>k,Gbq:()=>ai,bgg:()=>Qo,u4i:()=>ie,ejK:()=>Ts,uBv:()=>ze,td:()=>li,Tq1:()=>Ii,q8c:()=>Pi,WRV:()=>go,IZ6:()=>zo,qf4:()=>Eo,Rdc:()=>Ro,gtM:()=>Er,fpJ:()=>Tr,k2T:()=>Cr,UWf:()=>po,cMj:()=>Ss,UIR:()=>di,E8d:()=>Te,P_b:()=>mi,Mgx:()=>Fe,iST:()=>fi,Kk:()=>vi,OfU:()=>ke,kQf:()=>io,l4w:()=>cs,JQ3:()=>Sr,db2:()=>Ys,h01:()=>Ye,wg3:()=>Es,k7O:()=>yi,kv3:()=>or,R8w:()=>Je,GB2:()=>As,Zyn:()=>He,dUU:()=>_i,kq9:()=>nt,vRc:()=>cr,Ud2:()=>Di,GYx:()=>er,AO2:()=>Qe,BTF:()=>Ni,wJ2:()=>je,eY8:()=>Li,_Aq:()=>ut,pHu:()=>Ms,tI1:()=>Xe,FId:()=>Qr,Q_P:()=>Gr,Sx0:()=>f,Ybm:()=>Oi,Cp0:()=>E,RTy:()=>C,sBY:()=>xs,kqt:()=>$,Zhw:()=>pr,B0s:()=>Yr,rzy:()=>Fi,BQZ:()=>ce,sfv:()=>he,TNk:()=>bs,rJ8:()=>$i,FOU:()=>Kr,Q4m:()=>gr,Fvz:()=>mt,cCu:()=>Rs,_jb:()=>lo,MYm:()=>ao,oRL:()=>gt,lfy:()=>hr,fow:()=>ft,X5f:()=>Ui,WOS:()=>Gs,Lr0:()=>Bs,Del:()=>Qs,xlL:()=>ht,io:()=>Vi,WGV:()=>Zs,OHm:()=>ki,lYz:()=>vt,FKQ:()=>zr,B97:()=>Wi,mII:()=>Ko,ghc:()=>wi,NQC:()=>zt,JDX:()=>yt,VZq:()=>Hi,EwB:()=>Jr,FJi:()=>Ct,L5n:()=>to,rZD:()=>It,SrV:()=>Tt,Bk6:()=>Js,TiL:()=>ho,yic:()=>_t,SJD:()=>Ht,F3s:()=>St,jw9:()=>Dt,g0X:()=>Ks,iXf:()=>Mn,NbY:()=>Mr,kQl:()=>Et,LLl:()=>Yo,WFw:()=>Zr,tji:()=>gs,o71:()=>qe,jMx:()=>sa,A4J:()=>ro,c$m:()=>Zo,Vj7:()=>Br,D9L:()=>Xr,SWk:()=>es,aw3:()=>us,Xft:()=>zs,mpB:()=>Gt,m$d:()=>oa,IP1:()=>os,LiH:()=>na,wRZ:()=>ns,wbP:()=>ss,sLD:()=>Xs,yqR:()=>ea,cEv:()=>Co,i44:()=>Nt,vMt:()=>Xo,tJ6:()=>To,IRu:()=>At,Qzn:()=>qi,iJT:()=>ga,qP7:()=>Ot,Qtd:()=>ca,Zo2:()=>So,ROj:()=>ps,FB1:()=>Mt,q1D:()=>ua,d4o:()=>Lt,huM:()=>xt,ZYZ:()=>xo,nnL:()=>hs,Bo4:()=>ha,ubO:()=>pa,tw_:()=>Ao,wpb:()=>Ft,BnY:()=>Rr,_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 $t=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 Re(e){return e.replace(/[\s,]+/g," ").trim()}function rt(e){var s=Re(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 Re(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))(),$=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Functional="FUNCTIONAL",e.Oncogenic="ONCOGENIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}($||($={})),$))(),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 @@ -1089,7 +1089,7 @@ citationId } } - `,Rn=h` + `,$n=h` fragment SubmittableVariantGroupFields on VariantGroup { id name @@ -2186,7 +2186,7 @@ ...genePopover } } - ${on}`;let Ri=(()=>{class e extends p.AE{constructor(n){super(n),this.document=bi}}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 $i=h` + ${on}`;let $i=(()=>{class e extends p.AE{constructor(n){super(n),this.document=bi}}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 Ri=h` query BrowseGenes($entrezSymbol: String, $drugName: String, $geneAlias: String, $diseaseName: String, $sortBy: GenesSort, $first: Int, $last: Int, $before: String, $after: String) { browseGenes( entrezSymbol: $entrezSymbol @@ -2233,7 +2233,7 @@ pageCount } } - `;let Pi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=$i}}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 Gi=h` + `;let Pi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ri}}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 Gi=h` query Quicksearch($query: String!) { search(query: $query) { ...QuicksearchResult @@ -2667,7 +2667,7 @@ } } } - ${Sn}`;let bo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Fo}}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 Ro=h` + ${Sn}`;let bo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Fo}}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 $o=h` query BrowseVariants($variantName: String, $entrezSymbol: String, $diseaseName: String, $drugName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { browseVariants( variantName: $variantName @@ -2721,7 +2721,7 @@ pageCount } } - `;let $o=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ro}}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 Po=h` + `;let Ro=(()=>{class e extends p.AE{constructor(n){super(n),this.document=$o}}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 Po=h` query ViewerBase { viewer { id @@ -2927,7 +2927,7 @@ } } } - ${Xt}`;const Rr=h` + ${Xt}`;const $r=h` query VariantTypeTypeahead($name: String!) { variantTypeTypeahead(queryTerm: $name) { name @@ -2935,7 +2935,7 @@ id } } - `;let $r=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Rr}}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 Pr=h` + `;let Rr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=$r}}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 Pr=h` query EvidenceItemRevisableFields($evidenceId: Int!) { evidenceItem(id: $evidenceId) { ...RevisableEvidenceFields @@ -2950,13 +2950,45 @@ } } } - `;let Br=(()=>{class e extends p.mm{constructor(n){super(n),this.document=wr}}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})();h` + `;let Br=(()=>{class e extends p.mm{constructor(n){super(n),this.document=wr}}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 Ur=h` + query EvidenceFieldsFromSourceSuggestion($sourceId: Int, $geneId: Int, $variantId: Int, $diseaseId: Int) { + sourceSuggestionValues( + geneId: $geneId + variantId: $variantId + diseaseId: $diseaseId + sourceId: $sourceId + ) { + gene { + id + name + link + } + variant { + id + name + link + } + disease { + id + name + link + } + source { + id + sourceType + citationId + citation + link + } + } +} + `;let Qr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ur}}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})();h` query EvidenceSubmittableFields($evidenceId: Int!) { evidenceItem(id: $evidenceId) { ...SubmittableEvidenceFields } } - ${Fn}`;const Ur=h` + ${Fn}`;const Vr=h` mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { submitEvidence(input: $input) { clientMutationId @@ -2965,7 +2997,7 @@ } } } - `;let Qr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Ur}}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 Vr=h` + `;let Zr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Vr}}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 kr=h` mutation FlagEntity($input: FlagEntityInput!) { flagEntity(input: $input) { flag { @@ -2973,7 +3005,7 @@ } } } - `;let Zr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Vr}}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 kr=h` + `;let Yr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=kr}}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 Wr=h` mutation ResolveFlag($input: ResolveFlagInput!) { resolveFlag(input: $input) { flag { @@ -2981,13 +3013,13 @@ } } } - `;let Yr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=kr}}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 Wr=h` + `;let Jr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Wr}}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 jr=h` query GeneRevisableFields($geneId: Int!) { gene(id: $geneId) { ...RevisableGeneFields } } - ${bn}`;let Jr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Wr}}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 jr=h` + ${bn}`;let Kr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=jr}}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 Hr=h` mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { suggestGeneRevision(input: $input) { clientMutationId @@ -3047,7 +3079,7 @@ } } } - `;let Kr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=jr}}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 Hr=h` + `;let Xr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Hr}}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 qr=h` mutation SuggestSource($input: SuggestSourceInput!) { suggestSource(input: $input) { clientMutationId @@ -3056,7 +3088,7 @@ } } } - `;let Xr=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Hr}}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 qr=h` + `;let es=(()=>{class e extends p.mm{constructor(n){super(n),this.document=qr}}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 ts=h` mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { updateSourceSuggestionStatus(input: $input) { sourceSuggestion { @@ -3065,7 +3097,7 @@ } } } - `;let es=(()=>{class e extends p.mm{constructor(n){super(n),this.document=qr}}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 ts=h` + `;let ns=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ts}}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 is=h` mutation UpdateCoi($input: UpdateCoiInput!) { updateCoi(input: $input) { coiStatement { @@ -3076,7 +3108,7 @@ } } } - `;let ns=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ts}}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 is=h` + `;let os=(()=>{class e extends p.mm{constructor(n){super(n),this.document=is}}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 rs=h` mutation UpdateUserProfile($input: EditUserInput!) { editUser(input: $input) { user { @@ -3084,14 +3116,14 @@ } } } - `;let os=(()=>{class e extends p.mm{constructor(n){super(n),this.document=is}}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 rs=h` + `;let ss=(()=>{class e extends p.mm{constructor(n){super(n),this.document=rs}}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 as=h` query Countries { countries { id name } } - `;let ss=(()=>{class e extends p.AE{constructor(n){super(n),this.document=rs}}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 as=h` + `;let cs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=as}}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 ls=h` mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { suggestVariantGroupRevision(input: $input) { clientMutationId @@ -3104,13 +3136,13 @@ } } } - `;let cs=(()=>{class e extends p.mm{constructor(n){super(n),this.document=as}}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 ls=h` + `;let us=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ls}}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 ds=h` query VariantGroupSubmittableFields($variantGroupId: Int!) { variantGroup(id: $variantGroupId) { ...SubmittableVariantGroupFields } } - ${Rn}`;let us=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ls}}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 ds=h` + ${$n}`;let ps=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ds}}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 ms=h` mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { submitVariantGroup(input: $input) { clientMutationId @@ -3119,13 +3151,13 @@ } } } - `;let ps=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ds}}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 ms=h` + `;let gs=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ms}}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 fs=h` query VariantRevisableFields($variantId: Int!) { variant(id: $variantId) { ...RevisableVariantFields } } - ${Pn}`;let gs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ms}}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 fs=h` + ${Pn}`;let hs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=fs}}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 vs=h` mutation SuggestVariantRevision($input: SuggestVariantRevisionInput!) { suggestVariantRevision(input: $input) { clientMutationId @@ -3185,19 +3217,19 @@ } } } - `;let hs=(()=>{class e extends p.mm{constructor(n){super(n),this.document=fs}}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 vs=h` + `;let zs=(()=>{class e extends p.mm{constructor(n){super(n),this.document=vs}}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 ys=h` query AssertionDetail($assertionId: Int!) { assertion(id: $assertionId) { ...AssertionDetailFields } } - ${Gn}`;let zs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=vs}}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 ys=h` + ${Gn}`;let Cs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ys}}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 Is=h` query AssertionSummary($assertionId: Int!) { assertion(id: $assertionId) { ...AssertionSummaryFields } } - ${wn}`;let Cs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ys}}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 Is=h` + ${wn}`;let Ts=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Is}}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 _s=h` query ClinicalTrialDetail($clinicalTrialId: Int!) { clinicalTrial(id: $clinicalTrialId) { id @@ -3208,7 +3240,7 @@ link } } - `;let Ts=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Is}}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 _s=h` + `;let Ss=(()=>{class e extends p.AE{constructor(n){super(n),this.document=_s}}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 Ds=h` query DiseaseDetail($diseaseId: Int!) { disease(id: $diseaseId) { id @@ -3220,7 +3252,7 @@ link } } - `;let Ss=(()=>{class e extends p.AE{constructor(n){super(n),this.document=_s}}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 Ds=h` + `;let Es=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ds}}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 Ns=h` query DrugDetail($drugId: Int!) { drug(id: $drugId) { id @@ -3231,37 +3263,37 @@ link } } - `;let Es=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ds}}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 Ns=h` + `;let As=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ns}}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 Os=h` query EvidenceDetail($evidenceId: Int!) { evidenceItem(id: $evidenceId) { ...EvidenceDetailFields } } - ${Bn}`;let As=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ns}}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 Os=h` + ${Bn}`;let Ms=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Os}}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 Ls=h` query EvidenceSummary($evidenceId: Int!) { evidenceItem(id: $evidenceId) { ...EvidenceSummaryFields } } - ${Un}`;let Ms=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Os}}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 Ls=h` + ${Un}`;let xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ls}}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 Fs=h` query GeneDetail($geneId: Int!) { gene(id: $geneId) { ...GeneDetailFields } } - ${Qn}`;let xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ls}}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 Fs=h` + ${Qn}`;let bs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Fs}}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 $s=h` query GenesSummary($geneId: Int!) { gene(id: $geneId) { ...GeneSummaryFields } } - ${Vn}`;let bs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Fs}}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 Rs=h` + ${Vn}`;let Rs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=$s}}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 Ps=h` query OrganizationDetail($organizationId: Int!) { organization(id: $organizationId) { ...OrganizationDetailFields } } - ${Zn}`;let $s=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Rs}}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 Ps=h` + ${Zn}`;let Gs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ps}}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 ws=h` query OrganizationGroups($organizationId: Int!) { organization(id: $organizationId) { subGroups { @@ -3269,7 +3301,7 @@ } } } - ${kn}`;let Gs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ps}}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 ws=h` + ${kn}`;let Bs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ws}}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 Us=h` query OrganizationMembers($organizationId: Int!, $first: Int, $last: Int, $before: String, $after: String) { users( organization: {id: $organizationId} @@ -3292,7 +3324,7 @@ } } } - ${Yn}`;let Bs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ws}}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 Us=h` + ${Yn}`;let Qs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Us}}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 Vs=h` query PhenotypeDetail($phenotypeId: Int!) { phenotype(id: $phenotypeId) { id @@ -3302,31 +3334,31 @@ link } } - `;let Qs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Us}}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 Vs=h` + `;let Zs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Vs}}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 ks=h` query DataReleases { dataReleases { ...Release } } - ${Wn}`;let Zs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Vs}}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 ks=h` + ${Wn}`;let Ys=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ks}}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 Ws=h` query SourceDetail($sourceId: Int!) { source(id: $sourceId) { ...SourceDetailFields } } - ${Jn}`;let Ys=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ks}}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 Ws=h` + ${Jn}`;let Js=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ws}}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 js=h` query SourceSummary($sourceId: Int!) { source(id: $sourceId) { ...SourceSummaryFields } } - ${jn}`;let Js=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ws}}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 js=h` + ${jn}`;let Ks=(()=>{class e extends p.AE{constructor(n){super(n),this.document=js}}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 Hs=h` query UserDetail($userId: Int!) { user(id: $userId) { ...UserDetailFields } } - ${Kn}`;let Ks=(()=>{class e extends p.AE{constructor(n){super(n),this.document=js}}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 Hs=h` + ${Kn}`;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` query UserNotifications($first: Int, $last: Int, $before: String, $after: String, $notificationReason: NotificationReason, $subscriptionId: Int, $originatingObject: SubscribableInput, $eventType: EventAction, $originatingUserId: Int, $organizationId: Int, $includeRead: Boolean) { notifications( first: $first @@ -3367,7 +3399,7 @@ ${qn} ${Xn} ${Hn} -${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` +${qt}`;let ea=(()=>{class e extends p.AE{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 UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { updateNotificationStatus(input: $input) { notifications { @@ -3375,7 +3407,7 @@ ${qt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=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` + ${qt}`;let na=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ta}}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 ia=h` mutation Unsubscribe($input: UnsubscribeInput!) { unsubscribe(input: $input) { unsubscribedEntities { @@ -3383,7 +3415,7 @@ ${qt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=H } } } - ${ei}`;let na=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ta}}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 ia=h` + ${ei}`;let oa=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ia}}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 ra=h` mutation Subscribe($input: SubscribeInput!) { subscribe(input: $input) { subscriptions { @@ -3391,13 +3423,13 @@ ${qt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=H } } } - `;let oa=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ia}}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 ra=h` + `;let sa=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ra}}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 aa=h` query VariantGroupDetail($variantGroupId: Int!) { variantGroup(id: $variantGroupId) { ...VariantGroupDetailFields } } - ${ti}`;let sa=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ra}}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})();h` + ${ti}`;let ca=(()=>{class e extends p.AE{constructor(n){super(n),this.document=aa}}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})();h` query VariantGroupRevisions($variantGroupId: Int!, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int) { variantGroup(id: $variantGroupId) { id @@ -3466,13 +3498,13 @@ ${qt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=H } } } - `;const aa=h` + `;const la=h` query VariantGroupsSummary($variantGroupId: Int!) { variantGroup(id: $variantGroupId) { ...VariantGroupSummaryFields } } - ${ni}`;let ca=(()=>{class e extends p.AE{constructor(n){super(n),this.document=aa}}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 la=h` + ${ni}`;let ua=(()=>{class e extends p.AE{constructor(n){super(n),this.document=la}}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 da=h` query VariantTypeDetail($variantTypeId: Int!) { variantType(id: $variantTypeId) { id @@ -3483,16 +3515,16 @@ ${qt}`;let Xs=(()=>{class e extends p.AE{constructor(n){super(n),this.document=H link } } - `;let ua=(()=>{class e extends p.AE{constructor(n){super(n),this.document=la}}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 da=h` + `;let pa=(()=>{class e extends p.AE{constructor(n){super(n),this.document=da}}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 ma=h` query VariantDetail($variantId: Int!) { variant(id: $variantId) { ...VariantDetailFields } } - ${ii}`;let pa=(()=>{class e extends p.AE{constructor(n){super(n),this.document=da}}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 ma=h` + ${ii}`;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})();const fa=h` query VariantSummary($variantId: Int!) { variant(id: $variantId) { ...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,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 + ${ri}`;let ha=(()=>{class e extends p.AE{constructor(n){super(n),this.document=fa}}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 R(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,R,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),$e=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=["*"],Re=["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 $e.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 $e.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new $e.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($e.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(Re,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,$e.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 $(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,$,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(9716),r.e(3883),r.e(5291),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(9716),r.e(3883),r.e(5291),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(9716),r.e(376),r.e(535)]).then(r.bind(r,4340)).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,R,ne,X){this.nzConfigService=I,this.elementRef=R,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,R=this.el.getBoundingClientRect().width,ne=2*this.nzGap{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,R){if(1&I&&i.Gf(A,5),2&I){let ne;i.iGM(ne=i.CRH())&&(R.textEl=ne.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(I,R){2&I&&(i.Udp("width",R.customSize)("height",R.customSize)("line-height",R.customSize)("font-size",R.hasIcon&&R.customSize?R.nzSize/2:null,"px"),i.ekj("ant-avatar-lg","large"===R.nzSize)("ant-avatar-sm","small"===R.nzSize)("ant-avatar-square","square"===R.nzShape)("ant-avatar-circle","circle"===R.nzShape)("ant-avatar-icon",R.nzIcon)("ant-avatar-image",R.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,R){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",R.nzIcon&&R.hasIcon),i.xp6(1),i.Q6J("ngIf",R.nzSrc&&R.hasSrc),i.xp6(1),i.Q6J("ngIf",R.nzText&&R.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 R(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,R,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:()=>$e,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 R(N,ee){}function ne(N,ee){if(1&N&&(i.TgZ(0,"div",15),i.YNc(1,R,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})(),$e=(()=>{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:()=>$e,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=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)(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(R.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({}),_})(),$e=(()=>{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,R.U8,fe.u5,pe.sL,g.ip,Y.PV,ue.g,ne.ud,b.e4,Ee,W.T],g.ip]}),_})();new R.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new R.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new R.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new R.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 R(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,$=E.last;o.xp6(1),o.Q6J("ngTemplateOutlet",C),o.xp6(1),o.Q6J("ngIf",!$)}}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,$=E.index,ce=o.oxw(2);o.xp6(1),o.Q6J("ngTemplateOutlet",ce.nzRenderItem)("ngTemplateOutletContext",o.WLB(2,Ee,C,$))}}function $e(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,$=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,$))}}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 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 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(),$=o.MAs(3),ce=o.MAs(5),he=o.MAs(1);o.Q6J("ngTemplateOutlet",$),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(),$=o.MAs(3),ce=o.MAs(1),he=o.MAs(5);o.xp6(2),o.Q6J("ngTemplateOutlet",$),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,$){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,$){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,$){1&C&&(o.F$t(),o.TgZ(0,"div",0),o.YNc(1,I,1,1,"nz-avatar",1),o.YNc(2,R,1,0,"ng-content",2),o.qZA()),2&C&&(o.xp6(1),o.Q6J("ngIf",$.nzSrc),o.xp6(1),o.Q6J("ngIf",!$.nzSrc))},directives:[i.Dz,t.O5],encapsulation:2,changeDetection:0}),f})(),ie=(()=>{class f{constructor(C,$){this.elementRef=C,this.renderer=$,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,$,ce){if(1&C&&(o.Suo(ce,l,5),o.Suo(ce,m,5)),2&C){let he;o.iGM(he=o.CRH())&&($.descriptionComponent=he.first),o.iGM(he=o.CRH())&&($.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,$){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",$.avatarStr),o.xp6(1),o.Q6J("ngIf",$.avatarTpl),o.xp6(2),o.Q6J("ngIf",$.nzTitle||$.nzDescription||$.descriptionComponent||$.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,$){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,$){if(1&C&&o.Gf(o.Rgc,5),2&C){let ce;o.iGM(ce=o.CRH())&&($.templateRef=ce.first)}},exportAs:["nzListItemAction"],ngContentSelectors:b,decls:1,vars:0,template:function(C,$){1&C&&(o.F$t(),o.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),f})(),Te=(()=>{class f{constructor(C,$){this.ngZone=C,this.cdr=$,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,$,ce){if(1&C&&o.Suo(ce,Ze,4),2&C){let he;o.iGM(he=o.CRH())&&($.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,$){1&C&&o.YNc(0,_e,3,2,"li",0),2&C&&o.Q6J("ngForOf",$.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,$){1&C&&o._UZ(0,"nz-embed-empty",0),2&C&&o.Q6J("nzComponentName","list")("specificContent",$.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,$){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,$){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,$){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($=>{this.dir=$})}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,$,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())&&($.nzListFooterComponent=he.first),o.iGM(he=o.CRH())&&($.nzListPaginationComponent=he.first),o.iGM(he=o.CRH())&&($.nzListLoadMoreDirective=he.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(C,$){2&C&&o.ekj("ant-list-rtl","rtl"===$.dir)("ant-list-vertical","vertical"===$.nzItemLayout)("ant-list-lg","large"===$.nzSize)("ant-list-sm","small"===$.nzSize)("ant-list-split",$.nzSplit)("ant-list-bordered",$.nzBordered)("ant-list-loading",$.nzLoading)("ant-list-something-after-last-item",$.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,$){if(1&C&&(o.F$t(Le),o.YNc(0,$e,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",$.nzHeader),o.xp6(2),o.Q6J("nzSpinning",$.nzLoading),o.xp6(2),o.Q6J("ngIf",$.nzLoading&&$.nzDataSource&&0===$.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",$.nzGrid&&$.nzDataSource)("ngIfElse",ce),o.xp6(1),o.Q6J("ngIf",!$.nzLoading&&$.nzDataSource&&0===$.nzDataSource.length),o.xp6(1),o.Q6J("ngIf",$.nzFooter),o.xp6(2),o.Q6J("ngTemplateOutlet",$.nzLoadMore),o.xp6(2),o.Q6J("ngIf",$.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,$,ce,he){this.parentComp=ce,this.cdr=he,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,$.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,$,ce){if(1&C&&o.Suo(ce,ze,5),2&C){let he;o.iGM(he=o.CRH())&&($.listItemExtraDirective=he.first)}},hostVars:2,hostBindings:function(C,$){2&C&&o.ekj("ant-list-item-no-flex",$.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,$){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",$.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=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 $e=["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})(),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 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(R.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:$e,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,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,R.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 R=t.oxw(),ne=R.last,X=R.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 R=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",R),t.xp6(1),t.Q6J("ngIf",X.nzSplit&&!ne)}}const H=["*"];let le=(()=>{class b{constructor(){}}return b.\u0275fac=function(R){return new(R||b)},b.\u0275dir=t.lG2({type:b,selectors:[["","nzSpaceItem",""]]}),b})();const se={small:8,middle:16,large:24};let oe=(()=>{class b{constructor(R,ne){this.nzConfigService=R,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(R){return new(R||b)(t.Y36(B.jY),t.Y36(t.sBO))},b.\u0275cmp=t.Xpm({type:b,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(R,ne,X){if(1&R&&t.Suo(X,le,4,t.Rgc),2&R){let de;t.iGM(de=t.CRH())&&(ne.items=de)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(R,ne){2&R&&(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(R,ne){1&R&&(t.F$t(),t.Hsn(0),t.YNc(1,K,3,6,"ng-template",0)),2&R&&(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(R){return new(R||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 R(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,R,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/4276.08cec2ef34d7116e.js b/server/public/4276.bc012717d8d8d96c.js similarity index 73% rename from server/public/4276.08cec2ef34d7116e.js rename to server/public/4276.bc012717d8d8d96c.js index 1f597d391..03e591197 100644 --- a/server/public/4276.08cec2ef34d7116e.js +++ b/server/public/4276.bc012717d8d8d96c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4276],{5749:(E,h,e)=>{e.d(h,{m:()=>L});var n=e(5e3),u=e(9808),t=e(325),r=e(8481),d=e(3610),f=e(4850),y=e(712),z=e(7484),O=e(7881),M=e(1894),v=e(3098),P=e(6550),_=e(6949);const x=function(a,m){return{displayName:a,profileImagePath:m}};function A(a,m){if(1&a&&(n._UZ(0,"cvc-user-avatar",12),n.TgZ(1,"span",13),n._uU(2),n.qZA()),2&a){const s=n.oxw().ngIf;n.Q6J("user",n.WLB(2,x,s.name,s.profileImagePath)),n.xp6(2),n.Oqu(s.name)}}function S(a,m){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const s=m.ngIf;n.xp6(1),n.Oqu(s)}}function b(a,m){if(1&a&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",14),n._uU(2),n.qZA(),n.BQk()),2&a){const s=n.oxw().ngIf;n.xp6(1),n.Q6J("href",s.url),n.xp6(1),n.hij(" ",s.name," ")}}function B(a,m){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",4),n.YNc(2,A,3,5,"ng-template",null,5,n.W1O),n.TgZ(4,"nz-row"),n.TgZ(5,"nz-col",6),n.TgZ(6,"div",7),n.TgZ(7,"p",8),n.YNc(8,S,2,1,"span",9),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(9,"nz-descriptions",10),n.TgZ(10,"nz-descriptions-item",11),n.YNc(11,b,3,2,"ng-container",9),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const s=m.ngIf,Z=n.MAs(3);n.oxw();const w=n.MAs(4),W=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",Z),n.xp6(7),n.Q6J("ngIf",s.description)("ngIfElse",w),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",s.url)("ngIfElse",W)}}function I(a,m){1&a&&n._uU(0," Organization has not provided a description.\n")}function D(a,m){1&a&&n._uU(0," --\n")}let Q=(()=>{class a{constructor(s){this.gql=s}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,f.U)(({data:s})=>s.organization))}}return a.\u0275fac=function(s){return new(s||a)(n.Y36(y.X5f))},a.\u0275cmp=n.Xpm({type:a,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(s,Z){1&s&&(n.TgZ(0,"div",0),n.YNc(1,B,12,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,I,1,0,"ng-template",null,2,n.W1O),n.YNc(5,D,1,0,"ng-template",null,3,n.W1O)),2&s&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,Z.org$)))},directives:[u.O5,z.bd,O.L,M.SK,M.t3,v.R7,v.uj,P.l],pipes:[_.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})();var c=e(647);function o(a,m){}function i(a,m){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,o,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const s=n.oxw(),Z=n.MAs(2);n.xp6(1),n.MGl("routerLink","/organizations/",s.org.id,""),n.xp6(1),n.Q6J("ngTemplateOutlet",Z)}}function p(a,m){}function l(a,m){if(1&a&&n._UZ(0,"cvc-organization-popover",10),2&a){const s=n.oxw(3);n.Q6J("orgId",s.org.id)}}function T(a,m){if(1&a&&n.YNc(0,l,1,1,"cvc-organization-popover",9),2&a){const s=n.oxw(2);n.Q6J("ngIf",s.enablePopover)}}function g(a,m){if(1&a&&(n.TgZ(0,"nz-tag",7),n.YNc(1,p,0,0,"ng-template",6),n.qZA(),n.YNc(2,T,1,1,"ng-template",null,8,n.W1O)),2&a){const s=n.MAs(3);n.oxw();const Z=n.MAs(8);n.Q6J("nzPopoverContent",s),n.xp6(1),n.Q6J("ngTemplateOutlet",Z)}}function C(a,m){}function U(a,m){if(1&a&&(n.TgZ(0,"nz-tag"),n.YNc(1,C,0,0,"ng-template",6),n.qZA()),2&a){n.oxw();const s=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function J(a,m){}function R(a,m){if(1&a&&n.YNc(0,J,0,0,"ng-template",6),2&a){n.oxw();const s=n.MAs(2);n.Q6J("ngTemplateOutlet",s)}}function F(a,m){if(1&a&&(n._UZ(0,"i",11),n._uU(1)),2&a){const s=n.oxw();n.xp6(1),n.hij(" ",s.org.name,"\n")}}let L=(()=>{class a{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 a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=n.Xpm({type:a,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(s,Z){if(1&s&&(n.YNc(0,i,3,2,"ng-container",0),n.YNc(1,g,4,2,"ng-template",null,1,n.W1O),n.YNc(3,U,2,1,"ng-template",null,2,n.W1O),n.YNc(5,R,1,1,"ng-template",null,3,n.W1O),n.YNc(7,F,2,1,"ng-template",null,4,n.W1O)),2&s){const w=n.MAs(6);n.Q6J("ngIf",Z.linked)("ngIfElse",w)}},directives:[u.O5,t.yS,u.tP,r.j,d.lU,Q,c.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),a})()},9180:(E,h,e)=>{e.d(h,{Z:()=>t});var n=e(5e3);const u=["*"];let t=(()=>{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(f){return new(f||r)},r.\u0275cmp=n.Xpm({type:r,selectors:[["cvc-form-buttons"]],ngContentSelectors:u,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(f,y){1&f&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:["[_nghost-%COMP%]{display:block}.form-buttons[_ngcontent-%COMP%]{text-align:right}"]}),r})()},4375:(E,h,e)=>{e.d(h,{R:()=>t});var n=e(9808),u=e(5e3);let t=(()=>{class r{}return r.\u0275fac=function(f){return new(f||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[[n.ez]]}),r})()},8227:(E,h,e)=>{e.d(h,{q:()=>p});var n=e(5e3),u=e(8929),t=e(4850),r=e(373),d=e(2868),f=e(7625),y=e(1793),z=e(9350),O=e(9808),M=e(6042),v=e(2683),P=e(2643),_=e(3677),x=e(8144),A=e(6699),S=e(4219);function b(l,T){1&l&&n.Hsn(0)}function B(l,T){1&l&&n.GkF(0)}function I(l,T){if(1&l&&(n.ynx(0),n.YNc(1,B,1,0,"ng-container",5),n.BQk()),2&l){n.oxw(2);const g=n.MAs(1);n.xp6(1),n.Q6J("ngTemplateOutlet",g)}}function D(l,T){1&l&&n.GkF(0)}function Q(l,T){if(1&l&&(n.ynx(0),n.TgZ(1,"nz-button-group",6),n.YNc(2,D,1,0,"ng-container",5),n.TgZ(3,"button",7),n.TgZ(4,"nz-space",8),n.TgZ(5,"span"),n._uU(6,"for"),n.qZA(),n._UZ(7,"nz-avatar",9),n._UZ(8,"i",10),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&l){n.oxw();const g=n.MAs(4),C=n.oxw(),U=n.MAs(1);n.xp6(1),n.Q6J("nzSize",C.nzSize),n.xp6(1),n.Q6J("ngTemplateOutlet",U),n.xp6(1),n.Q6J("nzType",C.buttonType)("nzDanger",C.nzDanger)("disabled",C.disabled)("nzDropdownMenu",g),n.xp6(1),n.Q6J("nzSize",4),n.xp6(3),n.Q6J("nzSrc",null==C.selectedOrg?null:C.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function c(l,T){if(1&l){const g=n.EpF();n.TgZ(0,"li",11),n.NdJ("click",function(){const J=n.CHM(g).$implicit;return n.oxw(2).selectOrg(J)}),n._UZ(1,"nz-avatar",12),n._uU(2),n.qZA()}if(2&l){const g=T.$implicit,C=n.oxw(2);n.Q6J("nzSelected",(null==C.selectedOrg?null:C.selectedOrg.id)===g.id),n.xp6(1),n.Q6J("nzSrc",null==g?null:g.profileImagePath)("nzSize",10)("nzShape","square"),n.xp6(1),n.hij(" ",g.name," ")}}function o(l,T){if(1&l&&(n.ynx(0),n.YNc(1,I,2,1,"ng-container",1),n.YNc(2,Q,9,10,"ng-container",1),n.TgZ(3,"nz-dropdown-menu",null,2),n.TgZ(5,"ul",3),n.YNc(6,c,3,5,"li",4),n.qZA(),n.qZA(),n.BQk()),2&l){const g=T.ngIf;n.xp6(1),n.Q6J("ngIf",g.length<=1),n.xp6(1),n.Q6J("ngIf",g.length>1),n.xp6(4),n.Q6J("ngForOf",g)}}const i=["*"];let p=(()=>{class l{constructor(g){this.viewerService=g,this.selectedOrgChange=new n.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new u.xQ}get disabled(){return this.button.disabled}selectOrg(g){this.selectedOrg=g,this.selectedOrgChange.emit(g)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,t.U)(g=>g.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,r.j)("mostRecentOrg"),(0,d.b)(g=>{g&&(this.selectedOrg=g,this.selectedOrgChange.emit(g))})),this.mostRecentOrg$.pipe((0,f.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return l.\u0275fac=function(g){return new(g||l)(n.Y36(z.a))},l.\u0275cmp=n.Xpm({type:l,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(g,C,U){if(1&g&&n.Suo(U,y.m,5),2&g){let J;n.iGM(J=n.CRH())&&(C.button=J.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:i,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(g,C){1&g&&(n.F$t(),n.YNc(0,b,1,0,"ng-template",null,0,n.W1O),n.YNc(2,o,7,3,"ng-container",1),n.ALo(3,"async")),2&g&&(n.xp6(2),n.Q6J("ngIf",n.lcZ(3,1,C.organizations$)))},directives:[O.O5,O.tP,M.fY,v.w,M.ix,P.dQ,_.wA,_.cm,x.NU,A.Dz,_.RR,S.wO,O.sg,S.r9],pipes:[O.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),l})()},1825:(E,h,e)=>{e.d(h,{A:()=>y});var n=e(9808),u=e(6042),t=e(6699),r=e(3677),d=e(8144),f=e(5e3);let y=(()=>{class z{}return z.\u0275fac=function(M){return new(M||z)},z.\u0275mod=f.oAB({type:z}),z.\u0275inj=f.cJS({imports:[[n.ez,u.sL,t.Rt,r.b1,d.zf]]}),z})()},1793:(E,h,e)=>{e.d(h,{m:()=>u});var n=e(5e3);let u=(()=>{class t{constructor(d){this.el=d,this.observer=new MutationObserver(([f])=>this.disabled=f.target.disabled),this.observer.observe(this.el.nativeElement,{attributeFilter:["disabled"],childList:!1,subtree:!1})}ngOnDestroy(){this.observer.disconnect()}}return t.\u0275fac=function(d){return new(d||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["button","cvcOrgSelectorBtn",""]],hostVars:2,hostBindings:function(d,f){2&d&&n.ekj("ant-btn-dangerous",f.nzDanger)}}),t})()},4623:(E,h,e)=>{e.d(h,{K:()=>M});var n=e(9808),u=e(8776),t=e(5e3),r=e(1047),d=e(4182);const y={name:"comment-textarea",component:(()=>{class v extends u.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(_,x)=>{var A;return`Comments must be at least ${null===(A=x.templateOptions)||void 0===A?void 0:A.minLength} characters in length.`}}},templateOptions:{rows:4}}}}return v.\u0275fac=function(){let P;return function(x){return(P||(P=t.n5z(v)))(x||v)}}(),v.\u0275cmp=t.Xpm({type:v,selectors:[["comment-textarea-type"]],features:[t.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(_,x){1&_&&t._UZ(0,"textarea",0),2&_&&t.Q6J("formControl",x.formControl)("formlyAttributes",x.field)},directives:[r.Zp,d.Fj,d.JJ,d.oH,u.VQ],styles:[""],changeDetection:0}),v})(),wrappers:["form-field"]};var z=e(4546),O=e(9139);let M=(()=>{class v{}return v.\u0275fac=function(_){return new(_||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[[n.ez,d.UX,u.X0.forChild({types:[y]}),O.u,z.U5,r.o7]]}),v})()},7733:(E,h,e)=>{e.r(h),e.d(h,{CurationQueuesModule:()=>Q});var n=e(9808),u=e(325),t=e(712),r=e(5e3),d=e(3756);let f=(()=>{class c{constructor(){this.status=t.RTy.Submitted}ngOnInit(){}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=r.Xpm({type:c,selectors:[["cvc-pending-assertions-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Assertions",3,"status"]],template:function(i,p){1&i&&r._UZ(0,"cvc-assertions-table",0),2&i&&r.Q6J("status",p.status)},directives:[d.x],styles:[""]}),c})();var y=e(8965);let z=(()=>{class c{constructor(){this.status=t.RTy.Submitted}ngOnInit(){}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=r.Xpm({type:c,selectors:[["cvc-pending-evidence-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Evidence",3,"status"]],template:function(i,p){1&i&&r._UZ(0,"cvc-evidence-table",0),2&i&&r.Q6J("status",p.status)},directives:[y.a],styles:[""]}),c})();var O=e(9814);const v=[{path:"",redirectTo:"pending-sources",pathMatch:"full"},{path:"pending-sources",component:(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=r.Xpm({type:c,selectors:[["cvc-pending-sources-page"]],decls:1,vars:0,consts:[["cvcTitle","Browse Suggested Sources"]],template:function(i,p){1&i&&r._UZ(0,"cvc-source-suggestions-table",0)},directives:[O.O],styles:[""]}),c})(),data:{breadcrumb:"Pending Source Suggestions"}},{path:"pending-evidence",component:z,data:{breadcrumb:"Pending Evidence Items"}},{path:"pending-assertions",component:f,data:{breadcrumb:"Pending Assertions"}}];let P=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=r.oAB({type:c}),c.\u0275inj=r.cJS({imports:[[u.Bz.forChild(v)],u.Bz]}),c})();var _=e(5630),x=e(1945),A=e(6949),S=e(8762),b=e(647),B=e(8144),I=e(3618),D=e(1894);let Q=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=r.oAB({type:c}),c.\u0275inj=r.cJS({imports:[[n.ez,A.WG,P,x.KJ,b.PV,B.zf,I.ZJ,D.Jb,_.D,S.c]]}),c})()},7563:(E,h,e)=>{e.r(h),e.d(h,{CurationModule:()=>c});var n=e(9808),u=e(325),t=e(5e3),r=e(8992),d=e(1945),f=e(1894),y=e(647),z=e(3618),O=e(2233);const _=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-curation-view"]],decls:1,vars:0,template:function(p,l){1&p&&t._UZ(0,"router-outlet")},directives:[u.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"activity",pathMatch:"full"},{path:"activity",component:(()=>{class o{constructor(){this.tabs=[{routeName:"curation-timeline",iconName:"civic-event",tabLabel:"Timeline"}]}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-curation-activity-view"]],decls:19,vars:4,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:event"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(p,l){1&p&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0),t.TgZ(2,"nz-page-header-content"),t.TgZ(3,"nz-row",1),t.TgZ(4,"nz-col",2),t._UZ(5,"i",3),t.qZA(),t.TgZ(6,"nz-col",4),t.TgZ(7,"h2"),t._uU(8,"Curation Event Timeline"),t.qZA(),t.TgZ(9,"p",5),t._uU(10,"All CIViC curation activity is logged and publicly available, thus esablishing the provenance of its assertions, summaries, associations, and acknowledging the work of collaborators."),t.qZA(),t.qZA(),t._UZ(11,"nz-col",6),t.qZA(),t.TgZ(12,"nz-row"),t.TgZ(13,"nz-col",7),t._UZ(14,"cvc-tab-navigation",8),t.qZA(),t.qZA(),t.TgZ(15,"nz-row"),t.TgZ(16,"nz-col",7),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&p&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",l.tabs),t.xp6(2),t.Q6J("nzSpan",24))},directives:[r.I,d.$O,d.u5,f.SK,f.t3,y.Ls,z.ZU,O.P,u.lC],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})(),loadChildren:()=>Promise.all([e.e(4292),e.e(3894)]).then(e.bind(e,6461)).then(o=>o.CurationActivityModule),data:{breadcrumb:"Activity"}},{path:"queues",component:(()=>{class o{constructor(){this.tabs=[{routeName:"pending-sources",iconName:"civic-source",tabLabel:"Sources Queue"},{routeName:"pending-evidence",iconName:"civic-evidence",tabLabel:"Evidence Queue"},{routeName:"pending-assertions",iconName:"civic-assertion",tabLabel:"Assertions Queue"}]}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-curation-queues-view"]],decls:19,vars:4,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","file-add"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(p,l){1&p&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0),t.TgZ(2,"nz-page-header-content"),t.TgZ(3,"nz-row",1),t.TgZ(4,"nz-col",2),t._UZ(5,"i",3),t.qZA(),t.TgZ(6,"nz-col",4),t.TgZ(7,"h2"),t._uU(8,"Curation Queues"),t.qZA(),t.TgZ(9,"p",5),t._uU(10,"New submitted Evidence, Assertions, and Source Suggestions must be accepted by a CIViC Editor. These Curation Queues list items in need of Editor moderation."),t.qZA(),t.qZA(),t._UZ(11,"nz-col",6),t.qZA(),t.TgZ(12,"nz-row"),t.TgZ(13,"nz-col",7),t._UZ(14,"cvc-tab-navigation",8),t.qZA(),t.qZA(),t.TgZ(15,"nz-row"),t.TgZ(16,"nz-col",7),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&p&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",l.tabs),t.xp6(2),t.Q6J("nzSpan",24))},directives:[r.I,d.$O,d.u5,f.SK,f.t3,y.Ls,z.ZU,O.P,u.lC],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})(),loadChildren:()=>Promise.resolve().then(e.bind(e,7733)).then(o=>o.CurationQueuesModule),data:{breadcrumb:"Queues"}}]}];let x=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[u.Bz.forChild(_)],u.Bz]}),o})();var A=e(7733),S=e(2832);let b=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,S.W]]}),o})();var B=e(767);let I=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,B.Q]]}),o})();var D=e(9441);let Q=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,D.s]]}),o})(),c=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,x,A.CurationQueuesModule,b,I,Q]]}),o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4276],{5749:(E,h,e)=>{e.d(h,{m:()=>L});var n=e(5e3),u=e(9808),t=e(325),r=e(8481),d=e(3610),f=e(4850),y=e(712),z=e(7484),O=e(7881),M=e(1894),v=e(3098),P=e(6550),C=e(6949);const x=function(a,m){return{displayName:a,profileImagePath:m}};function A(a,m){if(1&a&&(n._UZ(0,"cvc-user-avatar",12),n.TgZ(1,"span",13),n._uU(2),n.qZA()),2&a){const s=n.oxw().ngIf;n.Q6J("user",n.WLB(2,x,s.name,s.profileImagePath)),n.xp6(2),n.Oqu(s.name)}}function S(a,m){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const s=m.ngIf;n.xp6(1),n.Oqu(s)}}function b(a,m){if(1&a&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",14),n._uU(2),n.qZA(),n.BQk()),2&a){const s=n.oxw().ngIf;n.xp6(1),n.Q6J("href",s.url),n.xp6(1),n.hij(" ",s.name," ")}}function B(a,m){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",4),n.YNc(2,A,3,5,"ng-template",null,5,n.W1O),n.TgZ(4,"nz-row"),n.TgZ(5,"nz-col",6),n.TgZ(6,"div",7),n.TgZ(7,"p",8),n.YNc(8,S,2,1,"span",9),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(9,"nz-descriptions",10),n.TgZ(10,"nz-descriptions-item",11),n.YNc(11,b,3,2,"ng-container",9),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const s=m.ngIf,Z=n.MAs(3);n.oxw();const w=n.MAs(4),W=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",Z),n.xp6(7),n.Q6J("ngIf",s.description)("ngIfElse",w),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",s.url)("ngIfElse",W)}}function I(a,m){1&a&&n._uU(0," Organization has not provided a description.\n")}function D(a,m){1&a&&n._uU(0," --\n")}let Q=(()=>{class a{constructor(s){this.gql=s}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,f.U)(({data:s})=>s.organization))}}return a.\u0275fac=function(s){return new(s||a)(n.Y36(y.X5f))},a.\u0275cmp=n.Xpm({type:a,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(s,Z){1&s&&(n.TgZ(0,"div",0),n.YNc(1,B,12,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,I,1,0,"ng-template",null,2,n.W1O),n.YNc(5,D,1,0,"ng-template",null,3,n.W1O)),2&s&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,Z.org$)))},directives:[u.O5,z.bd,O.L,M.SK,M.t3,v.R7,v.uj,P.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}"]}),a})();var c=e(647);function o(a,m){}function i(a,m){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,o,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const s=n.oxw(),Z=n.MAs(2);n.xp6(1),n.MGl("routerLink","/organizations/",s.org.id,""),n.xp6(1),n.Q6J("ngTemplateOutlet",Z)}}function p(a,m){}function l(a,m){if(1&a&&n._UZ(0,"cvc-organization-popover",10),2&a){const s=n.oxw(3);n.Q6J("orgId",s.org.id)}}function T(a,m){if(1&a&&n.YNc(0,l,1,1,"cvc-organization-popover",9),2&a){const s=n.oxw(2);n.Q6J("ngIf",s.enablePopover)}}function g(a,m){if(1&a&&(n.TgZ(0,"nz-tag",7),n.YNc(1,p,0,0,"ng-template",6),n.qZA(),n.YNc(2,T,1,1,"ng-template",null,8,n.W1O)),2&a){const s=n.MAs(3);n.oxw();const Z=n.MAs(8);n.Q6J("nzPopoverContent",s),n.xp6(1),n.Q6J("ngTemplateOutlet",Z)}}function _(a,m){}function U(a,m){if(1&a&&(n.TgZ(0,"nz-tag"),n.YNc(1,_,0,0,"ng-template",6),n.qZA()),2&a){n.oxw();const s=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function J(a,m){}function R(a,m){if(1&a&&n.YNc(0,J,0,0,"ng-template",6),2&a){n.oxw();const s=n.MAs(2);n.Q6J("ngTemplateOutlet",s)}}function F(a,m){if(1&a&&(n._UZ(0,"i",11),n._uU(1)),2&a){const s=n.oxw();n.xp6(1),n.hij(" ",s.org.name,"\n")}}let L=(()=>{class a{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 a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=n.Xpm({type:a,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(s,Z){if(1&s&&(n.YNc(0,i,3,2,"ng-container",0),n.YNc(1,g,4,2,"ng-template",null,1,n.W1O),n.YNc(3,U,2,1,"ng-template",null,2,n.W1O),n.YNc(5,R,1,1,"ng-template",null,3,n.W1O),n.YNc(7,F,2,1,"ng-template",null,4,n.W1O)),2&s){const w=n.MAs(6);n.Q6J("ngIf",Z.linked)("ngIfElse",w)}},directives:[u.O5,t.yS,u.tP,r.j,d.lU,Q,c.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),a})()},9180:(E,h,e)=>{e.d(h,{Z:()=>t});var n=e(5e3);const u=["*"];let t=(()=>{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(f){return new(f||r)},r.\u0275cmp=n.Xpm({type:r,selectors:[["cvc-form-buttons"]],ngContentSelectors:u,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(f,y){1&f&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:["[_nghost-%COMP%]{display:block}.form-buttons[_ngcontent-%COMP%]{text-align:right}"]}),r})()},4375:(E,h,e)=>{e.d(h,{R:()=>t});var n=e(9808),u=e(5e3);let t=(()=>{class r{}return r.\u0275fac=function(f){return new(f||r)},r.\u0275mod=u.oAB({type:r}),r.\u0275inj=u.cJS({imports:[[n.ez]]}),r})()},8227:(E,h,e)=>{e.d(h,{q:()=>p});var n=e(5e3),u=e(8929),t=e(4850),r=e(373),d=e(2868),f=e(7625),y=e(1793),z=e(9350),O=e(9808),M=e(6042),v=e(2683),P=e(2643),C=e(3677),x=e(8144),A=e(6699),S=e(4219);function b(l,T){1&l&&n.Hsn(0)}function B(l,T){1&l&&n.GkF(0)}function I(l,T){if(1&l&&(n.ynx(0),n.YNc(1,B,1,0,"ng-container",5),n.BQk()),2&l){n.oxw(2);const g=n.MAs(1);n.xp6(1),n.Q6J("ngTemplateOutlet",g)}}function D(l,T){1&l&&n.GkF(0)}function Q(l,T){if(1&l&&(n.ynx(0),n.TgZ(1,"nz-button-group",6),n.YNc(2,D,1,0,"ng-container",5),n.TgZ(3,"button",7),n.TgZ(4,"nz-space",8),n.TgZ(5,"span"),n._uU(6,"for"),n.qZA(),n._UZ(7,"nz-avatar",9),n._UZ(8,"i",10),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&l){n.oxw();const g=n.MAs(4),_=n.oxw(),U=n.MAs(1);n.xp6(1),n.Q6J("nzSize",_.nzSize),n.xp6(1),n.Q6J("ngTemplateOutlet",U),n.xp6(1),n.Q6J("nzType",_.buttonType)("nzDanger",_.nzDanger)("disabled",_.disabled)("nzDropdownMenu",g),n.xp6(1),n.Q6J("nzSize",4),n.xp6(3),n.Q6J("nzSrc",null==_.selectedOrg?null:_.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function c(l,T){if(1&l){const g=n.EpF();n.TgZ(0,"li",11),n.NdJ("click",function(){const J=n.CHM(g).$implicit;return n.oxw(2).selectOrg(J)}),n._UZ(1,"nz-avatar",12),n._uU(2),n.qZA()}if(2&l){const g=T.$implicit,_=n.oxw(2);n.Q6J("nzSelected",(null==_.selectedOrg?null:_.selectedOrg.id)===g.id),n.xp6(1),n.Q6J("nzSrc",null==g?null:g.profileImagePath)("nzSize",10)("nzShape","square"),n.xp6(1),n.hij(" ",g.name," ")}}function o(l,T){if(1&l&&(n.ynx(0),n.YNc(1,I,2,1,"ng-container",1),n.YNc(2,Q,9,10,"ng-container",1),n.TgZ(3,"nz-dropdown-menu",null,2),n.TgZ(5,"ul",3),n.YNc(6,c,3,5,"li",4),n.qZA(),n.qZA(),n.BQk()),2&l){const g=T.ngIf;n.xp6(1),n.Q6J("ngIf",g.length<=1),n.xp6(1),n.Q6J("ngIf",g.length>1),n.xp6(4),n.Q6J("ngForOf",g)}}const i=["*"];let p=(()=>{class l{constructor(g){this.viewerService=g,this.selectedOrgChange=new n.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new u.xQ}get disabled(){return this.button.disabled}selectOrg(g){this.selectedOrg=g,this.selectedOrgChange.emit(g)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,t.U)(g=>g.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,r.j)("mostRecentOrg"),(0,d.b)(g=>{g&&(this.selectedOrg=g,this.selectedOrgChange.emit(g))})),this.mostRecentOrg$.pipe((0,f.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return l.\u0275fac=function(g){return new(g||l)(n.Y36(z.a))},l.\u0275cmp=n.Xpm({type:l,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(g,_,U){if(1&g&&n.Suo(U,y.m,5),2&g){let J;n.iGM(J=n.CRH())&&(_.button=J.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:i,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(g,_){1&g&&(n.F$t(),n.YNc(0,b,1,0,"ng-template",null,0,n.W1O),n.YNc(2,o,7,3,"ng-container",1),n.ALo(3,"async")),2&g&&(n.xp6(2),n.Q6J("ngIf",n.lcZ(3,1,_.organizations$)))},directives:[O.O5,O.tP,M.fY,v.w,M.ix,P.dQ,C.wA,C.cm,x.NU,A.Dz,C.RR,S.wO,O.sg,S.r9],pipes:[O.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),l})()},1825:(E,h,e)=>{e.d(h,{A:()=>y});var n=e(9808),u=e(6042),t=e(6699),r=e(3677),d=e(8144),f=e(5e3);let y=(()=>{class z{}return z.\u0275fac=function(M){return new(M||z)},z.\u0275mod=f.oAB({type:z}),z.\u0275inj=f.cJS({imports:[[n.ez,u.sL,t.Rt,r.b1,d.zf]]}),z})()},1793:(E,h,e)=>{e.d(h,{m:()=>u});var n=e(5e3);let u=(()=>{class t{constructor(d){this.el=d,this.observer=new MutationObserver(([f])=>this.disabled=f.target.disabled),this.observer.observe(this.el.nativeElement,{attributeFilter:["disabled"],childList:!1,subtree:!1})}ngOnDestroy(){this.observer.disconnect()}}return t.\u0275fac=function(d){return new(d||t)(n.Y36(n.SBq))},t.\u0275dir=n.lG2({type:t,selectors:[["button","cvcOrgSelectorBtn",""]],hostVars:2,hostBindings:function(d,f){2&d&&n.ekj("ant-btn-dangerous",f.nzDanger)}}),t})()},4623:(E,h,e)=>{e.d(h,{K:()=>M});var n=e(9808),u=e(8776),t=e(5e3),r=e(1047),d=e(4182);const y={name:"comment-textarea",component:(()=>{class v extends u.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(C,x)=>{var A;return`Comments must be at least ${null===(A=x.templateOptions)||void 0===A?void 0:A.minLength} characters in length.`}}},templateOptions:{rows:4}}}}return v.\u0275fac=function(){let P;return function(x){return(P||(P=t.n5z(v)))(x||v)}}(),v.\u0275cmp=t.Xpm({type:v,selectors:[["comment-textarea-type"]],features:[t.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(C,x){1&C&&t._UZ(0,"textarea",0),2&C&&t.Q6J("formControl",x.formControl)("formlyAttributes",x.field)},directives:[r.Zp,d.Fj,d.JJ,d.oH,u.VQ],styles:[""],changeDetection:0}),v})(),wrappers:["form-field"]};var z=e(4546),O=e(9139);let M=(()=>{class v{}return v.\u0275fac=function(C){return new(C||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[[n.ez,d.UX,u.X0.forChild({types:[y]}),O.u,z.U5,r.o7]]}),v})()},7733:(E,h,e)=>{e.r(h),e.d(h,{CurationQueuesModule:()=>Q});var n=e(9808),u=e(325),t=e(712),r=e(5e3),d=e(3756);let f=(()=>{class c{constructor(){this.status=t.RTy.Submitted}ngOnInit(){}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=r.Xpm({type:c,selectors:[["cvc-pending-assertions-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Assertions",3,"status"]],template:function(i,p){1&i&&r._UZ(0,"cvc-assertions-table",0),2&i&&r.Q6J("status",p.status)},directives:[d.x],styles:[""]}),c})();var y=e(8965);let z=(()=>{class c{constructor(){this.status=t.RTy.Submitted}ngOnInit(){}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=r.Xpm({type:c,selectors:[["cvc-pending-evidence-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Evidence",3,"status"]],template:function(i,p){1&i&&r._UZ(0,"cvc-evidence-table",0),2&i&&r.Q6J("status",p.status)},directives:[y.a],styles:[""]}),c})();var O=e(9814);const v=[{path:"",redirectTo:"pending-sources",pathMatch:"full"},{path:"pending-sources",component:(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=r.Xpm({type:c,selectors:[["cvc-pending-sources-page"]],decls:1,vars:0,consts:[["cvcTitle","Browse Suggested Sources"]],template:function(i,p){1&i&&r._UZ(0,"cvc-source-suggestions-table",0)},directives:[O.O],styles:[""]}),c})(),data:{breadcrumb:"Pending Source Suggestions"}},{path:"pending-evidence",component:z,data:{breadcrumb:"Pending Evidence Items"}},{path:"pending-assertions",component:f,data:{breadcrumb:"Pending Assertions"}}];let P=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=r.oAB({type:c}),c.\u0275inj=r.cJS({imports:[[u.Bz.forChild(v)],u.Bz]}),c})();var C=e(5630),x=e(1945),A=e(6949),S=e(8762),b=e(647),B=e(8144),I=e(3618),D=e(1894);let Q=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=r.oAB({type:c}),c.\u0275inj=r.cJS({imports:[[n.ez,A.WG,P,x.KJ,b.PV,B.zf,I.ZJ,D.Jb,C.D,S.c]]}),c})()},7563:(E,h,e)=>{e.r(h),e.d(h,{CurationModule:()=>c});var n=e(9808),u=e(325),t=e(5e3),r=e(8992),d=e(1945),f=e(1894),y=e(647),z=e(3618),O=e(2233);const C=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-curation-view"]],decls:1,vars:0,template:function(p,l){1&p&&t._UZ(0,"router-outlet")},directives:[u.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"activity",pathMatch:"full"},{path:"activity",component:(()=>{class o{constructor(){this.tabs=[{routeName:"curation-timeline",iconName:"civic-event",tabLabel:"Timeline"}]}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-curation-activity-view"]],decls:19,vars:4,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:event"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(p,l){1&p&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0),t.TgZ(2,"nz-page-header-content"),t.TgZ(3,"nz-row",1),t.TgZ(4,"nz-col",2),t._UZ(5,"i",3),t.qZA(),t.TgZ(6,"nz-col",4),t.TgZ(7,"h2"),t._uU(8,"Curation Event Timeline"),t.qZA(),t.TgZ(9,"p",5),t._uU(10,"All CIViC curation activity is logged and publicly available, thus esablishing the provenance of its assertions, summaries, associations, and acknowledging the work of collaborators."),t.qZA(),t.qZA(),t._UZ(11,"nz-col",6),t.qZA(),t.TgZ(12,"nz-row"),t.TgZ(13,"nz-col",7),t._UZ(14,"cvc-tab-navigation",8),t.qZA(),t.qZA(),t.TgZ(15,"nz-row"),t.TgZ(16,"nz-col",7),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&p&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",l.tabs),t.xp6(2),t.Q6J("nzSpan",24))},directives:[r.I,d.$O,d.u5,f.SK,f.t3,y.Ls,z.ZU,O.P,u.lC],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})(),loadChildren:()=>Promise.all([e.e(9716),e.e(5291),e.e(3894)]).then(e.bind(e,6461)).then(o=>o.CurationActivityModule),data:{breadcrumb:"Activity"}},{path:"queues",component:(()=>{class o{constructor(){this.tabs=[{routeName:"pending-sources",iconName:"civic-source",tabLabel:"Sources Queue"},{routeName:"pending-evidence",iconName:"civic-evidence",tabLabel:"Evidence Queue"},{routeName:"pending-assertions",iconName:"civic-assertion",tabLabel:"Assertions Queue"}]}}return o.\u0275fac=function(p){return new(p||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-curation-queues-view"]],decls:19,vars:4,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","file-add"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(p,l){1&p&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0),t.TgZ(2,"nz-page-header-content"),t.TgZ(3,"nz-row",1),t.TgZ(4,"nz-col",2),t._UZ(5,"i",3),t.qZA(),t.TgZ(6,"nz-col",4),t.TgZ(7,"h2"),t._uU(8,"Curation Queues"),t.qZA(),t.TgZ(9,"p",5),t._uU(10,"New submitted Evidence, Assertions, and Source Suggestions must be accepted by a CIViC Editor. These Curation Queues list items in need of Editor moderation."),t.qZA(),t.qZA(),t._UZ(11,"nz-col",6),t.qZA(),t.TgZ(12,"nz-row"),t.TgZ(13,"nz-col",7),t._UZ(14,"cvc-tab-navigation",8),t.qZA(),t.qZA(),t.TgZ(15,"nz-row"),t.TgZ(16,"nz-col",7),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&p&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",l.tabs),t.xp6(2),t.Q6J("nzSpan",24))},directives:[r.I,d.$O,d.u5,f.SK,f.t3,y.Ls,z.ZU,O.P,u.lC],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})(),loadChildren:()=>Promise.resolve().then(e.bind(e,7733)).then(o=>o.CurationQueuesModule),data:{breadcrumb:"Queues"}}]}];let x=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[u.Bz.forChild(C)],u.Bz]}),o})();var A=e(7733),S=e(2832);let b=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,S.W]]}),o})();var B=e(767);let I=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,B.Q]]}),o})();var D=e(9441);let Q=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,D.s]]}),o})(),c=(()=>{class o{}return o.\u0275fac=function(p){return new(p||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,x,A.CurationQueuesModule,b,I,Q]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/4292.73f4c12168601c38.js b/server/public/4292.73f4c12168601c38.js deleted file mode 100644 index 7cee32654..000000000 --- a/server/public/4292.73f4c12168601c38.js +++ /dev/null @@ -1 +0,0 @@ -"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/4658.0b2f1cd78524e647.js b/server/public/4658.5c85d7945136a277.js similarity index 95% rename from server/public/4658.0b2f1cd78524e647.js rename to server/public/4658.5c85d7945136a277.js index 6ad999f88..5b21c86eb 100644 --- a/server/public/4658.0b2f1cd78524e647.js +++ b/server/public/4658.5c85d7945136a277.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(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 +"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(9716),t.e(3883),t.e(5291),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/5291.95fc472ce90a140e.js b/server/public/5291.95fc472ce90a140e.js new file mode 100644 index 000000000..e105d62f2 --- /dev/null +++ b/server/public/5291.95fc472ce90a140e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5291],{2011:(D,T,_)=>{_.d(T,{o:()=>d});var e=_(712),g=_(4850),t=_(5e3);function m(i,c){if(1&i&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",11),t.BQk()),2&i){const n=t.oxw().ngIf,o=t.oxw(3);t.xp6(1),t.Q6J("events",n)("tagDisplay",o.tagDisplay)}}function O(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"button",14),t.NdJ("click",function(){t.CHM(n);const l=t.oxw().ngIf;return t.oxw(4).fetchMore(l.endCursor)}),t._uU(2,"Load More "),t.qZA(),t.qZA()}}function M(i,c){if(1&i&&(t.ynx(0),t.YNc(1,O,3,0,"div",12),t.BQk()),2&i){const n=c.ngIf;t.xp6(1),t.Q6J("ngIf",n.hasNextPage)}}function u(i,c){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",10),t.YNc(3,m,2,2,"ng-container",0),t.YNc(4,M,2,1,"ng-container",9),t.ALo(5,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()),2&i){const n=c.ngIf,o=t.oxw(3),l=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",n.length)("ngIfElse",l),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,o.pageInfo$))}}function E(i,c){if(1&i&&(t.TgZ(0,"nz-card",8),t.YNc(1,u,6,6,"ng-container",9),t.ALo(2,"ngrxPush"),t.qZA()),2&i){const n=t.oxw(2);t.Q6J("nzTitle",n.showFilters?"Events":void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,n.events$))}}function f(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"span"),t._uU(1," Show Child Events "),t.TgZ(2,"nz-switch",16),t.NdJ("ngModelChange",function(l){return t.CHM(n),t.oxw(3).showChildren=l})("ngModelChange",function(){return t.CHM(n),t.oxw(3).onShowChildrenToggle()}),t.qZA(),t.qZA()}if(2&i){const n=t.oxw(3);t.xp6(2),t.Q6J("ngModel",n.showChildren)}}function P(i,c){1&i&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&i&&t.hij(" ",t.xi3(1,1,c.$implicit.id,"action-filter")," ")}function I(i,c){if(1&i&&t._UZ(0,"nz-avatar",24),2&i){const n=t.oxw().$implicit;t.Q6J("nzSrc",n.profileImagePath)}}function h(i,c){if(1&i&&(t._UZ(0,"nz-avatar",25),t.ALo(1,"uppercase")),2&i){const n=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,n.displayName.charAt(0)))}}function z(i,c){if(1&i&&(t.YNc(0,I,1,1,"nz-avatar",22),t.YNc(1,h,2,3,"ng-template",null,23,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&i){const n=c.$implicit,o=t.MAs(2);t.Q6J("ngIf",n.profileImagePath)("ngIfElse",o),t.xp6(4),t.Oqu(n.displayName)}}function C(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"cvc-participant-list",21),t.NdJ("participantSelectedEvent",function(l){return t.CHM(n),t.oxw(4).onOriginatingUserSelected(l)}),t.ALo(1,"ngrxPush"),t.YNc(2,z,5,3,"ng-template",null,18,t.W1O),t.qZA()}if(2&i){const n=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,n.participants$))}}function L(i,c){if(1&i&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&i){const n=c.$implicit;t.xp6(1),t.hij(" ",n.name," ")}}function x(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"cvc-participant-list",26),t.NdJ("participantSelectedEvent",function(l){return t.CHM(n),t.oxw(4).onOrganizationSelected(l)}),t.ALo(1,"ngrxPush"),t.YNc(2,L,2,1,"ng-template",null,18,t.W1O),t.qZA()}if(2&i){const n=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,n.organizations$))}}function s(i,c){if(1&i){const n=t.EpF();t.ynx(0),t.TgZ(1,"cvc-participant-list",17),t.NdJ("participantSelectedEvent",function(l){return t.CHM(n),t.oxw(3).onActionSelected(l)}),t.ALo(2,"ngrxPush"),t.YNc(3,P,2,4,"ng-template",null,18,t.W1O),t.qZA(),t.YNc(5,C,4,3,"cvc-participant-list",19),t.YNc(6,x,4,3,"cvc-participant-list",20),t.BQk()}if(2&i){const n=t.oxw(3);t.xp6(1),t.Q6J("participantList",t.lcZ(2,3,n.actions$)),t.xp6(4),t.Q6J("ngIf",!n.userId),t.xp6(1),t.Q6J("ngIf",!n.organizationId)}}function p(i,c){1&i&&(t.TgZ(0,"nz-space",4),t.YNc(1,f,3,1,"span",15),t.YNc(2,s,7,5,"ng-container",15),t.qZA())}function a(i,c){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,E,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&i){const n=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",n.showFilters?"18":"24"),t.xp6(4),t.Q6J("ngIf",n.showFilters)}}function r(i,c){1&i&&t._UZ(0,"nz-empty",27)}let d=(()=>{class i{constructor(n){this.gql=n,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,g.U)(({data:n})=>n.events.pageInfo)),this.events$=this.results$.pipe((0,g.U)(({data:n})=>n.events.edges.map(o=>o.node))),this.unfilteredCount$=this.results$.pipe((0,g.U)(({data:n})=>n.events.unfilteredCount)),this.showFilters&&(this.participants$=this.results$.pipe((0,g.U)(({data:n})=>n.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,g.U)(({data:n})=>n.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,g.U)(({data:n})=>{var o,l;return(null===(l=null===(o=n.events)||void 0===o?void 0:o.eventTypes)||void 0===l?void 0:l.map(v=>({id:v})))||[]})))}fetchMore(n){this.queryRef.fetchMore({variables:{first:this.pageSize,after:n}})}onOrganizationSelected(n){this.queryRef.refetch({organizationId:null==n?void 0:n.id,showFilters:this.showFilters})}onActionSelected(n){this.queryRef.refetch({eventType:n?n.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(n){this.queryRef.refetch({originatingUserId:null==n?void 0:n.id,showFilters:this.showFilters})}onShowChildrenToggle(){let n;this.subscribable?(n={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):n=void 0,this.queryRef.refetch(Object.assign(Object.assign({},this.initialQueryVars),{subject:n,showFilters:this.showFilters}))}}return i.\u0275fac=function(n){return new(n||i)(t.Y36(e.BTF))},i.\u0275cmp=t.Xpm({type:i,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(n,o){if(1&n&&(t.YNc(0,a,7,3,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,r,1,0,"ng-template",null,1,t.W1O)),2&n){const l=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,o.unfilteredCount$))("ngIfElse",l)}},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}"]}),i})()},5291:(D,T,_)=>{_.d(T,{t:()=>n});var e=_(9808),g=_(2011),t=_(6949),m=_(7484),O=_(647),M=_(4546),u=_(4182),E=_(6462),f=_(1894),P=_(8054),I=_(3884),h=_(6042),z=_(9444),C=_(8144),L=_(1150),x=_(6699),s=_(685),p=_(5e3),a=_(3227),r=_(2643),d=_(2683),i=_(8747),c=_(2937);let n=(()=>{class o{}return o.\u0275fac=function(v){return new(v||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[e.ez,u.u5,t.WG,h.sL,m.vh,O.PV,M.U5,P.LV,E.m,f.Jb,C.zf,s.Xo,x.Rt,I.m,z.s,L.N,z.s]]}),o})();p.B6R(g.o,[e.O5,f.SK,f.t3,C.NU,C.$1,m.bd,a.r,h.ix,r.dQ,d.w,E.i,u.JJ,u.On,i.l,x.Dz,s.p9],[t.fM,c.R,e.gd])},8747:(D,T,_)=>{_.d(T,{l:()=>x});var e=_(5e3),g=_(9808),t=_(7484),m=_(3762),O=_(6042),M=_(2643),u=_(2683),E=_(647);const f=["itemTemplate"],P=function(s){return{$implicit:s}};function I(s,p){if(1&s){const a=e.EpF();e.TgZ(0,"nz-list-item",5),e.NdJ("click",function(){e.CHM(a);const d=e.oxw().$implicit;return e.oxw(2).onParticipantSelected(d)}),e.GkF(1,6),e.qZA()}if(2&s){const a=e.oxw().$implicit,r=e.oxw(2);e.ekj("selected-participant",a.id==(null==r.selectedItem?null:r.selectedItem.id)),e.xp6(1),e.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",e.VKq(4,P,a))}}function h(s,p){if(1&s&&(e.ynx(0),e.YNc(1,I,2,6,"nz-list-item",4),e.BQk()),2&s){const a=p.index,r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",a+1<=r.defaultListSize)}}function z(s,p){if(1&s){const a=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(a),e.oxw(2).onExpandClicked()}),e._UZ(1,"i",8),e._uU(2," Expand "),e.qZA()}}function C(s,p){if(1&s){const a=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(a),e.oxw(2).onCollapseClicked()}),e._UZ(1,"i",9),e._uU(2," Collapse "),e.qZA()}}function L(s,p){if(1&s&&(e.ynx(0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-list"),e.YNc(3,h,2,1,"ng-container",2),e.qZA(),e.YNc(4,z,3,0,"button",3),e.YNc(5,C,3,0,"button",3),e.qZA(),e.BQk()),2&s){const a=e.oxw();e.xp6(1),e.Q6J("nzTitle",a.listTitle),e.xp6(2),e.Q6J("ngForOf",a.participantList),e.xp6(1),e.Q6J("ngIf",a.participantList.length>a.defaultListSize),e.xp6(1),e.Q6J("ngIf",a.isExpanded)}}let x=(()=>{class s{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(a){var r;this.selectedItem=a.id==(null===(r=this.selectedItem)||void 0===r?void 0:r.id)?void 0:a,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 s.\u0275fac=function(a){return new(a||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-participant-list"]],contentQueries:function(a,r,d){if(1&a&&e.Suo(d,f,5),2&a){let i;e.iGM(i=e.CRH())&&(r.itemTemplateRef=i.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(a,r){1&a&&e.YNc(0,L,6,4,"ng-container",0),2&a&&e.Q6J("ngIf",r.participantList&&r.participantList.length>0)},directives:[g.O5,t.bd,m.n_,g.sg,m.AA,g.tP,O.ix,M.dQ,u.w,E.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}"]}),s})()}}]); \ No newline at end of file diff --git a/server/public/535.41583e85177a9773.js b/server/public/535.41583e85177a9773.js new file mode 100644 index 000000000..d6205fe01 --- /dev/null +++ b/server/public/535.41583e85177a9773.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[535],{8369:(F,O,o)=>{o.d(O,{W:()=>v});var i=o(9808),e=o(325),t=o(8481),A=o(3610),_=o(647),I=o(7484),w=o(3098),Z=o(3309),M=o(4867),E=o(6286),k=o(8018),U=o(6949),y=o(9444),z=o(1894),P=o(8144),x=o(3580),J=o(8625),Q=o(7026),Y=o(592),V=o(5e3);let L=(()=>{class g{}return g.\u0275fac=function(S){return new(S||g)},g.\u0275mod=V.oAB({type:g}),g.\u0275inj=V.cJS({imports:[[i.ez,e.Bz,U.WG,I.vh,w.q6,_.PV,z.Jb,P.zf,t.X,Z.U,x.Q,M.Q,E.y,k.e,y.s,Y.x,J.$L.forChild({formatter:{useClass:Q.x,provide:J.KP}})]]}),g})(),v=(()=>{class g{}return g.\u0275fac=function(S){return new(S||g)},g.\u0275mod=V.oAB({type:g}),g.\u0275inj=V.cJS({imports:[[i.ez,e.Bz,t.X,A.$6,_.PV,L,y.s]]}),g})()},209:(F,O,o)=>{o.d(O,{i:()=>v});var i=o(9808),e=o(325),t=o(8481),A=o(3610),_=o(647),I=o(7484),w=o(3309),Z=o(4867),M=o(1894),E=o(3098),k=o(8018),U=o(3580),y=o(6286),z=o(6949),P=o(8144),x=o(9444),J=o(9779),Q=o(592),Y=o(3618),V=o(5e3);let L=(()=>{class g{}return g.\u0275fac=function(S){return new(S||g)},g.\u0275mod=V.oAB({type:g}),g.\u0275inj=V.cJS({imports:[[i.ez,e.Bz,z.WG,_.PV,I.vh,M.Jb,E.q6,t.X,P.zf,Y.ZJ,x.s,k.e,U.Q,w.U,Z.Q,y.y,J.s,Q.x]]}),g})(),v=(()=>{class g{}return g.\u0275fac=function(S){return new(S||g)},g.\u0275mod=V.oAB({type:g}),g.\u0275inj=V.cJS({imports:[[i.ez,e.Bz,t.X,A.$6,_.PV,L,x.s]]}),g})()},5749:(F,O,o)=>{o.d(O,{m:()=>st});var i=o(5e3),e=o(9808),t=o(325),A=o(8481),_=o(3610),I=o(4850),w=o(712),Z=o(7484),M=o(7881),E=o(1894),k=o(3098),U=o(6550),y=o(6949);const z=function(p,C){return{displayName:p,profileImagePath:C}};function P(p,C){if(1&p&&(i._UZ(0,"cvc-user-avatar",12),i.TgZ(1,"span",13),i._uU(2),i.qZA()),2&p){const m=i.oxw().ngIf;i.Q6J("user",i.WLB(2,z,m.name,m.profileImagePath)),i.xp6(2),i.Oqu(m.name)}}function x(p,C){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&p){const m=C.ngIf;i.xp6(1),i.Oqu(m)}}function J(p,C){if(1&p&&(i.ynx(0),i.TgZ(1,"cvc-link-tag",14),i._uU(2),i.qZA(),i.BQk()),2&p){const m=i.oxw().ngIf;i.xp6(1),i.Q6J("href",m.url),i.xp6(1),i.hij(" ",m.name," ")}}function Q(p,C){if(1&p&&(i.ynx(0),i.TgZ(1,"nz-card",4),i.YNc(2,P,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&p){const m=C.ngIf,D=i.MAs(3);i.oxw();const $=i.MAs(4),j=i.MAs(6);i.xp6(1),i.Q6J("nzTitle",D),i.xp6(7),i.Q6J("ngIf",m.description)("ngIfElse",$),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(2),i.Q6J("ngIf",m.url)("ngIfElse",j)}}function Y(p,C){1&p&&i._uU(0," Organization has not provided a description.\n")}function V(p,C){1&p&&i._uU(0," --\n")}let L=(()=>{class p{constructor(m){this.gql=m}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,I.U)(({data:m})=>m.organization))}}return p.\u0275fac=function(m){return new(m||p)(i.Y36(w.X5f))},p.\u0275cmp=i.Xpm({type:p,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(m,D){1&m&&(i.TgZ(0,"div",0),i.YNc(1,Q,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,V,1,0,"ng-template",null,3,i.W1O)),2&m&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,D.org$)))},directives:[e.O5,Z.bd,M.L,E.SK,E.t3,k.R7,k.uj,U.l],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}"]}),p})();var v=o(647);function g(p,C){}function h(p,C){if(1&p&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,g,0,0,"ng-template",6),i.qZA(),i.BQk()),2&p){const m=i.oxw(),D=i.MAs(2);i.xp6(1),i.MGl("routerLink","/organizations/",m.org.id,""),i.xp6(1),i.Q6J("ngTemplateOutlet",D)}}function S(p,C){}function W(p,C){if(1&p&&i._UZ(0,"cvc-organization-popover",10),2&p){const m=i.oxw(3);i.Q6J("orgId",m.org.id)}}function X(p,C){if(1&p&&i.YNc(0,W,1,1,"cvc-organization-popover",9),2&p){const m=i.oxw(2);i.Q6J("ngIf",m.enablePopover)}}function K(p,C){if(1&p&&(i.TgZ(0,"nz-tag",7),i.YNc(1,S,0,0,"ng-template",6),i.qZA(),i.YNc(2,X,1,1,"ng-template",null,8,i.W1O)),2&p){const m=i.MAs(3);i.oxw();const D=i.MAs(8);i.Q6J("nzPopoverContent",m),i.xp6(1),i.Q6J("ngTemplateOutlet",D)}}function tt(p,C){}function et(p,C){if(1&p&&(i.TgZ(0,"nz-tag"),i.YNc(1,tt,0,0,"ng-template",6),i.qZA()),2&p){i.oxw();const m=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",m)}}function nt(p,C){}function ot(p,C){if(1&p&&i.YNc(0,nt,0,0,"ng-template",6),2&p){i.oxw();const m=i.MAs(2);i.Q6J("ngTemplateOutlet",m)}}function it(p,C){if(1&p&&(i._UZ(0,"i",11),i._uU(1)),2&p){const m=i.oxw();i.xp6(1),i.hij(" ",m.org.name,"\n")}}let st=(()=>{class p{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 p.\u0275fac=function(m){return new(m||p)},p.\u0275cmp=i.Xpm({type:p,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(m,D){if(1&m&&(i.YNc(0,h,3,2,"ng-container",0),i.YNc(1,K,4,2,"ng-template",null,1,i.W1O),i.YNc(3,et,2,1,"ng-template",null,2,i.W1O),i.YNc(5,ot,1,1,"ng-template",null,3,i.W1O),i.YNc(7,it,2,1,"ng-template",null,4,i.W1O)),2&m){const $=i.MAs(6);i.Q6J("ngIf",D.linked)("ngIfElse",$)}},directives:[e.O5,t.yS,e.tP,A.j,_.lU,L,v.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),p})()},6286:(F,O,o)=>{o.d(O,{y:()=>U});var i=o(9808),e=o(325),t=o(8481),A=o(3610),_=o(647),I=o(6949),w=o(7484),Z=o(3630),M=o(3098),E=o(5e3);let k=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=E.oAB({type:y}),y.\u0275inj=E.cJS({imports:[[i.ez,I.WG,_.PV,w.vh,Z.X,M.q6]]}),y})(),U=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=E.oAB({type:y}),y.\u0275inj=E.cJS({imports:[[i.ez,e.Bz,t.X,A.$6,_.PV,k]]}),y})()},592:(F,O,o)=>{o.d(O,{x:()=>_});var i=o(9808),e=o(8481),t=o(647),A=o(5e3);let _=(()=>{class I{}return I.\u0275fac=function(Z){return new(Z||I)},I.\u0275mod=A.oAB({type:I}),I.\u0275inj=A.cJS({imports:[[i.ez,e.X,t.PV]]}),I})()},7677:(F,O,o)=>{o.d(O,{G:()=>y});var i=o(9808),e=o(325),t=o(3610),A=o(8481),_=o(647),I=o(9779),w=o(4867),Z=o(7484),M=o(3098),E=o(6949),k=o(5e3);let U=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=k.oAB({type:z}),z.\u0275inj=k.cJS({imports:[[i.ez,E.WG,Z.vh,M.q6,I.s,w.Q]]}),z})(),y=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=k.oAB({type:z}),z.\u0275inj=k.cJS({imports:[[i.ez,e.Bz,t.$6,A.X,_.PV,U]]}),z})()},8664:(F,O,o)=>{o.d(O,{I:()=>j});var i=o(6654),e=o(5e3),t=o(9808),A=o(325),_=o(8481),I=o(3610),w=o(4850),Z=o(712),M=o(7484),E=o(647),k=o(3193),U=o(3098),y=o(6550),z=o(1894),P=o(8144),x=o(6949);function J(l,f){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 Q(l,f){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,f){1&l&&(e.TgZ(0,"span"),e._uU(1,",\xa0"),e.qZA())}function V(l,f){if(1&l&&(e.TgZ(0,"span"),e._uU(1),e.YNc(2,Y,2,0,"span",1),e.qZA()),2&l){const d=f.$implicit,N=f.last;e.xp6(1),e.hij(" ",d,""),e.xp6(1),e.Q6J("ngIf",!N)}}function L(l,f){if(1&l&&(e.TgZ(0,"nz-descriptions-item",15),e.YNc(1,V,3,2,"span",16),e.qZA()),2&l){const d=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",d.variantAliases)}}function v(l,f){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 g(l,f){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,f){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 S(l,f){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 W(l,f){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,Q,1,2,"ng-template",null,4,e.W1O),e.TgZ(6,"nz-descriptions",5),e.YNc(7,L,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,g,4,2,"a",12),e.YNc(15,h,4,2,"a",12),e.YNc(16,S,4,2,"a",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&l){const d=f.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 X=(()=>{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,W,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,M.bd,E.Ls,k.H,U.R7,U.uj,t.sg,y.l,z.SK,z.t3,P.NU,P.$1,A.yS,_.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 K(l,f){}function tt(l,f){if(1&l&&(e.ynx(0),e.TgZ(1,"a",5),e.YNc(2,K,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 et(l,f){}function nt(l,f){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,et,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 ot(l,f){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,f){if(1&l&&e.YNc(0,ot,1,1,"cvc-variant-popover",10),2&l){const d=e.oxw(2);e.Q6J("ngIf",d.enablePopover)}}function st(l,f){if(1&l&&(e.YNc(0,nt,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 p(l,f){}function C(l,f){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,p,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 m(l,f){}function D(l,f){if(1&l&&e.YNc(0,m,0,0,"ng-template",6),2&l){e.oxw();const d=e.MAs(2);e.Q6J("ngTemplateOutlet",d)}}function $(l,f){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 j=(()=>{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,tt,3,2,"ng-container",0),e.YNc(1,st,3,2,"ng-template",null,1,e.W1O),e.YNc(3,C,2,2,"ng-template",null,2,e.W1O),e.YNc(5,D,1,1,"ng-template",null,3,e.W1O),e.YNc(7,$,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,A.yS,t.tP,_.j,I.lU,X,E.Ls],styles:[""]}),l})()},4867:(F,O,o)=>{o.d(O,{Q:()=>P});var i=o(9808),e=o(325),t=o(8481),A=o(647),_=o(3610),I=o(6949),w=o(7484),Z=o(1894),M=o(3098),E=o(8144),k=o(3309),U=o(3630),y=o(5e3);let z=(()=>{class x{}return x.\u0275fac=function(Q){return new(Q||x)},x.\u0275mod=y.oAB({type:x}),x.\u0275inj=y.cJS({imports:[[i.ez,e.Bz,I.WG,w.vh,Z.Jb,M.q6,t.X,A.PV,E.zf,k.U,U.X]]}),x})(),P=(()=>{class x{}return x.\u0275fac=function(Q){return new(Q||x)},x.\u0275mod=y.oAB({type:x}),x.\u0275inj=y.cJS({imports:[[i.ez,e.Bz,t.X,_.$6,A.PV,z]]}),x})()},4340:(F,O,o)=>{o.r(O),o.d(O,{WelcomeModule:()=>Xt});var i=o(325),e=o(712),t=o(5e3),A=o(8144),_=o(1894),I=o(226),w=o(925),Z=o(9808),M=o(655),E=o(1159),k=o(8929),U=o(3753),y=o(7625),z=o(9439),P=o(1721),x=o(4090);const J=["slickList"],Q=["slickTrack"];function Y(s,a){}const V=function(s){return{$implicit:s}};function L(s,a){if(1&s){const n=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const u=t.CHM(n).index;return t.oxw(2).onLiClick(u)}),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,V,n))}}function v(s,a){if(1&s&&(t.TgZ(0,"ul",7),t.YNc(1,L,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 g(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 S=(()=>{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 W{constructor(a,n,r,c,u){this.cdr=n,this.renderer=r,this.platform=c,this.options=u,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 X extends W{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 k.xQ;return this.contents.forEach((u,R)=>{this.renderer.setStyle(u.el,"opacity",r===R?"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 K extends W{constructor(a,n,r,c,u){super(a,n,r,c,u),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 k.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(u=>{this.renderer.setStyle(u.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,u,R,G,b,ct,pt,gt){this.nzConfigService=r,this.ngZone=c,this.renderer=u,this.cdr=R,this.platform=G,this.resizeService=b,this.nzDragService=ct,this.directionality=pt,this.customStrategies=gt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,this.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=q=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-q:q)},this.pointerDown=q=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(q).subscribe(T=>{var dt;this.pointerDelta=T,this.isDragging=!0,null===(dt=this.strategy)||void 0===dt||dt.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const T=this.pointerDelta?this.pointerDelta.x:0;Math.abs(T)>this.gestureRect.width/3?this.goTo(T>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,y.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,y.R)(this.destroy$)).subscribe(n=>{const{keyCode:r}=n;r!==E.oh&&r!==E.SV||(n.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,y.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,u=(n+r)%r;this.isTransiting=!0,this.nzBeforeChange.emit({from:c,to:u}),this.strategy.switch(this.activeIndex,n).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(n),this.isTransiting=!1}),this.markContentActive(u),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 K(this,this.cdr,this.renderer,this.platform):new X(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(I.Is,8),t.Y36(tt,8))},s.\u0275cmp=t.Xpm({type:s,selectors:[["nz-carousel"]],contentQueries:function(n,r,c){if(1&n&&t.Suo(c,S,4),2&n){let u;t.iGM(u=t.CRH())&&(r.carouselContents=u)}},viewQuery:function(n,r){if(1&n&&(t.Gf(J,7),t.Gf(Q,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(u){return r.pointerDown(u)})("touchstart",function(u){return r.pointerDown(u)}),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,g,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,M.gn)([(0,z.oS)()],s.prototype,"nzEffect",void 0),(0,M.gn)([(0,z.oS)(),(0,P.yF)()],s.prototype,"nzEnableSwipe",void 0),(0,M.gn)([(0,z.oS)(),(0,P.yF)()],s.prototype,"nzDots",void 0),(0,M.gn)([(0,z.oS)(),(0,P.yF)()],s.prototype,"nzAutoPlay",void 0),(0,M.gn)([(0,z.oS)(),(0,P.Rn)()],s.prototype,"nzAutoPlaySpeed",void 0),(0,M.gn)([(0,P.Rn)()],s.prototype,"nzTransitionSpeed",void 0),(0,M.gn)([(0,z.oS)()],s.prototype,"nzDotPosition",null),s})(),ot=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[I.vT,Z.ez,w.ud]]}),s})();var p=o(4850),C=o(7484),m=o(3868),D=o(4182),$=o(5249),j=o(2683),l=o(647),f=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 rt(s,a){1&s&&t._UZ(0,"i",32)}function vt(s,a){1&s&&t._UZ(0,"i",33)}function zt(s,a){1&s&&t._UZ(0,"i",34)}function ft(s,a){1&s&&t._UZ(0,"i",35)}function Ct(s,a){1&s&&t._UZ(0,"i",36)}function Tt(s,a){1&s&&t._UZ(0,"i",37)}function yt(s,a){1&s&&t._UZ(0,"i",38)}function _t(s,a){1&s&&t._UZ(0,"i",39)}function xt(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,rt,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,vt,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,zt,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,ft,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,Ct,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,Tt,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,yt,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,_t,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),u=t.MAs(19),R=t.MAs(25),G=t.MAs(31),b=t.MAs(38),ct=t.MAs(44),pt=t.MAs(50),gt=t.MAs(55),q=t.MAs(60),T=t.oxw();t.xp6(4),t.Q6J("nzTitle",T.statsType+" Assertions")("nzValue",t.lcZ(5,30,n.assertions[T.statsTypes[T.statsType]]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",T.statsType+" Evidence")("nzValue",t.lcZ(11,32,n.evidenceItems[T.statsTypes[T.statsType]]))("nzPrefix",c),t.xp6(6),t.Q6J("nzTitle",T.statsType+" Genes")("nzValue",t.lcZ(17,34,n.genes[T.statsTypes[T.statsType]]))("nzPrefix",u),t.xp6(6),t.Q6J("nzTitle",T.statsType+" Variants")("nzValue",t.lcZ(23,36,n.variants[T.statsTypes[T.statsType]]))("nzPrefix",R),t.xp6(6),t.Q6J("nzTitle",T.statsType+" Contributors")("nzValue",t.lcZ(29,38,n.users[T.statsTypes[T.statsType]]))("nzPrefix",G),t.xp6(7),t.Q6J("nzTitle",T.statsType+" Diseases")("nzValue",t.lcZ(36,40,n.diseases[T.statsTypes[T.statsType]]))("nzPrefix",b),t.xp6(6),t.Q6J("nzTitle",T.statsType+" Drugs")("nzValue",t.lcZ(42,42,n.drugs[T.statsTypes[T.statsType]]))("nzPrefix",ct),t.xp6(6),t.Q6J("nzTitle",T.statsType+" Sources")("nzValue",t.lcZ(48,44,n.sources[T.statsTypes[T.statsType]]))("nzPrefix",pt),t.xp6(5),t.Q6J("nzTitle",T.statsType+" Revisions")("nzValue",t.lcZ(53,46,n.revisions[T.statsTypes[T.statsType]]))("nzPrefix",gt),t.xp6(5),t.Q6J("nzTitle",T.statsType+" Comments")("nzValue",t.lcZ(58,48,n.comments[T.statsTypes[T.statsType]]))("nzPrefix",q)}}function St(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 Zt=(()=>{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,p.U)(n=>n.loading)),this.stats$=this.response$.pipe((0,p.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,xt,61,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,St,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&n){const c=t.MAs(2),u=t.MAs(6);t.Q6J("nzExtra",c),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",u)}},directives:[C.bd,m.Dg,D.JJ,D.On,m.Of,m.Bq,Z.O5,_.SK,_.t3,i.yS,$.my,j.w,l.Ls],pipes:[f.fM,Z.JJ],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),s})();var H=o(3762),lt=o(3618),At=o(2340),Pt=o(3227),at=o(6042),It=o(2643),ht=o(685);function Et(s,a){if(1&s&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",9),t.BQk()),2&s){const n=t.oxw().ngIf,r=t.oxw(3);t.xp6(1),t.Q6J("events",n)("tagDisplay",r.tagDisplay)}}function Mt(s,a){1&s&&(t.ynx(0),t.TgZ(1,"button",10),t._uU(2,"See Full Activity Feed "),t.qZA(),t.BQk())}function kt(s,a){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",8),t.YNc(3,Et,2,2,"ng-container",0),t.YNc(4,Mt,3,0,"ng-container",7),t.ALo(5,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()),2&s){const n=a.ngIf,r=t.oxw(3),c=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",n.length)("ngIfElse",c),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,r.pageInfo$))}}function Ot(s,a){if(1&s&&(t.TgZ(0,"nz-card",6),t.YNc(1,kt,6,6,"ng-container",7),t.ALo(2,"ngrxPush"),t.qZA()),2&s){const n=t.oxw(2);t.Q6J("nzTitle",void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,n.events$))}}function Nt(s,a){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,Ot,3,4,"nz-card",5),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&s&&(t.xp6(1),t.Q6J("nzGutter",16))}function wt(s,a){1&s&&t._UZ(0,"nz-empty",11)}let Ut=(()=>{class s{constructor(n){this.gql=n,this.pageSize=15,this.mode=e.wJ2.Unscoped,this.tagDisplay="hideOrg",this.showFilters=!1}ngOnInit(){this.initialQueryVars={first:this.pageSize,mode:this.mode,showFilters:this.showFilters},this.queryRef=At.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,p.U)(({data:n})=>n.events.pageInfo)),this.events$=this.results$.pipe((0,p.U)(({data:n})=>n.events.edges.map(r=>r.node))),this.unfilteredCount$=this.results$.pipe((0,p.U)(({data:n})=>n.events.unfilteredCount))}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(e.BTF))},s.\u0275cmp=t.Xpm({type:s,selectors:[["cvc-homepage-event-feed"]],inputs:{pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],["nzSpan","24"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-button","","nzType","default","nzSize","small","nzBlock","","routerLink","/curation/activity"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(n,r){if(1&n&&(t.YNc(0,Nt,5,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,wt,1,0,"ng-template",null,1,t.W1O)),2&n){const c=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,r.unfilteredCount$))("ngIfElse",c)}},directives:[Z.O5,_.SK,_.t3,A.NU,A.$1,C.bd,Pt.r,at.ix,It.dQ,j.w,i.rH,ht.p9],pipes:[f.fM],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}#event-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#event-filters[_ngcontent-%COMP%] #participant-filter[_ngcontent-%COMP%]{width:200px}#event-filters[_ngcontent-%COMP%] #organization-filter[_ngcontent-%COMP%]{width:250px}"]}),s})();function Dt(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 Vt(s,a){1&s&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-space",0),t.YNc(3,Dt,24,0,"nz-carousel",4),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("nzSpan",24))}function Jt(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 Qt(s,a){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-homepage-event-feed",18),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(41),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("pageSize",12))}function Lt(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 Bt=[{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"],[3,"pageSize"],["nzTitle","Medical Disclaimer: This resource is intended for purely research purposes. It should not be used for emergencies or medical or professional advice.","nzSize","small",1,"home-card"]],template:function(n,r){1&n&&(t.TgZ(0,"nz-space",0),t.YNc(1,Vt,4,1,"nz-row",1),t.YNc(2,Jt,3,2,"nz-row",2),t.YNc(3,Qt,45,4,"nz-row",2),t.YNc(4,Lt,10,2,"nz-row",2),t.qZA())},directives:[A.NU,A.$1,_.SK,_.t3,nt,S,Zt,C.bd,H.n_,H.AA,H.yi,H.IO,lt.ZU,H.yw,Ut],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 Yt=(()=>{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(Bt)],i.Bz]}),s})();var mt=o(5109),Wt=o(6559);let Ft=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[Z.ez,D.u5,i.Bz,f.WG,$.A2,_.Jb,C.vh,m.aF,at.sL,Wt.H0,lt.ZJ,l.PV,mt.s]]}),s})();var $t=o(4546),Rt=o(6462),jt=o(8054),Ht=o(3884),ut=o(9444),Gt=o(1150),bt=o(6699);let qt=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[Z.ez,D.u5,f.WG,i.Bz,at.sL,C.vh,l.PV,$t.U5,jt.LV,Rt.m,_.Jb,A.zf,ht.Xo,bt.Rt,Ht.m,ut.s,Gt.N,ut.s]]}),s})(),Xt=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[Z.ez,D.u5,f.WG,at.sL,_.Jb,ot,C.vh,H.Ph,m.aF,A.zf,$.A2,lt.ZJ,Yt,Ft,qt,mt.s]]}),s})()},6559:(F,O,o)=>{o.d(O,{H0:()=>L});var i=o(5e3),e=o(9808),t=o(226);let L=(()=>{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/6303.e5fe598bc8a5dfd2.js b/server/public/6303.e5fe598bc8a5dfd2.js deleted file mode 100644 index 66dc20dac..000000000 --- a/server/public/6303.e5fe598bc8a5dfd2.js +++ /dev/null @@ -1 +0,0 @@ -"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.80f46e569d77955f.js b/server/public/681.86186dfa0324b3e1.js similarity index 96% rename from server/public/681.80f46e569d77955f.js rename to server/public/681.86186dfa0324b3e1.js index 8ea52563f..7ee744372 100644 --- a/server/public/681.80f46e569d77955f.js +++ b/server/public/681.86186dfa0324b3e1.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(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 +"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(9716),o.e(5291),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/7259.5cb9a32d5c87028f.js b/server/public/7259.3d0ae570e3bb4dac.js similarity index 99% rename from server/public/7259.5cb9a32d5c87028f.js rename to server/public/7259.3d0ae570e3bb4dac.js index 3d8ac4a5a..b341227c4 100644 --- a/server/public/7259.5cb9a32d5c87028f.js +++ b/server/public/7259.3d0ae570e3bb4dac.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7259],{8369:(B,J,a)=>{a.d(J,{W:()=>j});var i=a(9808),o=a(325),x=a(8481),M=a(3610),T=a(647),z=a(7484),Z=a(3098),I=a(3309),C=a(4867),G=a(6286),n=a(8018),O=a(6949),m=a(9444),_=a(1894),P=a(8144),h=a(3580),b=a(8625),S=a(7026),L=a(592),N=a(5e3);let F=(()=>{class u{}return u.\u0275fac=function(w){return new(w||u)},u.\u0275mod=N.oAB({type:u}),u.\u0275inj=N.cJS({imports:[[i.ez,o.Bz,O.WG,z.vh,Z.q6,T.PV,_.Jb,P.zf,x.X,I.U,h.Q,C.Q,G.y,n.e,m.s,L.x,b.$L.forChild({formatter:{useClass:S.x,provide:b.KP}})]]}),u})(),j=(()=>{class u{}return u.\u0275fac=function(w){return new(w||u)},u.\u0275mod=N.oAB({type:u}),u.\u0275inj=N.cJS({imports:[[i.ez,o.Bz,x.X,M.$6,T.PV,F,m.s]]}),u})()},209:(B,J,a)=>{a.d(J,{i:()=>j});var i=a(9808),o=a(325),x=a(8481),M=a(3610),T=a(647),z=a(7484),Z=a(3309),I=a(4867),C=a(1894),G=a(3098),n=a(8018),O=a(3580),m=a(6286),_=a(6949),P=a(8144),h=a(9444),b=a(9779),S=a(592),L=a(3618),N=a(5e3);let F=(()=>{class u{}return u.\u0275fac=function(w){return new(w||u)},u.\u0275mod=N.oAB({type:u}),u.\u0275inj=N.cJS({imports:[[i.ez,o.Bz,_.WG,T.PV,z.vh,C.Jb,G.q6,x.X,P.zf,L.ZJ,h.s,n.e,O.Q,Z.U,I.Q,m.y,b.s,S.x]]}),u})(),j=(()=>{class u{}return u.\u0275fac=function(w){return new(w||u)},u.\u0275mod=N.oAB({type:u}),u.\u0275inj=N.cJS({imports:[[i.ez,o.Bz,x.X,M.$6,T.PV,F,h.s]]}),u})()},6286:(B,J,a)=>{a.d(J,{y:()=>O});var i=a(9808),o=a(325),x=a(8481),M=a(3610),T=a(647),z=a(6949),Z=a(7484),I=a(3630),C=a(3098),G=a(5e3);let n=(()=>{class m{}return m.\u0275fac=function(P){return new(P||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[i.ez,z.WG,T.PV,Z.vh,I.X,C.q6]]}),m})(),O=(()=>{class m{}return m.\u0275fac=function(P){return new(P||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[i.ez,o.Bz,x.X,M.$6,T.PV,n]]}),m})()},592:(B,J,a)=>{a.d(J,{x:()=>T});var i=a(9808),o=a(8481),x=a(647),M=a(5e3);let T=(()=>{class z{}return z.\u0275fac=function(I){return new(I||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({imports:[[i.ez,o.X,x.PV]]}),z})()},112:(B,J,a)=>{a.d(J,{u:()=>en});var i=a(5e3),o=a(9808),x=a(325),M=a(8481),T=a(3610),z=a(4850),Z=a(712),I=a(7484),C=a(3098),G=a(8664),n=a(6906),O=a(6949);function m(l,f){if(1&l&&(i._UZ(0,"i",7),i._uU(1)),2&l){const p=i.oxw().ngIf;i.xp6(1),i.hij(" ",p.name," ")}}function _(l,f){if(1&l&&(i.TgZ(0,"span"),i._UZ(1,"cvc-variant-tag",10),i.qZA()),2&l){const p=f.$implicit;i.xp6(1),i.Q6J("variant",p.node)}}function P(l,f){if(1&l&&(i.TgZ(0,"nz-descriptions-item",8),i.YNc(1,_,2,1,"span",9),i.qZA()),2&l){const p=i.oxw().ngIf;i.xp6(1),i.Q6J("ngForOf",p.variants.edges)}}function h(l,f){if(1&l&&(i.TgZ(0,"span"),i._UZ(1,"cvc-source-tag",12),i.qZA()),2&l){const p=f.$implicit;i.xp6(1),i.Q6J("source",p)}}function b(l,f){if(1&l&&(i.TgZ(0,"nz-descriptions-item",11),i.YNc(1,h,2,1,"span",9),i.qZA()),2&l){const p=i.oxw().ngIf;i.xp6(1),i.Q6J("ngForOf",p.sources)}}function S(l,f){if(1&l&&(i.ynx(0),i.TgZ(1,"nz-card",2),i.YNc(2,m,2,1,"ng-template",null,3,i.W1O),i._uU(4),i.TgZ(5,"nz-descriptions",4),i.YNc(6,P,2,1,"nz-descriptions-item",5),i.YNc(7,b,2,1,"nz-descriptions-item",6),i.qZA(),i.qZA(),i.BQk()),2&l){const p=f.ngIf,U=i.MAs(3);i.xp6(1),i.Q6J("nzTitle",U),i.xp6(3),i.hij(" ",p.description," "),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(1),i.Q6J("ngIf",p.variants.edges.length>0),i.xp6(1),i.Q6J("ngIf",p.sources.length>0)}}let L=(()=>{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,z.U)(({data:p})=>p.variantGroup))}}return l.\u0275fac=function(p){return new(p||l)(i.Y36(Z.Zo2))},l.\u0275cmp=i.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,U){1&p&&(i.TgZ(0,"div",0),i.YNc(1,S,8,5,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA()),2&p&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,U.variantGroup$)))},directives:[o.O5,I.bd,C.R7,C.uj,o.sg,G.I,n.T],pipes:[O.fM],styles:["[_nghost-%COMP%]{display:block}"]}),l})();var N=a(647);function F(l,f){}function j(l,f){if(1&l&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,F,0,0,"ng-template",6),i.qZA(),i.BQk()),2&l){const p=i.oxw(),U=i.MAs(2);i.xp6(1),i.Q6J("routerLink",p.variantgroup.link),i.xp6(1),i.Q6J("ngTemplateOutlet",U)}}function u(l,f){}function Y(l,f){if(1&l&&(i.TgZ(0,"nz-tag",9),i.YNc(1,u,0,0,"ng-template",6),i.qZA()),2&l){i.oxw();const p=i.MAs(2);i.oxw();const U=i.MAs(8);i.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p),i.xp6(1),i.Q6J("ngTemplateOutlet",U)}}function w(l,f){if(1&l&&i._UZ(0,"cvc-variant-group-popover",11),2&l){const p=i.oxw(3);i.Q6J("variantGroupId",p.variantgroup.id)}}function X(l,f){if(1&l&&i.YNc(0,w,1,1,"cvc-variant-group-popover",10),2&l){const p=i.oxw(2);i.Q6J("ngIf",p.enablePopover)}}function K(l,f){if(1&l&&(i.YNc(0,Y,2,3,"nz-tag",7),i.YNc(1,X,1,1,"ng-template",null,8,i.W1O)),2&l){const p=i.oxw(),U=i.MAs(4);i.Q6J("ngIf",p.enablePopover)("ngIfElse",U)}}function q(l,f){}function V(l,f){if(1&l&&(i.TgZ(0,"nz-tag"),i.YNc(1,q,0,0,"ng-template",6),i.qZA()),2&l){i.oxw();const p=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",p)}}function k(l,f){}function nn(l,f){if(1&l&&i.YNc(0,k,0,0,"ng-template",6),2&l){i.oxw();const p=i.MAs(2);i.Q6J("ngTemplateOutlet",p)}}function tn(l,f){if(1&l&&(i._UZ(0,"i",12),i._uU(1)),2&l){const p=i.oxw();i.xp6(1),i.hij(" ",p.variantgroup.name,"\n")}}let en=(()=>{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=i.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,U){if(1&p&&(i.YNc(0,j,3,2,"ng-container",0),i.YNc(1,K,3,2,"ng-template",null,1,i.W1O),i.YNc(3,V,2,1,"ng-template",null,2,i.W1O),i.YNc(5,nn,1,1,"ng-template",null,3,i.W1O),i.YNc(7,tn,2,1,"ng-template",null,4,i.W1O)),2&p){const on=i.MAs(6);i.Q6J("ngIf",U.linked)("ngIfElse",on)}},directives:[o.O5,x.yS,o.tP,M.j,T.lU,L,N.Ls],styles:[""]}),l})()},7677:(B,J,a)=>{a.d(J,{G:()=>m});var i=a(9808),o=a(325),x=a(3610),M=a(8481),T=a(647),z=a(9779),Z=a(4867),I=a(7484),C=a(3098),G=a(6949),n=a(5e3);let O=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({imports:[[i.ez,G.WG,I.vh,C.q6,z.s,Z.Q]]}),_})(),m=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({imports:[[i.ez,o.Bz,x.$6,M.X,T.PV,O]]}),_})()},8664:(B,J,a)=>{a.d(J,{I:()=>ln});var i=a(6654),o=a(5e3),x=a(9808),M=a(325),T=a(8481),z=a(3610),Z=a(4850),I=a(712),C=a(7484),G=a(647),n=a(3193),O=a(3098),m=a(6550),_=a(1894),P=a(8144),h=a(6949);function b(c,v){if(1&c&&(o._UZ(0,"i",13),o._uU(1)),2&c){const g=o.oxw().ngIf;o.xp6(1),o.hij(" ",g.name," ")}}function S(c,v){if(1&c&&o._UZ(0,"cvc-gene-tag",14),2&c){const g=o.oxw().ngIf;o.Q6J("enablePopover",!1)("gene",g.gene)}}function L(c,v){1&c&&(o.TgZ(0,"span"),o._uU(1,",\xa0"),o.qZA())}function N(c,v){if(1&c&&(o.TgZ(0,"span"),o._uU(1),o.YNc(2,L,2,0,"span",1),o.qZA()),2&c){const g=v.$implicit,A=v.last;o.xp6(1),o.hij(" ",g,""),o.xp6(1),o.Q6J("ngIf",!A)}}function F(c,v){if(1&c&&(o.TgZ(0,"nz-descriptions-item",15),o.YNc(1,N,3,2,"span",16),o.qZA()),2&c){const g=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",g.variantAliases)}}function j(c,v){if(1&c&&(o.TgZ(0,"nz-descriptions-item",17),o.TgZ(1,"cvc-link-tag",18),o._uU(2),o.qZA(),o.qZA()),2&c){const g=o.oxw().ngIf;o.xp6(1),o.MGl("href","https://reg.genome.network/allele/",g.alleleRegistryId,".html"),o.xp6(1),o.hij(" ",g.alleleRegistryId," ")}}function u(c,v){if(1&c&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",20),o._UZ(2,"i",21),o._uU(3),o.qZA(),o.qZA()),2&c){const g=o.oxw().ngIf;o.MGl("routerLink","/variants/",g.id,"/flags"),o.xp6(3),o.hij(" Flags (",g.flags.totalCount,") ")}}function Y(c,v){if(1&c&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",22),o._UZ(2,"i",23),o._uU(3),o.qZA(),o.qZA()),2&c){const g=o.oxw().ngIf;o.MGl("routerLink","/variants/",g.id,"/revisions"),o.xp6(3),o.hij(" Revisions (",g.revisions.totalCount,") ")}}function w(c,v){if(1&c&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",24),o._UZ(2,"i",25),o._uU(3),o.qZA(),o.qZA()),2&c){const g=o.oxw().ngIf;o.MGl("routerLink","/variants/",g.id,"/comments"),o.xp6(3),o.hij(" Comments (",g.comments.totalCount,") ")}}function X(c,v){if(1&c&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,b,2,1,"ng-template",null,3,o.W1O),o.YNc(4,S,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,j,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,u,4,2,"a",12),o.YNc(15,Y,4,2,"a",12),o.YNc(16,w,4,2,"a",12),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&c){const g=v.ngIf,A=o.MAs(3),E=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",A)("nzExtra",E),o.xp6(5),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",g.variantAliases.length>0),o.xp6(1),o.Q6J("ngIf",g.alleleRegistryId),o.xp6(2),o.hij(" ",g.evidenceItems.totalCount," ")}}let K=(()=>{class c{constructor(g){this.gql=g}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,Z.U)(({data:g})=>g.variant))}}return c.\u0275fac=function(g){return new(g||c)(o.Y36(I.ZYZ))},c.\u0275cmp=o.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(g,A){1&g&&(o.TgZ(0,"div",0),o.YNc(1,X,17,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&g&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,A.variant$)))},directives:[x.O5,C.bd,G.Ls,n.H,O.R7,O.uj,x.sg,m.l,_.SK,_.t3,P.NU,P.$1,M.yS,T.j],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}"]}),c})();function q(c,v){}function V(c,v){if(1&c&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,q,0,0,"ng-template",6),o.qZA(),o.BQk()),2&c){const g=o.oxw(),A=o.MAs(2);o.xp6(1),o.Q6J("routerLink",g.variant.link),o.xp6(1),o.Q6J("ngTemplateOutlet",A)}}function k(c,v){}function nn(c,v){if(1&c){const g=o.EpF();o.TgZ(0,"nz-tag",9),o.NdJ("nzOnClose",function(E){return o.CHM(g),o.oxw(2).itemClosed(E)}),o.YNc(1,k,0,0,"ng-template",6),o.qZA()}if(2&c){o.oxw();const g=o.MAs(2),A=o.oxw(),E=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",A.onCloseClicked?0:.5)("nzPopoverContent",g)("nzMode",A.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",E)}}function tn(c,v){if(1&c&&o._UZ(0,"cvc-variant-popover",11),2&c){const g=o.oxw(3);o.Q6J("variantId",g.variant.id)}}function en(c,v){if(1&c&&o.YNc(0,tn,1,1,"cvc-variant-popover",10),2&c){const g=o.oxw(2);o.Q6J("ngIf",g.enablePopover)}}function l(c,v){if(1&c&&(o.YNc(0,nn,2,4,"nz-tag",7),o.YNc(1,en,1,1,"ng-template",null,8,o.W1O)),2&c){const g=o.oxw(),A=o.MAs(4);o.Q6J("ngIf",g.enablePopover)("ngIfElse",A)}}function f(c,v){}function p(c,v){if(1&c){const g=o.EpF();o.TgZ(0,"nz-tag",12),o.NdJ("nzOnClose",function(E){return o.CHM(g),o.oxw().itemClosed(E)}),o.YNc(1,f,0,0,"ng-template",6),o.qZA()}if(2&c){const g=o.oxw(),A=o.MAs(8);o.Q6J("nzMode",g.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",A)}}function U(c,v){}function on(c,v){if(1&c&&o.YNc(0,U,0,0,"ng-template",6),2&c){o.oxw();const g=o.MAs(2);o.Q6J("ngTemplateOutlet",g)}}function cn(c,v){if(1&c&&(o._UZ(0,"i",13),o._uU(1)),2&c){const g=o.oxw();o.xp6(1),o.hij(" ",g.variant.name,"\n")}}let ln=(()=>{class c 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 c.\u0275fac=function(g){return new(g||c)},c.\u0275cmp=o.Xpm({type:c,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(g,A){if(1&g&&(o.YNc(0,V,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,on,1,1,"ng-template",null,3,o.W1O),o.YNc(7,cn,2,1,"ng-template",null,4,o.W1O)),2&g){const E=o.MAs(6);o.Q6J("ngIf",A.linked)("ngIfElse",E)}},directives:[x.O5,M.yS,x.tP,T.j,z.lU,K,G.Ls],styles:[""]}),c})()},4867:(B,J,a)=>{a.d(J,{Q:()=>P});var i=a(9808),o=a(325),x=a(8481),M=a(647),T=a(3610),z=a(6949),Z=a(7484),I=a(1894),C=a(3098),G=a(8144),n=a(3309),O=a(3630),m=a(5e3);let _=(()=>{class h{}return h.\u0275fac=function(S){return new(S||h)},h.\u0275mod=m.oAB({type:h}),h.\u0275inj=m.cJS({imports:[[i.ez,o.Bz,z.WG,Z.vh,I.Jb,C.q6,x.X,M.PV,G.zf,n.U,O.X]]}),h})(),P=(()=>{class h{}return h.\u0275fac=function(S){return new(S||h)},h.\u0275mod=m.oAB({type:h}),h.\u0275inj=m.cJS({imports:[[i.ez,o.Bz,x.X,T.$6,M.PV,_]]}),h})()},8252:(B,J,a)=>{a.r(J),a.d(J,{GenesDetailModule:()=>bt});var i=a(9808),o=a(5630),x=a(1945),M=a(647),T=a(8144),z=a(6949),Z=a(3618),I=a(6042),C=a(325),G=a(2278),n=a(5e3);let O=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,G.l]]}),t})();var m=a(712),_=a(3801);let P=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.geneId,entityType:m.OfU.Gene}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(e,s){1&e&&n._UZ(0,"cvc-comment-list",0),2&e&&n.Q6J("commentable",s.commentable)},directives:[_.D],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var h=a(8929),b=a(591),S=a(373),L=a(1059),N=a(7625),F=a(9350),j=a(8992),u=a(5623),Y=a(8168),w=a(2683),X=a(2643),K=a(9077),q=a(2233),V=a(1894),k=a(759);const nn=function(t){return["/genes",t,"revise"]};function tn(t,r){if(1&t&&(n.TgZ(0,"button",14,15),n._uU(2," Revise "),n.qZA()),2&t){const e=n.MAs(1),s=n.oxw(4).ngIf;n.Q6J("routerLink",n.VKq(2,nn,s.id))("nzType",e.isActive?"primary":"default")}}function en(t,r){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,tn,3,4,"button",13),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",e.signedIn)}}function l(t,r){if(1&t&&(n.TgZ(0,"button",17,15),n._uU(2," Flag "),n.qZA()),2&t){const e=n.MAs(1);n.Q6J("nzType",e.isActive?"primary":"default")}}function f(t,r){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,l,3,1,"button",16),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",e.signedIn)}}function p(t,r){if(1&t&&n._UZ(0,"cvc-entity-subscription-button",19),2&t){const e=n.oxw(2).ngrxLet,s=n.oxw(3);n.Q6J("viewer",e)("subscribableId",s.subscribable.id)}}function U(t,r){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,p,1,2,"cvc-entity-subscription-button",18),n.qZA()),2&t){const e=n.oxw().ngrxLet,s=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.signedIn&&s.subscribable)}}function on(t,r){1&t&&(n.TgZ(0,"nz-space",11),n.YNc(1,en,2,1,"span",12),n.YNc(2,f,2,1,"span",12),n.YNc(3,U,2,1,"span",12),n.qZA())}function cn(t,r){if(1&t&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,on,4,0,"nz-space",10),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",e.viewer$)}}function ln(t,r){if(1&t&&(n.TgZ(0,"nz-col",20),n._UZ(1,"cvc-contributor-avatars",21),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("subscribable",e.subscribable)}}const c=function(t){return{flagged:t}};function v(t,r){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"div",2),n.ALo(3,"ngrxPush"),n.TgZ(4,"nz-page-header",3),n.TgZ(5,"nz-page-header-title",4),n._UZ(6,"i",5),n._uU(7),n.qZA(),n.TgZ(8,"nz-page-header-subtitle"),n._uU(9),n.qZA(),n.YNc(10,cn,2,1,"nz-page-header-extra",6),n.TgZ(11,"nz-page-header-content"),n.TgZ(12,"cvc-tab-navigation",7),n.ALo(13,"ngrxPush"),n.YNc(14,ln,2,1,"ng-template",null,8,n.W1O),n.qZA(),n.TgZ(16,"div",9),n._UZ(17,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const e=r.ngIf,s=n.oxw();n.xp6(1),n.Q6J("displayName",e.name),n.xp6(1),n.Q6J("flags",n.lcZ(3,7,s.flagsTotal$)),n.xp6(3),n.Q6J("ngClass",n.VKq(11,c,e.flags.totalCount>0)),n.xp6(2),n.hij(" ",e.name," "),n.xp6(2),n.hij(" ",e.officialName," "),n.xp6(1),n.Q6J("ngrxLet",s.viewer$),n.xp6(2),n.Q6J("tabs",n.lcZ(13,9,s.tabs$))}}let g=(()=>{class t{constructor(e,s,d){this.gql=e,this.viewerService=s,this.route=d,this.destroy$=new h.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.filterCurators=y=>"curator"==y.role,this.filterEditors=y=>"editor"==y.role||"admin"==y.role,this.tabs$=new b.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(y=>{let W=this.gql.watch({geneId:+y.geneId}).valueChanges;this.loading$=W.pipe((0,S.j)("loading"),(0,L.O)(!0)),this.gene$=W.pipe((0,S.j)("data","gene")),this.commentsTotal$=this.gene$.pipe((0,S.j)("comments","totalCount")),this.flagsTotal$=this.gene$.pipe((0,S.j)("flags","totalCount")),this.gene$.pipe((0,S.j)("revisions","totalCount"),(0,N.R)(this.destroy$)).subscribe({next:Q=>{this.tabs$.next(this.defaultTabs.map(H=>"Revisions"===H.tabLabel?Object.assign({badgeCount:Q},H):H))}}),this.subscribable={id:+y.geneId,entityType:m.o71.Gene},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m.TNk),n.Y36(F.a),n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["genes-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:gene"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Gene",3,"viewer","subscribableId",4,"ngIf"],["typename","Gene",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(e,s){1&e&&(n.YNc(0,v,18,13,"ng-container",0),n.ALo(1,"async")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,s.gene$))},directives:[i.O5,j.I,u.o,x.$O,x.u9,Y.Y,i.mk,w.w,M.Ls,x.yG,z.eJ,x.Jp,T.NU,T.$1,I.ix,X.dQ,C.Od,C.rH,K.Q,x.u5,q.P,V.t3,k.N,C.lC],pipes:[i.Ov,z.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 A=a(4292);let E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,A.t]]}),t})();var gn=a(2011);let hn=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.geneId,entityType:m.o71.Gene}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(e,s){1&e&&n._UZ(0,"cvc-event-feed",0),2&e&&n.Q6J("subscribable",s.subscribable)},directives:[gn.o],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var $=a(7484),xn=a(6559),Tn=a(4271);let Cn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,V.Jb,$.vh,T.zf,xn.H0,Tn.M]]}),t})();var yn=a(7036);let Zn=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:m.sfv.Gene,id:+this.route.snapshot.params.geneId}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(e,s){1&e&&n._UZ(0,"cvc-flag-list-and-filter",0),2&e&&n.Q6J("flaggable",s.flaggable)},directives:[yn.L],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var Mn=a(3762),An=a(8481),In=a(1150),Pn=a(6699),Sn=a(1835),Gn=a(2914);let Jn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,z.WG,V.Jb,Mn.Ph,$.vh,T.zf,An.X,Z.ZJ,Pn.Rt,In.N,Sn.i,Gn.A]]}),t})();var Qn=a(8291);let Vn=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(s=>{this.geneId=+s.geneId,this.entityType=m.oRL.Gene})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(e,s){1&e&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&e&&n.Q6J("id",s.geneId)("entityType",s.entityType)},directives:[Qn.a],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var pn=a(3098),On=a(8541),un=a(897),Nn=a(3630),Un=a(9779),an=a(4546),R=a(4182),mn=a(8054),bn=a(4867),rn=a(1047);let wn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,R.u5,z.WG,I.sL,V.Jb,$.vh,an.U5,rn.o7,mn.LV,Z.ZJ,bn.Q,un.$]]}),t})();var dn=a(868),D=a(1132);let Yn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,$.vh,dn.we,D.HQ,V.Jb,D.HQ,Z.ZJ]]}),t})();var En=a(592),Fn=a(7345);let Ln=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,z.WG,V.Jb,pn.q6,Z.ZJ,T.zf,On.o,un.$,Nn.X,Un.s,En.x,Fn.W,wn,Yn]]}),t})();var sn=a(4850),jn=a(427),vn=a(6715),Dn=a(6906),Bn=a(6550),_n=a(8298);let $n=(()=>{class t{constructor(e){this.logger=e}parse(e){const s={kegg:"http://www.genome.jp/kegg-bin/show_pathway?",reactome:"https://reactome.org/content/detail/",pharmgkb:"https://www.pharmgkb.org/pathway/",humancyc:"http://humancyc.org/HUMAN/NEW-IMAGE?type=PATHWAY&object=",smpdb:"http://www.smpdb.ca/view/",pid:"http://pid.nci.nih.gov/search/pathway_landing.shtml?what=graphic&jpg=on&pathway_id=",wikipathways:"http://wikipathways.org/index.php/Pathway:",netpath:null,biocarta:null,inoh:null,signalink:null,ehmn:null},d=e.pathway||[],y=[];let W;return Object.keys(d).forEach(function(Q){Array.isArray(d[Q])||(d[Q]=[d[Q]]),d[Q].forEach(function(H,zn){W=s[Q]+d[Q][zn].id,null===s[Q]&&(W=null),y.push({name:d[Q][zn].name,link:W,src:Q})})}),e.pathway=y,e.pathwayList=y.map(Q=>Q.name),!Array.isArray(e.alias)&&e.alias&&(e.alias=[e.alias]),!Array.isArray(e.interpro)&&e.interpro&&(e.interpro=[e.interpro]),e.interproList=e.interpro.map(Q=>Q.desc),e}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(_n.Kf))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Rn(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"div",6),n.TgZ(2,"div",7),n.TgZ(3,"div",8),n._uU(4," Entrez Symbol: "),n.qZA(),n.TgZ(5,"div",9),n._uU(6),n.TgZ(7,"strong",10),n._uU(8,"UniProtKB ID:"),n.qZA(),n._uU(9),n.qZA(),n.qZA(),n.TgZ(10,"div",7),n.TgZ(11,"div",8),n._uU(12," Chromosome: "),n.qZA(),n.TgZ(13,"div",9),n._uU(14),n.qZA(),n.TgZ(15,"div",8),n._uU(16," Strand: "),n.qZA(),n.TgZ(17,"div",9),n._uU(18),n.qZA(),n.TgZ(19,"div",8),n._uU(20," Start: "),n.qZA(),n.TgZ(21,"div",9),n._uU(22),n.qZA(),n.TgZ(23,"div",8),n._uU(24," Stop: "),n.qZA(),n.TgZ(25,"div",9),n._uU(26),n.qZA(),n.qZA(),n.TgZ(27,"div",7),n.TgZ(28,"div",8),n._uU(29," Aliases: "),n.qZA(),n.TgZ(30,"div",9),n._uU(31),n.qZA(),n.qZA(),n.TgZ(32,"div",7),n.TgZ(33,"div",8),n._uU(34," Protein Domains: "),n.qZA(),n.TgZ(35,"div",9),n.TgZ(36,"p",11),n._uU(37),n.qZA(),n.qZA(),n.qZA(),n.TgZ(38,"div",7),n.TgZ(39,"div",8),n._uU(40," Pathways: "),n.qZA(),n.TgZ(41,"div",9),n.TgZ(42,"p",11),n._uU(43),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.AsE(" ",e.info.symbol," (ID: ",e.info._id,") "),n.xp6(3),n.hij(" ",e.info.uniprot["Swiss-Prot"]," "),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",1),n.xp6(1),n.hij(" ",e.info.genomic_pos_hg19.chr," "),n.xp6(1),n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("nzSpan",1),n.xp6(1),n.hij(" ",e.info.genomic_pos_hg19.strand," "),n.xp6(1),n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("nzSpan",2),n.xp6(1),n.hij(" ",e.info.genomic_pos_hg19.start," "),n.xp6(1),n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("nzSpan",2),n.xp6(1),n.hij(" ",e.info.genomic_pos_hg19.end," "),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",e.info.alias.join(", ")," "),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("nzEllipsisRows",5),n.xp6(1),n.Oqu(e.info.interproList.join(", ")),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("nzEllipsisRows",5),n.xp6(1),n.Oqu(e.info.pathwayList.join(", "))}}function Wn(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"div",6),n.TgZ(2,"p",11),n._uU(3),n.qZA(),n.qZA(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(2),n.Q6J("nzEllipsisRows",12),n.xp6(1),n.Oqu(e.info.summary)}}function Xn(t,r){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td"),n._uU(4),n.qZA(),n.TgZ(5,"td"),n._uU(6),n.qZA(),n.qZA()),2&t){const e=r.$implicit;n.xp6(2),n.hij(" ",e.short_desc," "),n.xp6(2),n.hij(" ",e.desc," "),n.xp6(2),n.hij(" ",e.id," ")}}const fn=function(){return{x:"100%",y:"200px"}};function Hn(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-table",12,13),n.TgZ(3,"thead"),n.TgZ(4,"tr"),n.TgZ(5,"th"),n._uU(6,"Name"),n.qZA(),n.TgZ(7,"th"),n._uU(8,"Description"),n.qZA(),n.TgZ(9,"th"),n._uU(10,"ID"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"tbody"),n.YNc(12,Xn,7,3,"ng-template",14),n.qZA(),n.qZA(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("nzData",e.info.interpro)("nzScroll",n.DdM(4,fn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Kn(t,r){if(1&t&&(n.TgZ(0,"a",21),n._uU(1),n.qZA()),2&t){const e=n.oxw().$implicit;n.s9C("href",null==e?null:e.link,n.LSH),n.xp6(1),n.hij(" ",e.src," ")}}function qn(t,r){if(1&t&&n._uU(0),2&t){const e=n.oxw().$implicit;n.hij(" ",e.src," ")}}function kn(t,r){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td",18),n.YNc(4,Kn,2,2,"a",19),n.YNc(5,qn,1,1,"ng-template",null,20,n.W1O),n.qZA(),n.qZA()),2&t){const e=r.$implicit,s=n.MAs(6);n.xp6(2),n.hij(" ",e.name," "),n.xp6(2),n.Q6J("ngIf",null==e?null:e.link)("ngIfElse",s)}}function nt(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-table",12,15),n.TgZ(3,"colgroup"),n._UZ(4,"col",16),n._UZ(5,"col",17),n.qZA(),n.TgZ(6,"thead"),n.TgZ(7,"tr"),n.TgZ(8,"th"),n._uU(9,"Name"),n.qZA(),n.TgZ(10,"th",18),n._uU(11,"Source"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"tbody"),n.YNc(13,kn,7,3,"ng-template",14),n.qZA(),n.qZA(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("nzData",e.info.pathway)("nzScroll",n.DdM(4,fn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function tt(t,r){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",1),n.TgZ(2,"nz-card-tab"),n.TgZ(3,"nz-tabset",2),n.NdJ("nzSelectChange",function(d){return n.CHM(e),n.oxw().tabChange(d)}),n._UZ(4,"nz-tab",3),n._UZ(5,"nz-tab",3),n._UZ(6,"nz-tab",3),n._UZ(7,"nz-tab",3),n.qZA(),n.qZA(),n.ynx(8,4),n.YNc(9,Rn,44,33,"ng-container",5),n.YNc(10,Wn,4,2,"ng-container",5),n.YNc(11,Hn,13,5,"ng-container",5),n.YNc(12,nt,14,5,"ng-container",5),n.BQk(),n.qZA(),n.BQk()}if(2&t){const e=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(1),n.Q6J("nzTitle","Overview"),n.xp6(1),n.Q6J("nzTitle","Summary"),n.xp6(1),n.Q6J("nzTitle","Protein Domains ("+e.info.interproList.length+")"),n.xp6(1),n.Q6J("nzTitle","Pathways ("+e.info.pathway.length+")"),n.xp6(1),n.Q6J("ngSwitch",e.tabIndex),n.xp6(1),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3)}}let et=(()=>{class t{constructor(e,s){this.infoService=e,this.logger=s,this.tabIndex=0}ngOnInit(){this.tabChange({index:0,tab:null})}ngOnChanges(){this.geneInfo&&(this.info=this.infoService.parse(this.geneInfo))}tabChange(e){this.tabIndex=e.index}}return t.\u0275fac=function(e){return new(e||t)(n.Y36($n),n.Y36(_n.Kf))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-my-gene-info"]],inputs:{geneInfo:"geneInfo"},features:[n.TTD],decls:1,vars:1,consts:[[4,"ngIf"],["nzTitle","MyGeneInfo"],["nzSize","small",3,"nzAnimated","nzSelectChange"],[3,"nzTitle"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nz-row","",3,"nzGutter"],["nz-col","",1,"key-col",3,"nzSpan"],["nz-col","",3,"nzSpan"],[2,"margin-left","8px"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small",3,"nzData","nzScroll","nzFrontPagination","nzShowPagination"],["proteinDomainsTable",""],["nz-virtual-scroll",""],["pathwaysTable",""],["width","90%"],["width","10%"],[1,"button-col"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href",4,"ngIf","ngIfElse"],["noPathwayLink",""],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href"]],template:function(e,s){1&e&&n.YNc(0,tt,13,10,"ng-container",0),2&e&&n.Q6J("ngIf",s.geneInfo)},directives:[i.O5,$.bd,$._i,dn.xH,dn.xw,i.RF,i.n9,V.SK,V.t3,Z.ZU,D.N8,D.Om,D.$Z,D.Uo,D._C,D.p0,D.zu],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),t})();var ot=a(13),at=a(8664);function it(t,r){if(1&t&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&t){const e=n.oxw(3).ngIf;n.xp6(1),n.hij("(",e.length," displayed)")}}function rt(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"span",8),n._uU(2),n.qZA(),n.YNc(3,it,2,1,"span",9),n.BQk()),2&t){const e=r.ngIf,s=n.oxw(2).ngIf;n.xp6(2),n.hij("",e," Total"),n.xp6(1),n.Q6J("ngIf",e>s.length)}}function st(t,r){if(1&t&&(n._UZ(0,"i",7),n._uU(1),n.YNc(2,rt,4,2,"ng-container",0),n.ALo(3,"ngrxPush")),2&t){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.geneName," Variants "),n.xp6(1),n.Q6J("ngIf",n.lcZ(3,2,e.totalVariants$))}}function ct(t,r){if(1&t){const e=n.EpF();n.TgZ(0,"i",24),n.NdJ("click",function(){n.CHM(e);const d=n.oxw(4);return d.variantNameFilter=void 0,d.onModelUpdated()}),n.qZA()}}function lt(t,r){if(1&t&&n.YNc(0,ct,1,0,"i",23),2&t){const e=n.oxw(3);n.Q6J("ngIf",e.variantNameFilter)}}function gt(t,r){if(1&t){const e=n.EpF();n.TgZ(0,"form",10),n.TgZ(1,"nz-form-item"),n.TgZ(2,"nz-form-label"),n._uU(3,"Filter"),n.qZA(),n.TgZ(4,"nz-form-control"),n.TgZ(5,"nz-input-group",11),n.TgZ(6,"input",12),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw(2).onModelUpdated()})("ngModelChange",function(d){return n.CHM(e),n.oxw(2).variantNameFilter=d}),n.qZA(),n.YNc(7,lt,1,1,"ng-template",null,13,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.TgZ(9,"nz-form-item"),n.TgZ(10,"nz-form-label"),n._uU(11,"Order By"),n.qZA(),n.TgZ(12,"nz-form-control"),n.TgZ(13,"nz-select",14),n.NdJ("ngModelChange",function(d){return n.CHM(e),n.oxw(2).onVariantSortOrderChanged(d)})("ngModelChange",function(d){return n.CHM(e),n.oxw(2).sortBy=d}),n._UZ(14,"nz-option",15),n._UZ(15,"nz-option",16),n._UZ(16,"nz-option",17),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"nz-form-item"),n.TgZ(18,"nz-form-label"),n._uU(19,"Show"),n.qZA(),n.TgZ(20,"nz-form-control"),n.TgZ(21,"nz-select",18),n.NdJ("ngModelChange",function(d){return n.CHM(e),n.oxw(2).onVariantStatusFilterChanged(d)})("ngModelChange",function(d){return n.CHM(e),n.oxw(2).statusFilter=d}),n._UZ(22,"nz-option",19),n._UZ(23,"nz-option",20),n._UZ(24,"nz-option",21),n._UZ(25,"nz-option",22),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){const e=n.MAs(8),s=n.oxw(2);n.xp6(5),n.Q6J("nzSuffix",e)("nzCompact",!0),n.xp6(1),n.Q6J("ngModel",s.variantNameFilter),n.xp6(7),n.Q6J("ngModel",s.sortBy),n.xp6(8),n.Q6J("ngModel",s.statusFilter)}}function pt(t,r){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-variant-tag",25),n.BQk()),2&t){const e=r.$implicit;n.xp6(1),n.Q6J("variant",e)}}function mt(t,r){if(1&t){const e=n.EpF();n.TgZ(0,"nz-row",27),n.TgZ(1,"button",28),n.NdJ("click",function(){n.CHM(e);const d=n.oxw().ngIf;return n.oxw(2).fetchMore(d.endCursor)}),n._uU(2,"Load More "),n.qZA(),n.qZA()}}function dt(t,r){if(1&t&&(n.ynx(0),n.YNc(1,mt,3,0,"nz-row",26),n.BQk()),2&t){const e=r.ngIf;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function ut(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-card",1),n.YNc(2,st,4,4,"ng-template",null,2,n.W1O),n.YNc(4,gt,26,5,"ng-template",null,3,n.W1O),n.TgZ(6,"nz-row"),n.TgZ(7,"nz-col",4),n.TgZ(8,"cvc-tag-list",5),n.YNc(9,pt,2,1,"ng-container",6),n.qZA(),n.qZA(),n.qZA(),n.YNc(10,dt,2,1,"ng-container",0),n.ALo(11,"ngrxPush"),n.qZA(),n.BQk()),2&t){const e=r.ngIf,s=n.MAs(3),d=n.MAs(5),y=n.oxw();n.xp6(1),n.Q6J("nzTitle",s)("nzExtra",d),n.xp6(8),n.Q6J("ngForOf",e),n.xp6(1),n.Q6J("ngIf",n.lcZ(11,4,y.pageInfo$))}}let vt=(()=>{class t{constructor(e){this.gql=e,this.statusFilter=m.qP7.WithAcceptedOrSubmitted,this.sortBy=m.d4o.Name,this.debouncedQuery=new h.xQ,this.pageSize=50}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into variant menu component.");this.initialQueryVars={geneId:this.geneId,evidenceStatusFilter:this.statusFilter,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef$.valueChanges,this.pageInfo$=this.results$.pipe((0,sn.U)(({data:e})=>e.variants.pageInfo)),this.menuVariants$=this.results$.pipe((0,sn.U)(({data:e})=>e.variants.edges.map(s=>s.node))),this.totalVariants$=this.results$.pipe((0,sn.U)(({data:e})=>e.variants.totalCount)),this.debouncedQuery.pipe((0,ot.b)(500)).subscribe(e=>this.refresh())}onModelUpdated(){this.debouncedQuery.next()}onVariantStatusFilterChanged(e){this.refresh()}onVariantSortOrderChanged(e){this.queryRef$.refetch({sortBy:{column:e,direction:e==m.d4o.CoordinateEnd?m.SrV.Desc:m.SrV.Asc}})}refresh(){if(void 0===this.geneId)throw new Error("Must pass a gene id into variant menu component.");this.queryRef$.refetch({geneId:this.geneId,variantName:this.variantNameFilter,evidenceStatusFilter:this.statusFilter,sortBy:{column:this.sortBy,direction:m.SrV.Asc}})}fetchMore(e){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:e}})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m.zwS))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variant-menu"]],inputs:{geneId:"geneId",geneName:"geneName"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-icon","","nzType","civic:gene"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Variant Names","name","name-filter",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["nzSize","small","id","variant-sort-order","name","sortBy",3,"ngModel","ngModelChange"],["nzValue","NAME","nzLabel","Variant Name","selected",""],["nzValue","COORDINATE_START","nzLabel","Start Position"],["nzValue","COORDINATE_END","nzLabel","End Position"],["nzSize","small","id","status-filter","name","statusFilter",3,"ngModel","ngModelChange"],["nzValue","WITH_ACCEPTED","nzLabel","Variants with accepted evidence"],["nzValue","WITH_ACCEPTED_OR_SUBMITTED","nzLabel","Variants with accepted and/or submitted evidence","selected",""],["nzValue","WITH_SUBMITTED","nzLabel","Variants with submitted evidence"],["nzValue","ALL","nzLabel","All Variants"],["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,"variant"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"]],template:function(e,s){1&e&&(n.YNc(0,ut,12,6,"ng-container",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,s.menuVariants$))},directives:[i.O5,$.bd,w.w,Z.ZU,R._Y,R.JL,R.F,an.Lr,V.SK,an.Nx,V.t3,an.iK,an.Fd,rn.gB,rn.ke,rn.Zp,R.Fj,R.JJ,R.On,mn.Vq,mn.Ip,vn.$,i.sg,at.I,I.ix,X.dQ],pipes:[z.fM],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]}),t})();function _t(t,r){if(1&t&&(n.TgZ(0,"p",16),n._uU(1),n.qZA()),2&t){const e=n.oxw(3).ngIf;n.Q6J("nzEllipsisRows",8),n.xp6(1),n.Oqu(e.description)}}function ft(t,r){1&t&&n._UZ(0,"cvc-empty-revisable",17)}function zt(t,r){1&t&&n._UZ(0,"cvc-source-tag",19),2&t&&n.Q6J("source",r.$implicit)}function ht(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,zt,1,1,"cvc-source-tag",18),n.qZA(),n.BQk()),2&t){const e=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",e.sources)}}function xt(t,r){1&t&&(n.TgZ(0,"span",20),n._uU(1,"None specified"),n.qZA())}function Tt(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions",9),n.TgZ(1,"nz-descriptions-item",10),n.YNc(2,_t,2,2,"p",11),n.YNc(3,ft,1,0,"ng-template",null,12,n.W1O),n.qZA(),n.TgZ(5,"nz-descriptions-item",13),n.YNc(6,ht,3,1,"ng-container",14),n.YNc(7,xt,2,0,"ng-template",null,15,n.W1O),n.qZA(),n.qZA()),2&t){const e=n.MAs(4),s=n.MAs(8),d=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",d.description)("ngIfElse",e),n.xp6(4),n.Q6J("ngIf",d.sources.length>0)("ngIfElse",s)}}function Ct(t,r){1&t&&(n.TgZ(0,"span"),n._uU(1,","),n.qZA())}function yt(t,r){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ct,2,0,"span",26),n.BQk()),2&t){const e=r.$implicit,s=r.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!s)}}function Zt(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions-item",24),n.YNc(1,yt,3,2,"ng-container",25),n.qZA()),2&t){const e=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",e.geneAliases)}}function Mt(t,r){1&t&&(n.TgZ(0,"span",20),n._uU(1,"None specified"),n.qZA())}function At(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions",21),n.YNc(1,Zt,2,1,"nz-descriptions-item",22),n.YNc(2,Mt,2,0,"ng-template",null,23,n.W1O),n.qZA()),2&t){const e=n.MAs(3),s=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(1),n.Q6J("ngIf",s.geneAliases.length>0)("ngIfElse",e)}}function It(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions",21),n.TgZ(1,"nz-descriptions-item",27),n.TgZ(2,"cvc-tag-list"),n.TgZ(3,"cvc-link-tag",28),n._uU(4," DGIdb "),n.qZA(),n.TgZ(5,"cvc-link-tag",28),n._uU(6," ProteinPaint "),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&t){const e=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(3),n.Q6J("href","http://dgidb.org/genes/"+e.name)("tooltip","View "+e.name+" on DGIdb"),n.xp6(2),n.Q6J("href","https://pecan.stjude.cloud/proteinpaint/"+e.name+"/hg19/civic")("tooltip","View "+e.name+" on ProteinPaint")}}function Pt(t,r){if(1&t&&(n.TgZ(0,"nz-row",3),n.TgZ(1,"nz-col",4),n.TgZ(2,"nz-space",5),n.YNc(3,Tt,9,5,"nz-descriptions",6),n.YNc(4,At,4,3,"nz-descriptions",7),n.YNc(5,It,7,5,"nz-descriptions",7),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",4),n._UZ(7,"cvc-my-gene-info",8),n.ALo(8,"ngrxPush"),n.qZA(),n.qZA()),2&t){const e=n.oxw(2);n.Q6J("nzGutter",16),n.xp6(7),n.Q6J("geneInfo",n.lcZ(8,2,e.myGeneInfo$))}}function St(t,r){if(1&t&&(n.TgZ(0,"nz-row",3),n.TgZ(1,"nz-col",29),n._UZ(2,"cvc-variant-menu",30),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngIf;n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("geneId",e.id)("geneName",e.name)}}function Gt(t,r){1&t&&(n.TgZ(0,"nz-space",1),n.YNc(1,Pt,9,4,"nz-row",2),n.YNc(2,St,3,4,"nz-row",2),n.qZA())}const Jt=[{path:"",component:g,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class t{constructor(e,s,d){this.gql=e,this.viewerService=s,this.route=d,this.routeSub=this.route.params.subscribe(y=>{this.viewer$=this.viewerService.viewer$;let Q=this.gql.watch({geneId:+y.geneId}).valueChanges;this.subscribableEntity={id:+y.geneId,entityType:m.o71.Gene},this.gene$=Q.pipe((0,S.j)("data","gene")),this.loading$=Q.pipe((0,S.j)("loading")),this.myGeneInfo$=this.gene$.pipe((0,S.j)("myGeneInfoDetails"),(0,sn.U)(H=>JSON.parse(String(H))))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m.cCu),n.Y36(F.a),n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-summary"]],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,"nzGutter"],["nzSpan","12"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],[3,"geneInfo"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","1",4,"ngIf","ngIfElse"],["noAliases",""],["nzTitle","Aliases","nzSpan","1"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"nzSpan"],[3,"geneId","geneName"]],template:function(e,s){1&e&&(n.YNc(0,Gt,3,0,"nz-space",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,s.gene$))},directives:[i.O5,T.NU,T.$1,V.SK,V.t3,pn.R7,pn.uj,Z.ZU,jn.J,vn.$,i.sg,Dn.T,Bn.l,et,vt],pipes:[z.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),t})(),data:{breadcrumb:"Summary"}},{path:"comments",component:P,data:{breadcrumb:"Comments"}},{path:"revisions",component:Vn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Zn,data:{breadcrumb:"Summary"}},{path:"events",component:hn,data:{breadcrumb:"Events"}}]}];let Qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[C.Bz.forChild(Jt),Ln,O,Jn,Cn,E],C.Bz]}),t})();var Vt=a(4682),Ot=a(8762),Nt=a(5750),Ut=a(4609);let bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,Qt,z.WG,I.sL,M.PV,x.KJ,T.zf,Z.ZJ,V.Jb,Ot.c,Vt.m,Nt.Z,o.D,Ut.g,A.t]]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7259],{8369:(B,J,a)=>{a.d(J,{W:()=>j});var i=a(9808),o=a(325),x=a(8481),M=a(3610),T=a(647),z=a(7484),Z=a(3098),I=a(3309),C=a(4867),G=a(6286),n=a(8018),O=a(6949),m=a(9444),_=a(1894),P=a(8144),h=a(3580),b=a(8625),S=a(7026),L=a(592),N=a(5e3);let F=(()=>{class u{}return u.\u0275fac=function(w){return new(w||u)},u.\u0275mod=N.oAB({type:u}),u.\u0275inj=N.cJS({imports:[[i.ez,o.Bz,O.WG,z.vh,Z.q6,T.PV,_.Jb,P.zf,x.X,I.U,h.Q,C.Q,G.y,n.e,m.s,L.x,b.$L.forChild({formatter:{useClass:S.x,provide:b.KP}})]]}),u})(),j=(()=>{class u{}return u.\u0275fac=function(w){return new(w||u)},u.\u0275mod=N.oAB({type:u}),u.\u0275inj=N.cJS({imports:[[i.ez,o.Bz,x.X,M.$6,T.PV,F,m.s]]}),u})()},209:(B,J,a)=>{a.d(J,{i:()=>j});var i=a(9808),o=a(325),x=a(8481),M=a(3610),T=a(647),z=a(7484),Z=a(3309),I=a(4867),C=a(1894),G=a(3098),n=a(8018),O=a(3580),m=a(6286),_=a(6949),P=a(8144),h=a(9444),b=a(9779),S=a(592),L=a(3618),N=a(5e3);let F=(()=>{class u{}return u.\u0275fac=function(w){return new(w||u)},u.\u0275mod=N.oAB({type:u}),u.\u0275inj=N.cJS({imports:[[i.ez,o.Bz,_.WG,T.PV,z.vh,C.Jb,G.q6,x.X,P.zf,L.ZJ,h.s,n.e,O.Q,Z.U,I.Q,m.y,b.s,S.x]]}),u})(),j=(()=>{class u{}return u.\u0275fac=function(w){return new(w||u)},u.\u0275mod=N.oAB({type:u}),u.\u0275inj=N.cJS({imports:[[i.ez,o.Bz,x.X,M.$6,T.PV,F,h.s]]}),u})()},6286:(B,J,a)=>{a.d(J,{y:()=>O});var i=a(9808),o=a(325),x=a(8481),M=a(3610),T=a(647),z=a(6949),Z=a(7484),I=a(3630),C=a(3098),G=a(5e3);let n=(()=>{class m{}return m.\u0275fac=function(P){return new(P||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[i.ez,z.WG,T.PV,Z.vh,I.X,C.q6]]}),m})(),O=(()=>{class m{}return m.\u0275fac=function(P){return new(P||m)},m.\u0275mod=G.oAB({type:m}),m.\u0275inj=G.cJS({imports:[[i.ez,o.Bz,x.X,M.$6,T.PV,n]]}),m})()},592:(B,J,a)=>{a.d(J,{x:()=>T});var i=a(9808),o=a(8481),x=a(647),M=a(5e3);let T=(()=>{class z{}return z.\u0275fac=function(I){return new(I||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({imports:[[i.ez,o.X,x.PV]]}),z})()},112:(B,J,a)=>{a.d(J,{u:()=>en});var i=a(5e3),o=a(9808),x=a(325),M=a(8481),T=a(3610),z=a(4850),Z=a(712),I=a(7484),C=a(3098),G=a(8664),n=a(6906),O=a(6949);function m(l,f){if(1&l&&(i._UZ(0,"i",7),i._uU(1)),2&l){const p=i.oxw().ngIf;i.xp6(1),i.hij(" ",p.name," ")}}function _(l,f){if(1&l&&(i.TgZ(0,"span"),i._UZ(1,"cvc-variant-tag",10),i.qZA()),2&l){const p=f.$implicit;i.xp6(1),i.Q6J("variant",p.node)}}function P(l,f){if(1&l&&(i.TgZ(0,"nz-descriptions-item",8),i.YNc(1,_,2,1,"span",9),i.qZA()),2&l){const p=i.oxw().ngIf;i.xp6(1),i.Q6J("ngForOf",p.variants.edges)}}function h(l,f){if(1&l&&(i.TgZ(0,"span"),i._UZ(1,"cvc-source-tag",12),i.qZA()),2&l){const p=f.$implicit;i.xp6(1),i.Q6J("source",p)}}function b(l,f){if(1&l&&(i.TgZ(0,"nz-descriptions-item",11),i.YNc(1,h,2,1,"span",9),i.qZA()),2&l){const p=i.oxw().ngIf;i.xp6(1),i.Q6J("ngForOf",p.sources)}}function S(l,f){if(1&l&&(i.ynx(0),i.TgZ(1,"nz-card",2),i.YNc(2,m,2,1,"ng-template",null,3,i.W1O),i._uU(4),i.TgZ(5,"nz-descriptions",4),i.YNc(6,P,2,1,"nz-descriptions-item",5),i.YNc(7,b,2,1,"nz-descriptions-item",6),i.qZA(),i.qZA(),i.BQk()),2&l){const p=f.ngIf,U=i.MAs(3);i.xp6(1),i.Q6J("nzTitle",U),i.xp6(3),i.hij(" ",p.description," "),i.xp6(1),i.Q6J("nzColumn",2),i.xp6(1),i.Q6J("ngIf",p.variants.edges.length>0),i.xp6(1),i.Q6J("ngIf",p.sources.length>0)}}let L=(()=>{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,z.U)(({data:p})=>p.variantGroup))}}return l.\u0275fac=function(p){return new(p||l)(i.Y36(Z.Zo2))},l.\u0275cmp=i.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,U){1&p&&(i.TgZ(0,"div",0),i.YNc(1,S,8,5,"ng-container",1),i.ALo(2,"ngrxPush"),i.qZA()),2&p&&(i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,U.variantGroup$)))},directives:[o.O5,I.bd,C.R7,C.uj,o.sg,G.I,n.T],pipes:[O.fM],styles:["[_nghost-%COMP%]{display:block}"]}),l})();var N=a(647);function F(l,f){}function j(l,f){if(1&l&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,F,0,0,"ng-template",6),i.qZA(),i.BQk()),2&l){const p=i.oxw(),U=i.MAs(2);i.xp6(1),i.Q6J("routerLink",p.variantgroup.link),i.xp6(1),i.Q6J("ngTemplateOutlet",U)}}function u(l,f){}function Y(l,f){if(1&l&&(i.TgZ(0,"nz-tag",9),i.YNc(1,u,0,0,"ng-template",6),i.qZA()),2&l){i.oxw();const p=i.MAs(2);i.oxw();const U=i.MAs(8);i.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p),i.xp6(1),i.Q6J("ngTemplateOutlet",U)}}function w(l,f){if(1&l&&i._UZ(0,"cvc-variant-group-popover",11),2&l){const p=i.oxw(3);i.Q6J("variantGroupId",p.variantgroup.id)}}function X(l,f){if(1&l&&i.YNc(0,w,1,1,"cvc-variant-group-popover",10),2&l){const p=i.oxw(2);i.Q6J("ngIf",p.enablePopover)}}function K(l,f){if(1&l&&(i.YNc(0,Y,2,3,"nz-tag",7),i.YNc(1,X,1,1,"ng-template",null,8,i.W1O)),2&l){const p=i.oxw(),U=i.MAs(4);i.Q6J("ngIf",p.enablePopover)("ngIfElse",U)}}function q(l,f){}function V(l,f){if(1&l&&(i.TgZ(0,"nz-tag"),i.YNc(1,q,0,0,"ng-template",6),i.qZA()),2&l){i.oxw();const p=i.MAs(8);i.xp6(1),i.Q6J("ngTemplateOutlet",p)}}function k(l,f){}function nn(l,f){if(1&l&&i.YNc(0,k,0,0,"ng-template",6),2&l){i.oxw();const p=i.MAs(2);i.Q6J("ngTemplateOutlet",p)}}function tn(l,f){if(1&l&&(i._UZ(0,"i",12),i._uU(1)),2&l){const p=i.oxw();i.xp6(1),i.hij(" ",p.variantgroup.name,"\n")}}let en=(()=>{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=i.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,U){if(1&p&&(i.YNc(0,j,3,2,"ng-container",0),i.YNc(1,K,3,2,"ng-template",null,1,i.W1O),i.YNc(3,V,2,1,"ng-template",null,2,i.W1O),i.YNc(5,nn,1,1,"ng-template",null,3,i.W1O),i.YNc(7,tn,2,1,"ng-template",null,4,i.W1O)),2&p){const on=i.MAs(6);i.Q6J("ngIf",U.linked)("ngIfElse",on)}},directives:[o.O5,x.yS,o.tP,M.j,T.lU,L,N.Ls],styles:[""]}),l})()},7677:(B,J,a)=>{a.d(J,{G:()=>m});var i=a(9808),o=a(325),x=a(3610),M=a(8481),T=a(647),z=a(9779),Z=a(4867),I=a(7484),C=a(3098),G=a(6949),n=a(5e3);let O=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({imports:[[i.ez,G.WG,I.vh,C.q6,z.s,Z.Q]]}),_})(),m=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({imports:[[i.ez,o.Bz,x.$6,M.X,T.PV,O]]}),_})()},8664:(B,J,a)=>{a.d(J,{I:()=>ln});var i=a(6654),o=a(5e3),x=a(9808),M=a(325),T=a(8481),z=a(3610),Z=a(4850),I=a(712),C=a(7484),G=a(647),n=a(3193),O=a(3098),m=a(6550),_=a(1894),P=a(8144),h=a(6949);function b(c,v){if(1&c&&(o._UZ(0,"i",13),o._uU(1)),2&c){const g=o.oxw().ngIf;o.xp6(1),o.hij(" ",g.name," ")}}function S(c,v){if(1&c&&o._UZ(0,"cvc-gene-tag",14),2&c){const g=o.oxw().ngIf;o.Q6J("enablePopover",!1)("gene",g.gene)}}function L(c,v){1&c&&(o.TgZ(0,"span"),o._uU(1,",\xa0"),o.qZA())}function N(c,v){if(1&c&&(o.TgZ(0,"span"),o._uU(1),o.YNc(2,L,2,0,"span",1),o.qZA()),2&c){const g=v.$implicit,A=v.last;o.xp6(1),o.hij(" ",g,""),o.xp6(1),o.Q6J("ngIf",!A)}}function F(c,v){if(1&c&&(o.TgZ(0,"nz-descriptions-item",15),o.YNc(1,N,3,2,"span",16),o.qZA()),2&c){const g=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",g.variantAliases)}}function j(c,v){if(1&c&&(o.TgZ(0,"nz-descriptions-item",17),o.TgZ(1,"cvc-link-tag",18),o._uU(2),o.qZA(),o.qZA()),2&c){const g=o.oxw().ngIf;o.xp6(1),o.MGl("href","https://reg.genome.network/allele/",g.alleleRegistryId,".html"),o.xp6(1),o.hij(" ",g.alleleRegistryId," ")}}function u(c,v){if(1&c&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",20),o._UZ(2,"i",21),o._uU(3),o.qZA(),o.qZA()),2&c){const g=o.oxw().ngIf;o.MGl("routerLink","/variants/",g.id,"/flags"),o.xp6(3),o.hij(" Flags (",g.flags.totalCount,") ")}}function Y(c,v){if(1&c&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",22),o._UZ(2,"i",23),o._uU(3),o.qZA(),o.qZA()),2&c){const g=o.oxw().ngIf;o.MGl("routerLink","/variants/",g.id,"/revisions"),o.xp6(3),o.hij(" Revisions (",g.revisions.totalCount,") ")}}function w(c,v){if(1&c&&(o.TgZ(0,"a",19),o.TgZ(1,"nz-tag",24),o._UZ(2,"i",25),o._uU(3),o.qZA(),o.qZA()),2&c){const g=o.oxw().ngIf;o.MGl("routerLink","/variants/",g.id,"/comments"),o.xp6(3),o.hij(" Comments (",g.comments.totalCount,") ")}}function X(c,v){if(1&c&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,b,2,1,"ng-template",null,3,o.W1O),o.YNc(4,S,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,j,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,u,4,2,"a",12),o.YNc(15,Y,4,2,"a",12),o.YNc(16,w,4,2,"a",12),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&c){const g=v.ngIf,A=o.MAs(3),E=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",A)("nzExtra",E),o.xp6(5),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",g.variantAliases.length>0),o.xp6(1),o.Q6J("ngIf",g.alleleRegistryId),o.xp6(2),o.hij(" ",g.evidenceItems.totalCount," ")}}let K=(()=>{class c{constructor(g){this.gql=g}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,Z.U)(({data:g})=>g.variant))}}return c.\u0275fac=function(g){return new(g||c)(o.Y36(I.ZYZ))},c.\u0275cmp=o.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(g,A){1&g&&(o.TgZ(0,"div",0),o.YNc(1,X,17,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&g&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,A.variant$)))},directives:[x.O5,C.bd,G.Ls,n.H,O.R7,O.uj,x.sg,m.l,_.SK,_.t3,P.NU,P.$1,M.yS,T.j],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}"]}),c})();function q(c,v){}function V(c,v){if(1&c&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,q,0,0,"ng-template",6),o.qZA(),o.BQk()),2&c){const g=o.oxw(),A=o.MAs(2);o.xp6(1),o.Q6J("routerLink",g.variant.link),o.xp6(1),o.Q6J("ngTemplateOutlet",A)}}function k(c,v){}function nn(c,v){if(1&c){const g=o.EpF();o.TgZ(0,"nz-tag",9),o.NdJ("nzOnClose",function(E){return o.CHM(g),o.oxw(2).itemClosed(E)}),o.YNc(1,k,0,0,"ng-template",6),o.qZA()}if(2&c){o.oxw();const g=o.MAs(2),A=o.oxw(),E=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",A.onCloseClicked?0:.5)("nzPopoverContent",g)("nzMode",A.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",E)}}function tn(c,v){if(1&c&&o._UZ(0,"cvc-variant-popover",11),2&c){const g=o.oxw(3);o.Q6J("variantId",g.variant.id)}}function en(c,v){if(1&c&&o.YNc(0,tn,1,1,"cvc-variant-popover",10),2&c){const g=o.oxw(2);o.Q6J("ngIf",g.enablePopover)}}function l(c,v){if(1&c&&(o.YNc(0,nn,2,4,"nz-tag",7),o.YNc(1,en,1,1,"ng-template",null,8,o.W1O)),2&c){const g=o.oxw(),A=o.MAs(4);o.Q6J("ngIf",g.enablePopover)("ngIfElse",A)}}function f(c,v){}function p(c,v){if(1&c){const g=o.EpF();o.TgZ(0,"nz-tag",12),o.NdJ("nzOnClose",function(E){return o.CHM(g),o.oxw().itemClosed(E)}),o.YNc(1,f,0,0,"ng-template",6),o.qZA()}if(2&c){const g=o.oxw(),A=o.MAs(8);o.Q6J("nzMode",g.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",A)}}function U(c,v){}function on(c,v){if(1&c&&o.YNc(0,U,0,0,"ng-template",6),2&c){o.oxw();const g=o.MAs(2);o.Q6J("ngTemplateOutlet",g)}}function cn(c,v){if(1&c&&(o._UZ(0,"i",13),o._uU(1)),2&c){const g=o.oxw();o.xp6(1),o.hij(" ",g.variant.name,"\n")}}let ln=(()=>{class c 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 c.\u0275fac=function(g){return new(g||c)},c.\u0275cmp=o.Xpm({type:c,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(g,A){if(1&g&&(o.YNc(0,V,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,on,1,1,"ng-template",null,3,o.W1O),o.YNc(7,cn,2,1,"ng-template",null,4,o.W1O)),2&g){const E=o.MAs(6);o.Q6J("ngIf",A.linked)("ngIfElse",E)}},directives:[x.O5,M.yS,x.tP,T.j,z.lU,K,G.Ls],styles:[""]}),c})()},4867:(B,J,a)=>{a.d(J,{Q:()=>P});var i=a(9808),o=a(325),x=a(8481),M=a(647),T=a(3610),z=a(6949),Z=a(7484),I=a(1894),C=a(3098),G=a(8144),n=a(3309),O=a(3630),m=a(5e3);let _=(()=>{class h{}return h.\u0275fac=function(S){return new(S||h)},h.\u0275mod=m.oAB({type:h}),h.\u0275inj=m.cJS({imports:[[i.ez,o.Bz,z.WG,Z.vh,I.Jb,C.q6,x.X,M.PV,G.zf,n.U,O.X]]}),h})(),P=(()=>{class h{}return h.\u0275fac=function(S){return new(S||h)},h.\u0275mod=m.oAB({type:h}),h.\u0275inj=m.cJS({imports:[[i.ez,o.Bz,x.X,T.$6,M.PV,_]]}),h})()},8252:(B,J,a)=>{a.r(J),a.d(J,{GenesDetailModule:()=>bt});var i=a(9808),o=a(5630),x=a(1945),M=a(647),T=a(8144),z=a(6949),Z=a(3618),I=a(6042),C=a(325),G=a(2278),n=a(5e3);let O=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,G.l]]}),t})();var m=a(712),_=a(3801);let P=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.geneId,entityType:m.OfU.Gene}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(e,s){1&e&&n._UZ(0,"cvc-comment-list",0),2&e&&n.Q6J("commentable",s.commentable)},directives:[_.D],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var h=a(8929),b=a(591),S=a(373),L=a(1059),N=a(7625),F=a(9350),j=a(8992),u=a(5623),Y=a(8168),w=a(2683),X=a(2643),K=a(9077),q=a(2233),V=a(1894),k=a(759);const nn=function(t){return["/genes",t,"revise"]};function tn(t,r){if(1&t&&(n.TgZ(0,"button",14,15),n._uU(2," Revise "),n.qZA()),2&t){const e=n.MAs(1),s=n.oxw(4).ngIf;n.Q6J("routerLink",n.VKq(2,nn,s.id))("nzType",e.isActive?"primary":"default")}}function en(t,r){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,tn,3,4,"button",13),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",e.signedIn)}}function l(t,r){if(1&t&&(n.TgZ(0,"button",17,15),n._uU(2," Flag "),n.qZA()),2&t){const e=n.MAs(1);n.Q6J("nzType",e.isActive?"primary":"default")}}function f(t,r){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,l,3,1,"button",16),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",e.signedIn)}}function p(t,r){if(1&t&&n._UZ(0,"cvc-entity-subscription-button",19),2&t){const e=n.oxw(2).ngrxLet,s=n.oxw(3);n.Q6J("viewer",e)("subscribableId",s.subscribable.id)}}function U(t,r){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,p,1,2,"cvc-entity-subscription-button",18),n.qZA()),2&t){const e=n.oxw().ngrxLet,s=n.oxw(3);n.xp6(1),n.Q6J("ngIf",e.signedIn&&s.subscribable)}}function on(t,r){1&t&&(n.TgZ(0,"nz-space",11),n.YNc(1,en,2,1,"span",12),n.YNc(2,f,2,1,"span",12),n.YNc(3,U,2,1,"span",12),n.qZA())}function cn(t,r){if(1&t&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,on,4,0,"nz-space",10),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",e.viewer$)}}function ln(t,r){if(1&t&&(n.TgZ(0,"nz-col",20),n._UZ(1,"cvc-contributor-avatars",21),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("subscribable",e.subscribable)}}const c=function(t){return{flagged:t}};function v(t,r){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"div",2),n.ALo(3,"ngrxPush"),n.TgZ(4,"nz-page-header",3),n.TgZ(5,"nz-page-header-title",4),n._UZ(6,"i",5),n._uU(7),n.qZA(),n.TgZ(8,"nz-page-header-subtitle"),n._uU(9),n.qZA(),n.YNc(10,cn,2,1,"nz-page-header-extra",6),n.TgZ(11,"nz-page-header-content"),n.TgZ(12,"cvc-tab-navigation",7),n.ALo(13,"ngrxPush"),n.YNc(14,ln,2,1,"ng-template",null,8,n.W1O),n.qZA(),n.TgZ(16,"div",9),n._UZ(17,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const e=r.ngIf,s=n.oxw();n.xp6(1),n.Q6J("displayName",e.name),n.xp6(1),n.Q6J("flags",n.lcZ(3,7,s.flagsTotal$)),n.xp6(3),n.Q6J("ngClass",n.VKq(11,c,e.flags.totalCount>0)),n.xp6(2),n.hij(" ",e.name," "),n.xp6(2),n.hij(" ",e.officialName," "),n.xp6(1),n.Q6J("ngrxLet",s.viewer$),n.xp6(2),n.Q6J("tabs",n.lcZ(13,9,s.tabs$))}}let g=(()=>{class t{constructor(e,s,d){this.gql=e,this.viewerService=s,this.route=d,this.destroy$=new h.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.filterCurators=y=>"curator"==y.role,this.filterEditors=y=>"editor"==y.role||"admin"==y.role,this.tabs$=new b.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(y=>{let W=this.gql.watch({geneId:+y.geneId}).valueChanges;this.loading$=W.pipe((0,S.j)("loading"),(0,L.O)(!0)),this.gene$=W.pipe((0,S.j)("data","gene")),this.commentsTotal$=this.gene$.pipe((0,S.j)("comments","totalCount")),this.flagsTotal$=this.gene$.pipe((0,S.j)("flags","totalCount")),this.gene$.pipe((0,S.j)("revisions","totalCount"),(0,N.R)(this.destroy$)).subscribe({next:Q=>{this.tabs$.next(this.defaultTabs.map(H=>"Revisions"===H.tabLabel?Object.assign({badgeCount:Q},H):H))}}),this.subscribable={id:+y.geneId,entityType:m.o71.Gene},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m.TNk),n.Y36(F.a),n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["genes-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:gene"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Gene",3,"viewer","subscribableId",4,"ngIf"],["typename","Gene",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(e,s){1&e&&(n.YNc(0,v,18,13,"ng-container",0),n.ALo(1,"async")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,s.gene$))},directives:[i.O5,j.I,u.o,x.$O,x.u9,Y.Y,i.mk,w.w,M.Ls,x.yG,z.eJ,x.Jp,T.NU,T.$1,I.ix,X.dQ,C.Od,C.rH,K.Q,x.u5,q.P,V.t3,k.N,C.lC],pipes:[i.Ov,z.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 A=a(5291);let E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,A.t]]}),t})();var gn=a(2011);let hn=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.geneId,entityType:m.o71.Gene}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(e,s){1&e&&n._UZ(0,"cvc-event-feed",0),2&e&&n.Q6J("subscribable",s.subscribable)},directives:[gn.o],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var $=a(7484),xn=a(6559),Tn=a(4271);let Cn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,V.Jb,$.vh,T.zf,xn.H0,Tn.M]]}),t})();var yn=a(7036);let Zn=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:m.sfv.Gene,id:+this.route.snapshot.params.geneId}}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(e,s){1&e&&n._UZ(0,"cvc-flag-list-and-filter",0),2&e&&n.Q6J("flaggable",s.flaggable)},directives:[yn.L],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var Mn=a(3762),An=a(8481),In=a(1150),Pn=a(6699),Sn=a(1835),Gn=a(2914);let Jn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,z.WG,V.Jb,Mn.Ph,$.vh,T.zf,An.X,Z.ZJ,Pn.Rt,In.N,Sn.i,Gn.A]]}),t})();var Qn=a(8291);let Vn=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(s=>{this.geneId=+s.geneId,this.entityType=m.oRL.Gene})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(e,s){1&e&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&e&&n.Q6J("id",s.geneId)("entityType",s.entityType)},directives:[Qn.a],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var pn=a(3098),On=a(8541),un=a(897),Nn=a(3630),Un=a(9779),an=a(4546),R=a(4182),mn=a(8054),bn=a(4867),rn=a(1047);let wn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,R.u5,z.WG,I.sL,V.Jb,$.vh,an.U5,rn.o7,mn.LV,Z.ZJ,bn.Q,un.$]]}),t})();var dn=a(868),D=a(1132);let Yn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,$.vh,dn.we,D.HQ,V.Jb,D.HQ,Z.ZJ]]}),t})();var En=a(592),Fn=a(7345);let Ln=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,z.WG,V.Jb,pn.q6,Z.ZJ,T.zf,On.o,un.$,Nn.X,Un.s,En.x,Fn.W,wn,Yn]]}),t})();var sn=a(4850),jn=a(427),vn=a(6715),Dn=a(6906),Bn=a(6550),_n=a(8298);let $n=(()=>{class t{constructor(e){this.logger=e}parse(e){const s={kegg:"http://www.genome.jp/kegg-bin/show_pathway?",reactome:"https://reactome.org/content/detail/",pharmgkb:"https://www.pharmgkb.org/pathway/",humancyc:"http://humancyc.org/HUMAN/NEW-IMAGE?type=PATHWAY&object=",smpdb:"http://www.smpdb.ca/view/",pid:"http://pid.nci.nih.gov/search/pathway_landing.shtml?what=graphic&jpg=on&pathway_id=",wikipathways:"http://wikipathways.org/index.php/Pathway:",netpath:null,biocarta:null,inoh:null,signalink:null,ehmn:null},d=e.pathway||[],y=[];let W;return Object.keys(d).forEach(function(Q){Array.isArray(d[Q])||(d[Q]=[d[Q]]),d[Q].forEach(function(H,zn){W=s[Q]+d[Q][zn].id,null===s[Q]&&(W=null),y.push({name:d[Q][zn].name,link:W,src:Q})})}),e.pathway=y,e.pathwayList=y.map(Q=>Q.name),!Array.isArray(e.alias)&&e.alias&&(e.alias=[e.alias]),!Array.isArray(e.interpro)&&e.interpro&&(e.interpro=[e.interpro]),e.interproList=e.interpro.map(Q=>Q.desc),e}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(_n.Kf))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Rn(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"div",6),n.TgZ(2,"div",7),n.TgZ(3,"div",8),n._uU(4," Entrez Symbol: "),n.qZA(),n.TgZ(5,"div",9),n._uU(6),n.TgZ(7,"strong",10),n._uU(8,"UniProtKB ID:"),n.qZA(),n._uU(9),n.qZA(),n.qZA(),n.TgZ(10,"div",7),n.TgZ(11,"div",8),n._uU(12," Chromosome: "),n.qZA(),n.TgZ(13,"div",9),n._uU(14),n.qZA(),n.TgZ(15,"div",8),n._uU(16," Strand: "),n.qZA(),n.TgZ(17,"div",9),n._uU(18),n.qZA(),n.TgZ(19,"div",8),n._uU(20," Start: "),n.qZA(),n.TgZ(21,"div",9),n._uU(22),n.qZA(),n.TgZ(23,"div",8),n._uU(24," Stop: "),n.qZA(),n.TgZ(25,"div",9),n._uU(26),n.qZA(),n.qZA(),n.TgZ(27,"div",7),n.TgZ(28,"div",8),n._uU(29," Aliases: "),n.qZA(),n.TgZ(30,"div",9),n._uU(31),n.qZA(),n.qZA(),n.TgZ(32,"div",7),n.TgZ(33,"div",8),n._uU(34," Protein Domains: "),n.qZA(),n.TgZ(35,"div",9),n.TgZ(36,"p",11),n._uU(37),n.qZA(),n.qZA(),n.qZA(),n.TgZ(38,"div",7),n.TgZ(39,"div",8),n._uU(40," Pathways: "),n.qZA(),n.TgZ(41,"div",9),n.TgZ(42,"p",11),n._uU(43),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.AsE(" ",e.info.symbol," (ID: ",e.info._id,") "),n.xp6(3),n.hij(" ",e.info.uniprot["Swiss-Prot"]," "),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",1),n.xp6(1),n.hij(" ",e.info.genomic_pos_hg19.chr," "),n.xp6(1),n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("nzSpan",1),n.xp6(1),n.hij(" ",e.info.genomic_pos_hg19.strand," "),n.xp6(1),n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("nzSpan",2),n.xp6(1),n.hij(" ",e.info.genomic_pos_hg19.start," "),n.xp6(1),n.Q6J("nzSpan",2),n.xp6(2),n.Q6J("nzSpan",2),n.xp6(1),n.hij(" ",e.info.genomic_pos_hg19.end," "),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",e.info.alias.join(", ")," "),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("nzEllipsisRows",5),n.xp6(1),n.Oqu(e.info.interproList.join(", ")),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("nzEllipsisRows",5),n.xp6(1),n.Oqu(e.info.pathwayList.join(", "))}}function Wn(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"div",6),n.TgZ(2,"p",11),n._uU(3),n.qZA(),n.qZA(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(2),n.Q6J("nzEllipsisRows",12),n.xp6(1),n.Oqu(e.info.summary)}}function Xn(t,r){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td"),n._uU(4),n.qZA(),n.TgZ(5,"td"),n._uU(6),n.qZA(),n.qZA()),2&t){const e=r.$implicit;n.xp6(2),n.hij(" ",e.short_desc," "),n.xp6(2),n.hij(" ",e.desc," "),n.xp6(2),n.hij(" ",e.id," ")}}const fn=function(){return{x:"100%",y:"200px"}};function Hn(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-table",12,13),n.TgZ(3,"thead"),n.TgZ(4,"tr"),n.TgZ(5,"th"),n._uU(6,"Name"),n.qZA(),n.TgZ(7,"th"),n._uU(8,"Description"),n.qZA(),n.TgZ(9,"th"),n._uU(10,"ID"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"tbody"),n.YNc(12,Xn,7,3,"ng-template",14),n.qZA(),n.qZA(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("nzData",e.info.interpro)("nzScroll",n.DdM(4,fn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Kn(t,r){if(1&t&&(n.TgZ(0,"a",21),n._uU(1),n.qZA()),2&t){const e=n.oxw().$implicit;n.s9C("href",null==e?null:e.link,n.LSH),n.xp6(1),n.hij(" ",e.src," ")}}function qn(t,r){if(1&t&&n._uU(0),2&t){const e=n.oxw().$implicit;n.hij(" ",e.src," ")}}function kn(t,r){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.qZA(),n.TgZ(3,"td",18),n.YNc(4,Kn,2,2,"a",19),n.YNc(5,qn,1,1,"ng-template",null,20,n.W1O),n.qZA(),n.qZA()),2&t){const e=r.$implicit,s=n.MAs(6);n.xp6(2),n.hij(" ",e.name," "),n.xp6(2),n.Q6J("ngIf",null==e?null:e.link)("ngIfElse",s)}}function nt(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-table",12,15),n.TgZ(3,"colgroup"),n._UZ(4,"col",16),n._UZ(5,"col",17),n.qZA(),n.TgZ(6,"thead"),n.TgZ(7,"tr"),n.TgZ(8,"th"),n._uU(9,"Name"),n.qZA(),n.TgZ(10,"th",18),n._uU(11,"Source"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(12,"tbody"),n.YNc(13,kn,7,3,"ng-template",14),n.qZA(),n.qZA(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("nzData",e.info.pathway)("nzScroll",n.DdM(4,fn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function tt(t,r){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",1),n.TgZ(2,"nz-card-tab"),n.TgZ(3,"nz-tabset",2),n.NdJ("nzSelectChange",function(d){return n.CHM(e),n.oxw().tabChange(d)}),n._UZ(4,"nz-tab",3),n._UZ(5,"nz-tab",3),n._UZ(6,"nz-tab",3),n._UZ(7,"nz-tab",3),n.qZA(),n.qZA(),n.ynx(8,4),n.YNc(9,Rn,44,33,"ng-container",5),n.YNc(10,Wn,4,2,"ng-container",5),n.YNc(11,Hn,13,5,"ng-container",5),n.YNc(12,nt,14,5,"ng-container",5),n.BQk(),n.qZA(),n.BQk()}if(2&t){const e=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(1),n.Q6J("nzTitle","Overview"),n.xp6(1),n.Q6J("nzTitle","Summary"),n.xp6(1),n.Q6J("nzTitle","Protein Domains ("+e.info.interproList.length+")"),n.xp6(1),n.Q6J("nzTitle","Pathways ("+e.info.pathway.length+")"),n.xp6(1),n.Q6J("ngSwitch",e.tabIndex),n.xp6(1),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3)}}let et=(()=>{class t{constructor(e,s){this.infoService=e,this.logger=s,this.tabIndex=0}ngOnInit(){this.tabChange({index:0,tab:null})}ngOnChanges(){this.geneInfo&&(this.info=this.infoService.parse(this.geneInfo))}tabChange(e){this.tabIndex=e.index}}return t.\u0275fac=function(e){return new(e||t)(n.Y36($n),n.Y36(_n.Kf))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-my-gene-info"]],inputs:{geneInfo:"geneInfo"},features:[n.TTD],decls:1,vars:1,consts:[[4,"ngIf"],["nzTitle","MyGeneInfo"],["nzSize","small",3,"nzAnimated","nzSelectChange"],[3,"nzTitle"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nz-row","",3,"nzGutter"],["nz-col","",1,"key-col",3,"nzSpan"],["nz-col","",3,"nzSpan"],[2,"margin-left","8px"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small",3,"nzData","nzScroll","nzFrontPagination","nzShowPagination"],["proteinDomainsTable",""],["nz-virtual-scroll",""],["pathwaysTable",""],["width","90%"],["width","10%"],[1,"button-col"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href",4,"ngIf","ngIfElse"],["noPathwayLink",""],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href"]],template:function(e,s){1&e&&n.YNc(0,tt,13,10,"ng-container",0),2&e&&n.Q6J("ngIf",s.geneInfo)},directives:[i.O5,$.bd,$._i,dn.xH,dn.xw,i.RF,i.n9,V.SK,V.t3,Z.ZU,D.N8,D.Om,D.$Z,D.Uo,D._C,D.p0,D.zu],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),t})();var ot=a(13),at=a(8664);function it(t,r){if(1&t&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&t){const e=n.oxw(3).ngIf;n.xp6(1),n.hij("(",e.length," displayed)")}}function rt(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"span",8),n._uU(2),n.qZA(),n.YNc(3,it,2,1,"span",9),n.BQk()),2&t){const e=r.ngIf,s=n.oxw(2).ngIf;n.xp6(2),n.hij("",e," Total"),n.xp6(1),n.Q6J("ngIf",e>s.length)}}function st(t,r){if(1&t&&(n._UZ(0,"i",7),n._uU(1),n.YNc(2,rt,4,2,"ng-container",0),n.ALo(3,"ngrxPush")),2&t){const e=n.oxw(2);n.xp6(1),n.hij(" ",e.geneName," Variants "),n.xp6(1),n.Q6J("ngIf",n.lcZ(3,2,e.totalVariants$))}}function ct(t,r){if(1&t){const e=n.EpF();n.TgZ(0,"i",24),n.NdJ("click",function(){n.CHM(e);const d=n.oxw(4);return d.variantNameFilter=void 0,d.onModelUpdated()}),n.qZA()}}function lt(t,r){if(1&t&&n.YNc(0,ct,1,0,"i",23),2&t){const e=n.oxw(3);n.Q6J("ngIf",e.variantNameFilter)}}function gt(t,r){if(1&t){const e=n.EpF();n.TgZ(0,"form",10),n.TgZ(1,"nz-form-item"),n.TgZ(2,"nz-form-label"),n._uU(3,"Filter"),n.qZA(),n.TgZ(4,"nz-form-control"),n.TgZ(5,"nz-input-group",11),n.TgZ(6,"input",12),n.NdJ("ngModelChange",function(){return n.CHM(e),n.oxw(2).onModelUpdated()})("ngModelChange",function(d){return n.CHM(e),n.oxw(2).variantNameFilter=d}),n.qZA(),n.YNc(7,lt,1,1,"ng-template",null,13,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.TgZ(9,"nz-form-item"),n.TgZ(10,"nz-form-label"),n._uU(11,"Order By"),n.qZA(),n.TgZ(12,"nz-form-control"),n.TgZ(13,"nz-select",14),n.NdJ("ngModelChange",function(d){return n.CHM(e),n.oxw(2).onVariantSortOrderChanged(d)})("ngModelChange",function(d){return n.CHM(e),n.oxw(2).sortBy=d}),n._UZ(14,"nz-option",15),n._UZ(15,"nz-option",16),n._UZ(16,"nz-option",17),n.qZA(),n.qZA(),n.qZA(),n.TgZ(17,"nz-form-item"),n.TgZ(18,"nz-form-label"),n._uU(19,"Show"),n.qZA(),n.TgZ(20,"nz-form-control"),n.TgZ(21,"nz-select",18),n.NdJ("ngModelChange",function(d){return n.CHM(e),n.oxw(2).onVariantStatusFilterChanged(d)})("ngModelChange",function(d){return n.CHM(e),n.oxw(2).statusFilter=d}),n._UZ(22,"nz-option",19),n._UZ(23,"nz-option",20),n._UZ(24,"nz-option",21),n._UZ(25,"nz-option",22),n.qZA(),n.qZA(),n.qZA(),n.qZA()}if(2&t){const e=n.MAs(8),s=n.oxw(2);n.xp6(5),n.Q6J("nzSuffix",e)("nzCompact",!0),n.xp6(1),n.Q6J("ngModel",s.variantNameFilter),n.xp6(7),n.Q6J("ngModel",s.sortBy),n.xp6(8),n.Q6J("ngModel",s.statusFilter)}}function pt(t,r){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-variant-tag",25),n.BQk()),2&t){const e=r.$implicit;n.xp6(1),n.Q6J("variant",e)}}function mt(t,r){if(1&t){const e=n.EpF();n.TgZ(0,"nz-row",27),n.TgZ(1,"button",28),n.NdJ("click",function(){n.CHM(e);const d=n.oxw().ngIf;return n.oxw(2).fetchMore(d.endCursor)}),n._uU(2,"Load More "),n.qZA(),n.qZA()}}function dt(t,r){if(1&t&&(n.ynx(0),n.YNc(1,mt,3,0,"nz-row",26),n.BQk()),2&t){const e=r.ngIf;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function ut(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-card",1),n.YNc(2,st,4,4,"ng-template",null,2,n.W1O),n.YNc(4,gt,26,5,"ng-template",null,3,n.W1O),n.TgZ(6,"nz-row"),n.TgZ(7,"nz-col",4),n.TgZ(8,"cvc-tag-list",5),n.YNc(9,pt,2,1,"ng-container",6),n.qZA(),n.qZA(),n.qZA(),n.YNc(10,dt,2,1,"ng-container",0),n.ALo(11,"ngrxPush"),n.qZA(),n.BQk()),2&t){const e=r.ngIf,s=n.MAs(3),d=n.MAs(5),y=n.oxw();n.xp6(1),n.Q6J("nzTitle",s)("nzExtra",d),n.xp6(8),n.Q6J("ngForOf",e),n.xp6(1),n.Q6J("ngIf",n.lcZ(11,4,y.pageInfo$))}}let vt=(()=>{class t{constructor(e){this.gql=e,this.statusFilter=m.qP7.WithAcceptedOrSubmitted,this.sortBy=m.d4o.Name,this.debouncedQuery=new h.xQ,this.pageSize=50}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into variant menu component.");this.initialQueryVars={geneId:this.geneId,evidenceStatusFilter:this.statusFilter,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef$.valueChanges,this.pageInfo$=this.results$.pipe((0,sn.U)(({data:e})=>e.variants.pageInfo)),this.menuVariants$=this.results$.pipe((0,sn.U)(({data:e})=>e.variants.edges.map(s=>s.node))),this.totalVariants$=this.results$.pipe((0,sn.U)(({data:e})=>e.variants.totalCount)),this.debouncedQuery.pipe((0,ot.b)(500)).subscribe(e=>this.refresh())}onModelUpdated(){this.debouncedQuery.next()}onVariantStatusFilterChanged(e){this.refresh()}onVariantSortOrderChanged(e){this.queryRef$.refetch({sortBy:{column:e,direction:e==m.d4o.CoordinateEnd?m.SrV.Desc:m.SrV.Asc}})}refresh(){if(void 0===this.geneId)throw new Error("Must pass a gene id into variant menu component.");this.queryRef$.refetch({geneId:this.geneId,variantName:this.variantNameFilter,evidenceStatusFilter:this.statusFilter,sortBy:{column:this.sortBy,direction:m.SrV.Asc}})}fetchMore(e){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:e}})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m.zwS))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variant-menu"]],inputs:{geneId:"geneId",geneName:"geneName"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-icon","","nzType","civic:gene"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Variant Names","name","name-filter",3,"ngModel","ngModelChange"],["nameInputClearTpl",""],["nzSize","small","id","variant-sort-order","name","sortBy",3,"ngModel","ngModelChange"],["nzValue","NAME","nzLabel","Variant Name","selected",""],["nzValue","COORDINATE_START","nzLabel","Start Position"],["nzValue","COORDINATE_END","nzLabel","End Position"],["nzSize","small","id","status-filter","name","statusFilter",3,"ngModel","ngModelChange"],["nzValue","WITH_ACCEPTED","nzLabel","Variants with accepted evidence"],["nzValue","WITH_ACCEPTED_OR_SUBMITTED","nzLabel","Variants with accepted and/or submitted evidence","selected",""],["nzValue","WITH_SUBMITTED","nzLabel","Variants with submitted evidence"],["nzValue","ALL","nzLabel","All Variants"],["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,"variant"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"]],template:function(e,s){1&e&&(n.YNc(0,ut,12,6,"ng-container",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,s.menuVariants$))},directives:[i.O5,$.bd,w.w,Z.ZU,R._Y,R.JL,R.F,an.Lr,V.SK,an.Nx,V.t3,an.iK,an.Fd,rn.gB,rn.ke,rn.Zp,R.Fj,R.JJ,R.On,mn.Vq,mn.Ip,vn.$,i.sg,at.I,I.ix,X.dQ],pipes:[z.fM],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]}),t})();function _t(t,r){if(1&t&&(n.TgZ(0,"p",16),n._uU(1),n.qZA()),2&t){const e=n.oxw(3).ngIf;n.Q6J("nzEllipsisRows",8),n.xp6(1),n.Oqu(e.description)}}function ft(t,r){1&t&&n._UZ(0,"cvc-empty-revisable",17)}function zt(t,r){1&t&&n._UZ(0,"cvc-source-tag",19),2&t&&n.Q6J("source",r.$implicit)}function ht(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,zt,1,1,"cvc-source-tag",18),n.qZA(),n.BQk()),2&t){const e=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",e.sources)}}function xt(t,r){1&t&&(n.TgZ(0,"span",20),n._uU(1,"None specified"),n.qZA())}function Tt(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions",9),n.TgZ(1,"nz-descriptions-item",10),n.YNc(2,_t,2,2,"p",11),n.YNc(3,ft,1,0,"ng-template",null,12,n.W1O),n.qZA(),n.TgZ(5,"nz-descriptions-item",13),n.YNc(6,ht,3,1,"ng-container",14),n.YNc(7,xt,2,0,"ng-template",null,15,n.W1O),n.qZA(),n.qZA()),2&t){const e=n.MAs(4),s=n.MAs(8),d=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",d.description)("ngIfElse",e),n.xp6(4),n.Q6J("ngIf",d.sources.length>0)("ngIfElse",s)}}function Ct(t,r){1&t&&(n.TgZ(0,"span"),n._uU(1,","),n.qZA())}function yt(t,r){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ct,2,0,"span",26),n.BQk()),2&t){const e=r.$implicit,s=r.last;n.xp6(1),n.hij(" ",e,""),n.xp6(1),n.Q6J("ngIf",!s)}}function Zt(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions-item",24),n.YNc(1,yt,3,2,"ng-container",25),n.qZA()),2&t){const e=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",e.geneAliases)}}function Mt(t,r){1&t&&(n.TgZ(0,"span",20),n._uU(1,"None specified"),n.qZA())}function At(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions",21),n.YNc(1,Zt,2,1,"nz-descriptions-item",22),n.YNc(2,Mt,2,0,"ng-template",null,23,n.W1O),n.qZA()),2&t){const e=n.MAs(3),s=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(1),n.Q6J("ngIf",s.geneAliases.length>0)("ngIfElse",e)}}function It(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions",21),n.TgZ(1,"nz-descriptions-item",27),n.TgZ(2,"cvc-tag-list"),n.TgZ(3,"cvc-link-tag",28),n._uU(4," DGIdb "),n.qZA(),n.TgZ(5,"cvc-link-tag",28),n._uU(6," ProteinPaint "),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&t){const e=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(3),n.Q6J("href","http://dgidb.org/genes/"+e.name)("tooltip","View "+e.name+" on DGIdb"),n.xp6(2),n.Q6J("href","https://pecan.stjude.cloud/proteinpaint/"+e.name+"/hg19/civic")("tooltip","View "+e.name+" on ProteinPaint")}}function Pt(t,r){if(1&t&&(n.TgZ(0,"nz-row",3),n.TgZ(1,"nz-col",4),n.TgZ(2,"nz-space",5),n.YNc(3,Tt,9,5,"nz-descriptions",6),n.YNc(4,At,4,3,"nz-descriptions",7),n.YNc(5,It,7,5,"nz-descriptions",7),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",4),n._UZ(7,"cvc-my-gene-info",8),n.ALo(8,"ngrxPush"),n.qZA(),n.qZA()),2&t){const e=n.oxw(2);n.Q6J("nzGutter",16),n.xp6(7),n.Q6J("geneInfo",n.lcZ(8,2,e.myGeneInfo$))}}function St(t,r){if(1&t&&(n.TgZ(0,"nz-row",3),n.TgZ(1,"nz-col",29),n._UZ(2,"cvc-variant-menu",30),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngIf;n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("geneId",e.id)("geneName",e.name)}}function Gt(t,r){1&t&&(n.TgZ(0,"nz-space",1),n.YNc(1,Pt,9,4,"nz-row",2),n.YNc(2,St,3,4,"nz-row",2),n.qZA())}const Jt=[{path:"",component:g,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class t{constructor(e,s,d){this.gql=e,this.viewerService=s,this.route=d,this.routeSub=this.route.params.subscribe(y=>{this.viewer$=this.viewerService.viewer$;let Q=this.gql.watch({geneId:+y.geneId}).valueChanges;this.subscribableEntity={id:+y.geneId,entityType:m.o71.Gene},this.gene$=Q.pipe((0,S.j)("data","gene")),this.loading$=Q.pipe((0,S.j)("loading")),this.myGeneInfo$=this.gene$.pipe((0,S.j)("myGeneInfoDetails"),(0,sn.U)(H=>JSON.parse(String(H))))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(m.cCu),n.Y36(F.a),n.Y36(C.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-genes-summary"]],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,"nzGutter"],["nzSpan","12"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],[3,"geneInfo"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","1",4,"ngIf","ngIfElse"],["noAliases",""],["nzTitle","Aliases","nzSpan","1"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"nzSpan"],[3,"geneId","geneName"]],template:function(e,s){1&e&&(n.YNc(0,Gt,3,0,"nz-space",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,s.gene$))},directives:[i.O5,T.NU,T.$1,V.SK,V.t3,pn.R7,pn.uj,Z.ZU,jn.J,vn.$,i.sg,Dn.T,Bn.l,et,vt],pipes:[z.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),t})(),data:{breadcrumb:"Summary"}},{path:"comments",component:P,data:{breadcrumb:"Comments"}},{path:"revisions",component:Vn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Zn,data:{breadcrumb:"Summary"}},{path:"events",component:hn,data:{breadcrumb:"Events"}}]}];let Qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[C.Bz.forChild(Jt),Ln,O,Jn,Cn,E],C.Bz]}),t})();var Vt=a(4682),Ot=a(8762),Nt=a(5750),Ut=a(4609);let bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,Qt,z.WG,I.sL,M.PV,x.KJ,T.zf,Z.ZJ,V.Jb,Ot.c,Vt.m,Nt.Z,o.D,Ut.g,A.t]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/7559.223e892b79fdc7b5.js b/server/public/7559.223e892b79fdc7b5.js new file mode 100644 index 000000000..986502b4a --- /dev/null +++ b/server/public/7559.223e892b79fdc7b5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7559],{7559:(It,w,r)=>{r.r(w),r.d(w,{EvidenceAddModule:()=>bt});var s=r(9808),u=r(325),L=r(4850),e=r(5e3),Y=r(9350),$=r(8992),_=r(1945),Q=r(647),g=r(1894),B=r(8616),v=r(6949);function V(n,o){1&n&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function G(n,o){1&n&&(e.TgZ(0,"nz-row",7),e.TgZ(1,"div",8),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}let D=(()=>{class n{constructor(t){this.viewerService=t}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,L.U)(t=>t.signedIn))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(Y.a))},n.\u0275cmp=e.Xpm({type:n,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(t,i){if(1&t&&(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,V,2,0,"div",5),e.ALo(10,"ngrxPush"),e.YNc(11,G,3,0,"ng-template",null,6,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&t){const a=e.MAs(12);e.xp6(9),e.Q6J("ngIf",e.lcZ(10,2,i.isSignedIn$))("ngIfElse",a)}},directives:[$.I,_.$O,_.u9,Q.Ls,_.yG,_.u5,s.O5,u.lC,g.SK,g.t3,B.u],pipes:[v.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 p=r(8144),k=r(6559),S=r(7484),R=r(1135),j=r(4623),X=r(8006),H=r(5452),W=r(3643),K=r(4375),F=r(7008),q=r(7695),ee=r(8390),te=r(1825),ne=r(5457),ie=r(5743),oe=r(3773),re=r(7075),ae=r(7462),ce=r(3594),J=r(8929),T=r(591),x=r(7625),b=r(537),d=r(712),P=r(9169);let se=(()=>{class n{constructor(t,i){this.submitEvidenceItemGQL=t,this.networkErrorService=i,this.destroy$=new J.xQ,this.isSubmitting$=new T.X(!1),this.submitSuccess$=new T.X(!1),this.submitError$=new T.X([])}submit(t){this.isSubmitting$.next(!0),this.submitEvidenceItemGQL.mutate({input:t}).pipe((0,x.R)(this.destroy$),(0,b.x)(()=>{this.isSubmitting$.next(!1)})).subscribe({error:i=>{i.graphQLErrors.length>0?this.submitError$.next(i.graphQLErrors.map(a=>a.message)):i.networkError&&this.networkErrorService.networkError$.next(i.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 n.\u0275fac=function(t){return new(t||n)(e.LFG(d.WFw),e.LFG(P.Y))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac}),n})();var m=r(8776),I=r(5109),C=r(2359),E=r(6042),y=r(4546),l=r(4182),de=r(2789),le=r(5932),ue=r(3416),pe=r(2480),me=r(1830),ge=r(4581),fe=r(1605),he=r(5926),_e=r(1270),U=r(7525),ve=r(6530),O=r(444),ye=r(6906);function xe(n,o){if(1&n&&(e.ynx(0),e._UZ(1,"formly-field",2),e.BQk()),2&n){const t=o.$implicit;e.xp6(1),e.Q6J("field",t)}}function Ce(n,o){if(1&n&&e._UZ(0,"cvc-source-tag",3),2&n){const t=e.oxw();e.Q6J("source",t.model.source)}}let ze=(()=>{class n extends m.fS{constructor(){super(),this.defaultOptions={templateOptions:{label:"Source",entityType:"Source",entityFragment:d.iXf},defaultValue:{sourceType:d.yic.Pubmed,source:void 0},fieldGroupClassName:"select-group",fieldGroup:[{key:"sourceType",type:"select",className:"type-field",templateOptions:{required:!1,placeholder:"Select Type",options:(0,O.o6)(d.yic).map((t,i)=>({value:t,label:(0,ve.c)(t)}))},hideExpression:(t,i,a)=>(console.log(t),null!=t.source)},{key:"source",type:"citation-select",className:"citation-field",templateOptions:{required:!1},hideExpression:(t,i,a)=>(console.log(t),null!=t.source)}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,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(t,i){1&t&&(e.YNc(0,xe,2,1,"ng-container",0),e.YNc(1,Ce,1,1,"cvc-source-tag",1)),2&t&&(e.Q6J("ngForOf",i.field.fieldGroup),e.xp6(1),e.Q6J("ngIf",null!=i.model.source))},directives:[s.sg,m.cw,s.O5,ye.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}"]}),n})();var z=r(8054),M=r(3618),Se=r(8481),Te=r(373),N=r(822),be=r(2643),Ie=r(2683);function Ee(n,o){if(1&n&&e._UZ(0,"nz-alert",6),2&n){e.oxw();const t=e.MAs(3);e.Q6J("nzMessage",t)}}function Oe(n,o){if(1&n&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,", would you like to add it? ")),2&n){const t=e.oxw(3);e.xp6(2),e.Oqu(t.foundCitation)}}function Me(n,o){1&n&&(e.ynx(0),e.YNc(1,Ee,1,1,"nz-alert",4),e.YNc(2,Oe,4,1,"ng-template",null,5,e.W1O),e.BQk())}function Ae(n,o){if(1&n&&e._UZ(0,"nz-alert",9),2&n){e.oxw();const t=e.MAs(3);e.Q6J("nzMessage",t)}}function Ze(n,o){if(1&n&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&n){const t=e.oxw(3);e.xp6(2),e.Oqu(t.foundCitation)}}function we(n,o){1&n&&(e.ynx(0),e.YNc(1,Ae,1,1,"nz-alert",7),e.YNc(2,Ze,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Le(n,o){if(1&n&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("errors",t.createErrors)}}function Qe(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(t),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&n){const t=e.oxw(3);e.Q6J("nzLoading",t.isCreating),e.xp6(3),e.Oqu(t.foundCitation)}}function Fe(n,o){1&n&&(e.ynx(0),e.YNc(1,Qe,5,2,"button",11),e.BQk())}function Je(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(a){return e.CHM(t),e.oxw(3).onAcceptSource(a)}),e._uU(1," Specify this Source "),e.qZA()}}function Pe(n,o){1&n&&(e.ynx(0),e.YNc(1,Je,2,0,"button",13),e.BQk())}function Ue(n,o){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,Me,4,0,"ng-container",3),e.YNc(3,we,4,0,"ng-container",3),e.YNc(4,Le,2,1,"nz-form-item",3),e.YNc(5,Fe,2,0,"ng-container",3),e.YNc(6,Pe,2,0,"ng-container",3),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===t.createSuccess&&0===t.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===t.createSuccess),e.xp6(1),e.Q6J("ngIf",t.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===t.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===t.createSuccess)}}function Ne(n,o){if(1&n&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&n){const t=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",t.sourceTypeKey,"? ")}}function Ye(n,o){1&n&&(e.ynx(0),e.YNc(1,Ne,3,1,"span",15),e.BQk())}function $e(n,o){if(1&n&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("errors",t.existenceErrors)}}function Be(n,o){if(1&n&&e._uU(0),2&n){const t=e.oxw(4);e.AsE(" Citation not found for ",t.sourceTypeKey,": ",t.citationId,". ")}}function Ve(n,o){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,Be,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&n){const t=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",t)}}function Ge(n,o){1&n&&(e.ynx(0),e.YNc(1,Ve,4,1,"span",18),e.BQk())}function De(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(a){return e.CHM(t),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&n){const t=e.oxw(2);e.Q6J("nzLoading",t.isChecking),e.xp6(3),e.AsE("",t.sourceTypeKey," ",t.citationId,"")}}function ke(n,o){if(1&n&&(e.TgZ(0,"nz-space",2),e.YNc(1,Ye,2,0,"ng-container",3),e.YNc(2,$e,2,1,"nz-form-item",3),e.YNc(3,Ge,2,0,"ng-container",3),e.YNc(4,De,4,3,"button",11),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.showPrompt),e.xp6(1),e.Q6J("ngIf",t.existenceErrors.length>0),e.xp6(1),e.Q6J("ngIf",t.existenceFail)}}let Re=(()=>{class n{constructor(t,i,a){this.existenceCheckQuery=t,this.createSourceStubQuery=i,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(t){this._sourceType=t,this.sourceTypeKey=(0,O.o6)(d.yic).getKeyOrThrow(t)}get sourceType(){return this._sourceType}onExistenceQuery(t){t&&t.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,b.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:i}})=>{null!==i?this.foundCitation=i:(this.showPrompt=!1,this.existenceFail=!0)},error:i=>{this.showPrompt=!1,this.existenceErrors=i.graphQLErrors.map(a=>a.message)},complete:()=>{this.existenceErrors=[]}})}onAddRemoteCitation(t){t&&t.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,b.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:i})=>{var a;console.log(i);const c=null===(a=null==i?void 0:i.addRemoteCitation)||void 0===a?void 0:a.newSource;this.sourceStub=c,this.createSuccess=!0},error:i=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=i.graphQLErrors.map(a=>a.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(t){t&&t.preventDefault(),this.addCitation.emit({id:this.sourceStub.id,entityFragment:d.SJD})}ngAfterContentInit(){console.log("model")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gtM),e.Y36(d.RMv),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,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(t,i){if(1&t&&(e.YNc(0,Ue,7,5,"ng-container",0),e.YNc(1,ke,5,3,"ng-template",null,1,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",i.foundCitation)("ngIfElse",a)}},directives:[s.O5,p.NU,p.$1,C.r,g.SK,y.Nx,N.V,E.ix,be.dQ,Ie.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),n})();function je(n,o){if(1&n&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&n){const t=o.$implicit;e.Q6J("nzLabel",t.label)("nzValue",t.source),e.xp6(1),e.AsE(" ",t.source.citation," (",t.source.citationId,") ")}}function Xe(n,o){if(1&n&&(e.ynx(0),e.YNc(1,je,2,4,"nz-option",3),e.BQk()),2&n){const t=o.ngrxLet;e.xp6(1),e.Q6J("ngForOf",t)}}function He(n,o){if(1&n&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.to.prompt," ")}}function We(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-citation-loader",9),e.NdJ("addCitation",function(a){return e.CHM(t),e.oxw(2).onAddCitation(a)})("sourceTypeChange",function(a){return e.CHM(t),e.oxw(2).model.sourceType=a})("citationIdChange",function(a){return e.CHM(t),e.oxw(2).to.searchValue=a}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("model",t.model)("sourceType",t.model.sourceType)("citationId",t.to.searchValue)}}function Ke(n,o){if(1&n&&(e.ynx(0,5),e.YNc(1,He,2,1,"div",6),e.YNc(2,We,1,3,"cvc-citation-loader",7),e.BQk()),2&n){const t=e.oxw();e.Q6J("ngSwitch",t.to.searchLength>0&&t.to.searchLength>=t.to.minSearchLength),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}let qe=(()=>{class n extends m.fS{constructor(t){super(),this.sourceTypeaheadQuery=t,this.defaultOptions={templateOptions:{placeholder:"Search Sources",onSearch:()=>{},minSearchLength:1,maxSearchLength:15,searchLength:0,searchValue:""},expressionProperties:{"templateOptions.prompt":i=>`Search for ${(0,O.o6)(d.yic).getKeyOrThrow(i.sourceType)} sources known to CIViC.`}},this.onAddCitation=i=>{const a=this.field.parent.templateOptions;a.entityType="SourceStub",a.entityFragment=i.entityFragment,this.field.formControl.setValue(i.id)}}ngOnInit(){this.queryRef=this.sourceTypeaheadQuery.watch({sourceType:this.model.sourceType,partialCitationId:9999999}),this.sources$=this.queryRef.valueChanges.pipe((0,Te.j)("data","sourceTypeahead"),(0,L.U)(t=>t.map(i=>({value:i.id,label:i.citation?i.citation:i.name,source:i}))))}ngAfterViewInit(){this.to.onSearch=t=>{this.to.searchLength=t.length,this.to.searchValue=t,!(t.lengththis.to.maxLength)&&this.queryRef.refetch({sourceType:d.yic.Pubmed,partialCitationId:+t})}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.NbY))},n.\u0275cmp=e.Xpm({type:n,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(t,i){if(1&t&&(e.TgZ(0,"nz-select",0),e.NdJ("nzOnSearch",function(c){return i.to.onSearch(c)}),e.YNc(1,Xe,2,1,"ng-container",1),e.qZA(),e.YNc(2,Ke,3,3,"ng-template",null,2,e.W1O)),2&t){const a=e.MAs(3);e.Q6J("formControl",i.formControl)("formlyAttributes",i.field)("nzPlaceHolder",i.to.placeholder?i.to.placeholder:null)("nzNotFoundContent",a)("nzShowArrow",!1)("nzFilterOption",i.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",i.sources$)}},directives:[z.Vq,l.JJ,l.oH,m.VQ,v.eJ,s.sg,z.Ip,s.RF,s.n9,Re],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),n})(),et=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[s.ez,p.zf,C.L,y.U5,F.B,E.sL]]}),n})();const tt={types:[{name:"citation-select",component:qe}]};let nt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[s.ez,l.UX,v.WG,z.LV,et,m.X0.forChild(tt),I.s]]}),n})();var it=r(9779);const ot={types:[{name:"source-select",component:ze,wrappers:["form-field"]}]};let rt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[s.ez,l.UX,v.WG,m.X0.forChild(ot),z.LV,p.zf,M.ZJ,Se.X,nt,it.s]]}),n})();var at=r(5472),ct=r(4889);let st=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({providers:[se],imports:[[s.ez,u.Bz,l.UX,I.s,y.U5,C.L,g.Jb,E.sL,U.j,m.X0,te.A,F.B,K.R,q.C,re.l,ee.N,oe.g,H.C,ie.W,ne.$,X.I,ae.o,j.K,ce.q,W.q,R.C,de.o,le.A,ue.g,pe.r,me.S,ge.e,fe.e,he.J,_e.i,rt,at.r,ct.E,S.vh,p.zf,M.ZJ,u.Bz,I.s]]}),n})(),dt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[s.ez,g.Jb,p.zf,S.vh,k.H0,st]]}),n})();var A=r(6738),lt=r(6064),ut=r(6123);function pt(n,o){1&n&&(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 mt(n,o){1&n&&e.GkF(0)}function gt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"formly-form",11),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 ft(n,o){if(1&n&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",13),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("errors",t.errorMessages)}}function ht(n,o){if(1&n&&(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&n){const t=e.oxw(4);e.xp6(2),e.MGl("routerLink","/evidence/",t.newId,"/summary")}}function _t(n,o){if(1&n&&(e.ynx(0),e._UZ(1,"nz-alert",14),e.YNc(2,ht,5,1,"ng-template",15,16,e.W1O),e.BQk()),2&n){const t=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",t)}}function vt(n,o){if(1&n&&(e.YNc(0,ft,2,1,"nz-form-item",12),e.YNc(1,_t,4,1,"ng-container",12)),2&n){const t=e.oxw(2);e.Q6J("ngIf",t.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",t.success)}}function yt(n,o){if(1&n){const t=e.EpF();e.TgZ(0,"nz-spin",6),e.TgZ(1,"form",7),e.NdJ("ngSubmit",function(){e.CHM(t);const a=e.oxw();return a.submitEvidence(a.formModel)}),e.YNc(2,mt,1,0,"ng-container",8),e.YNc(3,gt,1,4,"formly-form",9),e.qZA(),e.YNc(4,vt,2,2,"ng-template",null,10,e.W1O),e.qZA()}if(2&n){const t=e.MAs(5),i=e.oxw();e.Q6J("nzSpinning",i.loading),e.xp6(1),e.Q6J("formGroup",i.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",t),e.xp6(1),e.Q6J("ngIf",!i.success)}}let xt=(()=>{class n{constructor(t,i,a,c){this.submitEvidenceGQL=t,this.sourceSuggestionGQL=i,this.networkErrorService=a,this.route=c,this.destroy$=new J.xQ,this.formGroup=new l.cw({}),this.formOptions={formState:new lt._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitEvidenceMutator=new ut.U(a),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"}}]}]}ngAfterViewInit(){this.route.queryParams.subscribe(t=>{let i=!1;t.geneId&&(i=!0,this.submittedGeneId=+t.geneId),t.variantId&&(i=!0,this.submittedVariantId=+t.variantId),t.sourceId&&(i=!0,this.submittedSourceId=+t.sourceId),t.diseaseId&&(i=!0,this.submittedDiseaseId=+t.diseaseId),i&&this.sourceSuggestionGQL.fetch({geneId:this.submittedGeneId,diseaseId:this.submittedDiseaseId,sourceId:this.submittedSourceId,variantId:this.submittedVariantId}).subscribe(({data:{sourceSuggestionValues:a},loading:c})=>{var f,Z;this.loading=c;let h={fields:{}};a.gene&&(h.fields.gene=[a.gene]),a.disease&&(h.fields.disease=[a.disease]),a.variant&&(h.fields.variant=[a.variant]),a.source&&(h.fields.source=[a.source]),(null===(f=this.formModel.fields)||void 0===f?void 0:f.organization)&&(h.fields.organization=null===(Z=this.formModel.fields)||void 0===Z?void 0:Z.organization),this.formModel=h},a=>{console.error("Error retrieving source suggestion data."),console.error(a)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched()})})}submitEvidence(t){let i=this.toSubmitInput(t);if(i){let a=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:i},c=>{this.newId=c.submitEvidence.evidenceItem.id});a.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(c=>{c&&(this.success=!0)}),a.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),a.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}toSubmitInput(t){var i,a;if(t){const c=t.fields;return{fields:{variantOrigin:c.variantOrigin,description:A.xt(c.description),variantId:c.variant[0].id,sourceId:c.source[0].id,evidenceType:c.evidenceType,evidenceDirection:c.evidenceDirection,clinicalSignificance:c.clinicalSignificance,diseaseId:A.uP(null===(i=c.disease[0])||void 0===i?void 0:i.id),evidenceLevel:c.evidenceLevel,phenotypeIds:c.phenotypes.map(f=>f.id),rating:+c.evidenceRating,drugIds:c.drugs.map(f=>f.id),drugInteractionType:A.uP(c.drugInteractionType)},comment:c.comment&&c.comment.length>0?c.comment:void 0,organizationId:null===(a=null==t?void 0:t.fields.organization)||void 0===a?void 0:a.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.WFw),e.Y36(d.FId),e.Y36(P.Y),e.Y36(u.gz))},n.\u0275cmp=e.Xpm({type:n,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(t,i){1&t&&(e.TgZ(0,"nz-space",0),e.YNc(1,pt,16,0,"nz-card",1),e.YNc(2,yt,6,4,"nz-spin",2),e.qZA())},directives:[p.NU,p.$1,S.bd,M.ZU,u.yS,U.W,l._Y,l.JL,y.Lr,l.sg,s.tP,s.O5,m.T7,g.SK,y.Nx,N.V,C.r],styles:[""]}),n})();const Ct=[{path:"",component:D,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class n{constructor(t){this.route=t,this.routeParams$=this.route.params.subscribe(i=>{this.evidenceId=+i.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-submit"]],decls:1,vars:0,template:function(t,i){1&t&&e._UZ(0,"cvc-evidence-submit-form")},directives:[xt],styles:[""]}),n})(),data:{breadcrumb:"Submit New Evidence"}}]}];let zt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[u.Bz.forChild(Ct),dt],u.Bz]}),n})();var St=r(5630),Tt=r(9386);let bt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[s.ez,zt,_.KJ,Q.PV,St.D,Tt.a,g.Jb,v.WG]]}),n})()}}]); \ No newline at end of file diff --git a/server/public/7559.f6ca9a429933f621.js b/server/public/7559.f6ca9a429933f621.js deleted file mode 100644 index 4587d5705..000000000 --- a/server/public/7559.f6ca9a429933f621.js +++ /dev/null @@ -1 +0,0 @@ -"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/79.88f59fde8cf78eea.js b/server/public/79.c2ee2d04f9a73d83.js similarity index 96% rename from server/public/79.88f59fde8cf78eea.js rename to server/public/79.c2ee2d04f9a73d83.js index e6cbb7a8a..080d306ac 100644 --- a/server/public/79.88f59fde8cf78eea.js +++ b/server/public/79.c2ee2d04f9a73d83.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(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 +"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(9716),t.e(5291),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/8482.43089493207c0c97.js b/server/public/8482.97546a52cadedf70.js similarity index 99% rename from server/public/8482.43089493207c0c97.js rename to server/public/8482.97546a52cadedf70.js index 0c2257b64..1c6a5ebcc 100644 --- a/server/public/8482.43089493207c0c97.js +++ b/server/public/8482.97546a52cadedf70.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8482],{8482:($t,b,r)=>{r.r(b),r.d(b,{VariantGroupsDetailModule:()=>Yt});var o=r(9808),s=r(325),V=r(8929),T=r(591),c=r(712),p=r(373),Z=r(1059),S=r(7625),t=r(5e3),y=r(9350),P=r(8992),M=r(5623),g=r(1945),I=r(8168),A=r(2683),l=r(6949),u=r(8144),x=r(6042),C=r(2643),O=r(9077),w=r(2233),d=r(1894),J=r(759);const N=function(n){return["/variant-groups",n,"revise"]};function D(n,e){if(1&n&&(t.TgZ(0,"button",14,15),t._uU(2," Revise "),t.qZA()),2&n){const a=t.MAs(1),i=t.oxw(4).ngIf;t.Q6J("routerLink",t.VKq(2,N,i.id))("nzType",a.isActive?"primary":"default")}}function Q(n,e){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,D,3,4,"button",13),t.qZA()),2&n){const a=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",a.signedIn)}}function L(n,e){if(1&n&&(t.TgZ(0,"button",17,15),t._uU(2," Flag "),t.qZA()),2&n){const a=t.MAs(1);t.Q6J("nzType",a.isActive?"primary":"default")}}function Y(n,e){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,L,3,1,"button",16),t.qZA()),2&n){const a=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",a.signedIn)}}function $(n,e){if(1&n&&t._UZ(0,"cvc-entity-subscription-button",19),2&n){const a=t.oxw(2).ngrxLet,i=t.oxw(3);t.Q6J("viewer",a)("subscribableId",i.subscribable.id)}}function F(n,e){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,$,1,2,"cvc-entity-subscription-button",18),t.qZA()),2&n){const a=t.oxw().ngrxLet,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",a.signedIn&&i.subscribable)}}function E(n,e){1&n&&(t.TgZ(0,"nz-space",11),t.YNc(1,Q,2,1,"span",12),t.YNc(2,Y,2,1,"span",12),t.YNc(3,F,2,1,"span",12),t.qZA())}function U(n,e){if(1&n&&(t.TgZ(0,"nz-page-header-extra"),t.YNc(1,E,4,0,"nz-space",10),t.qZA()),2&n){const a=t.oxw(2);t.xp6(1),t.Q6J("ngrxLet",a.viewer$)}}function R(n,e){if(1&n&&(t.TgZ(0,"nz-col",20),t._UZ(1,"cvc-contributor-avatars",21),t.qZA()),2&n){const a=t.oxw(2);t.xp6(1),t.Q6J("subscribable",a.subscribable)}}function j(n,e){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"div",2),t.ALo(3,"ngrxPush"),t.TgZ(4,"nz-page-header",3),t.TgZ(5,"nz-page-header-title",4),t._UZ(6,"i",5),t._uU(7),t.qZA(),t.YNc(8,U,2,1,"nz-page-header-extra",6),t.TgZ(9,"nz-page-header-content"),t.TgZ(10,"cvc-tab-navigation",7),t.ALo(11,"ngrxPush"),t.YNc(12,R,2,1,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(14,"div",9),t._UZ(15,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const a=e.ngIf,i=t.oxw();t.xp6(1),t.Q6J("displayName",a.name),t.xp6(1),t.Q6J("flags",t.lcZ(3,5,i.flagsTotal$)),t.xp6(5),t.hij(" ",a.name," "),t.xp6(1),t.Q6J("ngrxLet",i.viewer$),t.xp6(2),t.Q6J("tabs",t.lcZ(11,7,i.tabs$))}}let B=(()=>{class n{constructor(a,i,h){this.gql=a,this.viewerService=i,this.route=h,this.destroy$=new V.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"}],this.viewer$=this.viewerService.viewer$,this.tabs$=new T.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(m=>{let z=this.gql.watch({variantGroupId:+m.variantGroupId}).valueChanges;this.loading$=z.pipe((0,p.j)("loading"),(0,Z.O)(!0)),this.variantGroup$=z.pipe((0,p.j)("data","variantGroup")),this.commentsTotal$=this.variantGroup$.pipe((0,p.j)("comments","totalCount")),this.flagsTotal$=this.variantGroup$.pipe((0,p.j)("flags","totalCount")),this.variantGroup$.pipe((0,p.j)("revisions","totalCount"),(0,S.R)(this.destroy$)).subscribe({next:f=>{this.tabs$.next(this.defaultTabs.map(v=>"Revisions"===v.tabLabel?Object.assign({badgeCount:f},v):v))}}),this.subscribable={id:+m.variantGroupId,entityType:c.o71.VariantGroup}})}ngOnInit(){}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(c.Qtd),t.Y36(y.a),t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variantgroup"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(a,i){1&a&&(t.YNc(0,j,16,9,"ng-container",0),t.ALo(1,"async")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,i.variantGroup$))},directives:[o.O5,P.I,M.o,g.$O,g.u9,I.Y,A.w,l.eJ,g.Jp,u.NU,u.$1,x.ix,C.dQ,s.Od,s.rH,O.Q,g.u5,w.P,d.t3,J.N,s.lC],pipes:[o.Ov,l.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 X=r(2278);let W=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,X.l]]}),n})();var K=r(3801);function H(n,e){if(1&n&&t._UZ(0,"cvc-comment-list",1),2&n){const a=t.oxw();t.Q6J("commentable",a.commentable)}}let q=(()=>{class n{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(i=>{this.commentable={entityType:c.OfU.VariantGroup,id:+i.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-comments"]],decls:1,vars:1,consts:[[3,"commentable",4,"ngIf"],[3,"commentable"]],template:function(a,i){1&a&&t.YNc(0,H,1,1,"cvc-comment-list",0),2&a&&t.Q6J("ngIf",i.commentable)},directives:[o.O5,K.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var k=r(4271);let tt=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,k.M]]}),n})();var nt=r(7036);function at(n,e){if(1&n&&t._UZ(0,"cvc-flag-list-and-filter",1),2&n){const a=t.oxw();t.Q6J("flaggable",a.flaggable)}}let et=(()=>{class n{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(i=>{this.flaggable={entityType:c.sfv.VariantGroup,id:+i.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-flags"]],decls:1,vars:1,consts:[[3,"flaggable",4,"ngIf"],[3,"flaggable"]],template:function(a,i){1&a&&t.YNc(0,at,1,1,"cvc-flag-list-and-filter",0),2&a&&t.Q6J("ngIf",i.flaggable)},directives:[o.O5,nt.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var rt=r(2914);let it=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,rt.A]]}),n})();var ot=r(8291);let st=(()=>{class n{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(i=>{this.vgId=+i.variantGroupId,this.entityType=c.oRL.VariantGroup})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(a,i){1&a&&t._UZ(0,"cvc-revisions-list-and-filter",0),2&a&&t.Q6J("id",i.vgId)("entityType",i.entityType)},directives:[ot.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var _=r(3098),ct=r(8541),pt=r(3855),G=r(3618),lt=r(897),ut=r(9779);let gt=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,l.WG,u.zf,d.Jb,_.q6,G.ZJ,ct.o,pt.H,lt.$,ut.s]]}),n})();var dt=r(4850),mt=r(427),vt=r(6715),ft=r(6906),_t=r(6410);function ht(n,e){if(1&n&&(t.TgZ(0,"p",11),t._uU(1),t.qZA()),2&n){const a=t.oxw(3).ngIf;t.Q6J("nzEllipsisRows",14),t.xp6(1),t.Oqu(a.description)}}function zt(n,e){1&n&&t._UZ(0,"cvc-empty-revisable",12)}function bt(n,e){if(1&n&&(t.TgZ(0,"nz-descriptions",7),t.TgZ(1,"nz-descriptions-item",8),t.YNc(2,ht,2,2,"p",9),t.YNc(3,zt,1,0,"ng-template",null,10,t.W1O),t.qZA(),t.qZA()),2&n){const a=t.MAs(4),i=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",i.description)("ngIfElse",a)}}function yt(n,e){1&n&&t._UZ(0,"cvc-source-tag",17),2&n&&t.Q6J("source",e.$implicit)}function xt(n,e){if(1&n&&(t.ynx(0),t.TgZ(1,"cvc-tag-list"),t.YNc(2,yt,1,1,"cvc-source-tag",16),t.qZA(),t.BQk()),2&n){const a=t.oxw(3).ngIf;t.xp6(2),t.Q6J("ngForOf",a.sources)}}function Gt(n,e){1&n&&(t.TgZ(0,"span",18),t._uU(1,"None specified"),t.qZA())}function Vt(n,e){if(1&n&&(t.TgZ(0,"nz-descriptions",7),t.TgZ(1,"nz-descriptions-item",13),t.YNc(2,xt,3,1,"ng-container",14),t.YNc(3,Gt,2,0,"ng-template",null,15,t.W1O),t.qZA(),t.qZA()),2&n){const a=t.MAs(4),i=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",i.sources.length>0)("ngIfElse",a)}}function Tt(n,e){1&n&&(t.TgZ(0,"nz-row",3),t.TgZ(1,"nz-col",4),t.TgZ(2,"nz-space",5),t.YNc(3,bt,5,3,"nz-descriptions",6),t.qZA(),t.qZA(),t.TgZ(4,"nz-col",4),t.TgZ(5,"nz-space",5),t.YNc(6,Vt,5,3,"nz-descriptions",6),t.qZA(),t.qZA(),t.qZA()),2&n&&t.Q6J("nzGutter",16)}function Zt(n,e){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-variants-table",21),t.BQk()),2&n){const a=e.ngrxLet;t.xp6(1),t.MGl("cvcTitle","Variants in Variant Groupt ",null==a?null:a.name,""),t.Q6J("variantGroupId",null==a?null:a.id)}}function St(n,e){if(1&n&&(t.TgZ(0,"nz-row",3),t.TgZ(1,"nz-col",19),t.YNc(2,Zt,2,2,"ng-container",20),t.qZA(),t.qZA()),2&n){const a=t.oxw(2);t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("ngrxLet",a.variantGroup$)}}function Pt(n,e){1&n&&(t.TgZ(0,"nz-space",1),t.YNc(1,Tt,7,1,"nz-row",2),t.YNc(2,St,3,3,"nz-row",2),t.qZA())}let Mt=(()=>{class n{constructor(a,i,h){this.gql=a,this.viewerService=i,this.route=h,this.routeSub=this.route.params.subscribe(m=>{this.viewer$=this.viewerService.viewer$;let f=this.gql.watch({variantGroupId:+m.variantGroupId}).valueChanges;this.subscribableEntity={id:+m.variantGroupId,entityType:c.o71.VariantGroup},this.variantGroup$=f.pipe((0,p.j)("data","variantGroup")),this.loading$=f.pipe((0,p.j)("loading")),this.myVariantGroupInfo$=this.variantGroup$.pipe((0,p.j)("myVariantGroupInfoDetails"),(0,dt.U)(v=>JSON.parse(String(v))))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(c.q1D),t.Y36(y.a),t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-summary"]],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,"nzGutter"],["nzSpan","12"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[3,"nzSpan"],[4,"ngrxLet"],[3,"variantGroupId","cvcTitle"]],template:function(a,i){1&a&&(t.YNc(0,Pt,3,0,"nz-space",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,i.variantGroup$))},directives:[o.O5,u.NU,u.$1,d.SK,d.t3,_.R7,_.uj,G.ZU,mt.J,vt.$,o.sg,ft.T,l.eJ,_t.S],pipes:[l.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),n})();var It=r(4292);let At=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,It.t]]}),n})();var Ct=r(2011);const Ot=[{path:"",component:B,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Mt,data:{breadcrumb:"Summary"}},{path:"comments",component:q,data:{breadcrumb:"Comments"}},{path:"revisions",component:st,data:{breadcrumb:"Revisions"}},{path:"flags",component:et,data:{breadcrumb:"Flags"}},{path:"events",component:(()=>{class n{constructor(a){this.route=a,this.subscribable={id:+this.route.snapshot.params.variantGroupId,entityType:c.o71.VariantGroup}}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,i){1&a&&t._UZ(0,"cvc-event-feed",0),2&a&&t.Q6J("subscribable",i.subscribable)},directives:[Ct.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Events"}}]}];let wt=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[s.Bz.forChild(Ot),gt,W,it,tt,At],s.Bz]}),n})();var Jt=r(5630),Nt=r(4609),Dt=r(4682),Qt=r(8762),Lt=r(5750);let Yt=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,l.WG,wt,d.Jb,g.KJ,x.sL,u.zf,Dt.m,Jt.D,Nt.g,Qt.c,Lt.Z]]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8482],{8482:($t,b,r)=>{r.r(b),r.d(b,{VariantGroupsDetailModule:()=>Yt});var o=r(9808),s=r(325),V=r(8929),T=r(591),c=r(712),p=r(373),Z=r(1059),S=r(7625),t=r(5e3),y=r(9350),P=r(8992),M=r(5623),g=r(1945),I=r(8168),A=r(2683),l=r(6949),u=r(8144),x=r(6042),C=r(2643),O=r(9077),w=r(2233),d=r(1894),J=r(759);const N=function(n){return["/variant-groups",n,"revise"]};function D(n,e){if(1&n&&(t.TgZ(0,"button",14,15),t._uU(2," Revise "),t.qZA()),2&n){const a=t.MAs(1),i=t.oxw(4).ngIf;t.Q6J("routerLink",t.VKq(2,N,i.id))("nzType",a.isActive?"primary":"default")}}function Q(n,e){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,D,3,4,"button",13),t.qZA()),2&n){const a=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",a.signedIn)}}function L(n,e){if(1&n&&(t.TgZ(0,"button",17,15),t._uU(2," Flag "),t.qZA()),2&n){const a=t.MAs(1);t.Q6J("nzType",a.isActive?"primary":"default")}}function Y(n,e){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,L,3,1,"button",16),t.qZA()),2&n){const a=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",a.signedIn)}}function $(n,e){if(1&n&&t._UZ(0,"cvc-entity-subscription-button",19),2&n){const a=t.oxw(2).ngrxLet,i=t.oxw(3);t.Q6J("viewer",a)("subscribableId",i.subscribable.id)}}function F(n,e){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,$,1,2,"cvc-entity-subscription-button",18),t.qZA()),2&n){const a=t.oxw().ngrxLet,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",a.signedIn&&i.subscribable)}}function E(n,e){1&n&&(t.TgZ(0,"nz-space",11),t.YNc(1,Q,2,1,"span",12),t.YNc(2,Y,2,1,"span",12),t.YNc(3,F,2,1,"span",12),t.qZA())}function U(n,e){if(1&n&&(t.TgZ(0,"nz-page-header-extra"),t.YNc(1,E,4,0,"nz-space",10),t.qZA()),2&n){const a=t.oxw(2);t.xp6(1),t.Q6J("ngrxLet",a.viewer$)}}function R(n,e){if(1&n&&(t.TgZ(0,"nz-col",20),t._UZ(1,"cvc-contributor-avatars",21),t.qZA()),2&n){const a=t.oxw(2);t.xp6(1),t.Q6J("subscribable",a.subscribable)}}function j(n,e){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"div",2),t.ALo(3,"ngrxPush"),t.TgZ(4,"nz-page-header",3),t.TgZ(5,"nz-page-header-title",4),t._UZ(6,"i",5),t._uU(7),t.qZA(),t.YNc(8,U,2,1,"nz-page-header-extra",6),t.TgZ(9,"nz-page-header-content"),t.TgZ(10,"cvc-tab-navigation",7),t.ALo(11,"ngrxPush"),t.YNc(12,R,2,1,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(14,"div",9),t._UZ(15,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const a=e.ngIf,i=t.oxw();t.xp6(1),t.Q6J("displayName",a.name),t.xp6(1),t.Q6J("flags",t.lcZ(3,5,i.flagsTotal$)),t.xp6(5),t.hij(" ",a.name," "),t.xp6(1),t.Q6J("ngrxLet",i.viewer$),t.xp6(2),t.Q6J("tabs",t.lcZ(11,7,i.tabs$))}}let B=(()=>{class n{constructor(a,i,h){this.gql=a,this.viewerService=i,this.route=h,this.destroy$=new V.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"}],this.viewer$=this.viewerService.viewer$,this.tabs$=new T.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(m=>{let z=this.gql.watch({variantGroupId:+m.variantGroupId}).valueChanges;this.loading$=z.pipe((0,p.j)("loading"),(0,Z.O)(!0)),this.variantGroup$=z.pipe((0,p.j)("data","variantGroup")),this.commentsTotal$=this.variantGroup$.pipe((0,p.j)("comments","totalCount")),this.flagsTotal$=this.variantGroup$.pipe((0,p.j)("flags","totalCount")),this.variantGroup$.pipe((0,p.j)("revisions","totalCount"),(0,S.R)(this.destroy$)).subscribe({next:f=>{this.tabs$.next(this.defaultTabs.map(v=>"Revisions"===v.tabLabel?Object.assign({badgeCount:f},v):v))}}),this.subscribable={id:+m.variantGroupId,entityType:c.o71.VariantGroup}})}ngOnInit(){}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(c.Qtd),t.Y36(y.a),t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variantgroup"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(a,i){1&a&&(t.YNc(0,j,16,9,"ng-container",0),t.ALo(1,"async")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,i.variantGroup$))},directives:[o.O5,P.I,M.o,g.$O,g.u9,I.Y,A.w,l.eJ,g.Jp,u.NU,u.$1,x.ix,C.dQ,s.Od,s.rH,O.Q,g.u5,w.P,d.t3,J.N,s.lC],pipes:[o.Ov,l.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 X=r(2278);let W=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,X.l]]}),n})();var K=r(3801);function H(n,e){if(1&n&&t._UZ(0,"cvc-comment-list",1),2&n){const a=t.oxw();t.Q6J("commentable",a.commentable)}}let q=(()=>{class n{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(i=>{this.commentable={entityType:c.OfU.VariantGroup,id:+i.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-comments"]],decls:1,vars:1,consts:[[3,"commentable",4,"ngIf"],[3,"commentable"]],template:function(a,i){1&a&&t.YNc(0,H,1,1,"cvc-comment-list",0),2&a&&t.Q6J("ngIf",i.commentable)},directives:[o.O5,K.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var k=r(4271);let tt=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,k.M]]}),n})();var nt=r(7036);function at(n,e){if(1&n&&t._UZ(0,"cvc-flag-list-and-filter",1),2&n){const a=t.oxw();t.Q6J("flaggable",a.flaggable)}}let et=(()=>{class n{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(i=>{this.flaggable={entityType:c.sfv.VariantGroup,id:+i.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-flags"]],decls:1,vars:1,consts:[[3,"flaggable",4,"ngIf"],[3,"flaggable"]],template:function(a,i){1&a&&t.YNc(0,at,1,1,"cvc-flag-list-and-filter",0),2&a&&t.Q6J("ngIf",i.flaggable)},directives:[o.O5,nt.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var rt=r(2914);let it=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,rt.A]]}),n})();var ot=r(8291);let st=(()=>{class n{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(i=>{this.vgId=+i.variantGroupId,this.entityType=c.oRL.VariantGroup})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(a,i){1&a&&t._UZ(0,"cvc-revisions-list-and-filter",0),2&a&&t.Q6J("id",i.vgId)("entityType",i.entityType)},directives:[ot.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var _=r(3098),ct=r(8541),pt=r(3855),G=r(3618),lt=r(897),ut=r(9779);let gt=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,l.WG,u.zf,d.Jb,_.q6,G.ZJ,ct.o,pt.H,lt.$,ut.s]]}),n})();var dt=r(4850),mt=r(427),vt=r(6715),ft=r(6906),_t=r(6410);function ht(n,e){if(1&n&&(t.TgZ(0,"p",11),t._uU(1),t.qZA()),2&n){const a=t.oxw(3).ngIf;t.Q6J("nzEllipsisRows",14),t.xp6(1),t.Oqu(a.description)}}function zt(n,e){1&n&&t._UZ(0,"cvc-empty-revisable",12)}function bt(n,e){if(1&n&&(t.TgZ(0,"nz-descriptions",7),t.TgZ(1,"nz-descriptions-item",8),t.YNc(2,ht,2,2,"p",9),t.YNc(3,zt,1,0,"ng-template",null,10,t.W1O),t.qZA(),t.qZA()),2&n){const a=t.MAs(4),i=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",i.description)("ngIfElse",a)}}function yt(n,e){1&n&&t._UZ(0,"cvc-source-tag",17),2&n&&t.Q6J("source",e.$implicit)}function xt(n,e){if(1&n&&(t.ynx(0),t.TgZ(1,"cvc-tag-list"),t.YNc(2,yt,1,1,"cvc-source-tag",16),t.qZA(),t.BQk()),2&n){const a=t.oxw(3).ngIf;t.xp6(2),t.Q6J("ngForOf",a.sources)}}function Gt(n,e){1&n&&(t.TgZ(0,"span",18),t._uU(1,"None specified"),t.qZA())}function Vt(n,e){if(1&n&&(t.TgZ(0,"nz-descriptions",7),t.TgZ(1,"nz-descriptions-item",13),t.YNc(2,xt,3,1,"ng-container",14),t.YNc(3,Gt,2,0,"ng-template",null,15,t.W1O),t.qZA(),t.qZA()),2&n){const a=t.MAs(4),i=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("ngIf",i.sources.length>0)("ngIfElse",a)}}function Tt(n,e){1&n&&(t.TgZ(0,"nz-row",3),t.TgZ(1,"nz-col",4),t.TgZ(2,"nz-space",5),t.YNc(3,bt,5,3,"nz-descriptions",6),t.qZA(),t.qZA(),t.TgZ(4,"nz-col",4),t.TgZ(5,"nz-space",5),t.YNc(6,Vt,5,3,"nz-descriptions",6),t.qZA(),t.qZA(),t.qZA()),2&n&&t.Q6J("nzGutter",16)}function Zt(n,e){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-variants-table",21),t.BQk()),2&n){const a=e.ngrxLet;t.xp6(1),t.MGl("cvcTitle","Variants in Variant Groupt ",null==a?null:a.name,""),t.Q6J("variantGroupId",null==a?null:a.id)}}function St(n,e){if(1&n&&(t.TgZ(0,"nz-row",3),t.TgZ(1,"nz-col",19),t.YNc(2,Zt,2,2,"ng-container",20),t.qZA(),t.qZA()),2&n){const a=t.oxw(2);t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("ngrxLet",a.variantGroup$)}}function Pt(n,e){1&n&&(t.TgZ(0,"nz-space",1),t.YNc(1,Tt,7,1,"nz-row",2),t.YNc(2,St,3,3,"nz-row",2),t.qZA())}let Mt=(()=>{class n{constructor(a,i,h){this.gql=a,this.viewerService=i,this.route=h,this.routeSub=this.route.params.subscribe(m=>{this.viewer$=this.viewerService.viewer$;let f=this.gql.watch({variantGroupId:+m.variantGroupId}).valueChanges;this.subscribableEntity={id:+m.variantGroupId,entityType:c.o71.VariantGroup},this.variantGroup$=f.pipe((0,p.j)("data","variantGroup")),this.loading$=f.pipe((0,p.j)("loading")),this.myVariantGroupInfo$=this.variantGroup$.pipe((0,p.j)("myVariantGroupInfoDetails"),(0,dt.U)(v=>JSON.parse(String(v))))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(c.q1D),t.Y36(y.a),t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-summary"]],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,"nzGutter"],["nzSpan","12"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[3,"nzSpan"],[4,"ngrxLet"],[3,"variantGroupId","cvcTitle"]],template:function(a,i){1&a&&(t.YNc(0,Pt,3,0,"nz-space",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,i.variantGroup$))},directives:[o.O5,u.NU,u.$1,d.SK,d.t3,_.R7,_.uj,G.ZU,mt.J,vt.$,o.sg,ft.T,l.eJ,_t.S],pipes:[l.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),n})();var It=r(5291);let At=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,It.t]]}),n})();var Ct=r(2011);const Ot=[{path:"",component:B,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Mt,data:{breadcrumb:"Summary"}},{path:"comments",component:q,data:{breadcrumb:"Comments"}},{path:"revisions",component:st,data:{breadcrumb:"Revisions"}},{path:"flags",component:et,data:{breadcrumb:"Flags"}},{path:"events",component:(()=>{class n{constructor(a){this.route=a,this.subscribable={id:+this.route.snapshot.params.variantGroupId,entityType:c.o71.VariantGroup}}}return n.\u0275fac=function(a){return new(a||n)(t.Y36(s.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-variant-groups-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,i){1&a&&t._UZ(0,"cvc-event-feed",0),2&a&&t.Q6J("subscribable",i.subscribable)},directives:[Ct.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Events"}}]}];let wt=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[s.Bz.forChild(Ot),gt,W,it,tt,At],s.Bz]}),n})();var Jt=r(5630),Nt=r(4609),Dt=r(4682),Qt=r(8762),Lt=r(5750);let Yt=(()=>{class n{}return n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[o.ez,l.WG,wt,d.Jb,g.KJ,x.sL,u.zf,Dt.m,Jt.D,Nt.g,Qt.c,Lt.Z]]}),n})()}}]); \ No newline at end of file diff --git a/server/public/9020.4a98dc48a9af4544.js b/server/public/9020.d6f9f3844668aecf.js similarity index 84% rename from server/public/9020.4a98dc48a9af4544.js rename to server/public/9020.d6f9f3844668aecf.js index baf5f015f..f3c5785e7 100644 --- a/server/public/9020.4a98dc48a9af4544.js +++ b/server/public/9020.d6f9f3844668aecf.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,"."),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),_=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,_.$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),_=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,_.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 S(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,S,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,_.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),_=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,_.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,_.PV,M]]}),c})()},3154:(G,V,e)=>{e.d(V,{_:()=>n});var d=e(712);function n(a){var _;switch(a.value){case"ascend":_=d.SrV.Asc;break;case"descend":_=d.SrV.Desc;break;default:return}return{column:a.key,direction:_}}},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:()=>S});var d=e(9808),n=e(915);const _={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})(),S=(()=>{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:[_]}),t.N,C]]}),o})()},3314:(G,V,e)=>{e.d(V,{p:()=>s});var d=e(9808),n=e(4182),a=e(8776),_=e(9657),Z=e(712),t=e(444);const l=new _.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),_=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),S=c.oxw();c.xp6(1),c.Q6J("formControl",S.formControl)("formlyAttributes",S.field)("nzPlaceHolder",S.to.placeholder?S.to.placeholder:null)("nzNotFoundContent",C)("nzShowArrow",S.to.showArrow)("nzFilterOption",S.to.filterOption),c.xp6(1),c.Q6J("ngIf",c.lcZ(3,7,S.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,_.u5,_.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 _=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,_.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 _={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:[_]})]]}),l})()},5486:(G,V,e)=>{e.d(V,{$:()=>W});var d=e(9808),n=e(8776),a=e(8929),_=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,_.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),_=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,_.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),_=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(S){return x.CHM(h),x.oxw().onEidSelectionChange(S)}),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,S;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===(S=o.gene)||void 0===S?void 0:S.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,S)=>{this.field.formControl.controls[S].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 S=x.MAs(6);x.xp6(4),x.Q6J("nzVisible",C.managerVisible)("nzContent",S)}},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,_.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),_=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,_.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),S=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),Se=e(7795),_e=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,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,Se.k,_e.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,S.Lr,h.sg,d.tP,U.T7,c.SK,S.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:()=>S});var d=e(9808),n=e(325),a=e(3618),_=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,_.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,_.$O,_.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(9716),e.e(5291),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 S=(()=>{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),_=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,S,o,A){this.nzConfigService=p,this.host=h,this.ngZone=C,this.cdr=S,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:_.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/9286.77907954ff6709b6.js b/server/public/9286.1078d57cf8d3724d.js similarity index 99% rename from server/public/9286.77907954ff6709b6.js rename to server/public/9286.1078d57cf8d3724d.js index 3e76492c8..6f24affaf 100644 --- a/server/public/9286.77907954ff6709b6.js +++ b/server/public/9286.1078d57cf8d3724d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9286],{112:(W,C,r)=>{r.d(C,{u:()=>F});var o=r(5e3),Z=r(9808),z=r(325),v=r(8481),M=r(3610),S=r(4850),d=r(712),A=r(7484),T=r(3098),l=r(8664),f=r(6906),u=r(6949);function Q(_,s){if(1&_&&(o._UZ(0,"i",7),o._uU(1)),2&_){const c=o.oxw().ngIf;o.xp6(1),o.hij(" ",c.name," ")}}function p(_,s){if(1&_&&(o.TgZ(0,"span"),o._UZ(1,"cvc-variant-tag",10),o.qZA()),2&_){const c=s.$implicit;o.xp6(1),o.Q6J("variant",c.node)}}function I(_,s){if(1&_&&(o.TgZ(0,"nz-descriptions-item",8),o.YNc(1,p,2,1,"span",9),o.qZA()),2&_){const c=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",c.variants.edges)}}function y(_,s){if(1&_&&(o.TgZ(0,"span"),o._UZ(1,"cvc-source-tag",12),o.qZA()),2&_){const c=s.$implicit;o.xp6(1),o.Q6J("source",c)}}function n(_,s){if(1&_&&(o.TgZ(0,"nz-descriptions-item",11),o.YNc(1,y,2,1,"span",9),o.qZA()),2&_){const c=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",c.sources)}}function q(_,s){if(1&_&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,Q,2,1,"ng-template",null,3,o.W1O),o._uU(4),o.TgZ(5,"nz-descriptions",4),o.YNc(6,I,2,1,"nz-descriptions-item",5),o.YNc(7,n,2,1,"nz-descriptions-item",6),o.qZA(),o.qZA(),o.BQk()),2&_){const c=s.ngIf,m=o.MAs(3);o.xp6(1),o.Q6J("nzTitle",m),o.xp6(3),o.hij(" ",c.description," "),o.xp6(1),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",c.variants.edges.length>0),o.xp6(1),o.Q6J("ngIf",c.sources.length>0)}}let N=(()=>{class _{constructor(c){this.gql=c}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,S.U)(({data:c})=>c.variantGroup))}}return _.\u0275fac=function(c){return new(c||_)(o.Y36(d.Zo2))},_.\u0275cmp=o.Xpm({type:_,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(c,m){1&c&&(o.TgZ(0,"div",0),o.YNc(1,q,8,5,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&c&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,m.variantGroup$)))},directives:[Z.O5,A.bd,T.R7,T.uj,Z.sg,l.I,f.T],pipes:[u.fM],styles:["[_nghost-%COMP%]{display:block}"]}),_})();var U=r(647);function b(_,s){}function w(_,s){if(1&_&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,b,0,0,"ng-template",6),o.qZA(),o.BQk()),2&_){const c=o.oxw(),m=o.MAs(2);o.xp6(1),o.Q6J("routerLink",c.variantgroup.link),o.xp6(1),o.Q6J("ngTemplateOutlet",m)}}function P(_,s){}function Y(_,s){if(1&_&&(o.TgZ(0,"nz-tag",9),o.YNc(1,P,0,0,"ng-template",6),o.qZA()),2&_){o.oxw();const c=o.MAs(2);o.oxw();const m=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",c),o.xp6(1),o.Q6J("ngTemplateOutlet",m)}}function O(_,s){if(1&_&&o._UZ(0,"cvc-variant-group-popover",11),2&_){const c=o.oxw(3);o.Q6J("variantGroupId",c.variantgroup.id)}}function B(_,s){if(1&_&&o.YNc(0,O,1,1,"cvc-variant-group-popover",10),2&_){const c=o.oxw(2);o.Q6J("ngIf",c.enablePopover)}}function x(_,s){if(1&_&&(o.YNc(0,Y,2,3,"nz-tag",7),o.YNc(1,B,1,1,"ng-template",null,8,o.W1O)),2&_){const c=o.oxw(),m=o.MAs(4);o.Q6J("ngIf",c.enablePopover)("ngIfElse",m)}}function E(_,s){}function L(_,s){if(1&_&&(o.TgZ(0,"nz-tag"),o.YNc(1,E,0,0,"ng-template",6),o.qZA()),2&_){o.oxw();const c=o.MAs(8);o.xp6(1),o.Q6J("ngTemplateOutlet",c)}}function G(_,s){}function k(_,s){if(1&_&&o.YNc(0,G,0,0,"ng-template",6),2&_){o.oxw();const c=o.MAs(2);o.Q6J("ngTemplateOutlet",c)}}function j(_,s){if(1&_&&(o._UZ(0,"i",12),o._uU(1)),2&_){const c=o.oxw();o.xp6(1),o.hij(" ",c.variantgroup.name,"\n")}}let F=(()=>{class _{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 _.\u0275fac=function(c){return new(c||_)},_.\u0275cmp=o.Xpm({type:_,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(c,m){if(1&c&&(o.YNc(0,w,3,2,"ng-container",0),o.YNc(1,x,3,2,"ng-template",null,1,o.W1O),o.YNc(3,L,2,1,"ng-template",null,2,o.W1O),o.YNc(5,k,1,1,"ng-template",null,3,o.W1O),o.YNc(7,j,2,1,"ng-template",null,4,o.W1O)),2&c){const D=o.MAs(6);o.Q6J("ngIf",m.linked)("ngIfElse",D)}},directives:[Z.O5,z.yS,Z.tP,v.j,M.lU,N,U.Ls],styles:[""]}),_})()},7677:(W,C,r)=>{r.d(C,{G:()=>Q});var o=r(9808),Z=r(325),z=r(3610),v=r(8481),M=r(647),S=r(9779),d=r(4867),A=r(7484),T=r(3098),l=r(6949),f=r(5e3);let u=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=f.oAB({type:p}),p.\u0275inj=f.cJS({imports:[[o.ez,l.WG,A.vh,T.q6,S.s,d.Q]]}),p})(),Q=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=f.oAB({type:p}),p.\u0275inj=f.cJS({imports:[[o.ez,Z.Bz,z.$6,v.X,M.PV,u]]}),p})()},1485:(W,C,r)=>{r.r(C),r.d(C,{VariantsDetailModule:()=>Ii});var o=r(9808),Z=r(5630),z=r(6949),v=r(8144),M=r(4682),S=r(3309),d=r(1945),A=r(6042),T=r(647),l=r(325),f=r(712),u=r(373),Q=r(1059),p=r(7625),I=r(8929),y=r(591),n=r(5e3),q=r(9350),N=r(8992),U=r(3193),b=r(5623),w=r(8168),P=r(2683),Y=r(2643),O=r(9077),B=r(2233),x=r(1894),E=r(759);function L(t,i){if(1&t&&(n.TgZ(0,"span",14),n.TgZ(1,"strong"),n._uU(2),n.qZA(),n._uU(3," Parent:"),n.qZA()),2&t){const a=n.oxw(2).ngIf;n.xp6(2),n.Oqu(a.name)}}function G(t,i){if(1&t&&(n.TgZ(0,"span",15),n.TgZ(1,"a",16),n._UZ(2,"cvc-gene-tag",17),n.qZA(),n.qZA()),2&t){const a=n.oxw(2).ngIf;n.xp6(1),n.MGl("routerLink","/genes/",a.gene.id,""),n.xp6(1),n.Q6J("gene",a.gene)}}function k(t,i){1&t&&(n.TgZ(0,"nz-space",11),n.YNc(1,L,4,1,"span",12),n.YNc(2,G,3,2,"span",13),n.qZA())}function j(t,i){1&t&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function F(t,i){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,j,2,0,"span",0),n.qZA()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function _(t,i){if(1&t&&(n.TgZ(0,"nz-page-header-subtitle"),n.YNc(1,F,3,2,"span",18),n.qZA()),2&t){const a=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",a.variantAliases)}}const s=function(t){return["/variants",t,"revise"]};function c(t,i){if(1&t&&(n.TgZ(0,"button",23,24),n._uU(2," Revise "),n.qZA()),2&t){const a=n.MAs(1),e=n.oxw(4).ngIf;n.Q6J("routerLink",n.VKq(2,s,e.id))("nzType",a.isActive?"primary":"default")}}function m(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,c,3,4,"button",22),n.qZA()),2&t){const a=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",a.signedIn)}}function D(t,i){if(1&t&&(n.TgZ(0,"button",26,24),n._uU(2," Flag "),n.qZA()),2&t){const a=n.MAs(1);n.Q6J("nzType",a.isActive?"primary":"default")}}function cn(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,D,3,1,"button",25),n.qZA()),2&t){const a=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",a.signedIn)}}function sn(t,i){if(1&t&&n._UZ(0,"cvc-entity-subscription-button",28),2&t){const a=n.oxw(2).ngrxLet,e=n.oxw(3);n.Q6J("viewer",a)("subscribableId",e.subscribable.id)}}function gn(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,sn,1,2,"cvc-entity-subscription-button",27),n.qZA()),2&t){const a=n.oxw().ngrxLet,e=n.oxw(3);n.xp6(1),n.Q6J("ngIf",a.signedIn&&e.subscribable)}}function pn(t,i){1&t&&(n.TgZ(0,"nz-space",20),n.YNc(1,m,2,1,"span",21),n.YNc(2,cn,2,1,"span",21),n.YNc(3,gn,2,1,"span",21),n.qZA())}function ln(t,i){if(1&t&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,pn,4,0,"nz-space",19),n.qZA()),2&t){const a=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",a.viewer$)}}function fn(t,i){if(1&t&&(n.TgZ(0,"nz-col",29),n._UZ(1,"cvc-contributor-avatars",30),n.qZA()),2&t){const a=n.oxw(2);n.xp6(1),n.Q6J("subscribable",a.subscribable)}}const mn=function(t){return{flagged:t}};function un(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,k,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"div",3),n.ALo(5,"ngrxPush"),n.TgZ(6,"nz-page-header",4),n.TgZ(7,"nz-page-header-title",5),n._UZ(8,"i",6),n._uU(9),n.qZA(),n.YNc(10,_,2,1,"nz-page-header-subtitle",0),n.YNc(11,ln,2,1,"nz-page-header-extra",7),n.TgZ(12,"nz-page-header-content"),n.TgZ(13,"cvc-tab-navigation",8),n.ALo(14,"ngrxPush"),n.YNc(15,fn,2,1,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(17,"div",10),n._UZ(18,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=i.ngIf,e=n.MAs(3),g=n.oxw();n.xp6(1),n.Q6J("displayName",a.gene.name+" "+a.name)("relationsTpl",e),n.xp6(3),n.Q6J("flags",n.lcZ(5,8,g.flagsTotal$)),n.xp6(3),n.Q6J("ngClass",n.VKq(12,mn,a.flags.totalCount>0)),n.xp6(2),n.hij(" ",a.name," "),n.xp6(1),n.Q6J("ngIf",a.variantAliases.length>0),n.xp6(1),n.Q6J("ngrxLet",g.viewer$),n.xp6(2),n.Q6J("tabs",n.lcZ(14,10,g.tabs$))}}let vn=(()=>{class t{constructor(a,e,g){this.gql=a,this.viewerService=e,this.route=g,this.destroy$=new I.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 y.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(J=>{this.queryRef=this.gql.watch({variantId:+J.variantId});let _n=this.queryRef.valueChanges;this.loading$=_n.pipe((0,u.j)("loading"),(0,Q.O)(!0)),this.variant$=_n.pipe((0,u.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,u.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,u.j)("flags","totalCount")),this.variant$.pipe((0,u.j)("revisions","totalCount"),(0,p.R)(this.destroy$)).subscribe({next:hi=>{this.tabs$.next(this.defaultTabs.map(H=>"Revisions"===H.tabLabel?Object.assign({badgeCount:hi},H):H))}}),this.subscribable={id:+J.variantId,entityType:f.o71.Variant},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(f.iJT),n.Y36(q.a),n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["variants-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["variantRelations",""],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:variant"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(a,e){1&a&&(n.YNc(0,un,19,14,"ng-container",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,e.variant$))},directives:[o.O5,N.I,v.NU,v.$1,l.yS,U.H,b.o,d.$O,d.u9,w.Y,o.mk,P.w,T.Ls,d.yG,o.sg,z.eJ,d.Jp,A.ix,Y.dQ,l.Od,l.rH,O.Q,d.u5,B.P,x.t3,E.N,l.lC],pipes:[z.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 xn=r(2278);let dn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,xn.l]]}),t})();var zn=r(3801);let Tn=(()=>{class t{constructor(a){this.route=a,this.commentable={id:+this.route.snapshot.params.variantId,entityType:f.OfU.Variant}}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,e){1&a&&n._UZ(0,"cvc-comment-list",0),2&a&&n.Q6J("commentable",e.commentable)},directives:[zn.D],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var Zn=r(4271),yn=r(6559),V=r(7484);let In=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,x.Jb,V.vh,v.zf,yn.H0,T.PV,Zn.M]]}),t})();var hn=r(7036);let Cn=(()=>{class t{constructor(a){this.route=a,this.flaggable={entityType:f.sfv.Variant,id:+this.route.snapshot.params.variantId}}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,e){1&a&&n._UZ(0,"cvc-flag-list-and-filter",0),2&a&&n.Q6J("flaggable",e.flaggable)},directives:[hn.L],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var An=r(2914);let Qn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,An.A]]}),t})();var Vn=r(8291);let Jn=(()=>{class t{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(e=>{this.variantId=+e.variantId,this.entityType=f.oRL.Variant})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(a,e){1&a&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&a&&n.Q6J("id",e.variantId)("entityType",e.entityType)},directives:[Vn.a],styles:[""]}),t})();var Mn=r(897),Sn=r(9779),$=r(3098),qn=r(8645),X=r(3630),R=r(868),h=r(1132),K=r(9444);let Nn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,R.we,h.HQ,V.vh,X.X,x.Jb,K.s]]}),t})();var Un=r(8541),nn=r(4292),bn=r(767),wn=r(9441),tn=r(3618),Pn=r(7345);let Yn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,z.WG,v.zf,x.Jb,$.q6,V.vh,tn.ZJ,T.PV,K.s,bn.Q,wn.s,Mn.$,Pn.W,Sn.s,qn.M,X.X,Nn,Un.o,nn.t]]}),t})();var On=r(427),Bn=r(6715),En=r(6906),Ln=r(7701),an=r(6550),en=r(9714);function Gn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",19),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",a.variantInfo.clinvarId,"/"),n.xp6(1),n.hij(" ",a.variantInfo.clinvarId," ")}}function kn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",20),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?searchType=adhoc_search&type=rs&rs=",a.variantInfo.dbsnpRsid,""),n.xp6(1),n.hij(" ",a.variantInfo.dbsnpRsid," ")}}function jn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",21),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=",a.variantInfo.cosmicId,""),n.xp6(1),n.hij(" ",a.variantInfo.cosmicId," ")}}function Fn(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Dn(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Fn,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function $n(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Dn,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.snpeffSnpEffect)}}function Rn(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Hn(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Rn,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Wn(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Hn,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.snpeffSnpImpact)}}function Xn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," MyVariant.info ID: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.TgZ(7,"strong",17),n._uU(8,"ClinVar ID:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,Gn,3,2,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(11,"div",14),n.TgZ(12,"div",15),n._uU(13," dbSNP RSID: "),n.qZA(),n.TgZ(14,"div",16),n.YNc(15,kn,3,2,"ng-container",18),n.TgZ(16,"strong",17),n._uU(17,"COSMIC ID (v68):"),n.qZA(),n._uU(18,"\xa0 "),n.YNc(19,jn,3,2,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(20,"div",14),n.TgZ(21,"div",15),n._uU(22," SNPEff Effect: "),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,$n,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(25,"div",14),n.TgZ(26,"div",15),n._uU(27," SNPEff Impact: "),n.qZA(),n.TgZ(28,"div",16),n.YNc(29,Wn,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2),e=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",a.variantInfo.myVariantInfoId," "),n.xp6(4),n.Q6J("ngIf",a.variantInfo.clinvarId)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.dbsnpRsid)("ngIfElse",e),n.xp6(4),n.Q6J("ngIf",a.variantInfo.cosmicId)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.snpeffSnpEffect.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.snpeffSnpImpact.length>0)("ngIfElse",e)}}function Kn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",19),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",a.variantInfo.clinvarId,"/"),n.xp6(1),n.hij(" ",a.variantInfo.clinvarId," ")}}function nt(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",23),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","https://omim.org/entry/",a.variantInfo.clinvarOmim.split(".")[0],""),n.xp6(1),n.hij(" ",a.variantInfo.clinvarOmim," ")}}function tt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function at(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,tt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function it(t,i){if(1&t&&(n.ynx(0),n.YNc(1,at,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarClinicalSignificance)}}function et(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function ot(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,et,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function rt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ot,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsCoding)}}function _t(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function ct(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,_t,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function st(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ct,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsGenomic)}}function gt(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function pt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,gt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function lt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,pt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsNonCoding)}}function ft(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function mt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ft,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function ut(t,i){if(1&t&&(n.ynx(0),n.YNc(1,mt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsProtein)}}function vt(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," ClinVar ID: "),n.qZA(),n.TgZ(5,"div",16),n.YNc(6,Kn,3,2,"ng-container",18),n.TgZ(7,"strong",17),n._uU(8,"OMIM:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,nt,3,2,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(11,"div",14),n.TgZ(12,"div",15),n._uU(13," ClinVar Clinical Significance: "),n.qZA(),n.TgZ(14,"div",16),n.YNc(15,it,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(16,"div",14),n.TgZ(17,"div",15),n._uU(18," HGVS Coding: "),n.qZA(),n.TgZ(19,"div",16),n.YNc(20,rt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(21,"div",14),n.TgZ(22,"div",15),n._uU(23," HGVS Genomic: "),n.qZA(),n.TgZ(24,"div",16),n.YNc(25,st,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(26,"div",14),n.TgZ(27,"div",15),n._uU(28," HGVS Non-Coding: "),n.qZA(),n.TgZ(29,"div",16),n.YNc(30,lt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(31,"div",14),n.TgZ(32,"div",15),n._uU(33," HGVS Protein: "),n.qZA(),n.TgZ(34,"div",16),n.YNc(35,ut,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2),e=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarId)("ngIfElse",e),n.xp6(4),n.Q6J("ngIf",a.variantInfo.clinvarOmim)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarClinicalSignificance.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarHgvsCoding.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarHgvsGenomic.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarHgvsNonCoding.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarHgvsProtein.length>0)("ngIfElse",e)}}function xt(t,i){if(1&t&&(n.TgZ(0,"cvc-link-tag",27),n._uU(1," View this variant in the gnomAD browser "),n.qZA()),2&t){const a=n.oxw(3);n.MGl("href","https://gnomad.broadinstitute.org/variant/",a.variantInfo.dbsnpRsid,"?dataset=gnomad_r2_1")}}const on=function(){return["."]};function dt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,xt,2,1,"cvc-link-tag",24),n.TgZ(2,"nz-table",25,26),n.TgZ(4,"thead"),n.TgZ(5,"tr"),n.TgZ(6,"th"),n._uU(7,"Type"),n.qZA(),n.TgZ(8,"th"),n._uU(9,"Allele Frequency"),n.qZA(),n.TgZ(10,"th"),n._uU(11,"Allele Count"),n.qZA(),n.TgZ(12,"th"),n._uU(13,"Allele Number"),n.qZA(),n.TgZ(14,"th"),n._uU(15,"Filter"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(16,"tbody"),n.TgZ(17,"tr"),n.TgZ(18,"td"),n._uU(19,"Total Exome"),n.qZA(),n.TgZ(20,"td"),n._uU(21),n.ALo(22,"ifEmpty"),n.qZA(),n.TgZ(23,"td"),n._uU(24),n.ALo(25,"ifEmpty"),n.qZA(),n.TgZ(26,"td"),n._uU(27),n.ALo(28,"ifEmpty"),n.qZA(),n.TgZ(29,"td"),n._uU(30),n.ALo(31,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(32,"tr"),n.TgZ(33,"td"),n._uU(34,"Total Genome"),n.qZA(),n.TgZ(35,"td"),n._uU(36),n.ALo(37,"ifEmpty"),n.qZA(),n.TgZ(38,"td"),n._uU(39),n.ALo(40,"ifEmpty"),n.qZA(),n.TgZ(41,"td"),n._uU(42),n.ALo(43,"ifEmpty"),n.qZA(),n.TgZ(44,"td"),n._uU(45),n.ALo(46,"ifEmpty"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2);n.xp6(1),n.Q6J("ngIf",a.variantInfo.dbsnpRsid),n.xp6(1),n.Q6J("nzData",n.DdM(36,on))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(19),n.Oqu(n.xi3(22,12,a.variantInfo.gnomadExomeAlleleFrequency,"--")),n.xp6(3),n.Oqu(n.xi3(25,15,a.variantInfo.gnomadExomeAlleleCount,"--")),n.xp6(3),n.Oqu(n.xi3(28,18,a.variantInfo.gnomadExomeAlleleNumber,"--")),n.xp6(3),n.Oqu(n.xi3(31,21,a.variantInfo.gnomadExomeFilter,"--")),n.xp6(6),n.Oqu(n.xi3(37,24,a.variantInfo.gnomadGenomeAlleleFrequency,"--")),n.xp6(3),n.Oqu(n.xi3(40,27,a.variantInfo.gnomadGenomeAlleleCount,"--")),n.xp6(3),n.Oqu(n.xi3(43,30,a.variantInfo.gnomadGenomeAlleleNumber,"--")),n.xp6(3),n.Oqu(n.xi3(46,33,a.variantInfo.gnomadGenomeFilter,"--"))}}function zt(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," Allele Count: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(8,"div",14),n.TgZ(9,"div",15),n._uU(10," Allele Number: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(14,"div",14),n.TgZ(15,"div",15),n._uU(16," Adjusted Allele Frequency: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,12,a.variantInfo.exacAlleleCount,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,15,a.variantInfo.exacAlleleNumber,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,18,a.variantInfo.exacAlleleFrequency,"--")," ")}}function Tt(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," phyloP100way: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(8,"div",14),n.TgZ(9,"div",15),n._uU(10," phyloP30way: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(14,"div",14),n.TgZ(15,"div",15),n._uU(16," phastCons100way: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(20,"div",14),n.TgZ(21,"div",15),n._uU(22," phastCons30way: "),n.qZA(),n.TgZ(23,"div",16),n._uU(24),n.ALo(25,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(26,"div",14),n.TgZ(27,"div",15),n._uU(28," GERP++: "),n.qZA(),n.TgZ(29,"div",16),n._uU(30),n.ALo(31,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(32,"div",14),n.TgZ(33,"div",15),n._uU(34," SiPhy: "),n.qZA(),n.TgZ(35,"div",16),n._uU(36),n.ALo(37,"ifEmpty"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,24,a.variantInfo.phyloP100way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,27,a.variantInfo.phyloP30way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,30,a.variantInfo.phastcons100way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(25,33,a.variantInfo.phastcons30way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(31,36,a.variantInfo.gerp,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(37,39,a.variantInfo.siphy,"--")," ")}}function Zt(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function yt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Zt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function It(t,i){if(1&t&&(n.ynx(0),n.YNc(1,yt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.eglHgvs)}}function ht(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," EGL Class: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(8,"div",14),n.TgZ(9,"div",15),n._uU(10," Protein Variant Name: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(14,"div",14),n.TgZ(15,"div",15),n._uU(16," Transcript Variant Name: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(20,"div",14),n.TgZ(21,"div",15),n._uU(22," HGVS: "),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,It,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2),e=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,17,a.variantInfo.eglClass,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,20,a.variantInfo.eglProtein,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,23,a.variantInfo.eglTranscript,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.eglHgvs.length>0)("ngIfElse",e)}}function Ct(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function At(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ct,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Qt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,At,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.siftPrediction)}}function Vt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Jt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Vt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Mt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Jt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.siftScore)}}function St(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function qt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,St,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Nt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,qt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HdivPrediction)}}function Ut(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function bt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ut,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function wt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,bt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HdivScore)}}function Pt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Yt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Pt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Ot(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Yt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HvarPrediction)}}function Bt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Et(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Bt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Lt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Et,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HvarScore)}}function Gt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function kt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Gt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function jt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,kt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationtasterPrediction)}}function Ft(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Dt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ft,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function $t(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Dt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationtasterScore)}}function Rt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ht(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Rt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Wt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Ht,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationassessorPrediction)}}function Xt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Kt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Xt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function na(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Kt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationassessorScore)}}function ta(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function aa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ta,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function ia(t,i){if(1&t&&(n.ynx(0),n.YNc(1,aa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.fathmmPrediction)}}function ea(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function oa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ea,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function ra(t,i){if(1&t&&(n.ynx(0),n.YNc(1,oa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.fathmmScore)}}function _a(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ca(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,_a,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function sa(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ca,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.proveanPrediction)}}function ga(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function pa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ga,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function la(t,i){if(1&t&&(n.ynx(0),n.YNc(1,pa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.proveanScore)}}function fa(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ma(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,fa,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function ua(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ma,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.caddConsequence)}}function va(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function xa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,va,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function da(t,i){if(1&t&&(n.ynx(0),n.YNc(1,xa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.caddDetail)}}function za(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-table",25,26),n.TgZ(3,"thead"),n.TgZ(4,"tr"),n.TgZ(5,"th"),n._uU(6,"Predictor"),n.qZA(),n.TgZ(7,"th"),n._uU(8,"Prediction"),n.qZA(),n.TgZ(9,"th"),n._uU(10,"Score"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"tbody"),n.TgZ(12,"tr"),n.TgZ(13,"td"),n._uU(14,"REVEL"),n.qZA(),n.TgZ(15,"td"),n._uU(16,"N/A"),n.qZA(),n.TgZ(17,"td"),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(20,"tr"),n.TgZ(21,"td"),n._uU(22,"SIFT"),n.qZA(),n.TgZ(23,"td"),n.YNc(24,Qt,2,1,"ng-container",18),n.qZA(),n.TgZ(25,"td"),n.YNc(26,Mt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(27,"tr"),n.TgZ(28,"td"),n._uU(29,"Polyphen2 HDIV"),n.qZA(),n.TgZ(30,"td"),n.YNc(31,Nt,2,1,"ng-container",18),n.qZA(),n.TgZ(32,"td"),n.YNc(33,wt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(34,"tr"),n.TgZ(35,"td"),n._uU(36,"Polyphen2 HVAR"),n.qZA(),n.TgZ(37,"td"),n.YNc(38,Ot,2,1,"ng-container",18),n.qZA(),n.TgZ(39,"td"),n.YNc(40,Lt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(41,"tr"),n.TgZ(42,"td"),n._uU(43,"LRT"),n.qZA(),n.TgZ(44,"td"),n._uU(45),n.ALo(46,"ifEmpty"),n.qZA(),n.TgZ(47,"td"),n._uU(48),n.ALo(49,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(50,"tr"),n.TgZ(51,"td"),n._uU(52,"MutationTaster"),n.qZA(),n.TgZ(53,"td"),n.YNc(54,jt,2,1,"ng-container",18),n.qZA(),n.TgZ(55,"td"),n.YNc(56,$t,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(57,"tr"),n.TgZ(58,"td"),n._uU(59,"MutationAssessor"),n.qZA(),n.TgZ(60,"td"),n.YNc(61,Wt,2,1,"ng-container",18),n.qZA(),n.TgZ(62,"td"),n.YNc(63,na,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(64,"tr"),n.TgZ(65,"td"),n._uU(66,"FATHMM"),n.qZA(),n.TgZ(67,"td"),n.YNc(68,ia,2,1,"ng-container",18),n.qZA(),n.TgZ(69,"td"),n.YNc(70,ra,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(71,"tr"),n.TgZ(72,"td"),n._uU(73,"PROVEAN"),n.qZA(),n.TgZ(74,"td"),n.YNc(75,sa,2,1,"ng-container",18),n.qZA(),n.TgZ(76,"td"),n.YNc(77,la,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(78,"tr"),n.TgZ(79,"td"),n._uU(80,"MetaSVM"),n.qZA(),n.TgZ(81,"td"),n._uU(82),n.ALo(83,"ifEmpty"),n.qZA(),n.TgZ(84,"td"),n._uU(85),n.ALo(86,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(87,"tr"),n.TgZ(88,"td"),n._uU(89,"MetaLR"),n.qZA(),n.TgZ(90,"td"),n._uU(91),n.ALo(92,"ifEmpty"),n.qZA(),n.TgZ(93,"td"),n._uU(94),n.ALo(95,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(96,"tr"),n.TgZ(97,"td"),n._uU(98,"CADD"),n.qZA(),n.TgZ(99,"td"),n._uU(100," Consequence: "),n.YNc(101,ua,2,1,"ng-container",18),n._UZ(102,"br"),n._uU(103," Consequence Detail: "),n.YNc(104,da,2,1,"ng-container",18),n.qZA(),n.TgZ(105,"td"),n._uU(106),n.ALo(107,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(108,"tr"),n.TgZ(109,"td"),n._uU(110,"FATHMM-MKL"),n.qZA(),n.TgZ(111,"td"),n._uU(112),n.ALo(113,"ifEmpty"),n.qZA(),n.TgZ(114,"td"),n._uU(115),n.ALo(116,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(117,"tr"),n.TgZ(118,"td"),n._uU(119,"fitCons"),n.qZA(),n.TgZ(120,"td"),n._uU(121,"N/A"),n.qZA(),n.TgZ(122,"td"),n._uU(123),n.ALo(124,"ifEmpty"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2),e=n.MAs(2);n.xp6(1),n.Q6J("nzData",n.DdM(79,on))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(17),n.Oqu(n.xi3(19,46,a.variantInfo.revelScore,"--")),n.xp6(6),n.Q6J("ngIf",a.variantInfo.siftPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.siftScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.polyphen2HdivPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.polyphen2HdivScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.polyphen2HvarPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.polyphen2HvarScore.length>0)("ngIfElse",e),n.xp6(5),n.Oqu(n.xi3(46,49,a.variantInfo.lrtPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(49,52,a.variantInfo.lrtScore,"--")),n.xp6(6),n.Q6J("ngIf",a.variantInfo.mutationtasterPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.mutationtasterScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.mutationassessorPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.mutationassessorScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.fathmmPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.fathmmScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.proveanPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.proveanScore.length>0)("ngIfElse",e),n.xp6(5),n.Oqu(n.xi3(83,55,a.variantInfo.metasvmPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(86,58,a.variantInfo.metasvmScore,"--")),n.xp6(6),n.Oqu(n.xi3(92,61,a.variantInfo.metalrPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(95,64,a.variantInfo.metalrScore,"--")),n.xp6(7),n.Q6J("ngIf",a.variantInfo.caddConsequence.length>0)("ngIfElse",e),n.xp6(3),n.Q6J("ngIf",a.variantInfo.caddDetail.length>0)("ngIfElse",e),n.xp6(2),n.Oqu(n.xi3(107,67,a.variantInfo.caddScore,"--")),n.xp6(6),n.Oqu(n.xi3(113,70,a.variantInfo.fathmmMklPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(116,73,a.variantInfo.fathmmMklScore,"--")),n.xp6(8),n.Oqu(n.xi3(124,76,a.variantInfo.fitconsScore,"--"))}}function Ta(t,i){if(1&t){const a=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",2),n.TgZ(2,"nz-card-tab"),n.TgZ(3,"nz-tabset",3),n.TgZ(4,"nz-tab",4),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(0)}),n.qZA(),n.TgZ(5,"nz-tab",5),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(1)}),n.qZA(),n.TgZ(6,"nz-tab",6),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(2)}),n.qZA(),n.TgZ(7,"nz-tab",7),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(3)}),n.qZA(),n.TgZ(8,"nz-tab",8),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(4)}),n.qZA(),n.TgZ(9,"nz-tab",9),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(5)}),n.qZA(),n.TgZ(10,"nz-tab",10),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(6)}),n.qZA(),n.qZA(),n.qZA(),n.ynx(11,11),n.ALo(12,"async"),n.YNc(13,Xn,30,23,"ng-container",12),n.YNc(14,vt,36,32,"ng-container",12),n.YNc(15,dt,47,37,"ng-container",12),n.YNc(16,zt,20,21,"ng-container",12),n.YNc(17,Tt,38,42,"ng-container",12),n.YNc(18,ht,25,26,"ng-container",12),n.YNc(19,za,125,80,"ng-container",12),n.BQk(),n.qZA(),n.BQk()}if(2&t){const a=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(8),n.Q6J("ngSwitch",n.lcZ(12,9,a.tabIndex)),n.xp6(2),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3),n.xp6(1),n.Q6J("ngSwitchCase",4),n.xp6(1),n.Q6J("ngSwitchCase",5),n.xp6(1),n.Q6J("ngSwitchCase",6)}}function Za(t,i){1&t&&n._uU(0,"--")}let ya=(()=>{class t{constructor(){this.tabIndex=new y.X(0)}tabChange(a){this.tabIndex.next(a)}ngOnDestroy(){this.tabIndex.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-my-variant-info"]],inputs:{variantInfo:"variantInfo"},decls:3,vars:1,consts:[[4,"ngIf"],["noValue",""],["nzTitle","MyVariantInfo"],["nzSize","small",3,"nzAnimated"],["nzTitle","Overview",3,"nzClick"],["nzTitle","ClinVar",3,"nzClick"],["nzTitle","gnomAD (2.1.1)",3,"nzClick"],["nzTitle","EXAC (0.3.1)",3,"nzClick"],["nzTitle","CADD",3,"nzClick"],["nzTitle","EGL",3,"nzClick"],["nzTitle","Effect Scores",3,"nzClick"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nz-row","",3,"nzGutter"],["nz-col","",1,"key-col",3,"nzSpan"],["nz-col","",3,"nzSpan"],[2,"margin-left","8px"],[4,"ngIf","ngIfElse"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on dbSNP",3,"href"],["tooltip","View on COSMIC",3,"href"],[4,"ngFor","ngForOf"],["tooltip","View on OMIM",3,"href"],[3,"href",4,"ngIf"],["nzSize","small",3,"nzData","nzFrontPagination","nzShowPagination"],["gnomadTable",""],[3,"href"]],template:function(a,e){1&a&&(n.YNc(0,Ta,20,11,"ng-container",0),n.YNc(1,Za,1,0,"ng-template",null,1,n.W1O)),2&a&&n.Q6J("ngIf",e.variantInfo)},directives:[o.O5,V.bd,V._i,R.xH,R.xw,o.RF,o.n9,x.SK,x.t3,an.l,o.sg,h.N8,h.Om,h.$Z,h.Uo,h._C,h.p0],pipes:[o.Ov,en.D],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),t})();var Ia=r(8965),ha=r(3756),rn=r(2011);function Ca(t,i){if(1&t&&(n.TgZ(0,"p",22),n._uU(1),n.qZA()),2&t){const a=n.oxw(3).ngIf;n.Q6J("nzEllipsisRows",14),n.xp6(1),n.Oqu(a.description)}}function Aa(t,i){1&t&&n._UZ(0,"cvc-empty-revisable",23)}function Qa(t,i){1&t&&n._UZ(0,"cvc-source-tag",25),2&t&&n.Q6J("source",i.$implicit)}function Va(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,Qa,1,1,"cvc-source-tag",24),n.qZA(),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",a.sources)}}function Ja(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function Ma(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",15),n.TgZ(1,"nz-descriptions-item",16),n.YNc(2,Ca,2,2,"p",17),n.YNc(3,Aa,1,0,"ng-template",null,18,n.W1O),n.qZA(),n.TgZ(5,"nz-descriptions-item",19),n.YNc(6,Va,3,1,"ng-container",20),n.YNc(7,Ja,2,0,"ng-template",null,21,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.MAs(8),g=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",g.description)("ngIfElse",a),n.xp6(4),n.Q6J("ngIf",g.sources.length>0)("ngIfElse",e)}}function Sa(t,i){1&t&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function qa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Sa,2,0,"span",31),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Na(t,i){if(1&t&&(n.ynx(0),n.YNc(1,qa,3,2,"ng-container",30),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",a.variantAliases)}}function Ua(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function ba(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",27),n.TgZ(1,"nz-descriptions-item",28),n.YNc(2,Na,2,1,"ng-container",20),n.YNc(3,Ua,2,0,"ng-template",null,29,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.oxw(2).ngIf;n.Q6J("nzLayout",e.variantAliases.length>4?"vertical":"horizontal"),n.xp6(2),n.Q6J("ngIf",e.variantAliases.length>0)("ngIfElse",a)}}function wa(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-variant-type-tag",34),n.BQk()),2&t){const a=i.$implicit;n.xp6(1),n.Q6J("variantType",a)}}function Pa(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,wa,2,1,"ng-container",30),n.qZA(),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",a.variantTypes)}}function Ya(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function Oa(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",27),n.TgZ(1,"nz-descriptions-item",32),n.YNc(2,Pa,3,1,"ng-container",20),n.YNc(3,Ya,2,0,"ng-template",null,33,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.oxw(2).ngIf;n.Q6J("nzLayout",e.variantTypes.length>2?"vertical":"horizontal"),n.xp6(1),n.Q6J("nzTitle",e.variantTypes.length>1?"Variant Types":"Variant Type"),n.xp6(1),n.Q6J("ngIf",e.variantTypes.length>0)("ngIfElse",a)}}function Ba(t,i){1&t&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function Ea(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ba,2,0,"span",31),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function La(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Ea,3,2,"ng-container",30),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",a.hgvsDescriptions)}}function Ga(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function ka(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",27),n.TgZ(1,"nz-descriptions-item",32),n.YNc(2,La,2,1,"ng-container",20),n.YNc(3,Ga,2,0,"ng-template",null,35,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.oxw(2).ngIf;n.Q6J("nzLayout",e.hgvsDescriptions.length>1?"vertical":"horizontal"),n.xp6(1),n.Q6J("nzTitle",e.hgvsDescriptions.length>1?"HGVS Descriptions":"HGVS Description"),n.xp6(1),n.Q6J("ngIf",e.hgvsDescriptions.length>0)("ngIfElse",a)}}function ja(t,i){if(1&t&&(n.TgZ(0,"cvc-link-tag",45),n._uU(1),n.qZA()),2&t){const a=n.oxw(3).ngIf;n.Q6J("href","https://reg.genome.network/allele/"+a.alleleRegistryId+".html"),n.xp6(1),n.hij(" ",a.alleleRegistryId," ")}}function Fa(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None provided"),n.qZA())}function Da(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",46),n._uU(2),n.qZA(),n.BQk()),2&t){const a=i.$implicit;n.xp6(1),n.Q6J("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+a),n.xp6(1),n.hij(" ",a," ")}}function $a(t,i){if(1&t&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,Da,3,2,"ng-container",30),n.qZA()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngForOf",a.clinvarIds)}}function Ra(t,i){if(1&t&&(n.ynx(0),n.YNc(1,$a,2,1,"cvc-tag-list",20),n.BQk()),2&t){n.oxw();const a=n.MAs(11),e=n.oxw(2).ngIf;n.xp6(1),n.Q6J("ngIf","N/A"!==e.clinvarIds[0])("ngIfElse",a)}}function Ha(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"N/A"),n.qZA())}function Wa(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None provided"),n.qZA())}function Xa(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",36),n.TgZ(1,"nz-descriptions-item",37),n.YNc(2,ja,2,2,"cvc-link-tag",38),n.YNc(3,Fa,2,0,"ng-template",null,39,n.W1O),n.qZA(),n.TgZ(5,"nz-descriptions-item",40),n.TgZ(6,"span",41),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"nz-descriptions-item",42),n.YNc(9,Ra,2,2,"ng-container",20),n.YNc(10,Ha,2,0,"ng-template",null,43,n.W1O),n.YNc(12,Wa,2,0,"ng-template",null,44,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.MAs(13),g=n.oxw(2).ngIf;n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",g.alleleRegistryId)("ngIfElse",a),n.xp6(5),n.Oqu(g.evidenceScore),n.xp6(1),n.Q6J("nzTitle",g.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),n.xp6(1),n.Q6J("ngIf",g.clinvarIds.length>0)("ngIfElse",e)}}function Ka(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-descriptions-item",59),n._uU(2),n.ALo(3,"ifEmpty"),n.qZA(),n.TgZ(4,"nz-descriptions-item",60),n._uU(5),n.ALo(6,"ifEmpty"),n.qZA(),n.BQk()),2&t){const a=n.oxw(6).ngIf;n.xp6(2),n.hij(" ",n.xi3(3,2,a.referenceBases,"--")," "),n.xp6(3),n.hij(" ",n.xi3(6,5,a.variantBases,"--")," ")}}function ni(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",53),n.TgZ(1,"nz-descriptions-item",54),n._uU(2),n.qZA(),n.TgZ(3,"nz-descriptions-item",55),n._uU(4),n.qZA(),n.TgZ(5,"nz-descriptions-item",56),n._uU(6),n.qZA(),n.YNc(7,Ka,7,8,"ng-container",31),n.TgZ(8,"nz-descriptions-item",57),n.TgZ(9,"cvc-link-tag",58),n._uU(10),n.qZA(),n.qZA(),n.qZA()),2&t){const a=i.ngIf,e=n.oxw(5).ngIf;n.s9C("nzTitle",e.secondaryCoordinates?"5' Coordinates":"Coordinates"),n.Q6J("nzColumn",5),n.xp6(2),n.hij(" ",a.chromosome," "),n.xp6(2),n.hij(" ",a.start," "),n.xp6(2),n.hij(" ",a.stop," "),n.xp6(1),n.Q6J("ngIf",!e.secondaryCoordinates),n.xp6(2),n.Q6J("href","http://www.ensembl.org/Homo_sapiens/transview?transcript="+a.representativeTranscript),n.xp6(1),n.hij(" ",a.representativeTranscript," ")}}function ti(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ni,11,8,"nz-descriptions",52),n.BQk()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngIf",a.primaryCoordinates)}}function ai(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",62),n.TgZ(1,"nz-descriptions-item",54),n._uU(2),n.qZA(),n.TgZ(3,"nz-descriptions-item",55),n._uU(4),n.qZA(),n.TgZ(5,"nz-descriptions-item",56),n._uU(6),n.qZA(),n.TgZ(7,"nz-descriptions-item",57),n.TgZ(8,"cvc-link-tag",58),n._uU(9),n.qZA(),n.qZA(),n.qZA()),2&t){const a=i.ngIf;n.Q6J("nzColumn",5),n.xp6(2),n.hij(" ",a.chromosome," "),n.xp6(2),n.hij(" ",a.start," "),n.xp6(2),n.hij(" ",a.stop," "),n.xp6(2),n.Q6J("href","http://www.ensembl.org/Homo_sapiens/transview?transcript="+a.representativeTranscript),n.xp6(1),n.hij(" ",a.representativeTranscript," ")}}function ii(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ai,10,6,"nz-descriptions",61),n.BQk()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngIf",a.secondaryCoordinates)}}function ei(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-descriptions",49),n.TgZ(2,"nz-descriptions-item",50),n._uU(3),n.qZA(),n.TgZ(4,"nz-descriptions-item",51),n._uU(5),n.qZA(),n.qZA(),n.YNc(6,ti,2,1,"ng-container",31),n.YNc(7,ii,2,1,"ng-container",31),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",a.referenceBuild," "),n.xp6(2),n.hij(" ",a.ensemblVersion," "),n.xp6(1),n.Q6J("ngIf",null==a.primaryCoordinates?null:a.primaryCoordinates.chromosome),n.xp6(1),n.Q6J("ngIf",a.secondaryCoordinates)}}function oi(t,i){1&t&&n._UZ(0,"cvc-empty-revisable",63)}function ri(t,i){if(1&t&&(n.TgZ(0,"nz-card",47),n.YNc(1,ei,8,5,"ng-container",20),n.YNc(2,oi,1,0,"ng-template",null,48,n.W1O),n.qZA()),2&t){const a=n.MAs(3),e=n.oxw(2).ngIf;n.xp6(1),n.Q6J("ngIf",e.referenceBuild)("ngIfElse",a)}}function _i(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-my-variant-info",65),n.BQk()),2&t){const a=i.ngIf;n.xp6(1),n.Q6J("variantInfo",a)}}function ci(t,i){1&t&&(n.TgZ(0,"nz-card",66),n._UZ(1,"cvc-empty-revisable",67),n.qZA())}function si(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,_i,2,1,"ng-container",20),n.ALo(2,"ngrxPush"),n.YNc(3,ci,2,0,"ng-template",null,64,n.W1O),n.qZA()),2&t){const a=n.MAs(4),e=n.oxw(3);n.xp6(1),n.Q6J("ngIf",n.lcZ(2,2,e.variantInfo$))("ngIfElse",a)}}function gi(t,i){1&t&&(n.TgZ(0,"nz-row",5),n.TgZ(1,"nz-col",7),n.TgZ(2,"nz-space",8),n.YNc(3,Ma,9,5,"nz-descriptions",9),n.YNc(4,ba,5,3,"nz-descriptions",10),n.YNc(5,Oa,5,4,"nz-descriptions",10),n.YNc(6,ka,5,4,"nz-descriptions",10),n.qZA(),n.qZA(),n.TgZ(7,"nz-col",11),n.TgZ(8,"nz-space",8),n.YNc(9,Xa,14,7,"nz-descriptions",12),n.YNc(10,ri,4,2,"nz-card",13),n.YNc(11,si,5,4,"span",14),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",12))}function pi(t,i){if(1&t&&n._UZ(0,"cvc-evidence-table",68),2&t){const a=n.oxw().ngIf;n.MGl("cvcTitle","",a.name," Evidence"),n.Q6J("variantId",a.id)("displayGeneAndVariant",!1)}}function li(t,i){if(1&t&&n._UZ(0,"cvc-assertions-table",69),2&t){const a=n.oxw().ngIf;n.MGl("cvcTitle","",a.name," Assertions"),n.Q6J("variantId",a.id)}}function fi(t,i){if(1&t&&(n.TgZ(0,"nz-col",7),n._UZ(1,"cvc-event-feed",70),n.qZA()),2&t){const a=n.oxw(2);n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("subscribable",a.subscribable)}}function mi(t,i){1&t&&(n.TgZ(0,"nz-space",1),n.YNc(1,gi,12,2,"nz-row",2),n.YNc(2,pi,1,3,"cvc-evidence-table",3),n.YNc(3,li,1,2,"cvc-assertions-table",4),n.TgZ(4,"nz-row",5),n.YNc(5,fi,2,2,"nz-col",6),n.qZA(),n.qZA()),2&t&&(n.xp6(4),n.Q6J("nzGutter",16))}let ui=(()=>{class t{constructor(a,e){var g;if(this.gql=a,this.route=e,null==(g=this.variantId?this.variantId:+this.route.snapshot.params.variantId))throw new Error("Must pass in a variant ID as an input or via the route.");this.queryRef=this.gql.watch({variantId:g});let J=this.queryRef.valueChanges;this.loading$=J.pipe((0,u.j)("loading"),(0,Q.O)(!0)),this.variant$=J.pipe((0,u.j)("data","variant")),this.variantInfo$=J.pipe((0,u.j)("data","variant","myVariantInfo")),this.subscribable={entityType:f.o71.Variant,id:g}}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(f.Bo4),n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-summary"]],inputs:{variantId:"variantId"},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,"variantId","displayGeneAndVariant","cvcTitle",4,"nzSpaceItem"],[3,"variantId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan",4,"nzSpaceItem"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzLayout",4,"nzSpaceItem"],["nzSpan","12"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzTitle","Representative Variant Coordinates",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],["nzSize","small","nzBordered","true",3,"nzLayout"],["nzTitle","Aliases"],["noAliases",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"nzTitle"],["noTypes",""],[3,"variantType"],["noDescriptions",""],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Allele Registry ID"],["tooltip","View on ClinGen Allele Registry",3,"href",4,"ngIf","ngIfElse"],["noAlleleRegistry",""],["nzTitle","CIViC Variant Evidence Score"],["nz-typography",""],["nzSpan","2",3,"nzTitle"],["clinvarNotApplicable",""],["noClinvarIds",""],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["nzTitle","Representative Variant Coordinates"],["noCoordinates",""],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Ref. Build"],["nzTitle","Ensembl Version"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzTitle","nzColumn",4,"ngIf"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzTitle","nzColumn"],["nzTitle","Chr.","nzColumn","1"],["nzTitle","Start","nzColumn","1"],["nzTitle","Stop","nzColumn","1"],["nzTitle","Transcript","nzColumn","5"],["tooltip","View on Ensembl",3,"href"],["nzTitle","Ref. Bases","nzColumn","1"],["nzTitle","Var. Bases","nzColumn","1"],["nzTitle","3' Coordinates","nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn",4,"ngIf"],["nzTitle","3' Coordinates","nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["notification","No coordinates specified"],["noVariantInfo",""],[3,"variantInfo"],["nzTitle","MyVariantInfo"],["notification","Not available, provide HGVS coordinates"],[3,"variantId","displayGeneAndVariant","cvcTitle"],[3,"variantId","cvcTitle"],["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,e){1&a&&(n.YNc(0,mi,6,1,"nz-space",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,e.variant$))},directives:[o.O5,v.NU,v.$1,x.SK,x.t3,$.R7,$.uj,tn.ZU,On.J,Bn.$,o.sg,En.T,Ln.j,an.l,V.bd,ya,Ia.a,ha.x,rn.o],pipes:[z.fM,en.D],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),t})(),vi=(()=>{class t{constructor(a){this.route=a,this.subscribable={id:+this.route.snapshot.params.variantId,entityType:f.o71.Variant}}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,e){1&a&&n._UZ(0,"cvc-event-feed",0),2&a&&n.Q6J("subscribable",e.subscribable)},directives:[rn.o],styles:["[_nghost-%COMP%]{display:block}"]}),t})(),xi=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,nn.t]]}),t})();const di=[{path:"",component:vn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:ui,data:{breadcrumb:"Summary"}},{path:"comments",component:Tn,data:{breadcrumb:"Comments"}},{path:"revisions",component:Jn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Cn,data:{breadcrumb:"Flags"}},{path:"events",component:vi,data:{breadcrumb:"Events"}}]}];let zi=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[l.Bz.forChild(di),Yn,dn,Qn,In,xi],l.Bz]}),t})();var Ti=r(8762),Zi=r(5750),yi=r(4609);let Ii=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,zi,z.WG,A.sL,T.PV,d.KJ,v.zf,x.Jb,Zi.Z,Ti.c,M.m,S.U,Z.D,yi.g]]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9286],{112:(W,C,r)=>{r.d(C,{u:()=>F});var o=r(5e3),Z=r(9808),z=r(325),v=r(8481),M=r(3610),S=r(4850),d=r(712),A=r(7484),T=r(3098),l=r(8664),f=r(6906),u=r(6949);function Q(_,s){if(1&_&&(o._UZ(0,"i",7),o._uU(1)),2&_){const c=o.oxw().ngIf;o.xp6(1),o.hij(" ",c.name," ")}}function p(_,s){if(1&_&&(o.TgZ(0,"span"),o._UZ(1,"cvc-variant-tag",10),o.qZA()),2&_){const c=s.$implicit;o.xp6(1),o.Q6J("variant",c.node)}}function I(_,s){if(1&_&&(o.TgZ(0,"nz-descriptions-item",8),o.YNc(1,p,2,1,"span",9),o.qZA()),2&_){const c=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",c.variants.edges)}}function y(_,s){if(1&_&&(o.TgZ(0,"span"),o._UZ(1,"cvc-source-tag",12),o.qZA()),2&_){const c=s.$implicit;o.xp6(1),o.Q6J("source",c)}}function n(_,s){if(1&_&&(o.TgZ(0,"nz-descriptions-item",11),o.YNc(1,y,2,1,"span",9),o.qZA()),2&_){const c=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",c.sources)}}function q(_,s){if(1&_&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,Q,2,1,"ng-template",null,3,o.W1O),o._uU(4),o.TgZ(5,"nz-descriptions",4),o.YNc(6,I,2,1,"nz-descriptions-item",5),o.YNc(7,n,2,1,"nz-descriptions-item",6),o.qZA(),o.qZA(),o.BQk()),2&_){const c=s.ngIf,m=o.MAs(3);o.xp6(1),o.Q6J("nzTitle",m),o.xp6(3),o.hij(" ",c.description," "),o.xp6(1),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",c.variants.edges.length>0),o.xp6(1),o.Q6J("ngIf",c.sources.length>0)}}let N=(()=>{class _{constructor(c){this.gql=c}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,S.U)(({data:c})=>c.variantGroup))}}return _.\u0275fac=function(c){return new(c||_)(o.Y36(d.Zo2))},_.\u0275cmp=o.Xpm({type:_,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(c,m){1&c&&(o.TgZ(0,"div",0),o.YNc(1,q,8,5,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&c&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,m.variantGroup$)))},directives:[Z.O5,A.bd,T.R7,T.uj,Z.sg,l.I,f.T],pipes:[u.fM],styles:["[_nghost-%COMP%]{display:block}"]}),_})();var U=r(647);function b(_,s){}function w(_,s){if(1&_&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,b,0,0,"ng-template",6),o.qZA(),o.BQk()),2&_){const c=o.oxw(),m=o.MAs(2);o.xp6(1),o.Q6J("routerLink",c.variantgroup.link),o.xp6(1),o.Q6J("ngTemplateOutlet",m)}}function P(_,s){}function Y(_,s){if(1&_&&(o.TgZ(0,"nz-tag",9),o.YNc(1,P,0,0,"ng-template",6),o.qZA()),2&_){o.oxw();const c=o.MAs(2);o.oxw();const m=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",c),o.xp6(1),o.Q6J("ngTemplateOutlet",m)}}function O(_,s){if(1&_&&o._UZ(0,"cvc-variant-group-popover",11),2&_){const c=o.oxw(3);o.Q6J("variantGroupId",c.variantgroup.id)}}function B(_,s){if(1&_&&o.YNc(0,O,1,1,"cvc-variant-group-popover",10),2&_){const c=o.oxw(2);o.Q6J("ngIf",c.enablePopover)}}function x(_,s){if(1&_&&(o.YNc(0,Y,2,3,"nz-tag",7),o.YNc(1,B,1,1,"ng-template",null,8,o.W1O)),2&_){const c=o.oxw(),m=o.MAs(4);o.Q6J("ngIf",c.enablePopover)("ngIfElse",m)}}function E(_,s){}function L(_,s){if(1&_&&(o.TgZ(0,"nz-tag"),o.YNc(1,E,0,0,"ng-template",6),o.qZA()),2&_){o.oxw();const c=o.MAs(8);o.xp6(1),o.Q6J("ngTemplateOutlet",c)}}function G(_,s){}function k(_,s){if(1&_&&o.YNc(0,G,0,0,"ng-template",6),2&_){o.oxw();const c=o.MAs(2);o.Q6J("ngTemplateOutlet",c)}}function j(_,s){if(1&_&&(o._UZ(0,"i",12),o._uU(1)),2&_){const c=o.oxw();o.xp6(1),o.hij(" ",c.variantgroup.name,"\n")}}let F=(()=>{class _{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 _.\u0275fac=function(c){return new(c||_)},_.\u0275cmp=o.Xpm({type:_,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(c,m){if(1&c&&(o.YNc(0,w,3,2,"ng-container",0),o.YNc(1,x,3,2,"ng-template",null,1,o.W1O),o.YNc(3,L,2,1,"ng-template",null,2,o.W1O),o.YNc(5,k,1,1,"ng-template",null,3,o.W1O),o.YNc(7,j,2,1,"ng-template",null,4,o.W1O)),2&c){const D=o.MAs(6);o.Q6J("ngIf",m.linked)("ngIfElse",D)}},directives:[Z.O5,z.yS,Z.tP,v.j,M.lU,N,U.Ls],styles:[""]}),_})()},7677:(W,C,r)=>{r.d(C,{G:()=>Q});var o=r(9808),Z=r(325),z=r(3610),v=r(8481),M=r(647),S=r(9779),d=r(4867),A=r(7484),T=r(3098),l=r(6949),f=r(5e3);let u=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=f.oAB({type:p}),p.\u0275inj=f.cJS({imports:[[o.ez,l.WG,A.vh,T.q6,S.s,d.Q]]}),p})(),Q=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=f.oAB({type:p}),p.\u0275inj=f.cJS({imports:[[o.ez,Z.Bz,z.$6,v.X,M.PV,u]]}),p})()},1485:(W,C,r)=>{r.r(C),r.d(C,{VariantsDetailModule:()=>Ii});var o=r(9808),Z=r(5630),z=r(6949),v=r(8144),M=r(4682),S=r(3309),d=r(1945),A=r(6042),T=r(647),l=r(325),f=r(712),u=r(373),Q=r(1059),p=r(7625),I=r(8929),y=r(591),n=r(5e3),q=r(9350),N=r(8992),U=r(3193),b=r(5623),w=r(8168),P=r(2683),Y=r(2643),O=r(9077),B=r(2233),x=r(1894),E=r(759);function L(t,i){if(1&t&&(n.TgZ(0,"span",14),n.TgZ(1,"strong"),n._uU(2),n.qZA(),n._uU(3," Parent:"),n.qZA()),2&t){const a=n.oxw(2).ngIf;n.xp6(2),n.Oqu(a.name)}}function G(t,i){if(1&t&&(n.TgZ(0,"span",15),n.TgZ(1,"a",16),n._UZ(2,"cvc-gene-tag",17),n.qZA(),n.qZA()),2&t){const a=n.oxw(2).ngIf;n.xp6(1),n.MGl("routerLink","/genes/",a.gene.id,""),n.xp6(1),n.Q6J("gene",a.gene)}}function k(t,i){1&t&&(n.TgZ(0,"nz-space",11),n.YNc(1,L,4,1,"span",12),n.YNc(2,G,3,2,"span",13),n.qZA())}function j(t,i){1&t&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function F(t,i){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,j,2,0,"span",0),n.qZA()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function _(t,i){if(1&t&&(n.TgZ(0,"nz-page-header-subtitle"),n.YNc(1,F,3,2,"span",18),n.qZA()),2&t){const a=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",a.variantAliases)}}const s=function(t){return["/variants",t,"revise"]};function c(t,i){if(1&t&&(n.TgZ(0,"button",23,24),n._uU(2," Revise "),n.qZA()),2&t){const a=n.MAs(1),e=n.oxw(4).ngIf;n.Q6J("routerLink",n.VKq(2,s,e.id))("nzType",a.isActive?"primary":"default")}}function m(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,c,3,4,"button",22),n.qZA()),2&t){const a=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",a.signedIn)}}function D(t,i){if(1&t&&(n.TgZ(0,"button",26,24),n._uU(2," Flag "),n.qZA()),2&t){const a=n.MAs(1);n.Q6J("nzType",a.isActive?"primary":"default")}}function cn(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,D,3,1,"button",25),n.qZA()),2&t){const a=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",a.signedIn)}}function sn(t,i){if(1&t&&n._UZ(0,"cvc-entity-subscription-button",28),2&t){const a=n.oxw(2).ngrxLet,e=n.oxw(3);n.Q6J("viewer",a)("subscribableId",e.subscribable.id)}}function gn(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,sn,1,2,"cvc-entity-subscription-button",27),n.qZA()),2&t){const a=n.oxw().ngrxLet,e=n.oxw(3);n.xp6(1),n.Q6J("ngIf",a.signedIn&&e.subscribable)}}function pn(t,i){1&t&&(n.TgZ(0,"nz-space",20),n.YNc(1,m,2,1,"span",21),n.YNc(2,cn,2,1,"span",21),n.YNc(3,gn,2,1,"span",21),n.qZA())}function ln(t,i){if(1&t&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,pn,4,0,"nz-space",19),n.qZA()),2&t){const a=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",a.viewer$)}}function fn(t,i){if(1&t&&(n.TgZ(0,"nz-col",29),n._UZ(1,"cvc-contributor-avatars",30),n.qZA()),2&t){const a=n.oxw(2);n.xp6(1),n.Q6J("subscribable",a.subscribable)}}const mn=function(t){return{flagged:t}};function un(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,k,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"div",3),n.ALo(5,"ngrxPush"),n.TgZ(6,"nz-page-header",4),n.TgZ(7,"nz-page-header-title",5),n._UZ(8,"i",6),n._uU(9),n.qZA(),n.YNc(10,_,2,1,"nz-page-header-subtitle",0),n.YNc(11,ln,2,1,"nz-page-header-extra",7),n.TgZ(12,"nz-page-header-content"),n.TgZ(13,"cvc-tab-navigation",8),n.ALo(14,"ngrxPush"),n.YNc(15,fn,2,1,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(17,"div",10),n._UZ(18,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=i.ngIf,e=n.MAs(3),g=n.oxw();n.xp6(1),n.Q6J("displayName",a.gene.name+" "+a.name)("relationsTpl",e),n.xp6(3),n.Q6J("flags",n.lcZ(5,8,g.flagsTotal$)),n.xp6(3),n.Q6J("ngClass",n.VKq(12,mn,a.flags.totalCount>0)),n.xp6(2),n.hij(" ",a.name," "),n.xp6(1),n.Q6J("ngIf",a.variantAliases.length>0),n.xp6(1),n.Q6J("ngrxLet",g.viewer$),n.xp6(2),n.Q6J("tabs",n.lcZ(14,10,g.tabs$))}}let vn=(()=>{class t{constructor(a,e,g){this.gql=a,this.viewerService=e,this.route=g,this.destroy$=new I.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 y.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(J=>{this.queryRef=this.gql.watch({variantId:+J.variantId});let _n=this.queryRef.valueChanges;this.loading$=_n.pipe((0,u.j)("loading"),(0,Q.O)(!0)),this.variant$=_n.pipe((0,u.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,u.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,u.j)("flags","totalCount")),this.variant$.pipe((0,u.j)("revisions","totalCount"),(0,p.R)(this.destroy$)).subscribe({next:hi=>{this.tabs$.next(this.defaultTabs.map(H=>"Revisions"===H.tabLabel?Object.assign({badgeCount:hi},H):H))}}),this.subscribable={id:+J.variantId,entityType:f.o71.Variant},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(f.iJT),n.Y36(q.a),n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["variants-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["variantRelations",""],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:variant"],[4,"ngrxLet"],[3,"tabs"],["tabBarExtraContent",""],[1,"content"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["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","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(a,e){1&a&&(n.YNc(0,un,19,14,"ng-container",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,e.variant$))},directives:[o.O5,N.I,v.NU,v.$1,l.yS,U.H,b.o,d.$O,d.u9,w.Y,o.mk,P.w,T.Ls,d.yG,o.sg,z.eJ,d.Jp,A.ix,Y.dQ,l.Od,l.rH,O.Q,d.u5,B.P,x.t3,E.N,l.lC],pipes:[z.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 xn=r(2278);let dn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,xn.l]]}),t})();var zn=r(3801);let Tn=(()=>{class t{constructor(a){this.route=a,this.commentable={id:+this.route.snapshot.params.variantId,entityType:f.OfU.Variant}}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,e){1&a&&n._UZ(0,"cvc-comment-list",0),2&a&&n.Q6J("commentable",e.commentable)},directives:[zn.D],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var Zn=r(4271),yn=r(6559),V=r(7484);let In=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,x.Jb,V.vh,v.zf,yn.H0,T.PV,Zn.M]]}),t})();var hn=r(7036);let Cn=(()=>{class t{constructor(a){this.route=a,this.flaggable={entityType:f.sfv.Variant,id:+this.route.snapshot.params.variantId}}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,e){1&a&&n._UZ(0,"cvc-flag-list-and-filter",0),2&a&&n.Q6J("flaggable",e.flaggable)},directives:[hn.L],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var An=r(2914);let Qn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,An.A]]}),t})();var Vn=r(8291);let Jn=(()=>{class t{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(e=>{this.variantId=+e.variantId,this.entityType=f.oRL.Variant})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(a,e){1&a&&n._UZ(0,"cvc-revisions-list-and-filter",0),2&a&&n.Q6J("id",e.variantId)("entityType",e.entityType)},directives:[Vn.a],styles:[""]}),t})();var Mn=r(897),Sn=r(9779),$=r(3098),qn=r(8645),X=r(3630),R=r(868),h=r(1132),K=r(9444);let Nn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,R.we,h.HQ,V.vh,X.X,x.Jb,K.s]]}),t})();var Un=r(8541),nn=r(5291),bn=r(767),wn=r(9441),tn=r(3618),Pn=r(7345);let Yn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,z.WG,v.zf,x.Jb,$.q6,V.vh,tn.ZJ,T.PV,K.s,bn.Q,wn.s,Mn.$,Pn.W,Sn.s,qn.M,X.X,Nn,Un.o,nn.t]]}),t})();var On=r(427),Bn=r(6715),En=r(6906),Ln=r(7701),an=r(6550),en=r(9714);function Gn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",19),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",a.variantInfo.clinvarId,"/"),n.xp6(1),n.hij(" ",a.variantInfo.clinvarId," ")}}function kn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",20),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?searchType=adhoc_search&type=rs&rs=",a.variantInfo.dbsnpRsid,""),n.xp6(1),n.hij(" ",a.variantInfo.dbsnpRsid," ")}}function jn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",21),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=",a.variantInfo.cosmicId,""),n.xp6(1),n.hij(" ",a.variantInfo.cosmicId," ")}}function Fn(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Dn(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Fn,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function $n(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Dn,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.snpeffSnpEffect)}}function Rn(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Hn(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Rn,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Wn(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Hn,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.snpeffSnpImpact)}}function Xn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," MyVariant.info ID: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.TgZ(7,"strong",17),n._uU(8,"ClinVar ID:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,Gn,3,2,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(11,"div",14),n.TgZ(12,"div",15),n._uU(13," dbSNP RSID: "),n.qZA(),n.TgZ(14,"div",16),n.YNc(15,kn,3,2,"ng-container",18),n.TgZ(16,"strong",17),n._uU(17,"COSMIC ID (v68):"),n.qZA(),n._uU(18,"\xa0 "),n.YNc(19,jn,3,2,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(20,"div",14),n.TgZ(21,"div",15),n._uU(22," SNPEff Effect: "),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,$n,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(25,"div",14),n.TgZ(26,"div",15),n._uU(27," SNPEff Impact: "),n.qZA(),n.TgZ(28,"div",16),n.YNc(29,Wn,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2),e=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",a.variantInfo.myVariantInfoId," "),n.xp6(4),n.Q6J("ngIf",a.variantInfo.clinvarId)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.dbsnpRsid)("ngIfElse",e),n.xp6(4),n.Q6J("ngIf",a.variantInfo.cosmicId)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.snpeffSnpEffect.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.snpeffSnpImpact.length>0)("ngIfElse",e)}}function Kn(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",19),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",a.variantInfo.clinvarId,"/"),n.xp6(1),n.hij(" ",a.variantInfo.clinvarId," ")}}function nt(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",23),n._uU(2),n.qZA(),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.MGl("href","https://omim.org/entry/",a.variantInfo.clinvarOmim.split(".")[0],""),n.xp6(1),n.hij(" ",a.variantInfo.clinvarOmim," ")}}function tt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function at(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,tt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function it(t,i){if(1&t&&(n.ynx(0),n.YNc(1,at,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarClinicalSignificance)}}function et(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function ot(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,et,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function rt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ot,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsCoding)}}function _t(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function ct(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,_t,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function st(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ct,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsGenomic)}}function gt(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function pt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,gt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function lt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,pt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsNonCoding)}}function ft(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function mt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ft,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function ut(t,i){if(1&t&&(n.ynx(0),n.YNc(1,mt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsProtein)}}function vt(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," ClinVar ID: "),n.qZA(),n.TgZ(5,"div",16),n.YNc(6,Kn,3,2,"ng-container",18),n.TgZ(7,"strong",17),n._uU(8,"OMIM:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,nt,3,2,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(11,"div",14),n.TgZ(12,"div",15),n._uU(13," ClinVar Clinical Significance: "),n.qZA(),n.TgZ(14,"div",16),n.YNc(15,it,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(16,"div",14),n.TgZ(17,"div",15),n._uU(18," HGVS Coding: "),n.qZA(),n.TgZ(19,"div",16),n.YNc(20,rt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(21,"div",14),n.TgZ(22,"div",15),n._uU(23," HGVS Genomic: "),n.qZA(),n.TgZ(24,"div",16),n.YNc(25,st,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(26,"div",14),n.TgZ(27,"div",15),n._uU(28," HGVS Non-Coding: "),n.qZA(),n.TgZ(29,"div",16),n.YNc(30,lt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(31,"div",14),n.TgZ(32,"div",15),n._uU(33," HGVS Protein: "),n.qZA(),n.TgZ(34,"div",16),n.YNc(35,ut,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2),e=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarId)("ngIfElse",e),n.xp6(4),n.Q6J("ngIf",a.variantInfo.clinvarOmim)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarClinicalSignificance.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarHgvsCoding.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarHgvsGenomic.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarHgvsNonCoding.length>0)("ngIfElse",e),n.xp6(1),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.clinvarHgvsProtein.length>0)("ngIfElse",e)}}function xt(t,i){if(1&t&&(n.TgZ(0,"cvc-link-tag",27),n._uU(1," View this variant in the gnomAD browser "),n.qZA()),2&t){const a=n.oxw(3);n.MGl("href","https://gnomad.broadinstitute.org/variant/",a.variantInfo.dbsnpRsid,"?dataset=gnomad_r2_1")}}const on=function(){return["."]};function dt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,xt,2,1,"cvc-link-tag",24),n.TgZ(2,"nz-table",25,26),n.TgZ(4,"thead"),n.TgZ(5,"tr"),n.TgZ(6,"th"),n._uU(7,"Type"),n.qZA(),n.TgZ(8,"th"),n._uU(9,"Allele Frequency"),n.qZA(),n.TgZ(10,"th"),n._uU(11,"Allele Count"),n.qZA(),n.TgZ(12,"th"),n._uU(13,"Allele Number"),n.qZA(),n.TgZ(14,"th"),n._uU(15,"Filter"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(16,"tbody"),n.TgZ(17,"tr"),n.TgZ(18,"td"),n._uU(19,"Total Exome"),n.qZA(),n.TgZ(20,"td"),n._uU(21),n.ALo(22,"ifEmpty"),n.qZA(),n.TgZ(23,"td"),n._uU(24),n.ALo(25,"ifEmpty"),n.qZA(),n.TgZ(26,"td"),n._uU(27),n.ALo(28,"ifEmpty"),n.qZA(),n.TgZ(29,"td"),n._uU(30),n.ALo(31,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(32,"tr"),n.TgZ(33,"td"),n._uU(34,"Total Genome"),n.qZA(),n.TgZ(35,"td"),n._uU(36),n.ALo(37,"ifEmpty"),n.qZA(),n.TgZ(38,"td"),n._uU(39),n.ALo(40,"ifEmpty"),n.qZA(),n.TgZ(41,"td"),n._uU(42),n.ALo(43,"ifEmpty"),n.qZA(),n.TgZ(44,"td"),n._uU(45),n.ALo(46,"ifEmpty"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2);n.xp6(1),n.Q6J("ngIf",a.variantInfo.dbsnpRsid),n.xp6(1),n.Q6J("nzData",n.DdM(36,on))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(19),n.Oqu(n.xi3(22,12,a.variantInfo.gnomadExomeAlleleFrequency,"--")),n.xp6(3),n.Oqu(n.xi3(25,15,a.variantInfo.gnomadExomeAlleleCount,"--")),n.xp6(3),n.Oqu(n.xi3(28,18,a.variantInfo.gnomadExomeAlleleNumber,"--")),n.xp6(3),n.Oqu(n.xi3(31,21,a.variantInfo.gnomadExomeFilter,"--")),n.xp6(6),n.Oqu(n.xi3(37,24,a.variantInfo.gnomadGenomeAlleleFrequency,"--")),n.xp6(3),n.Oqu(n.xi3(40,27,a.variantInfo.gnomadGenomeAlleleCount,"--")),n.xp6(3),n.Oqu(n.xi3(43,30,a.variantInfo.gnomadGenomeAlleleNumber,"--")),n.xp6(3),n.Oqu(n.xi3(46,33,a.variantInfo.gnomadGenomeFilter,"--"))}}function zt(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," Allele Count: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(8,"div",14),n.TgZ(9,"div",15),n._uU(10," Allele Number: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(14,"div",14),n.TgZ(15,"div",15),n._uU(16," Adjusted Allele Frequency: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,12,a.variantInfo.exacAlleleCount,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,15,a.variantInfo.exacAlleleNumber,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,18,a.variantInfo.exacAlleleFrequency,"--")," ")}}function Tt(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," phyloP100way: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(8,"div",14),n.TgZ(9,"div",15),n._uU(10," phyloP30way: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(14,"div",14),n.TgZ(15,"div",15),n._uU(16," phastCons100way: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(20,"div",14),n.TgZ(21,"div",15),n._uU(22," phastCons30way: "),n.qZA(),n.TgZ(23,"div",16),n._uU(24),n.ALo(25,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(26,"div",14),n.TgZ(27,"div",15),n._uU(28," GERP++: "),n.qZA(),n.TgZ(29,"div",16),n._uU(30),n.ALo(31,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(32,"div",14),n.TgZ(33,"div",15),n._uU(34," SiPhy: "),n.qZA(),n.TgZ(35,"div",16),n._uU(36),n.ALo(37,"ifEmpty"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,24,a.variantInfo.phyloP100way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,27,a.variantInfo.phyloP30way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,30,a.variantInfo.phastcons100way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(25,33,a.variantInfo.phastcons30way,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(31,36,a.variantInfo.gerp,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(37,39,a.variantInfo.siphy,"--")," ")}}function Zt(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function yt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Zt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function It(t,i){if(1&t&&(n.ynx(0),n.YNc(1,yt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.eglHgvs)}}function ht(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"div",13),n.TgZ(2,"div",14),n.TgZ(3,"div",15),n._uU(4," EGL Class: "),n.qZA(),n.TgZ(5,"div",16),n._uU(6),n.ALo(7,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(8,"div",14),n.TgZ(9,"div",15),n._uU(10," Protein Variant Name: "),n.qZA(),n.TgZ(11,"div",16),n._uU(12),n.ALo(13,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(14,"div",14),n.TgZ(15,"div",15),n._uU(16," Transcript Variant Name: "),n.qZA(),n.TgZ(17,"div",16),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(20,"div",14),n.TgZ(21,"div",15),n._uU(22," HGVS: "),n.qZA(),n.TgZ(23,"div",16),n.YNc(24,It,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2),e=n.MAs(2);n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(7,17,a.variantInfo.eglClass,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(13,20,a.variantInfo.eglProtein,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.hij(" ",n.xi3(19,23,a.variantInfo.eglTranscript,"--")," "),n.xp6(2),n.Q6J("nzGutter",8),n.xp6(1),n.Q6J("nzSpan",6),n.xp6(2),n.Q6J("nzSpan",18),n.xp6(1),n.Q6J("ngIf",a.variantInfo.eglHgvs.length>0)("ngIfElse",e)}}function Ct(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function At(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ct,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Qt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,At,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.siftPrediction)}}function Vt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Jt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Vt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Mt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Jt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.siftScore)}}function St(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function qt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,St,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Nt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,qt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HdivPrediction)}}function Ut(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function bt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ut,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function wt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,bt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HdivScore)}}function Pt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Yt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Pt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Ot(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Yt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HvarPrediction)}}function Bt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Et(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Bt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Lt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Et,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HvarScore)}}function Gt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function kt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Gt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function jt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,kt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationtasterPrediction)}}function Ft(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Dt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ft,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function $t(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Dt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationtasterScore)}}function Rt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ht(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Rt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Wt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Ht,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationassessorPrediction)}}function Xt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Kt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Xt,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function na(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Kt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationassessorScore)}}function ta(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function aa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ta,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function ia(t,i){if(1&t&&(n.ynx(0),n.YNc(1,aa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.fathmmPrediction)}}function ea(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function oa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ea,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function ra(t,i){if(1&t&&(n.ynx(0),n.YNc(1,oa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.fathmmScore)}}function _a(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ca(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,_a,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function sa(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ca,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.proveanPrediction)}}function ga(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function pa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ga,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function la(t,i){if(1&t&&(n.ynx(0),n.YNc(1,pa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.proveanScore)}}function fa(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ma(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,fa,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function ua(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ma,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.caddConsequence)}}function va(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function xa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,va,2,0,"ng-container",0),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function da(t,i){if(1&t&&(n.ynx(0),n.YNc(1,xa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.caddDetail)}}function za(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-table",25,26),n.TgZ(3,"thead"),n.TgZ(4,"tr"),n.TgZ(5,"th"),n._uU(6,"Predictor"),n.qZA(),n.TgZ(7,"th"),n._uU(8,"Prediction"),n.qZA(),n.TgZ(9,"th"),n._uU(10,"Score"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"tbody"),n.TgZ(12,"tr"),n.TgZ(13,"td"),n._uU(14,"REVEL"),n.qZA(),n.TgZ(15,"td"),n._uU(16,"N/A"),n.qZA(),n.TgZ(17,"td"),n._uU(18),n.ALo(19,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(20,"tr"),n.TgZ(21,"td"),n._uU(22,"SIFT"),n.qZA(),n.TgZ(23,"td"),n.YNc(24,Qt,2,1,"ng-container",18),n.qZA(),n.TgZ(25,"td"),n.YNc(26,Mt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(27,"tr"),n.TgZ(28,"td"),n._uU(29,"Polyphen2 HDIV"),n.qZA(),n.TgZ(30,"td"),n.YNc(31,Nt,2,1,"ng-container",18),n.qZA(),n.TgZ(32,"td"),n.YNc(33,wt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(34,"tr"),n.TgZ(35,"td"),n._uU(36,"Polyphen2 HVAR"),n.qZA(),n.TgZ(37,"td"),n.YNc(38,Ot,2,1,"ng-container",18),n.qZA(),n.TgZ(39,"td"),n.YNc(40,Lt,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(41,"tr"),n.TgZ(42,"td"),n._uU(43,"LRT"),n.qZA(),n.TgZ(44,"td"),n._uU(45),n.ALo(46,"ifEmpty"),n.qZA(),n.TgZ(47,"td"),n._uU(48),n.ALo(49,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(50,"tr"),n.TgZ(51,"td"),n._uU(52,"MutationTaster"),n.qZA(),n.TgZ(53,"td"),n.YNc(54,jt,2,1,"ng-container",18),n.qZA(),n.TgZ(55,"td"),n.YNc(56,$t,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(57,"tr"),n.TgZ(58,"td"),n._uU(59,"MutationAssessor"),n.qZA(),n.TgZ(60,"td"),n.YNc(61,Wt,2,1,"ng-container",18),n.qZA(),n.TgZ(62,"td"),n.YNc(63,na,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(64,"tr"),n.TgZ(65,"td"),n._uU(66,"FATHMM"),n.qZA(),n.TgZ(67,"td"),n.YNc(68,ia,2,1,"ng-container",18),n.qZA(),n.TgZ(69,"td"),n.YNc(70,ra,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(71,"tr"),n.TgZ(72,"td"),n._uU(73,"PROVEAN"),n.qZA(),n.TgZ(74,"td"),n.YNc(75,sa,2,1,"ng-container",18),n.qZA(),n.TgZ(76,"td"),n.YNc(77,la,2,1,"ng-container",18),n.qZA(),n.qZA(),n.TgZ(78,"tr"),n.TgZ(79,"td"),n._uU(80,"MetaSVM"),n.qZA(),n.TgZ(81,"td"),n._uU(82),n.ALo(83,"ifEmpty"),n.qZA(),n.TgZ(84,"td"),n._uU(85),n.ALo(86,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(87,"tr"),n.TgZ(88,"td"),n._uU(89,"MetaLR"),n.qZA(),n.TgZ(90,"td"),n._uU(91),n.ALo(92,"ifEmpty"),n.qZA(),n.TgZ(93,"td"),n._uU(94),n.ALo(95,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(96,"tr"),n.TgZ(97,"td"),n._uU(98,"CADD"),n.qZA(),n.TgZ(99,"td"),n._uU(100," Consequence: "),n.YNc(101,ua,2,1,"ng-container",18),n._UZ(102,"br"),n._uU(103," Consequence Detail: "),n.YNc(104,da,2,1,"ng-container",18),n.qZA(),n.TgZ(105,"td"),n._uU(106),n.ALo(107,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(108,"tr"),n.TgZ(109,"td"),n._uU(110,"FATHMM-MKL"),n.qZA(),n.TgZ(111,"td"),n._uU(112),n.ALo(113,"ifEmpty"),n.qZA(),n.TgZ(114,"td"),n._uU(115),n.ALo(116,"ifEmpty"),n.qZA(),n.qZA(),n.TgZ(117,"tr"),n.TgZ(118,"td"),n._uU(119,"fitCons"),n.qZA(),n.TgZ(120,"td"),n._uU(121,"N/A"),n.qZA(),n.TgZ(122,"td"),n._uU(123),n.ALo(124,"ifEmpty"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const a=n.oxw(2),e=n.MAs(2);n.xp6(1),n.Q6J("nzData",n.DdM(79,on))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(17),n.Oqu(n.xi3(19,46,a.variantInfo.revelScore,"--")),n.xp6(6),n.Q6J("ngIf",a.variantInfo.siftPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.siftScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.polyphen2HdivPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.polyphen2HdivScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.polyphen2HvarPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.polyphen2HvarScore.length>0)("ngIfElse",e),n.xp6(5),n.Oqu(n.xi3(46,49,a.variantInfo.lrtPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(49,52,a.variantInfo.lrtScore,"--")),n.xp6(6),n.Q6J("ngIf",a.variantInfo.mutationtasterPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.mutationtasterScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.mutationassessorPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.mutationassessorScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.fathmmPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.fathmmScore.length>0)("ngIfElse",e),n.xp6(5),n.Q6J("ngIf",a.variantInfo.proveanPrediction.length>0)("ngIfElse",e),n.xp6(2),n.Q6J("ngIf",a.variantInfo.proveanScore.length>0)("ngIfElse",e),n.xp6(5),n.Oqu(n.xi3(83,55,a.variantInfo.metasvmPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(86,58,a.variantInfo.metasvmScore,"--")),n.xp6(6),n.Oqu(n.xi3(92,61,a.variantInfo.metalrPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(95,64,a.variantInfo.metalrScore,"--")),n.xp6(7),n.Q6J("ngIf",a.variantInfo.caddConsequence.length>0)("ngIfElse",e),n.xp6(3),n.Q6J("ngIf",a.variantInfo.caddDetail.length>0)("ngIfElse",e),n.xp6(2),n.Oqu(n.xi3(107,67,a.variantInfo.caddScore,"--")),n.xp6(6),n.Oqu(n.xi3(113,70,a.variantInfo.fathmmMklPrediction,"--")),n.xp6(3),n.Oqu(n.xi3(116,73,a.variantInfo.fathmmMklScore,"--")),n.xp6(8),n.Oqu(n.xi3(124,76,a.variantInfo.fitconsScore,"--"))}}function Ta(t,i){if(1&t){const a=n.EpF();n.ynx(0),n.TgZ(1,"nz-card",2),n.TgZ(2,"nz-card-tab"),n.TgZ(3,"nz-tabset",3),n.TgZ(4,"nz-tab",4),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(0)}),n.qZA(),n.TgZ(5,"nz-tab",5),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(1)}),n.qZA(),n.TgZ(6,"nz-tab",6),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(2)}),n.qZA(),n.TgZ(7,"nz-tab",7),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(3)}),n.qZA(),n.TgZ(8,"nz-tab",8),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(4)}),n.qZA(),n.TgZ(9,"nz-tab",9),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(5)}),n.qZA(),n.TgZ(10,"nz-tab",10),n.NdJ("nzClick",function(){return n.CHM(a),n.oxw().tabIndex.next(6)}),n.qZA(),n.qZA(),n.qZA(),n.ynx(11,11),n.ALo(12,"async"),n.YNc(13,Xn,30,23,"ng-container",12),n.YNc(14,vt,36,32,"ng-container",12),n.YNc(15,dt,47,37,"ng-container",12),n.YNc(16,zt,20,21,"ng-container",12),n.YNc(17,Tt,38,42,"ng-container",12),n.YNc(18,ht,25,26,"ng-container",12),n.YNc(19,za,125,80,"ng-container",12),n.BQk(),n.qZA(),n.BQk()}if(2&t){const a=n.oxw();n.xp6(3),n.Q6J("nzAnimated",!0),n.xp6(8),n.Q6J("ngSwitch",n.lcZ(12,9,a.tabIndex)),n.xp6(2),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3),n.xp6(1),n.Q6J("ngSwitchCase",4),n.xp6(1),n.Q6J("ngSwitchCase",5),n.xp6(1),n.Q6J("ngSwitchCase",6)}}function Za(t,i){1&t&&n._uU(0,"--")}let ya=(()=>{class t{constructor(){this.tabIndex=new y.X(0)}tabChange(a){this.tabIndex.next(a)}ngOnDestroy(){this.tabIndex.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-my-variant-info"]],inputs:{variantInfo:"variantInfo"},decls:3,vars:1,consts:[[4,"ngIf"],["noValue",""],["nzTitle","MyVariantInfo"],["nzSize","small",3,"nzAnimated"],["nzTitle","Overview",3,"nzClick"],["nzTitle","ClinVar",3,"nzClick"],["nzTitle","gnomAD (2.1.1)",3,"nzClick"],["nzTitle","EXAC (0.3.1)",3,"nzClick"],["nzTitle","CADD",3,"nzClick"],["nzTitle","EGL",3,"nzClick"],["nzTitle","Effect Scores",3,"nzClick"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nz-row","",3,"nzGutter"],["nz-col","",1,"key-col",3,"nzSpan"],["nz-col","",3,"nzSpan"],[2,"margin-left","8px"],[4,"ngIf","ngIfElse"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on dbSNP",3,"href"],["tooltip","View on COSMIC",3,"href"],[4,"ngFor","ngForOf"],["tooltip","View on OMIM",3,"href"],[3,"href",4,"ngIf"],["nzSize","small",3,"nzData","nzFrontPagination","nzShowPagination"],["gnomadTable",""],[3,"href"]],template:function(a,e){1&a&&(n.YNc(0,Ta,20,11,"ng-container",0),n.YNc(1,Za,1,0,"ng-template",null,1,n.W1O)),2&a&&n.Q6J("ngIf",e.variantInfo)},directives:[o.O5,V.bd,V._i,R.xH,R.xw,o.RF,o.n9,x.SK,x.t3,an.l,o.sg,h.N8,h.Om,h.$Z,h.Uo,h._C,h.p0],pipes:[o.Ov,en.D],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]}),t})();var Ia=r(8965),ha=r(3756),rn=r(2011);function Ca(t,i){if(1&t&&(n.TgZ(0,"p",22),n._uU(1),n.qZA()),2&t){const a=n.oxw(3).ngIf;n.Q6J("nzEllipsisRows",14),n.xp6(1),n.Oqu(a.description)}}function Aa(t,i){1&t&&n._UZ(0,"cvc-empty-revisable",23)}function Qa(t,i){1&t&&n._UZ(0,"cvc-source-tag",25),2&t&&n.Q6J("source",i.$implicit)}function Va(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,Qa,1,1,"cvc-source-tag",24),n.qZA(),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",a.sources)}}function Ja(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function Ma(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",15),n.TgZ(1,"nz-descriptions-item",16),n.YNc(2,Ca,2,2,"p",17),n.YNc(3,Aa,1,0,"ng-template",null,18,n.W1O),n.qZA(),n.TgZ(5,"nz-descriptions-item",19),n.YNc(6,Va,3,1,"ng-container",20),n.YNc(7,Ja,2,0,"ng-template",null,21,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.MAs(8),g=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(2),n.Q6J("ngIf",g.description)("ngIfElse",a),n.xp6(4),n.Q6J("ngIf",g.sources.length>0)("ngIfElse",e)}}function Sa(t,i){1&t&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function qa(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Sa,2,0,"span",31),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function Na(t,i){if(1&t&&(n.ynx(0),n.YNc(1,qa,3,2,"ng-container",30),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",a.variantAliases)}}function Ua(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function ba(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",27),n.TgZ(1,"nz-descriptions-item",28),n.YNc(2,Na,2,1,"ng-container",20),n.YNc(3,Ua,2,0,"ng-template",null,29,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.oxw(2).ngIf;n.Q6J("nzLayout",e.variantAliases.length>4?"vertical":"horizontal"),n.xp6(2),n.Q6J("ngIf",e.variantAliases.length>0)("ngIfElse",a)}}function wa(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-variant-type-tag",34),n.BQk()),2&t){const a=i.$implicit;n.xp6(1),n.Q6J("variantType",a)}}function Pa(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,wa,2,1,"ng-container",30),n.qZA(),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",a.variantTypes)}}function Ya(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function Oa(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",27),n.TgZ(1,"nz-descriptions-item",32),n.YNc(2,Pa,3,1,"ng-container",20),n.YNc(3,Ya,2,0,"ng-template",null,33,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.oxw(2).ngIf;n.Q6J("nzLayout",e.variantTypes.length>2?"vertical":"horizontal"),n.xp6(1),n.Q6J("nzTitle",e.variantTypes.length>1?"Variant Types":"Variant Type"),n.xp6(1),n.Q6J("ngIf",e.variantTypes.length>0)("ngIfElse",a)}}function Ba(t,i){1&t&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function Ea(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ba,2,0,"span",31),n.BQk()),2&t){const a=i.$implicit,e=i.last;n.xp6(1),n.hij(" ",a,""),n.xp6(1),n.Q6J("ngIf",!e)}}function La(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Ea,3,2,"ng-container",30),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",a.hgvsDescriptions)}}function Ga(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function ka(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",27),n.TgZ(1,"nz-descriptions-item",32),n.YNc(2,La,2,1,"ng-container",20),n.YNc(3,Ga,2,0,"ng-template",null,35,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.oxw(2).ngIf;n.Q6J("nzLayout",e.hgvsDescriptions.length>1?"vertical":"horizontal"),n.xp6(1),n.Q6J("nzTitle",e.hgvsDescriptions.length>1?"HGVS Descriptions":"HGVS Description"),n.xp6(1),n.Q6J("ngIf",e.hgvsDescriptions.length>0)("ngIfElse",a)}}function ja(t,i){if(1&t&&(n.TgZ(0,"cvc-link-tag",45),n._uU(1),n.qZA()),2&t){const a=n.oxw(3).ngIf;n.Q6J("href","https://reg.genome.network/allele/"+a.alleleRegistryId+".html"),n.xp6(1),n.hij(" ",a.alleleRegistryId," ")}}function Fa(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None provided"),n.qZA())}function Da(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",46),n._uU(2),n.qZA(),n.BQk()),2&t){const a=i.$implicit;n.xp6(1),n.Q6J("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+a),n.xp6(1),n.hij(" ",a," ")}}function $a(t,i){if(1&t&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,Da,3,2,"ng-container",30),n.qZA()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngForOf",a.clinvarIds)}}function Ra(t,i){if(1&t&&(n.ynx(0),n.YNc(1,$a,2,1,"cvc-tag-list",20),n.BQk()),2&t){n.oxw();const a=n.MAs(11),e=n.oxw(2).ngIf;n.xp6(1),n.Q6J("ngIf","N/A"!==e.clinvarIds[0])("ngIfElse",a)}}function Ha(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"N/A"),n.qZA())}function Wa(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None provided"),n.qZA())}function Xa(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",36),n.TgZ(1,"nz-descriptions-item",37),n.YNc(2,ja,2,2,"cvc-link-tag",38),n.YNc(3,Fa,2,0,"ng-template",null,39,n.W1O),n.qZA(),n.TgZ(5,"nz-descriptions-item",40),n.TgZ(6,"span",41),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"nz-descriptions-item",42),n.YNc(9,Ra,2,2,"ng-container",20),n.YNc(10,Ha,2,0,"ng-template",null,43,n.W1O),n.YNc(12,Wa,2,0,"ng-template",null,44,n.W1O),n.qZA(),n.qZA()),2&t){const a=n.MAs(4),e=n.MAs(13),g=n.oxw(2).ngIf;n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",g.alleleRegistryId)("ngIfElse",a),n.xp6(5),n.Oqu(g.evidenceScore),n.xp6(1),n.Q6J("nzTitle",g.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),n.xp6(1),n.Q6J("ngIf",g.clinvarIds.length>0)("ngIfElse",e)}}function Ka(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-descriptions-item",59),n._uU(2),n.ALo(3,"ifEmpty"),n.qZA(),n.TgZ(4,"nz-descriptions-item",60),n._uU(5),n.ALo(6,"ifEmpty"),n.qZA(),n.BQk()),2&t){const a=n.oxw(6).ngIf;n.xp6(2),n.hij(" ",n.xi3(3,2,a.referenceBases,"--")," "),n.xp6(3),n.hij(" ",n.xi3(6,5,a.variantBases,"--")," ")}}function ni(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",53),n.TgZ(1,"nz-descriptions-item",54),n._uU(2),n.qZA(),n.TgZ(3,"nz-descriptions-item",55),n._uU(4),n.qZA(),n.TgZ(5,"nz-descriptions-item",56),n._uU(6),n.qZA(),n.YNc(7,Ka,7,8,"ng-container",31),n.TgZ(8,"nz-descriptions-item",57),n.TgZ(9,"cvc-link-tag",58),n._uU(10),n.qZA(),n.qZA(),n.qZA()),2&t){const a=i.ngIf,e=n.oxw(5).ngIf;n.s9C("nzTitle",e.secondaryCoordinates?"5' Coordinates":"Coordinates"),n.Q6J("nzColumn",5),n.xp6(2),n.hij(" ",a.chromosome," "),n.xp6(2),n.hij(" ",a.start," "),n.xp6(2),n.hij(" ",a.stop," "),n.xp6(1),n.Q6J("ngIf",!e.secondaryCoordinates),n.xp6(2),n.Q6J("href","http://www.ensembl.org/Homo_sapiens/transview?transcript="+a.representativeTranscript),n.xp6(1),n.hij(" ",a.representativeTranscript," ")}}function ti(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ni,11,8,"nz-descriptions",52),n.BQk()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngIf",a.primaryCoordinates)}}function ai(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",62),n.TgZ(1,"nz-descriptions-item",54),n._uU(2),n.qZA(),n.TgZ(3,"nz-descriptions-item",55),n._uU(4),n.qZA(),n.TgZ(5,"nz-descriptions-item",56),n._uU(6),n.qZA(),n.TgZ(7,"nz-descriptions-item",57),n.TgZ(8,"cvc-link-tag",58),n._uU(9),n.qZA(),n.qZA(),n.qZA()),2&t){const a=i.ngIf;n.Q6J("nzColumn",5),n.xp6(2),n.hij(" ",a.chromosome," "),n.xp6(2),n.hij(" ",a.start," "),n.xp6(2),n.hij(" ",a.stop," "),n.xp6(2),n.Q6J("href","http://www.ensembl.org/Homo_sapiens/transview?transcript="+a.representativeTranscript),n.xp6(1),n.hij(" ",a.representativeTranscript," ")}}function ii(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ai,10,6,"nz-descriptions",61),n.BQk()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngIf",a.secondaryCoordinates)}}function ei(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-descriptions",49),n.TgZ(2,"nz-descriptions-item",50),n._uU(3),n.qZA(),n.TgZ(4,"nz-descriptions-item",51),n._uU(5),n.qZA(),n.qZA(),n.YNc(6,ti,2,1,"ng-container",31),n.YNc(7,ii,2,1,"ng-container",31),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",a.referenceBuild," "),n.xp6(2),n.hij(" ",a.ensemblVersion," "),n.xp6(1),n.Q6J("ngIf",null==a.primaryCoordinates?null:a.primaryCoordinates.chromosome),n.xp6(1),n.Q6J("ngIf",a.secondaryCoordinates)}}function oi(t,i){1&t&&n._UZ(0,"cvc-empty-revisable",63)}function ri(t,i){if(1&t&&(n.TgZ(0,"nz-card",47),n.YNc(1,ei,8,5,"ng-container",20),n.YNc(2,oi,1,0,"ng-template",null,48,n.W1O),n.qZA()),2&t){const a=n.MAs(3),e=n.oxw(2).ngIf;n.xp6(1),n.Q6J("ngIf",e.referenceBuild)("ngIfElse",a)}}function _i(t,i){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-my-variant-info",65),n.BQk()),2&t){const a=i.ngIf;n.xp6(1),n.Q6J("variantInfo",a)}}function ci(t,i){1&t&&(n.TgZ(0,"nz-card",66),n._UZ(1,"cvc-empty-revisable",67),n.qZA())}function si(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,_i,2,1,"ng-container",20),n.ALo(2,"ngrxPush"),n.YNc(3,ci,2,0,"ng-template",null,64,n.W1O),n.qZA()),2&t){const a=n.MAs(4),e=n.oxw(3);n.xp6(1),n.Q6J("ngIf",n.lcZ(2,2,e.variantInfo$))("ngIfElse",a)}}function gi(t,i){1&t&&(n.TgZ(0,"nz-row",5),n.TgZ(1,"nz-col",7),n.TgZ(2,"nz-space",8),n.YNc(3,Ma,9,5,"nz-descriptions",9),n.YNc(4,ba,5,3,"nz-descriptions",10),n.YNc(5,Oa,5,4,"nz-descriptions",10),n.YNc(6,ka,5,4,"nz-descriptions",10),n.qZA(),n.qZA(),n.TgZ(7,"nz-col",11),n.TgZ(8,"nz-space",8),n.YNc(9,Xa,14,7,"nz-descriptions",12),n.YNc(10,ri,4,2,"nz-card",13),n.YNc(11,si,5,4,"span",14),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",12))}function pi(t,i){if(1&t&&n._UZ(0,"cvc-evidence-table",68),2&t){const a=n.oxw().ngIf;n.MGl("cvcTitle","",a.name," Evidence"),n.Q6J("variantId",a.id)("displayGeneAndVariant",!1)}}function li(t,i){if(1&t&&n._UZ(0,"cvc-assertions-table",69),2&t){const a=n.oxw().ngIf;n.MGl("cvcTitle","",a.name," Assertions"),n.Q6J("variantId",a.id)}}function fi(t,i){if(1&t&&(n.TgZ(0,"nz-col",7),n._UZ(1,"cvc-event-feed",70),n.qZA()),2&t){const a=n.oxw(2);n.Q6J("nzSpan",24),n.xp6(1),n.Q6J("subscribable",a.subscribable)}}function mi(t,i){1&t&&(n.TgZ(0,"nz-space",1),n.YNc(1,gi,12,2,"nz-row",2),n.YNc(2,pi,1,3,"cvc-evidence-table",3),n.YNc(3,li,1,2,"cvc-assertions-table",4),n.TgZ(4,"nz-row",5),n.YNc(5,fi,2,2,"nz-col",6),n.qZA(),n.qZA()),2&t&&(n.xp6(4),n.Q6J("nzGutter",16))}let ui=(()=>{class t{constructor(a,e){var g;if(this.gql=a,this.route=e,null==(g=this.variantId?this.variantId:+this.route.snapshot.params.variantId))throw new Error("Must pass in a variant ID as an input or via the route.");this.queryRef=this.gql.watch({variantId:g});let J=this.queryRef.valueChanges;this.loading$=J.pipe((0,u.j)("loading"),(0,Q.O)(!0)),this.variant$=J.pipe((0,u.j)("data","variant")),this.variantInfo$=J.pipe((0,u.j)("data","variant","myVariantInfo")),this.subscribable={entityType:f.o71.Variant,id:g}}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(f.Bo4),n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-summary"]],inputs:{variantId:"variantId"},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,"variantId","displayGeneAndVariant","cvcTitle",4,"nzSpaceItem"],[3,"variantId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan",4,"nzSpaceItem"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzLayout",4,"nzSpaceItem"],["nzSpan","12"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzTitle","Representative Variant Coordinates",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["noDescription",""],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["noSources",""],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],["nzSize","small","nzBordered","true",3,"nzLayout"],["nzTitle","Aliases"],["noAliases",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"nzTitle"],["noTypes",""],[3,"variantType"],["noDescriptions",""],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Allele Registry ID"],["tooltip","View on ClinGen Allele Registry",3,"href",4,"ngIf","ngIfElse"],["noAlleleRegistry",""],["nzTitle","CIViC Variant Evidence Score"],["nz-typography",""],["nzSpan","2",3,"nzTitle"],["clinvarNotApplicable",""],["noClinvarIds",""],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["nzTitle","Representative Variant Coordinates"],["noCoordinates",""],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Ref. Build"],["nzTitle","Ensembl Version"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzTitle","nzColumn",4,"ngIf"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzTitle","nzColumn"],["nzTitle","Chr.","nzColumn","1"],["nzTitle","Start","nzColumn","1"],["nzTitle","Stop","nzColumn","1"],["nzTitle","Transcript","nzColumn","5"],["tooltip","View on Ensembl",3,"href"],["nzTitle","Ref. Bases","nzColumn","1"],["nzTitle","Var. Bases","nzColumn","1"],["nzTitle","3' Coordinates","nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn",4,"ngIf"],["nzTitle","3' Coordinates","nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["notification","No coordinates specified"],["noVariantInfo",""],[3,"variantInfo"],["nzTitle","MyVariantInfo"],["notification","Not available, provide HGVS coordinates"],[3,"variantId","displayGeneAndVariant","cvcTitle"],[3,"variantId","cvcTitle"],["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,e){1&a&&(n.YNc(0,mi,6,1,"nz-space",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,e.variant$))},directives:[o.O5,v.NU,v.$1,x.SK,x.t3,$.R7,$.uj,tn.ZU,On.J,Bn.$,o.sg,En.T,Ln.j,an.l,V.bd,ya,Ia.a,ha.x,rn.o],pipes:[z.fM,en.D],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),t})(),vi=(()=>{class t{constructor(a){this.route=a,this.subscribable={id:+this.route.snapshot.params.variantId,entityType:f.o71.Variant}}}return t.\u0275fac=function(a){return new(a||t)(n.Y36(l.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-variants-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,e){1&a&&n._UZ(0,"cvc-event-feed",0),2&a&&n.Q6J("subscribable",e.subscribable)},directives:[rn.o],styles:["[_nghost-%COMP%]{display:block}"]}),t})(),xi=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,nn.t]]}),t})();const di=[{path:"",component:vn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:ui,data:{breadcrumb:"Summary"}},{path:"comments",component:Tn,data:{breadcrumb:"Comments"}},{path:"revisions",component:Jn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Cn,data:{breadcrumb:"Flags"}},{path:"events",component:vi,data:{breadcrumb:"Events"}}]}];let zi=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[l.Bz.forChild(di),Yn,dn,Qn,In,xi],l.Bz]}),t})();var Ti=r(8762),Zi=r(5750),yi=r(4609);let Ii=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,zi,z.WG,A.sL,T.PV,d.KJ,v.zf,x.Jb,Zi.Z,Ti.c,M.m,S.U,Z.D,yi.g]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/9484.e48ad84613f06f22.js b/server/public/9484.e48ad84613f06f22.js new file mode 100644 index 000000000..b3aa7de6f --- /dev/null +++ b/server/public/9484.e48ad84613f06f22.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9484],{7946:(F,Z,o)=>{o.d(Z,{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,Z,o)=>{o.d(Z,{O:()=>Qn});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),I=o(4182),N=o(2166),Y=o(647),V=o(2683),L=o(404),$=o(125),D=o(6906),B=o(3193),R=o(8664),W=o(4022),O=o(6042),Q=o(2643),j=o(325),w=o(3610),P=o(7625),H=o(6123),z=o(8144),b=o(2359),E=o(822),G=o(1047),K=o(7525),X=o(9180),q=o(8227),k=o(1793);function i(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 l(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 c(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 v(a,g){1&a&&n._UZ(0,"nz-option",13)}function U(a,g){1&a&&n._UZ(0,"nz-option",14)}function nn(a,g){1&a&&n._UZ(0,"nz-option",15)}function tn(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,v,1,0,"nz-option",10),n.YNc(2,U,1,0,"nz-option",11),n.YNc(3,nn,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 en(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 on=(()=>{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 H.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,i,1,0,"nz-alert",1),n.YNc(3,l,1,1,"cvc-form-errors-alert",2),n.YNc(4,c,1,1,"textarea",3),n.YNc(5,tn,4,4,"nz-select",4),n.YNc(6,en,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,G.Zp,I.Fj,I.JJ,I.On,d.Vq,I.Q7,d.Ip,K.W,X.Z,q.q,O.ix,Q.dQ,k.m,V.w],styles:[""],encapsulation:2}),a})();var an=o(3618);function rn(a,g){1&a&&(n.TgZ(0,"th",25),n._uU(1," Actions "),n.qZA())}function cn(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 sn(a,g){1&a&&n._UZ(0,"th")}function gn(a,g){if(1&a&&n._UZ(0,"i",35),2&a){const e=n.oxw().$implicit;n.Q6J("nzTooltipTitle",e.reason)}}function ln(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 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.displayType," ")}}function pn(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 dn(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 _n(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 mn(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 vn(a,g){if(1&a&&n._UZ(0,"cvc-disease-tag",40),2&a){const e=n.oxw().$implicit;n.Q6J("disease",e.disease)}}const Cn=function(a,g,e,s){return{geneId:a,sourceId:g,variantId:e,diseaseId:s}};function fn(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("queryParams",n.l5B(3,Cn,null==e.gene?null:e.gene.id,null==e.source?null:e.source.id,null==e.variant?null:e.variant.id,null==e.disease?null:e.disease.id))("disabled",e.status!=r.status.New),n.xp6(2),n.Q6J("nzPopoverContent",s)}}function zn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._uU(2),n.ALo(3,"lowercase"),n.YNc(4,gn,1,1,"i",27),n.qZA(),n.TgZ(5,"td"),n.YNc(6,ln,1,1,"cvc-user-tag",28),n.qZA(),n.TgZ(7,"td"),n.YNc(8,un,2,1,"ng-container",22),n.qZA(),n.TgZ(9,"td"),n.YNc(10,pn,2,1,"ng-container",22),n.qZA(),n.TgZ(11,"td"),n.YNc(12,dn,1,1,"cvc-source-tag",29),n.qZA(),n.TgZ(13,"td"),n.YNc(14,_n,1,1,"cvc-gene-tag",30),n.qZA(),n.TgZ(15,"td"),n.YNc(16,mn,1,1,"cvc-variant-tag",31),n.qZA(),n.TgZ(17,"td"),n.YNc(18,vn,1,1,"cvc-disease-tag",32),n.qZA(),n.TgZ(19,"td",33),n._UZ(20,"i",34),n.qZA(),n.YNc(21,fn,6,8,"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 Tn(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 xn(a,g){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td",45),n.YNc(2,Tn,2,1,"button",46),n.qZA(),n.qZA()),2&a){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function hn(a,g){if(1&a&&(n.ynx(0),n.YNc(1,xn,3,1,"tr",22),n.BQk()),2&a){const e=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function Sn(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 In(a,g){if(1&a&&n.YNc(0,Sn,1,2,"cvc-update-source-suggestion-form",48),2&a){const e=n.oxw(2);n.Q6J("ngIf",e.selectedSourceId&&e.selectedStatus)}}function Zn(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,rn,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,cn,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,sn,1,0,"th",22),n.qZA(),n.qZA(),n.TgZ(50,"tbody"),n.YNc(51,zn,22,13,"tr",23),n.YNc(52,hn,2,1,"ng-container",1),n.qZA(),n.qZA(),n.YNc(53,In,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 Mn(a,g){}function An(a,g){if(1&a&&(n.ynx(0),n.YNc(1,Mn,0,0,"ng-template",53),n.BQk()),2&a){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function yn(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 Jn(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 Un(a,g){1&a&&(n.TgZ(0,"span",54),n._uU(1," (0 total) "),n.qZA())}function Nn(a,g){if(1&a&&(n._UZ(0,"i",50),n.YNc(1,An,2,1,"ng-container",22),n.YNc(2,yn,2,1,"ng-container",22),n.YNc(3,Jn,2,3,"span",51),n.ALo(4,"ngrxPush"),n.YNc(5,Un,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 Qn=(()=>{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"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small","nz-tooltip","","nzTooltipTitle","Curate an Evidence Item from this Source Suggestion",3,"queryParams","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,Zn,55,39,"ng-container",1),n.qZA(),n.YNc(2,Nn,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,I.JJ,I.On,d.Ip,N.p,u.p0,x.sg,Y.Ls,V.w,L.SY,$.I,D.T,B.H,R.I,W.n,u.UX,O.fY,O.ix,Q.dQ,j.rH,w.lU,on,x.tP,an.ZU],pipes:[S.fM,x.i8],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})()},2832:(F,Z,o)=>{o.d(Z,{W:()=>H});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),I=o(8776),N=o(7484),Y=o(4546),V=o(1825),L=o(4375),$=o(868),D=o(7525),B=o(2359),R=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,B.L,R.o7,m.LV,O.zf,T.u5,I.X0,x.B,V.A,L.R,W.w]]}),z})();var w=o(3618),P=o(325);let H=(()=>{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,P.Bz,A.WG,t.HQ,m.LV,u.cg,M.PV,S.sL,d.$6,w.ZJ,N.vh,C.k,J.W,y.s,n.U,f.Q,h.Q,x.B,j]]}),z})()},7677:(F,Z,o)=>{o.d(Z,{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,Z,o)=>{o.d(Z,{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 I(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 B(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 R(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,I,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,B,4,2,"a",12),t.YNc(16,R,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 w(i,l){}function P(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,w,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 H(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 z(i,l){if(1&i&&t.YNc(0,H,1,1,"cvc-variant-popover",10),2&i){const c=t.oxw(2);t.Q6J("ngIf",c.enablePopover)}}function b(i,l){if(1&i&&(t.YNc(0,P,2,4,"nz-tag",7),t.YNc(1,z,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 E(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,E,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,b,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,Z,o)=>{o.d(Z,{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,Z,o)=>{o.d(Z,{_:()=>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 deleted file mode 100644 index a2e58b7fc..000000000 --- a/server/public/9484.eba4a2cb1d41b5d4.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),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.fb2df4966b3986b1.js b/server/public/9636.90e794638acf3e95.js similarity index 99% rename from server/public/9636.fb2df4966b3986b1.js rename to server/public/9636.90e794638acf3e95.js index 463725f88..dd3f0df68 100644 --- a/server/public/9636.fb2df4966b3986b1.js +++ b/server/public/9636.90e794638acf3e95.js @@ -1 +1 @@ -"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 +"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(5291);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/9716.5e244a9bae2799f5.js b/server/public/9716.5e244a9bae2799f5.js new file mode 100644 index 000000000..3eda8961f --- /dev/null +++ b/server/public/9716.5e244a9bae2799f5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9716],{3172:(Z,h,t)=>{t.d(h,{T:()=>B});var e=t(9808),l=t(3610),C=t(6949),u=t(7345),O=t(8369),r=t(209),c=t(4867),_=t(8625),A=t(7484),z=t(1894),f=t(3309),y=t(7026),g=t(9401),E=t(9779),p=t(5e3);let x=(()=>{class T{}return T.\u0275fac=function(P){return new(P||T)},T.\u0275mod=p.oAB({type:T}),T.\u0275inj=p.cJS({imports:[[e.ez,C.WG,A.vh,z.Jb,f.U,u.W,O.W,r.i,r.i,c.Q,g.y,E.s,_.$L.forChild({formatter:{useClass:y.x,provide:_.KP}})]]}),T})();var I=t(8481),L=t(647),U=t(9444),j=t(325);let B=(()=>{class T{}return T.\u0275fac=function(P){return new(P||T)},T.\u0275mod=p.oAB({type:T}),T.\u0275inj=p.cJS({imports:[[e.ez,U.s,j.Bz,l.$6,L.PV,x,I.X]]}),T})()},3212:(Z,h,t)=>{t.d(h,{E:()=>P});var e=t(9808),l=t(647),C=t(7345),u=t(3618),O=t(9444),r=t(3172),c=t(9445),_=t(3309),A=t(8369),z=t(209),f=t(4867),y=t(9476),g=t(404),E=t(8625),p=t(1894),x=t(9401),I=t(6042),L=t(9779),U=t(7026),j=t(7677),B=t(8481),T=t(325),D=t(5e3);let P=(()=>{class R{}return R.\u0275fac=function(N){return new(N||R)},R.\u0275mod=D.oAB({type:R}),R.\u0275inj=D.cJS({imports:[[e.ez,I.sL,l.PV,B.X,g.cg,u.ZJ,p.Jb,T.Bz,E.$L.forChild({formatter:{useClass:U.x,provide:E.KP}}),x.y,C.W,O.s,r.T,c.O,_.U,A.W,z.i,f.Q,y.L,L.s,j.G]]}),R})()},2347:(Z,h,t)=>{t.d(h,{t:()=>he});var e=t(5e3),l=t(9808),C=t(1894),u=t(125),O=t(3618),r=t(9297),c=t(325),_=t(8481),A=t(3610),z=t(373),f=t(712),y=t(7484),g=t(3193),E=t(2826),p=t(9001),x=t(8664),I=t(6906),L=t(6949),U=t(8625);function j(n,s){if(1&n&&e._UZ(0,"cvc-gene-tag",17),2&n){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",o.commentable)}}function B(n,s){if(1&n&&e._UZ(0,"cvc-assertion-tag",18),2&n){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",o.commentable)}}function T(n,s){if(1&n&&e._UZ(0,"cvc-evidence-tag",19),2&n){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",o.commentable)}}function D(n,s){if(1&n&&e._UZ(0,"cvc-variant-tag",20),2&n){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",o.commentable)}}function P(n,s){if(1&n&&e._UZ(0,"cvc-revision-tag",21),2&n){const o=e.oxw(2).ngIf;e.Q6J("revision",o.commentable)}}function R(n,s){if(1&n&&e._UZ(0,"cvc-source-tag",22),2&n){const o=e.oxw(2).ngIf;e.Q6J("source",o.commentable)}}function Q(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const o=e.oxw(2).ngIf;e.xp6(1),e.Oqu(o.commentable.name)}}function N(n,s){if(1&n&&(e.TgZ(0,"span",7),e._UZ(1,"cvc-user-tag",8),e._uU(2,"commented on "),e.ynx(3,9),e.YNc(4,j,1,2,"cvc-gene-tag",10),e.YNc(5,B,1,2,"cvc-assertion-tag",11),e.YNc(6,T,1,2,"cvc-evidence-tag",12),e.YNc(7,D,1,2,"cvc-variant-tag",13),e.YNc(8,P,1,1,"cvc-revision-tag",14),e.YNc(9,R,1,1,"cvc-source-tag",15),e.YNc(10,Q,2,1,"span",16),e.BQk(),e._uU(11),e.ALo(12,"timeago"),e.qZA()),2&n){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(n,s){if(1&n&&(e.TgZ(0,"p",23),e.TgZ(1,"b"),e._uU(2),e.qZA(),e.qZA()),2&n){const o=e.oxw().ngIf;e.xp6(2),e.Oqu(o.title)}}function w(n,s){if(1&n&&(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,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&n){const o=s.ngIf,d=e.MAs(3);e.xp6(1),e.Q6J("nzTitle",d),e.xp6(6),e.Q6J("ngIf",o.title),e.xp6(2),e.hij(" ",o.comment," ")}}let W=(()=>{class n{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,z.j)("data","comment"))}}return n.\u0275fac=function(o){return new(o||n)(e.Y36(f.Kk))},n.\u0275cmp=e.Xpm({type:n,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,d){1&o&&(e.TgZ(0,"div",0),e.YNc(1,w,10,3,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,d.comment$)))},directives:[l.O5,y.bd,u.I,l.RF,l.n9,g.H,E.w,p.O,x.I,r.p,I.T,l.ED,C.SK,C.t3],pipes:[L.fM,U.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}"]}),n})();var F=t(647);function K(n,s){}function Y(n,s){}function b(n,s){if(1&n&&(e.TgZ(0,"nz-tag",7),e.YNc(1,Y,0,0,"ng-template",1),e.qZA()),2&n){e.oxw();const o=e.MAs(2);e.oxw();const d=e.MAs(7);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",o),e.xp6(1),e.Q6J("ngTemplateOutlet",d)}}function i(n,s){if(1&n&&e._UZ(0,"cvc-comment-popover",8),2&n){const o=e.oxw(2);e.Q6J("commentId",o.comment.id)}}function m(n,s){if(1&n&&(e.YNc(0,b,2,3,"nz-tag",5),e.YNc(1,i,1,1,"ng-template",null,6,e.W1O)),2&n){const o=e.oxw(),d=e.MAs(5);e.Q6J("ngIf",o.enablePopover)("ngIfElse",d)}}function a(n,s){}function v(n,s){if(1&n&&(e.TgZ(0,"nz-tag"),e.YNc(1,a,0,0,"ng-template",1),e.qZA()),2&n){e.oxw();const o=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",o)}}function M(n,s){if(1&n&&(e._UZ(0,"i",9),e._uU(1)),2&n){const o=e.oxw();e.xp6(1),e.hij(" ",o.comment.name,"\n")}}let S=(()=>{class n{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=e.Xpm({type:n,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,d){if(1&o&&(e.TgZ(0,"a",0),e.YNc(1,K,0,0,"ng-template",1),e.qZA(),e.YNc(2,m,3,2,"ng-template",null,2,e.W1O),e.YNc(4,v,2,1,"ng-template",null,3,e.W1O),e.YNc(6,M,2,1,"ng-template",null,4,e.W1O)),2&o){const $=e.MAs(3);e.Q6J("routerLink",d.comment.link),e.xp6(1),e.Q6J("ngTemplateOutlet",$)}},directives:[c.yS,l.tP,l.O5,_.j,A.lU,W,F.Ls],styles:[""]}),n})(),V=(()=>{class n{constructor(){}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=e.Xpm({type:n,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,d){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",d.flag.link),e.xp6(3),e.hij(" ",d.flag.name," "))},directives:[c.yS,_.j,F.Ls],styles:[""]}),n})();var X=t(112),G=t(5749),H=t(404),k=t(2937);let q=(()=>{class n{transform(o){switch(o){case f.AO2.Commented:case f.AO2.RevisionSuggested:case f.AO2.RevisionAccepted:case f.AO2.RevisionRejected:case f.AO2.RevisionSuperseded:return"to";case f.AO2.Flagged:case f.AO2.FlagResolved:return"on";case f.AO2.PublicationSuggested:case f.AO2.CuratedSourceSuggestion:case f.AO2.RejectedSourceSuggestion:case f.AO2.RequeuedSourceSuggestion:return"";default:throw new Error("Not handling all event action types yet "+o)}}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275pipe=e.Yjl({name:"prepositionForSubject",type:n,pure:!0}),n})();function ee(n,s){if(1&n&&e._UZ(0,"cvc-user-tag",10),2&n){const o=e.oxw(2);e.Q6J("user",o.event.originatingUser)}}function ne(n,s){if(1&n&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&n){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function te(n,s){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-revision-tag",13),e.YNc(2,ne,3,3,"span",14),e.qZA()),2&n){const o=e.oxw().ngIf,d=e.oxw(2);e.xp6(1),e.Q6J("revision",o)("subject",d.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=d.tagDisplay)}}function oe(n,s){if(1&n&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&n){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ie(n,s){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-comment-tag",15),e.YNc(2,oe,3,3,"span",14),e.qZA()),2&n){const o=e.oxw().ngIf,d=e.oxw(2);e.xp6(1),e.Q6J("comment",o)("subject",d.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=d.tagDisplay)}}function ae(n,s){if(1&n&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&n){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function ce(n,s){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-flag-tag",16),e.YNc(2,ae,3,3,"span",14),e.qZA()),2&n){const o=e.oxw().ngIf,d=e.oxw(2);e.xp6(1),e.Q6J("flag",o)("subject",d.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=d.tagDisplay)}}function se(n,s){if(1&n&&(e.TgZ(0,"span",5),e._uU(1),e.ALo(2,"prepositionForSubject"),e.qZA()),2&n){const o=e.oxw(4);e.xp6(1),e.hij("",e.lcZ(2,1,o.event.action),"\xa0")}}function re(n,s){if(1&n&&(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&n){const o=e.oxw().ngIf,d=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"!=d.tagDisplay)}}function _e(n,s){if(1&n&&(e.ynx(0),e.ynx(1,11),e.YNc(2,te,3,3,"span",12),e.YNc(3,ie,3,3,"span",12),e.YNc(4,ce,3,3,"span",12),e.YNc(5,re,4,3,"span",12),e.BQk(),e.BQk()),2&n){const o=s.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 me(n,s){if(1&n&&e._UZ(0,"cvc-gene-tag",26),2&n){const o=e.oxw().ngIf;e.Q6J("gene",o)}}function ge(n,s){if(1&n&&e._UZ(0,"cvc-assertion-tag",27),2&n){const o=e.oxw().ngIf;e.Q6J("assertion",o)}}function le(n,s){if(1&n&&e._UZ(0,"cvc-evidence-tag",28),2&n){const o=e.oxw().ngIf;e.Q6J("evidence",o)}}function pe(n,s){if(1&n&&e._UZ(0,"cvc-variant-tag",29),2&n){const o=e.oxw().ngIf;e.Q6J("variant",o)}}function ve(n,s){if(1&n&&e._UZ(0,"cvc-revision-tag",30),2&n){const o=e.oxw().ngIf;e.Q6J("revision",o)}}function ue(n,s){if(1&n&&e._UZ(0,"cvc-variant-group-tag",31),2&n){const o=e.oxw().ngIf;e.Q6J("variantgroup",o)}}function de(n,s){if(1&n&&e._UZ(0,"cvc-source-tag",32),2&n){const o=e.oxw().ngIf;e.Q6J("source",o)}}function Ce(n,s){if(1&n&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&n){const o=e.oxw().ngIf;e.xp6(1),e.Oqu(o.name)}}function fe(n,s){1&n&&(e.ynx(0,11),e.YNc(1,me,1,1,"cvc-gene-tag",18),e.YNc(2,ge,1,1,"cvc-assertion-tag",19),e.YNc(3,le,1,1,"cvc-evidence-tag",20),e.YNc(4,pe,1,1,"cvc-variant-tag",21),e.YNc(5,ve,1,1,"cvc-revision-tag",22),e.YNc(6,ue,1,1,"cvc-variant-group-tag",23),e.YNc(7,de,1,1,"cvc-source-tag",24),e.YNc(8,Ce,2,1,"span",25),e.BQk()),2&n&&(e.Q6J("ngSwitch",s.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 Te(n,s){if(1&n&&(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&n){const o=s.ngIf;e.xp6(3),e.Q6J("org",o)}}function Oe(n,s){if(1&n&&(e.TgZ(0,"nz-row",2),e.TgZ(1,"nz-col",3),e.YNc(2,ee,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,fe,9,8,"ng-container",7),e.YNc(8,Te,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&n){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 Ee(n,s){1&n&&e._uU(0," Event database entry is malformed and cannot be displayed\n")}let he=(()=>{class n{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=e.Xpm({type:n,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,d){if(1&o&&(e.YNc(0,Oe,14,14,"nz-row",0),e.YNc(1,Ee,1,0,"ng-template",null,1,e.W1O)),2&o){const $=e.MAs(2);e.Q6J("ngIf",d.event.originatingObject)("ngIfElse",$)}},directives:[l.O5,C.SK,C.t3,u.I,O.ZU,l.RF,l.n9,r.p,S,V,_.j,c.rH,g.H,E.w,p.O,x.I,X.u,I.T,l.ED,G.m,H.SY],pipes:[k.R,q,l.uU,U.wr],styles:[""]}),n})()},3227:(Z,h,t)=>{t.d(h,{r:()=>y});var e=t(5e3),l=t(9808),C=t(2712),u=t(2683),O=t(647),r=t(2347),c=t(712);let _=(()=>{class g{transform(p){switch(p){case c.AO2.Commented:return"civic-comment";case c.AO2.RevisionSuggested:case c.AO2.RevisionAccepted:case c.AO2.RevisionRejected:case c.AO2.RevisionSuperseded:return"civic-revision";case c.AO2.Flagged:case c.AO2.FlagResolved:return"civic-flag";case c.AO2.AssertionSubmitted:case c.AO2.AssertionAccepted:case c.AO2.AssertionRejected:return"civic-assertion";case c.AO2.Submitted:case c.AO2.Accepted:case c.AO2.Rejected:return"civic-evidence";case c.AO2.PublicationSuggested:case c.AO2.CuratedSourceSuggestion:case c.AO2.RejectedSourceSuggestion:case c.AO2.RequeuedSourceSuggestion:return"file-add";case c.AO2.Reverted:return"civic-evidence";case c.AO2.AssertionReverted:return"civic-assertion";default:throw new Error("Not handling all event action types yet"+p)}}}return g.\u0275fac=function(p){return new(p||g)},g.\u0275pipe=e.Yjl({name:"iconNameForEventAction",type:g,pure:!0}),g})();function A(g,E){if(1&g&&(e._UZ(0,"i",5),e.ALo(1,"iconNameForEventAction")),2&g){const p=e.oxw().$implicit;e.Q6J("nzType",e.lcZ(1,1,p.action))}}function z(g,E){if(1&g&&(e.ynx(0),e.TgZ(1,"nz-timeline-item",2),e.YNc(2,A,2,3,"ng-template",null,3,e.W1O),e._UZ(4,"cvc-event-timeline-item",4),e.qZA(),e.BQk()),2&g){const p=E.$implicit,x=e.MAs(3),I=e.oxw(2);e.xp6(1),e.Q6J("nzDot",x),e.xp6(3),e.Q6J("event",p)("tagDisplay",I.tagDisplay)}}function f(g,E){if(1&g&&(e.TgZ(0,"nz-timeline"),e.YNc(1,z,5,3,"ng-container",1),e.qZA()),2&g){const p=e.oxw();e.xp6(1),e.Q6J("ngForOf",p.events)}}let y=(()=>{class g{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}}return g.\u0275fac=function(p){return new(p||g)},g.\u0275cmp=e.Xpm({type:g,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(p,x){1&p&&e.YNc(0,f,2,1,"nz-timeline",0),2&p&&e.Q6J("ngIf",null==x.events?null:x.events.length)},directives:[l.O5,C.PD,l.sg,C.Zv,u.w,O.Ls,r.t],pipes:[_],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%}"]}),g})()},3884:(Z,h,t)=>{t.d(h,{m:()=>D});var e=t(9808),l=t(647),C=t(7345),u=t(3618),O=t(9444),r=t(3172),c=t(9445),_=t(3309),A=t(8369),z=t(209),f=t(4867),y=t(9476),g=t(404),E=t(8625),p=t(2712),x=t(1894),I=t(9401),L=t(6042),U=t(9779),j=t(3212),B=t(7026),T=t(5e3);let D=(()=>{class P{}return P.\u0275fac=function(Q){return new(Q||P)},P.\u0275mod=T.oAB({type:P}),P.\u0275inj=T.cJS({imports:[[e.ez,L.sL,l.PV,g.cg,u.ZJ,p.FT,x.Jb,E.$L.forChild({formatter:{useClass:B.x,provide:E.KP}}),I.y,C.W,O.s,r.T,c.O,_.U,A.W,z.i,f.Q,y.L,U.s,j.E]]}),P})()},9445:(Z,h,t)=>{t.d(h,{O:()=>c});var e=t(9808),l=t(8481),C=t(647),u=t(325),O=t(9444),r=t(5e3);let c=(()=>{class _{}return _.\u0275fac=function(z){return new(z||_)},_.\u0275mod=r.oAB({type:_}),_.\u0275inj=r.cJS({imports:[[e.ez,u.Bz,l.X,C.PV,O.s]]}),_})()},9297:(Z,h,t)=>{t.d(h,{p:()=>O});var e=t(5e3),l=t(325),C=t(8481),u=t(647);let O=(()=>{class r{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return r.\u0275fac=function(_){return new(_||r)},r.\u0275cmp=e.Xpm({type:r,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(_,A){1&_&&(e.TgZ(0,"a",0),e.TgZ(1,"nz-tag"),e._UZ(2,"i",1),e._uU(3),e.qZA(),e.qZA()),2&_&&(e.Q6J("routerLink",A.revision.link),e.xp6(3),e.hij(" ",A.revision.name," "))},directives:[l.yS,C.j,u.Ls],styles:[""]}),r})()},1150:(Z,h,t)=>{t.d(h,{N:()=>c});var e=t(9808),l=t(7484),C=t(3762),u=t(647),O=t(6042),r=t(5e3);let c=(()=>{class _{}return _.\u0275fac=function(z){return new(z||_)},_.\u0275mod=r.oAB({type:_}),_.\u0275inj=r.cJS({imports:[[e.ez,l.vh,C.Ph,u.PV,O.sL]]}),_})()},2937:(Z,h,t)=>{t.d(h,{R:()=>C});var e=t(712),l=t(5e3);let C=(()=>{class u{transform(r,c="contributor-card",_=0){return"contributor-card"===c?this.contributorVerbiage(r,_):"action-filter"===c?this.actionFilterVerbiage(r):this.eventFeedVerbiage(r)}eventFeedVerbiage(r){switch(r){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(r){switch(r){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(r,c){switch(r){case e.AO2.Commented:return 1==c?"left a comment on this entity":`left ${c} comments on this entity`;case e.AO2.RevisionSuggested:return 1==c?"suggested a revision to this entity":`suggested ${c} revisions on this entity`;case e.AO2.RevisionAccepted:return 1==c?"accepted a revision to this entity":`accepted ${c} revisions on this entity`;case e.AO2.RevisionRejected:return 1==c?"rejected a revision to this entity":`rejected ${c} revisions on this entity`;case e.AO2.RevisionSuperseded:return 1==c?"accepted a superseding revision to this entity":`accepted ${c} superseding revisions on this entity`;case e.AO2.Flagged:return 1==c?"opened new flag on this entity":`opened ${c} new flags on this entity`;case e.AO2.FlagResolved:return 1==c?"resolved a flag on this entity":`resolved ${c} 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 u.\u0275fac=function(r){return new(r||u)},u.\u0275pipe=l.Yjl({name:"eventVerbiage",type:u,pure:!0}),u})()},2712:(Z,h,t)=>{t.d(h,{PD:()=>F,Zv:()=>W,FT:()=>b});var e=t(5e3),l=t(839),C=t(8929),u=t(9808),O=t(969),r=t(7625),c=t(226),_=t(647),A=t(925);const z=["template"];function f(i,m){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(3);e.xp6(1),e.Oqu(a.nzLabel)}}function y(i,m){if(1&i&&(e.TgZ(0,"div",7),e.YNc(1,f,2,1,"ng-container",5),e.qZA()),2&i){const a=e.oxw(2);e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzLabel)}}function g(i,m){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzDot)}}function E(i,m){if(1&i&&(e.TgZ(0,"li",1),e.YNc(1,y,2,1,"div",2),e._UZ(2,"div",3),e.TgZ(3,"div",4),e.YNc(4,g,2,1,"ng-container",5),e.qZA(),e.TgZ(5,"div",6),e.Hsn(6),e.qZA(),e.qZA()),2&i){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 p=["*"];function x(i,m){if(1&i&&e.GkF(0,4),2&i){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function I(i,m){}function L(i,m){if(1&i&&(e.ynx(0),e.YNc(1,I,0,0,"ng-template",4),e.BQk()),2&i){const a=m.$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",a.template)}}function U(i,m){if(1&i&&e.GkF(0,4),2&i){e.oxw();const a=e.MAs(5);e.Q6J("ngTemplateOutlet",a)}}function j(i,m){1&i&&e._UZ(0,"i",12)}function B(i,m){if(1&i&&(e.ynx(0),e._uU(1),e.YNc(2,j,1,0,"i",11),e.BQk()),2&i){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.nzPendingDot," "),e.xp6(1),e.Q6J("ngIf",!a.nzPendingDot)}}function T(i,m){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(3);e.xp6(1),e.hij(" ",a.isPendingBoolean?"":a.nzPending," ")}}function D(i,m){if(1&i&&(e.TgZ(0,"li",6),e._UZ(1,"div",7),e.TgZ(2,"div",8),e.YNc(3,B,3,2,"ng-container",9),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,T,2,1,"ng-container",9),e.qZA(),e.qZA()),2&i){const a=e.oxw(2);e.xp6(3),e.Q6J("nzStringTemplateOutlet",a.nzPendingDot),e.xp6(2),e.Q6J("nzStringTemplateOutlet",a.nzPending)}}function P(i,m){if(1&i&&e.YNc(0,D,6,2,"li",5),2&i){const a=e.oxw();e.Q6J("ngIf",a.nzPending)}}const N=["red","blue","green","grey","gray"];let J=(()=>{class i{constructor(){this.check$=new l.t(1)}markForCheck(){this.check$.next()}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),W=(()=>{class i{constructor(a,v){this.cdr=a,this.timelineService=v,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 w(i){return-1!==N.findIndex(m=>m===i)}(this.nzColor)?null:this.nzColor}}return i.\u0275fac=function(a){return new(a||i)(e.Y36(e.sBO),e.Y36(J))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(a,v){if(1&a&&e.Gf(z,5),2&a){let M;e.iGM(M=e.CRH())&&(v.template=M.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],features:[e.TTD],ngContentSelectors:p,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,v){1&a&&(e.F$t(),e.YNc(0,E,7,20,"ng-template",null,0,e.W1O))},directives:[u.O5,O.f],encapsulation:2,changeDetection:0}),i})(),F=(()=>{class i{constructor(a,v,M){this.cdr=a,this.timelineService=v,this.directionality=M,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new C.xQ}ngOnChanges(a){const{nzMode:v,nzReverse:M,nzPending:S}=a;(K(v)||K(M))&&this.updateChildren(),S&&(this.isPendingBoolean=!0===S.currentValue)}ngOnInit(){var a;this.timelineService.check$.pipe((0,r.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),null===(a=this.directionality.change)||void 0===a||a.pipe((0,r.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,r.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 v=!1;this.listOfItems.forEach((M,S)=>{M.isLast=this.nzReverse?0===S:S===a-1,M.position=function Y(i,m){return"custom"===m?void 0:"left"===m?"left":"right"===m?"right":"alternate"===m&&i%2==0?"left":"right"}(S,this.nzMode),!v&&M.nzLabel&&(v=!0),M.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=v}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}}return i.\u0275fac=function(a){return new(a||i)(e.Y36(e.sBO),e.Y36(J),e.Y36(c.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-timeline"]],contentQueries:function(a,v,M){if(1&a&&e.Suo(M,W,4),2&a){let S;e.iGM(S=e.CRH())&&(v.listOfItems=S)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:"nzReverse"},exportAs:["nzTimeline"],features:[e._Bn([J]),e.TTD],ngContentSelectors:p,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,v){1&a&&(e.F$t(),e.TgZ(0,"ul",0),e.YNc(1,x,1,1,"ng-container",1),e.YNc(2,L,2,1,"ng-container",2),e.YNc(3,U,1,1,"ng-container",1),e.qZA(),e.YNc(4,P,1,1,"ng-template",null,3,e.W1O),e.Hsn(6)),2&a&&(e.ekj("ant-timeline-label",v.hasLabelItem)("ant-timeline-right",!v.hasLabelItem&&"right"===v.nzMode)("ant-timeline-alternate","alternate"===v.nzMode||"custom"===v.nzMode)("ant-timeline-pending",!!v.nzPending)("ant-timeline-reverse",v.nzReverse)("ant-timeline-rtl","rtl"===v.dir),e.xp6(1),e.Q6J("ngIf",v.nzReverse),e.xp6(1),e.Q6J("ngForOf",v.timelineItems),e.xp6(1),e.Q6J("ngIf",!v.nzReverse))},directives:[u.O5,u.tP,u.sg,O.f,_.Ls],encapsulation:2,changeDetection:0}),i})();function K(i){return!(!i||i.previousValue===i.currentValue&&!i.isFirstChange())}let b=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[c.vT,u.ez,A.ud,_.PV,O.T]]}),i})()}}]); \ No newline at end of file diff --git a/server/public/assets/.sprockets-manifest-4c0650ca72a239c847e6524040f006b4.json b/server/public/assets/.sprockets-manifest-749f0df926e6496715e483247ca7c642.json similarity index 83% rename from server/public/assets/.sprockets-manifest-4c0650ca72a239c847e6524040f006b4.json rename to server/public/assets/.sprockets-manifest-749f0df926e6496715e483247ca7c642.json index b801d982e..b9ca03429 100644 --- a/server/public/assets/.sprockets-manifest-4c0650ca72a239c847e6524040f006b4.json +++ b/server/public/assets/.sprockets-manifest-749f0df926e6496715e483247ca7c642.json @@ -1 +1 @@ -{"files":{"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css":{"logical_path":"trestle/admin.css","mtime":"2022-04-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+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-13T18:38:40+00:00","size":747545,"digest":"8594ac7ea23505e2c5096659c6f642c610d2ef126d8ba718c42067ccc6338c32","integrity":"sha256-hZSsfqI1BeLFCWZZxvZCxhDS7xJti6cYxCBnzMYzjDI="},"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js":{"logical_path":"trestle/admin.js","mtime":"2022-04-13T18:38:40+00:00","size":391334,"digest":"74a613c3a1dcc91bf57578762da604c78518fcd895484cfe783f77d90ef2f940","integrity":"sha256-dKYTw6HcyRv1dXh2LaYEx4UY/NiVSEz+eD932Q7y+UA="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2022-04-13T18:38:40+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2022-04-13T18:38:40+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2022-04-13T18:38:40+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2022-04-13T18:38:40+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2022-04-13T18:38:40+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2022-04-13T18:38:40+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css":{"logical_path":"trestle/theme.css","mtime":"2022-04-13T18:38:40+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+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-14T15:52:10+00:00","size":747545,"digest":"8594ac7ea23505e2c5096659c6f642c610d2ef126d8ba718c42067ccc6338c32","integrity":"sha256-hZSsfqI1BeLFCWZZxvZCxhDS7xJti6cYxCBnzMYzjDI="},"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js":{"logical_path":"trestle/admin.js","mtime":"2022-04-14T15:52:10+00:00","size":391334,"digest":"74a613c3a1dcc91bf57578762da604c78518fcd895484cfe783f77d90ef2f940","integrity":"sha256-dKYTw6HcyRv1dXh2LaYEx4UY/NiVSEz+eD932Q7y+UA="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2022-04-14T15:52:10+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2022-04-14T15:52:10+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2022-04-14T15:52:10+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2022-04-14T15:52:10+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2022-04-14T15:52:10+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2022-04-14T15:52:10+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css":{"logical_path":"trestle/theme.css","mtime":"2022-04-14T15:52:10+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 c75e1a85561bc63dab82fb068f163702ddf91f48..531da092c1e61d961f2a037ceac4e2f23ceaa970 100644 GIT binary patch delta 16 XcmZo+ZeeDZ@8)38a*o)@UdspoAAbYG delta 16 XcmZo+ZeeDZ@8)3GAQ8Tiy_OLGA|eDG diff --git a/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz b/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz index c2a63561c950b8a5a65c329f2cdf7da192e01b89..f1b9a9e7362557f24113647e7e96c51ca5046d79 100644 GIT binary patch delta 16 Xcmca)bIFEXzMF$V%Q<2rySE$wE|>(o delta 16 Xcmca)bIFEXzMF$#gGBg7c5gWVF*^ko diff --git a/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz b/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz index a7334d9d7956f22168a8cf99f808e110ed570316..8079607ab97f5884e7a3c74f6cac010fb0ca5b9f 100644 GIT binary patch delta 75 zcmWN_IRS$}006-dp5+U#0Q#6nL4P%ND7FFt7>R|`1yfGELc9XYQNF(Gwj+tWC6!Ea YDdfpgDygNBRzA{6FN2IS{h5E~4bqMgd;kCd delta 75 zcmWN_IRS$}002S0usk7r4PB(f!L{h2*a`$7BMlZ#7fd>xQI~NiK!F Yq?9Kssil!t-qOiOdKqMt>0yF(&b7#J7;W10tQ diff --git a/server/public/assets/trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js.gz b/server/public/assets/trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js.gz index aa08df3c48c9df8d1efb39d2d64fed7a17c3694d..18050c9580391d55b925ff55622c7cda88f66277 100644 GIT binary patch delta 21 ccmbRDjcwjHHg@@L4hAjfh(`9U?2O{O0aX$P$^ZZW delta 21 dcmbRDjcwjHHg@@L4u%a9;f?HD*%`%m0{~dV2P6Oh diff --git a/server/public/assets/trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css.gz b/server/public/assets/trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css.gz index a2f55fc5277186be872c8a84450a18f8022d1c5a..237aef575ffde5f57d16ee356fbaf58fbf6c4f61 100644 GIT binary patch delta 18 Zcmeymi}~v=W_I~*4hAjfh>h%dcL7G_2Ic?& delta 18 acmeymi}~v=W_I~*4u%a9;TzfW?g9WwhzCFb diff --git a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz index 96d6028545b67a011c963df676ebbc57d893997d..5bd8f8089186d093401505caa132bf5d09e11995 100644 GIT binary patch literal 20 Ucmb2|=3vlrj!0r+W@dl^03Htk;s5{u literal 20 Ucmb2|=3v+$5uU`v%*+4-03+N2JOBUy 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 cbadb934ee95f97d0509d84e2def882f53eebf88..93e4df4468363fdeaf00e41193313563a0a3b73e 100644 GIT binary patch delta 27 icmexxg#W`4es=k84hAjfh(`8ScE(nArmgJEnU4U78wj!h delta 27 jcmexxg#W`4es=k84u%a9;f?IA?2N7KOk3HRGamr}jpzvs 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 cb734f5c3b6847675df3dc8fdfd6fa6ecd4cdd51..5eef97335b5b46e24250999ff00a854aed7efc81 100644 GIT binary patch delta 21 ccmex$nf2FYR(APr4hAjfh(`9U?2Ml?0bfc7!~g&Q delta 21 dcmex$nf2FYR(APr4u%a9;f?HD*%?1)0svzB2p#|c 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 215d1d745bb63417a412bf6e8f03e1c4a8b1a683..e3bf0b1ab288be72f690e81fe75f1db86c426944 100644 GIT binary patch delta 21 ccmexh$569G251x^3} delta 18 acmbQfh-vyFCU*I54u%a9;TzcnCISFCT?MEB diff --git a/server/public/assets/trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf.gz b/server/public/assets/trestle/fa-regular-400-8e2aec2ce2fb87c2b7a12a94f02788f4da228f1906de09c095bf39735b77c989.ttf.gz index 5da1faff54b12ff859aac5d1161557b2583c1a6e..6d0c5616d1365bd095b7dc993690aa86fb90f351 100644 GIT binary patch delta 18 ZcmaFT#Q3C%kzKx - + \ No newline at end of file diff --git a/server/public/runtime.4a803f5f358cadcc.js b/server/public/runtime.4a803f5f358cadcc.js deleted file mode 100644 index 2757988ae..000000000 --- a/server/public/runtime.4a803f5f358cadcc.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var d=m[e]={exports:{}};return v[e](d,d.exports,a),d.exports}a.m=v,e=[],a.O=(t,d,c,n)=>{if(!d){var f=1/0;for(r=0;r=n)&&Object.keys(a.O).every(p=>a.O[p](d[b]))?d.splice(b--,1):(u=!1,n0&&e[r-1][2]>n;r--)e[r]=e[r-1];e[r]=[d,c,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var d in t)a.o(t,d)&&!a.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:t[d]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,d)=>(a.f[d](e,t),t),[])),a.u=e=>(8592===e?"common":e)+"."+{55:"ba71fd90dd4b7d35",79:"88f59fde8cf78eea",305:"ecaea6e75949c224",376:"7d40cc5e50ad1ea4",392:"a049a6aab72fd2be",605:"0b7e1919acad6432",681:"80f46e569d77955f",775:"703c42969bc547c0",885:"804f55ce4225958b",1457:"91c95cefa3cfff40",1679:"15e17716906d9cee",1750:"ef738b35fad0c01c",2033:"98c7d970352312a5",2043:"7c7f493d3e460c95",2395:"68bf796d686227c0",2738:"9e4f1b8d15d1377a",2826:"58d99e896f2f009b",3073:"8d568bbec340ee7a",3074:"57e66fe8a4d34a20",3218:"9a2a6eae0aa809aa",3438:"4547ca58cf6ba4f4",3482:"ed6f7f94eb7c422d",3501:"b1fe2600e6217dad",3648:"3b315459a2689166",3730:"7141625c22d9cd58",3883:"55b6fb276f141f05",3894:"018c5c978b2c0e0b",4024:"60d65aab226b478d",4038:"65b27aab267b3352",4276:"08cec2ef34d7116e",4292:"73f4c12168601c38",4456:"170972231c6912d9",4579:"221a4086674a9f5c",4584:"94bce0e7cd7772b3",4658:"0b2f1cd78524e647",4721:"c2e56ff842a0cd32",4729:"9aac9fade23b2a04",5193:"079fc90b586abf32",5632:"b4048d1a94cb9e29",5787:"6afd9133542c6e90",6256:"28967a1cf9c2f744",6303:"e5fe598bc8a5dfd2",6519:"60c53bbe3f288f8c",6875:"9a3f371a86467784",7012:"25a2cf60fc1238c7",7064:"584260498fd7f7a1",7259:"5cb9a32d5c87028f",7559:"f6ca9a429933f621",7717:"a81202fba78291a9",7893:"09cc89d441456629",8422:"0298b53dd3400950",8482:"43089493207c0c97",8571:"600728d2995f4bfc",8592:"0319ec8b62184fc2",9001:"783bec1be99695ec",9020:"4a98dc48a9af4544",9286:"77907954ff6709b6",9484:"eba4a2cb1d41b5d4",9636:"fb2df4966b3986b1",9890:"3c50bc91546fa679"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(d,c,n,r)=>{if(e[d])e[d].push(c);else{var f,u;if(void 0!==n)for(var b=document.getElementsByTagName("script"),o=0;o{f.onerror=f.onload=null,clearTimeout(s);var _=e[d];if(delete e[d],f.parentNode&&f.parentNode.removeChild(f),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),u&&document.head.appendChild(f)}}})(),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tu=t=>(void 0===e&&(e={createScriptURL:d=>d},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(t))})(),a.p="",(()=>{var e={3666:0};a.f.j=(c,n)=>{var r=a.o(e,c)?e[c]:void 0;if(0!==r)if(r)n.push(r[2]);else if(3666!=c){var f=new Promise((i,l)=>r=e[c]=[i,l]);n.push(r[2]=f);var u=a.p+a.u(c),b=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(r=e[c])&&(e[c]=void 0),r)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;b.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",b.name="ChunkLoadError",b.type=l,b.request=s,r[1](b)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,n)=>{var b,o,[r,f,u]=n,i=0;if(r.some(s=>0!==e[s])){for(b in f)a.o(f,b)&&(a.m[b]=f[b]);if(u)var l=u(a)}for(c&&c(n);i{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var d=m[e]={exports:{}};return v[e](d,d.exports,a),d.exports}a.m=v,e=[],a.O=(t,d,c,n)=>{if(!d){var f=1/0;for(r=0;r=n)&&Object.keys(a.O).every(p=>a.O[p](d[b]))?d.splice(b--,1):(u=!1,n0&&e[r-1][2]>n;r--)e[r]=e[r-1];e[r]=[d,c,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var d in t)a.o(t,d)&&!a.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:t[d]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,d)=>(a.f[d](e,t),t),[])),a.u=e=>(8592===e?"common":e)+"."+{55:"ba71fd90dd4b7d35",79:"c2ee2d04f9a73d83",305:"ecaea6e75949c224",376:"7d40cc5e50ad1ea4",392:"a049a6aab72fd2be",535:"41583e85177a9773",605:"0b7e1919acad6432",681:"86186dfa0324b3e1",775:"703c42969bc547c0",885:"804f55ce4225958b",1457:"34c1b62d4d2a7ed2",1679:"15e17716906d9cee",1750:"ef738b35fad0c01c",2033:"98c7d970352312a5",2043:"7c7f493d3e460c95",2395:"68bf796d686227c0",2738:"9e4f1b8d15d1377a",2826:"58d99e896f2f009b",3073:"2c9b479fe3dca9f8",3074:"57e66fe8a4d34a20",3218:"b9650131e157c42a",3438:"f54dc1103b98eab1",3482:"ed6f7f94eb7c422d",3501:"b1fe2600e6217dad",3648:"3b315459a2689166",3730:"7141625c22d9cd58",3883:"55b6fb276f141f05",3894:"f1b117e8387ec68f",4024:"4198b82988b533fe",4038:"65b27aab267b3352",4276:"bc012717d8d8d96c",4456:"170972231c6912d9",4579:"221a4086674a9f5c",4584:"94bce0e7cd7772b3",4658:"5c85d7945136a277",4721:"c2e56ff842a0cd32",4729:"9aac9fade23b2a04",5193:"079fc90b586abf32",5291:"95fc472ce90a140e",5632:"b4048d1a94cb9e29",5787:"6afd9133542c6e90",6256:"28967a1cf9c2f744",6519:"60c53bbe3f288f8c",6875:"9a3f371a86467784",7012:"25a2cf60fc1238c7",7064:"584260498fd7f7a1",7259:"3d0ae570e3bb4dac",7559:"223e892b79fdc7b5",7717:"a81202fba78291a9",7893:"09cc89d441456629",8422:"0298b53dd3400950",8482:"97546a52cadedf70",8571:"600728d2995f4bfc",8592:"0319ec8b62184fc2",9001:"783bec1be99695ec",9020:"d6f9f3844668aecf",9286:"1078d57cf8d3724d",9484:"e48ad84613f06f22",9636:"90e794638acf3e95",9716:"5e244a9bae2799f5",9890:"3c50bc91546fa679"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(d,c,n,r)=>{if(e[d])e[d].push(c);else{var f,u;if(void 0!==n)for(var b=document.getElementsByTagName("script"),o=0;o{f.onerror=f.onload=null,clearTimeout(s);var _=e[d];if(delete e[d],f.parentNode&&f.parentNode.removeChild(f),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),u&&document.head.appendChild(f)}}})(),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tu=t=>(void 0===e&&(e={createScriptURL:d=>d},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(t))})(),a.p="",(()=>{var e={3666:0};a.f.j=(c,n)=>{var r=a.o(e,c)?e[c]:void 0;if(0!==r)if(r)n.push(r[2]);else if(3666!=c){var f=new Promise((i,l)=>r=e[c]=[i,l]);n.push(r[2]=f);var u=a.p+a.u(c),b=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(r=e[c])&&(e[c]=void 0),r)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;b.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",b.name="ChunkLoadError",b.type=l,b.request=s,r[1](b)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,n)=>{var b,o,[r,f,u]=n,i=0;if(r.some(s=>0!==e[s])){for(b in f)a.o(f,b)&&(a.m[b]=f[b]);if(u)var l=u(a)}for(c&&c(n);i