From 364cfbfa76869ac69a796352d8f43243489068a3 Mon Sep 17 00:00:00 2001 From: acoffman Date: Thu, 21 Apr 2022 20:31:34 +0000 Subject: [PATCH] Automated frontend build --- server/public/1457.34c1b62d4d2a7ed2.js | 1 - server/public/1679.15e17716906d9cee.js | 1 - server/public/2033.2d510737855042ae.js | 1 - server/public/2033.abad74827f0132b1.js | 1 + ...09e339fb1c.js => 2043.294d549568ae5d6d.js} | 2 +- server/public/2395.cf23fdf75c9e11a1.js | 1 - server/public/2678.e50a54105c5ce057.js | 1 + server/public/2738.9e4f1b8d15d1377a.js | 1 - server/public/2808.3a70df74963ca49b.js | 1 + server/public/2826.58d99e896f2f009b.js | 1 - server/public/2826.eac4a45bf8e1c8e4.js | 1 + server/public/2868.d121584480913025.js | 1 + server/public/2869.22a724c91b87f846.js | 1 + server/public/305.7761f97c55835182.js | 1 - server/public/305.f91158a332d4d0d4.js | 1 + server/public/3073.2c9b479fe3dca9f8.js | 1 - server/public/3074.57e66fe8a4d34a20.js | 1 - server/public/3218.3731c8d463d43cf4.js | 1 - server/public/3438.245d0c1d12bdb2e1.js | 1 + server/public/3438.f54dc1103b98eab1.js | 1 - server/public/3482.c177e566185e6af0.js | 1 - server/public/3501.b1fe2600e6217dad.js | 1 - server/public/3648.d223006cdec265b2.js | 1 - server/public/3730.8e411410b404acd9.js | 1 - ...dab83f2219.js => 3883.0f3bb9c091de4aa0.js} | 2 +- server/public/4024.792bb338f6b4c905.js | 3606 +++++++++++++++++ server/public/4024.a4fa77c625077d76.js | 3530 ---------------- server/public/4028.b00446bf886b8fd8.js | 1 + ...ab267b3352.js => 4038.fe3013a5e2c513ca.js} | 2 +- server/public/4184.d395d52a99d5b071.js | 1 + server/public/4189.00a59016128bd7b3.js | 1 + server/public/4233.113cf0343a1183bf.js | 1 + server/public/4276.bc012717d8d8d96c.js | 1 - server/public/4355.dc3b99721f40c486.js | 1 + ...7eb1aca6a2.js => 4456.d2c1926c2bdf29d4.js} | 2 +- server/public/4579.221a4086674a9f5c.js | 1 - server/public/4579.ce3e7d2abb9eb0af.js | 1 + server/public/4584.cd2fc068f9edf75f.js | 1 - server/public/4658.5c85d7945136a277.js | 1 - server/public/4721.785031df1f100b85.js | 1 - server/public/4726.9630e9511479c70a.js | 1 + server/public/4729.2c38846785e7bfbe.js | 1 - server/public/5193.079fc90b586abf32.js | 1 - server/public/5193.df16b16f719a127b.js | 1 + server/public/5291.95fc472ce90a140e.js | 1 - server/public/5291.c566178f1d8384f2.js | 1 + server/public/535.41583e85177a9773.js | 1 - ...fd90dd4b7d35.js => 55.fc7e72e0ab03da36.js} | 2 +- server/public/5632.b8b7a0d1b028a7da.js | 1 - server/public/5787.6afd9133542c6e90.js | 1 - server/public/5839.fe88ba0e4fbacb4f.js | 1 + server/public/6029.1d7dafd8569c5ba1.js | 1 + server/public/605.0b7e1919acad6432.js | 1 - server/public/605.d98f2530a9774915.js | 1 + server/public/6104.8b0d7d3bb56d76af.js | 1 + server/public/6315.856b0cbb6373b47c.js | 1 + server/public/6519.1d5c16c3070e7e7b.js | 1 - server/public/6724.28fb476550103940.js | 1 + server/public/681.d79a1e74bccada70.js | 1 + server/public/681.fd75ff06f6af80e6.js | 1 - server/public/6875.9a3f371a86467784.js | 1 - ...60fc1238c7.js => 7012.2a1cc8debc733727.js} | 2 +- server/public/7064.584260498fd7f7a1.js | 1 - server/public/7064.7606e873f17e97fe.js | 1 + server/public/7259.3d0ae570e3bb4dac.js | 1 - server/public/7259.563c8b9535549ea4.js | 1 + server/public/727.5a1e80c4ce38da78.js | 1 + server/public/7559.f5b2e5993b711209.js | 1 - server/public/7893.02d718d842625d7f.js | 1 + server/public/7893.09cc89d441456629.js | 1 - server/public/79.3d646ddc99c4c619.js | 1 - server/public/8369.1028ace99d0611b6.js | 1 + server/public/8383.4d2ba45ed8971969.js | 1 + server/public/8422.9ef4ed82da73f04e.js | 1 - ...52cadedf70.js => 8482.c5c92b5b0a05c813.js} | 2 +- server/public/8486.0c1b874a6e4ef27e.js | 1 + server/public/8533.7ecc98aa50eefef8.js | 1 + ...d2995f4bfc.js => 8571.db773ad23e0832c5.js} | 2 +- server/public/8829.8142f4f45cfadcb2.js | 1 + server/public/885.038dbdc7f60cc99d.js | 1 - server/public/885.525cb55bc6565cb0.js | 1 + ...d640fff864.js => 9001.bb98352d0a59ac1d.js} | 2 +- server/public/9020.d6f9f3844668aecf.js | 1 - server/public/9039.29f14b8e9cf1f2cc.js | 1 + server/public/9286.39b29561f080cec3.js | 1 + server/public/9286.c7abe2ed687cd15f.js | 1 - server/public/9484.e48ad84613f06f22.js | 1 - server/public/9636.90e794638acf3e95.js | 1 - server/public/97.7a8999992d81e2ee.js | 1 + server/public/9716.4015cbaed1ef29e7.js | 1 + server/public/9716.5e244a9bae2799f5.js | 1 - server/public/9750.b4db36eb30066666.js | 1 + server/public/9890.3c50bc91546fa679.js | 1 - ...est-c2c862ead934432a5866f837256834be.json} | 2 +- ...2676d49df561c3d06723770321fd441977c.css.gz | Bin 388 -> 388 bytes ...06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz | Bin 7762 -> 7762 bytes ...8e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz | Bin 1281094 -> 1281094 bytes ...86c9a957a5e40713d58f54be71b66954a1ff.js.gz | Bin 24 -> 24 bytes ...3f5eae961b616b07904fa27002eed3dd8a7b.js.gz | Bin 113438 -> 113438 bytes ...45370e53e4bf243a32c9a471cb83a00f7d3.css.gz | Bin 56693 -> 56693 bytes ...35ef376b55d125bb4516cebeb14ce788597.css.gz | Bin 20 -> 20 bytes ...a57c6cc3f1043baf75e29c8349022a42907.svg.gz | Bin 254576 -> 254576 bytes ...8dda939e190a18149f57d5bc1fe4ac11b8d.ttf.gz | Bin 92666 -> 92666 bytes ...5e1158f767541186b9c692faa9394475059.eot.gz | Bin 92791 -> 92791 bytes ...42356f7b5da951980969a599e81f99a2a93.svg.gz | Bin 37143 -> 37143 bytes ...8f4da228f1906de09c095bf39735b77c989.ttf.gz | Bin 16740 -> 16740 bytes ...0f5156015904c2e55d0a76eadeb1ad4f519.eot.gz | Bin 16794 -> 16794 bytes ...161c2c575664a13ef43d2cae15ee7d92221.eot.gz | Bin 105059 -> 105059 bytes ...58870cb59968ec411d70f060d6bc684f721.svg.gz | Bin 255574 -> 255574 bytes ...0495c34782e75988e02e1b0f971b4d0bfdf.ttf.gz | Bin 104966 -> 104966 bytes ...54f56146915dca7ba28284b8405562d3ec8.css.gz | Bin 287 -> 287 bytes ...d2d74af01039bdc68eb5031fcb20817623f.css.gz | Bin 2193 -> 2193 bytes server/public/common.0319ec8b62184fc2.js | 1 - server/public/common.55d0537dd4fa5d5b.js | 1 + server/public/index.html | 2 +- server/public/runtime.357163170600c313.js | 1 - server/public/runtime.ed9e248367652f5d.js | 1 + 117 files changed, 3658 insertions(+), 3586 deletions(-) delete mode 100644 server/public/1457.34c1b62d4d2a7ed2.js delete mode 100644 server/public/1679.15e17716906d9cee.js delete mode 100644 server/public/2033.2d510737855042ae.js create mode 100644 server/public/2033.abad74827f0132b1.js rename server/public/{2043.b51aa809e339fb1c.js => 2043.294d549568ae5d6d.js} (99%) delete mode 100644 server/public/2395.cf23fdf75c9e11a1.js create mode 100644 server/public/2678.e50a54105c5ce057.js delete mode 100644 server/public/2738.9e4f1b8d15d1377a.js create mode 100644 server/public/2808.3a70df74963ca49b.js delete mode 100644 server/public/2826.58d99e896f2f009b.js create mode 100644 server/public/2826.eac4a45bf8e1c8e4.js create mode 100644 server/public/2868.d121584480913025.js create mode 100644 server/public/2869.22a724c91b87f846.js delete mode 100644 server/public/305.7761f97c55835182.js create mode 100644 server/public/305.f91158a332d4d0d4.js delete mode 100644 server/public/3073.2c9b479fe3dca9f8.js delete mode 100644 server/public/3074.57e66fe8a4d34a20.js delete mode 100644 server/public/3218.3731c8d463d43cf4.js create mode 100644 server/public/3438.245d0c1d12bdb2e1.js delete mode 100644 server/public/3438.f54dc1103b98eab1.js delete mode 100644 server/public/3482.c177e566185e6af0.js delete mode 100644 server/public/3501.b1fe2600e6217dad.js delete mode 100644 server/public/3648.d223006cdec265b2.js delete mode 100644 server/public/3730.8e411410b404acd9.js rename server/public/{3883.ab7362dab83f2219.js => 3883.0f3bb9c091de4aa0.js} (87%) create mode 100644 server/public/4024.792bb338f6b4c905.js delete mode 100644 server/public/4024.a4fa77c625077d76.js create mode 100644 server/public/4028.b00446bf886b8fd8.js rename server/public/{4038.65b27aab267b3352.js => 4038.fe3013a5e2c513ca.js} (65%) create mode 100644 server/public/4184.d395d52a99d5b071.js create mode 100644 server/public/4189.00a59016128bd7b3.js create mode 100644 server/public/4233.113cf0343a1183bf.js delete mode 100644 server/public/4276.bc012717d8d8d96c.js create mode 100644 server/public/4355.dc3b99721f40c486.js rename server/public/{4456.ed35e07eb1aca6a2.js => 4456.d2c1926c2bdf29d4.js} (98%) delete mode 100644 server/public/4579.221a4086674a9f5c.js create mode 100644 server/public/4579.ce3e7d2abb9eb0af.js delete mode 100644 server/public/4584.cd2fc068f9edf75f.js delete mode 100644 server/public/4658.5c85d7945136a277.js delete mode 100644 server/public/4721.785031df1f100b85.js create mode 100644 server/public/4726.9630e9511479c70a.js delete mode 100644 server/public/4729.2c38846785e7bfbe.js delete mode 100644 server/public/5193.079fc90b586abf32.js create mode 100644 server/public/5193.df16b16f719a127b.js delete mode 100644 server/public/5291.95fc472ce90a140e.js create mode 100644 server/public/5291.c566178f1d8384f2.js delete mode 100644 server/public/535.41583e85177a9773.js rename server/public/{55.ba71fd90dd4b7d35.js => 55.fc7e72e0ab03da36.js} (99%) delete mode 100644 server/public/5632.b8b7a0d1b028a7da.js delete mode 100644 server/public/5787.6afd9133542c6e90.js create mode 100644 server/public/5839.fe88ba0e4fbacb4f.js create mode 100644 server/public/6029.1d7dafd8569c5ba1.js delete mode 100644 server/public/605.0b7e1919acad6432.js create mode 100644 server/public/605.d98f2530a9774915.js create mode 100644 server/public/6104.8b0d7d3bb56d76af.js create mode 100644 server/public/6315.856b0cbb6373b47c.js delete mode 100644 server/public/6519.1d5c16c3070e7e7b.js create mode 100644 server/public/6724.28fb476550103940.js create mode 100644 server/public/681.d79a1e74bccada70.js delete mode 100644 server/public/681.fd75ff06f6af80e6.js delete mode 100644 server/public/6875.9a3f371a86467784.js rename server/public/{7012.25a2cf60fc1238c7.js => 7012.2a1cc8debc733727.js} (91%) delete mode 100644 server/public/7064.584260498fd7f7a1.js create mode 100644 server/public/7064.7606e873f17e97fe.js delete mode 100644 server/public/7259.3d0ae570e3bb4dac.js create mode 100644 server/public/7259.563c8b9535549ea4.js create mode 100644 server/public/727.5a1e80c4ce38da78.js delete mode 100644 server/public/7559.f5b2e5993b711209.js create mode 100644 server/public/7893.02d718d842625d7f.js delete mode 100644 server/public/7893.09cc89d441456629.js delete mode 100644 server/public/79.3d646ddc99c4c619.js create mode 100644 server/public/8369.1028ace99d0611b6.js create mode 100644 server/public/8383.4d2ba45ed8971969.js delete mode 100644 server/public/8422.9ef4ed82da73f04e.js rename server/public/{8482.97546a52cadedf70.js => 8482.c5c92b5b0a05c813.js} (99%) create mode 100644 server/public/8486.0c1b874a6e4ef27e.js create mode 100644 server/public/8533.7ecc98aa50eefef8.js rename server/public/{8571.600728d2995f4bfc.js => 8571.db773ad23e0832c5.js} (54%) create mode 100644 server/public/8829.8142f4f45cfadcb2.js delete mode 100644 server/public/885.038dbdc7f60cc99d.js create mode 100644 server/public/885.525cb55bc6565cb0.js rename server/public/{9001.daebebd640fff864.js => 9001.bb98352d0a59ac1d.js} (57%) delete mode 100644 server/public/9020.d6f9f3844668aecf.js create mode 100644 server/public/9039.29f14b8e9cf1f2cc.js create mode 100644 server/public/9286.39b29561f080cec3.js delete mode 100644 server/public/9286.c7abe2ed687cd15f.js delete mode 100644 server/public/9484.e48ad84613f06f22.js delete mode 100644 server/public/9636.90e794638acf3e95.js create mode 100644 server/public/97.7a8999992d81e2ee.js create mode 100644 server/public/9716.4015cbaed1ef29e7.js delete mode 100644 server/public/9716.5e244a9bae2799f5.js create mode 100644 server/public/9750.b4db36eb30066666.js delete mode 100644 server/public/9890.3c50bc91546fa679.js rename server/public/assets/{.sprockets-manifest-a2a9f5831b754f7fbb1f9f1d783a892d.json => .sprockets-manifest-c2c862ead934432a5866f837256834be.json} (83%) delete mode 100644 server/public/common.0319ec8b62184fc2.js create mode 100644 server/public/common.55d0537dd4fa5d5b.js delete mode 100644 server/public/runtime.357163170600c313.js create mode 100644 server/public/runtime.ed9e248367652f5d.js diff --git a/server/public/1457.34c1b62d4d2a7ed2.js b/server/public/1457.34c1b62d4d2a7ed2.js deleted file mode 100644 index ed7368d3e..000000000 --- a/server/public/1457.34c1b62d4d2a7ed2.js +++ /dev/null @@ -1 +0,0 @@ -"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/1679.15e17716906d9cee.js b/server/public/1679.15e17716906d9cee.js deleted file mode 100644 index 15210e09b..000000000 --- a/server/public/1679.15e17716906d9cee.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1679],{9180:(M,m,o)=>{o.d(m,{Z:()=>c});var n=o(5e3);const t=["*"];let c=(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-form-buttons"]],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(l,z){1&l&&(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}"]}),s})()},4375:(M,m,o)=>{o.d(m,{R:()=>c});var n=o(9808),t=o(5e3);let c=(()=>{class s{}return s.\u0275fac=function(l){return new(l||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[n.ez]]}),s})()},8227:(M,m,o)=>{o.d(m,{q:()=>d});var n=o(5e3),t=o(8929),c=o(4850),s=o(373),_=o(2868),l=o(7625),z=o(1793),u=o(9350),v=o(9808),h=o(6042),p=o(2683),O=o(2643),C=o(3677),f=o(8144),E=o(6699),D=o(4219);function B(e,r){1&e&&n.Hsn(0)}function S(e,r){1&e&&n.GkF(0)}function P(e,r){if(1&e&&(n.ynx(0),n.YNc(1,S,1,0,"ng-container",5),n.BQk()),2&e){n.oxw(2);const a=n.MAs(1);n.xp6(1),n.Q6J("ngTemplateOutlet",a)}}function T(e,r){1&e&&n.GkF(0)}function A(e,r){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-button-group",6),n.YNc(2,T,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&e){n.oxw();const a=n.MAs(4),g=n.oxw(),x=n.MAs(1);n.xp6(1),n.Q6J("nzSize",g.nzSize),n.xp6(1),n.Q6J("ngTemplateOutlet",x),n.xp6(1),n.Q6J("nzType",g.buttonType)("nzDanger",g.nzDanger)("disabled",g.disabled)("nzDropdownMenu",a),n.xp6(1),n.Q6J("nzSize",4),n.xp6(3),n.Q6J("nzSrc",null==g.selectedOrg?null:g.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function I(e,r){if(1&e){const a=n.EpF();n.TgZ(0,"li",11),n.NdJ("click",function(){const y=n.CHM(a).$implicit;return n.oxw(2).selectOrg(y)}),n._UZ(1,"nz-avatar",12),n._uU(2),n.qZA()}if(2&e){const a=r.$implicit,g=n.oxw(2);n.Q6J("nzSelected",(null==g.selectedOrg?null:g.selectedOrg.id)===a.id),n.xp6(1),n.Q6J("nzSrc",null==a?null:a.profileImagePath)("nzSize",10)("nzShape","square"),n.xp6(1),n.hij(" ",a.name," ")}}function U(e,r){if(1&e&&(n.ynx(0),n.YNc(1,P,2,1,"ng-container",1),n.YNc(2,A,9,10,"ng-container",1),n.TgZ(3,"nz-dropdown-menu",null,2),n.TgZ(5,"ul",3),n.YNc(6,I,3,5,"li",4),n.qZA(),n.qZA(),n.BQk()),2&e){const a=r.ngIf;n.xp6(1),n.Q6J("ngIf",a.length<=1),n.xp6(1),n.Q6J("ngIf",a.length>1),n.xp6(4),n.Q6J("ngForOf",a)}}const i=["*"];let d=(()=>{class e{constructor(a){this.viewerService=a,this.selectedOrgChange=new n.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new t.xQ}get disabled(){return this.button.disabled}selectOrg(a){this.selectedOrg=a,this.selectedOrgChange.emit(a)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,c.U)(a=>a.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,s.j)("mostRecentOrg"),(0,_.b)(a=>{a&&(this.selectedOrg=a,this.selectedOrgChange.emit(a))})),this.mostRecentOrg$.pipe((0,l.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(a){return new(a||e)(n.Y36(u.a))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(a,g,x){if(1&a&&n.Suo(x,z.m,5),2&a){let y;n.iGM(y=n.CRH())&&(g.button=y.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(a,g){1&a&&(n.F$t(),n.YNc(0,B,1,0,"ng-template",null,0,n.W1O),n.YNc(2,U,7,3,"ng-container",1),n.ALo(3,"async")),2&a&&(n.xp6(2),n.Q6J("ngIf",n.lcZ(3,1,g.organizations$)))},directives:[v.O5,v.tP,h.fY,p.w,h.ix,O.dQ,C.wA,C.cm,f.NU,E.Dz,C.RR,D.wO,v.sg,D.r9],pipes:[v.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),e})()},1825:(M,m,o)=>{o.d(m,{A:()=>z});var n=o(9808),t=o(6042),c=o(6699),s=o(3677),_=o(8144),l=o(5e3);let z=(()=>{class u{}return u.\u0275fac=function(h){return new(h||u)},u.\u0275mod=l.oAB({type:u}),u.\u0275inj=l.cJS({imports:[[n.ez,t.sL,c.Rt,s.b1,_.zf]]}),u})()},1793:(M,m,o)=>{o.d(m,{m:()=>t});var n=o(5e3);let t=(()=>{class c{constructor(_){this.el=_,this.observer=new MutationObserver(([l])=>this.disabled=l.target.disabled),this.observer.observe(this.el.nativeElement,{attributeFilter:["disabled"],childList:!1,subtree:!1})}ngOnDestroy(){this.observer.disconnect()}}return c.\u0275fac=function(_){return new(_||c)(n.Y36(n.SBq))},c.\u0275dir=n.lG2({type:c,selectors:[["button","cvcOrgSelectorBtn",""]],hostVars:2,hostBindings:function(_,l){2&_&&n.ekj("ant-btn-dangerous",l.nzDanger)}}),c})()},4623:(M,m,o)=>{o.d(m,{K:()=>h});var n=o(9808),t=o(8776),c=o(5e3),s=o(1047),_=o(4182);const z={name:"comment-textarea",component:(()=>{class p extends t.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(C,f)=>{var E;return`Comments must be at least ${null===(E=f.templateOptions)||void 0===E?void 0:E.minLength} characters in length.`}}},templateOptions:{rows:4}}}}return p.\u0275fac=function(){let O;return function(f){return(O||(O=c.n5z(p)))(f||p)}}(),p.\u0275cmp=c.Xpm({type:p,selectors:[["comment-textarea-type"]],features:[c.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(C,f){1&C&&c._UZ(0,"textarea",0),2&C&&c.Q6J("formControl",f.formControl)("formlyAttributes",f.field)},directives:[s.Zp,_.Fj,_.JJ,_.oH,t.VQ],styles:[""],changeDetection:0}),p})(),wrappers:["form-field"]};var u=o(4546),v=o(9139);let h=(()=>{class p{}return p.\u0275fac=function(C){return new(C||p)},p.\u0275mod=c.oAB({type:p}),p.\u0275inj=c.cJS({imports:[[n.ez,_.UX,t.X0.forChild({types:[z]}),v.u,u.U5,s.o7]]}),p})()},5482:(M,m,o)=>{o.d(m,{yH:()=>T,cD:()=>U,Zv:()=>I});var n=o(655),t=o(5e3),c=o(8929),s=o(7625),_=o(8076),l=o(9439),z=o(1721),u=o(226),v=o(4832),h=o(9808),p=o(969),O=o(647);const C=["*"];function f(i,d){if(1&i&&(t.ynx(0),t._UZ(1,"i",6),t.BQk()),2&i){const e=d.$implicit,r=t.oxw(2);t.xp6(1),t.Q6J("nzType",e||"right")("nzRotate",r.nzActive?90:0)}}function E(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,f,2,2,"ng-container",2),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExpandedIcon)}}function D(i,d){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(e.nzHeader)}}function B(i,d){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzExtra)}}function S(i,d){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,B,2,1,"ng-container",2),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}const P="collapse";let T=(()=>{class i{constructor(e,r,a){this.nzConfigService=e,this.cdr=r,this.directionality=a,this._nzModuleName=P,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new c.xQ,this.nzConfigService.getConfigChangeEventForComponent(P).pipe((0,s.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,s.R)(this.destroy$)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(e){this.listOfNzCollapsePanelComponent.push(e)}removePanel(e){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(e),1)}click(e){this.nzAccordion&&!e.nzActive&&this.listOfNzCollapsePanelComponent.filter(r=>r!==e).forEach(r=>{r.nzActive&&(r.nzActive=!1,r.nzActiveChange.emit(r.nzActive),r.markForCheck())}),e.nzActive=!e.nzActive,e.nzActiveChange.emit(e.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(l.jY),t.Y36(t.sBO),t.Y36(u.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(e,r){2&e&&t.ekj("ant-collapse-icon-position-left","left"===r.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===r.nzExpandIconPosition)("ant-collapse-ghost",r.nzGhost)("ant-collapse-borderless",!r.nzBordered)("ant-collapse-rtl","rtl"===r.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:C,decls:1,vars:0,template:function(e,r){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,n.gn)([(0,l.oS)(),(0,z.yF)()],i.prototype,"nzAccordion",void 0),(0,n.gn)([(0,l.oS)(),(0,z.yF)()],i.prototype,"nzBordered",void 0),(0,n.gn)([(0,l.oS)(),(0,z.yF)()],i.prototype,"nzGhost",void 0),i})();const A="collapsePanel";let I=(()=>{class i{constructor(e,r,a,g){this.nzConfigService=e,this.cdr=r,this.nzCollapseComponent=a,this.noAnimation=g,this._nzModuleName=A,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.vpe,this.destroy$=new c.xQ,this.nzConfigService.getConfigChangeEventForComponent(A).pipe((0,s.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}clickHeader(){this.nzDisabled||this.nzCollapseComponent.click(this)}markForCheck(){this.cdr.markForCheck()}ngOnInit(){this.nzCollapseComponent.addPanel(this)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(l.jY),t.Y36(t.sBO),t.Y36(T,1),t.Y36(v.P,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(e,r){2&e&&t.ekj("ant-collapse-no-arrow",!r.nzShowArrow)("ant-collapse-item-active",r.nzActive)("ant-collapse-item-disabled",r.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:C,decls:7,vars:8,consts:[["role","button",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return r.clickHeader()}),t.YNc(1,E,2,1,"div",1),t.YNc(2,D,2,1,"ng-container",2),t.YNc(3,S,2,1,"div",3),t.qZA(),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.qZA(),t.qZA()),2&e&&(t.uIk("aria-expanded",r.nzActive),t.xp6(1),t.Q6J("ngIf",r.nzShowArrow),t.xp6(1),t.Q6J("nzStringTemplateOutlet",r.nzHeader),t.xp6(1),t.Q6J("ngIf",r.nzExtra),t.xp6(1),t.ekj("ant-collapse-content-active",r.nzActive),t.Q6J("@.disabled",null==r.noAnimation?null:r.noAnimation.nzNoAnimation)("@collapseMotion",r.nzActive?"expanded":"hidden"))},directives:[h.O5,p.f,O.Ls],encapsulation:2,data:{animation:[_.J_]},changeDetection:0}),(0,n.gn)([(0,z.yF)()],i.prototype,"nzActive",void 0),(0,n.gn)([(0,z.yF)()],i.prototype,"nzDisabled",void 0),(0,n.gn)([(0,l.oS)(),(0,z.yF)()],i.prototype,"nzShowArrow",void 0),i})(),U=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[u.vT,h.ez,O.PV,p.T,v.g]]}),i})()}}]); \ No newline at end of file diff --git a/server/public/2033.2d510737855042ae.js b/server/public/2033.2d510737855042ae.js deleted file mode 100644 index 3b82f0fe8..000000000 --- a/server/public/2033.2d510737855042ae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2033],{8926:($,Q,n)=>{n.d(Q,{A:()=>C});var y=n(5e3),N=n(2313);let C=(()=>{class I{constructor(S){this.sanitizer=S}transform(S,D){if(!D||""==D)return S;const A=new RegExp(D,"gi"),e=S.match(A);if(!e)return S;let M=S.replace(A,`${e[0]}`);return this.sanitizer.bypassSecurityTrustHtml(M)}}return I.\u0275fac=function(S){return new(S||I)(y.Y36(N.H7,16))},I.\u0275pipe=y.Yjl({name:"highlightTypeahead",type:I,pure:!0}),I})()},3416:($,Q,n)=>{n.d(Q,{g:()=>P});var y=n(9808),N=n(4182),C=n(8776),I=n(3793),J=n(8054),S=n(7338),D=n(8006),A=n(8390),e=n(915);const F={name:"disease-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Disease",helpText:"Please enter a disease name. If you are unable to locate the disease in the dropdown, please check the 'Could not find disease' checkbox below and enter the disease in the field that appears.",required:!1,addText:"Add a Disease",destroy$:new(n(8929).xQ)},fieldArray:{type:"cvc-disease-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(t,d,h)=>{var V,k;const w=null===(k=null===(V=null==h?void 0:h.parent)||void 0===V?void 0:V.templateOptions)||void 0===k?void 0:k.allowCreate;return void 0===w||w}}},defaultValue:[],validation:{messages:{required:(t,d)=>{const h=(null==d?void 0:d.form)?d.form.get("evidenceType"):null;return h?`${(0,e.E)(h.value)} Evidence requires a disease to be specified.`:"Disease is required."}}},hooks:{onInit:t=>{var d;const h=t.templateOptions,V=null===(d=null==t?void 0:t.options)||void 0===d?void 0:d.formState,k=(null==t?void 0:t.form)?t.form.get("evidenceType"):null;!k||(h.vcSub=k.valueChanges.subscribe(w=>{V.requiresDisease(w)?(h.hidden=!1,h.required=!0):(h.hidden=!0,h.required=!1,t.model.length>0&&(t.model.splice(1),h.remove(0)))}))},onDestroy:t=>{const d=t.templateOptions;d.vcSub&&d.vcSub.unsubscribe()}}}};var v=n(5e3);let P=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=v.oAB({type:t}),t.\u0275inj=v.cJS({imports:[[y.ez,N.u5,N.UX,J.LV,S.z,I.F,C.X0.forChild({types:[F]}),D.I,A.N]]}),t})()},8006:($,Q,n)=>{n.d(Q,{I:()=>g});var y=n(9808),N=n(8776),C=n(7625),I=n(373),J=n(4850),S=n(8929),D=n(591),A=n(6123),e=n(5e3),M=n(712),L=n(9169),F=n(8054),v=n(4182),P=n(6949),t=n(8144),d=n(3618),h=n(4022),V=n(822),k=n(2683),w=n(1047),U=n(6042),c=n(2643),p=n(8926);function r(a,T){if(1&a&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&a){const o=e.oxw().$implicit,u=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,u.to.searchString),e.oJD)}}function _(a,T){if(1&a&&(e._UZ(0,"span",11),e.ALo(1,"highlightTypeahead")),2&a){const o=e.oxw().$implicit,u=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.disease.diseaseAliases.join(", "),u.to.searchString),e.oJD)}}function B(a,T){if(1&a&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,r,2,4,"span",8),e.YNc(3,_,2,4,"span",9),e.qZA(),e.qZA()),2&a){const o=T.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.disease)}}function l(a,T){if(1&a&&(e.ynx(0),e.YNc(1,B,4,2,"nz-option",6),e.BQk()),2&a){const o=T.ngrxLet;e.xp6(1),e.Q6J("ngForOf",o)}}function E(a,T){1&a&&e._uU(0," No disease found in CIViC that matches the string provided. ")}function f(a,T){if(1&a){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(2,l,2,1,"ng-container",4),e.qZA(),e.YNc(3,E,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&a){const o=e.MAs(4),u=e.oxw(),m=e.MAs(4);e.xp6(1),e.Q6J("formControl",u.formControl)("formlyAttributes",u.field)("nzPlaceHolder",u.to.placeholder?u.to.placeholder:null)("nzDropdownRender",u.to.allowCreate?m:null)("nzNotFoundContent",o)("nzShowArrow",u.to.showArrow)("nzFilterOption",u.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",u.diseases$)}}function Z(a,T){if(1&a&&e._UZ(0,"cvc-disease-tag",12),2&a){const o=e.oxw();e.Q6J("disease",o.formControl.value)}}function b(a,T){if(1&a&&e._UZ(0,"cvc-form-errors-alert",18),2&a){const o=e.oxw(4);e.Q6J("errors",o.errorMessages)}}function H(a,T){if(1&a){const o=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(o);const m=e.oxw(4);return m.addDisease(m.to.searchString)}),e._UZ(1,"i",20),e._uU(2,"No Existing CIViC Disease\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Disease? "),e.qZA()}if(2&a){const o=e.oxw(4);e.Q6J("nzLoading",o.loading),e.xp6(4),e.Oqu(o.to.searchString)}}function R(a,T){if(1&a){const o=e.EpF();e.ynx(0),e.YNc(1,b,1,1,"cvc-form-errors-alert",14),e.TgZ(2,"nz-input-group",15),e.TgZ(3,"input",16),e.NdJ("ngModelChange",function(m){return e.CHM(o),e.oxw(3).enteredDoid=m}),e.qZA(),e.qZA(),e.YNc(4,H,6,2,"button",17),e.BQk()}if(2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.errorMessages.length>0),e.xp6(2),e.Q6J("ngModel",o.enteredDoid),e.xp6(1),e.Q6J("ngIf",0==o.errorMessages.length)}}function j(a,T){if(1&a&&(e.ynx(0),e.YNc(1,R,5,3,"ng-container",13),e.BQk()),2&a){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==o.to.searchString&&o.to.searchString.length>=5)}}function W(a,T){if(1&a&&(e.YNc(0,j,2,1,"ng-container",13),e.ALo(1,"ngrxPush")),2&a){const o=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,o.displayAdd$))}}const s={name:"cvc-disease-input",component:(()=>{class a extends N.fS{constructor(o,u,m){super(),this.diseaseTypeaheadQuery=o,this.networkErrorService=u,this.addDiseaseGQL=m,this.destroy$=new S.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.enteredDoid="",this.displayAdd$=new D.X(!1),this.addDiseaseMutator=new A.U(u),this.defaultOptions={templateOptions:{placeholder:"Search Diseases",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.diseaseTypeaheadQuery.watch({name:"zzzz"}),this.diseases$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,I.j)("data","diseaseTypeahead"),(0,J.U)(o=>o.map(m=>{let x=m.doid?`DOID:${m.doid}`:"no DOID",Y=m.diseaseAliases.length>0?`Aliases: ${m.diseaseAliases.join(", ")}`:"";return{value:m.id,tooltip:`${m.displayName} (${x}) ${Y}`,label:`${m.displayName} (${x})`,disease:m}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{this.displayAdd$.next(0==u.data.diseaseTypeahead.filter(m=>m.displayName.toUpperCase()==o.toUpperCase()).length)}))}}addDisease(o){if(o&&""!=o){let m=this.addDiseaseMutator.mutate(this.addDiseaseGQL,{name:o,doid:+this.enteredDoid?+this.enteredDoid:void 0},{},x=>{var Y;null===(Y=this.field.formControl)||void 0===Y||Y.setValue({id:x.addDisease.disease.id,name:x.addDisease.disease.name}),this.to.searchString="",this.to.searchLength=0});m.submitSuccess$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{x&&(this.success=!0)}),m.submitError$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{x&&(this.errorMessages=x,this.success=!1)}),m.isSubmitting$.pipe((0,C.R)(this.destroy$)).subscribe(x=>{this.loading=x})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return a.\u0275fac=function(o){return new(o||a)(e.Y36(M.kv3),e.Y36(L.Y),e.Y36(M.KNk))},a.\u0275cmp=e.Xpm({type:a,selectors:[["cvc-disease-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["diseaseListItem",""],["addDiseaseTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml",4,"nzSpaceItem"],[3,"innerHtml"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"disease"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nzAddOnBefore","DOID:"],["type","text","nz-input","","placeholder","Optional DOID",3,"ngModel","ngModelChange"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(o,u){if(1&o&&(e.YNc(0,f,5,8,"ng-container",0),e.YNc(1,Z,1,1,"ng-template",null,1,e.W1O),e.YNc(3,W,2,3,"ng-template",null,2,e.W1O)),2&o){const m=e.MAs(2);e.Q6J("ngIf",!(null!=u.formControl.value&&u.formControl.value.id))("ngIfElse",m)}},directives:[y.O5,F.Vq,v.JJ,v.oH,N.VQ,P.eJ,y.sg,F.Ip,t.NU,t.$1,d.ZU,h.n,V.V,k.w,w.gB,w.Zp,v.Fj,v.On,U.ix,c.dQ],pipes:[p.A,P.fM],styles:[""]}),a})()};var O=n(3580),i=n(7008),z=n(9444);let g=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[y.ez,v.UX,P.WG,N.X0.forChild({types:[s]}),F.LV,O.Q,d.ZJ,t.zf,U.sL,i.B,w.o7,v.u5,z.s]]}),a})()},5926:($,Q,n)=>{n.d(Q,{J:()=>F});var y=n(9808),N=n(4182),C=n(8776),I=n(3793),J=n(304),S=n(8054),D=n(4181),A=n(8390);const M={name:"variant-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant",helpText:"Description of the type of variant (e.g., V600E, BCR-ABL fusion, Loss-of-function, exon 12 mutations). Should be as specific as possible (i.e., specific amino acid changes).",required:!1,addText:"Specify a Variant"},fieldArray:{type:"variant-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(v,P,t)=>{var d,h;const V=null===(h=null===(d=null==t?void 0:t.parent)||void 0===d?void 0:d.templateOptions)||void 0===h?void 0:h.allowCreate;return void 0===V||V}}},hideExpression:(v,P,t)=>{const d=(null==t?void 0:t.form)?t.form.get("gene"):null;return!d||!d.value||!d.value[0]},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Variant be specified."}}}};var L=n(5e3);let F=(()=>{class v{}return v.\u0275fac=function(t){return new(t||v)},v.\u0275mod=L.oAB({type:v}),v.\u0275inj=L.cJS({imports:[[y.ez,N.u5,N.UX,S.LV,J.F,I.F,C.X0.forChild({types:[M]}),D.O,A.N]]}),v})()},4181:($,Q,n)=>{n.d(Q,{O:()=>X});var y=n(9808),N=n(6123),C=n(8776),I=n(8929),J=n(591),S=n(373),D=n(4850),A=n(7625),e=n(5e3),M=n(712),L=n(9169),F=n(8054),v=n(4182),P=n(8664),t=n(822),d=n(6042),h=n(2643),V=n(2683),k=n(647),w=n(6949),U=n(8926);function c(s,O){if(1&s&&(e.TgZ(0,"nz-option",6),e._UZ(1,"span",7),e.ALo(2,"highlightTypeahead"),e.qZA()),2&s){const i=O.$implicit,z=e.oxw(2);e.Q6J("nzValue",i.variant),e.xp6(1),e.Q6J("innerHtml",e.xi3(2,2,i.label,z.to.searchString),e.oJD)}}function p(s,O){1&s&&e._uU(0," No variant found in CIViC that matches the string provided. ")}function r(s,O){if(1&s){const i=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(g){return e.CHM(i),e.oxw().to.onSearch(g)}),e.YNc(2,c,3,5,"nz-option",4),e.ALo(3,"ngrxPush"),e.qZA(),e.YNc(4,p,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&s){const i=e.MAs(5),z=e.oxw(),g=e.MAs(4);e.xp6(1),e.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzDropdownRender",z.to.allowCreate?g:null)("nzNotFoundContent",i)("nzShowArrow",z.to.showArrow),e.xp6(1),e.Q6J("ngForOf",e.lcZ(3,7,z.variants$))}}function _(s,O){if(1&s&&e._UZ(0,"cvc-variant-tag",8),2&s){const i=e.oxw();e.Q6J("variant",i.formControl.value)}}function B(s,O){if(1&s&&e._UZ(0,"cvc-form-errors-alert",12),2&s){const i=e.oxw(4);e.Q6J("errors",i.errorMessages)}}function l(s,O){if(1&s){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(i);const g=e.oxw(4);return g.addVariant(g.to.searchString)}),e._UZ(1,"i",14),e._uU(2,"No Existing CIViC Variant\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Variant? "),e.qZA()}if(2&s){const i=e.oxw(4);e.Q6J("nzLoading",i.loading),e.xp6(4),e.Oqu(i.to.searchString)}}function E(s,O){if(1&s&&(e.ynx(0),e.YNc(1,B,1,1,"cvc-form-errors-alert",10),e.YNc(2,l,6,2,"button",11),e.BQk()),2&s){const i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==i.errorMessages.length)}}function f(s,O){if(1&s&&(e.ynx(0),e.YNc(1,E,3,2,"ng-container",9),e.BQk()),2&s){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==i.to.searchString)}}function Z(s,O){if(1&s&&(e.YNc(0,f,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&s){const i=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,i.displayAdd$))}}const H={name:"variant-input",component:(()=>{class s extends C.fS{constructor(i,z,g){super(),this.variantTypeaheadQuery=i,this.networkErrorService=z,this.addVariantGQL=g,this.destroy$=new I.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new J.X(!1),this.addVariantMutator=new N.U(z),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(a,T,o)=>{var u,m;let x=null===(m=null===(u=null==o?void 0:o.parent)||void 0===u?void 0:u.parent)||void 0===m?void 0:m.model;if(x&&x.gene&&x.gene[0])return x.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,S.j)("data","variants","nodes"),(0,D.U)(i=>i.map(g=>({value:g.id,label:g.name,variant:g}))))}ngAfterViewInit(){this.to.onSearch=i=>{i.length{this.displayAdd$.next(0==z.data.variants.nodes.filter(g=>g.name.toUpperCase()==i.toUpperCase()).length)}))}}addVariant(i){if(i&&""!=i&&this.to.geneId){let z=this.addVariantMutator.mutate(this.addVariantGQL,{name:i,geneId:this.to.geneId},{},g=>{var a;null===(a=this.field.formControl)||void 0===a||a.setValue({id:g.addVariant.variant.id,name:g.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});z.submitSuccess$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{g&&(this.success=!0)}),z.submitError$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{g&&(this.errorMessages=g,this.success=!1)}),z.isSubmitting$.pipe((0,A.R)(this.destroy$)).subscribe(g=>{this.loading=g})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return s.\u0275fac=function(i){return new(i||s)(e.Y36(M._eC),e.Y36(L.Y),e.Y36(M.LUc))},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-variant-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(i,z){if(1&i&&(e.YNc(0,r,6,9,"ng-container",0),e.YNc(1,_,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Z,2,3,"ng-template",null,2,e.W1O)),2&i){const g=e.MAs(2);e.Q6J("ngIf",!(null!=z.formControl.value&&z.formControl.value.id))("ngIfElse",g)}},directives:[y.O5,F.Vq,v.JJ,v.oH,C.VQ,y.sg,F.Ip,P.I,t.V,d.ix,h.dQ,V.w,k.Ls],pipes:[w.fM,U.A],styles:[""],changeDetection:0}),s})()};var R=n(4867),j=n(7008),W=n(9444);let X=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[y.ez,v.UX,w.WG,C.X0.forChild({types:[H]}),F.LV,d.sL,k.PV,R.Q,j.B,W.s]]}),s})()},7338:($,Q,n)=>{n.d(Q,{z:()=>B});var y=n(9808),N=n(9444),C=n(6949),I=n(8776),J=n(7484),S=n(5482),D=n(4546),A=n(1894),e=n(647),M=n(3610),L=n(8144),F=n(3618),v=n(5109),P=n(6789),t=n(5e3),d=n(2313);let h=(()=>{class l{constructor(f){this.sanitizer=f}transform(f){return this.sanitizer.bypassSecurityTrustHtml(f)}}return l.\u0275fac=function(f){return new(f||l)(t.Y36(d.H7,16))},l.\u0275pipe=t.Yjl({name:"sanitizeHtml",type:l,pure:!0}),l})();function V(l,E){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const f=t.oxw(2);t.xp6(1),t.Oqu(f.to.label)}}function k(l,E){if(1&l&&t._UZ(0,"i",11),2&l){t.oxw();const f=t.MAs(3);t.Q6J("nzPopoverContent",f)}}function w(l,E){if(1&l&&(t._UZ(0,"span",12),t.ALo(1,"sanitizeHtml")),2&l){const f=t.oxw(3);t.Q6J("innerHtml",t.lcZ(1,1,f.to.helpText),t.oJD)}}function U(l,E){1&l&&(t.ynx(0),t.YNc(1,k,1,1,"i",9),t.YNc(2,w,2,3,"ng-template",null,10,t.W1O),t.BQk())}function c(l,E){if(1&l&&(t.ynx(0),t.TgZ(1,"nz-form-label",7),t.TgZ(2,"nz-space"),t.YNc(3,V,2,1,"span",8),t.YNc(4,U,4,0,"ng-container",1),t.qZA(),t.qZA(),t.BQk()),2&l){const f=t.oxw();t.xp6(1),t.Q6J("nzRequired",f.to.required&&!0!==f.to.hideRequiredMarker)("nzFor",f.id),t.xp6(3),t.Q6J("ngIf",f.to.helpText)}}const p=function(l){return{hidden:l}},_={wrappers:[{name:"form-field",component:(()=>{class l extends I.n2{get errorState(){return this.showError?"error":""}}return l.\u0275fac=function(){let E;return function(Z){return(E||(E=t.n5z(l)))(Z||l)}}(),l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-form-field-wrapper"]],features:[t.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(f,Z){1&f&&(t.TgZ(0,"div",0),t.TgZ(1,"nz-form-item"),t.YNc(2,c,5,3,"ng-container",1),t.TgZ(3,"nz-form-control",2),t.GkF(4,null,3),t.qZA(),t.TgZ(6,"nz-typography",4),t._UZ(7,"formly-validation-message",5),t.qZA(),t.TgZ(8,"nz-typography",6),t._uU(9),t.qZA(),t.qZA(),t.qZA()),2&f&&(t.Q6J("ngClass",t.VKq(5,p,!0===Z.to.hidden)),t.xp6(2),t.Q6J("ngIf",Z.to.label&&!0!==Z.to.hideLabel),t.xp6(1),t.Q6J("nzValidateStatus",Z.errorState),t.xp6(4),t.Q6J("field",Z.field),t.xp6(2),t.hij(" ",Z.to.optionText," "))},directives:[y.mk,A.SK,D.Nx,y.O5,A.t3,D.iK,L.NU,L.$1,e.Ls,M.lU,D.Fd,F.ZU,I.u_],pipes:[h],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),l})()}]};let B=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[y.ez,C.WG,I.X0.forChild(_),A.Jb,J.vh,S.cD,P._,v.s,D.U5,e.PV,L.zf,M.$6,N.s,F.ZJ]]}),l})()},6559:($,Q,n)=>{n.d(Q,{H0:()=>U});var y=n(5e3),N=n(9808),C=n(226);let U=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=y.oAB({type:c}),c.\u0275inj=y.cJS({imports:[[C.vT,N.ez]]}),c})()}}]); \ No newline at end of file diff --git a/server/public/2033.abad74827f0132b1.js b/server/public/2033.abad74827f0132b1.js new file mode 100644 index 000000000..53301b84c --- /dev/null +++ b/server/public/2033.abad74827f0132b1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2033],{3416:(B,Q,n)=>{n.d(Q,{g:()=>F});var x=n(9808),A=n(4182),T=n(8776),P=n(3793),J=n(8054),Z=n(7338),k=n(8006),N=n(8390),e=n(915);const D={name:"disease-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Disease",helpText:"Please enter a disease name. If you are unable to locate the disease in the dropdown, please check the 'Could not find disease' checkbox below and enter the disease in the field that appears.",required:!1,addText:"Add a Disease",destroy$:new(n(8929).xQ)},fieldArray:{type:"cvc-disease-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(t,d,h)=>{var M,V;const L=null===(V=null===(M=null==h?void 0:h.parent)||void 0===M?void 0:M.templateOptions)||void 0===V?void 0:V.allowCreate;return void 0===L||L}}},defaultValue:[],validation:{messages:{required:(t,d)=>{const h=(null==d?void 0:d.form)?d.form.get("evidenceType"):null;return h?`${(0,e.E)(h.value)} Evidence requires a disease to be specified.`:"Disease is required."}}},hooks:{onInit:t=>{var d;const h=t.templateOptions,M=null===(d=null==t?void 0:t.options)||void 0===d?void 0:d.formState,V=(null==t?void 0:t.form)?t.form.get("evidenceType"):null;!V||(h.vcSub=V.valueChanges.subscribe(L=>{M.requiresDisease(L)?(h.hidden=!1,h.required=!0):(h.hidden=!0,h.required=!1,t.model.length>0&&(t.model.splice(1),h.remove(0)))}))},onDestroy:t=>{const d=t.templateOptions;d.vcSub&&d.vcSub.unsubscribe()}}}};var v=n(5e3);let F=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=v.oAB({type:t}),t.\u0275inj=v.cJS({imports:[[x.ez,A.u5,A.UX,J.LV,Z.z,P.F,T.X0.forChild({types:[D]}),k.I,N.N]]}),t})()},8006:(B,Q,n)=>{n.d(Q,{I:()=>g});var x=n(9808),A=n(8776),T=n(7625),P=n(373),J=n(4850),Z=n(8929),k=n(591),N=n(6123),e=n(5e3),E=n(712),O=n(9169),D=n(8054),v=n(4182),F=n(6949),t=n(8144),d=n(3618),h=n(4022),M=n(822),V=n(2683),L=n(1047),U=n(6042),c=n(2643),p=n(8926);function r(a,S){if(1&a&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&a){const o=e.oxw().$implicit,u=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,u.to.searchString),e.oJD)}}function y(a,S){if(1&a&&(e._UZ(0,"span",11),e.ALo(1,"highlightTypeahead")),2&a){const o=e.oxw().$implicit,u=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.disease.diseaseAliases.join(", "),u.to.searchString),e.oJD)}}function $(a,S){if(1&a&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,r,2,4,"span",8),e.YNc(3,y,2,4,"span",9),e.qZA(),e.qZA()),2&a){const o=S.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.disease)}}function l(a,S){if(1&a&&(e.ynx(0),e.YNc(1,$,4,2,"nz-option",6),e.BQk()),2&a){const o=S.ngrxLet;e.xp6(1),e.Q6J("ngForOf",o)}}function C(a,S){1&a&&e._uU(0," No disease found in CIViC that matches the string provided. ")}function f(a,S){if(1&a){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(2,l,2,1,"ng-container",4),e.qZA(),e.YNc(3,C,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&a){const o=e.MAs(4),u=e.oxw(),m=e.MAs(4);e.xp6(1),e.Q6J("formControl",u.formControl)("formlyAttributes",u.field)("nzPlaceHolder",u.to.placeholder?u.to.placeholder:null)("nzDropdownRender",u.to.allowCreate?m:null)("nzNotFoundContent",o)("nzShowArrow",u.to.showArrow)("nzFilterOption",u.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",u.diseases$)}}function w(a,S){if(1&a&&e._UZ(0,"cvc-disease-tag",12),2&a){const o=e.oxw();e.Q6J("disease",o.formControl.value)}}function b(a,S){if(1&a&&e._UZ(0,"cvc-form-errors-alert",18),2&a){const o=e.oxw(4);e.Q6J("errors",o.errorMessages)}}function R(a,S){if(1&a){const o=e.EpF();e.TgZ(0,"button",19),e.NdJ("click",function(){e.CHM(o);const m=e.oxw(4);return m.addDisease(m.to.searchString)}),e._UZ(1,"i",20),e._uU(2,"No Existing CIViC Disease\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Disease? "),e.qZA()}if(2&a){const o=e.oxw(4);e.Q6J("nzLoading",o.loading),e.xp6(4),e.Oqu(o.to.searchString)}}function j(a,S){if(1&a){const o=e.EpF();e.ynx(0),e.YNc(1,b,1,1,"cvc-form-errors-alert",14),e.TgZ(2,"nz-input-group",15),e.TgZ(3,"input",16),e.NdJ("ngModelChange",function(m){return e.CHM(o),e.oxw(3).enteredDoid=m}),e.qZA(),e.qZA(),e.YNc(4,R,6,2,"button",17),e.BQk()}if(2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.errorMessages.length>0),e.xp6(2),e.Q6J("ngModel",o.enteredDoid),e.xp6(1),e.Q6J("ngIf",0==o.errorMessages.length)}}function H(a,S){if(1&a&&(e.ynx(0),e.YNc(1,j,5,3,"ng-container",13),e.BQk()),2&a){const o=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==o.to.searchString&&o.to.searchString.length>=5)}}function W(a,S){if(1&a&&(e.YNc(0,H,2,1,"ng-container",13),e.ALo(1,"ngrxPush")),2&a){const o=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,o.displayAdd$))}}const s={name:"cvc-disease-input",component:(()=>{class a extends A.fS{constructor(o,u,m){super(),this.diseaseTypeaheadQuery=o,this.networkErrorService=u,this.addDiseaseGQL=m,this.destroy$=new Z.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.enteredDoid="",this.displayAdd$=new k.X(!1),this.addDiseaseMutator=new N.U(u),this.defaultOptions={templateOptions:{placeholder:"Search Diseases",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.diseaseTypeaheadQuery.watch({name:"zzzz"}),this.diseases$=this.queryRef.valueChanges.pipe((0,T.R)(this.destroy$),(0,P.j)("data","diseaseTypeahead"),(0,J.U)(o=>o.map(m=>{let _=m.doid?`DOID:${m.doid}`:"no DOID",Y=m.diseaseAliases.length>0?`Aliases: ${m.diseaseAliases.join(", ")}`:"";return{value:m.id,tooltip:`${m.displayName} (${_}) ${Y}`,label:`${m.displayName} (${_})`,disease:m}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{this.displayAdd$.next(0==u.data.diseaseTypeahead.filter(m=>m.displayName.toUpperCase()==o.toUpperCase()).length)}))}}addDisease(o){if(o&&""!=o){let m=this.addDiseaseMutator.mutate(this.addDiseaseGQL,{name:o,doid:+this.enteredDoid?+this.enteredDoid:void 0},{},_=>{var Y;null===(Y=this.field.formControl)||void 0===Y||Y.setValue({id:_.addDisease.disease.id,name:_.addDisease.disease.name}),this.to.searchString="",this.to.searchLength=0});m.submitSuccess$.pipe((0,T.R)(this.destroy$)).subscribe(_=>{_&&(this.success=!0)}),m.submitError$.pipe((0,T.R)(this.destroy$)).subscribe(_=>{_&&(this.errorMessages=_,this.success=!1)}),m.isSubmitting$.pipe((0,T.R)(this.destroy$)).subscribe(_=>{this.loading=_})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return a.\u0275fac=function(o){return new(o||a)(e.Y36(E.kv3),e.Y36(O.Y),e.Y36(E.KNk))},a.\u0275cmp=e.Xpm({type:a,selectors:[["cvc-disease-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["diseaseListItem",""],["addDiseaseTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml",4,"nzSpaceItem"],[3,"innerHtml"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"disease"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nzAddOnBefore","DOID:"],["type","text","nz-input","","placeholder","Optional DOID",3,"ngModel","ngModelChange"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(o,u){if(1&o&&(e.YNc(0,f,5,8,"ng-container",0),e.YNc(1,w,1,1,"ng-template",null,1,e.W1O),e.YNc(3,W,2,3,"ng-template",null,2,e.W1O)),2&o){const m=e.MAs(2);e.Q6J("ngIf",!(null!=u.formControl.value&&u.formControl.value.id))("ngIfElse",m)}},directives:[x.O5,D.Vq,v.JJ,v.oH,A.VQ,F.eJ,x.sg,D.Ip,t.NU,t.$1,d.ZU,h.n,M.V,V.w,L.gB,L.Zp,v.Fj,v.On,U.ix,c.dQ],pipes:[p.A,F.fM],styles:[""]}),a})()};var I=n(3580),i=n(7008),z=n(9444);let g=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[x.ez,v.UX,F.WG,A.X0.forChild({types:[s]}),D.LV,I.Q,d.ZJ,t.zf,U.sL,i.B,L.o7,v.u5,z.s]]}),a})()},5926:(B,Q,n)=>{n.d(Q,{J:()=>D});var x=n(9808),A=n(4182),T=n(8776),P=n(3793),J=n(304),Z=n(8054),k=n(4181),N=n(8390);const E={name:"variant-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant",helpText:"Description of the type of variant (e.g., V600E, BCR-ABL fusion, Loss-of-function, exon 12 mutations). Should be as specific as possible (i.e., specific amino acid changes).",required:!1,addText:"Specify a Variant"},fieldArray:{type:"variant-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(v,F,t)=>{var d,h;const M=null===(h=null===(d=null==t?void 0:t.parent)||void 0===d?void 0:d.templateOptions)||void 0===h?void 0:h.allowCreate;return void 0===M||M}}},hideExpression:(v,F,t)=>{const d=(null==t?void 0:t.form)?t.form.get("gene"):null;return!d||!d.value||!d.value[0]},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Variant be specified."}}}};var O=n(5e3);let D=(()=>{class v{}return v.\u0275fac=function(t){return new(t||v)},v.\u0275mod=O.oAB({type:v}),v.\u0275inj=O.cJS({imports:[[x.ez,A.u5,A.UX,Z.LV,J.F,P.F,T.X0.forChild({types:[E]}),k.O,N.N]]}),v})()},4181:(B,Q,n)=>{n.d(Q,{O:()=>X});var x=n(9808),A=n(6123),T=n(8776),P=n(8929),J=n(591),Z=n(373),k=n(4850),N=n(7625),e=n(5e3),E=n(712),O=n(9169),D=n(8054),v=n(4182),F=n(8664),t=n(822),d=n(6042),h=n(2643),M=n(2683),V=n(647),L=n(6949),U=n(8926);function c(s,I){if(1&s&&(e.TgZ(0,"nz-option",6),e._UZ(1,"span",7),e.ALo(2,"highlightTypeahead"),e.qZA()),2&s){const i=I.$implicit,z=e.oxw(2);e.Q6J("nzValue",i.variant),e.xp6(1),e.Q6J("innerHtml",e.xi3(2,2,i.label,z.to.searchString),e.oJD)}}function p(s,I){1&s&&e._uU(0," No variant found in CIViC that matches the string provided. ")}function r(s,I){if(1&s){const i=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(g){return e.CHM(i),e.oxw().to.onSearch(g)}),e.YNc(2,c,3,5,"nz-option",4),e.ALo(3,"ngrxPush"),e.qZA(),e.YNc(4,p,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&s){const i=e.MAs(5),z=e.oxw(),g=e.MAs(4);e.xp6(1),e.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzDropdownRender",z.to.allowCreate?g:null)("nzNotFoundContent",i)("nzShowArrow",z.to.showArrow),e.xp6(1),e.Q6J("ngForOf",e.lcZ(3,7,z.variants$))}}function y(s,I){if(1&s&&e._UZ(0,"cvc-variant-tag",8),2&s){const i=e.oxw();e.Q6J("variant",i.formControl.value)}}function $(s,I){if(1&s&&e._UZ(0,"cvc-form-errors-alert",12),2&s){const i=e.oxw(4);e.Q6J("errors",i.errorMessages)}}function l(s,I){if(1&s){const i=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(i);const g=e.oxw(4);return g.addVariant(g.to.searchString)}),e._UZ(1,"i",14),e._uU(2,"No Existing CIViC Variant\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Variant? "),e.qZA()}if(2&s){const i=e.oxw(4);e.Q6J("nzLoading",i.loading),e.xp6(4),e.Oqu(i.to.searchString)}}function C(s,I){if(1&s&&(e.ynx(0),e.YNc(1,$,1,1,"cvc-form-errors-alert",10),e.YNc(2,l,6,2,"button",11),e.BQk()),2&s){const i=e.oxw(3);e.xp6(1),e.Q6J("ngIf",i.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==i.errorMessages.length)}}function f(s,I){if(1&s&&(e.ynx(0),e.YNc(1,C,3,2,"ng-container",9),e.BQk()),2&s){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==i.to.searchString)}}function w(s,I){if(1&s&&(e.YNc(0,f,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&s){const i=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,i.displayAdd$))}}const R={name:"variant-input",component:(()=>{class s extends T.fS{constructor(i,z,g){super(),this.variantTypeaheadQuery=i,this.networkErrorService=z,this.addVariantGQL=g,this.destroy$=new P.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new J.X(!1),this.addVariantMutator=new A.U(z),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(a,S,o)=>{var u,m;let _=null===(m=null===(u=null==o?void 0:o.parent)||void 0===u?void 0:u.parent)||void 0===m?void 0:m.model;if(_&&_.gene&&_.gene[0])return _.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,Z.j)("data","variants","nodes"),(0,k.U)(i=>i.map(g=>({value:g.id,label:g.name,variant:g}))))}ngAfterViewInit(){this.to.onSearch=i=>{i.length{this.displayAdd$.next(0==z.data.variants.nodes.filter(g=>g.name.toUpperCase()==i.toUpperCase()).length)}))}}addVariant(i){if(i&&""!=i&&this.to.geneId){let z=this.addVariantMutator.mutate(this.addVariantGQL,{name:i,geneId:this.to.geneId},{},g=>{var a;null===(a=this.field.formControl)||void 0===a||a.setValue({id:g.addVariant.variant.id,name:g.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});z.submitSuccess$.pipe((0,N.R)(this.destroy$)).subscribe(g=>{g&&(this.success=!0)}),z.submitError$.pipe((0,N.R)(this.destroy$)).subscribe(g=>{g&&(this.errorMessages=g,this.success=!1)}),z.isSubmitting$.pipe((0,N.R)(this.destroy$)).subscribe(g=>{this.loading=g})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return s.\u0275fac=function(i){return new(i||s)(e.Y36(E._eC),e.Y36(O.Y),e.Y36(E.LUc))},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-variant-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(i,z){if(1&i&&(e.YNc(0,r,6,9,"ng-container",0),e.YNc(1,y,1,1,"ng-template",null,1,e.W1O),e.YNc(3,w,2,3,"ng-template",null,2,e.W1O)),2&i){const g=e.MAs(2);e.Q6J("ngIf",!(null!=z.formControl.value&&z.formControl.value.id))("ngIfElse",g)}},directives:[x.O5,D.Vq,v.JJ,v.oH,T.VQ,x.sg,D.Ip,F.I,t.V,d.ix,h.dQ,M.w,V.Ls],pipes:[L.fM,U.A],styles:[""],changeDetection:0}),s})()};var j=n(4867),H=n(7008),W=n(9444);let X=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[x.ez,v.UX,L.WG,T.X0.forChild({types:[R]}),D.LV,d.sL,V.PV,j.Q,H.B,W.s]]}),s})()},7338:(B,Q,n)=>{n.d(Q,{z:()=>$});var x=n(9808),A=n(9444),T=n(6949),P=n(8776),J=n(7484),Z=n(5482),k=n(4546),N=n(1894),e=n(647),E=n(3610),O=n(8144),D=n(3618),v=n(5109),F=n(6789),t=n(5e3),d=n(2313);let h=(()=>{class l{constructor(f){this.sanitizer=f}transform(f){return this.sanitizer.bypassSecurityTrustHtml(f)}}return l.\u0275fac=function(f){return new(f||l)(t.Y36(d.H7,16))},l.\u0275pipe=t.Yjl({name:"sanitizeHtml",type:l,pure:!0}),l})();function M(l,C){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const f=t.oxw(2);t.xp6(1),t.Oqu(f.to.label)}}function V(l,C){if(1&l&&t._UZ(0,"i",11),2&l){t.oxw();const f=t.MAs(3);t.Q6J("nzPopoverContent",f)}}function L(l,C){if(1&l&&(t._UZ(0,"span",12),t.ALo(1,"sanitizeHtml")),2&l){const f=t.oxw(3);t.Q6J("innerHtml",t.lcZ(1,1,f.to.helpText),t.oJD)}}function U(l,C){1&l&&(t.ynx(0),t.YNc(1,V,1,1,"i",9),t.YNc(2,L,2,3,"ng-template",null,10,t.W1O),t.BQk())}function c(l,C){if(1&l&&(t.ynx(0),t.TgZ(1,"nz-form-label",7),t.TgZ(2,"nz-space"),t.YNc(3,M,2,1,"span",8),t.YNc(4,U,4,0,"ng-container",1),t.qZA(),t.qZA(),t.BQk()),2&l){const f=t.oxw();t.xp6(1),t.Q6J("nzRequired",f.to.required&&!0!==f.to.hideRequiredMarker)("nzFor",f.id),t.xp6(3),t.Q6J("ngIf",f.to.helpText)}}const p=function(l){return{hidden:l}},y={wrappers:[{name:"form-field",component:(()=>{class l extends P.n2{get errorState(){return this.showError?"error":""}}return l.\u0275fac=function(){let C;return function(w){return(C||(C=t.n5z(l)))(w||l)}}(),l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-form-field-wrapper"]],features:[t.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(f,w){1&f&&(t.TgZ(0,"div",0),t.TgZ(1,"nz-form-item"),t.YNc(2,c,5,3,"ng-container",1),t.TgZ(3,"nz-form-control",2),t.GkF(4,null,3),t.qZA(),t.TgZ(6,"nz-typography",4),t._UZ(7,"formly-validation-message",5),t.qZA(),t.TgZ(8,"nz-typography",6),t._uU(9),t.qZA(),t.qZA(),t.qZA()),2&f&&(t.Q6J("ngClass",t.VKq(5,p,!0===w.to.hidden)),t.xp6(2),t.Q6J("ngIf",w.to.label&&!0!==w.to.hideLabel),t.xp6(1),t.Q6J("nzValidateStatus",w.errorState),t.xp6(4),t.Q6J("field",w.field),t.xp6(2),t.hij(" ",w.to.optionText," "))},directives:[x.mk,N.SK,k.Nx,x.O5,N.t3,k.iK,O.NU,O.$1,e.Ls,E.lU,k.Fd,D.ZU,P.u_],pipes:[h],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),l})()}]};let $=(()=>{class l{}return l.\u0275fac=function(f){return new(f||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[x.ez,T.WG,P.X0.forChild(y),N.Jb,J.vh,Z.cD,F._,v.s,k.U5,e.PV,O.zf,E.$6,A.s,D.ZJ]]}),l})()},6559:(B,Q,n)=>{n.d(Q,{H0:()=>U});var x=n(5e3),A=n(9808),T=n(226);let U=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=x.oAB({type:c}),c.\u0275inj=x.cJS({imports:[[T.vT,A.ez]]}),c})()}}]); \ No newline at end of file diff --git a/server/public/2043.b51aa809e339fb1c.js b/server/public/2043.294d549568ae5d6d.js similarity index 99% rename from server/public/2043.b51aa809e339fb1c.js rename to server/public/2043.294d549568ae5d6d.js index 073e8bde7..8418c84d8 100644 --- a/server/public/2043.b51aa809e339fb1c.js +++ b/server/public/2043.294d549568ae5d6d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2043],{7948:(W,N,e)=>{e.d(N,{m:()=>_});var t=e(5e3),f=e(9808),o=e(125),n=e(9297),y=e(3193),x=e(8664),D=e(112),S=e(9001),M=e(2826),Z=e(5749),I=e(8481),L=e(647);function P(a,u){if(1&a&&(t.ynx(0),t._UZ(1,"span",2),t.BQk()),2&a){const s=t.oxw().$implicit;t.xp6(1),t.Q6J("innerHtml",s.text,t.oJD)}}function A(a,u){if(1&a&&(t.ynx(0),t._UZ(1,"cvc-user-tag",3),t.BQk()),2&a){const s=t.oxw().$implicit;t.xp6(1),t.Q6J("user",s)}}const O=function(a,u,s){return{id:a,name:u,link:s}};function B(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-revision-tag",6),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("revision",t.kEZ(1,O,s.entityId,s.displayName,s.link))}}function $(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-gene-tag",7),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("gene",t.kEZ(1,O,s.entityId,s.displayName,s.link))}}function Q(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-tag",8),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("variant",t.kEZ(1,O,s.entityId,s.displayName,s.link))}}function U(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-group-tag",9),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("variantgroup",t.kEZ(1,O,s.entityId,s.displayName,s.link))}}const E=function(a,u,s,J){return{id:a,name:u,status:s,link:J}};function v(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-evidence-tag",10),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("evidence",t.l5B(1,E,s.entityId,s.displayName,s.status,s.link))}}function T(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-assertion-tag",11),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("assertion",t.l5B(1,E,s.entityId,s.displayName,s.status,s.link))}}const l=function(a,u){return{id:a,name:u}};function p(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-organization-tag",12),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("org",t.WLB(1,l,s.entityId,s.displayName))}}function z(a,u){if(1&a&&(t.TgZ(0,"span"),t.TgZ(1,"nz-tag"),t._UZ(2,"i",13),t._uU(3),t.qZA(),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(2),t.MGl("nzType","civic-",s.displayName.slice(0,-1),""),t.xp6(1),t.hij(" ",s.displayName,"")}}function m(a,u){if(1&a&&(t.ynx(0),t.ynx(1,4),t.YNc(2,B,2,5,"span",5),t.YNc(3,$,2,5,"span",5),t.YNc(4,Q,2,5,"span",5),t.YNc(5,U,2,5,"span",5),t.YNc(6,v,2,6,"span",5),t.YNc(7,T,2,6,"span",5),t.YNc(8,p,2,4,"span",5),t.YNc(9,z,4,2,"span",5),t.BQk(),t.BQk()),2&a){const s=t.oxw().$implicit;t.xp6(1),t.Q6J("ngSwitch",s.tagType),t.xp6(1),t.Q6J("ngSwitchCase","REVISION"),t.xp6(1),t.Q6J("ngSwitchCase","GENE"),t.xp6(1),t.Q6J("ngSwitchCase","VARIANT"),t.xp6(1),t.Q6J("ngSwitchCase","VARIANT_GROUP"),t.xp6(1),t.Q6J("ngSwitchCase","EVIDENCE_ITEM"),t.xp6(1),t.Q6J("ngSwitchCase","ASSERTION"),t.xp6(1),t.Q6J("ngSwitchCase","ORGANIZATION"),t.xp6(1),t.Q6J("ngSwitchCase","ROLE")}}function C(a,u){if(1&a&&(t.ynx(0),t.YNc(1,P,2,1,"ng-container",1),t.YNc(2,A,2,1,"ng-container",1),t.YNc(3,m,10,9,"ng-container",1),t.BQk()),2&a){const s=u.$implicit;t.xp6(1),t.Q6J("ngIf","CommentTextSegment"==s.__typename),t.xp6(1),t.Q6J("ngIf","User"==s.__typename),t.xp6(1),t.Q6J("ngIf","CommentTagSegment"==s.__typename)}}let _=(()=>{class a{ngOnInit(){if(void 0===this.commentBodySegments)throw new Error("Must pass a list of comment body segments into comment body component.")}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-comment-body"]],inputs:{commentBodySegments:"commentBodySegments"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"innerHtml"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision"],[3,"gene"],[3,"variant"],[3,"variantgroup"],[3,"evidence"],[3,"assertion"],[3,"org"],["nz-icon","","nzTheme","twotone","nzTwotoneColor","#A0D8F5",3,"nzType"]],template:function(s,J){1&s&&t.YNc(0,C,4,3,"ng-container",0),2&s&&t.Q6J("ngForOf",J.commentBodySegments)},directives:[f.sg,f.O5,o.I,f.RF,f.n9,n.p,y.H,x.I,D.u,S.O,M.w,Z.m,I.j,L.Ls],styles:[""]}),a})()},3801:(W,N,e)=>{e.d(N,{D:()=>ln});var t=e(712),f=e(4850),o=e(373),n=e(5e3),y=e(9808),x=e(1894),D=e(8144),S=e(7484),M=e(3762),Z=e(6042),I=e(2683),L=e(1344),P=e(6699),A=e(7948),O=e(8625);function B(c,d){if(1&c&&n._UZ(0,"nz-avatar",4),2&c){const i=n.oxw();n.Q6J("nzSrc",i.comment.commenter.profileImagePath)}}function $(c,d){1&c&&n._UZ(0,"nz-avatar",5)}let Q=(()=>{class c{ngOnInit(){if(void 0===this.comment)throw new Error("Must pass a comment into comment display component.")}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-display"]],inputs:{comment:"comment"},decls:7,vars:7,consts:[[3,"nzAuthor","nzDatetime"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],[3,"commentBodySegments"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","","nzIcon","civic:curator"]],template:function(i,r){if(1&i&&(n.TgZ(0,"nz-comment",0),n.ALo(1,"timeago"),n.YNc(2,B,1,1,"nz-avatar",1),n.YNc(3,$,1,0,"ng-template",null,2,n.W1O),n.TgZ(5,"nz-comment-content"),n._UZ(6,"cvc-comment-body",3),n.qZA(),n.qZA()),2&i){const g=n.MAs(4);n.Q6J("nzAuthor",r.comment.commenter.displayName)("nzDatetime",n.lcZ(1,5,r.comment.createdAt)),n.xp6(2),n.Q6J("ngIf",r.comment.commenter.profileImagePath)("ngIfElse",g),n.xp6(4),n.Q6J("commentBodySegments",r.comment.parsedComment)}},directives:[L.WE,y.O5,P.Dz,L.DA,L.Y4,A.m],pipes:[O.wr],styles:[""]}),c})();var U=e(8929),E=e(7625),v=e(6123),T=e(9350),l=e(9169),p=e(2359),z=e(4182),m=e(4546),C=e(822),_=e(9383),a=e(7525),u=e(9180),s=e(8227),J=e(2643),h=e(1793);function F(c,d){if(1&c){const i=n.EpF();n.TgZ(0,"nz-alert",7),n.NdJ("nzOnClose",function(){return n.CHM(i),n.oxw().onSuccessBannerClose()}),n.qZA()}}function Y(c,d){if(1&c&&(n.TgZ(0,"nz-form-item"),n._UZ(1,"cvc-form-errors-alert",8),n.qZA()),2&c){const i=n.oxw();n.xp6(1),n.Q6J("errors",i.errorMessages)}}let w=(()=>{class c{constructor(i,r,g){this.viewerService=i,this.addCommentGql=r,this.networkErrorService=g,this.commentAddedEvent=new n.vpe,this.destroy$=new U.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,E.R)(this.destroy$)).subscribe(R=>{this.organizations=R.organizations,this.mostRecentOrg=R.mostRecentOrg}),this.addCommentMutator=new v.U(g)}selectOrg(i){this.mostRecentOrg=i}submitComment(){if(this.commentText){this.errorMessages=[];let r=this.addCommentMutator.mutate(this.addCommentGql,{input:{body:this.commentText,subject:this.subject,organizationId:void 0===this.mostRecentOrg?void 0:this.mostRecentOrg.id}});r.submitSuccess$.pipe((0,E.R)(this.destroy$)).subscribe(g=>{g&&(this.resetForm(),this.success=!0)}),r.submitError$.pipe((0,E.R)(this.destroy$)).subscribe(g=>{g&&(this.errorMessages=g,this.success=!1)}),r.isSubmitting$.pipe((0,E.R)(this.destroy$)).subscribe(g=>{this.loading=g})}}resetForm(){this.commentText="",this.commentAddedEvent.emit()}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(n.Y36(T.a),n.Y36(t.iGM),n.Y36(l.Y))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-add-form"]],inputs:{subject:"subject"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:12,vars:6,consts:[["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[4,"ngIf"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"]],template:function(i,r){1&i&&(n.TgZ(0,"nz-card"),n.YNc(1,F,1,0,"nz-alert",0),n.TgZ(2,"form",1),n.NdJ("ngSubmit",function(){return r.submitComment()}),n.YNc(3,Y,2,1,"nz-form-item",2),n.TgZ(4,"cvc-comment-input-form",3),n.NdJ("commentChange",function(R){return r.commentText=R}),n.qZA(),n.TgZ(5,"nz-spin",4),n.TgZ(6,"nz-form-item"),n.TgZ(7,"nz-form-control"),n.TgZ(8,"cvc-form-buttons"),n.TgZ(9,"cvc-org-selector-btn-group",5),n.NdJ("selectedOrgChange",function(R){return r.mostRecentOrg=R}),n.TgZ(10,"button",6),n._uU(11," Add Comment "),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&i&&(n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(2),n.Q6J("ngIf",r.errorMessages.length>0),n.xp6(1),n.Q6J("comment",r.commentText),n.xp6(1),n.Q6J("nzSpinning",r.loading),n.xp6(4),n.Q6J("selectedOrg",r.mostRecentOrg),n.xp6(1),n.Q6J("disabled",r.loading||!(void 0!==r.commentText&&r.commentText.length>=10)))},directives:[S.bd,y.O5,p.r,z._Y,z.JL,z.F,m.Lr,x.SK,m.Nx,C.V,_.b,a.W,x.t3,m.Fd,u.Z,s.q,Z.ix,J.dQ,h.m,I.w],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2}),c})();var K=e(8747),G=e(647),H=e(6949),j=e(9058);function V(c,d){if(1&c){const i=n.EpF();n.TgZ(0,"div",18),n.TgZ(1,"button",19),n.NdJ("click",function(){n.CHM(i);const g=n.oxw().ngIf;return n.oxw(3).onLoadMore(g.startCursor)}),n._uU(2,"Load older comments "),n.qZA(),n.qZA()}}function b(c,d){if(1&c&&(n.TgZ(0,"nz-list-header"),n.YNc(1,V,3,0,"div",17),n.qZA()),2&c){const i=d.ngIf;n.xp6(1),n.Q6J("ngIf",i.hasPreviousPage)}}function X(c,d){if(1&c&&(n.TgZ(0,"nz-list-item"),n._UZ(1,"cvc-comment-display",20),n.qZA()),2&c){const i=d.$implicit;n.xp6(1),n.Q6J("comment",i)}}function q(c,d){if(1&c&&(n.TgZ(0,"nz-card",13),n.TgZ(1,"nz-list",14),n.ALo(2,"ngrxPush"),n.ALo(3,"ngrxPush"),n.YNc(4,b,2,1,"nz-list-header",15),n.ALo(5,"ngrxPush"),n.YNc(6,X,2,1,"ng-template",null,16,n.W1O),n.qZA(),n.qZA()),2&c){const i=n.MAs(7),r=n.oxw(2);n.xp6(1),n.Q6J("nzDataSource",n.lcZ(2,4,r.comments$))("nzLoading",n.lcZ(3,6,r.loading$))("nzRenderItem",i),n.xp6(3),n.Q6J("ngIf",n.lcZ(5,8,r.pageInfo$))}}function k(c,d){if(1&c){const i=n.EpF();n.TgZ(0,"cvc-comment-add-form",21),n.NdJ("commentAddedEvent",function(){return n.CHM(i),n.oxw(2).refreshList()}),n.qZA()}if(2&c){const i=n.oxw(2);n.Q6J("subject",i.commentable)}}function nn(c,d){if(1&c&&n._UZ(0,"nz-avatar",24),2&c){const i=n.oxw().$implicit;n.Q6J("nzSrc",i.profileImagePath)}}function tn(c,d){if(1&c&&(n._UZ(0,"nz-avatar",25),n.ALo(1,"uppercase")),2&c){const i=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,i.displayName.charAt(0)))}}function en(c,d){if(1&c&&(n.YNc(0,nn,1,1,"nz-avatar",22),n.YNc(1,tn,2,3,"ng-template",null,23,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&c){const i=d.$implicit,r=n.MAs(2);n.Q6J("ngIf",i.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(i.displayName)}}function on(c,d){if(1&c&&n._UZ(0,"nz-avatar",24),2&c){const i=n.oxw().$implicit;n.Q6J("nzSrc",i.profileImagePath)}}function mn(c,d){if(1&c&&(n._UZ(0,"nz-avatar",25),n.ALo(1,"uppercase")),2&c){const i=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,i.displayName.charAt(0)))}}function cn(c,d){if(1&c&&(n.YNc(0,on,1,1,"nz-avatar",22),n.YNc(1,mn,2,3,"ng-template",null,23,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&c){const i=d.$implicit,r=n.MAs(2);n.Q6J("ngIf",i.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(i.displayName)}}function an(c,d){if(1&c&&(n._UZ(0,"nz-avatar",26),n.TgZ(1,"span"),n._uU(2),n.qZA()),2&c){const i=d.$implicit;n.MGl("nzIcon","civic-",i.tag.displayName,""),n.xp6(2),n.hij("",i.tag.displayName,"s")}}function sn(c,d){if(1&c&&(n._UZ(0,"i",27),n.ALo(1,"iconNameForSubscribableEntity"),n.TgZ(2,"span"),n._uU(3),n.qZA()),2&c){const i=d.$implicit;n.Q6J("nzType",n.lcZ(1,2,i.tag.tagType)),n.xp6(3),n.Oqu(i.tag.displayName)}}function rn(c,d){if(1&c){const i=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2),n.TgZ(2,"nz-col",3),n.TgZ(3,"nz-space",4),n.YNc(4,q,8,10,"nz-card",5),n.YNc(5,k,1,1,"cvc-comment-add-form",6),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",7),n.TgZ(7,"cvc-participant-list",8),n.NdJ("participantSelectedEvent",function(g){return n.CHM(i),n.oxw().onCommenterSelected(g)}),n.ALo(8,"ngrxPush"),n.YNc(9,en,5,3,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",10),n.NdJ("participantSelectedEvent",function(g){return n.CHM(i),n.oxw().onMentionedUserSelected(g)}),n.ALo(12,"ngrxPush"),n.YNc(13,cn,5,3,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(g){return n.CHM(i),n.oxw().onMentionedRoleSelected(g)}),n.ALo(16,"ngrxPush"),n.YNc(17,an,3,2,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(g){return n.CHM(i),n.oxw().onMentionedEntitySelected(g)}),n.ALo(20,"ngrxPush"),n.YNc(21,sn,4,4,"ng-template",null,9,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&c){const i=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(6),n.Q6J("participantList",n.lcZ(8,5,i.commenters$)),n.xp6(4),n.Q6J("participantList",n.lcZ(12,7,i.mentionedUsers$)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,9,i.mentionedRoles$)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,11,i.mentionedEntities$))}}function _n(c,d){if(1&c){const i=n.EpF();n.TgZ(0,"cvc-comment-add-form",21),n.NdJ("commentAddedEvent",function(){return n.CHM(i),n.oxw().refreshList()}),n.qZA()}if(2&c){const i=n.oxw();n.Q6J("subject",i.commentable)}}let ln=(()=>{class c{constructor(i){this.gql=i,this.pageSize=5}ngOnInit(){this.queryRef$=this.gql.watch({subject:this.commentable,last:this.pageSize,sortBy:{column:t.h01.Created,direction:t.SrV.Asc}});let i=this.queryRef$.valueChanges;this.pageInfo$=i.pipe((0,f.U)(({data:r})=>r.comments.pageInfo)),this.loading$=i.pipe((0,f.U)(({loading:r})=>r)),this.comments$=i.pipe((0,f.U)(({data:r})=>r.comments.edges.map(g=>g.node))),this.commenters$=i.pipe((0,f.U)(({data:r})=>r.comments.uniqueCommenters)),this.mentionedUsers$=i.pipe((0,f.U)(({data:r})=>r.comments.mentionedUsers)),this.mentionedRoles$=i.pipe((0,f.U)(({data:r})=>r.comments.mentionedRoles.map(g=>({id:`${g.entityId}-${g.tagType}`,tag:g})))),this.mentionedEntities$=i.pipe((0,f.U)(({data:r})=>r.comments.mentionedEntities.map(g=>({id:`${g.entityId}-${g.tagType}`,tag:g})))),this.unfilteredCount$=i.pipe((0,o.j)("data","comments","unfilteredCountForSubject"))}onLoadMore(i){this.queryRef$.fetchMore({variables:{last:this.pageSize,before:i}})}onCommenterSelected(i){this.queryRef$.refetch({originatingUserId:null==i?void 0:i.id})}onMentionedUserSelected(i){this.queryRef$.refetch({mentionedUserId:null==i?void 0:i.id})}onMentionedRoleSelected(i){if(i){let r=t.i44[i.tag.displayName[0].toUpperCase()+i.tag.displayName.slice(1)];this.queryRef$.refetch({mentionedRole:r})}else this.queryRef$.refetch({mentionedRole:void 0})}onMentionedEntitySelected(i){this.queryRef$.refetch(i?{mentionedEntity:{entityType:i.tag.tagType,id:i.tag.entityId}}:{mentionedEntity:void 0})}refreshList(){this.queryRef$.refetch()}}return c.\u0275fac=function(i){return new(i||c)(n.Y36(t.iST))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-list"]],inputs:{commentable:"commentable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noComments",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical",2,"width","100%"],["nzTitle","Comments",4,"nzSpaceItem"],["id","addComment",3,"subject","commentAddedEvent",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Commenters",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Mentioned Users",3,"participantList","participantSelectedEvent"],["listTitle","Mentioned Roles",3,"participantList","participantSelectedEvent"],["listTitle","Mentioned Entities",3,"participantList","participantSelectedEvent"],["nzTitle","Comments"],["nzSize","small","nzItemLayout","horizontal",3,"nzDataSource","nzLoading","nzRenderItem"],[4,"ngIf"],["comment",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","link","nzSize","small","nzBlock","",3,"click"],[3,"comment"],["id","addComment",3,"subject","commentAddedEvent"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],[3,"nzIcon"],["nz-icon","",3,"nzType"]],template:function(i,r){if(1&i&&(n.YNc(0,rn,23,13,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,_n,1,1,"ng-template",null,1,n.W1O)),2&i){const g=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",g)}},directives:[y.O5,x.SK,x.t3,D.NU,D.$1,S.bd,M.n_,M.t4,Z.ix,I.w,M.AA,Q,w,K.l,P.Dz,G.Ls],pipes:[H.fM,y.gd,j.j],styles:["[_nghost-%COMP%]{display:block}nz-list-header[_ngcontent-%COMP%]{padding:0;margin:0}nz-list-header[_ngcontent-%COMP%] [nz-list-load-more][_ngcontent-%COMP%]{margin-top:-.5em;padding-bottom:.5em}"]}),c})()},2278:(W,N,e)=>{e.d(N,{l:()=>J});var t=e(9808),f=e(1894),o=e(7484),n=e(3762),y=e(6699),x=e(8144),D=e(6949),S=e(6559),M=e(1150),Z=e(1344),I=e(8625),L=e(7026),P=e(8909),A=e(5e3);let O=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=A.oAB({type:h}),h.\u0275inj=A.cJS({imports:[[t.ez,Z.YM,y.Rt,I.$L.forChild({formatter:{useClass:L.x,provide:I.KP}}),P.m]]}),h})();var B=e(4182),$=e(8776),Q=e(4546),U=e(7008),E=e(1825),v=e(4375),T=e(6042),l=e(4623),p=e(868),z=e(7525),m=e(4921),C=e(4509),_=e(2359);let a=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=A.oAB({type:h}),h.\u0275inj=A.cJS({imports:[[t.ez,B.UX,D.WG,T.sL,o.vh,p.we,Q.U5,z.j,m.Gl,_.L,B.u5,$.X0,U.B,E.A,v.R,P.m,l.K,C.w]]}),h})();var u=e(647),s=e(9444);let J=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=A.oAB({type:h}),h.\u0275inj=A.cJS({imports:[[t.ez,D.WG,T.sL,f.Jb,o.vh,n.Ph,u.PV,s.s,y.Rt,x.zf,S.H0,a,M.N,O]]}),h})()},9058:(W,N,e)=>{e.d(N,{j:()=>o});var t=e(712),f=e(5e3);let o=(()=>{class n{transform(x){switch(x){case"ASSERTION":case"Assertion":case t.o71.Assertion:return"civic:assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case t.o71.EvidenceItem:return"civic:evidence";case"GENE":case"Gene":case t.o71.Gene:return"civic:gene";case t.o71.Revision:case"REVISION":case"Revision":return"civic:revision";case t.o71.Variant:case"VARIANT":case"Variant":return"civic:variant";case t.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGroup":return"civic:variant-group";default:return console.log("String No icon name found for "+x),"border-outer"}}}return n.\u0275fac=function(x){return new(x||n)},n.\u0275pipe=f.Yjl({name:"iconNameForSubscribableEntity",type:n,pure:!0}),n})()},9383:(W,N,e)=>{e.d(N,{b:()=>E});var t=e(5e3),f=e(8929),o=e(712),n=e(4850),y=e(7625),x=e(1059),D=e(9350),S=e(6949),M=e(868),Z=e(4921),I=e(4182),L=e(9808),P=e(7525),A=e(7948);function O(v,T){if(1&v&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.BQk()),2&v){const l=T.$implicit;t.xp6(2),t.Oqu(l.displayName)}}function B(v,T){1&v&&(t.ynx(0),t._UZ(1,"nz-spin",8),t.BQk())}function $(v,T){if(1&v&&(t.ynx(0),t._UZ(1,"cvc-comment-body",9),t.BQk()),2&v){const l=T.ngIf;t.xp6(1),t.Q6J("commentBodySegments",l)}}const Q=function(){return["#","@","$"]};function U(v,T){if(1&v){const l=t.EpF();t.ynx(0),t.TgZ(1,"nz-tabset",1),t.TgZ(2,"nz-tab",2),t.TgZ(3,"nz-mention",3),t.NdJ("nzOnSearchChange",function(z){return t.CHM(l),t.oxw().onSearchChange(z)})("nzOnSelect",function(){return t.CHM(l),t.oxw().suggestions=[]}),t.TgZ(4,"textarea",4),t.NdJ("ngModelChange",function(z){return t.CHM(l),t.oxw().commentText=z})("ngModelChange",function(z){return t.CHM(l),t.oxw().onCommentChanged(z)}),t.qZA(),t.YNc(5,O,3,1,"ng-container",5),t.qZA(),t.qZA(),t.TgZ(6,"nz-tab",6),t.NdJ("nzClick",function(){return t.CHM(l),t.oxw().onPreviewButtonClicked()}),t.YNc(7,B,2,0,"ng-container",7),t.ALo(8,"ngrxPush"),t.YNc(9,$,2,1,"ng-container",7),t.ALo(10,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()}if(2&v){const l=T.ngrxLet,p=t.oxw();t.xp6(1),t.Q6J("nzAnimated",!1),t.xp6(2),t.Q6J("nzSuggestions",p.suggestions)("nzPrefix",t.DdM(13,Q))("nzValueWith",p.autoCompleteValueFor),t.xp6(1),t.Q6J("placeholder",l&&l.canCurate?"Enter comment (minimum length 10. Use @ to mention users; # to link entities)":"Please sign in")("ngModel",p.commentText),t.uIk("disabled",!l||!l.canCurate||null),t.xp6(3),t.Q6J("ngIf",t.lcZ(8,9,p.previewLoading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(10,11,p.previewComment$))}}let E=(()=>{class v{constructor(l,p,z,m){this.previewCommentGql=l,this.userTypeaheadGql=p,this.entityTypeaheadGql=z,this.viewerService=m,this.commentChange=new t.vpe,this.destroy$=new f.xQ,this.suggestions=[],this.roleSuggestions=[{displayName:"admins",value:"admins"},{displayName:"editors",value:"editors"}]}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.commentText=this.comment,this.userTypeaheadQueryRef$=this.userTypeaheadGql.watch({queryTerm:""}),this.userTypeaheadQueryRef$.valueChanges.pipe((0,n.U)(({data:l})=>l.userTypeahead),(0,y.R)(this.destroy$)).subscribe(l=>this.suggestions=l.map(p=>({displayName:p.username,value:p.username}))),this.entityTypeaheadQueryRef$=this.entityTypeaheadGql.watch({queryTerm:""}),this.entityTypeaheadQueryRef$.valueChanges.pipe((0,n.U)(({data:l})=>l.entityTypeahead),(0,y.R)(this.destroy$)).subscribe(l=>this.suggestions=l.map(p=>({displayName:p.displayName,value:this.tagForEntityTypeAndId(p.tagType,p.entityId)})))}ngOnChanges(){this.commentText=this.comment}autoCompleteValueFor(l){return l.value}tagForEntityTypeAndId(l,p){switch(l){case o.mpB.Gene:return`GID${p}`;case o.mpB.Variant:return`VID${p}`;case o.mpB.VariantGroup:return`VGID${p}`;case o.mpB.EvidenceItem:return`EID${p}`;case o.mpB.Assertion:return`AID${p}`;case o.mpB.Revision:return`RID${p}`;case o.mpB.Role:return Object.keys(o.i44)[p]}}resetForm(){this.commentText=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onPreviewButtonClicked(){this.commentText&&(this.previewComment$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,n.U)(({data:l})=>l.previewCommentText)),this.previewLoading$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,n.U)(({loading:l})=>l),(0,x.O)(!0)))}onSearchChange({value:l,prefix:p}){"@"===p?this.userTypeaheadQueryRef$.refetch({queryTerm:l}):"$"==p?this.suggestions=this.roleSuggestions.filter(z=>z.value.startsWith(l)):this.entityTypeaheadQueryRef$.refetch({queryTerm:l})}onCommentChanged(l){this.commentChange.emit(l)}}return v.\u0275fac=function(l){return new(l||v)(t.Y36(o.mII),t.Y36(o.vMt),t.Y36(o.GYx),t.Y36(D.a))},v.\u0275cmp=t.Xpm({type:v,selectors:[["cvc-comment-input-form"]],inputs:{comment:"comment"},outputs:{commentChange:"commentChange"},features:[t.TTD],decls:1,vars:1,consts:[[4,"ngrxLet"],[3,"nzAnimated"],["nzTitle","Write"],["nzNotFoundContent","No matches...",3,"nzSuggestions","nzPrefix","nzValueWith","nzOnSearchChange","nzOnSelect"],["nzMentionTrigger","","nz-input","","rows","4",2,"width","100%",3,"placeholder","ngModel","ngModelChange"],[4,"nzMentionSuggestion"],["nzTitle","Preview",3,"nzClick"],[4,"ngIf"],["nzTip","Loading..."],[3,"commentBodySegments"]],template:function(l,p){1&l&&t.YNc(0,U,11,14,"ng-container",0),2&l&&t.Q6J("ngrxLet",p.viewer$)},directives:[S.eJ,M.xH,M.xw,Z.YW,Z.jO,I.Fj,I.JJ,I.On,Z.O3,L.O5,P.W,A.m],pipes:[S.fM],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2}),v})()},1344:(W,N,e)=>{e.d(N,{DA:()=>U,WE:()=>l,Y4:()=>E,YM:()=>z});var t=e(226),f=e(9808),o=e(5e3),n=e(969),y=e(7429),x=e(8929),D=e(7625);function S(m,C){1&m&&o.Hsn(0)}const M=["*"];function Z(m,C){if(1&m&&(o.ynx(0),o._uU(1),o.BQk()),2&m){const _=o.oxw(2);o.xp6(1),o.Oqu(_.nzAuthor)}}function I(m,C){if(1&m&&(o.TgZ(0,"span",8),o.YNc(1,Z,2,1,"ng-container",9),o.qZA()),2&m){const _=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",_.nzAuthor)}}function L(m,C){if(1&m&&(o.ynx(0),o._uU(1),o.BQk()),2&m){const _=o.oxw(2);o.xp6(1),o.Oqu(_.nzDatetime)}}function P(m,C){if(1&m&&(o.TgZ(0,"span",10),o.YNc(1,L,2,1,"ng-container",9),o.qZA()),2&m){const _=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",_.nzDatetime)}}function A(m,C){}function O(m,C){if(1&m&&(o.TgZ(0,"li"),o.TgZ(1,"span"),o.YNc(2,A,0,0,"ng-template",13),o.qZA(),o.qZA()),2&m){const _=C.$implicit;o.xp6(2),o.Q6J("nzCommentActionHost",_.content)}}function B(m,C){if(1&m&&(o.TgZ(0,"ul",11),o.YNc(1,O,3,1,"li",12),o.qZA()),2&m){const _=o.oxw();o.xp6(1),o.Q6J("ngForOf",_.actions)}}const $=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],Q=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"];let U=(()=>{class m{}return m.\u0275fac=function(_){return new(_||m)},m.\u0275dir=o.lG2({type:m,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"]}),m})(),E=(()=>{class m{}return m.\u0275fac=function(_){return new(_||m)},m.\u0275dir=o.lG2({type:m,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"]}),m})(),v=(()=>{class m extends y.Pl{constructor(_,a){super(_,a)}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}ngAfterViewInit(){this.attach(this.nzCommentActionHost)}}return m.\u0275fac=function(_){return new(_||m)(o.Y36(o._Vd),o.Y36(o.s_b))},m.\u0275dir=o.lG2({type:m,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],features:[o.qOj]}),m})(),T=(()=>{class m{constructor(_){this.viewContainerRef=_,this.contentPortal=null}get content(){return this.contentPortal}ngOnInit(){this.contentPortal=new y.UE(this.implicitContent,this.viewContainerRef)}}return m.\u0275fac=function(_){return new(_||m)(o.Y36(o.s_b))},m.\u0275cmp=o.Xpm({type:m,selectors:[["nz-comment-action"]],viewQuery:function(_,a){if(1&_&&o.Gf(o.Rgc,7),2&_){let u;o.iGM(u=o.CRH())&&(a.implicitContent=u.first)}},exportAs:["nzCommentAction"],ngContentSelectors:M,decls:1,vars:0,template:function(_,a){1&_&&(o.F$t(),o.YNc(0,S,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),m})(),l=(()=>{class m{constructor(_,a){this.cdr=_,this.directionality=a,this.dir="ltr",this.destroy$=new x.xQ}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,D.R)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return m.\u0275fac=function(_){return new(_||m)(o.Y36(o.sBO),o.Y36(t.Is,8))},m.\u0275cmp=o.Xpm({type:m,selectors:[["nz-comment"]],contentQueries:function(_,a,u){if(1&_&&o.Suo(u,T,4),2&_){let s;o.iGM(s=o.CRH())&&(a.actions=s)}},hostVars:4,hostBindings:function(_,a){2&_&&o.ekj("ant-comment",!0)("ant-comment-rtl","rtl"===a.dir)},inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],ngContentSelectors:Q,decls:11,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],["class","ant-comment-content-author-name",4,"ngIf"],["class","ant-comment-content-author-time",4,"ngIf"],["class","ant-comment-actions",4,"ngIf"],[1,"ant-comment-nested"],[1,"ant-comment-content-author-name"],[4,"nzStringTemplateOutlet"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[4,"ngFor","ngForOf"],[3,"nzCommentActionHost"]],template:function(_,a){1&_&&(o.F$t($),o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.Hsn(2),o.qZA(),o.TgZ(3,"div",2),o.TgZ(4,"div",3),o.YNc(5,I,2,1,"span",4),o.YNc(6,P,2,1,"span",5),o.qZA(),o.Hsn(7,1),o.YNc(8,B,2,1,"ul",6),o.qZA(),o.qZA(),o.TgZ(9,"div",7),o.Hsn(10,2),o.qZA()),2&_&&(o.xp6(5),o.Q6J("ngIf",a.nzAuthor),o.xp6(1),o.Q6J("ngIf",a.nzDatetime),o.xp6(2),o.Q6J("ngIf",null==a.actions?null:a.actions.length))},directives:[f.O5,n.f,f.sg,v],encapsulation:2,changeDetection:0}),m})(),z=(()=>{class m{}return m.\u0275fac=function(_){return new(_||m)},m.\u0275mod=o.oAB({type:m}),m.\u0275inj=o.cJS({imports:[[t.vT,f.ez,n.T]]}),m})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2043],{7948:(W,N,e)=>{e.d(N,{m:()=>_});var t=e(5e3),f=e(9808),o=e(125),n=e(3579),y=e(3193),x=e(8664),D=e(112),S=e(9001),M=e(2826),Z=e(5749),I=e(8481),L=e(647);function P(a,u){if(1&a&&(t.ynx(0),t._UZ(1,"span",2),t.BQk()),2&a){const s=t.oxw().$implicit;t.xp6(1),t.Q6J("innerHtml",s.text,t.oJD)}}function A(a,u){if(1&a&&(t.ynx(0),t._UZ(1,"cvc-user-tag",3),t.BQk()),2&a){const s=t.oxw().$implicit;t.xp6(1),t.Q6J("user",s)}}const O=function(a,u,s){return{id:a,name:u,link:s}};function B(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-revision-tag",6),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("revision",t.kEZ(1,O,s.entityId,s.displayName,s.link))}}function $(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-gene-tag",7),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("gene",t.kEZ(1,O,s.entityId,s.displayName,s.link))}}function Q(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-tag",8),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("variant",t.kEZ(1,O,s.entityId,s.displayName,s.link))}}function U(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-group-tag",9),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("variantgroup",t.kEZ(1,O,s.entityId,s.displayName,s.link))}}const E=function(a,u,s,J){return{id:a,name:u,status:s,link:J}};function v(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-evidence-tag",10),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("evidence",t.l5B(1,E,s.entityId,s.displayName,s.status,s.link))}}function T(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-assertion-tag",11),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("assertion",t.l5B(1,E,s.entityId,s.displayName,s.status,s.link))}}const l=function(a,u){return{id:a,name:u}};function p(a,u){if(1&a&&(t.TgZ(0,"span"),t._UZ(1,"cvc-organization-tag",12),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(1),t.Q6J("org",t.WLB(1,l,s.entityId,s.displayName))}}function z(a,u){if(1&a&&(t.TgZ(0,"span"),t.TgZ(1,"nz-tag"),t._UZ(2,"i",13),t._uU(3),t.qZA(),t.qZA()),2&a){const s=t.oxw(2).$implicit;t.xp6(2),t.MGl("nzType","civic-",s.displayName.slice(0,-1),""),t.xp6(1),t.hij(" ",s.displayName,"")}}function m(a,u){if(1&a&&(t.ynx(0),t.ynx(1,4),t.YNc(2,B,2,5,"span",5),t.YNc(3,$,2,5,"span",5),t.YNc(4,Q,2,5,"span",5),t.YNc(5,U,2,5,"span",5),t.YNc(6,v,2,6,"span",5),t.YNc(7,T,2,6,"span",5),t.YNc(8,p,2,4,"span",5),t.YNc(9,z,4,2,"span",5),t.BQk(),t.BQk()),2&a){const s=t.oxw().$implicit;t.xp6(1),t.Q6J("ngSwitch",s.tagType),t.xp6(1),t.Q6J("ngSwitchCase","REVISION"),t.xp6(1),t.Q6J("ngSwitchCase","GENE"),t.xp6(1),t.Q6J("ngSwitchCase","VARIANT"),t.xp6(1),t.Q6J("ngSwitchCase","VARIANT_GROUP"),t.xp6(1),t.Q6J("ngSwitchCase","EVIDENCE_ITEM"),t.xp6(1),t.Q6J("ngSwitchCase","ASSERTION"),t.xp6(1),t.Q6J("ngSwitchCase","ORGANIZATION"),t.xp6(1),t.Q6J("ngSwitchCase","ROLE")}}function C(a,u){if(1&a&&(t.ynx(0),t.YNc(1,P,2,1,"ng-container",1),t.YNc(2,A,2,1,"ng-container",1),t.YNc(3,m,10,9,"ng-container",1),t.BQk()),2&a){const s=u.$implicit;t.xp6(1),t.Q6J("ngIf","CommentTextSegment"==s.__typename),t.xp6(1),t.Q6J("ngIf","User"==s.__typename),t.xp6(1),t.Q6J("ngIf","CommentTagSegment"==s.__typename)}}let _=(()=>{class a{ngOnInit(){if(void 0===this.commentBodySegments)throw new Error("Must pass a list of comment body segments into comment body component.")}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-comment-body"]],inputs:{commentBodySegments:"commentBodySegments"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"innerHtml"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision"],[3,"gene"],[3,"variant"],[3,"variantgroup"],[3,"evidence"],[3,"assertion"],[3,"org"],["nz-icon","","nzTheme","twotone","nzTwotoneColor","#A0D8F5",3,"nzType"]],template:function(s,J){1&s&&t.YNc(0,C,4,3,"ng-container",0),2&s&&t.Q6J("ngForOf",J.commentBodySegments)},directives:[f.sg,f.O5,o.I,f.RF,f.n9,n.p,y.H,x.I,D.u,S.O,M.w,Z.m,I.j,L.Ls],styles:[""]}),a})()},3801:(W,N,e)=>{e.d(N,{D:()=>ln});var t=e(712),f=e(4850),o=e(373),n=e(5e3),y=e(9808),x=e(1894),D=e(8144),S=e(7484),M=e(3762),Z=e(6042),I=e(2683),L=e(1344),P=e(6699),A=e(7948),O=e(8625);function B(c,d){if(1&c&&n._UZ(0,"nz-avatar",4),2&c){const i=n.oxw();n.Q6J("nzSrc",i.comment.commenter.profileImagePath)}}function $(c,d){1&c&&n._UZ(0,"nz-avatar",5)}let Q=(()=>{class c{ngOnInit(){if(void 0===this.comment)throw new Error("Must pass a comment into comment display component.")}}return c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-display"]],inputs:{comment:"comment"},decls:7,vars:7,consts:[[3,"nzAuthor","nzDatetime"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],[3,"commentBodySegments"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","","nzIcon","civic:curator"]],template:function(i,r){if(1&i&&(n.TgZ(0,"nz-comment",0),n.ALo(1,"timeago"),n.YNc(2,B,1,1,"nz-avatar",1),n.YNc(3,$,1,0,"ng-template",null,2,n.W1O),n.TgZ(5,"nz-comment-content"),n._UZ(6,"cvc-comment-body",3),n.qZA(),n.qZA()),2&i){const g=n.MAs(4);n.Q6J("nzAuthor",r.comment.commenter.displayName)("nzDatetime",n.lcZ(1,5,r.comment.createdAt)),n.xp6(2),n.Q6J("ngIf",r.comment.commenter.profileImagePath)("ngIfElse",g),n.xp6(4),n.Q6J("commentBodySegments",r.comment.parsedComment)}},directives:[L.WE,y.O5,P.Dz,L.DA,L.Y4,A.m],pipes:[O.wr],styles:[""]}),c})();var U=e(8929),E=e(7625),v=e(6123),T=e(9350),l=e(9169),p=e(2359),z=e(4182),m=e(4546),C=e(822),_=e(9383),a=e(7525),u=e(9180),s=e(8227),J=e(2643),h=e(1793);function F(c,d){if(1&c){const i=n.EpF();n.TgZ(0,"nz-alert",7),n.NdJ("nzOnClose",function(){return n.CHM(i),n.oxw().onSuccessBannerClose()}),n.qZA()}}function Y(c,d){if(1&c&&(n.TgZ(0,"nz-form-item"),n._UZ(1,"cvc-form-errors-alert",8),n.qZA()),2&c){const i=n.oxw();n.xp6(1),n.Q6J("errors",i.errorMessages)}}let w=(()=>{class c{constructor(i,r,g){this.viewerService=i,this.addCommentGql=r,this.networkErrorService=g,this.commentAddedEvent=new n.vpe,this.destroy$=new U.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,E.R)(this.destroy$)).subscribe(R=>{this.organizations=R.organizations,this.mostRecentOrg=R.mostRecentOrg}),this.addCommentMutator=new v.U(g)}selectOrg(i){this.mostRecentOrg=i}submitComment(){if(this.commentText){this.errorMessages=[];let r=this.addCommentMutator.mutate(this.addCommentGql,{input:{body:this.commentText,subject:this.subject,organizationId:void 0===this.mostRecentOrg?void 0:this.mostRecentOrg.id}});r.submitSuccess$.pipe((0,E.R)(this.destroy$)).subscribe(g=>{g&&(this.resetForm(),this.success=!0)}),r.submitError$.pipe((0,E.R)(this.destroy$)).subscribe(g=>{g&&(this.errorMessages=g,this.success=!1)}),r.isSubmitting$.pipe((0,E.R)(this.destroy$)).subscribe(g=>{this.loading=g})}}resetForm(){this.commentText="",this.commentAddedEvent.emit()}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(i){return new(i||c)(n.Y36(T.a),n.Y36(t.iGM),n.Y36(l.Y))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-add-form"]],inputs:{subject:"subject"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:12,vars:6,consts:[["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[4,"ngIf"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"]],template:function(i,r){1&i&&(n.TgZ(0,"nz-card"),n.YNc(1,F,1,0,"nz-alert",0),n.TgZ(2,"form",1),n.NdJ("ngSubmit",function(){return r.submitComment()}),n.YNc(3,Y,2,1,"nz-form-item",2),n.TgZ(4,"cvc-comment-input-form",3),n.NdJ("commentChange",function(R){return r.commentText=R}),n.qZA(),n.TgZ(5,"nz-spin",4),n.TgZ(6,"nz-form-item"),n.TgZ(7,"nz-form-control"),n.TgZ(8,"cvc-form-buttons"),n.TgZ(9,"cvc-org-selector-btn-group",5),n.NdJ("selectedOrgChange",function(R){return r.mostRecentOrg=R}),n.TgZ(10,"button",6),n._uU(11," Add Comment "),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&i&&(n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(2),n.Q6J("ngIf",r.errorMessages.length>0),n.xp6(1),n.Q6J("comment",r.commentText),n.xp6(1),n.Q6J("nzSpinning",r.loading),n.xp6(4),n.Q6J("selectedOrg",r.mostRecentOrg),n.xp6(1),n.Q6J("disabled",r.loading||!(void 0!==r.commentText&&r.commentText.length>=10)))},directives:[S.bd,y.O5,p.r,z._Y,z.JL,z.F,m.Lr,x.SK,m.Nx,C.V,_.b,a.W,x.t3,m.Fd,u.Z,s.q,Z.ix,J.dQ,h.m,I.w],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2}),c})();var K=e(8747),G=e(647),H=e(6949),j=e(9058);function V(c,d){if(1&c){const i=n.EpF();n.TgZ(0,"div",18),n.TgZ(1,"button",19),n.NdJ("click",function(){n.CHM(i);const g=n.oxw().ngIf;return n.oxw(3).onLoadMore(g.startCursor)}),n._uU(2,"Load older comments "),n.qZA(),n.qZA()}}function b(c,d){if(1&c&&(n.TgZ(0,"nz-list-header"),n.YNc(1,V,3,0,"div",17),n.qZA()),2&c){const i=d.ngIf;n.xp6(1),n.Q6J("ngIf",i.hasPreviousPage)}}function X(c,d){if(1&c&&(n.TgZ(0,"nz-list-item"),n._UZ(1,"cvc-comment-display",20),n.qZA()),2&c){const i=d.$implicit;n.xp6(1),n.Q6J("comment",i)}}function q(c,d){if(1&c&&(n.TgZ(0,"nz-card",13),n.TgZ(1,"nz-list",14),n.ALo(2,"ngrxPush"),n.ALo(3,"ngrxPush"),n.YNc(4,b,2,1,"nz-list-header",15),n.ALo(5,"ngrxPush"),n.YNc(6,X,2,1,"ng-template",null,16,n.W1O),n.qZA(),n.qZA()),2&c){const i=n.MAs(7),r=n.oxw(2);n.xp6(1),n.Q6J("nzDataSource",n.lcZ(2,4,r.comments$))("nzLoading",n.lcZ(3,6,r.loading$))("nzRenderItem",i),n.xp6(3),n.Q6J("ngIf",n.lcZ(5,8,r.pageInfo$))}}function k(c,d){if(1&c){const i=n.EpF();n.TgZ(0,"cvc-comment-add-form",21),n.NdJ("commentAddedEvent",function(){return n.CHM(i),n.oxw(2).refreshList()}),n.qZA()}if(2&c){const i=n.oxw(2);n.Q6J("subject",i.commentable)}}function nn(c,d){if(1&c&&n._UZ(0,"nz-avatar",24),2&c){const i=n.oxw().$implicit;n.Q6J("nzSrc",i.profileImagePath)}}function tn(c,d){if(1&c&&(n._UZ(0,"nz-avatar",25),n.ALo(1,"uppercase")),2&c){const i=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,i.displayName.charAt(0)))}}function en(c,d){if(1&c&&(n.YNc(0,nn,1,1,"nz-avatar",22),n.YNc(1,tn,2,3,"ng-template",null,23,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&c){const i=d.$implicit,r=n.MAs(2);n.Q6J("ngIf",i.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(i.displayName)}}function on(c,d){if(1&c&&n._UZ(0,"nz-avatar",24),2&c){const i=n.oxw().$implicit;n.Q6J("nzSrc",i.profileImagePath)}}function mn(c,d){if(1&c&&(n._UZ(0,"nz-avatar",25),n.ALo(1,"uppercase")),2&c){const i=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,i.displayName.charAt(0)))}}function cn(c,d){if(1&c&&(n.YNc(0,on,1,1,"nz-avatar",22),n.YNc(1,mn,2,3,"ng-template",null,23,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&c){const i=d.$implicit,r=n.MAs(2);n.Q6J("ngIf",i.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(i.displayName)}}function an(c,d){if(1&c&&(n._UZ(0,"nz-avatar",26),n.TgZ(1,"span"),n._uU(2),n.qZA()),2&c){const i=d.$implicit;n.MGl("nzIcon","civic-",i.tag.displayName,""),n.xp6(2),n.hij("",i.tag.displayName,"s")}}function sn(c,d){if(1&c&&(n._UZ(0,"i",27),n.ALo(1,"iconNameForSubscribableEntity"),n.TgZ(2,"span"),n._uU(3),n.qZA()),2&c){const i=d.$implicit;n.Q6J("nzType",n.lcZ(1,2,i.tag.tagType)),n.xp6(3),n.Oqu(i.tag.displayName)}}function rn(c,d){if(1&c){const i=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2),n.TgZ(2,"nz-col",3),n.TgZ(3,"nz-space",4),n.YNc(4,q,8,10,"nz-card",5),n.YNc(5,k,1,1,"cvc-comment-add-form",6),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",7),n.TgZ(7,"cvc-participant-list",8),n.NdJ("participantSelectedEvent",function(g){return n.CHM(i),n.oxw().onCommenterSelected(g)}),n.ALo(8,"ngrxPush"),n.YNc(9,en,5,3,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",10),n.NdJ("participantSelectedEvent",function(g){return n.CHM(i),n.oxw().onMentionedUserSelected(g)}),n.ALo(12,"ngrxPush"),n.YNc(13,cn,5,3,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(g){return n.CHM(i),n.oxw().onMentionedRoleSelected(g)}),n.ALo(16,"ngrxPush"),n.YNc(17,an,3,2,"ng-template",null,9,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(g){return n.CHM(i),n.oxw().onMentionedEntitySelected(g)}),n.ALo(20,"ngrxPush"),n.YNc(21,sn,4,4,"ng-template",null,9,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&c){const i=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(6),n.Q6J("participantList",n.lcZ(8,5,i.commenters$)),n.xp6(4),n.Q6J("participantList",n.lcZ(12,7,i.mentionedUsers$)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,9,i.mentionedRoles$)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,11,i.mentionedEntities$))}}function _n(c,d){if(1&c){const i=n.EpF();n.TgZ(0,"cvc-comment-add-form",21),n.NdJ("commentAddedEvent",function(){return n.CHM(i),n.oxw().refreshList()}),n.qZA()}if(2&c){const i=n.oxw();n.Q6J("subject",i.commentable)}}let ln=(()=>{class c{constructor(i){this.gql=i,this.pageSize=5}ngOnInit(){this.queryRef$=this.gql.watch({subject:this.commentable,last:this.pageSize,sortBy:{column:t.h01.Created,direction:t.SrV.Asc}});let i=this.queryRef$.valueChanges;this.pageInfo$=i.pipe((0,f.U)(({data:r})=>r.comments.pageInfo)),this.loading$=i.pipe((0,f.U)(({loading:r})=>r)),this.comments$=i.pipe((0,f.U)(({data:r})=>r.comments.edges.map(g=>g.node))),this.commenters$=i.pipe((0,f.U)(({data:r})=>r.comments.uniqueCommenters)),this.mentionedUsers$=i.pipe((0,f.U)(({data:r})=>r.comments.mentionedUsers)),this.mentionedRoles$=i.pipe((0,f.U)(({data:r})=>r.comments.mentionedRoles.map(g=>({id:`${g.entityId}-${g.tagType}`,tag:g})))),this.mentionedEntities$=i.pipe((0,f.U)(({data:r})=>r.comments.mentionedEntities.map(g=>({id:`${g.entityId}-${g.tagType}`,tag:g})))),this.unfilteredCount$=i.pipe((0,o.j)("data","comments","unfilteredCountForSubject"))}onLoadMore(i){this.queryRef$.fetchMore({variables:{last:this.pageSize,before:i}})}onCommenterSelected(i){this.queryRef$.refetch({originatingUserId:null==i?void 0:i.id})}onMentionedUserSelected(i){this.queryRef$.refetch({mentionedUserId:null==i?void 0:i.id})}onMentionedRoleSelected(i){if(i){let r=t.i44[i.tag.displayName[0].toUpperCase()+i.tag.displayName.slice(1)];this.queryRef$.refetch({mentionedRole:r})}else this.queryRef$.refetch({mentionedRole:void 0})}onMentionedEntitySelected(i){this.queryRef$.refetch(i?{mentionedEntity:{entityType:i.tag.tagType,id:i.tag.entityId}}:{mentionedEntity:void 0})}refreshList(){this.queryRef$.refetch()}}return c.\u0275fac=function(i){return new(i||c)(n.Y36(t.iST))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-comment-list"]],inputs:{commentable:"commentable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noComments",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical",2,"width","100%"],["nzTitle","Comments",4,"nzSpaceItem"],["id","addComment",3,"subject","commentAddedEvent",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Commenters",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Mentioned Users",3,"participantList","participantSelectedEvent"],["listTitle","Mentioned Roles",3,"participantList","participantSelectedEvent"],["listTitle","Mentioned Entities",3,"participantList","participantSelectedEvent"],["nzTitle","Comments"],["nzSize","small","nzItemLayout","horizontal",3,"nzDataSource","nzLoading","nzRenderItem"],[4,"ngIf"],["comment",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","link","nzSize","small","nzBlock","",3,"click"],[3,"comment"],["id","addComment",3,"subject","commentAddedEvent"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],[3,"nzIcon"],["nz-icon","",3,"nzType"]],template:function(i,r){if(1&i&&(n.YNc(0,rn,23,13,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,_n,1,1,"ng-template",null,1,n.W1O)),2&i){const g=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",g)}},directives:[y.O5,x.SK,x.t3,D.NU,D.$1,S.bd,M.n_,M.t4,Z.ix,I.w,M.AA,Q,w,K.l,P.Dz,G.Ls],pipes:[H.fM,y.gd,j.j],styles:["[_nghost-%COMP%]{display:block}nz-list-header[_ngcontent-%COMP%]{padding:0;margin:0}nz-list-header[_ngcontent-%COMP%] [nz-list-load-more][_ngcontent-%COMP%]{margin-top:-.5em;padding-bottom:.5em}"]}),c})()},2278:(W,N,e)=>{e.d(N,{l:()=>J});var t=e(9808),f=e(1894),o=e(7484),n=e(3762),y=e(6699),x=e(8144),D=e(6949),S=e(6559),M=e(1150),Z=e(1344),I=e(8625),L=e(7026),P=e(8909),A=e(5e3);let O=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=A.oAB({type:h}),h.\u0275inj=A.cJS({imports:[[t.ez,Z.YM,y.Rt,I.$L.forChild({formatter:{useClass:L.x,provide:I.KP}}),P.m]]}),h})();var B=e(4182),$=e(8776),Q=e(4546),U=e(7008),E=e(1825),v=e(4375),T=e(6042),l=e(4623),p=e(868),z=e(7525),m=e(4921),C=e(4509),_=e(2359);let a=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=A.oAB({type:h}),h.\u0275inj=A.cJS({imports:[[t.ez,B.UX,D.WG,T.sL,o.vh,p.we,Q.U5,z.j,m.Gl,_.L,B.u5,$.X0,U.B,E.A,v.R,P.m,l.K,C.w]]}),h})();var u=e(647),s=e(9444);let J=(()=>{class h{}return h.\u0275fac=function(Y){return new(Y||h)},h.\u0275mod=A.oAB({type:h}),h.\u0275inj=A.cJS({imports:[[t.ez,D.WG,T.sL,f.Jb,o.vh,n.Ph,u.PV,s.s,y.Rt,x.zf,S.H0,a,M.N,O]]}),h})()},9058:(W,N,e)=>{e.d(N,{j:()=>o});var t=e(712),f=e(5e3);let o=(()=>{class n{transform(x){switch(x){case"ASSERTION":case"Assertion":case t.o71.Assertion:return"civic:assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case t.o71.EvidenceItem:return"civic:evidence";case"GENE":case"Gene":case t.o71.Gene:return"civic:gene";case t.o71.Revision:case"REVISION":case"Revision":return"civic:revision";case t.o71.Variant:case"VARIANT":case"Variant":return"civic:variant";case t.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGroup":return"civic:variant-group";default:return console.log("String No icon name found for "+x),"border-outer"}}}return n.\u0275fac=function(x){return new(x||n)},n.\u0275pipe=f.Yjl({name:"iconNameForSubscribableEntity",type:n,pure:!0}),n})()},9383:(W,N,e)=>{e.d(N,{b:()=>E});var t=e(5e3),f=e(8929),o=e(712),n=e(4850),y=e(7625),x=e(1059),D=e(9350),S=e(6949),M=e(868),Z=e(4921),I=e(4182),L=e(9808),P=e(7525),A=e(7948);function O(v,T){if(1&v&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.BQk()),2&v){const l=T.$implicit;t.xp6(2),t.Oqu(l.displayName)}}function B(v,T){1&v&&(t.ynx(0),t._UZ(1,"nz-spin",8),t.BQk())}function $(v,T){if(1&v&&(t.ynx(0),t._UZ(1,"cvc-comment-body",9),t.BQk()),2&v){const l=T.ngIf;t.xp6(1),t.Q6J("commentBodySegments",l)}}const Q=function(){return["#","@","$"]};function U(v,T){if(1&v){const l=t.EpF();t.ynx(0),t.TgZ(1,"nz-tabset",1),t.TgZ(2,"nz-tab",2),t.TgZ(3,"nz-mention",3),t.NdJ("nzOnSearchChange",function(z){return t.CHM(l),t.oxw().onSearchChange(z)})("nzOnSelect",function(){return t.CHM(l),t.oxw().suggestions=[]}),t.TgZ(4,"textarea",4),t.NdJ("ngModelChange",function(z){return t.CHM(l),t.oxw().commentText=z})("ngModelChange",function(z){return t.CHM(l),t.oxw().onCommentChanged(z)}),t.qZA(),t.YNc(5,O,3,1,"ng-container",5),t.qZA(),t.qZA(),t.TgZ(6,"nz-tab",6),t.NdJ("nzClick",function(){return t.CHM(l),t.oxw().onPreviewButtonClicked()}),t.YNc(7,B,2,0,"ng-container",7),t.ALo(8,"ngrxPush"),t.YNc(9,$,2,1,"ng-container",7),t.ALo(10,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()}if(2&v){const l=T.ngrxLet,p=t.oxw();t.xp6(1),t.Q6J("nzAnimated",!1),t.xp6(2),t.Q6J("nzSuggestions",p.suggestions)("nzPrefix",t.DdM(13,Q))("nzValueWith",p.autoCompleteValueFor),t.xp6(1),t.Q6J("placeholder",l&&l.canCurate?"Enter comment (minimum length 10. Use @ to mention users; # to link entities)":"Please sign in")("ngModel",p.commentText),t.uIk("disabled",!l||!l.canCurate||null),t.xp6(3),t.Q6J("ngIf",t.lcZ(8,9,p.previewLoading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(10,11,p.previewComment$))}}let E=(()=>{class v{constructor(l,p,z,m){this.previewCommentGql=l,this.userTypeaheadGql=p,this.entityTypeaheadGql=z,this.viewerService=m,this.commentChange=new t.vpe,this.destroy$=new f.xQ,this.suggestions=[],this.roleSuggestions=[{displayName:"admins",value:"admins"},{displayName:"editors",value:"editors"}]}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.commentText=this.comment,this.userTypeaheadQueryRef$=this.userTypeaheadGql.watch({queryTerm:""}),this.userTypeaheadQueryRef$.valueChanges.pipe((0,n.U)(({data:l})=>l.userTypeahead),(0,y.R)(this.destroy$)).subscribe(l=>this.suggestions=l.map(p=>({displayName:p.username,value:p.username}))),this.entityTypeaheadQueryRef$=this.entityTypeaheadGql.watch({queryTerm:""}),this.entityTypeaheadQueryRef$.valueChanges.pipe((0,n.U)(({data:l})=>l.entityTypeahead),(0,y.R)(this.destroy$)).subscribe(l=>this.suggestions=l.map(p=>({displayName:p.displayName,value:this.tagForEntityTypeAndId(p.tagType,p.entityId)})))}ngOnChanges(){this.commentText=this.comment}autoCompleteValueFor(l){return l.value}tagForEntityTypeAndId(l,p){switch(l){case o.mpB.Gene:return`GID${p}`;case o.mpB.Variant:return`VID${p}`;case o.mpB.VariantGroup:return`VGID${p}`;case o.mpB.EvidenceItem:return`EID${p}`;case o.mpB.Assertion:return`AID${p}`;case o.mpB.Revision:return`RID${p}`;case o.mpB.Role:return Object.keys(o.i44)[p]}}resetForm(){this.commentText=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onPreviewButtonClicked(){this.commentText&&(this.previewComment$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,n.U)(({data:l})=>l.previewCommentText)),this.previewLoading$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,n.U)(({loading:l})=>l),(0,x.O)(!0)))}onSearchChange({value:l,prefix:p}){"@"===p?this.userTypeaheadQueryRef$.refetch({queryTerm:l}):"$"==p?this.suggestions=this.roleSuggestions.filter(z=>z.value.startsWith(l)):this.entityTypeaheadQueryRef$.refetch({queryTerm:l})}onCommentChanged(l){this.commentChange.emit(l)}}return v.\u0275fac=function(l){return new(l||v)(t.Y36(o.mII),t.Y36(o.vMt),t.Y36(o.GYx),t.Y36(D.a))},v.\u0275cmp=t.Xpm({type:v,selectors:[["cvc-comment-input-form"]],inputs:{comment:"comment"},outputs:{commentChange:"commentChange"},features:[t.TTD],decls:1,vars:1,consts:[[4,"ngrxLet"],[3,"nzAnimated"],["nzTitle","Write"],["nzNotFoundContent","No matches...",3,"nzSuggestions","nzPrefix","nzValueWith","nzOnSearchChange","nzOnSelect"],["nzMentionTrigger","","nz-input","","rows","4",2,"width","100%",3,"placeholder","ngModel","ngModelChange"],[4,"nzMentionSuggestion"],["nzTitle","Preview",3,"nzClick"],[4,"ngIf"],["nzTip","Loading..."],[3,"commentBodySegments"]],template:function(l,p){1&l&&t.YNc(0,U,11,14,"ng-container",0),2&l&&t.Q6J("ngrxLet",p.viewer$)},directives:[S.eJ,M.xH,M.xw,Z.YW,Z.jO,I.Fj,I.JJ,I.On,Z.O3,L.O5,P.W,A.m],pipes:[S.fM],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2}),v})()},1344:(W,N,e)=>{e.d(N,{DA:()=>U,WE:()=>l,Y4:()=>E,YM:()=>z});var t=e(226),f=e(9808),o=e(5e3),n=e(969),y=e(7429),x=e(8929),D=e(7625);function S(m,C){1&m&&o.Hsn(0)}const M=["*"];function Z(m,C){if(1&m&&(o.ynx(0),o._uU(1),o.BQk()),2&m){const _=o.oxw(2);o.xp6(1),o.Oqu(_.nzAuthor)}}function I(m,C){if(1&m&&(o.TgZ(0,"span",8),o.YNc(1,Z,2,1,"ng-container",9),o.qZA()),2&m){const _=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",_.nzAuthor)}}function L(m,C){if(1&m&&(o.ynx(0),o._uU(1),o.BQk()),2&m){const _=o.oxw(2);o.xp6(1),o.Oqu(_.nzDatetime)}}function P(m,C){if(1&m&&(o.TgZ(0,"span",10),o.YNc(1,L,2,1,"ng-container",9),o.qZA()),2&m){const _=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",_.nzDatetime)}}function A(m,C){}function O(m,C){if(1&m&&(o.TgZ(0,"li"),o.TgZ(1,"span"),o.YNc(2,A,0,0,"ng-template",13),o.qZA(),o.qZA()),2&m){const _=C.$implicit;o.xp6(2),o.Q6J("nzCommentActionHost",_.content)}}function B(m,C){if(1&m&&(o.TgZ(0,"ul",11),o.YNc(1,O,3,1,"li",12),o.qZA()),2&m){const _=o.oxw();o.xp6(1),o.Q6J("ngForOf",_.actions)}}const $=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],Q=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"];let U=(()=>{class m{}return m.\u0275fac=function(_){return new(_||m)},m.\u0275dir=o.lG2({type:m,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"]}),m})(),E=(()=>{class m{}return m.\u0275fac=function(_){return new(_||m)},m.\u0275dir=o.lG2({type:m,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"]}),m})(),v=(()=>{class m extends y.Pl{constructor(_,a){super(_,a)}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}ngAfterViewInit(){this.attach(this.nzCommentActionHost)}}return m.\u0275fac=function(_){return new(_||m)(o.Y36(o._Vd),o.Y36(o.s_b))},m.\u0275dir=o.lG2({type:m,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],features:[o.qOj]}),m})(),T=(()=>{class m{constructor(_){this.viewContainerRef=_,this.contentPortal=null}get content(){return this.contentPortal}ngOnInit(){this.contentPortal=new y.UE(this.implicitContent,this.viewContainerRef)}}return m.\u0275fac=function(_){return new(_||m)(o.Y36(o.s_b))},m.\u0275cmp=o.Xpm({type:m,selectors:[["nz-comment-action"]],viewQuery:function(_,a){if(1&_&&o.Gf(o.Rgc,7),2&_){let u;o.iGM(u=o.CRH())&&(a.implicitContent=u.first)}},exportAs:["nzCommentAction"],ngContentSelectors:M,decls:1,vars:0,template:function(_,a){1&_&&(o.F$t(),o.YNc(0,S,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),m})(),l=(()=>{class m{constructor(_,a){this.cdr=_,this.directionality=a,this.dir="ltr",this.destroy$=new x.xQ}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,D.R)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return m.\u0275fac=function(_){return new(_||m)(o.Y36(o.sBO),o.Y36(t.Is,8))},m.\u0275cmp=o.Xpm({type:m,selectors:[["nz-comment"]],contentQueries:function(_,a,u){if(1&_&&o.Suo(u,T,4),2&_){let s;o.iGM(s=o.CRH())&&(a.actions=s)}},hostVars:4,hostBindings:function(_,a){2&_&&o.ekj("ant-comment",!0)("ant-comment-rtl","rtl"===a.dir)},inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],ngContentSelectors:Q,decls:11,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],["class","ant-comment-content-author-name",4,"ngIf"],["class","ant-comment-content-author-time",4,"ngIf"],["class","ant-comment-actions",4,"ngIf"],[1,"ant-comment-nested"],[1,"ant-comment-content-author-name"],[4,"nzStringTemplateOutlet"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[4,"ngFor","ngForOf"],[3,"nzCommentActionHost"]],template:function(_,a){1&_&&(o.F$t($),o.TgZ(0,"div",0),o.TgZ(1,"div",1),o.Hsn(2),o.qZA(),o.TgZ(3,"div",2),o.TgZ(4,"div",3),o.YNc(5,I,2,1,"span",4),o.YNc(6,P,2,1,"span",5),o.qZA(),o.Hsn(7,1),o.YNc(8,B,2,1,"ul",6),o.qZA(),o.qZA(),o.TgZ(9,"div",7),o.Hsn(10,2),o.qZA()),2&_&&(o.xp6(5),o.Q6J("ngIf",a.nzAuthor),o.xp6(1),o.Q6J("ngIf",a.nzDatetime),o.xp6(2),o.Q6J("ngIf",null==a.actions?null:a.actions.length))},directives:[f.O5,n.f,f.sg,v],encapsulation:2,changeDetection:0}),m})(),z=(()=>{class m{}return m.\u0275fac=function(_){return new(_||m)},m.\u0275mod=o.oAB({type:m}),m.\u0275inj=o.cJS({imports:[[t.vT,f.ez,n.T]]}),m})()}}]); \ No newline at end of file diff --git a/server/public/2395.cf23fdf75c9e11a1.js b/server/public/2395.cf23fdf75c9e11a1.js deleted file mode 100644 index 74add9772..000000000 --- a/server/public/2395.cf23fdf75c9e11a1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2395],{7946:(Q,T,o)=>{o.d(T,{x:()=>f});var p=o(9808),n=o(897),d=o(8481),_=o(3610),e=o(8018),Z=o(3580),I=o(9476),u=o(5e3);let f=(()=>{class h{}return h.\u0275fac=function(z){return new(z||h)},h.\u0275mod=u.oAB({type:h}),h.\u0275inj=u.cJS({imports:[[p.ez,d.X,_.$6,n.$,e.e,Z.Q,I.L]]}),h})()},8664:(Q,T,o)=>{o.d(T,{I:()=>ee});var p=o(6654),n=o(5e3),d=o(9808),_=o(325),e=o(8481),Z=o(3610),I=o(4850),u=o(712),f=o(7484),h=o(647),y=o(3193),z=o(3098),A=o(6550),S=o(1894),U=o(8144),m=o(6949);function M(i,l){if(1&i&&(n._UZ(0,"i",13),n._uU(1)),2&i){const s=n.oxw().ngIf;n.xp6(1),n.hij(" ",s.name," ")}}function b(i,l){if(1&i&&n._UZ(0,"cvc-gene-tag",14),2&i){const s=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",s.gene)}}function O(i,l){1&i&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function D(i,l){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,O,2,0,"span",1),n.qZA()),2&i){const s=l.$implicit,g=l.last;n.xp6(1),n.hij(" ",s,""),n.xp6(1),n.Q6J("ngIf",!g)}}function J(i,l){if(1&i&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,D,3,2,"span",16),n.qZA()),2&i){const s=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",s.variantAliases)}}function F(i,l){if(1&i&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&i){const s=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",s.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",s.alleleRegistryId," ")}}function L(i,l){if(1&i&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&i){const s=n.oxw().ngIf;n.MGl("routerLink","/variants/",s.id,"/flags"),n.xp6(3),n.hij(" Flags (",s.flags.totalCount,") ")}}function N(i,l){if(1&i&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&i){const s=n.oxw().ngIf;n.MGl("routerLink","/variants/",s.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",s.revisions.totalCount,") ")}}function j(i,l){if(1&i&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&i){const s=n.oxw().ngIf;n.MGl("routerLink","/variants/",s.id,"/comments"),n.xp6(3),n.hij(" Comments (",s.comments.totalCount,") ")}}function w(i,l){if(1&i&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,M,2,1,"ng-template",null,3,n.W1O),n.YNc(4,b,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,J,2,1,"nz-descriptions-item",6),n.YNc(8,F,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,L,4,2,"a",12),n.YNc(15,N,4,2,"a",12),n.YNc(16,j,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&i){const s=l.ngIf,g=n.MAs(3),C=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",g)("nzExtra",C),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",s.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",s.alleleRegistryId),n.xp6(2),n.hij(" ",s.evidenceItems.totalCount," ")}}let E=(()=>{class i{constructor(s){this.gql=s}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,I.U)(({data:s})=>s.variant))}}return i.\u0275fac=function(s){return new(s||i)(n.Y36(u.ZYZ))},i.\u0275cmp=n.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(s,g){1&s&&(n.TgZ(0,"div",0),n.YNc(1,w,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&s&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,g.variant$)))},directives:[d.O5,f.bd,h.Ls,y.H,z.R7,z.uj,d.sg,A.l,S.SK,S.t3,U.NU,U.$1,_.yS,e.j],pipes:[m.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 x(i,l){}function V(i,l){if(1&i&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,x,0,0,"ng-template",6),n.qZA(),n.BQk()),2&i){const s=n.oxw(),g=n.MAs(2);n.xp6(1),n.Q6J("routerLink",s.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",g)}}function B(i,l){}function $(i,l){if(1&i){const s=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(C){return n.CHM(s),n.oxw(2).itemClosed(C)}),n.YNc(1,B,0,0,"ng-template",6),n.qZA()}if(2&i){n.oxw();const s=n.MAs(2),g=n.oxw(),C=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",g.onCloseClicked?0:.5)("nzPopoverContent",s)("nzMode",g.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",C)}}function R(i,l){if(1&i&&n._UZ(0,"cvc-variant-popover",11),2&i){const s=n.oxw(3);n.Q6J("variantId",s.variant.id)}}function W(i,l){if(1&i&&n.YNc(0,R,1,1,"cvc-variant-popover",10),2&i){const s=n.oxw(2);n.Q6J("ngIf",s.enablePopover)}}function q(i,l){if(1&i&&(n.YNc(0,$,2,4,"nz-tag",7),n.YNc(1,W,1,1,"ng-template",null,8,n.W1O)),2&i){const s=n.oxw(),g=n.MAs(4);n.Q6J("ngIf",s.enablePopover)("ngIfElse",g)}}function K(i,l){}function H(i,l){if(1&i){const s=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(C){return n.CHM(s),n.oxw().itemClosed(C)}),n.YNc(1,K,0,0,"ng-template",6),n.qZA()}if(2&i){const s=n.oxw(),g=n.MAs(8);n.Q6J("nzMode",s.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",g)}}function X(i,l){}function G(i,l){if(1&i&&n.YNc(0,X,0,0,"ng-template",6),2&i){n.oxw();const s=n.MAs(2);n.Q6J("ngTemplateOutlet",s)}}function k(i,l){if(1&i&&(n._UZ(0,"i",13),n._uU(1)),2&i){const s=n.oxw();n.xp6(1),n.hij(" ",s.variant.name,"\n")}}let ee=(()=>{class i extends p.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(s){return new(s||i)},i.\u0275cmp=n.Xpm({type:i,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(s,g){if(1&s&&(n.YNc(0,V,3,2,"ng-container",0),n.YNc(1,q,3,2,"ng-template",null,1,n.W1O),n.YNc(3,H,2,2,"ng-template",null,2,n.W1O),n.YNc(5,G,1,1,"ng-template",null,3,n.W1O),n.YNc(7,k,2,1,"ng-template",null,4,n.W1O)),2&s){const C=n.MAs(6);n.Q6J("ngIf",g.linked)("ngIfElse",C)}},directives:[d.O5,_.yS,d.tP,e.j,Z.lU,E,h.Ls],styles:[""]}),i})()},4867:(Q,T,o)=>{o.d(T,{Q:()=>U});var p=o(9808),n=o(325),d=o(8481),_=o(647),e=o(3610),Z=o(6949),I=o(7484),u=o(1894),f=o(3098),h=o(8144),y=o(3309),z=o(3630),A=o(5e3);let S=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=A.oAB({type:m}),m.\u0275inj=A.cJS({imports:[[p.ez,n.Bz,Z.WG,I.vh,u.Jb,f.q6,d.X,_.PV,h.zf,y.U,z.X]]}),m})(),U=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=A.oAB({type:m}),m.\u0275inj=A.cJS({imports:[[p.ez,n.Bz,d.X,e.$6,_.PV,S]]}),m})()},3154:(Q,T,o)=>{o.d(T,{_:()=>n});var p=o(712);function n(d){var _;switch(d.value){case"ascend":_=p.SrV.Asc;break;case"descend":_=p.SrV.Desc;break;default:return}return{column:d.key,direction:_}}},233:(Q,T,o)=>{o.r(T),o.d(T,{DiseasesModule:()=>Ze});var p=o(9808),n=o(325),d=o(373),_=o(1059),e=o(5e3),Z=o(712),I=o(8992),u=o(1945),f=o(647),h=o(6550),y=o(3098),z=o(6949);function A(t,r){if(1&t&&(e.TgZ(0,"nz-page-header-extra"),e.TgZ(1,"cvc-link-tag",7),e._uU(2),e.qZA(),e.qZA()),2&t){const a=e.oxw().ngIf;e.xp6(1),e.Q6J("href",a.diseaseUrl),e.xp6(1),e.hij(" ","DOID:"+a.doid," ")}}function S(t,r){if(1&t&&(e.TgZ(0,"nz-descriptions-item",8),e._uU(1),e.qZA()),2&t){const a=e.oxw().ngIf;e.xp6(1),e.hij(" ",a.diseaseAliases.join(", ")," ")}}function U(t,r){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title"),e._UZ(4,"i",3),e._uU(5),e.qZA(),e.YNc(6,A,3,2,"nz-page-header-extra",0),e.TgZ(7,"nz-page-header-content"),e.TgZ(8,"div",4),e.TgZ(9,"nz-descriptions",5),e.YNc(10,S,2,1,"nz-descriptions-item",6),e.qZA(),e._UZ(11,"router-outlet"),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const a=r.ngIf;e.xp6(1),e.Q6J("displayName",a.name),e.xp6(4),e.hij(" ",a.name," "),e.xp6(1),e.Q6J("ngIf",a.doid),e.xp6(3),e.Q6J("nzColumn",1),e.xp6(1),e.Q6J("ngIf",a.diseaseAliases.length>0)}}let m=(()=>{class t{constructor(a,c){this.route=a,this.gql=c,this.routeSub=this.route.params.subscribe(P=>{this.diseaseId=+P.diseaseId,this.queryRef=this.gql.watch({diseaseId:this.diseaseId});let v=this.queryRef.valueChanges;this.loading$=v.pipe((0,d.j)("loading"),(0,_.O)(!0)),this.disease$=v.pipe((0,d.j)("data","disease"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(n.gz),e.Y36(Z.wg3))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-diseases-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","civic:disease"],[1,"content"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["tooltip","View on disease-ontology.org",3,"href"],["nzTitle","Aliases","nzSpan","2"]],template:function(a,c){1&a&&(e.YNc(0,U,12,5,"ng-container",0),e.ALo(1,"ngrxPush")),2&a&&e.Q6J("ngIf",e.lcZ(1,1,c.disease$))},directives:[p.O5,I.I,u.$O,u.u9,f.Ls,u.Jp,h.l,u.u5,y.R7,y.uj,n.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 M=o(1894),b=o(2683),O=o(3618),D=o(8144),J=o(6042),F=o(3154),L=o(8929),N=o(4850),j=o(2986),w=o(13),E=o(7484),x=o(1132),V=o(404),B=o(2166),$=o(4022),R=o(2643);function W(t,r){if(1&t&&(e.TgZ(0,"cvc-link-tag",24),e._uU(1),e.qZA()),2&t){const a=e.oxw().$implicit;e.Q6J("href",a.diseaseUrl),e.xp6(1),e.hij(" ","DOID:"+a.doid," ")}}function q(t,r){1&t&&e._uU(0," -- ")}function K(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const a=r.$implicit,c=r.last;e.xp6(1),e.AsE(" ",a,"",c?"":", "," ")}}function H(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._UZ(2,"cvc-disease-tag",20),e.qZA(),e.TgZ(3,"td"),e.YNc(4,W,2,2,"cvc-link-tag",21),e.YNc(5,q,1,0,"ng-template",null,22,e.W1O),e.qZA(),e.TgZ(7,"td"),e.TgZ(8,"p",23),e.YNc(9,K,2,2,"span",17),e.qZA(),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.qZA(),e.TgZ(12,"td"),e._uU(13),e.qZA(),e.TgZ(14,"td"),e._uU(15),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.qZA(),e.qZA()),2&t){const a=r.$implicit,c=e.MAs(6);e.xp6(2),e.Q6J("disease",a),e.xp6(2),e.Q6J("ngIf",a.doid)("ngIfElse",c),e.xp6(5),e.Q6J("ngForOf",a.geneNames),e.xp6(2),e.hij(" ",a.geneCount," "),e.xp6(2),e.hij(" ",a.variantCount," "),e.xp6(2),e.hij(" ",a.evidenceItemCount," "),e.xp6(2),e.hij(" ",a.assertionCount," ")}}function X(t,r){if(1&t){const a=e.EpF();e.TgZ(0,"button",28),e.NdJ("click",function(){e.CHM(a);const P=e.oxw(2).ngrxLet;return e.oxw().loadMore(P.endCursor)}),e._uU(1),e.qZA()}if(2&t){const a=e.oxw(3);e.xp6(1),e.hij("Load ",a.initialPageSize," More")}}function G(t,r){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"td",26),e.YNc(2,X,2,1,"button",27),e.qZA(),e.qZA()),2&t){const a=e.oxw().ngrxLet;e.xp6(2),e.Q6J("ngIf",a.hasNextPage)}}function k(t,r){if(1&t&&(e.ynx(0),e.YNc(1,G,3,1,"tr",25),e.BQk()),2&t){const a=r.ngrxLet;e.xp6(1),e.Q6J("ngIf",a.hasNextPage)}}function ee(t,r){}function i(t,r){if(1&t&&(e.ynx(0),e.YNc(1,ee,0,0,"ng-template",32),e.BQk()),2&t){const a=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function l(t,r){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const a=e.oxw(2);e.xp6(1),e.hij(" ",a.cvcTitle," ")}}function s(t,r){if(1&t&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&t){const a=e.oxw().ngIf;e.xp6(1),e.hij(" of ",a," filtered")}}function g(t,r){if(1&t&&(e.TgZ(0,"span",33),e._uU(1),e.YNc(2,s,2,1,"span",25),e._uU(3,") "),e.qZA()),2&t){const a=r.ngIf,c=e.oxw(2);e.xp6(1),e.AsE(" (",c.totalCount," total, showing ",c.visibleCount,""),e.xp6(1),e.Q6J("ngIf",c.totalCount&&a{class t{constructor(a){this.gql=a,this.debouncedQuery=new L.xQ,this.initialPageSize=25,this.sortColumns=Z.R8w,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.data$=this.queryRef.valueChanges.pipe((0,N.U)(a=>({data:a.data,loading:a.loading,networkStatus:a.networkStatus}))),this.isLoading$=this.data$.pipe((0,d.j)("loading"),(0,_.O)(!0)),this.diseases$=this.data$.pipe((0,d.j)("data","browseDiseases","edges"),(0,N.U)(a=>a.map(c=>c.node))),this.pageInfo$=this.data$.pipe((0,d.j)("data","browseDiseases","pageInfo")),this.filteredCount$=this.data$.pipe((0,d.j)("data","browseDiseases","filteredCount")),this.data$.pipe((0,d.j)("data","browseDiseases","totalCount")).pipe((0,j.q)(1)).subscribe(a=>this.totalCount=a),this.filteredCount$.subscribe(a=>{aa&&(this.visibleCount=a))}),this.debouncedQuery.pipe((0,w.b)(500)).subscribe(a=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var a;this.loadedPages=1,null===(a=this.queryRef)||void 0===a||a.refetch({name:this.nameInput,geneNames:this.geneNameInput,doid:this.doidInput})}onSortChanged(a){var c;this.loadedPages=1,null===(c=this.queryRef)||void 0===c||c.refetch({sortBy:(0,F._)(a)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(a){var c;null===(c=this.queryRef)||void 0===c||c.fetchMore({variables:{first:this.initialPageSize,after:a}}),this.loadedPages+=1}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(Z.Tq1))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-diseases-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:37,vars:37,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["diseasesTable",""],[3,"nzSortOrderChange"],["nzWidth","20%",3,"nzColumnKey","nzSortFn"],["nzWidth","30%"],["nzWidth","8%","nz-tooltip","","nzTooltipTitle","Gene Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:gene"],["nzWidth","8%","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:variant"],["nzWidth","8%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["nzWidth","8%","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:assertion"],["placeholderText","Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","DOID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"disease"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["noDoid",""],["nz-typography",""],["tooltip","View on disease-ontology.org",3,"href"],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:disease"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(a,c){if(1&a&&(e.TgZ(0,"nz-card",0),e.TgZ(1,"nz-table",1,2),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.TgZ(5,"thead",3),e.NdJ("nzSortOrderChange",function(v){return c.onSortChanged(v)}),e.TgZ(6,"tr"),e.TgZ(7,"th",4),e._uU(8," Name "),e.qZA(),e.TgZ(9,"th",4),e._uU(10," DOID "),e.qZA(),e.TgZ(11,"th",5),e._uU(12," Genes "),e.qZA(),e.TgZ(13,"th",6),e._UZ(14,"i",7),e.qZA(),e.TgZ(15,"th",8),e._UZ(16,"i",9),e.qZA(),e.TgZ(17,"th",10),e._UZ(18,"i",11),e.qZA(),e.TgZ(19,"th",12),e._UZ(20,"i",13),e.qZA(),e.qZA(),e.TgZ(21,"tr"),e.TgZ(22,"th"),e.TgZ(23,"cvc-clearable-input-filter",14),e.NdJ("inputModelChange",function(v){return c.nameInput=v}),e.qZA(),e.qZA(),e.TgZ(24,"th"),e.TgZ(25,"cvc-clearable-input-filter",15),e.NdJ("inputModelChange",function(v){return c.doidInput=v}),e.qZA(),e.qZA(),e.TgZ(26,"th"),e.TgZ(27,"cvc-clearable-input-filter",16),e.NdJ("inputModelChange",function(v){return c.geneNameInput=v}),e.qZA(),e.qZA(),e._UZ(28,"th"),e._UZ(29,"th"),e._UZ(30,"th"),e._UZ(31,"th"),e.qZA(),e.qZA(),e.TgZ(32,"tbody"),e.YNc(33,H,18,8,"tr",17),e.YNc(34,k,2,1,"ng-container",18),e.qZA(),e.qZA(),e.qZA(),e.YNc(35,ne,7,6,"ng-template",null,19,e.W1O)),2&a){const P=e.MAs(2),v=e.MAs(36);e.Q6J("nzTitle",v),e.xp6(1),e.Q6J("nzData",e.lcZ(3,29,c.diseases$))("nzLoading",e.lcZ(4,31,c.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),e.xp6(6),e.Q6J("nzColumnKey",c.sortColumns.Name)("nzSortFn",!0),e.xp6(2),e.Q6J("nzColumnKey",c.sortColumns.Doid)("nzSortFn",!0),e.xp6(4),e.Q6J("nzColumnKey",c.sortColumns.GeneCount)("nzSortFn",!0)("nzSortDirections",e.DdM(33,Y)),e.xp6(2),e.Q6J("nzColumnKey",c.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",e.DdM(34,Y)),e.xp6(2),e.Q6J("nzColumnKey",c.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",e.DdM(35,Y)),e.xp6(2),e.Q6J("nzColumnKey",c.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",e.DdM(36,Y)),e.xp6(4),e.Q6J("inputModel",c.nameInput)("onInputChanged",c.textInputCallback),e.xp6(2),e.Q6J("inputModel",c.doidInput)("onInputChanged",c.textInputCallback),e.xp6(2),e.Q6J("inputModel",c.geneNameInput)("onInputChanged",c.textInputCallback),e.xp6(6),e.Q6J("ngForOf",P.data),e.xp6(1),e.Q6J("ngrxLet",c.pageInfo$)}},directives:[E.bd,x.N8,x.Om,x.$Z,x.Uo,x._C,x.qD,V.SY,f.Ls,b.w,B.p,x.p0,p.sg,$.n,p.O5,h.l,O.ZU,z.eJ,J.ix,R.dQ,p.tP],pipes:[z.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),t})();function ie(t,r){1&t&&(e.TgZ(0,"a",14),e._UZ(1,"i",15),e._uU(2," View Disease Attribute Docs "),e.qZA())}function se(t,r){1&t&&(e.TgZ(0,"a",16),e._UZ(1,"i",15),e._uU(2," View Disease Curation Docs "),e.qZA())}let re=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["diseases-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:disease"],["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/disease.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html#curating-diseases","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Diseases"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html#curating-diseases","target","_blank","nzSize","small","nzBlock",""]],template:function(a,c){1&a&&(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,"Diseases"),e.qZA(),e.TgZ(9,"p",5),e._uU(10," All CIViC Evidence Items are associated with a Disease included in the Disease Ontology database. "),e.qZA(),e.qZA(),e.TgZ(11,"nz-col",6),e.TgZ(12,"nz-space",7),e.YNc(13,ie,3,0,"a",8),e.YNc(14,se,3,0,"a",9),e.qZA(),e.qZA(),e.qZA(),e.TgZ(15,"div",10),e.TgZ(16,"div",11),e.TgZ(17,"div",12),e._UZ(18,"cvc-diseases-table",13),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(9),e.Q6J("nzEllipsisRows",2),e.xp6(7),e.Q6J("nzSpan",24))},directives:[I.I,u.$O,u.u5,M.SK,M.t3,f.Ls,b.w,O.ZU,D.NU,D.$1,J.ix,oe],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 ce=o(3756),le=o(8965);function pe(t,r){if(1&t&&e._UZ(0,"cvc-assertions-table",4),2&t){const a=e.oxw(2);e.Q6J("diseaseId",a.diseaseId)}}function de(t,r){if(1&t&&e._UZ(0,"cvc-evidence-table",5),2&t){const a=e.oxw(2);e.Q6J("diseaseId",a.diseaseId)}}function ge(t,r){1&t&&(e.TgZ(0,"nz-space",1),e.YNc(1,pe,1,1,"cvc-assertions-table",2),e.YNc(2,de,1,1,"cvc-evidence-table",3),e.qZA())}const me=[{path:"",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-diseases"]],decls:1,vars:0,template:function(a,c){1&a&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),t})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:re,data:{breadcrumb:"Home"}},{path:":diseaseId",component:m,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class t{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(c=>{this.diseaseId=+c.diseaseId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(n.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-diseases-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Disease Assertions",3,"diseaseId",4,"nzSpaceItem"],["cvcTitle","Disease Evidence",3,"diseaseId",4,"nzSpaceItem"],["cvcTitle","Disease Assertions",3,"diseaseId"],["cvcTitle","Disease Evidence",3,"diseaseId"]],template:function(a,c){1&a&&e.YNc(0,ge,3,0,"nz-space",0),2&a&&e.Q6J("ngIf",c.diseaseId)},directives:[p.O5,D.NU,D.$1,ce.x,le.a],styles:["[_nghost-%COMP%]{display:block}"]}),t})(),data:{breadcrumb:"Summary"}}]}]}];let ue=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[n.Bz.forChild(me)],n.Bz]}),t})();var te=o(5630),ae=o(3630);let _e=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[p.ez,n.Bz,z.WG,f.PV,O.ZJ,u.KJ,y.q6,D.zf,ae.X,te.D]]}),t})();var he=o(767),fe=o(9441);let ve=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[p.ez,D.zf,he.Q,fe.s]]}),t})();var ze=o(4125),Ce=o(3580);let Te=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[p.ez,z.WG,f.PV,V.cg,x.HQ,J.sL,E.vh,f.PV,O.ZJ,ze.k,ae.X,Ce.Q]]}),t})(),xe=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[p.ez,f.PV,u.KJ,M.Jb,J.sL,O.ZJ,D.zf,te.D,Te]]}),t})(),Ze=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[p.ez,n.Bz,ue,xe,_e,ve]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/2678.e50a54105c5ce057.js b/server/public/2678.e50a54105c5ce057.js new file mode 100644 index 000000000..ec6d9ef61 --- /dev/null +++ b/server/public/2678.e50a54105c5ce057.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2678],{3580:(S,f,e)=>{e.d(f,{Q:()=>P});var g=e(9808),t=e(325),u=e(8481),d=e(3610),n=e(647),v=e(7484),T=e(3098),h=e(3630),x=e(6949),z=e(3618),C=e(9444),M=e(5e3);let _=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=M.oAB({type:p}),p.\u0275inj=M.cJS({imports:[[g.ez,x.WG,v.vh,T.q6,n.PV,z.ZJ,C.s,h.X]]}),p})(),P=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=M.oAB({type:p}),p.\u0275inj=M.cJS({imports:[[g.ez,t.Bz,u.X,d.$6,n.PV,C.s,_]]}),p})()},8018:(S,f,e)=>{e.d(f,{e:()=>p});var g=e(9808),t=e(325),u=e(8481),d=e(3610),n=e(647),v=e(7484),T=e(3098),h=e(6949),x=e(3630),z=e(3618),C=e(9444),M=e(404),_=e(5e3);let P=(()=>{class l{}return l.\u0275fac=function(D){return new(D||l)},l.\u0275mod=_.oAB({type:l}),l.\u0275inj=_.cJS({imports:[[g.ez,t.Bz,h.WG,v.vh,T.q6,n.PV,z.ZJ,u.X,M.cg,x.X,C.s]]}),l})(),p=(()=>{class l{}return l.\u0275fac=function(D){return new(D||l)},l.\u0275mod=_.oAB({type:l}),l.\u0275inj=_.cJS({imports:[[g.ez,t.Bz,u.X,d.$6,n.PV,C.s,P]]}),l})()},9476:(S,f,e)=>{e.d(f,{L:()=>P});var g=e(9808),t=e(325),u=e(8481),d=e(647),n=e(1894),v=e(3630),T=e(3098),h=e(7484),x=e(6949),z=e(5473),C=e(5e3);let M=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=C.oAB({type:p}),p.\u0275inj=C.cJS({imports:[[g.ez,x.WG,h.vh,n.Jb,T.q6,v.X,z.H]]}),p})();var _=e(3610);let P=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=C.oAB({type:p}),p.\u0275inj=C.cJS({imports:[[g.ez,t.Bz,u.X,d.PV,_.$6,M]]}),p})()},6715:(S,f,e)=>{e.d(f,{$:()=>u});var g=e(5e3);const t=["*"];let u=(()=>{class d{constructor(){}ngOnInit(){}}return d.\u0275fac=function(v){return new(v||d)},d.\u0275cmp=g.Xpm({type:d,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(v,T){2&v&&g.ekj("xs","xs"===T.size||!T.size)("sm","sm"===T.size)},inputs:{size:"size"},ngContentSelectors:t,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(v,T){1&v&&(g.F$t(),g.TgZ(0,"div",0),g.Hsn(1),g.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),d})()},897:(S,f,e)=>{e.d(f,{$:()=>u});var g=e(9808),t=e(5e3);let u=(()=>{class d{}return d.\u0275fac=function(v){return new(v||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({imports:[[g.ez]]}),d})()},7946:(S,f,e)=>{e.d(f,{x:()=>x});var g=e(9808),t=e(897),u=e(8481),d=e(3610),n=e(8018),v=e(3580),T=e(9476),h=e(5e3);let x=(()=>{class z{}return z.\u0275fac=function(M){return new(M||z)},z.\u0275mod=h.oAB({type:z}),z.\u0275inj=h.cJS({imports:[[g.ez,u.X,d.$6,t.$,n.e,v.Q,T.L]]}),z})()},8664:(S,f,e)=>{e.d(f,{I:()=>q});var g=e(6654),t=e(5e3),u=e(9808),d=e(325),n=e(8481),v=e(3610),T=e(4850),h=e(712),x=e(7484),z=e(647),C=e(3193),M=e(3098),_=e(6550),P=e(1894),p=e(8144),l=e(6949);function y(r,m){if(1&r&&(t._UZ(0,"i",13),t._uU(1)),2&r){const i=t.oxw().ngIf;t.xp6(1),t.hij(" ",i.name," ")}}function D(r,m){if(1&r&&t._UZ(0,"cvc-gene-tag",14),2&r){const i=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",i.gene)}}function F(r,m){if(1&r&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&r){const i=m.$implicit;t.xp6(1),t.Oqu(i)}}function V(r,m){if(1&r&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,F,2,1,"nz-tag",16),t.qZA()),2&r){const i=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",i.variantAliases)}}function Q(r,m){if(1&r&&(t.TgZ(0,"nz-descriptions-item",17),t.TgZ(1,"cvc-link-tag",18),t._uU(2),t.qZA(),t.qZA()),2&r){const i=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",i.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",i.alleleRegistryId," ")}}function E(r,m){if(1&r&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",20),t._UZ(2,"i",21),t._uU(3),t.qZA(),t.qZA()),2&r){const i=t.oxw().ngIf;t.MGl("routerLink","/variants/",i.id,"/flags"),t.xp6(3),t.hij(" Flags (",i.flags.totalCount,") ")}}function U(r,m){if(1&r&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",22),t._UZ(2,"i",23),t._uU(3),t.qZA(),t.qZA()),2&r){const i=t.oxw().ngIf;t.MGl("routerLink","/variants/",i.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",i.revisions.totalCount,") ")}}function J(r,m){if(1&r&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",24),t._UZ(2,"i",25),t._uU(3),t.qZA(),t.qZA()),2&r){const i=t.oxw().ngIf;t.MGl("routerLink","/variants/",i.id,"/comments"),t.xp6(3),t.hij(" Comments (",i.comments.totalCount,") ")}}function N(r,m){if(1&r&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,y,2,1,"ng-template",null,3,t.W1O),t.YNc(4,D,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,V,2,1,"nz-descriptions-item",6),t.YNc(8,Q,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,E,4,2,"a",12),t.YNc(15,U,4,2,"a",12),t.YNc(16,J,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&r){const i=m.ngIf,Z=t.MAs(3),I=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",Z)("nzExtra",I),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",i.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",i.alleleRegistryId),t.xp6(2),t.hij(" ",i.evidenceItems.totalCount," ")}}let L=(()=>{class r{constructor(i){this.gql=i}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,T.U)(({data:i})=>i.variant))}}return r.\u0275fac=function(i){return new(i||r)(t.Y36(h.ZYZ))},r.\u0275cmp=t.Xpm({type:r,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(i,Z){1&i&&(t.TgZ(0,"div",0),t.YNc(1,N,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,Z.variant$)))},directives:[u.O5,x.bd,z.Ls,C.H,M.R7,M.uj,u.sg,n.j,_.l,P.SK,P.t3,p.NU,p.$1,d.yS],pipes:[l.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}"]}),r})();function Y(r,m){}function j(r,m){if(1&r&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,Y,0,0,"ng-template",6),t.qZA(),t.BQk()),2&r){const i=t.oxw(),Z=t.MAs(2);t.xp6(1),t.Q6J("routerLink",i.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",Z)}}function R(r,m){}function $(r,m){if(1&r){const i=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(I){return t.CHM(i),t.oxw(2).itemClosed(I)}),t.YNc(1,R,0,0,"ng-template",6),t.qZA()}if(2&r){t.oxw();const i=t.MAs(2),Z=t.oxw(),I=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",Z.onCloseClicked?0:.5)("nzPopoverContent",i)("nzMode",Z.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",I)}}function B(r,m){if(1&r&&t._UZ(0,"cvc-variant-popover",11),2&r){const i=t.oxw(3);t.Q6J("variantId",i.variant.id)}}function O(r,m){if(1&r&&t.YNc(0,B,1,1,"cvc-variant-popover",10),2&r){const i=t.oxw(2);t.Q6J("ngIf",i.enablePopover)}}function W(r,m){if(1&r&&(t.YNc(0,$,2,4,"nz-tag",7),t.YNc(1,O,1,1,"ng-template",null,8,t.W1O)),2&r){const i=t.oxw(),Z=t.MAs(4);t.Q6J("ngIf",i.enablePopover)("ngIfElse",Z)}}function K(r,m){}function X(r,m){if(1&r){const i=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(I){return t.CHM(i),t.oxw().itemClosed(I)}),t.YNc(1,K,0,0,"ng-template",6),t.qZA()}if(2&r){const i=t.oxw(),Z=t.MAs(8);t.Q6J("nzMode",i.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",Z)}}function H(r,m){}function G(r,m){if(1&r&&t.YNc(0,H,0,0,"ng-template",6),2&r){t.oxw();const i=t.MAs(2);t.Q6J("ngTemplateOutlet",i)}}function w(r,m){if(1&r&&(t._UZ(0,"i",13),t._uU(1)),2&r){const i=t.oxw();t.xp6(1),t.hij(" ",i.variant.name,"\n")}}let q=(()=>{class r extends g.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 r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=t.Xpm({type:r,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(i,Z){if(1&i&&(t.YNc(0,j,3,2,"ng-container",0),t.YNc(1,W,3,2,"ng-template",null,1,t.W1O),t.YNc(3,X,2,2,"ng-template",null,2,t.W1O),t.YNc(5,G,1,1,"ng-template",null,3,t.W1O),t.YNc(7,w,2,1,"ng-template",null,4,t.W1O)),2&i){const I=t.MAs(6);t.Q6J("ngIf",Z.linked)("ngIfElse",I)}},directives:[u.O5,d.yS,u.tP,n.j,v.lU,L,z.Ls],styles:[""]}),r})()},4867:(S,f,e)=>{e.d(f,{Q:()=>p});var g=e(9808),t=e(325),u=e(8481),d=e(647),n=e(3610),v=e(6949),T=e(7484),h=e(1894),x=e(3098),z=e(8144),C=e(3309),M=e(3630),_=e(5e3);let P=(()=>{class l{}return l.\u0275fac=function(D){return new(D||l)},l.\u0275mod=_.oAB({type:l}),l.\u0275inj=_.cJS({imports:[[g.ez,t.Bz,v.WG,T.vh,h.Jb,x.q6,u.X,d.PV,z.zf,C.U,M.X]]}),l})(),p=(()=>{class l{}return l.\u0275fac=function(D){return new(D||l)},l.\u0275mod=_.oAB({type:l}),l.\u0275inj=_.cJS({imports:[[g.ez,t.Bz,u.X,n.$6,d.PV,P]]}),l})()},3154:(S,f,e)=>{e.d(f,{_:()=>t});var g=e(712);function t(u){var d;switch(u.value){case"ascend":d=g.SrV.Asc;break;case"descend":d=g.SrV.Desc;break;default:return}return{column:u.key,direction:d}}},1592:(S,f,e)=>{e.r(f),e.d(f,{DrugsModule:()=>Dn});var g=e(9808),t=e(325),u=e(373),d=e(1059),n=e(5e3),v=e(712),T=e(8992),h=e(1945),x=e(647),z=e(6550),C=e(3098),M=e(8481),_=e(404),P=e(6949),p=e(4557);function l(o,c){if(1&o&&(n.TgZ(0,"nz-page-header-extra"),n.TgZ(1,"cvc-link-tag",7),n._uU(2),n.qZA(),n.qZA()),2&o){const a=n.oxw().ngIf;n.xp6(1),n.Q6J("href",a.drugUrl),n.xp6(1),n.hij(" ",a.ncitId," ")}}function y(o,c){if(1&o&&(n.TgZ(0,"nz-tag",10),n._uU(1),n.ALo(2,"truncate"),n.qZA()),2&o){const a=c.$implicit;n.Q6J("nzTooltipTitle",a),n.xp6(1),n.Oqu(n.lcZ(2,2,a))}}function D(o,c){if(1&o&&(n.TgZ(0,"nz-descriptions-item",8),n.YNc(1,y,3,4,"nz-tag",9),n.qZA()),2&o){const a=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",a.drugAliases)}}function F(o,c){if(1&o&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2),n.TgZ(3,"nz-page-header-title"),n._UZ(4,"i",3),n._uU(5),n.qZA(),n.YNc(6,l,3,2,"nz-page-header-extra",0),n.TgZ(7,"nz-page-header-content"),n.TgZ(8,"div",4),n.TgZ(9,"nz-descriptions",5),n.YNc(10,D,2,1,"nz-descriptions-item",6),n.qZA(),n._UZ(11,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&o){const a=c.ngIf;n.xp6(1),n.Q6J("displayName",a.name),n.xp6(4),n.hij(" ",a.name," "),n.xp6(1),n.Q6J("ngIf",a.ncitId),n.xp6(3),n.Q6J("nzColumn",1),n.xp6(1),n.Q6J("ngIf",a.drugAliases.length>0)}}let V=(()=>{class o{constructor(a,s){this.route=a,this.gql=s,this.routeSub=this.route.params.subscribe(b=>{this.drugId=+b.drugId,this.queryRef=this.gql.watch({drugId:this.drugId});let A=this.queryRef.valueChanges;this.loading$=A.pipe((0,u.j)("loading"),(0,d.O)(!0)),this.drug$=A.pipe((0,u.j)("data","drug"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(t.gz),n.Y36(v.GB2))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-drugs-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","civic:intervention"],[1,"content"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["tooltip","View in the NCIthesaurus",3,"href"],["nzTitle","Aliases","nzSpan","2"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"]],template:function(a,s){1&a&&(n.YNc(0,F,12,5,"ng-container",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,s.drug$))},directives:[g.O5,T.I,h.$O,h.u9,x.Ls,h.Jp,z.l,h.u5,C.R7,C.uj,g.sg,M.j,_.SY,t.lC],pipes:[P.fM,p.W],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})();var Q=e(1894),E=e(2683),U=e(3618),J=e(8144),N=e(6042),L=e(3154),Y=e(8929),j=e(4850),R=e(2986),$=e(13),B=e(7484),O=e(1132),W=e(2166),K=e(7469),X=e(2643);function H(o,c){if(1&o&&(n.TgZ(0,"cvc-link-tag",17),n._uU(1),n.qZA()),2&o){const a=n.oxw().$implicit;n.Q6J("href",a.drugUrl),n.xp6(1),n.hij(" ",a.ncitId," ")}}function G(o,c){1&o&&n._uU(0,"--")}function w(o,c){if(1&o&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-drug-tag",14),n.qZA(),n.TgZ(3,"td"),n.YNc(4,H,2,2,"cvc-link-tag",15),n.YNc(5,G,1,0,"ng-template",null,16,n.W1O),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.qZA()),2&o){const a=c.$implicit,s=n.MAs(6);n.xp6(2),n.Q6J("drug",a),n.xp6(2),n.Q6J("ngIf",a.ncitId)("ngIfElse",s),n.xp6(4),n.hij(" ",a.evidenceCount," "),n.xp6(2),n.hij(" ",a.assertionCount," ")}}function q(o,c){if(1&o){const a=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(a);const b=n.oxw(2).ngrxLet;return n.oxw().loadMore(b.endCursor)}),n._uU(1),n.qZA()}if(2&o){const a=n.oxw(3);n.xp6(1),n.hij("Load ",a.initialPageSize," More")}}function r(o,c){if(1&o&&(n.TgZ(0,"tr"),n.TgZ(1,"td",19),n.YNc(2,q,2,1,"button",20),n.qZA(),n.qZA()),2&o){const a=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",a.hasNextPage)}}function m(o,c){if(1&o&&(n.ynx(0),n.YNc(1,r,3,1,"tr",18),n.BQk()),2&o){const a=c.ngrxLet;n.xp6(1),n.Q6J("ngIf",a.hasNextPage)}}function i(o,c){}function Z(o,c){if(1&o&&(n.ynx(0),n.YNc(1,i,0,0,"ng-template",25),n.BQk()),2&o){const a=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function I(o,c){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const a=n.oxw(2);n.xp6(1),n.hij(" ",a.cvcTitle," ")}}function k(o,c){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const a=n.oxw().ngIf;n.xp6(1),n.hij(" of ",a," filtered")}}function on(o,c){if(1&o&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,k,2,1,"span",18),n._uU(3,") "),n.qZA()),2&o){const a=c.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&a{class o{constructor(a){this.gql=a,this.truncateLongName=!1,this.initialPageSize=25,this.debouncedQuery=new Y.xQ,this.sortColumns=v.kq9,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize});let a=this.queryRef.valueChanges;this.drugs$=a.pipe((0,u.j)("data","drugs","edges"),(0,j.U)(s=>s.map(b=>b.node))),this.isLoading$=a.pipe((0,u.j)("loading"),(0,d.O)(!0)),this.filteredCount$=a.pipe((0,u.j)("data","drugs","filteredCount")),this.filteredCount$.pipe((0,R.q)(1)).subscribe(s=>this.totalCount=s),this.filteredCount$.subscribe(s=>{ss&&(this.visibleCount=s))}),this.pageInfo$=a.pipe((0,u.j)("data","drugs","pageInfo")),this.debouncedQuery.pipe((0,$.b)(500)).subscribe(s=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}onModelChanged(){this.debouncedQuery.next()}onSortChanged(a){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,L._)(a)})}refresh(){var a;this.loadedPages=1,null===(a=this.queryRef)||void 0===a||a.refetch({name:this.nameFilter,ncitId:this.ncitIdFilter})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(a){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{after:a}}),this.loadedPages+=1}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(v.Ud2))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-drugs-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",truncateLongName:"truncateLongName"},decls:27,vars:27,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["drugsTable",""],[3,"nzSortOrderChange"],["nzWidth","40%",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nz-icon","","nzType","civic:assertion"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search NCIt ID",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"drug"],["tooltip","View in the NCIthesaurus",3,"href",4,"ngIf","ngIfElse"],["noNcit",""],["tooltip","View in the NCIthesaurus",3,"href"],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:intervention"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(a,s){if(1&a&&(n.TgZ(0,"nz-card",0),n.TgZ(1,"nz-table",1,2),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",3),n.NdJ("nzSortOrderChange",function(A){return s.onSortChanged(A)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",4),n._uU(10," NCIt ID "),n.qZA(),n.TgZ(11,"th",5),n._UZ(12,"i",6),n.qZA(),n.TgZ(13,"th",7),n._UZ(14,"i",8),n.qZA(),n.qZA(),n.TgZ(15,"tr"),n.TgZ(16,"th"),n.TgZ(17,"cvc-clearable-input-filter",9),n.NdJ("inputModelChange",function(A){return s.nameFilter=A}),n.qZA(),n.qZA(),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",10),n.NdJ("inputModelChange",function(A){return s.ncitIdFilter=A}),n.qZA(),n.qZA(),n._UZ(20,"th"),n._UZ(21,"th"),n.qZA(),n.qZA(),n.TgZ(22,"tbody"),n.YNc(23,w,11,5,"tr",11),n.YNc(24,m,2,1,"ng-container",12),n.qZA(),n.qZA(),n.qZA(),n.YNc(25,rn,7,6,"ng-template",null,13,n.W1O)),2&a){const b=n.MAs(2),A=n.MAs(26);n.Q6J("nzTitle",A),n.xp6(1),n.Q6J("nzData",n.lcZ(3,21,s.drugs$))("nzLoading",n.lcZ(4,23,s.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.NcitId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortDirections",n.DdM(25,nn))("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.AssertionCount)("nzSortDirections",n.DdM(26,nn))("nzSortFn",!0),n.xp6(4),n.Q6J("inputModel",s.nameFilter)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.ncitIdFilter)("onInputChanged",s.textInputCallback),n.xp6(4),n.Q6J("ngForOf",b.data),n.xp6(1),n.Q6J("ngrxLet",s.pageInfo$)}},directives:[B.bd,O.N8,O.Om,O.$Z,O.Uo,O._C,O.qD,O.qn,_.SY,x.Ls,E.w,W.p,O.p0,g.sg,K.u,g.O5,z.l,P.eJ,N.ix,X.dQ,g.tP,U.ZU],pipes:[P.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),o})();function cn(o,c){1&o&&(n.TgZ(0,"a",14),n._UZ(1,"i",15),n._uU(2," View Drug Attribute Docs "),n.qZA())}function gn(o,c){1&o&&(n.TgZ(0,"a",16),n._UZ(1,"i",15),n._uU(2," View Drug Curation Docs "),n.qZA())}let ln=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["drugs-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:intervention"],["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/drug.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/drug.html#curating-drugs","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Drugs"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/drug.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/drug.html#curating-drugs","target","_blank","nzSize","small","nzBlock",""]],template:function(a,s){1&a&&(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,"Drugs"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"CIViC Drugs are associated with Predictive Evidence Types, and describe the sensitivity, resistance or adverse response to treatment. Drugs may also be used to describe more general treatment types and regimes, such as FOLFOX or Radiation."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,cn,3,0,"a",8),n.YNc(14,gn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n.TgZ(17,"div",12),n._UZ(18,"cvc-drugs-table",13),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&a&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[T.I,h.$O,h.u5,Q.SK,Q.t3,x.Ls,E.w,U.ZU,J.NU,J.$1,N.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}"]}),o})();var pn=e(3756),dn=e(8965);function un(o,c){if(1&o&&n._UZ(0,"cvc-assertions-table",4),2&o){const a=n.oxw(2);n.Q6J("drugId",a.drugId)}}function mn(o,c){if(1&o&&n._UZ(0,"cvc-evidence-table",5),2&o){const a=n.oxw(2);n.Q6J("drugId",a.drugId)}}function vn(o,c){1&o&&(n.TgZ(0,"nz-space",1),n.YNc(1,un,1,1,"cvc-assertions-table",2),n.YNc(2,mn,1,1,"cvc-evidence-table",3),n.qZA())}const hn=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-drugs"]],decls:1,vars:0,template:function(a,s){1&a&&n._UZ(0,"router-outlet")},directives:[t.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:ln,data:{breadcrumb:"Home"}},{path:":drugId",component:V,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class o{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(s=>{this.drugId=+s.drugId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(t.gz))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-drugs-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Drug Assertions",3,"drugId",4,"nzSpaceItem"],["cvcTitle","Drug Evidence",3,"drugId",4,"nzSpaceItem"],["cvcTitle","Drug Assertions",3,"drugId"],["cvcTitle","Drug Evidence",3,"drugId"]],template:function(a,s){1&a&&n.YNc(0,vn,3,0,"nz-space",0),2&a&&n.Q6J("ngIf",s.drugId)},directives:[g.O5,J.NU,J.$1,pn.x,dn.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})(),data:{breadcrumb:"Summary"}}]}]}];let fn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[t.Bz.forChild(hn)],t.Bz]}),o})();var tn=e(5630),en=e(3630),zn=e(9444);let Cn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[g.ez,t.Bz,P.WG,x.PV,h.KJ,J.zf,C.q6,M.X,_.cg,en.X,tn.D,zn.s]]}),o})();var _n=e(767),Tn=e(9441);let xn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[g.ez,J.zf,_n.Q,Tn.s]]}),o})();var yn=e(8018),Mn=e(4125);let Zn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[g.ez,P.WG,O.HQ,x.PV,N.sL,B.vh,x.PV,U.ZJ,_.cg,yn.e,en.X,Mn.k]]}),o})(),Pn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[g.ez,x.PV,h.KJ,Q.Jb,U.ZJ,J.zf,N.sL,tn.D,Zn]]}),o})(),Dn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[g.ez,t.Bz,fn,Pn,Cn,xn]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/2738.9e4f1b8d15d1377a.js b/server/public/2738.9e4f1b8d15d1377a.js deleted file mode 100644 index 09b4720b0..000000000 --- a/server/public/2738.9e4f1b8d15d1377a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2738],{9401:(z,C,o)=>{o.d(C,{y:()=>m});var t=o(9808),n=o(8481),E=o(647),g=o(325),P=o(9444),T=o(5e3);let m=(()=>{class p{}return p.\u0275fac=function(O){return new(O||p)},p.\u0275mod=T.oAB({type:p}),p.\u0275inj=T.cJS({imports:[[t.ez,g.Bz,P.s,n.X,E.PV]]}),p})()},6265:(z,C,o)=>{o.d(C,{q:()=>B});var t=o(4850),n=o(5e3),E=o(712),g=o(9808),P=o(7484),T=o(7881),m=o(1894),p=o(3098),l=o(6715),O=o(5749),a=o(5737),u=o(6949);const i=["additionalMetadata"];function c(_,v){if(1&_&&(n._UZ(0,"cvc-user-avatar",14),n.TgZ(1,"span",15),n._uU(2),n.qZA()),2&_){const r=n.oxw().ngIf;n.Q6J("user",r),n.xp6(2),n.Oqu(r.displayName)}}function f(_,v){if(1&_&&(n._UZ(0,"i",16),n._uU(1),n.ALo(2,"titlecase")),2&_){const r=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,1,r.role)," ")}}function x(_,v){if(1&_&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&_){const r=v.ngIf;n.xp6(1),n.Oqu(r)}}function A(_,v){if(1&_&&n._UZ(0,"cvc-organization-tag",18),2&_){const r=v.$implicit;n.Q6J("enablePopover",!1)("org",r)}}function I(_,v){if(1&_&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,A,1,2,"cvc-organization-tag",17),n.qZA()),2&_){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.organizations)}}function h(_,v){1&_&&n._UZ(0,"nz-divider")}const e=function(_){return{$implicit:_}};function d(_,v){if(1&_&&(n.ynx(0),n._UZ(1,"nz-card",4),n.YNc(2,c,3,2,"ng-template",null,5,n.W1O),n.YNc(4,f,3,3,"ng-template",null,6,n.W1O),n.TgZ(6,"nz-row"),n.TgZ(7,"nz-col",7),n.TgZ(8,"div",8),n.TgZ(9,"p",9),n.YNc(10,x,2,1,"span",10),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"nz-row"),n.TgZ(12,"nz-col",7),n.TgZ(13,"nz-descriptions",11),n.TgZ(14,"nz-descriptions-item",12),n.YNc(15,I,2,1,"cvc-tag-list",10),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(16,"nz-row"),n.YNc(17,h,1,0,"nz-divider",1),n.GkF(18,13),n.qZA(),n.BQk()),2&_){const r=v.ngIf,D=n.MAs(3),R=n.MAs(5),U=n.oxw(),W=n.MAs(4),y=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",D)("nzExtra",R),n.xp6(9),n.Q6J("ngIf",r.bio)("ngIfElse",W),n.xp6(3),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",r.organizations.length>0)("ngIfElse",y),n.xp6(2),n.Q6J("ngIf",U.metadataTemplateRef),n.xp6(1),n.Q6J("ngTemplateOutlet",U.metadataTemplateRef||null)("ngTemplateOutletContext",n.VKq(10,e,r))}}function s(_,v){1&_&&n._uU(0," User has not provided a biography.\n")}function M(_,v){1&_&&(n.TgZ(0,"span",19),n._uU(1,"--"),n.qZA())}let B=(()=>{class _{constructor(r){this.gql=r}ngOnInit(){if(null==this.userId)throw new Error("Must pass an id into user hovercard");this.user$=this.gql.watch({userId:this.userId}).valueChanges.pipe((0,t.U)(({data:r})=>r.user))}}return _.\u0275fac=function(r){return new(r||_)(n.Y36(E.cEv))},_.\u0275cmp=n.Xpm({type:_,selectors:[["cvc-user-popover"]],contentQueries:function(r,D,R){if(1&r&&n.Suo(R,i,5),2&r){let U;n.iGM(U=n.CRH())&&(D.metadataTemplateRef=U.first)}},inputs:{userId:"userId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noBio",""],["noOrganizations",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Organizations"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],["nz-icon","","nzType","civic-admin"],[3,"enablePopover","org",4,"ngFor","ngForOf"],[3,"enablePopover","org"],["nz-typography","","nzStyle","secondary"]],template:function(r,D){1&r&&(n.TgZ(0,"div",0),n.YNc(1,d,19,12,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,s,1,0,"ng-template",null,2,n.W1O),n.YNc(5,M,2,0,"ng-template",null,3,n.W1O)),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,D.user$)))},directives:[g.O5,P.bd,T.L,m.SK,m.t3,p.R7,p.uj,l.$,g.sg,O.m,a.g,g.tP],pipes:[u.fM,g.rS],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}.display-name[_ngcontent-%COMP%]{margin-left:8px;font-weight:400}"]}),_})()},6081:(z,C,o)=>{o.d(C,{J:()=>u});var t=o(9808),n=o(3630),E=o(3098),g=o(7484),P=o(6949),T=o(897),m=o(9476),p=o(5473),l=o(5737),O=o(1894),a=o(5e3);let u=(()=>{class i{}return i.\u0275fac=function(f){return new(f||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({imports:[[t.ez,P.WG,O.Jb,g.vh,E.q6,l.S,n.X,T.$,m.L,p.H]]}),i})()},125:(z,C,o)=>{o.d(C,{I:()=>h});var t=o(5e3),n=o(9808),E=o(325),g=o(8481),P=o(3610),T=o(6265),m=o(647);function p(e,d){}function l(e,d){if(1&e&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,p,0,0,"ng-template",6),t.qZA(),t.BQk()),2&e){const s=t.oxw(),M=t.MAs(2);t.xp6(1),t.MGl("routerLink","/users/",s.user.id,""),t.xp6(1),t.Q6J("ngTemplateOutlet",M)}}function O(e,d){}function a(e,d){if(1&e&&(t.TgZ(0,"nz-tag",9),t.YNc(1,O,0,0,"ng-template",6),t.qZA()),2&e){t.oxw();const s=t.MAs(2);t.oxw();const M=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",s),t.xp6(1),t.Q6J("ngTemplateOutlet",M)}}function u(e,d){if(1&e&&t._UZ(0,"cvc-user-popover",10),2&e){const s=t.oxw(2);t.Q6J("userId",s.user.id)}}function i(e,d){if(1&e&&(t.YNc(0,a,2,3,"nz-tag",7),t.YNc(1,u,1,1,"ng-template",null,8,t.W1O)),2&e){const s=t.oxw(),M=t.MAs(4);t.Q6J("ngIf",s.enablePopover)("ngIfElse",M)}}function c(e,d){}function f(e,d){if(1&e&&(t.TgZ(0,"nz-tag"),t.YNc(1,c,0,0,"ng-template",6),t.qZA()),2&e){t.oxw();const s=t.MAs(8);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function x(e,d){}function A(e,d){if(1&e&&t.YNc(0,x,0,0,"ng-template",6),2&e){t.oxw();const s=t.MAs(2);t.Q6J("ngTemplateOutlet",s)}}function I(e,d){if(1&e&&(t._UZ(0,"i",11),t._uU(1)),2&e){const s=t.oxw();t.Q6J("nzType",s.icon),t.xp6(1),t.hij(" ",s.user.displayName,"\n")}}let h=(()=>{class e{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.user)throw new Error("cvc-user-tag component requires valid user input.");switch(this.user.role){case"ADMIN":this.icon="civic-admin";break;case"EDITOR":this.icon="civic-editor";break;default:this.icon="civic-curator"}}}return e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-user-tag"]],inputs:{user:"user",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","topCenter",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["userPopover",""],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","topCenter",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"userId"],["nz-icon","","nzTheme","twotone","nzTwotoneColor","#A0D8F5",3,"nzType"]],template:function(s,M){if(1&s&&(t.YNc(0,l,3,2,"ng-container",0),t.YNc(1,i,3,2,"ng-template",null,1,t.W1O),t.YNc(3,f,2,1,"ng-template",null,2,t.W1O),t.YNc(5,A,1,1,"ng-template",null,3,t.W1O),t.YNc(7,I,2,2,"ng-template",null,4,t.W1O)),2&s){const B=t.MAs(6);t.Q6J("ngIf",M.linked)("ngIfElse",B)}},directives:[n.O5,E.yS,n.tP,g.j,P.lU,T.q,m.Ls],styles:[""]}),e})()},7345:(z,C,o)=>{o.d(C,{W:()=>p});var t=o(9808),n=o(325),E=o(3610),g=o(8481),P=o(647),T=o(6081),m=o(5e3);let p=(()=>{class l{}return l.\u0275fac=function(a){return new(a||l)},l.\u0275mod=m.oAB({type:l}),l.\u0275inj=m.cJS({imports:[[t.ez,n.Bz,T.J,E.$6,g.X,P.PV]]}),l})()},5737:(z,C,o)=>{o.d(C,{g:()=>l,S:()=>O});var t=o(655),n=o(5e3),E=o(1721),g=o(9808),P=o(969),T=o(226);function m(a,u){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const i=n.oxw(2);n.xp6(1),n.Oqu(i.nzText)}}function p(a,u){if(1&a&&(n.TgZ(0,"span",1),n.YNc(1,m,2,1,"ng-container",2),n.qZA()),2&a){const i=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.nzText)}}let l=(()=>{class a{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(i,c){2&i&&n.ekj("ant-divider-horizontal","horizontal"===c.nzType)("ant-divider-vertical","vertical"===c.nzType)("ant-divider-with-text",c.nzText)("ant-divider-plain",c.nzPlain)("ant-divider-with-text-left",c.nzText&&"left"===c.nzOrientation)("ant-divider-with-text-right",c.nzText&&"right"===c.nzOrientation)("ant-divider-with-text-center",c.nzText&&"center"===c.nzOrientation)("ant-divider-dashed",c.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(i,c){1&i&&n.YNc(0,p,2,1,"span",0),2&i&&n.Q6J("ngIf",c.nzText)},directives:[g.O5,P.f],encapsulation:2,changeDetection:0}),(0,t.gn)([(0,E.yF)()],a.prototype,"nzDashed",void 0),(0,t.gn)([(0,E.yF)()],a.prototype,"nzPlain",void 0),a})(),O=(()=>{class a{}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[T.vT,g.ez,P.T]]}),a})()}}]); \ No newline at end of file diff --git a/server/public/2808.3a70df74963ca49b.js b/server/public/2808.3a70df74963ca49b.js new file mode 100644 index 000000000..74f135d8a --- /dev/null +++ b/server/public/2808.3a70df74963ca49b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2808],{8227:(F,A,o)=>{o.d(A,{q:()=>m});var i=o(5e3),T=o(8929),O=o(4850),f=o(373),I=o(2868),w=o(7625),D=o(1793),h=o(9350),y=o(9808),C=o(6042),_=o(2683),Q=o(2643),E=o(3677),z=o(8144),x=o(6699),P=o(4219);function B(d,u){1&d&&i.Hsn(0)}function J(d,u){1&d&&i.GkF(0)}function L(d,u){if(1&d&&(i.ynx(0),i.YNc(1,J,1,0,"ng-container",5),i.BQk()),2&d){i.oxw(2);const r=i.MAs(1);i.xp6(1),i.Q6J("ngTemplateOutlet",r)}}function e(d,u){1&d&&i.GkF(0)}function N(d,u){if(1&d&&(i.ynx(0),i.TgZ(1,"nz-button-group",6),i.YNc(2,e,1,0,"ng-container",5),i.TgZ(3,"button",7),i.TgZ(4,"nz-space",8),i.TgZ(5,"span"),i._uU(6,"for"),i.qZA(),i._UZ(7,"nz-avatar",9),i._UZ(8,"i",10),i.qZA(),i.qZA(),i.qZA(),i.BQk()),2&d){i.oxw();const r=i.MAs(4),v=i.oxw(),M=i.MAs(1);i.xp6(1),i.Q6J("nzSize",v.nzSize),i.xp6(1),i.Q6J("ngTemplateOutlet",M),i.xp6(1),i.Q6J("nzType",v.buttonType)("nzDanger",v.nzDanger)("disabled",v.disabled)("nzDropdownMenu",r),i.xp6(1),i.Q6J("nzSize",4),i.xp6(3),i.Q6J("nzSrc",null==v.selectedOrg?null:v.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function l(d,u){if(1&d){const r=i.EpF();i.TgZ(0,"li",11),i.NdJ("click",function(){const Z=i.CHM(r).$implicit;return i.oxw(2).selectOrg(Z)}),i._UZ(1,"nz-avatar",12),i._uU(2),i.qZA()}if(2&d){const r=u.$implicit,v=i.oxw(2);i.Q6J("nzSelected",(null==v.selectedOrg?null:v.selectedOrg.id)===r.id),i.xp6(1),i.Q6J("nzSrc",null==r?null:r.profileImagePath)("nzSize",10)("nzShape","square"),i.xp6(1),i.hij(" ",r.name," ")}}function p(d,u){if(1&d&&(i.ynx(0),i.YNc(1,L,2,1,"ng-container",1),i.YNc(2,N,9,10,"ng-container",1),i.TgZ(3,"nz-dropdown-menu",null,2),i.TgZ(5,"ul",3),i.YNc(6,l,3,5,"li",4),i.qZA(),i.qZA(),i.BQk()),2&d){const r=u.ngIf;i.xp6(1),i.Q6J("ngIf",r.length<=1),i.xp6(1),i.Q6J("ngIf",r.length>1),i.xp6(4),i.Q6J("ngForOf",r)}}const c=["*"];let m=(()=>{class d{constructor(r){this.viewerService=r,this.selectedOrgChange=new i.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new T.xQ}get disabled(){return this.button.disabled}selectOrg(r){this.selectedOrg=r,this.selectedOrgChange.emit(r)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,O.U)(r=>r.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,f.j)("mostRecentOrg"),(0,I.b)(r=>{r&&(this.selectedOrg=r,this.selectedOrgChange.emit(r))})),this.mostRecentOrg$.pipe((0,w.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return d.\u0275fac=function(r){return new(r||d)(i.Y36(h.a))},d.\u0275cmp=i.Xpm({type:d,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(r,v,M){if(1&r&&i.Suo(M,D.m,5),2&r){let Z;i.iGM(Z=i.CRH())&&(v.button=Z.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:c,decls:4,vars:3,consts:[["submitButton",""],[4,"ngIf"],["orgMenu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[4,"ngTemplateOutlet"],[3,"nzSize"],["type","button","nz-button","","nz-dropdown","",1,"org-dropdown-btn",3,"nzType","nzDanger","disabled","nzDropdownMenu"],["nzDirection","horizontal",3,"nzSize"],[3,"nzSrc","nzSize","nzShape"],["nz-icon","","nzType","down"],["nz-menu-item","",3,"nzSelected","click"],[2,"background-color","#f0f5ff",3,"nzSrc","nzSize","nzShape"]],template:function(r,v){1&r&&(i.F$t(),i.YNc(0,B,1,0,"ng-template",null,0,i.W1O),i.YNc(2,p,7,3,"ng-container",1),i.ALo(3,"async")),2&r&&(i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,v.organizations$)))},directives:[y.O5,y.tP,C.fY,_.w,C.ix,Q.dQ,E.wA,E.cm,z.NU,x.Dz,E.RR,P.wO,y.sg,P.r9],pipes:[y.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),d})()},9636:(F,A,o)=>{o.r(A),o.d(A,{EvidenceDetailModule:()=>jn});var i=o(9808),T=o(6949),O=o(5630),f=o(8144),I=o(3618),w=o(3309),D=o(4682),h=o(1945),y=o(6042),C=o(8481),_=o(325),Q=o(4867),E=o(647),z=o(712),x=o(373),P=o(1059),B=o(7625),J=o(8929),L=o(591),e=o(5e3),N=o(9350),l=o(8992),p=o(3193),c=o(8664),m=o(5623),d=o(8168),u=o(2683),r=o(2643),v=o(9077),M=o(8525),Z=o(2359),j=o(2233),b=o(1894),$=o(759),V=o(3997);function W(n,a){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 G(n,a){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 K(n,a){1&n&&(e.TgZ(0,"nz-space",5),e.YNc(1,W,4,1,"span",6),e.YNc(2,G,5,4,"span",7),e.qZA())}function H(n,a){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 q(n,a){if(1&n&&(e.TgZ(0,"button",28,29),e._uU(2," Revise "),e.qZA()),2&n){const t=e.MAs(1),s=e.oxw(3).ngIf;e.Q6J("routerLink",e.VKq(2,X,s.id))("nzType",t.isActive?"primary":"default")}}function ee(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,q,3,4,"button",27),e.qZA()),2&n){const t=e.oxw().ngrxLet;e.xp6(1),e.Q6J("ngIf",t.signedIn)}}function ne(n,a){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,a){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,a){if(1&n&&e._UZ(0,"cvc-entity-subscription-button",33),2&n){const t=e.oxw(2).ngrxLet,s=e.oxw(2);e.Q6J("viewer",t)("subscribableId",s.subscribable.id)}}function oe(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ie,1,2,"cvc-entity-subscription-button",32),e.qZA()),2&n){const t=e.oxw().ngrxLet,s=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.signedIn&&s.subscribable)}}function ae(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-revert-entity-button",35),e.NdJ("onReverted",function(g){return e.CHM(t),e.oxw(4).onRevertCompleted(g)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,s=e.oxw().ngIf;e.Q6J("viewer",t)("entityId",s.id)}}function se(n,a){if(1&n&&(e.TgZ(0,"span"),e.YNc(1,ae,1,2,"cvc-revert-entity-button",34),e.qZA()),2&n){const t=e.oxw().ngrxLet,s=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"!=s.status)}}function ce(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"nz-alert",36),e.NdJ("nzOnClose",function(){const S=e.CHM(t).$implicit;return e.oxw(3).onErrorBannerClose(S)}),e.qZA()}2&n&&e.Q6J("nzMessage",a.$implicit)}function re(n,a){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,a){1&n&&e._UZ(0,"nz-alert",38)}function pe(n,a){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,a){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-moderate-entity-buttons",42),e.NdJ("onModerated",function(g){return e.CHM(t),e.oxw(4).onModerateCompleted(g)}),e.qZA()}if(2&n){const t=e.oxw(2).ngrxLet,s=e.oxw().ngIf;e.Q6J("entityId",s.id)("viewer",t)}}function ge(n,a){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,s=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",t.canModerate&&"SUBMITTED"==s.status)}}const _e=function(n){return{flagged:n}};function me(n,a){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,oe,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,s=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(9,_e,t.flags.totalCount>0)),e.xp6(2),e.hij(" ",t.name," "),e.xp6(2),e.Q6J("ngIf",!1),e.xp6(8),e.Q6J("ngForOf",s.errors),e.xp6(1),e.Q6J("ngIf",s.successMessage),e.xp6(1),e.Q6J("ngIf","SUBMITTED"==t.status),e.xp6(1),e.Q6J("tabs",e.lcZ(17,7,s.tabs$))}}function ve(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,K,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=a.ngIf,s=e.MAs(3),g=e.oxw();e.xp6(1),e.Q6J("displayName",t.name)("relationsTpl",s),e.xp6(3),e.Q6J("flags",e.lcZ(5,4,g.flagsTotal$)),e.xp6(2),e.Q6J("ngrxLet",g.viewer$)}}let ue=(()=>{class n{constructor(t,s,g){this.gql=t,this.viewerService=s,this.route=g,this.errors=[],this.destroy$=new J.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(S=>{this.queryRef=this.gql.watch({evidenceId:+S.evidenceId});let k=this.queryRef.valueChanges;this.loading$=k.pipe((0,x.j)("loading"),(0,P.O)(!0)),this.evidence$=k.pipe((0,x.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,x.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,x.j)("flags","totalCount")),this.evidence$.pipe((0,x.j)("revisions","totalCount"),(0,B.R)(this.destroy$)).subscribe({next:$n=>{this.tabs$.next(this.defaultTabs.map(Y=>"Revisions"===Y.tabLabel?Object.assign({badgeCount:$n},Y):Y))}}),this.subscribable={id:+S.evidenceId,entityType:z.o71.EvidenceItem},this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){var s;!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",null===(s=this.queryRef)||void 0===s||s.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){var s;Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,null===(s=this.queryRef)||void 0===s||s.refetch())}onErrorBannerClose(t){var s;this.errors=null===(s=this.errors)||void 0===s?void 0:s.filter(g=>g!=t)}onSuccessBannerClose(){this.successMessage=void 0}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(z.pHu),e.Y36(N.a),e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:evidence"],[3,"nzColor",4,"ngIf"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],[3,"tabs"],["tabBarExtraContent",""],["nzDirection","vertical"],[1,"content"],[3,"nzColor"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["rlaComments","routerLinkActive"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","EvidenceItem",3,"viewer","subscribableId",4,"ngIf"],["typename","EvidenceItem",3,"viewer","subscribableId"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted",4,"ngIf"],["entityType","EvidenceItem",3,"viewer","entityId","onReverted"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["id","contributors-col"],[3,"subscribable"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated",4,"ngIf"],["entityType","EvidenceItem",3,"entityId","viewer","onModerated"]],template:function(t,s){1&t&&(e.YNc(0,ve,7,6,"ng-container",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,s.evidence$))},directives:[i.O5,l.I,f.NU,f.$1,I.ZU,_.yS,p.H,c.I,m.o,T.eJ,h.$O,h.u9,d.Y,i.mk,u.w,E.Ls,h.ZJ,C.j,h.Jp,y.ix,r.dQ,_.Od,_.rH,v.Q,M.e,h.u5,i.sg,Z.r,j.P,b.t3,$.N,V.m,_.lC],pipes:[T.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=o(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:[[i.ez,ze.l]]}),n})();var he=o(3801);let ye=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:z.OfU.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-comment-list",0),2&t&&e.Q6J("commentable",s.commentable)},directives:[he.D],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var xe=o(7484),Te=o(6559),Ee=o(4271);let Se=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[i.ez,b.Jb,xe.vh,f.zf,Te.H0,Ee.M]]}),n})();var Ce=o(7036);let Ie=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:z.sfv.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-flag-list-and-filter",0),2&t&&e.Q6J("flaggable",s.flaggable)},directives:[Ce.L],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Ze=o(2914);let Ae=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[i.ez,Ze.A]]}),n})();var Pe=o(1365);let Me=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(s=>{this.eid=+s.evidenceId,this.entityType=z.oRL.EvidenceItem})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(t,s){1&t&&e._UZ(0,"cvc-revisions-list-and-filter",0),2&t&&e.Q6J("id",s.eid)("entityType",s.entityType)},directives:[Pe.a],styles:[""]}),n})();var U=o(3098),be=o(9444),Oe=o(3384),Ne=o(592),we=o(7345),De=o(5453),Qe=o(6286),Be=o(8018),Je=o(9441),Le=o(9779),Ue=o(897),Re=o(3580),R=o(8625),ke=o(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:[[i.ez,_.Bz,T.WG,b.Jb,f.zf,I.ZJ,y.sL,C.X,E.PV,U.q6,be.s,Oe.h,Re.Q,Ne.x,Ue.$,we.W,De.N,Le.s,Qe.y,Be.e,Je.s,R.$L.forChild({formatter:{useClass:ke.x,provide:R.KP}})]]}),n})();function Fe(n,a){1&n&&e._UZ(0,"i",4)}function je(n,a){1&n&&e._UZ(0,"i",5)}function $e(n,a){if(1&n&&(e.ynx(0),e.YNc(1,Fe,1,0,"i",2),e.YNc(2,je,1,0,"i",3),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.filledStars),e.xp6(1),e.Q6J("ngForOf",t.emptyStars)}}function Ve(n,a){1&n&&e._uU(0," --\n")}let We=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noStars",""],["nzType","star","nzTheme","fill","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","outline","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","fill","nz-icon",""],["nzType","star","nzTheme","outline","nz-icon",""]],template:function(t,s){if(1&t&&(e.YNc(0,$e,3,2,"ng-container",0),e.YNc(1,Ve,1,0,"ng-template",null,1,e.W1O)),2&t){const g=e.MAs(2);e.Q6J("ngIf",s.starRating)("ngIfElse",g)}},directives:[i.O5,i.sg,E.Ls],styles:[""]}),n})();var Ge=o(4590),Ke=o(125),He=o(6906),Xe=o(4049),qe=o(4022),en=o(6715),nn=o(7956),tn=o(7469),on=o(3756),an=o(4110);function sn(n,a){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,a){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,a){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,a){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,a){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,a){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,a){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-clinical-trial-tag",36),e.BQk()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("clinicalTrial",t)}}function _n(n,a){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,a){1&n&&(e.ynx(0),e.TgZ(1,"span",37),e._uU(2,"None Specified"),e.qZA(),e.BQk())}function vn(n,a){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,a){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,a){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function fn(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-phenotype-tag",45),e.BQk()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("phenotype",t)}}function hn(n,a){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,a){1&n&&(e.TgZ(0,"span",37),e._uU(1,"None Specified"),e.qZA())}function xn(n,a){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),s=e.oxw(2).ngIf;e.Q6J("nzColumn",void 0!==(null==s.disease?null:s.disease.name)&&s.phenotypes.length>0?1:2),e.xp6(2),e.Q6J("ngIf",s.disease),e.xp6(1),e.Q6J("ngIf",!s.disease),e.xp6(1),e.Q6J("nzTitle",s.phenotypes.length>1?"Phenotypes":"Phenotype"),e.xp6(1),e.Q6J("ngIf",s.phenotypes.length>0)("ngIfElse",t)}}function Tn(n,a){1&n&&(e.TgZ(0,"span",37),e._uU(1,"N/A"),e.qZA())}function En(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-drug-tag",50),e.BQk()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("drug",t)}}function Sn(n,a){if(1&n&&(e.TgZ(0,"cvc-tag-list"),e.YNc(1,En,2,1,"ng-container",35),e.qZA()),2&n){const t=e.oxw(3).ngIf;e.xp6(1),e.Q6J("ngForOf",t.drugs)}}function Cn(n,a){1&n&&e._uU(0," Drug ")}function In(n,a){1&n&&e._uU(0," Drug ")}function Zn(n,a){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 An(n,a){if(1&n&&(e.ynx(0,46),e.YNc(1,Cn,1,0,"ng-template",47),e.YNc(2,In,1,0,"ng-template",51),e.YNc(3,Zn,2,3,"ng-template",48),e.BQk()),2&n){const t=e.oxw(3).ngIf;e.Q6J("ngPlural",t.drugs.length)}}function Pn(n,a){if(1&n&&(e.TgZ(0,"nz-descriptions",11),e.TgZ(1,"nz-descriptions-item",34),e.ynx(2,46),e.YNc(3,Tn,2,0,"ng-template",47),e.YNc(4,Sn,2,1,"ng-template",48),e.BQk(),e.YNc(5,An,4,1,"ng-template",null,49,e.W1O),e.qZA(),e.qZA()),2&n){const t=e.MAs(6),s=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzTitle",t),e.xp6(1),e.Q6J("ngPlural",s.drugs.length)}}function Mn(n,a){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,Pn,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 bn(n,a){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 On(n,a){1&n&&(e.TgZ(0,"nz-space",1),e.YNc(1,Mn,11,3,"nz-row",2),e.YNc(2,bn,1,2,"cvc-assertions-table",3),e.qZA())}let Nn=(()=>{class n{constructor(t,s){var g;if(this.gql=t,this.route=s,null==(g=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:g});let S=this.queryRef.valueChanges;this.loading$=S.pipe((0,x.j)("loading"),(0,P.O)(!0)),this.evidence$=S.pipe((0,x.j)("data","evidenceItem")),this.subscribable={entityType:z.o71.EvidenceItem,id:g}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(z.sBY),e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[3,"nzGutter",4,"nzSpaceItem"],[3,"evidenceId","cvcTitle",4,"nzSpaceItem"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",4,"nzSpaceItem"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","horizontal","nzSize","small","nzBordered","true","class","status-tags",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Level"],["nzTitle","Rating"],[3,"starRating"],["nzLayout","horizontal","nzSize","small","nzBordered","true",1,"status-tags"],["nzTitle","Status"],[3,"status"],["nzTitle","Submitted"],[3,"user"],[4,"ngIf"],[3,"ngSwitch"],["nzTitle","Accepted",4,"ngSwitchCase"],["nzTitle","Rejected",4,"ngSwitchCase"],["nzTitle","Accepted"],["nzTitle","Rejected"],["nzTitle","Source","nzSpan","2"],[3,"source"],[3,"nzTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-typography","","nzType","secondary"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[4,"ngIf","ngIfElse"],["noPhenotypes",""],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["drugsTitle",""],[3,"drug"],["ngPluralCase","=1"],[3,"evidenceId","cvcTitle"]],template:function(t,s){1&t&&(e.YNc(0,On,3,0,"nz-space",0),e.ALo(1,"ngrxPush")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,s.evidence$))},directives:[i.O5,f.NU,f.$1,b.SK,b.t3,U.R7,U.uj,I.ZU,We,Ge.h,Ke.I,i.RF,i.n9,He.T,i.sg,Xe.G,_.yS,qe.n,en.$,nn.i,i.iq,i.zE,tn.u,on.x],pipes:[T.fM,an.D,R.wr,i.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 wn=o(2011);let Dn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:z.o71.EvidenceItem}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(t,s){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("subscribable",s.subscribable)},directives:[wn.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Qn=o(5291);let Bn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[i.ez,Qn.t]]}),n})();const Jn=[{path:"",component:ue,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Nn,data:{breadcrumb:"Summary"}},{path:"comments",component:ye,data:{breadcrumb:"Comments"}},{path:"revisions",component:Me,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ie,data:{breadcrumb:"Flags"}},{path:"events",component:Dn,data:{breadcrumb:"Events"}}]}];let Ln=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[_.Bz.forChild(Jn),Ye,fe,Ae,Se,Bn],_.Bz]}),n})();var Un=o(4609),Rn=o(694),kn=o(8766),Yn=o(8762),Fn=o(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:[[i.ez,Ln,_.Bz,T.WG,f.zf,I.ZJ,h.KJ,y.sL,C.X,E.PV,Z.L,b.Jb,O.D,w.U,D.m,Q.Q,Un.g,Rn.G,kn.P,Yn.c,Fn.Z]]}),n})()},6559:(F,A,o)=>{o.d(A,{H0:()=>N});var i=o(5e3),T=o(9808),O=o(226);let N=(()=>{class l{}return l.\u0275fac=function(c){return new(c||l)},l.\u0275mod=i.oAB({type:l}),l.\u0275inj=i.cJS({imports:[[O.vT,T.ez]]}),l})()}}]); \ No newline at end of file diff --git a/server/public/2826.58d99e896f2f009b.js b/server/public/2826.58d99e896f2f009b.js deleted file mode 100644 index 159483ecb..000000000 --- a/server/public/2826.58d99e896f2f009b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2826],{2826:(m,_,i)=>{i.d(_,{w:()=>xn});var n=i(5e3),c=i(9808),r=i(325),p=i(8481),s=i(3610),g=i(4850),T=i(712),C=i(7484),f=i(8144),v=i(647),x=i(4590),z=i(3193),A=i(8664),u=i(1894),d=i(3098),I=i(4022),Z=i(7469),P=i(7956),h=i(6949),y=i(4110),N=i(9714),E=i(9657),L=i(8625);function Q(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"i",31),n._uU(2),n.BQk()),2&t){const e=n.oxw(2).ngIf;n.xp6(2),n.hij(" ",e.name," ")}}function U(t,o){if(1&t&&n._UZ(0,"cvc-status-tag",32),2&t){const e=n.oxw(2).ngIf;n.Q6J("status",e.status)}}function O(t,o){1&t&&(n.TgZ(0,"nz-space"),n.YNc(1,Q,3,1,"ng-container",29),n.YNc(2,U,1,1,"cvc-status-tag",30),n.qZA())}function Y(t,o){if(1&t&&(n._UZ(0,"cvc-gene-tag",33),n._UZ(1,"cvc-variant-tag",34)),2&t){const e=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",e.gene),n.xp6(1),n.Q6J("enablePopover",!1)("variant",e.variant)}}function M(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){const e=o.ngIf;n.xp6(1),n.hij(" ",e," ")}}function J(t,o){1&t&&(n.TgZ(0,"span"),n._uU(1,", "),n.qZA())}function w(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,J,2,0,"span",1),n.BQk()),2&t){const e=o.$implicit,a=o.last;n.xp6(1),n.hij(" ",e.code,""),n.xp6(1),n.Q6J("ngIf",!a)}}function S(t,o){if(1&t&&(n.ynx(0),n.YNc(1,w,3,2,"ng-container",37),n.BQk()),2&t){const e=n.oxw(2).ngIf;n.xp6(1),n.Q6J("ngForOf",e.acmgCodes)}}function D(t,o){1&t&&n._uU(0," -- ")}function j(t,o){if(1&t&&(n.TgZ(0,"nz-descriptions-item",35),n.YNc(1,S,2,1,"ng-container",9),n.YNc(2,D,1,0,"ng-template",null,36,n.W1O),n.qZA()),2&t){const e=n.MAs(3),a=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",a.acmgCodes.length>0)("ngIfElse",e)}}function q(t,o){if(1&t&&(n.TgZ(0,"nz-descriptions-item",38),n._uU(1),n.ALo(2,"ifEmpty"),n.ALo(3,"formatAmp"),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.xi3(2,1,n.xi3(3,4,e.ampLevel,"compact"),"--")," ")}}function B(t,o){1&t&&n._UZ(0,"i",39)}function F(t,o){1&t&&n._UZ(0,"i",40)}function R(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,e.regulatoryApprovalLastUpdated),") ")}}function W(t,o){1&t&&n._UZ(0,"i",39)}function G(t,o){1&t&&n._UZ(0,"i",40)}function k(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,e.fdaCompanionTestLastUpdated),") ")}}function V(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",41),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("enablePopover",!1)("disease",e.disease)("truncateLongName",!0)}}function b(t,o){1&t&&n._uU(0," N/A ")}function $(t,o){if(1&t&&(n.TgZ(0,"span"),n._UZ(1,"cvc-drug-tag",43),n.qZA()),2&t){const e=o.$implicit;n.xp6(1),n.Q6J("enablePopover",!1)("drug",e)("truncateLongName",!0)}}function K(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.ALo(2,"titlecase"),n.BQk()),2&t){const e=n.oxw(2).ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.drugInteractionType)," ")}}function X(t,o){if(1&t&&(n.TgZ(0,"nz-descriptions-item",42),n.YNc(1,$,2,3,"span",37),n.YNc(2,K,3,3,"ng-container",1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",e.drugs),n.xp6(1),n.Q6J("ngIf",e.drugs.length>1)}}function H(t,o){if(1&t&&(n.TgZ(0,"span"),n._UZ(1,"cvc-phenotype-tag",45),n.qZA()),2&t){const e=o.$implicit;n.xp6(1),n.Q6J("enablePopover",!1)("phenotype",e)}}function nn(t,o){if(1&t&&(n.TgZ(0,"nz-descriptions-item",44),n.YNc(1,H,2,2,"span",37),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",e.phenotypes)}}function tn(t,o){if(1&t&&(n.TgZ(0,"a",46),n.TgZ(1,"nz-tag",47),n._UZ(2,"i",48),n._uU(3),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngIf;n.MGl("routerLink","/assertions/",e.id,"/flags"),n.xp6(3),n.hij(" Flags (",e.flags.totalCount,") ")}}function en(t,o){if(1&t&&(n.TgZ(0,"a",46),n.TgZ(1,"nz-tag",49),n._UZ(2,"i",50),n._uU(3),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngIf;n.MGl("routerLink","/assertions/",e.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",e.revisions.totalCount,") ")}}function on(t,o){if(1&t&&(n.TgZ(0,"a",46),n.TgZ(1,"nz-tag",51),n._UZ(2,"i",52),n._uU(3),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngIf;n.MGl("routerLink","/assertions/",e.id,"/comments"),n.xp6(3),n.hij(" Comments (",e.comments.totalCount,") ")}}function sn(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-card",3),n.YNc(2,O,3,0,"ng-template",null,4,n.W1O),n.YNc(4,Y,2,4,"ng-template",null,5,n.W1O),n.TgZ(6,"nz-row"),n.TgZ(7,"nz-col",6),n.TgZ(8,"div",7),n.TgZ(9,"p",8),n.YNc(10,M,2,1,"ng-container",9),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"nz-descriptions",10),n.TgZ(12,"nz-descriptions-item",11),n._uU(13),n.ALo(14,"evidenceEnumDisplay"),n.qZA(),n.TgZ(15,"nz-descriptions-item",12),n._uU(16),n.ALo(17,"evidenceEnumDisplay"),n.qZA(),n.TgZ(18,"nz-descriptions-item",13),n._uU(19),n.ALo(20,"evidenceEnumDisplay"),n.qZA(),n.YNc(21,j,4,2,"nz-descriptions-item",14),n.YNc(22,q,4,7,"ng-template",null,15,n.W1O),n.TgZ(24,"nz-descriptions-item",16),n.YNc(25,B,1,0,"i",17),n.YNc(26,F,1,0,"i",18),n.YNc(27,R,3,3,"ng-container",1),n.qZA(),n.TgZ(28,"nz-descriptions-item",19),n.YNc(29,W,1,0,"i",17),n.YNc(30,G,1,0,"i",18),n.YNc(31,k,3,3,"ng-container",1),n.qZA(),n.TgZ(32,"nz-descriptions-item",20),n._uU(33),n.ALo(34,"ifEmpty"),n.qZA(),n.TgZ(35,"nz-descriptions-item",13),n._uU(36),n.ALo(37,"evidenceEnumDisplay"),n.qZA(),n.TgZ(38,"nz-descriptions-item",21),n._uU(39),n.ALo(40,"evidenceEnumDisplay"),n.qZA(),n.TgZ(41,"nz-descriptions-item",22),n.YNc(42,V,2,3,"ng-container",9),n.YNc(43,b,1,0,"ng-template",null,23,n.W1O),n.qZA(),n.YNc(45,X,3,2,"nz-descriptions-item",24),n.YNc(46,nn,2,1,"nz-descriptions-item",25),n.qZA(),n.TgZ(47,"nz-row",26),n.TgZ(48,"nz-col",6),n.TgZ(49,"nz-space",27),n.YNc(50,tn,4,2,"a",28),n.YNc(51,en,4,2,"a",28),n.YNc(52,on,4,2,"a",28),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const e=o.ngIf,a=n.MAs(3),l=n.MAs(5),zn=n.MAs(23),An=n.MAs(44);n.oxw();const In=n.MAs(4);n.xp6(1),n.Q6J("nzTitle",a)("nzExtra",l),n.xp6(9),n.Q6J("ngIf",e.summary)("ngIfElse",In),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",n.lcZ(14,23,e.assertionType)," "),n.xp6(3),n.hij(" ",n.lcZ(17,25,e.assertionDirection)," "),n.xp6(3),n.hij(" ",n.lcZ(20,27,e.variantOrigin)," "),n.xp6(2),n.Q6J("ngIf","PREDISPOSING"==e.assertionType)("ngIfElse",zn),n.xp6(4),n.Q6J("ngIf",e.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",!e.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",e.regulatoryApprovalLastUpdated),n.xp6(2),n.Q6J("ngIf",e.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",!e.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",e.fdaCompanionTestLastUpdated),n.xp6(2),n.hij(" ",n.xi3(34,29,null==e.nccnGuideline?null:e.nccnGuideline.name,"--")," "),n.xp6(3),n.hij(" ",n.lcZ(37,32,e.variantOrigin)," "),n.xp6(3),n.hij(" ",n.lcZ(40,34,e.clinicalSignificance)," "),n.xp6(3),n.Q6J("ngIf",e.disease)("ngIfElse",An),n.xp6(3),n.Q6J("ngIf",e.drugs.length>0),n.xp6(1),n.Q6J("ngIf",e.phenotypes.length>0)}}function an(t,o){1&t&&n._uU(0," No Summary exists for this Assertion.\n")}let rn=(()=>{class t{constructor(e){this.gql=e}ngOnInit(){if(null==this.assertionId)throw new Error("cvc-assertion-popover requires valid assertionId input.");this.assertion$=this.gql.watch({assertionId:this.assertionId}).valueChanges.pipe((0,g.U)(({data:e})=>e.assertion))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(T.Gbq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-assertion-popover"]],inputs:{assertionId:"assertionId"},decls:5,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noSummary",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["geneAndVariant",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Variant Origin"],["nzTitle","ACMG Codes","nzSpan","2",4,"ngIf","ngIfElse"],["ampLevel",""],["nzTitle","Regulatory Approval"],["nz-icon","","nzType","check-circle","nzTheme","twotone","nzTwotoneColor","#52c41a",4,"ngIf"],["nz-icon","","nzType","close-square","nzTheme","twotone","nzTwotoneColor","#d93026",4,"ngIf"],["nzTitle","FDA Companion Test"],["nzTitle","NCCN Guideline"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Disease","nzSpan","2"],["noDisease",""],["nzTitle","Drugs","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzType","civic:assertion"],[2,"font-weight","normal",3,"status"],[3,"enablePopover","gene"],[3,"enablePopover","variant"],["nzTitle","ACMG Codes","nzSpan","2"],["noAcmg",""],[4,"ngFor","ngForOf"],["nzTitle","AMP/ASCO/CAP Category"],["nz-icon","","nzType","check-circle","nzTheme","twotone","nzTwotoneColor","#52c41a"],["nz-icon","","nzType","close-square","nzTheme","twotone","nzTwotoneColor","#d93026"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Drugs","nzSpan","2"],[3,"enablePopover","drug","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[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(e,a){1&e&&(n.TgZ(0,"div",0),n.YNc(1,sn,53,36,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,an,1,0,"ng-template",null,2,n.W1O)),2&e&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,a.assertion$)))},directives:[c.O5,C.bd,f.NU,f.$1,v.Ls,x.h,z.H,A.I,u.SK,u.t3,d.R7,d.uj,c.sg,I.n,Z.u,P.i,r.yS,p.j],pipes:[h.fM,y.D,N.D,E.t,L.wr,c.rS],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}"]}),t})();var cn=i(9273);function pn(t,o){}function _n(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,pn,0,0,"ng-template",6),n.qZA(),n.BQk()),2&t){const e=n.oxw(),a=n.MAs(2);n.xp6(1),n.Q6J("routerLink",e.assertion.link),n.xp6(1),n.Q6J("ngTemplateOutlet",a)}}function gn(t,o){}function ln(t,o){if(1&t&&(n.TgZ(0,"nz-tag",9),n.ALo(1,"colorNameForStatus"),n.YNc(2,gn,0,0,"ng-template",6),n.qZA()),2&t){n.oxw();const e=n.MAs(2),a=n.oxw(),l=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",e)("nzColor",n.lcZ(1,4,a.assertion.status)),n.xp6(2),n.Q6J("ngTemplateOutlet",l)}}function mn(t,o){if(1&t&&n._UZ(0,"cvc-assertion-popover",10),2&t){const e=n.oxw(2);n.Q6J("assertionId",e.assertion.id)}}function fn(t,o){if(1&t&&(n.YNc(0,ln,3,6,"nz-tag",7),n.YNc(1,mn,1,1,"ng-template",null,8,n.W1O)),2&t){const e=n.oxw(),a=n.MAs(4);n.Q6J("ngIf",e.enablePopover)("ngIfElse",a)}}function vn(t,o){}function un(t,o){if(1&t&&(n.TgZ(0,"nz-tag",11),n.ALo(1,"colorNameForStatus"),n.YNc(2,vn,0,0,"ng-template",6),n.qZA()),2&t){const e=n.oxw(),a=n.MAs(8);n.Q6J("nzColor",n.lcZ(1,2,e.assertion.status)),n.xp6(2),n.Q6J("ngTemplateOutlet",a)}}function dn(t,o){}function Tn(t,o){if(1&t&&n.YNc(0,dn,0,0,"ng-template",6),2&t){n.oxw();const e=n.MAs(2);n.Q6J("ngTemplateOutlet",e)}}function Cn(t,o){if(1&t&&(n._UZ(0,"i",12),n._uU(1)),2&t){const e=n.oxw();n.xp6(1),n.hij(" ",e.assertion.name,"\n")}}let xn=(()=>{class t{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.assertion)throw new Error("cvc-assertion-tag requires LinkableAssertion input, none supplied.")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-assertion-tag"]],inputs:{assertion:"assertion",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzColor",4,"ngIf","ngIfElse"],["assertionPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzColor"],[3,"assertionId"],[3,"nzColor"],["nz-icon","","nzType","civic-assertion","nzTheme","twotone","nzTwotoneColor","#7243B5"]],template:function(e,a){if(1&e&&(n.YNc(0,_n,3,2,"ng-container",0),n.YNc(1,fn,3,2,"ng-template",null,1,n.W1O),n.YNc(3,un,3,4,"ng-template",null,2,n.W1O),n.YNc(5,Tn,1,1,"ng-template",null,3,n.W1O),n.YNc(7,Cn,2,1,"ng-template",null,4,n.W1O)),2&e){const l=n.MAs(6);n.Q6J("ngIf",a.linked)("ngIfElse",l)}},directives:[c.O5,r.yS,c.tP,p.j,s.lU,rn,v.Ls],pipes:[cn.Q],styles:["[_nghost-%COMP%]{display:inline-block}"]}),t})()},9657:(m,_,i)=>{i.d(_,{t:()=>c});var n=i(5e3);let c=(()=>{class r{transform(s,g){return s?"verbose"==g?"TIER_I_LEVEL_A"===s?"Tier I - Level A":"TIER_I_LEVEL_B"===s?"Tier I - Level B":"TIER_II_LEVEL_C"===s?"Tier II - Level C":"TIER_II_LEVEL_D"===s?"Tier II - Level D":"TIER_III"===s?"Tier III":"TIER_IV"===s?"Tier IV":"Not Applicable":s.toUpperCase().replace("TIER","").replace("LEVEL","").replace(/ /g,"").replace(/_/g,""):""}}return r.\u0275fac=function(s){return new(s||r)},r.\u0275pipe=n.Yjl({name:"formatAmp",type:r,pure:!0}),r})()},9714:(m,_,i)=>{i.d(_,{D:()=>c});var n=i(5e3);let c=(()=>{class r{transform(s,g){return null==s||""===s?g:s}}return r.\u0275fac=function(s){return new(s||r)},r.\u0275pipe=n.Yjl({name:"ifEmpty",type:r,pure:!0}),r})()}}]); \ No newline at end of file diff --git a/server/public/2826.eac4a45bf8e1c8e4.js b/server/public/2826.eac4a45bf8e1c8e4.js new file mode 100644 index 000000000..be83e4cdc --- /dev/null +++ b/server/public/2826.eac4a45bf8e1c8e4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2826],{2826:(m,_,i)=>{i.d(_,{w:()=>zn});var n=i(5e3),c=i(9808),a=i(325),p=i(8481),s=i(3610),g=i(4850),T=i(712),C=i(7484),f=i(8144),v=i(647),z=i(4590),x=i(3193),A=i(8664),u=i(1894),d=i(3098),I=i(404),Z=i(4022),P=i(7469),h=i(7956),y=i(6949),E=i(4110),N=i(9714),L=i(9657),Q=i(8625);function U(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"i",31),n._uU(2),n.BQk()),2&t){const e=n.oxw(2).ngIf;n.xp6(2),n.hij(" ",e.name," ")}}function O(t,o){if(1&t&&n._UZ(0,"cvc-status-tag",32),2&t){const e=n.oxw(2).ngIf;n.Q6J("status",e.status)}}function Y(t,o){1&t&&(n.TgZ(0,"nz-space"),n.YNc(1,U,3,1,"ng-container",29),n.YNc(2,O,1,1,"cvc-status-tag",30),n.qZA())}function M(t,o){if(1&t&&(n._UZ(0,"cvc-gene-tag",33),n._UZ(1,"cvc-variant-tag",34)),2&t){const e=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",e.gene),n.xp6(1),n.Q6J("enablePopover",!1)("variant",e.variant)}}function J(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){const e=o.ngIf;n.xp6(1),n.hij(" ",e," ")}}function w(t,o){if(1&t&&(n.TgZ(0,"nz-tag",38),n._uU(1),n.qZA()),2&t){const e=o.$implicit;n.Q6J("nzTooltipTitle",e.description),n.xp6(1),n.Oqu(e.code)}}function S(t,o){if(1&t&&(n.ynx(0),n.YNc(1,w,2,2,"nz-tag",37),n.BQk()),2&t){const e=n.oxw(2).ngIf;n.xp6(1),n.Q6J("ngForOf",e.acmgCodes)}}function D(t,o){1&t&&n._uU(0," -- ")}function j(t,o){if(1&t&&(n.TgZ(0,"nz-descriptions-item",35),n.YNc(1,S,2,1,"ng-container",9),n.YNc(2,D,1,0,"ng-template",null,36,n.W1O),n.qZA()),2&t){const e=n.MAs(3),r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngIf",r.acmgCodes.length>0)("ngIfElse",e)}}function F(t,o){if(1&t&&(n.TgZ(0,"nz-descriptions-item",39),n._uU(1),n.ALo(2,"ifEmpty"),n.ALo(3,"formatAmp"),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.xi3(2,1,n.xi3(3,4,e.ampLevel,"compact"),"--")," ")}}function q(t,o){1&t&&n._UZ(0,"i",40)}function B(t,o){1&t&&n._UZ(0,"i",41)}function R(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,e.regulatoryApprovalLastUpdated),") ")}}function W(t,o){1&t&&n._UZ(0,"i",40)}function G(t,o){1&t&&n._UZ(0,"i",41)}function V(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" (last updated ",n.lcZ(2,1,e.fdaCompanionTestLastUpdated),") ")}}function k(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",42),n.BQk()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("enablePopover",!1)("disease",e.disease)("truncateLongName",!0)}}function $(t,o){1&t&&n._uU(0," N/A ")}function b(t,o){if(1&t&&(n.TgZ(0,"span"),n._UZ(1,"cvc-drug-tag",45),n.qZA()),2&t){const e=o.$implicit;n.xp6(1),n.Q6J("enablePopover",!1)("drug",e)("truncateLongName",!0)}}function K(t,o){if(1&t&&(n.ynx(0),n._uU(1),n.ALo(2,"titlecase"),n.BQk()),2&t){const e=n.oxw(2).ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.drugInteractionType)," ")}}function X(t,o){if(1&t&&(n.TgZ(0,"nz-descriptions-item",43),n.YNc(1,b,2,3,"span",44),n.YNc(2,K,3,3,"ng-container",1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",e.drugs),n.xp6(1),n.Q6J("ngIf",e.drugs.length>1)}}function H(t,o){if(1&t&&(n.TgZ(0,"span"),n._UZ(1,"cvc-phenotype-tag",47),n.qZA()),2&t){const e=o.$implicit;n.xp6(1),n.Q6J("enablePopover",!1)("phenotype",e)}}function nn(t,o){if(1&t&&(n.TgZ(0,"nz-descriptions-item",46),n.YNc(1,H,2,2,"span",44),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",e.phenotypes)}}function tn(t,o){if(1&t&&(n.TgZ(0,"a",48),n.TgZ(1,"nz-tag",49),n._UZ(2,"i",50),n._uU(3),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngIf;n.MGl("routerLink","/assertions/",e.id,"/flags"),n.xp6(3),n.hij(" Flags (",e.flags.totalCount,") ")}}function en(t,o){if(1&t&&(n.TgZ(0,"a",48),n.TgZ(1,"nz-tag",51),n._UZ(2,"i",52),n._uU(3),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngIf;n.MGl("routerLink","/assertions/",e.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",e.revisions.totalCount,") ")}}function on(t,o){if(1&t&&(n.TgZ(0,"a",48),n.TgZ(1,"nz-tag",53),n._UZ(2,"i",54),n._uU(3),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngIf;n.MGl("routerLink","/assertions/",e.id,"/comments"),n.xp6(3),n.hij(" Comments (",e.comments.totalCount,") ")}}function sn(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-card",3),n.YNc(2,Y,3,0,"ng-template",null,4,n.W1O),n.YNc(4,M,2,4,"ng-template",null,5,n.W1O),n.TgZ(6,"nz-row"),n.TgZ(7,"nz-col",6),n.TgZ(8,"div",7),n.TgZ(9,"p",8),n.YNc(10,J,2,1,"ng-container",9),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"nz-descriptions",10),n.TgZ(12,"nz-descriptions-item",11),n._uU(13),n.ALo(14,"evidenceEnumDisplay"),n.qZA(),n.TgZ(15,"nz-descriptions-item",12),n._uU(16),n.ALo(17,"evidenceEnumDisplay"),n.qZA(),n.TgZ(18,"nz-descriptions-item",13),n._uU(19),n.ALo(20,"evidenceEnumDisplay"),n.qZA(),n.YNc(21,j,4,2,"nz-descriptions-item",14),n.YNc(22,F,4,7,"ng-template",null,15,n.W1O),n.TgZ(24,"nz-descriptions-item",16),n.YNc(25,q,1,0,"i",17),n.YNc(26,B,1,0,"i",18),n.YNc(27,R,3,3,"ng-container",1),n.qZA(),n.TgZ(28,"nz-descriptions-item",19),n.YNc(29,W,1,0,"i",17),n.YNc(30,G,1,0,"i",18),n.YNc(31,V,3,3,"ng-container",1),n.qZA(),n.TgZ(32,"nz-descriptions-item",20),n._uU(33),n.ALo(34,"ifEmpty"),n.qZA(),n.TgZ(35,"nz-descriptions-item",13),n._uU(36),n.ALo(37,"evidenceEnumDisplay"),n.qZA(),n.TgZ(38,"nz-descriptions-item",21),n._uU(39),n.ALo(40,"evidenceEnumDisplay"),n.qZA(),n.TgZ(41,"nz-descriptions-item",22),n.YNc(42,k,2,3,"ng-container",9),n.YNc(43,$,1,0,"ng-template",null,23,n.W1O),n.qZA(),n.YNc(45,X,3,2,"nz-descriptions-item",24),n.YNc(46,nn,2,1,"nz-descriptions-item",25),n.qZA(),n.TgZ(47,"nz-row",26),n.TgZ(48,"nz-col",6),n.TgZ(49,"nz-space",27),n.YNc(50,tn,4,2,"a",28),n.YNc(51,en,4,2,"a",28),n.YNc(52,on,4,2,"a",28),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const e=o.ngIf,r=n.MAs(3),l=n.MAs(5),xn=n.MAs(23),An=n.MAs(44);n.oxw();const In=n.MAs(4);n.xp6(1),n.Q6J("nzTitle",r)("nzExtra",l),n.xp6(9),n.Q6J("ngIf",e.summary)("ngIfElse",In),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",n.lcZ(14,23,e.assertionType)," "),n.xp6(3),n.hij(" ",n.lcZ(17,25,e.assertionDirection)," "),n.xp6(3),n.hij(" ",n.lcZ(20,27,e.variantOrigin)," "),n.xp6(2),n.Q6J("ngIf","PREDISPOSING"==e.assertionType)("ngIfElse",xn),n.xp6(4),n.Q6J("ngIf",e.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",!e.regulatoryApproval),n.xp6(1),n.Q6J("ngIf",e.regulatoryApprovalLastUpdated),n.xp6(2),n.Q6J("ngIf",e.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",!e.fdaCompanionTest),n.xp6(1),n.Q6J("ngIf",e.fdaCompanionTestLastUpdated),n.xp6(2),n.hij(" ",n.xi3(34,29,null==e.nccnGuideline?null:e.nccnGuideline.name,"--")," "),n.xp6(3),n.hij(" ",n.lcZ(37,32,e.variantOrigin)," "),n.xp6(3),n.hij(" ",n.lcZ(40,34,e.clinicalSignificance)," "),n.xp6(3),n.Q6J("ngIf",e.disease)("ngIfElse",An),n.xp6(3),n.Q6J("ngIf",e.drugs.length>0),n.xp6(1),n.Q6J("ngIf",e.phenotypes.length>0)}}function rn(t,o){1&t&&n._uU(0," No Summary exists for this Assertion.\n")}let an=(()=>{class t{constructor(e){this.gql=e}ngOnInit(){if(null==this.assertionId)throw new Error("cvc-assertion-popover requires valid assertionId input.");this.assertion$=this.gql.watch({assertionId:this.assertionId}).valueChanges.pipe((0,g.U)(({data:e})=>e.assertion))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(T.Gbq))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-assertion-popover"]],inputs:{assertionId:"assertionId"},decls:5,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noSummary",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["geneAndVariant",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Variant Origin"],["nzTitle","ACMG Codes","nzSpan","2",4,"ngIf","ngIfElse"],["ampLevel",""],["nzTitle","Regulatory Approval"],["nz-icon","","nzType","check-circle","nzTheme","twotone","nzTwotoneColor","#52c41a",4,"ngIf"],["nz-icon","","nzType","close-square","nzTheme","twotone","nzTwotoneColor","#d93026",4,"ngIf"],["nzTitle","FDA Companion Test"],["nzTitle","NCCN Guideline"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Disease","nzSpan","2"],["noDisease",""],["nzTitle","Drugs","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzType","civic:assertion"],[2,"font-weight","normal",3,"status"],[3,"enablePopover","gene"],[3,"enablePopover","variant"],["nzTitle","ACMG Codes","nzSpan","2"],["noAcmg",""],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["nzTitle","AMP/ASCO/CAP Category"],["nz-icon","","nzType","check-circle","nzTheme","twotone","nzTwotoneColor","#52c41a"],["nz-icon","","nzType","close-square","nzTheme","twotone","nzTwotoneColor","#d93026"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Drugs","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","drug","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[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(e,r){1&e&&(n.TgZ(0,"div",0),n.YNc(1,sn,53,36,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,rn,1,0,"ng-template",null,2,n.W1O)),2&e&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,r.assertion$)))},directives:[c.O5,C.bd,f.NU,f.$1,v.Ls,z.h,x.H,A.I,u.SK,u.t3,d.R7,d.uj,c.sg,p.j,I.SY,Z.n,P.u,h.i,a.yS],pipes:[y.fM,E.D,N.D,L.t,Q.wr,c.rS],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}"]}),t})();var cn=i(9273);function pn(t,o){}function _n(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,pn,0,0,"ng-template",6),n.qZA(),n.BQk()),2&t){const e=n.oxw(),r=n.MAs(2);n.xp6(1),n.Q6J("routerLink",e.assertion.link),n.xp6(1),n.Q6J("ngTemplateOutlet",r)}}function gn(t,o){}function ln(t,o){if(1&t&&(n.TgZ(0,"nz-tag",9),n.ALo(1,"colorNameForStatus"),n.YNc(2,gn,0,0,"ng-template",6),n.qZA()),2&t){n.oxw();const e=n.MAs(2),r=n.oxw(),l=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",e)("nzColor",n.lcZ(1,4,r.assertion.status)),n.xp6(2),n.Q6J("ngTemplateOutlet",l)}}function mn(t,o){if(1&t&&n._UZ(0,"cvc-assertion-popover",10),2&t){const e=n.oxw(2);n.Q6J("assertionId",e.assertion.id)}}function fn(t,o){if(1&t&&(n.YNc(0,ln,3,6,"nz-tag",7),n.YNc(1,mn,1,1,"ng-template",null,8,n.W1O)),2&t){const e=n.oxw(),r=n.MAs(4);n.Q6J("ngIf",e.enablePopover)("ngIfElse",r)}}function vn(t,o){}function un(t,o){if(1&t&&(n.TgZ(0,"nz-tag",11),n.ALo(1,"colorNameForStatus"),n.YNc(2,vn,0,0,"ng-template",6),n.qZA()),2&t){const e=n.oxw(),r=n.MAs(8);n.Q6J("nzColor",n.lcZ(1,2,e.assertion.status)),n.xp6(2),n.Q6J("ngTemplateOutlet",r)}}function dn(t,o){}function Tn(t,o){if(1&t&&n.YNc(0,dn,0,0,"ng-template",6),2&t){n.oxw();const e=n.MAs(2);n.Q6J("ngTemplateOutlet",e)}}function Cn(t,o){if(1&t&&(n._UZ(0,"i",12),n._uU(1)),2&t){const e=n.oxw();n.xp6(1),n.hij(" ",e.assertion.name,"\n")}}let zn=(()=>{class t{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.assertion)throw new Error("cvc-assertion-tag requires LinkableAssertion input, none supplied.")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-assertion-tag"]],inputs:{assertion:"assertion",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzColor",4,"ngIf","ngIfElse"],["assertionPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzColor"],[3,"assertionId"],[3,"nzColor"],["nz-icon","","nzType","civic-assertion","nzTheme","twotone","nzTwotoneColor","#7243B5"]],template:function(e,r){if(1&e&&(n.YNc(0,_n,3,2,"ng-container",0),n.YNc(1,fn,3,2,"ng-template",null,1,n.W1O),n.YNc(3,un,3,4,"ng-template",null,2,n.W1O),n.YNc(5,Tn,1,1,"ng-template",null,3,n.W1O),n.YNc(7,Cn,2,1,"ng-template",null,4,n.W1O)),2&e){const l=n.MAs(6);n.Q6J("ngIf",r.linked)("ngIfElse",l)}},directives:[c.O5,a.yS,c.tP,p.j,s.lU,an,v.Ls],pipes:[cn.Q],styles:["[_nghost-%COMP%]{display:inline-block}"]}),t})()},9657:(m,_,i)=>{i.d(_,{t:()=>c});var n=i(5e3);let c=(()=>{class a{transform(s,g){return s?"verbose"==g?"TIER_I_LEVEL_A"===s?"Tier I - Level A":"TIER_I_LEVEL_B"===s?"Tier I - Level B":"TIER_II_LEVEL_C"===s?"Tier II - Level C":"TIER_II_LEVEL_D"===s?"Tier II - Level D":"TIER_III"===s?"Tier III":"TIER_IV"===s?"Tier IV":"Not Applicable":s.toUpperCase().replace("TIER","").replace("LEVEL","").replace(/ /g,"").replace(/_/g,""):""}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275pipe=n.Yjl({name:"formatAmp",type:a,pure:!0}),a})()},9714:(m,_,i)=>{i.d(_,{D:()=>c});var n=i(5e3);let c=(()=>{class a{transform(s,g){return null==s||""===s?g:s}}return a.\u0275fac=function(s){return new(s||a)},a.\u0275pipe=n.Yjl({name:"ifEmpty",type:a,pure:!0}),a})()}}]); \ No newline at end of file diff --git a/server/public/2868.d121584480913025.js b/server/public/2868.d121584480913025.js new file mode 100644 index 000000000..7a2771b67 --- /dev/null +++ b/server/public/2868.d121584480913025.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2868],{3308:(Lt,M,a)=>{a.r(M),a.d(M,{EvidenceAddModule:()=>wt});var s=a(9808),g=a(325),A=a(4850),e=a(5e3),Q=a(9350),U=a(8992),C=a(1945),w=a(647),h=a(1894),N=a(8616),v=a(6949);function Y(t,o){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function D(t,o){1&t&&(e.TgZ(0,"nz-row",7),e.TgZ(1,"div",8),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}let B=(()=>{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(Q.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,i){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,Y,2,0,"div",5),e.ALo(10,"ngrxPush"),e.YNc(11,D,3,0,"ng-template",null,6,e.W1O),e.qZA(),e.qZA(),e.qZA()),2&n){const r=e.MAs(12);e.xp6(9),e.Q6J("ngIf",e.lcZ(10,2,i.isSignedIn$))("ngIfElse",r)}},directives:[U.I,C.$O,C.u9,w.Ls,C.yG,C.u5,s.O5,g.lC,h.SK,h.t3,N.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}"]}),t})();var f=a(8144),V=a(6559),S=a(7484),W=a(1135),$=a(4623),G=a(8006),j=a(5452),R=a(3643),X=a(4375),L=a(7008),H=a(7695),k=a(8390),K=a(1825),q=a(5457),ee=a(5743),te=a(3773),ne=a(3594),u=a(8776),b=a(5109),_=a(2359),I=a(6042),x=a(4546),p=a(4182),ie=a(2789),oe=a(5932),ae=a(3416),re=a(2480),ce=a(1830),se=a(4581),de=a(1605),le=a(5926),pe=a(1270),P=a(7525),ue=a(6530),l=a(712),O=a(444),me=a(6906);function ge(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"formly-field",2),e.BQk()),2&t){const n=o.$implicit;e.xp6(1),e.Q6J("field",n)}}function fe(t,o){if(1&t&&e._UZ(0,"cvc-source-tag",3),2&t){const n=e.oxw();e.Q6J("source",n.model.source)}}let he=(()=>{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,O.o6)(l.yic).map((n,i)=>({value:n,label:(0,ue.c)(n)}))},hideExpression:(n,i,r)=>(console.log(n),null!=n.source)},{key:"source",type:"citation-select",className:"citation-field",templateOptions:{required:!1},hideExpression:(n,i,r)=>(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,i){1&n&&(e.YNc(0,ge,2,1,"ng-container",0),e.YNc(1,fe,1,1,"cvc-source-tag",1)),2&n&&(e.Q6J("ngForOf",i.field.fieldGroup),e.xp6(1),e.Q6J("ngIf",null!=i.model.source))},directives:[s.sg,u.cw,s.O5,me.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 T=a(8054),z=a(3618),ve=a(8481),_e=a(373),F=a(537),J=a(822),ye=a(2643),Ce=a(2683);function xe(t,o){if(1&t&&e._UZ(0,"nz-alert",6),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function ze(t,o){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 Te(t,o){1&t&&(e.ynx(0),e.YNc(1,xe,1,1,"nz-alert",4),e.YNc(2,ze,4,1,"ng-template",null,5,e.W1O),e.BQk())}function Se(t,o){if(1&t&&e._UZ(0,"nz-alert",9),2&t){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function be(t,o){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 Ie(t,o){1&t&&(e.ynx(0),e.YNc(1,Se,1,1,"nz-alert",7),e.YNc(2,be,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Oe(t,o){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 Ze(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(r){return e.CHM(n),e.oxw(3).onAddRemoteCitation(r)}),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 Ee(t,o){1&t&&(e.ynx(0),e.YNc(1,Ze,5,2,"button",11),e.BQk())}function Me(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(r){return e.CHM(n),e.oxw(3).onAcceptSource(r)}),e._uU(1," Specify this Source "),e.qZA()}}function Ae(t,o){1&t&&(e.ynx(0),e.YNc(1,Me,2,0,"button",13),e.BQk())}function we(t,o){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,Te,4,0,"ng-container",3),e.YNc(3,Ie,4,0,"ng-container",3),e.YNc(4,Oe,2,1,"nz-form-item",3),e.YNc(5,Ee,2,0,"ng-container",3),e.YNc(6,Ae,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 Le(t,o){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 Pe(t,o){1&t&&(e.ynx(0),e.YNc(1,Le,3,1,"span",15),e.BQk())}function Fe(t,o){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 Je(t,o){if(1&t&&e._uU(0),2&t){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function Qe(t,o){if(1&t&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,Je,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 Ue(t,o){1&t&&(e.ynx(0),e.YNc(1,Qe,4,1,"span",18),e.BQk())}function Ne(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(r){return e.CHM(n),e.oxw(2).onExistenceQuery(r)}),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 Ye(t,o){if(1&t&&(e.TgZ(0,"nz-space",2),e.YNc(1,Pe,2,0,"ng-container",3),e.YNc(2,Fe,2,1,"nz-form-item",3),e.YNc(3,Ue,2,0,"ng-container",3),e.YNc(4,Ne,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,i,r){this.existenceCheckQuery=n,this.createSourceStubQuery=i,this.changeDetectorRef=r,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,O.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,F.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(r=>r.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,F.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:i})=>{var r;console.log(i);const c=null===(r=null==i?void 0:i.addRemoteCitation)||void 0===r?void 0:r.newSource;this.sourceStub=c,this.createSuccess=!0},error:i=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=i.graphQLErrors.map(r=>r.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,i){if(1&n&&(e.YNc(0,we,7,5,"ng-container",0),e.YNc(1,Ye,5,3,"ng-template",null,1,e.W1O)),2&n){const r=e.MAs(2);e.Q6J("ngIf",i.foundCitation)("ngIfElse",r)}},directives:[s.O5,f.NU,f.$1,_.r,h.SK,x.Nx,J.V,I.ix,ye.dQ,Ce.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),t})();function Be(t,o){if(1&t&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&t){const n=o.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.source),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function Ve(t,o){if(1&t&&(e.ynx(0),e.YNc(1,Be,2,4,"nz-option",3),e.BQk()),2&t){const n=o.ngrxLet;e.xp6(1),e.Q6J("ngForOf",n)}}function We(t,o){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 $e(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"cvc-citation-loader",9),e.NdJ("addCitation",function(r){return e.CHM(n),e.oxw(2).onAddCitation(r)})("sourceTypeChange",function(r){return e.CHM(n),e.oxw(2).model.sourceType=r})("citationIdChange",function(r){return e.CHM(n),e.oxw(2).to.searchValue=r}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.searchValue)}}function Ge(t,o){if(1&t&&(e.ynx(0,5),e.YNc(1,We,2,1,"div",6),e.YNc(2,$e,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 je=(()=>{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":i=>`Search for ${(0,O.o6)(l.yic).getKeyOrThrow(i.sourceType)} sources known to CIViC.`}},this.onAddCitation=i=>{const r=this.field.parent.templateOptions;r.entityType="SourceStub",r.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,_e.j)("data","sourceTypeahead"),(0,A.U)(n=>n.map(i=>({value:i.id,label:i.citation?i.citation:i.name,source:i}))))}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,i){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("nzOnSearch",function(c){return i.to.onSearch(c)}),e.YNc(1,Ve,2,1,"ng-container",1),e.qZA(),e.YNc(2,Ge,3,3,"ng-template",null,2,e.W1O)),2&n){const r=e.MAs(3);e.Q6J("formControl",i.formControl)("formlyAttributes",i.field)("nzPlaceHolder",i.to.placeholder?i.to.placeholder:null)("nzNotFoundContent",r)("nzShowArrow",!1)("nzFilterOption",i.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",i.sources$)}},directives:[T.Vq,p.JJ,p.oH,u.VQ,v.eJ,s.sg,T.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})(),Re=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,f.zf,_.L,x.U5,L.B,I.sL]]}),t})();const Xe={types:[{name:"citation-select",component:je}]};let He=(()=>{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.UX,v.WG,T.LV,Re,u.X0.forChild(Xe),b.s]]}),t})();var ke=a(9779);const Ke={types:[{name:"source-select",component:he,wrappers:["form-field"]}]};let qe=(()=>{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.UX,v.WG,u.X0.forChild(Ke),T.LV,f.zf,z.ZJ,ve.X,He,ke.s]]}),t})();var et=a(5472),tt=a(4889),nt=a(767),it=a(304),ot=a(591),at=a(8965);function rt(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"div",3),e.TgZ(1,"h4",4),e._uU(2,"Evidence matching this Gene/Variant/Source combination already exists."),e.qZA(),e.TgZ(3,"p",4),e.TgZ(4,"strong"),e._uU(5,"Please review the EIDs below to make sure your proposed Evidence is not already present in CIViC."),e.qZA(),e.qZA(),e.qZA(),e.TgZ(6,"cvc-evidence-table",5),e.NdJ("initialTotalCount",function(r){return e.CHM(n),e.oxw(2).initalCountLoaded(r)}),e.qZA()}if(2&t){const n=e.oxw(2);e.xp6(6),e.Q6J("sourceId",n.to.evidenceParams.sourceId)("variantId",n.to.evidenceParams.variantId)}}const ct=function(t){return{hidden:t}};function st(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",1),e.ALo(2,"ngrxPush"),e.YNc(3,rt,7,2,"ng-template",null,2,e.W1O),e.BQk()),2&t){const n=e.MAs(4),i=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(4,ct,!e.lcZ(2,2,i.matchingEvidenceExists$)))("nzDescription",n)}}const dt={name:"duplicate-evidence-warning",component:(()=>{class t extends u.fS{constructor(){super(),this.paramsFilled=!1,this.matchingEvidenceExists$=new ot.X(!1),this.defaultOptions=Object.assign(Object.assign({},this.defaultOptions),{expressionProperties:{"templateOptions.evidenceParams":(n,i,r)=>{var c;let d=null===(c=null==r?void 0:r.parent)||void 0===c?void 0:c.model,m={};if(d&&(d.variant&&d.variant[0]&&(m.variantId=d.variant[0].id),d.source&&d.source[0]&&(m.sourceId=d.source[0].id),m.sourceId&&m.variantId))return this.paramsFilled=!0,m;this.paramsFilled=!1}},hideExpression:n=>!this.paramsFilled})}ngOnInit(){}initalCountLoaded(n){n>0&&this.matchingEvidenceExists$.next(!0)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-duplicate-evidence-warning"]],features:[e.qOj],decls:1,vars:1,consts:[[4,"ngIf"],["nzType","warning",3,"ngClass","nzDescription"],["evidenceTable",""],[2,"padding","10px"],["nz-typography",""],[3,"sourceId","variantId","initialTotalCount"]],template:function(n,i){1&n&&e.YNc(0,st,5,6,"ng-container",0),2&n&&e.Q6J("ngIf",i.to.evidenceParams&&i.to.evidenceParams.sourceId&&i.to.evidenceParams.variantId)},directives:[s.O5,_.r,s.mk,z.ZU,at.a],pipes:[v.fM],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),t})()};let lt=(()=>{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.u5,p.UX,v.WG,it.F,u.X0.forChild({types:[dt]}),_.L,z.ZJ,nt.Q]]}),t})();var pt=a(3022),ut=a(7462);let mt=(()=>{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.Bz,p.UX,b.s,x.U5,_.L,h.Jb,I.sL,P.j,u.X0,K.A,L.B,X.R,H.C,pt.e,k.N,te.g,j.C,ee.W,q.$,G.I,ut.o,$.K,ne.q,R.q,W.C,ie.o,oe.A,ae.g,re.r,ce.S,se.e,de.e,le.J,pe.i,qe,et.r,lt,tt.E,S.vh,f.zf,z.ZJ,g.Bz,b.s]]}),t})(),gt=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,h.Jb,f.zf,S.vh,V.H0,mt]]}),t})();var Z=a(6738),ft=a(8929),ht=a(6064),vt=a(6123),E=a(7625),_t=a(9169);function yt(t,o){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 Ct(t,o){1&t&&e.GkF(0)}function xt(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",11),e.NdJ("modelChange",function(r){return e.CHM(n),e.oxw(2).formModel=r}),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 zt(t,o){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 Tt(t,o){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 St(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",14),e.YNc(2,Tt,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 bt(t,o){if(1&t&&(e.YNc(0,zt,2,1,"nz-form-item",12),e.YNc(1,St,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 It(t,o){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 r=e.oxw();return r.submitEvidence(r.formModel)}),e.YNc(2,Ct,1,0,"ng-container",8),e.YNc(3,xt,1,4,"formly-form",9),e.qZA(),e.YNc(4,bt,2,2,"ng-template",null,10,e.W1O),e.qZA()}if(2&t){const n=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",n),e.xp6(1),e.Q6J("ngIf",!i.success)}}let Ot=(()=>{class t{constructor(n,i,r,c){this.submitEvidenceGQL=n,this.sourceSuggestionGQL=i,this.networkErrorService=r,this.route=c,this.destroy$=new ft.xQ,this.formGroup=new p.cw({}),this.formOptions={formState:new ht._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitEvidenceMutator=new vt.U(r),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:"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:"duplicate-evidence-warning",type:"duplicate-evidence-warning"},{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:"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(n=>{let i=!1;n.geneId&&(i=!0,this.submittedGeneId=+n.geneId),n.variantId&&(i=!0,this.submittedVariantId=+n.variantId),n.sourceId&&(i=!0,this.submittedSourceId=+n.sourceId),n.diseaseId&&(i=!0,this.submittedDiseaseId=+n.diseaseId),i&&this.sourceSuggestionGQL.fetch({geneId:this.submittedGeneId,diseaseId:this.submittedDiseaseId,sourceId:this.submittedSourceId,variantId:this.submittedVariantId}).subscribe(({data:{sourceSuggestionValues:r},loading:c})=>{var d,m;this.loading=c;let y={fields:{}};r.gene&&(y.fields.gene=[r.gene]),r.disease&&(y.fields.disease=[r.disease]),r.variant&&(y.fields.variant=[r.variant]),r.source&&(y.fields.source=[r.source]),(null===(d=this.formModel.fields)||void 0===d?void 0:d.organization)&&(y.fields.organization=null===(m=this.formModel.fields)||void 0===m?void 0:m.organization),this.formModel=y},r=>{console.error("Error retrieving source suggestion data."),console.error(r)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched()})})}submitEvidence(n){let i=this.toSubmitInput(n);if(i){let r=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:i},{},c=>{this.newId=c.submitEvidence.evidenceItem.id});r.submitSuccess$.pipe((0,E.R)(this.destroy$)).subscribe(c=>{c&&(this.success=!0)}),r.submitError$.pipe((0,E.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),r.isSubmitting$.pipe((0,E.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}toSubmitInput(n){var i,r;if(n){const c=n.fields;return{fields:{variantOrigin:c.variantOrigin,description:Z.xt(c.description),variantId:c.variant[0].id,sourceId:c.source[0].id,evidenceType:c.evidenceType,evidenceDirection:c.evidenceDirection,clinicalSignificance:c.clinicalSignificance,diseaseId:Z.uP(null===(i=c.disease[0])||void 0===i?void 0:i.id),evidenceLevel:c.evidenceLevel,phenotypeIds:c.phenotypes.map(d=>d.id),rating:+c.evidenceRating,drugIds:c.drugs.map(d=>d.id),drugInteractionType:Z.uP(c.drugInteractionType)},comment:c.comment&&c.comment.length>0?c.comment:void 0,organizationId:null===(r=null==n?void 0:n.fields.organization)||void 0===r?void 0:r.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.WFw),e.Y36(l.FId),e.Y36(_t.Y),e.Y36(g.gz))},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,i){1&n&&(e.TgZ(0,"nz-space",0),e.YNc(1,yt,16,0,"nz-card",1),e.YNc(2,It,6,4,"nz-spin",2),e.qZA())},directives:[f.NU,f.$1,S.bd,z.ZU,g.yS,P.W,p._Y,p.JL,x.Lr,p.sg,s.tP,s.O5,u.T7,h.SK,x.Nx,J.V,_.r],styles:[""]}),t})();const Zt=[{path:"",component:B,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(i=>{this.evidenceId=+i.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(g.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-submit"]],decls:1,vars:0,template:function(n,i){1&n&&e._UZ(0,"cvc-evidence-submit-form")},directives:[Ot],styles:[""]}),t})(),data:{breadcrumb:"Submit New Evidence"}}]}];let Et=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[g.Bz.forChild(Zt),gt],g.Bz]}),t})();var Mt=a(5630),At=a(9386);let wt=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[s.ez,Et,C.KJ,w.PV,Mt.D,At.a,h.Jb,v.WG]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/2869.22a724c91b87f846.js b/server/public/2869.22a724c91b87f846.js new file mode 100644 index 000000000..942fb7162 --- /dev/null +++ b/server/public/2869.22a724c91b87f846.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2869],{5453:(V,y,o)=>{o.d(y,{N:()=>M});var r=o(9808),n=o(325),d=o(8481),c=o(3610),v=o(7484),T=o(3098),h=o(3630),t=o(6949),C=o(5e3);let _=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=C.oAB({type:i}),i.\u0275inj=C.cJS({imports:[[r.ez,t.WG,v.vh,T.q6,h.X]]}),i})();var z=o(647);let M=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=C.oAB({type:i}),i.\u0275inj=C.cJS({imports:[[r.ez,n.Bz,z.PV,d.X,c.$6,_]]}),i})()},3580:(V,y,o)=>{o.d(y,{Q:()=>x});var r=o(9808),n=o(325),d=o(8481),c=o(3610),v=o(647),T=o(7484),h=o(3098),t=o(3630),C=o(6949),_=o(3618),z=o(9444),M=o(5e3);let i=(()=>{class p{}return p.\u0275fac=function(O){return new(O||p)},p.\u0275mod=M.oAB({type:p}),p.\u0275inj=M.cJS({imports:[[r.ez,C.WG,T.vh,h.q6,v.PV,_.ZJ,z.s,t.X]]}),p})(),x=(()=>{class p{}return p.\u0275fac=function(O){return new(O||p)},p.\u0275mod=M.oAB({type:p}),p.\u0275inj=M.cJS({imports:[[r.ez,n.Bz,d.X,c.$6,v.PV,z.s,i]]}),p})()},8018:(V,y,o)=>{o.d(y,{e:()=>p});var r=o(9808),n=o(325),d=o(8481),c=o(3610),v=o(647),T=o(7484),h=o(3098),t=o(6949),C=o(3630),_=o(3618),z=o(9444),M=o(404),i=o(5e3);let x=(()=>{class l{}return l.\u0275fac=function(I){return new(I||l)},l.\u0275mod=i.oAB({type:l}),l.\u0275inj=i.cJS({imports:[[r.ez,n.Bz,t.WG,T.vh,h.q6,v.PV,_.ZJ,d.X,M.cg,C.X,z.s]]}),l})(),p=(()=>{class l{}return l.\u0275fac=function(I){return new(I||l)},l.\u0275mod=i.oAB({type:l}),l.\u0275inj=i.cJS({imports:[[r.ez,n.Bz,d.X,c.$6,v.PV,z.s,x]]}),l})()},767:(V,y,o)=>{o.d(y,{Q:()=>W});var r=o(9808),n=o(1132),d=o(4546),c=o(1047),v=o(647),T=o(3618),h=o(4182),t=o(6949),C=o(7946),_=o(3309),z=o(404),M=o(4867),i=o(3580),x=o(8018),p=o(209),l=o(8054),O=o(4125),I=o(9444),K=o(6042),S=o(897),F=o(6114),J=o(7484),Z=o(5e3);let W=(()=>{class B{}return B.\u0275fac=function(j){return new(j||B)},B.\u0275mod=Z.oAB({type:B}),B.\u0275inj=Z.cJS({imports:[[r.ez,h.u5,t.WG,K.sL,n.HQ,d.U5,c.o7,v.PV,T.ZJ,z.cg,l.LV,F.Wr,J.vh,I.s,_.U,M.Q,i.Q,x.e,p.i,S.$,C.x,O.k]]}),B})()},209:(V,y,o)=>{o.d(y,{i:()=>J});var r=o(9808),n=o(325),d=o(8481),c=o(3610),v=o(647),T=o(7484),h=o(3309),t=o(4867),C=o(1894),_=o(3098),z=o(8018),M=o(3580),i=o(6286),x=o(6949),p=o(8144),l=o(9444),O=o(9779),I=o(592),K=o(3618),S=o(5e3);let F=(()=>{class Z{}return Z.\u0275fac=function(B){return new(B||Z)},Z.\u0275mod=S.oAB({type:Z}),Z.\u0275inj=S.cJS({imports:[[r.ez,n.Bz,x.WG,v.PV,T.vh,C.Jb,_.q6,d.X,p.zf,K.ZJ,l.s,z.e,M.Q,h.U,t.Q,i.y,O.s,I.x]]}),Z})(),J=(()=>{class Z{}return Z.\u0275fac=function(B){return new(B||Z)},Z.\u0275mod=S.oAB({type:Z}),Z.\u0275inj=S.cJS({imports:[[r.ez,n.Bz,d.X,c.$6,v.PV,F,l.s]]}),Z})()},9476:(V,y,o)=>{o.d(y,{L:()=>x});var r=o(9808),n=o(325),d=o(8481),c=o(647),v=o(1894),T=o(3630),h=o(3098),t=o(7484),C=o(6949),_=o(5473),z=o(5e3);let M=(()=>{class p{}return p.\u0275fac=function(O){return new(O||p)},p.\u0275mod=z.oAB({type:p}),p.\u0275inj=z.cJS({imports:[[r.ez,C.WG,t.vh,v.Jb,h.q6,T.X,_.H]]}),p})();var i=o(3610);let x=(()=>{class p{}return p.\u0275fac=function(O){return new(O||p)},p.\u0275mod=z.oAB({type:p}),p.\u0275inj=z.cJS({imports:[[r.ez,n.Bz,d.X,c.PV,i.$6,M]]}),p})()},6286:(V,y,o)=>{o.d(y,{y:()=>M});var r=o(9808),n=o(325),d=o(8481),c=o(3610),v=o(647),T=o(6949),h=o(7484),t=o(3630),C=o(3098),_=o(5e3);let z=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[r.ez,T.WG,v.PV,h.vh,t.X,C.q6]]}),i})(),M=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[r.ez,n.Bz,d.X,c.$6,v.PV,z]]}),i})()},2166:(V,y,o)=>{o.d(y,{p:()=>t});var r=o(5e3),n=o(1047),d=o(4182),c=o(9808),v=o(647);function T(C,_){if(1&C){const z=r.EpF();r.TgZ(0,"i",4),r.NdJ("click",function(){r.CHM(z);const i=r.oxw(2);return i.inputModel=void 0,i.onModelUpdated()}),r.qZA()}}function h(C,_){if(1&C&&r.YNc(0,T,1,0,"i",3),2&C){const z=r.oxw();r.Q6J("ngIf",z.inputModel)}}let t=(()=>{class C{constructor(){this.inputModelChange=new r.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return C.\u0275fac=function(z){return new(z||C)},C.\u0275cmp=r.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(z,M){if(1&z&&(r.TgZ(0,"nz-input-group",0),r.TgZ(1,"input",1),r.NdJ("ngModelChange",function(x){return M.inputModel=x})("ngModelChange",function(){return M.onModelUpdated()}),r.qZA(),r.qZA(),r.YNc(2,h,1,1,"ng-template",null,2,r.W1O)),2&z){const i=r.MAs(3);r.Q6J("nzSuffix",i),r.xp6(1),r.Q6J("placeholder",M.placeholderText?M.placeholderText:"")("ngModel",M.inputModel)}},directives:[n.gB,n.ke,n.Zp,d.Fj,d.JJ,d.On,c.O5,v.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),C})()},4125:(V,y,o)=>{o.d(y,{k:()=>T});var r=o(9808),n=o(1047),d=o(4182),c=o(647),v=o(5e3);let T=(()=>{class h{}return h.\u0275fac=function(C){return new(C||h)},h.\u0275mod=v.oAB({type:h}),h.\u0275inj=v.cJS({imports:[[r.ez,d.u5,n.o7,c.PV]]}),h})()},592:(V,y,o)=>{o.d(y,{x:()=>v});var r=o(9808),n=o(8481),d=o(647),c=o(5e3);let v=(()=>{class T{}return T.\u0275fac=function(t){return new(t||T)},T.\u0275mod=c.oAB({type:T}),T.\u0275inj=c.cJS({imports:[[r.ez,n.X,d.PV]]}),T})()},6715:(V,y,o)=>{o.d(y,{$:()=>d});var r=o(5e3);const n=["*"];let d=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(T){return new(T||c)},c.\u0275cmp=r.Xpm({type:c,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(T,h){2&T&&r.ekj("xs","xs"===h.size||!h.size)("sm","sm"===h.size)},inputs:{size:"size"},ngContentSelectors:n,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(T,h){1&T&&(r.F$t(),r.TgZ(0,"div",0),r.Hsn(1),r.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),c})()},897:(V,y,o)=>{o.d(y,{$:()=>d});var r=o(9808),n=o(5e3);let d=(()=>{class c{}return c.\u0275fac=function(T){return new(T||c)},c.\u0275mod=n.oAB({type:c}),c.\u0275inj=n.cJS({imports:[[r.ez]]}),c})()},7946:(V,y,o)=>{o.d(y,{x:()=>C});var r=o(9808),n=o(897),d=o(8481),c=o(3610),v=o(8018),T=o(3580),h=o(9476),t=o(5e3);let C=(()=>{class _{}return _.\u0275fac=function(M){return new(M||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[[r.ez,d.X,c.$6,n.$,v.e,T.Q,h.L]]}),_})()},9779:(V,y,o)=>{o.d(y,{s:()=>p});var r=o(9808),n=o(3610),d=o(325),c=o(7484),v=o(3630),T=o(3098),h=o(897),t=o(6949),C=o(5453),_=o(647),z=o(5e3);let M=(()=>{class l{}return l.\u0275fac=function(I){return new(I||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[[r.ez,t.WG,_.PV,c.vh,T.q6,v.X,h.$,C.N]]}),l})();var i=o(8481),x=o(9444);let p=(()=>{class l{}return l.\u0275fac=function(I){return new(I||l)},l.\u0275mod=z.oAB({type:l}),l.\u0275inj=z.cJS({imports:[[r.ez,d.Bz,_.PV,n.$6,i.X,M,x.s]]}),l})()},7279:(V,y,o)=>{o.d(y,{h:()=>p});var r=o(9808),n=o(1132),d=o(8054),c=o(4125),v=o(4182),T=o(9779),h=o(6949),t=o(3968),C=o(6042),_=o(647),z=o(3618),M=o(7484),i=o(404),x=o(5e3);let p=(()=>{class l{}return l.\u0275fac=function(I){return new(I||l)},l.\u0275mod=x.oAB({type:l}),l.\u0275inj=x.cJS({imports:[[r.ez,v.u5,h.WG,n.HQ,d.LV,_.PV,z.ZJ,M.vh,C.sL,i.cg,c.k,T.s,t.T]]}),l})()},7701:(V,y,o)=>{o.d(y,{j:()=>b});var r=o(6654),n=o(5e3),d=o(9808),c=o(325),v=o(8481),T=o(3610),h=o(4850),t=o(712),C=o(7484),_=o(647),z=o(6550),M=o(3098),i=o(6949);function x(m,A){if(1&m&&(n._UZ(0,"i",7),n._uU(1)),2&m){const P=n.oxw().ngIf;n.xp6(1),n.hij(" ",P.name," ")}}function p(m,A){if(1&m&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&m){const P=n.oxw(2).ngIf;n.Q6J("href",P.url),n.xp6(1),n.hij(" ",P.soid," ")}}function l(m,A){if(1&m&&n.YNc(0,p,2,2,"cvc-link-tag",8),2&m){const P=n.oxw().ngIf;n.Q6J("ngIf","N/A"!=P.soid)}}function O(m,A){if(1&m&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,x,2,1,"ng-template",null,3,n.W1O),n.YNc(4,l,1,1,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&m){const P=A.ngIf,U=n.MAs(3),$=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",U)("nzExtra",$),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",P.variantCount," ")}}let I=(()=>{class m{constructor(P){this.gql=P}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,h.U)(({data:P})=>P.variantTypePopover))}}return m.\u0275fac=function(P){return new(P||m)(n.Y36(t.tw_))},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(P,U){1&P&&(n.TgZ(0,"div",0),n.YNc(1,O,9,4,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&P&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,U.variantType$)))},directives:[d.O5,C.bd,_.Ls,z.l,M.R7,M.uj],pipes:[i.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),m})();function K(m,A){}function S(m,A){if(1&m&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,K,0,0,"ng-template",6),n.qZA(),n.BQk()),2&m){const P=n.oxw(),U=n.MAs(2);n.xp6(1),n.Q6J("routerLink",P.variantType.link),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function F(m,A){}function J(m,A){if(1&m&&(n.TgZ(0,"nz-tag",9),n.YNc(1,F,0,0,"ng-template",6),n.qZA()),2&m){n.oxw();const P=n.MAs(2);n.oxw();const U=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",P),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function Z(m,A){if(1&m&&n._UZ(0,"cvc-variant-type-popover",10),2&m){const P=n.oxw(2);n.Q6J("variantTypeId",P.variantType.id)}}function W(m,A){if(1&m&&(n.YNc(0,J,2,3,"nz-tag",7),n.YNc(1,Z,1,1,"ng-template",null,8,n.W1O)),2&m){const P=n.oxw(),U=n.MAs(6);n.Q6J("ngIf",P.enablePopover)("ngIfElse",U)}}function B(m,A){}function L(m,A){if(1&m&&n.YNc(0,B,0,0,"ng-template",6),2&m){n.oxw();const P=n.MAs(2);n.Q6J("ngTemplateOutlet",P)}}function j(m,A){}function Y(m,A){if(1&m&&(n.TgZ(0,"nz-tag"),n.YNc(1,j,0,0,"ng-template",6),n.qZA()),2&m){n.oxw();const P=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",P)}}function X(m,A){if(1&m&&(n._UZ(0,"i",11),n._uU(1)),2&m){const P=n.oxw();n.xp6(1),n.hij(" ",P.variantType.name,"\n")}}let b=(()=>{class m extends r.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return m.\u0275fac=function(P){return new(P||m)},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(P,U){if(1&P&&(n.YNc(0,S,3,2,"ng-container",0),n.YNc(1,W,3,2,"ng-template",null,1,n.W1O),n.YNc(3,L,1,1,"ng-template",null,2,n.W1O),n.YNc(5,Y,2,1,"ng-template",null,3,n.W1O),n.YNc(7,X,2,1,"ng-template",null,4,n.W1O)),2&P){const $=n.MAs(4);n.Q6J("ngIf",U.linked)("ngIfElse",$)}},directives:[d.O5,c.yS,d.tP,v.j,T.lU,I,_.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),m})()},8645:(V,y,o)=>{o.d(y,{M:()=>M});var r=o(9808),n=o(325),d=o(8481),c=o(7484),v=o(3630),T=o(3098),h=o(6949),t=o(647),C=o(5e3);let _=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=C.oAB({type:i}),i.\u0275inj=C.cJS({imports:[[r.ez,h.WG,t.PV,c.vh,T.q6,v.X]]}),i})();var z=o(3610);let M=(()=>{class i{}return i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=C.oAB({type:i}),i.\u0275inj=C.cJS({imports:[[r.ez,n.Bz,t.PV,d.X,z.$6,_]]}),i})()},8664:(V,y,o)=>{o.d(y,{I:()=>k});var r=o(6654),n=o(5e3),d=o(9808),c=o(325),v=o(8481),T=o(3610),h=o(4850),t=o(712),C=o(7484),_=o(647),z=o(3193),M=o(3098),i=o(6550),x=o(1894),p=o(8144),l=o(6949);function O(s,E){if(1&s&&(n._UZ(0,"i",13),n._uU(1)),2&s){const g=n.oxw().ngIf;n.xp6(1),n.hij(" ",g.name," ")}}function I(s,E){if(1&s&&n._UZ(0,"cvc-gene-tag",14),2&s){const g=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",g.gene)}}function K(s,E){if(1&s&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&s){const g=E.$implicit;n.xp6(1),n.Oqu(g)}}function S(s,E){if(1&s&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,K,2,1,"nz-tag",16),n.qZA()),2&s){const g=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",g.variantAliases)}}function F(s,E){if(1&s&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&s){const g=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",g.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",g.alleleRegistryId," ")}}function J(s,E){if(1&s&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&s){const g=n.oxw().ngIf;n.MGl("routerLink","/variants/",g.id,"/flags"),n.xp6(3),n.hij(" Flags (",g.flags.totalCount,") ")}}function Z(s,E){if(1&s&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&s){const g=n.oxw().ngIf;n.MGl("routerLink","/variants/",g.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",g.revisions.totalCount,") ")}}function W(s,E){if(1&s&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&s){const g=n.oxw().ngIf;n.MGl("routerLink","/variants/",g.id,"/comments"),n.xp6(3),n.hij(" Comments (",g.comments.totalCount,") ")}}function B(s,E){if(1&s&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,O,2,1,"ng-template",null,3,n.W1O),n.YNc(4,I,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,S,2,1,"nz-descriptions-item",6),n.YNc(8,F,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,Z,4,2,"a",12),n.YNc(16,W,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&s){const g=E.ngIf,D=n.MAs(3),Q=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",D)("nzExtra",Q),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",g.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",g.alleleRegistryId),n.xp6(2),n.hij(" ",g.evidenceItems.totalCount," ")}}let L=(()=>{class s{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,h.U)(({data:g})=>g.variant))}}return s.\u0275fac=function(g){return new(g||s)(n.Y36(t.ZYZ))},s.\u0275cmp=n.Xpm({type:s,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,D){1&g&&(n.TgZ(0,"div",0),n.YNc(1,B,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&g&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,D.variant$)))},directives:[d.O5,C.bd,_.Ls,z.H,M.R7,M.uj,d.sg,v.j,i.l,x.SK,x.t3,p.NU,p.$1,c.yS],pipes:[l.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}"]}),s})();function j(s,E){}function Y(s,E){if(1&s&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,j,0,0,"ng-template",6),n.qZA(),n.BQk()),2&s){const g=n.oxw(),D=n.MAs(2);n.xp6(1),n.Q6J("routerLink",g.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",D)}}function X(s,E){}function b(s,E){if(1&s){const g=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(Q){return n.CHM(g),n.oxw(2).itemClosed(Q)}),n.YNc(1,X,0,0,"ng-template",6),n.qZA()}if(2&s){n.oxw();const g=n.MAs(2),D=n.oxw(),Q=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",D.onCloseClicked?0:.5)("nzPopoverContent",g)("nzMode",D.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function m(s,E){if(1&s&&n._UZ(0,"cvc-variant-popover",11),2&s){const g=n.oxw(3);n.Q6J("variantId",g.variant.id)}}function A(s,E){if(1&s&&n.YNc(0,m,1,1,"cvc-variant-popover",10),2&s){const g=n.oxw(2);n.Q6J("ngIf",g.enablePopover)}}function P(s,E){if(1&s&&(n.YNc(0,b,2,4,"nz-tag",7),n.YNc(1,A,1,1,"ng-template",null,8,n.W1O)),2&s){const g=n.oxw(),D=n.MAs(4);n.Q6J("ngIf",g.enablePopover)("ngIfElse",D)}}function U(s,E){}function $(s,E){if(1&s){const g=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(Q){return n.CHM(g),n.oxw().itemClosed(Q)}),n.YNc(1,U,0,0,"ng-template",6),n.qZA()}if(2&s){const g=n.oxw(),D=n.MAs(8);n.Q6J("nzMode",g.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",D)}}function H(s,E){}function G(s,E){if(1&s&&n.YNc(0,H,0,0,"ng-template",6),2&s){n.oxw();const g=n.MAs(2);n.Q6J("ngTemplateOutlet",g)}}function w(s,E){if(1&s&&(n._UZ(0,"i",13),n._uU(1)),2&s){const g=n.oxw();n.xp6(1),n.hij(" ",g.variant.name,"\n")}}let k=(()=>{class s extends r.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 s.\u0275fac=function(g){return new(g||s)},s.\u0275cmp=n.Xpm({type:s,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(g,D){if(1&g&&(n.YNc(0,Y,3,2,"ng-container",0),n.YNc(1,P,3,2,"ng-template",null,1,n.W1O),n.YNc(3,$,2,2,"ng-template",null,2,n.W1O),n.YNc(5,G,1,1,"ng-template",null,3,n.W1O),n.YNc(7,w,2,1,"ng-template",null,4,n.W1O)),2&g){const Q=n.MAs(6);n.Q6J("ngIf",D.linked)("ngIfElse",Q)}},directives:[d.O5,c.yS,d.tP,v.j,T.lU,L,_.Ls],styles:[""]}),s})()},4867:(V,y,o)=>{o.d(y,{Q:()=>p});var r=o(9808),n=o(325),d=o(8481),c=o(647),v=o(3610),T=o(6949),h=o(7484),t=o(1894),C=o(3098),_=o(8144),z=o(3309),M=o(3630),i=o(5e3);let x=(()=>{class l{}return l.\u0275fac=function(I){return new(I||l)},l.\u0275mod=i.oAB({type:l}),l.\u0275inj=i.cJS({imports:[[r.ez,n.Bz,T.WG,h.vh,t.Jb,C.q6,d.X,c.PV,_.zf,z.U,M.X]]}),l})(),p=(()=>{class l{}return l.\u0275fac=function(I){return new(I||l)},l.\u0275mod=i.oAB({type:l}),l.\u0275inj=i.cJS({imports:[[r.ez,n.Bz,d.X,v.$6,c.PV,x]]}),l})()},3154:(V,y,o)=>{o.d(y,{_:()=>n});var r=o(712);function n(d){var c;switch(d.value){case"ascend":c=r.SrV.Asc;break;case"descend":c=r.SrV.Desc;break;default:return}return{column:d.key,direction:c}}},1875:(V,y,o)=>{o.r(y),o.d(y,{VariantTypesModule:()=>hn});var r=o(9808),n=o(325),d=o(6949),c=o(1945),v=o(647),T=o(3630),h=o(5630),t=o(5e3);let C=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[r.ez,n.Bz,d.WG,c.KJ,v.PV,T.X,h.D]]}),a})();var _=o(8144),z=o(767),M=o(7279),i=o(3855);let x=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[r.ez,_.zf,z.Q,M.h,i.H]]}),a})();var p=o(1894),l=o(1132),O=o(4125),I=o(6286),K=o(8645),S=o(6042),F=o(7484),J=o(3618),Z=o(404);let W=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[r.ez,n.Bz,d.WG,l.HQ,v.PV,S.sL,F.vh,J.ZJ,Z.cg,O.k,I.y,T.X,K.M]]}),a})(),B=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[r.ez,c.KJ,v.PV,p.Jb,S.sL,_.zf,J.ZJ,h.D,W]]}),a})();var L=o(373),j=o(1059),Y=o(712),X=o(8992),b=o(6550);function m(a,f){if(1&a&&(t.TgZ(0,"cvc-link-tag",6),t._uU(1),t.qZA()),2&a){const e=t.oxw().ngIf;t.Q6J("href",e.url),t.xp6(1),t.hij(" ",e.soid," ")}}function A(a,f){if(1&a&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-title"),t._UZ(4,"i",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-page-header-extra"),t.YNc(7,m,2,2,"cvc-link-tag",4),t.qZA(),t.TgZ(8,"nz-page-header-content"),t.TgZ(9,"div",5),t._uU(10),t._UZ(11,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&a){const e=f.ngIf;t.xp6(1),t.Q6J("displayName",e.name),t.xp6(4),t.hij(" ",e.name," "),t.xp6(2),t.Q6J("ngIf",e.url),t.xp6(3),t.hij(" ",e.description," ")}}let P=(()=>{class a{constructor(e,u){this.route=e,this.gql=u,this.routeSub=this.route.params.subscribe(N=>{this.variantTypeId=+N.variantTypeId,this.queryRef=this.gql.watch({variantTypeId:this.variantTypeId});let R=this.queryRef.valueChanges;this.loading$=R.pipe((0,L.j)("loading"),(0,j.O)(!0)),this.variantType$=R.pipe((0,L.j)("data","variantType"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(n.gz),t.Y36(Y.ubO))},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-variant-types-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","civic:varianttype"],["tooltip","View on sequenceontology.org",3,"href",4,"ngIf"],[1,"content"],["tooltip","View on sequenceontology.org",3,"href"]],template:function(e,u){1&e&&(t.YNc(0,A,12,4,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,u.variantType$))},directives:[r.O5,X.I,c.$O,c.u9,v.Ls,c.Jp,b.l,c.u5,n.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}"]}),a})();var U=o(2683),$=o(3154),H=o(8929),G=o(4850),w=o(2986),k=o(13),s=o(2166),E=o(7701),g=o(2643);function D(a,f){1&a&&t._uU(0," -- ")}function Q(a,f){if(1&a&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._UZ(2,"cvc-variant-type-tag",12),t.qZA(),t.TgZ(3,"td"),t.TgZ(4,"cvc-link-tag",13),t._uU(5),t.qZA(),t.YNc(6,D,1,0,"ng-template",null,14,t.W1O),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.qZA()),2&a){const e=f.$implicit;t.xp6(2),t.Q6J("variantType",e),t.xp6(2),t.Q6J("href",e.url),t.xp6(1),t.hij(" ",e.soid," "),t.xp6(4),t.hij(" ",e.variantCount," ")}}function q(a,f){if(1&a){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const N=t.oxw(2).ngrxLet;return t.oxw().loadMore(N.endCursor)}),t._uU(1),t.qZA()}if(2&a){const e=t.oxw(3);t.xp6(1),t.hij("Load ",e.initialPageSize," More")}}function nn(a,f){if(1&a&&(t.TgZ(0,"tr"),t.TgZ(1,"td",16),t.YNc(2,q,2,1,"button",17),t.qZA(),t.qZA()),2&a){const e=t.oxw().ngrxLet;t.xp6(2),t.Q6J("ngIf",e.hasNextPage)}}function tn(a,f){if(1&a&&(t.ynx(0),t.YNc(1,nn,3,1,"tr",15),t.BQk()),2&a){const e=f.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function on(a,f){}function an(a,f){if(1&a&&(t.ynx(0),t.YNc(1,on,0,0,"ng-template",22),t.BQk()),2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function en(a,f){if(1&a&&(t.ynx(0),t._uU(1),t.BQk()),2&a){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function rn(a,f){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&a){const e=t.oxw().ngIf;t.xp6(1),t.hij(" of ",e," filtered")}}function ln(a,f){if(1&a&&(t.TgZ(0,"span",23),t._uU(1),t.YNc(2,rn,2,1,"span",15),t._uU(3,") "),t.qZA()),2&a){const e=f.ngIf,u=t.oxw(2);t.xp6(1),t.AsE(" (",u.totalCount," total, showing ",u.visibleCount,""),t.xp6(1),t.Q6J("ngIf",u.totalCount&&e{class a{constructor(e){this.gql=e,this.initialPageSize=25,this.debouncedQuery=new H.xQ,this.sortColumns=Y.wpb,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize});let e=this.queryRef.valueChanges;this.variantTypes$=e.pipe((0,L.j)("data","variantTypes","edges"),(0,G.U)(u=>u.map(N=>N.node))),this.isLoading$=e.pipe((0,L.j)("loading"),(0,j.O)(!0)),this.filteredCount$=e.pipe((0,L.j)("data","variantTypes","filteredCount")),this.filteredCount$.pipe((0,w.q)(1)).subscribe(u=>this.totalCount=u),this.filteredCount$.subscribe(u=>{uu&&(this.visibleCount=u))}),this.pageInfo$=e.pipe((0,L.j)("data","variantTypes","pageInfo")),this.debouncedQuery.pipe((0,k.b)(500)).subscribe(u=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}onModelChanged(){this.debouncedQuery.next()}onSortChanged(e){var u;this.loadedPages=1,null===(u=this.queryRef)||void 0===u||u.refetch({sortBy:(0,$._)(e)})}refresh(){var e;this.loadedPages=1,null===(e=this.queryRef)||void 0===e||e.refetch({name:this.nameFilter,soid:this.soidFilter})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(e){var u;null===(u=this.queryRef)||void 0===u||u.fetchMore({variables:{after:e}}),this.loadedPages+=1}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(Y.fwG))},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-variant-types-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:24,vars:23,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["variantTypesTable",""],[3,"nzSortOrderChange"],["nzWidth","40%",3,"nzColumnKey","nzSortFn"],["nzWidth","20%","nzRight","","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:variant"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search SO ID",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"variantType"],["tooltip","View on sequenceontology.org",3,"href"],["noSoid",""],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:varianttype"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(e,u){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 u.onSortChanged(R)}),t.TgZ(6,"tr"),t.TgZ(7,"th",4),t._uU(8," Name "),t.qZA(),t.TgZ(9,"th",4),t._uU(10," SOID "),t.qZA(),t.TgZ(11,"th",5),t._UZ(12,"i",6),t.qZA(),t.qZA(),t.TgZ(13,"tr"),t.TgZ(14,"th"),t.TgZ(15,"cvc-clearable-input-filter",7),t.NdJ("inputModelChange",function(R){return u.nameFilter=R}),t.qZA(),t.qZA(),t.TgZ(16,"th"),t.TgZ(17,"cvc-clearable-input-filter",8),t.NdJ("inputModelChange",function(R){return u.soidFilter=R}),t.qZA(),t.qZA(),t._UZ(18,"th"),t.qZA(),t.qZA(),t.TgZ(19,"tbody"),t.YNc(20,Q,10,4,"tr",9),t.YNc(21,tn,2,1,"ng-container",10),t.qZA(),t.qZA(),t.qZA(),t.YNc(22,cn,7,6,"ng-template",null,11,t.W1O)),2&e){const N=t.MAs(2),R=t.MAs(23);t.Q6J("nzTitle",R),t.xp6(1),t.Q6J("nzData",t.lcZ(3,18,u.variantTypes$))("nzLoading",t.lcZ(4,20,u.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(6),t.Q6J("nzColumnKey",u.sortColumns.Name)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",u.sortColumns.Soid)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",u.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.DdM(22,pn)),t.xp6(4),t.Q6J("inputModel",u.nameFilter)("onInputChanged",u.textInputCallback),t.xp6(2),t.Q6J("inputModel",u.soidFilter)("onInputChanged",u.textInputCallback),t.xp6(3),t.Q6J("ngForOf",N.data),t.xp6(1),t.Q6J("ngrxLet",u.pageInfo$)}},directives:[F.bd,l.N8,l.Om,l.$Z,l.Uo,l._C,l.qD,l.qn,Z.SY,v.Ls,U.w,s.p,l.p0,r.sg,E.j,b.l,d.eJ,r.O5,S.ix,g.dQ,r.tP,J.ZU],pipes:[d.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})();function dn(a,f){1&a&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Variant Type Docs "),t.qZA())}function vn(a,f){1&a&&(t.TgZ(0,"a",16),t._UZ(1,"i",15),t._uU(2," View Variant Type Curation Docs "),t.qZA())}let mn=(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["variant-types-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:varianttype"],["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/types.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants/types.html#curating-variant-types","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variant Types"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants/types.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants/types.html#curating-variant-types","target","_blank","nzSize","small","nzBlock",""]],template:function(e,u){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,"Variant Types"),t.qZA(),t.TgZ(9,"p",5),t._uU(10,"Variant Types are used to classify CIViC variants by Sequence Ontology terms, permitting advanced searching for categories of variants downstream semantic analyses."),t.qZA(),t.qZA(),t.TgZ(11,"nz-col",6),t.TgZ(12,"nz-space",7),t.YNc(13,dn,3,0,"a",8),t.YNc(14,vn,3,0,"a",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",10),t.TgZ(16,"div",11),t.TgZ(17,"div",12),t._UZ(18,"cvc-variant-types-table",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24))},directives:[X.I,c.$O,c.u5,p.SK,p.t3,v.Ls,U.w,J.ZU,_.NU,_.$1,S.ix,gn],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}"]}),a})();var un=o(6410);function _n(a,f){if(1&a&&t._UZ(0,"cvc-variants-table",3),2&a){const e=t.oxw(2);t.Q6J("variantTypeId",e.variantTypeId)}}function Tn(a,f){1&a&&(t.TgZ(0,"nz-space",1),t.YNc(1,_n,1,1,"cvc-variants-table",2),t.qZA())}const Cn=[{path:"",component:(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(e){return new(e||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-variant-types"]],decls:1,vars:0,template:function(e,u){1&e&&t._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),a})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:mn,data:{breadcrumb:"Home"}},{path:":variantTypeId",component:P,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class a{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(u=>{this.variantTypeId=+u.variantTypeId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(n.gz))},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-variant-types-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Type Variants",3,"variantTypeId",4,"nzSpaceItem"],["cvcTitle","Type Variants",3,"variantTypeId"]],template:function(e,u){1&e&&t.YNc(0,Tn,2,0,"nz-space",0),2&e&&t.Q6J("ngIf",u.variantTypeId)},directives:[r.O5,_.NU,_.$1,un.S],styles:["[_nghost-%COMP%]{display:block}"]}),a})(),data:{breadcrumb:"Summary"}}]}]}];let fn=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[n.Bz.forChild(Cn)],n.Bz]}),a})(),hn=(()=>{class a{}return a.\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[r.ez,n.Bz,fn,B,C,x]]}),a})()}}]); \ No newline at end of file diff --git a/server/public/305.7761f97c55835182.js b/server/public/305.7761f97c55835182.js deleted file mode 100644 index 4c25052db..000000000 --- a/server/public/305.7761f97c55835182.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[305],{8965:(P,m,e)=>{e.d(m,{a:()=>gn});var n=e(5e3),v=e(712),z=e(3154),h=e(8929),s=e(373),p=e(1059),g=e(4850),E=e(2986),r=e(13),T=e(7484),d=e(1132),C=e(9808),c=e(404),M=e(2166),f=e(8054),O=e(4182),D=e(6114),U=e(9001),L=e(3193),Z=e(8664),y=e(4022),x=e(6715),u=e(7469),A=e(2683),I=e(647),S=e(6949),N=e(6042),b=e(2643),R=e(3618),W=e(4110);function J(o,l){1&o&&n._UZ(0,"th",68)}function K(o,l){if(1&o&&(n.TgZ(0,"th",69),n._uU(1," Gene "),n.qZA()),2&o){const t=n.oxw();n.Q6J("nzColumnKey",t.sortColumns.GeneSymbol)("nzSortFn",!0)}}function B(o,l){if(1&o&&(n.TgZ(0,"th",70),n._uU(1," Variant "),n.qZA()),2&o){const t=n.oxw();n.Q6J("nzColumnKey",t.sortColumns.VariantName)("nzSortFn",!0)}}function F(o,l){1&o&&n._UZ(0,"th")}function Q(o,l){if(1&o){const t=n.EpF();n.TgZ(0,"th"),n.TgZ(1,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(_){return n.CHM(t),n.oxw().geneSymbolInput=_}),n.qZA(),n.qZA()}if(2&o){const t=n.oxw();n.xp6(1),n.Q6J("inputModel",t.geneSymbolInput)("onInputChanged",t.textInputCallback)}}function V(o,l){if(1&o){const t=n.EpF();n.TgZ(0,"th"),n.TgZ(1,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(_){return n.CHM(t),n.oxw().variantNameInput=_}),n.qZA(),n.qZA()}if(2&o){const t=n.oxw();n.xp6(1),n.Q6J("inputModel",t.variantNameInput)("onInputChanged",t.textInputCallback)}}function Y(o,l){if(1&o){const t=n.EpF();n.TgZ(0,"td"),n.TgZ(1,"label",78),n.NdJ("nzCheckedChange",function(_){n.CHM(t);const a=n.oxw().$implicit;return n.oxw().onEvidenceCheckboxClicked(_,a)}),n.qZA(),n.qZA()}if(2&o){const t=n.oxw().$implicit,i=n.oxw();n.xp6(1),n.Q6J("nzChecked",i.selectedEvidenceIds.has(t.id))}}function G(o,l){if(1&o&&(n.TgZ(0,"td"),n._UZ(1,"cvc-gene-tag",79),n.qZA()),2&o){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("gene",t.gene)}}function j(o,l){if(1&o&&(n.TgZ(0,"td"),n._UZ(1,"cvc-variant-tag",80),n.qZA()),2&o){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("variant",t.variant)}}function $(o,l){if(1&o&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",81),n.BQk()),2&o){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("disease",t.disease)("truncateLongName",!0)}}function H(o,l){1&o&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function X(o,l){if(1&o&&(n.TgZ(0,"span"),n._UZ(1,"cvc-drug-tag",82),n.qZA()),2&o){const t=l.$implicit;n.xp6(1),n.Q6J("drug",t)("truncateLongName",!0)}}function q(o,l){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"titlecase"),n.qZA()),2&o){const t=n.oxw(2).$implicit;n.xp6(1),n.hij(" (",n.lcZ(2,1,t.drugInteractionType),") ")}}function w(o,l){if(1&o&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,X,2,2,"span",65),n.qZA(),n.YNc(3,q,3,3,"span",16),n.qZA()),2&o){const t=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",t.drugs),n.xp6(1),n.Q6J("ngIf",t.drugs.length>1)}}function k(o,l){1&o&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function nn(o,l){if(1&o&&(n.TgZ(0,"tr"),n.YNc(1,Y,2,1,"td",16),n.TgZ(2,"td"),n._UZ(3,"cvc-evidence-tag",71),n.qZA(),n.YNc(4,G,2,1,"td",16),n.YNc(5,j,2,1,"td",16),n.TgZ(6,"td"),n.YNc(7,$,2,2,"ng-container",72),n.YNc(8,H,2,0,"ng-template",null,73,n.W1O),n.qZA(),n.TgZ(10,"td"),n.YNc(11,w,4,2,"div",72),n.YNc(12,k,2,0,"ng-template",null,74,n.W1O),n.qZA(),n.TgZ(14,"td",18),n._UZ(15,"i",75),n.qZA(),n.TgZ(16,"td",18),n._uU(17),n.qZA(),n.TgZ(18,"td",18),n._UZ(19,"i",76),n.ALo(20,"evidenceEnumDisplay"),n.ALo(21,"evidenceEnumDisplay"),n.qZA(),n.TgZ(22,"td",18),n._UZ(23,"i",76),n.ALo(24,"evidenceEnumDisplay"),n.ALo(25,"evidenceEnumDisplay"),n.qZA(),n.TgZ(26,"td",18),n._UZ(27,"i",76),n.ALo(28,"evidenceEnumDisplay"),n.ALo(29,"evidenceEnumDisplay"),n.qZA(),n.TgZ(30,"td",18),n._UZ(31,"i",76),n.ALo(32,"evidenceEnumDisplay"),n.ALo(33,"evidenceEnumDisplay"),n.qZA(),n.TgZ(34,"td",18),n._uU(35),n._UZ(36,"i",77),n.qZA(),n.qZA()),2&o){const t=l.$implicit,i=n.MAs(9),_=n.MAs(13),a=n.oxw();n.xp6(1),n.Q6J("ngIf","select"==a.mode),n.xp6(2),n.Q6J("evidence",t),n.xp6(1),n.Q6J("ngIf",a.displayGeneAndVariant),n.xp6(1),n.Q6J("ngIf",a.displayGeneAndVariant),n.xp6(2),n.Q6J("ngIf",t.disease)("ngIfElse",i),n.xp6(4),n.Q6J("ngIf",t.drugs.length>0)("ngIfElse",_),n.xp6(4),n.Q6J("nzTooltipTitle",t.description),n.xp6(2),n.hij(" ",t.evidenceLevel," "),n.xp6(2),n.Q6J("nzType",n.xi3(20,19,t.evidenceType,"icon-name"))("nzTooltipTitle",n.lcZ(21,22,t.evidenceType)),n.xp6(4),n.Q6J("nzType",n.xi3(24,24,t.evidenceDirection,"icon-name"))("nzTooltipTitle",n.lcZ(25,27,t.evidenceDirection)),n.xp6(4),n.Q6J("nzType",n.xi3(28,29,t.clinicalSignificance,"icon-name"))("nzTooltipTitle",n.lcZ(29,32,t.clinicalSignificance)),n.xp6(4),n.Q6J("nzType",n.xi3(32,34,t.variantOrigin,"icon-name"))("nzTooltipTitle",n.lcZ(33,37,t.variantOrigin)),n.xp6(4),n.hij(" ",t.evidenceRating," ")}}function en(o,l){if(1&o){const t=n.EpF();n.TgZ(0,"button",85),n.NdJ("click",function(){n.CHM(t);const _=n.oxw(2).ngrxLet;return n.oxw().loadMore(_.endCursor)}),n._uU(1),n.qZA()}if(2&o){const t=n.oxw(3);n.xp6(1),n.hij("Load ",t.fetchMorePageSize," More")}}function tn(o,l){if(1&o&&(n.TgZ(0,"tr"),n.TgZ(1,"td",83),n.YNc(2,en,2,1,"button",84),n.qZA(),n.qZA()),2&o){const t=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",t.hasNextPage)}}function on(o,l){if(1&o&&(n.ynx(0),n.YNc(1,tn,3,1,"tr",16),n.BQk()),2&o){const t=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",t.hasNextPage)}}function an(o,l){}function ln(o,l){if(1&o&&(n.ynx(0),n.YNc(1,an,0,0,"ng-template",89),n.BQk()),2&o){const t=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",t.cvcTitleTemplate)}}function _n(o,l){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.cvcTitle," ")}}function cn(o,l){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const t=n.oxw().ngIf;n.xp6(1),n.hij(" of ",t," filtered")}}function dn(o,l){if(1&o&&(n.TgZ(0,"span",90),n._uU(1),n.YNc(2,cn,2,1,"span",16),n._uU(3,") "),n.qZA()),2&o){const t=l.ngIf,i=n.oxw(2);n.xp6(1),n.AsE(" (",i.totalCount," total, showing ",i.visibleCount,""),n.xp6(1),n.Q6J("ngIf",i.totalCount&&t{class o{constructor(t){this.gql=t,this.initialPageSize=25,this.mode="normal",this.displayGeneAndVariant=!0,this.selectedEids=new n.vpe,this.initialSelectedEids=[],this.debouncedQuery=new h.xQ,this.selectedEvidenceIds=new Map,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.tableView=!0,this.fetchMorePageSize=25,this.sortColumns=v.Cp0}ngOnInit(){this.initialUserFilters&&(this.eidInput=this.initialUserFilters.eidInput,this.diseaseNameInput=this.initialUserFilters.diseaseNameInput,this.drugNameInput=this.initialUserFilters.drugNameInput,this.descriptionInput=this.initialUserFilters.descriptionInput,this.evidenceLevelInput=this.initialUserFilters.evidenceLevelInput,this.evidenceTypeInput=this.initialUserFilters.evidenceTypeInput,this.evidenceDirectionInput=this.initialUserFilters.evidenceDirectionInput,this.clinicalSignificanceInput=this.initialUserFilters.clinicalSignificanceInput,this.variantOriginInput=this.initialUserFilters.variantOriginInput,this.evidenceRatingInput=this.initialUserFilters.evidenceRatingInput,this.variantNameInput=this.initialUserFilters.variantNameInput,this.geneSymbolInput=this.initialUserFilters.geneSymbolInput),this.queryRef=this.gql.watch({first:this.initialPageSize,variantId:this.variantId,assertionId:this.assertionId,organizationId:this.organizationId,userId:this.userId,phenotypeId:this.phenotypeId,diseaseId:this.diseaseId,drugId:this.drugId,sourceId:this.sourceId,clinicalTrialId:this.clinicalTrialId,cardView:!this.tableView,status:this.status,diseaseName:this.diseaseNameInput,drugName:this.drugNameInput,description:this.descriptionInput,evidenceLevel:this.evidenceLevelInput?this.evidenceLevelInput:void 0,evidenceType:this.evidenceTypeInput?this.evidenceTypeInput:void 0,evidenceDirection:this.evidenceDirectionInput?this.evidenceDirectionInput:void 0,clinicalSignificance:this.clinicalSignificanceInput?this.clinicalSignificanceInput:void 0,variantOrigin:this.variantOriginInput?this.variantOriginInput:void 0,rating:this.evidenceRatingInput?this.evidenceRatingInput:void 0,geneSymbol:this.geneSymbolInput?this.geneSymbolInput:void 0,variantName:this.variantNameInput?this.variantNameInput:void 0}),this.initialSelectedEids.forEach(i=>this.selectedEvidenceIds.set(i.id,i));let t=this.queryRef.valueChanges;this.isLoading$=t.pipe((0,s.j)("loading"),(0,p.O)(!0)),this.evidence$=t.pipe((0,s.j)("data","evidenceItems","edges"),(0,g.U)(i=>i.map(_=>_.node))),this.filteredCount$=t.pipe((0,s.j)("data","evidenceItems","totalCount")),this.filteredCount$.pipe((0,E.q)(1)).subscribe(i=>this.totalCount=i),this.filteredCount$.subscribe(i=>{ii&&(this.visibleCount=i))}),this.pageInfo$=t.pipe((0,s.j)("data","evidenceItems","pageInfo")),this.debouncedQuery.pipe((0,r.b)(500)).subscribe(i=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}loadMore(t){this.queryRef.fetchMore({variables:{first:this.fetchMorePageSize,after:t}}),this.loadedPages+=1}refresh(){var t;this.loadedPages=1,t=this.eidInput?this.eidInput.toUpperCase().startsWith("EID")?+this.eidInput.toUpperCase().replace("EID",""):+this.eidInput:void 0,this.queryRef.refetch({id:t,diseaseName:this.diseaseNameInput,drugName:this.drugNameInput,description:this.descriptionInput,evidenceLevel:this.evidenceLevelInput?this.evidenceLevelInput:void 0,evidenceType:this.evidenceTypeInput?this.evidenceTypeInput:void 0,evidenceDirection:this.evidenceDirectionInput?this.evidenceDirectionInput:void 0,clinicalSignificance:this.clinicalSignificanceInput?this.clinicalSignificanceInput:void 0,variantOrigin:this.variantOriginInput?this.variantOriginInput:void 0,rating:this.evidenceRatingInput?this.evidenceRatingInput:void 0,geneSymbol:this.geneSymbolInput?this.geneSymbolInput:void 0,variantName:this.variantNameInput?this.variantNameInput:void 0,cardView:!this.tableView})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(t){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,z._)(t),cardView:!this.tableView})}onEvidenceCheckboxClicked(t,i){t?this.selectedEvidenceIds.set(i.id,i):this.selectedEvidenceIds.delete(i.id),this.selectedEids.emit(Array.from(this.selectedEvidenceIds.values()))}ngOnDestroy(){this.debouncedQuery.unsubscribe()}}return o.\u0275fac=function(t){return new(t||o)(n.Y36(v.eY8))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-evidence-table"]],inputs:{variantId:"variantId",assertionId:"assertionId",organizationId:"organizationId",userId:"userId",phenotypeId:"phenotypeId",diseaseId:"diseaseId",drugId:"drugId",sourceId:"sourceId",clinicalTrialId:"clinicalTrialId",status:"status",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",mode:"mode",displayGeneAndVariant:"displayGeneAndVariant",initialSelectedEids:"initialSelectedEids",initialUserFilters:"initialUserFilters"},outputs:{selectedEids:"selectedEids"},decls:113,vars:65,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["evidenceTable",""],[3,"nzSortOrderChange"],["nzWidth","2%",4,"ngIf"],["nzWidth","5%","nz-tooltip","","nzTooltipTitle","Evidence ID",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Entrez Gene Symbol",3,"nzColumnKey","nzSortFn",4,"ngIf"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Variant Name",3,"nzColumnKey","nzSortFn",4,"ngIf"],["nzWidth","20%",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Evidence Level",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Evidence Type",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Evidence Direction",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Clinical Significance",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Variant Origin",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Rating",3,"nzColumnKey","nzSortDirections","nzSortFn"],[4,"ngIf"],[3,"inputModel","onInputChanged","inputModelChange"],["nzAlign","center"],["nzAllowClear","","nzPlaceHolder","All",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","A","nzLabel","A"],["nzValue","B","nzLabel","B"],["nzValue","C","nzLabel","C"],["nzValue","D","nzLabel","D"],["nzValue","E","nzLabel","E"],["nzValue","PREDICTIVE","nzLabel","Predictive"],["nzValue","PROGNOSTIC","nzLabel","Prognostic"],["nzValue","DIAGNOSTIC","nzLabel","Diagnostic"],["nzValue","PREDISPOSING","nzLabel","Predisposing"],["nzValue","ONCOGENIC","nzLabel","Oncogenic"],["nzValue","FUNCTIONAL","nzLabel","Functional"],["nzValue","SUPPORTS","nzLabel","Supports"],["nzValue","DOES_NOT_SUPPORT","nzLabel","Does not Support"],["nzValue","NA","nzLabel","N/A"],["nzWidth","5%","nzAlign","center"],["nzLabel","Predictive"],["nzValue","SENSITIVITYRESPONSE","nzLabel","Sensitivity/Response"],["nzValue","RESISTANCE","nzLabel","Resistance"],["nzValue","ADVERSE_RESPONSE","nzLabel","Adverse Response"],["nzValue","REDUCED SENSITIVITY","nzLabel","Reduced Sensitivity"],["nzLabel","Prognostic"],["nzValue","BETTER_OUTCOME","nzLabel","Better Outcome"],["nzValue","POOR_OUTCOME","nzLabel","Poor Outcome"],["nzLabel","Diagnostic"],["nzValue","POSITIVE","nzLabel","Positive"],["nzValue","NEGATIVE","nzLabel","Negative"],["nzLabel","Predisposing"],["nzLabel","Oncogenic"],["nzLabel","Functional"],["nzValue","GAIN_OF_FUNCTION","nzLabel","Gain of Function"],["nzValue","LOSS_OF_FUNCTION","nzLabel","Loss of Function"],["nzValue","UNALTERED_FUNCTION","nzLabel","Unaltered Function"],["nzValue","NEOMORPHIC","nzLabel","Neomorphic"],["nzValue","DOMINANT_NEGATIVE","nzLabel","Dominant Negative"],["nzValue","UNKNOWN","nzLabel","Unknown"],["nzValue","SOMATIC","nzLabel","Somatic"],["nzValue","RARE_GERMLINE","nzLabel","Rare Germline"],["nzValue","COMMON_GERMLINE","nzLabel","Common Germline"],["nzValue","UNKNOWN","nzLabel","Unkown"],["nzValue","GERMLINE_OR_SOMATIC","nzLabel","Germline or Somatic"],["nzLabel","1",3,"nzValue"],["nzLabel","2",3,"nzValue"],["nzLabel","3",3,"nzValue"],["nzLabel","4",3,"nzValue"],["nzLabel","5",3,"nzValue"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],["nzWidth","2%"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Entrez Gene Symbol",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Variant Name",3,"nzColumnKey","nzSortFn"],[3,"evidence"],[4,"ngIf","ngIfElse"],["diseaseElse",""],["drugsElse",""],["nz-icon","","nzType","align-left","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["nz-icon","","nz-tooltip","","nzTooltipPlacement","top",3,"nzType","nzTooltipTitle"],["nz-icon","","nzType","star","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top"],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[3,"gene"],[3,"variant"],[3,"disease","truncateLongName"],[3,"drug","truncateLongName"],["colspan","20"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:evidence"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(t,i){if(1&t&&(n.TgZ(0,"nz-card",0),n.TgZ(1,"nz-table",1,2),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",3),n.NdJ("nzSortOrderChange",function(a){return i.onSortChanged(a)}),n.TgZ(6,"tr"),n.YNc(7,J,1,0,"th",4),n.TgZ(8,"th",5),n._uU(9," EID "),n.qZA(),n.YNc(10,K,2,2,"th",6),n.YNc(11,B,2,2,"th",7),n.TgZ(12,"th",8),n._uU(13," Diseases "),n.qZA(),n.TgZ(14,"th",8),n._uU(15," Drugs "),n.qZA(),n.TgZ(16,"th",9),n._uU(17," Description "),n.qZA(),n.TgZ(18,"th",10),n._uU(19," EL "),n.qZA(),n.TgZ(20,"th",11),n._uU(21," ET "),n.qZA(),n.TgZ(22,"th",12),n._uU(23," ED "),n.qZA(),n.TgZ(24,"th",13),n._uU(25," CS "),n.qZA(),n.TgZ(26,"th",14),n._uU(27," VO "),n.qZA(),n.TgZ(28,"th",15),n._uU(29," R "),n.qZA(),n.qZA(),n.TgZ(30,"tr"),n.YNc(31,F,1,0,"th",16),n.TgZ(32,"th"),n.TgZ(33,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(a){return i.eidInput=a}),n.qZA(),n.qZA(),n.YNc(34,Q,2,2,"th",16),n.YNc(35,V,2,2,"th",16),n.TgZ(36,"th"),n.TgZ(37,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(a){return i.diseaseNameInput=a}),n.qZA(),n.qZA(),n.TgZ(38,"th"),n.TgZ(39,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(a){return i.drugNameInput=a}),n.qZA(),n.qZA(),n.TgZ(40,"th",18),n.TgZ(41,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(a){return i.descriptionInput=a}),n.qZA(),n.qZA(),n.TgZ(42,"th",18),n.TgZ(43,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.evidenceLevelInput=a}),n._UZ(44,"nz-option",20),n._UZ(45,"nz-option",21),n._UZ(46,"nz-option",22),n._UZ(47,"nz-option",23),n._UZ(48,"nz-option",24),n.qZA(),n.qZA(),n.TgZ(49,"th",18),n.TgZ(50,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.evidenceTypeInput=a}),n._UZ(51,"nz-option",25),n._UZ(52,"nz-option",26),n._UZ(53,"nz-option",27),n._UZ(54,"nz-option",28),n._UZ(55,"nz-option",29),n._UZ(56,"nz-option",30),n.qZA(),n.qZA(),n.TgZ(57,"th",18),n.TgZ(58,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.evidenceDirectionInput=a}),n._UZ(59,"nz-option",31),n._UZ(60,"nz-option",32),n._UZ(61,"nz-option",33),n.qZA(),n.qZA(),n.TgZ(62,"th",34),n.TgZ(63,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.clinicalSignificanceInput=a}),n.TgZ(64,"nz-option-group",35),n._UZ(65,"nz-option",36),n._UZ(66,"nz-option",37),n._UZ(67,"nz-option",38),n._UZ(68,"nz-option",39),n._UZ(69,"nz-option",33),n.qZA(),n.TgZ(70,"nz-option-group",40),n._UZ(71,"nz-option",41),n._UZ(72,"nz-option",42),n._UZ(73,"nz-option",33),n.qZA(),n.TgZ(74,"nz-option-group",43),n._UZ(75,"nz-option",44),n._UZ(76,"nz-option",45),n.qZA(),n.TgZ(77,"nz-option-group",46),n._UZ(78,"nz-option",33),n.qZA(),n.TgZ(79,"nz-option-group",47),n._UZ(80,"nz-option",33),n.qZA(),n.TgZ(81,"nz-option-group",48),n._UZ(82,"nz-option",49),n._uU(83,", "),n._UZ(84,"nz-option",50),n._uU(85,", "),n._UZ(86,"nz-option",51),n._uU(87,", "),n._UZ(88,"nz-option",52),n._uU(89,", "),n._UZ(90,"nz-option",53),n._uU(91,", "),n._UZ(92,"nz-option",54),n.qZA(),n.qZA(),n.qZA(),n.TgZ(93,"th",34),n.TgZ(94,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.variantOriginInput=a}),n._UZ(95,"nz-option",55),n._UZ(96,"nz-option",56),n._UZ(97,"nz-option",57),n._UZ(98,"nz-option",58),n._UZ(99,"nz-option",33),n._UZ(100,"nz-option",59),n.qZA(),n.qZA(),n.TgZ(101,"th",34),n.TgZ(102,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.evidenceRatingInput=a}),n._UZ(103,"nz-option",60),n._UZ(104,"nz-option",61),n._UZ(105,"nz-option",62),n._UZ(106,"nz-option",63),n._UZ(107,"nz-option",64),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(108,"tbody"),n.YNc(109,nn,37,39,"tr",65),n.YNc(110,on,2,1,"ng-container",66),n.qZA(),n.qZA(),n.qZA(),n.YNc(111,sn,7,6,"ng-template",null,67,n.W1O)),2&t){const _=n.MAs(2),a=n.MAs(112);n.Q6J("nzTitle",a),n.xp6(1),n.Q6J("nzData",n.lcZ(3,60,i.evidence$))("nzLoading",n.lcZ(4,62,i.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("ngIf","select"==i.mode),n.xp6(1),n.Q6J("nzColumnKey",i.sortColumns.Id)("nzSortFn",!0),n.xp6(2),n.Q6J("ngIf",i.displayGeneAndVariant),n.xp6(1),n.Q6J("ngIf",i.displayGeneAndVariant),n.xp6(1),n.Q6J("nzColumnKey",i.sortColumns.DiseaseName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.DrugName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.Description)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.EvidenceLevel)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.EvidenceType)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.EvidenceDirection)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.ClinicalSignificance)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.VariantOrigin)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.EvidenceRating)("nzSortDirections",n.DdM(64,pn))("nzSortFn",!0),n.xp6(3),n.Q6J("ngIf","select"==i.mode),n.xp6(2),n.Q6J("inputModel",i.eidInput)("onInputChanged",i.textInputCallback),n.xp6(1),n.Q6J("ngIf",i.displayGeneAndVariant),n.xp6(1),n.Q6J("ngIf",i.displayGeneAndVariant),n.xp6(2),n.Q6J("inputModel",i.diseaseNameInput)("onInputChanged",i.textInputCallback),n.xp6(2),n.Q6J("inputModel",i.drugNameInput)("onInputChanged",i.textInputCallback),n.xp6(2),n.Q6J("inputModel",i.descriptionInput)("onInputChanged",i.textInputCallback),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.evidenceLevelInput),n.xp6(7),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.evidenceTypeInput),n.xp6(8),n.Q6J("nzDropdownMatchSelectWidth",!1)("nzDropdownMatchSelectWidth",!1)("ngModel",i.evidenceDirectionInput),n.xp6(5),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.clinicalSignificanceInput),n.xp6(31),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.variantOriginInput),n.xp6(8),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.evidenceRatingInput),n.xp6(1),n.Q6J("nzValue",1),n.xp6(1),n.Q6J("nzValue",2),n.xp6(1),n.Q6J("nzValue",3),n.xp6(1),n.Q6J("nzValue",4),n.xp6(1),n.Q6J("nzValue",5),n.xp6(2),n.Q6J("ngForOf",_.data),n.xp6(1),n.Q6J("ngrxLet",i.pageInfo$)}},directives:[T.bd,d.N8,d.Om,d.$Z,C.O5,d.Uo,d._C,d.qD,c.SY,d.UX,M.p,f.Vq,O.JJ,O.On,f.Ip,f.Yy,d.p0,C.sg,D.Ie,U.O,L.H,Z.I,y.n,x.$,u.u,A.w,I.Ls,S.eJ,N.ix,b.dQ,C.tP,R.ZU],pipes:[S.fM,C.rS,W.D],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),o})()},767:(P,m,e)=>{e.d(m,{Q:()=>A});var n=e(9808),v=e(1132),z=e(4546),h=e(1047),s=e(647),p=e(3618),g=e(4182),E=e(6949),r=e(7946),T=e(3309),d=e(404),C=e(4867),c=e(3580),M=e(8018),f=e(209),O=e(8054),D=e(4125),U=e(9444),L=e(6042),Z=e(897),y=e(6114),x=e(7484),u=e(5e3);let A=(()=>{class I{}return I.\u0275fac=function(N){return new(N||I)},I.\u0275mod=u.oAB({type:I}),I.\u0275inj=u.cJS({imports:[[n.ez,g.u5,E.WG,L.sL,v.HQ,z.U5,h.o7,s.PV,p.ZJ,d.cg,O.LV,y.Wr,x.vh,U.s,T.U,C.Q,c.Q,M.e,f.i,Z.$,r.x,D.k]]}),I})()},209:(P,m,e)=>{e.d(m,{i:()=>x});var n=e(9808),v=e(325),z=e(8481),h=e(3610),s=e(647),p=e(7484),g=e(3309),E=e(4867),r=e(1894),T=e(3098),d=e(8018),C=e(3580),c=e(6286),M=e(6949),f=e(8144),O=e(9444),D=e(9779),U=e(592),L=e(3618),Z=e(5e3);let y=(()=>{class u{}return u.\u0275fac=function(I){return new(I||u)},u.\u0275mod=Z.oAB({type:u}),u.\u0275inj=Z.cJS({imports:[[n.ez,v.Bz,M.WG,s.PV,p.vh,r.Jb,T.q6,z.X,f.zf,L.ZJ,O.s,d.e,C.Q,g.U,E.Q,c.y,D.s,U.x]]}),u})(),x=(()=>{class u{}return u.\u0275fac=function(I){return new(I||u)},u.\u0275mod=Z.oAB({type:u}),u.\u0275inj=Z.cJS({imports:[[n.ez,v.Bz,z.X,h.$6,s.PV,y,O.s]]}),u})()},6286:(P,m,e)=>{e.d(m,{y:()=>C});var n=e(9808),v=e(325),z=e(8481),h=e(3610),s=e(647),p=e(6949),g=e(7484),E=e(3630),r=e(3098),T=e(5e3);let d=(()=>{class c{}return c.\u0275fac=function(f){return new(f||c)},c.\u0275mod=T.oAB({type:c}),c.\u0275inj=T.cJS({imports:[[n.ez,p.WG,s.PV,g.vh,E.X,r.q6]]}),c})(),C=(()=>{class c{}return c.\u0275fac=function(f){return new(f||c)},c.\u0275mod=T.oAB({type:c}),c.\u0275inj=T.cJS({imports:[[n.ez,v.Bz,z.X,h.$6,s.PV,d]]}),c})()},2166:(P,m,e)=>{e.d(m,{p:()=>E});var n=e(5e3),v=e(1047),z=e(4182),h=e(9808),s=e(647);function p(r,T){if(1&r){const d=n.EpF();n.TgZ(0,"i",4),n.NdJ("click",function(){n.CHM(d);const c=n.oxw(2);return c.inputModel=void 0,c.onModelUpdated()}),n.qZA()}}function g(r,T){if(1&r&&n.YNc(0,p,1,0,"i",3),2&r){const d=n.oxw();n.Q6J("ngIf",d.inputModel)}}let E=(()=>{class r{constructor(){this.inputModelChange=new n.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=n.Xpm({type:r,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(d,C){if(1&d&&(n.TgZ(0,"nz-input-group",0),n.TgZ(1,"input",1),n.NdJ("ngModelChange",function(M){return C.inputModel=M})("ngModelChange",function(){return C.onModelUpdated()}),n.qZA(),n.qZA(),n.YNc(2,g,1,1,"ng-template",null,2,n.W1O)),2&d){const c=n.MAs(3);n.Q6J("nzSuffix",c),n.xp6(1),n.Q6J("placeholder",C.placeholderText?C.placeholderText:"")("ngModel",C.inputModel)}},directives:[v.gB,v.ke,v.Zp,z.Fj,z.JJ,z.On,h.O5,s.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),r})()},4125:(P,m,e)=>{e.d(m,{k:()=>p});var n=e(9808),v=e(1047),z=e(4182),h=e(647),s=e(5e3);let p=(()=>{class g{}return g.\u0275fac=function(r){return new(r||g)},g.\u0275mod=s.oAB({type:g}),g.\u0275inj=s.cJS({imports:[[n.ez,z.u5,v.o7,h.PV]]}),g})()},592:(P,m,e)=>{e.d(m,{x:()=>s});var n=e(9808),v=e(8481),z=e(647),h=e(5e3);let s=(()=>{class p{}return p.\u0275fac=function(E){return new(E||p)},p.\u0275mod=h.oAB({type:p}),p.\u0275inj=h.cJS({imports:[[n.ez,v.X,z.PV]]}),p})()}}]); \ No newline at end of file diff --git a/server/public/305.f91158a332d4d0d4.js b/server/public/305.f91158a332d4d0d4.js new file mode 100644 index 000000000..da244e2d0 --- /dev/null +++ b/server/public/305.f91158a332d4d0d4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[305],{8965:(P,m,e)=>{e.d(m,{a:()=>un});var n=e(5e3),v=e(712),z=e(3154),h=e(8929),s=e(373),p=e(1059),u=e(4850),E=e(2986),r=e(13),T=e(7484),d=e(1132),C=e(9808),c=e(404),M=e(2166),f=e(8054),O=e(4182),D=e(6114),U=e(9001),L=e(3193),Z=e(8664),y=e(4022),x=e(6715),g=e(7469),A=e(2683),I=e(647),S=e(6949),N=e(6042),b=e(2643),R=e(3618),W=e(4110);function J(o,l){1&o&&n._UZ(0,"th",68)}function K(o,l){if(1&o&&(n.TgZ(0,"th",69),n._uU(1," Gene "),n.qZA()),2&o){const t=n.oxw();n.Q6J("nzColumnKey",t.sortColumns.GeneSymbol)("nzSortFn",!0)}}function B(o,l){if(1&o&&(n.TgZ(0,"th",70),n._uU(1," Variant "),n.qZA()),2&o){const t=n.oxw();n.Q6J("nzColumnKey",t.sortColumns.VariantName)("nzSortFn",!0)}}function F(o,l){1&o&&n._UZ(0,"th")}function Q(o,l){if(1&o){const t=n.EpF();n.TgZ(0,"th"),n.TgZ(1,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(_){return n.CHM(t),n.oxw().geneSymbolInput=_}),n.qZA(),n.qZA()}if(2&o){const t=n.oxw();n.xp6(1),n.Q6J("inputModel",t.geneSymbolInput)("onInputChanged",t.textInputCallback)}}function V(o,l){if(1&o){const t=n.EpF();n.TgZ(0,"th"),n.TgZ(1,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(_){return n.CHM(t),n.oxw().variantNameInput=_}),n.qZA(),n.qZA()}if(2&o){const t=n.oxw();n.xp6(1),n.Q6J("inputModel",t.variantNameInput)("onInputChanged",t.textInputCallback)}}function Y(o,l){if(1&o){const t=n.EpF();n.TgZ(0,"td"),n.TgZ(1,"label",78),n.NdJ("nzCheckedChange",function(_){n.CHM(t);const a=n.oxw().$implicit;return n.oxw().onEvidenceCheckboxClicked(_,a)}),n.qZA(),n.qZA()}if(2&o){const t=n.oxw().$implicit,i=n.oxw();n.xp6(1),n.Q6J("nzChecked",i.selectedEvidenceIds.has(t.id))}}function G(o,l){if(1&o&&(n.TgZ(0,"td"),n._UZ(1,"cvc-gene-tag",79),n.qZA()),2&o){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("gene",t.gene)}}function j(o,l){if(1&o&&(n.TgZ(0,"td"),n._UZ(1,"cvc-variant-tag",80),n.qZA()),2&o){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("variant",t.variant)}}function $(o,l){if(1&o&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",81),n.BQk()),2&o){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("disease",t.disease)("truncateLongName",!0)}}function H(o,l){1&o&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function X(o,l){if(1&o&&(n.TgZ(0,"span"),n._UZ(1,"cvc-drug-tag",82),n.qZA()),2&o){const t=l.$implicit;n.xp6(1),n.Q6J("drug",t)("truncateLongName",!0)}}function q(o,l){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"titlecase"),n.qZA()),2&o){const t=n.oxw(2).$implicit;n.xp6(1),n.hij(" (",n.lcZ(2,1,t.drugInteractionType),") ")}}function w(o,l){if(1&o&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,X,2,2,"span",65),n.qZA(),n.YNc(3,q,3,3,"span",16),n.qZA()),2&o){const t=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",t.drugs),n.xp6(1),n.Q6J("ngIf",t.drugs.length>1)}}function k(o,l){1&o&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function nn(o,l){if(1&o&&(n.TgZ(0,"tr"),n.YNc(1,Y,2,1,"td",16),n.TgZ(2,"td"),n._UZ(3,"cvc-evidence-tag",71),n.qZA(),n.YNc(4,G,2,1,"td",16),n.YNc(5,j,2,1,"td",16),n.TgZ(6,"td"),n.YNc(7,$,2,2,"ng-container",72),n.YNc(8,H,2,0,"ng-template",null,73,n.W1O),n.qZA(),n.TgZ(10,"td"),n.YNc(11,w,4,2,"div",72),n.YNc(12,k,2,0,"ng-template",null,74,n.W1O),n.qZA(),n.TgZ(14,"td",18),n._UZ(15,"i",75),n.qZA(),n.TgZ(16,"td",18),n._uU(17),n.qZA(),n.TgZ(18,"td",18),n._UZ(19,"i",76),n.ALo(20,"evidenceEnumDisplay"),n.ALo(21,"evidenceEnumDisplay"),n.qZA(),n.TgZ(22,"td",18),n._UZ(23,"i",76),n.ALo(24,"evidenceEnumDisplay"),n.ALo(25,"evidenceEnumDisplay"),n.qZA(),n.TgZ(26,"td",18),n._UZ(27,"i",76),n.ALo(28,"evidenceEnumDisplay"),n.ALo(29,"evidenceEnumDisplay"),n.qZA(),n.TgZ(30,"td",18),n._UZ(31,"i",76),n.ALo(32,"evidenceEnumDisplay"),n.ALo(33,"evidenceEnumDisplay"),n.qZA(),n.TgZ(34,"td",18),n._uU(35),n._UZ(36,"i",77),n.qZA(),n.qZA()),2&o){const t=l.$implicit,i=n.MAs(9),_=n.MAs(13),a=n.oxw();n.xp6(1),n.Q6J("ngIf","select"==a.mode),n.xp6(2),n.Q6J("evidence",t),n.xp6(1),n.Q6J("ngIf",a.displayGeneAndVariant),n.xp6(1),n.Q6J("ngIf",a.displayGeneAndVariant),n.xp6(2),n.Q6J("ngIf",t.disease)("ngIfElse",i),n.xp6(4),n.Q6J("ngIf",t.drugs.length>0)("ngIfElse",_),n.xp6(4),n.Q6J("nzTooltipTitle",t.description),n.xp6(2),n.hij(" ",t.evidenceLevel," "),n.xp6(2),n.Q6J("nzType",n.xi3(20,19,t.evidenceType,"icon-name"))("nzTooltipTitle",n.lcZ(21,22,t.evidenceType)),n.xp6(4),n.Q6J("nzType",n.xi3(24,24,t.evidenceDirection,"icon-name"))("nzTooltipTitle",n.lcZ(25,27,t.evidenceDirection)),n.xp6(4),n.Q6J("nzType",n.xi3(28,29,t.clinicalSignificance,"icon-name"))("nzTooltipTitle",n.lcZ(29,32,t.clinicalSignificance)),n.xp6(4),n.Q6J("nzType",n.xi3(32,34,t.variantOrigin,"icon-name"))("nzTooltipTitle",n.lcZ(33,37,t.variantOrigin)),n.xp6(4),n.hij(" ",t.evidenceRating," ")}}function en(o,l){if(1&o){const t=n.EpF();n.TgZ(0,"button",85),n.NdJ("click",function(){n.CHM(t);const _=n.oxw(2).ngrxLet;return n.oxw().loadMore(_.endCursor)}),n._uU(1),n.qZA()}if(2&o){const t=n.oxw(3);n.xp6(1),n.hij("Load ",t.fetchMorePageSize," More")}}function tn(o,l){if(1&o&&(n.TgZ(0,"tr"),n.TgZ(1,"td",83),n.YNc(2,en,2,1,"button",84),n.qZA(),n.qZA()),2&o){const t=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",t.hasNextPage)}}function on(o,l){if(1&o&&(n.ynx(0),n.YNc(1,tn,3,1,"tr",16),n.BQk()),2&o){const t=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",t.hasNextPage)}}function an(o,l){}function ln(o,l){if(1&o&&(n.ynx(0),n.YNc(1,an,0,0,"ng-template",89),n.BQk()),2&o){const t=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",t.cvcTitleTemplate)}}function _n(o,l){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.cvcTitle," ")}}function cn(o,l){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const t=n.oxw().ngIf;n.xp6(1),n.hij(" of ",t," filtered")}}function dn(o,l){if(1&o&&(n.TgZ(0,"span",90),n._uU(1),n.YNc(2,cn,2,1,"span",16),n._uU(3,") "),n.qZA()),2&o){const t=l.ngIf,i=n.oxw(2);n.xp6(1),n.AsE(" (",i.totalCount," total, showing ",i.visibleCount,""),n.xp6(1),n.Q6J("ngIf",i.totalCount&&t{class o{constructor(t){this.gql=t,this.initialPageSize=25,this.mode="normal",this.displayGeneAndVariant=!0,this.selectedEids=new n.vpe,this.initialSelectedEids=[],this.initialTotalCount=new n.vpe,this.debouncedQuery=new h.xQ,this.selectedEvidenceIds=new Map,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.tableView=!0,this.fetchMorePageSize=25,this.sortColumns=v.Cp0}ngOnInit(){this.initialUserFilters&&(this.eidInput=this.initialUserFilters.eidInput,this.diseaseNameInput=this.initialUserFilters.diseaseNameInput,this.drugNameInput=this.initialUserFilters.drugNameInput,this.descriptionInput=this.initialUserFilters.descriptionInput,this.evidenceLevelInput=this.initialUserFilters.evidenceLevelInput,this.evidenceTypeInput=this.initialUserFilters.evidenceTypeInput,this.evidenceDirectionInput=this.initialUserFilters.evidenceDirectionInput,this.clinicalSignificanceInput=this.initialUserFilters.clinicalSignificanceInput,this.variantOriginInput=this.initialUserFilters.variantOriginInput,this.evidenceRatingInput=this.initialUserFilters.evidenceRatingInput,this.variantNameInput=this.initialUserFilters.variantNameInput,this.geneSymbolInput=this.initialUserFilters.geneSymbolInput),this.queryRef=this.gql.watch({first:this.initialPageSize,variantId:this.variantId,assertionId:this.assertionId,organizationId:this.organizationId,userId:this.userId,phenotypeId:this.phenotypeId,diseaseId:this.diseaseId,drugId:this.drugId,sourceId:this.sourceId,clinicalTrialId:this.clinicalTrialId,cardView:!this.tableView,status:this.status,diseaseName:this.diseaseNameInput,drugName:this.drugNameInput,description:this.descriptionInput,evidenceLevel:this.evidenceLevelInput?this.evidenceLevelInput:void 0,evidenceType:this.evidenceTypeInput?this.evidenceTypeInput:void 0,evidenceDirection:this.evidenceDirectionInput?this.evidenceDirectionInput:void 0,clinicalSignificance:this.clinicalSignificanceInput?this.clinicalSignificanceInput:void 0,variantOrigin:this.variantOriginInput?this.variantOriginInput:void 0,rating:this.evidenceRatingInput?this.evidenceRatingInput:void 0,geneSymbol:this.geneSymbolInput?this.geneSymbolInput:void 0,variantName:this.variantNameInput?this.variantNameInput:void 0}),this.initialSelectedEids.forEach(i=>this.selectedEvidenceIds.set(i.id,i));let t=this.queryRef.valueChanges;this.isLoading$=t.pipe((0,s.j)("loading"),(0,p.O)(!0)),this.evidence$=t.pipe((0,s.j)("data","evidenceItems","edges"),(0,u.U)(i=>i.map(_=>_.node))),this.filteredCount$=t.pipe((0,s.j)("data","evidenceItems","totalCount")),this.filteredCount$.pipe((0,E.q)(1)).subscribe(i=>{this.totalCount=i,this.initialTotalCount.emit(i)}),this.filteredCount$.subscribe(i=>{ii&&(this.visibleCount=i))}),this.pageInfo$=t.pipe((0,s.j)("data","evidenceItems","pageInfo")),this.debouncedQuery.pipe((0,r.b)(500)).subscribe(i=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}loadMore(t){this.queryRef.fetchMore({variables:{first:this.fetchMorePageSize,after:t}}),this.loadedPages+=1}refresh(){var t;this.loadedPages=1,t=this.eidInput?this.eidInput.toUpperCase().startsWith("EID")?+this.eidInput.toUpperCase().replace("EID",""):+this.eidInput:void 0,this.queryRef.refetch({id:t,diseaseName:this.diseaseNameInput,drugName:this.drugNameInput,description:this.descriptionInput,evidenceLevel:this.evidenceLevelInput?this.evidenceLevelInput:void 0,evidenceType:this.evidenceTypeInput?this.evidenceTypeInput:void 0,evidenceDirection:this.evidenceDirectionInput?this.evidenceDirectionInput:void 0,clinicalSignificance:this.clinicalSignificanceInput?this.clinicalSignificanceInput:void 0,variantOrigin:this.variantOriginInput?this.variantOriginInput:void 0,rating:this.evidenceRatingInput?this.evidenceRatingInput:void 0,geneSymbol:this.geneSymbolInput?this.geneSymbolInput:void 0,variantName:this.variantNameInput?this.variantNameInput:void 0,cardView:!this.tableView})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(t){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,z._)(t),cardView:!this.tableView})}onEvidenceCheckboxClicked(t,i){t?this.selectedEvidenceIds.set(i.id,i):this.selectedEvidenceIds.delete(i.id),this.selectedEids.emit(Array.from(this.selectedEvidenceIds.values()))}ngOnDestroy(){this.debouncedQuery.unsubscribe()}}return o.\u0275fac=function(t){return new(t||o)(n.Y36(v.eY8))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-evidence-table"]],inputs:{variantId:"variantId",assertionId:"assertionId",organizationId:"organizationId",userId:"userId",phenotypeId:"phenotypeId",diseaseId:"diseaseId",drugId:"drugId",sourceId:"sourceId",clinicalTrialId:"clinicalTrialId",status:"status",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",mode:"mode",displayGeneAndVariant:"displayGeneAndVariant",initialSelectedEids:"initialSelectedEids",initialUserFilters:"initialUserFilters"},outputs:{selectedEids:"selectedEids",initialTotalCount:"initialTotalCount"},decls:113,vars:65,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["evidenceTable",""],[3,"nzSortOrderChange"],["nzWidth","2%",4,"ngIf"],["nzWidth","5%","nz-tooltip","","nzTooltipTitle","Evidence ID",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Entrez Gene Symbol",3,"nzColumnKey","nzSortFn",4,"ngIf"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Variant Name",3,"nzColumnKey","nzSortFn",4,"ngIf"],["nzWidth","20%",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Evidence Level",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Evidence Type",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Evidence Direction",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Clinical Significance",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Variant Origin",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Rating",3,"nzColumnKey","nzSortDirections","nzSortFn"],[4,"ngIf"],[3,"inputModel","onInputChanged","inputModelChange"],["nzAlign","center"],["nzAllowClear","","nzPlaceHolder","All",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","A","nzLabel","A"],["nzValue","B","nzLabel","B"],["nzValue","C","nzLabel","C"],["nzValue","D","nzLabel","D"],["nzValue","E","nzLabel","E"],["nzValue","PREDICTIVE","nzLabel","Predictive"],["nzValue","PROGNOSTIC","nzLabel","Prognostic"],["nzValue","DIAGNOSTIC","nzLabel","Diagnostic"],["nzValue","PREDISPOSING","nzLabel","Predisposing"],["nzValue","ONCOGENIC","nzLabel","Oncogenic"],["nzValue","FUNCTIONAL","nzLabel","Functional"],["nzValue","SUPPORTS","nzLabel","Supports"],["nzValue","DOES_NOT_SUPPORT","nzLabel","Does not Support"],["nzValue","NA","nzLabel","N/A"],["nzWidth","5%","nzAlign","center"],["nzLabel","Predictive"],["nzValue","SENSITIVITYRESPONSE","nzLabel","Sensitivity/Response"],["nzValue","RESISTANCE","nzLabel","Resistance"],["nzValue","ADVERSE_RESPONSE","nzLabel","Adverse Response"],["nzValue","REDUCED SENSITIVITY","nzLabel","Reduced Sensitivity"],["nzLabel","Prognostic"],["nzValue","BETTER_OUTCOME","nzLabel","Better Outcome"],["nzValue","POOR_OUTCOME","nzLabel","Poor Outcome"],["nzLabel","Diagnostic"],["nzValue","POSITIVE","nzLabel","Positive"],["nzValue","NEGATIVE","nzLabel","Negative"],["nzLabel","Predisposing"],["nzLabel","Oncogenic"],["nzLabel","Functional"],["nzValue","GAIN_OF_FUNCTION","nzLabel","Gain of Function"],["nzValue","LOSS_OF_FUNCTION","nzLabel","Loss of Function"],["nzValue","UNALTERED_FUNCTION","nzLabel","Unaltered Function"],["nzValue","NEOMORPHIC","nzLabel","Neomorphic"],["nzValue","DOMINANT_NEGATIVE","nzLabel","Dominant Negative"],["nzValue","UNKNOWN","nzLabel","Unknown"],["nzValue","SOMATIC","nzLabel","Somatic"],["nzValue","RARE_GERMLINE","nzLabel","Rare Germline"],["nzValue","COMMON_GERMLINE","nzLabel","Common Germline"],["nzValue","UNKNOWN","nzLabel","Unkown"],["nzValue","GERMLINE_OR_SOMATIC","nzLabel","Germline or Somatic"],["nzLabel","1",3,"nzValue"],["nzLabel","2",3,"nzValue"],["nzLabel","3",3,"nzValue"],["nzLabel","4",3,"nzValue"],["nzLabel","5",3,"nzValue"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],["nzWidth","2%"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Entrez Gene Symbol",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Variant Name",3,"nzColumnKey","nzSortFn"],[3,"evidence"],[4,"ngIf","ngIfElse"],["diseaseElse",""],["drugsElse",""],["nz-icon","","nzType","align-left","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["nz-icon","","nz-tooltip","","nzTooltipPlacement","top",3,"nzType","nzTooltipTitle"],["nz-icon","","nzType","star","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top"],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[3,"gene"],[3,"variant"],[3,"disease","truncateLongName"],[3,"drug","truncateLongName"],["colspan","20"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:evidence"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(t,i){if(1&t&&(n.TgZ(0,"nz-card",0),n.TgZ(1,"nz-table",1,2),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",3),n.NdJ("nzSortOrderChange",function(a){return i.onSortChanged(a)}),n.TgZ(6,"tr"),n.YNc(7,J,1,0,"th",4),n.TgZ(8,"th",5),n._uU(9," EID "),n.qZA(),n.YNc(10,K,2,2,"th",6),n.YNc(11,B,2,2,"th",7),n.TgZ(12,"th",8),n._uU(13," Diseases "),n.qZA(),n.TgZ(14,"th",8),n._uU(15," Drugs "),n.qZA(),n.TgZ(16,"th",9),n._uU(17," Description "),n.qZA(),n.TgZ(18,"th",10),n._uU(19," EL "),n.qZA(),n.TgZ(20,"th",11),n._uU(21," ET "),n.qZA(),n.TgZ(22,"th",12),n._uU(23," ED "),n.qZA(),n.TgZ(24,"th",13),n._uU(25," CS "),n.qZA(),n.TgZ(26,"th",14),n._uU(27," VO "),n.qZA(),n.TgZ(28,"th",15),n._uU(29," R "),n.qZA(),n.qZA(),n.TgZ(30,"tr"),n.YNc(31,F,1,0,"th",16),n.TgZ(32,"th"),n.TgZ(33,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(a){return i.eidInput=a}),n.qZA(),n.qZA(),n.YNc(34,Q,2,2,"th",16),n.YNc(35,V,2,2,"th",16),n.TgZ(36,"th"),n.TgZ(37,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(a){return i.diseaseNameInput=a}),n.qZA(),n.qZA(),n.TgZ(38,"th"),n.TgZ(39,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(a){return i.drugNameInput=a}),n.qZA(),n.qZA(),n.TgZ(40,"th",18),n.TgZ(41,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(a){return i.descriptionInput=a}),n.qZA(),n.qZA(),n.TgZ(42,"th",18),n.TgZ(43,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.evidenceLevelInput=a}),n._UZ(44,"nz-option",20),n._UZ(45,"nz-option",21),n._UZ(46,"nz-option",22),n._UZ(47,"nz-option",23),n._UZ(48,"nz-option",24),n.qZA(),n.qZA(),n.TgZ(49,"th",18),n.TgZ(50,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.evidenceTypeInput=a}),n._UZ(51,"nz-option",25),n._UZ(52,"nz-option",26),n._UZ(53,"nz-option",27),n._UZ(54,"nz-option",28),n._UZ(55,"nz-option",29),n._UZ(56,"nz-option",30),n.qZA(),n.qZA(),n.TgZ(57,"th",18),n.TgZ(58,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.evidenceDirectionInput=a}),n._UZ(59,"nz-option",31),n._UZ(60,"nz-option",32),n._UZ(61,"nz-option",33),n.qZA(),n.qZA(),n.TgZ(62,"th",34),n.TgZ(63,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.clinicalSignificanceInput=a}),n.TgZ(64,"nz-option-group",35),n._UZ(65,"nz-option",36),n._UZ(66,"nz-option",37),n._UZ(67,"nz-option",38),n._UZ(68,"nz-option",39),n._UZ(69,"nz-option",33),n.qZA(),n.TgZ(70,"nz-option-group",40),n._UZ(71,"nz-option",41),n._UZ(72,"nz-option",42),n._UZ(73,"nz-option",33),n.qZA(),n.TgZ(74,"nz-option-group",43),n._UZ(75,"nz-option",44),n._UZ(76,"nz-option",45),n.qZA(),n.TgZ(77,"nz-option-group",46),n._UZ(78,"nz-option",33),n.qZA(),n.TgZ(79,"nz-option-group",47),n._UZ(80,"nz-option",33),n.qZA(),n.TgZ(81,"nz-option-group",48),n._UZ(82,"nz-option",49),n._uU(83,", "),n._UZ(84,"nz-option",50),n._uU(85,", "),n._UZ(86,"nz-option",51),n._uU(87,", "),n._UZ(88,"nz-option",52),n._uU(89,", "),n._UZ(90,"nz-option",53),n._uU(91,", "),n._UZ(92,"nz-option",54),n.qZA(),n.qZA(),n.qZA(),n.TgZ(93,"th",34),n.TgZ(94,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.variantOriginInput=a}),n._UZ(95,"nz-option",55),n._UZ(96,"nz-option",56),n._UZ(97,"nz-option",57),n._UZ(98,"nz-option",58),n._UZ(99,"nz-option",33),n._UZ(100,"nz-option",59),n.qZA(),n.qZA(),n.TgZ(101,"th",34),n.TgZ(102,"nz-select",19),n.NdJ("ngModelChange",function(){return i.onModelChanged()})("ngModelChange",function(a){return i.evidenceRatingInput=a}),n._UZ(103,"nz-option",60),n._UZ(104,"nz-option",61),n._UZ(105,"nz-option",62),n._UZ(106,"nz-option",63),n._UZ(107,"nz-option",64),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(108,"tbody"),n.YNc(109,nn,37,39,"tr",65),n.YNc(110,on,2,1,"ng-container",66),n.qZA(),n.qZA(),n.qZA(),n.YNc(111,sn,7,6,"ng-template",null,67,n.W1O)),2&t){const _=n.MAs(2),a=n.MAs(112);n.Q6J("nzTitle",a),n.xp6(1),n.Q6J("nzData",n.lcZ(3,60,i.evidence$))("nzLoading",n.lcZ(4,62,i.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("ngIf","select"==i.mode),n.xp6(1),n.Q6J("nzColumnKey",i.sortColumns.Id)("nzSortFn",!0),n.xp6(2),n.Q6J("ngIf",i.displayGeneAndVariant),n.xp6(1),n.Q6J("ngIf",i.displayGeneAndVariant),n.xp6(1),n.Q6J("nzColumnKey",i.sortColumns.DiseaseName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.DrugName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.Description)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.EvidenceLevel)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.EvidenceType)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.EvidenceDirection)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.ClinicalSignificance)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.VariantOrigin)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",i.sortColumns.EvidenceRating)("nzSortDirections",n.DdM(64,pn))("nzSortFn",!0),n.xp6(3),n.Q6J("ngIf","select"==i.mode),n.xp6(2),n.Q6J("inputModel",i.eidInput)("onInputChanged",i.textInputCallback),n.xp6(1),n.Q6J("ngIf",i.displayGeneAndVariant),n.xp6(1),n.Q6J("ngIf",i.displayGeneAndVariant),n.xp6(2),n.Q6J("inputModel",i.diseaseNameInput)("onInputChanged",i.textInputCallback),n.xp6(2),n.Q6J("inputModel",i.drugNameInput)("onInputChanged",i.textInputCallback),n.xp6(2),n.Q6J("inputModel",i.descriptionInput)("onInputChanged",i.textInputCallback),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.evidenceLevelInput),n.xp6(7),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.evidenceTypeInput),n.xp6(8),n.Q6J("nzDropdownMatchSelectWidth",!1)("nzDropdownMatchSelectWidth",!1)("ngModel",i.evidenceDirectionInput),n.xp6(5),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.clinicalSignificanceInput),n.xp6(31),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.variantOriginInput),n.xp6(8),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",i.evidenceRatingInput),n.xp6(1),n.Q6J("nzValue",1),n.xp6(1),n.Q6J("nzValue",2),n.xp6(1),n.Q6J("nzValue",3),n.xp6(1),n.Q6J("nzValue",4),n.xp6(1),n.Q6J("nzValue",5),n.xp6(2),n.Q6J("ngForOf",_.data),n.xp6(1),n.Q6J("ngrxLet",i.pageInfo$)}},directives:[T.bd,d.N8,d.Om,d.$Z,C.O5,d.Uo,d._C,d.qD,c.SY,d.UX,M.p,f.Vq,O.JJ,O.On,f.Ip,f.Yy,d.p0,C.sg,D.Ie,U.O,L.H,Z.I,y.n,x.$,g.u,A.w,I.Ls,S.eJ,N.ix,b.dQ,C.tP,R.ZU],pipes:[S.fM,C.rS,W.D],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),o})()},767:(P,m,e)=>{e.d(m,{Q:()=>A});var n=e(9808),v=e(1132),z=e(4546),h=e(1047),s=e(647),p=e(3618),u=e(4182),E=e(6949),r=e(7946),T=e(3309),d=e(404),C=e(4867),c=e(3580),M=e(8018),f=e(209),O=e(8054),D=e(4125),U=e(9444),L=e(6042),Z=e(897),y=e(6114),x=e(7484),g=e(5e3);let A=(()=>{class I{}return I.\u0275fac=function(N){return new(N||I)},I.\u0275mod=g.oAB({type:I}),I.\u0275inj=g.cJS({imports:[[n.ez,u.u5,E.WG,L.sL,v.HQ,z.U5,h.o7,s.PV,p.ZJ,d.cg,O.LV,y.Wr,x.vh,U.s,T.U,C.Q,c.Q,M.e,f.i,Z.$,r.x,D.k]]}),I})()},209:(P,m,e)=>{e.d(m,{i:()=>x});var n=e(9808),v=e(325),z=e(8481),h=e(3610),s=e(647),p=e(7484),u=e(3309),E=e(4867),r=e(1894),T=e(3098),d=e(8018),C=e(3580),c=e(6286),M=e(6949),f=e(8144),O=e(9444),D=e(9779),U=e(592),L=e(3618),Z=e(5e3);let y=(()=>{class g{}return g.\u0275fac=function(I){return new(I||g)},g.\u0275mod=Z.oAB({type:g}),g.\u0275inj=Z.cJS({imports:[[n.ez,v.Bz,M.WG,s.PV,p.vh,r.Jb,T.q6,z.X,f.zf,L.ZJ,O.s,d.e,C.Q,u.U,E.Q,c.y,D.s,U.x]]}),g})(),x=(()=>{class g{}return g.\u0275fac=function(I){return new(I||g)},g.\u0275mod=Z.oAB({type:g}),g.\u0275inj=Z.cJS({imports:[[n.ez,v.Bz,z.X,h.$6,s.PV,y,O.s]]}),g})()},6286:(P,m,e)=>{e.d(m,{y:()=>C});var n=e(9808),v=e(325),z=e(8481),h=e(3610),s=e(647),p=e(6949),u=e(7484),E=e(3630),r=e(3098),T=e(5e3);let d=(()=>{class c{}return c.\u0275fac=function(f){return new(f||c)},c.\u0275mod=T.oAB({type:c}),c.\u0275inj=T.cJS({imports:[[n.ez,p.WG,s.PV,u.vh,E.X,r.q6]]}),c})(),C=(()=>{class c{}return c.\u0275fac=function(f){return new(f||c)},c.\u0275mod=T.oAB({type:c}),c.\u0275inj=T.cJS({imports:[[n.ez,v.Bz,z.X,h.$6,s.PV,d]]}),c})()},2166:(P,m,e)=>{e.d(m,{p:()=>E});var n=e(5e3),v=e(1047),z=e(4182),h=e(9808),s=e(647);function p(r,T){if(1&r){const d=n.EpF();n.TgZ(0,"i",4),n.NdJ("click",function(){n.CHM(d);const c=n.oxw(2);return c.inputModel=void 0,c.onModelUpdated()}),n.qZA()}}function u(r,T){if(1&r&&n.YNc(0,p,1,0,"i",3),2&r){const d=n.oxw();n.Q6J("ngIf",d.inputModel)}}let E=(()=>{class r{constructor(){this.inputModelChange=new n.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=n.Xpm({type:r,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(d,C){if(1&d&&(n.TgZ(0,"nz-input-group",0),n.TgZ(1,"input",1),n.NdJ("ngModelChange",function(M){return C.inputModel=M})("ngModelChange",function(){return C.onModelUpdated()}),n.qZA(),n.qZA(),n.YNc(2,u,1,1,"ng-template",null,2,n.W1O)),2&d){const c=n.MAs(3);n.Q6J("nzSuffix",c),n.xp6(1),n.Q6J("placeholder",C.placeholderText?C.placeholderText:"")("ngModel",C.inputModel)}},directives:[v.gB,v.ke,v.Zp,z.Fj,z.JJ,z.On,h.O5,s.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),r})()},4125:(P,m,e)=>{e.d(m,{k:()=>p});var n=e(9808),v=e(1047),z=e(4182),h=e(647),s=e(5e3);let p=(()=>{class u{}return u.\u0275fac=function(r){return new(r||u)},u.\u0275mod=s.oAB({type:u}),u.\u0275inj=s.cJS({imports:[[n.ez,z.u5,v.o7,h.PV]]}),u})()},592:(P,m,e)=>{e.d(m,{x:()=>s});var n=e(9808),v=e(8481),z=e(647),h=e(5e3);let s=(()=>{class p{}return p.\u0275fac=function(E){return new(E||p)},p.\u0275mod=h.oAB({type:p}),p.\u0275inj=h.cJS({imports:[[n.ez,v.X,z.PV]]}),p})()}}]); \ No newline at end of file diff --git a/server/public/3073.2c9b479fe3dca9f8.js b/server/public/3073.2c9b479fe3dca9f8.js deleted file mode 100644 index bc9f24ee3..000000000 --- a/server/public/3073.2c9b479fe3dca9f8.js +++ /dev/null @@ -1 +0,0 @@ -"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/3074.57e66fe8a4d34a20.js b/server/public/3074.57e66fe8a4d34a20.js deleted file mode 100644 index 3675d2a0a..000000000 --- a/server/public/3074.57e66fe8a4d34a20.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3074],{7893:(T,u,t)=>{t.d(u,{z:()=>l});var n=t(5e3),i=t(1894),o=t(5249),r=t(647),s=t(9808);function a(c,m){1&c&&n._UZ(0,"i",15)}function g(c,m){1&c&&n._UZ(0,"i",16)}function p(c,m){1&c&&n._UZ(0,"i",17)}function O(c,m){1&c&&n._UZ(0,"i",18)}function d(c,m){1&c&&n._UZ(0,"i",19)}let l=(()=>{class c{constructor(){}}return c.\u0275fac=function(v){return new(v||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-stats-card"]],inputs:{stats:"stats",header:"header"},decls:38,vars:32,consts:[["nzGutter","8"],["nzFlex","1"],["nzTitle","Evidence Submitted",3,"nzValue","nzPrefix"],["nzTitle","Evidence Accepted",3,"nzValue","nzPrefix"],["evidenceIcon",""],["nzTitle","Assertions Submitted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Accepted",3,"nzValue","nzPrefix"],["assertionIcon",""],["nzTitle","Revisions Suggested",3,"nzValue","nzPrefix"],["nzTitle","Revisions Applied",3,"nzValue","nzPrefix"],["revisionIcon",""],["nzTitle","Comments",3,"nzValue","nzPrefix"],["commentIcon",""],["nzTitle","Sources Suggested",3,"nzValue","nzPrefix"],["sourceIcon",""],["nz-icon","","nzType","civic:evidence"],["nz-icon","","nzType","civic:assertion"],["nz-icon","","nzType","civic:revision"],["nz-icon","","nzType","civic:comment"],["nz-icon","","nzType","civic:source"]],template:function(v,z){if(1&v&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n._UZ(2,"nz-statistic",2),n.ALo(3,"number"),n.qZA(),n.TgZ(4,"nz-col",1),n._UZ(5,"nz-statistic",3),n.ALo(6,"number"),n.qZA(),n.qZA(),n.TgZ(7,"nz-row"),n.YNc(8,a,1,0,"ng-template",null,4,n.W1O),n.TgZ(10,"nz-col",1),n._UZ(11,"nz-statistic",5),n.ALo(12,"number"),n.qZA(),n.TgZ(13,"nz-col",1),n._UZ(14,"nz-statistic",6),n.ALo(15,"number"),n.qZA(),n.YNc(16,g,1,0,"ng-template",null,7,n.W1O),n.qZA(),n.TgZ(18,"nz-row",0),n.TgZ(19,"nz-col",1),n._UZ(20,"nz-statistic",8),n.ALo(21,"number"),n.qZA(),n.TgZ(22,"nz-col",1),n._UZ(23,"nz-statistic",9),n.ALo(24,"number"),n.qZA(),n.qZA(),n.TgZ(25,"nz-row"),n.YNc(26,p,1,0,"ng-template",null,10,n.W1O),n.TgZ(28,"nz-col",1),n._UZ(29,"nz-statistic",11),n.ALo(30,"number"),n.YNc(31,O,1,0,"ng-template",null,12,n.W1O),n.qZA(),n.TgZ(33,"nz-col",1),n._UZ(34,"nz-statistic",13),n.ALo(35,"number"),n.qZA(),n.YNc(36,d,1,0,"ng-template",null,14,n.W1O),n.qZA()),2&v){const f=n.MAs(9),M=n.MAs(17),P=n.MAs(27),x=n.MAs(32),B=n.MAs(37);n.xp6(2),n.Q6J("nzValue",n.lcZ(3,16,z.stats.submittedEvidenceItems))("nzPrefix",f),n.xp6(3),n.Q6J("nzValue",n.lcZ(6,18,z.stats.acceptedEvidenceItems))("nzPrefix",f),n.xp6(6),n.Q6J("nzValue",n.lcZ(12,20,z.stats.submittedAssertions))("nzPrefix",M),n.xp6(3),n.Q6J("nzValue",n.lcZ(15,22,z.stats.acceptedAssertions))("nzPrefix",M),n.xp6(6),n.Q6J("nzValue",n.lcZ(21,24,z.stats.revisions))("nzPrefix",P),n.xp6(3),n.Q6J("nzValue",n.lcZ(24,26,z.stats.appliedRevisions))("nzPrefix",P),n.xp6(6),n.Q6J("nzValue",n.lcZ(30,28,z.stats.comments))("nzPrefix",x),n.xp6(5),n.Q6J("nzValue",n.lcZ(35,30,z.stats.suggestedSources))("nzPrefix",B)}},directives:[i.SK,i.t3,o.my,r.Ls],pipes:[s.JJ],styles:["[_nghost-%COMP%]{display:block}h5[_ngcontent-%COMP%]{font-weight:400}"]}),c})()},5013:(T,u,t)=>{t.d(u,{C:()=>O});var n=t(9808),i=t(6949),o=t(5249),r=t(1894),s=t(7484),a=t(3618),g=t(647),p=t(5e3);let O=(()=>{class d{}return d.\u0275fac=function(c){return new(c||d)},d.\u0275mod=p.oAB({type:d}),d.\u0275inj=p.cJS({imports:[[n.ez,i.WG,o.A2,a.ZJ,g.PV,r.Jb,s.vh]]}),d})()},1243:(T,u,t)=>{t.d(u,{I:()=>i});var n=t(5e3);let i=(()=>{class o{transform(s){if(s){let g=s.toLowerCase().replace(/_/g," ").split(" ");for(var a=0;a{t.d(u,{Z:()=>o});var n=t(5e3);const i=["*"];let o=(()=>{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(a){return new(a||r)},r.\u0275cmp=n.Xpm({type:r,selectors:[["cvc-form-buttons"]],ngContentSelectors:i,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(a,g){1&a&&(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:(T,u,t)=>{t.d(u,{R:()=>o});var n=t(9808),i=t(5e3);let o=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=i.oAB({type:r}),r.\u0275inj=i.cJS({imports:[[n.ez]]}),r})()},8227:(T,u,t)=>{t.d(u,{q:()=>U});var n=t(5e3),i=t(8929),o=t(4850),r=t(373),s=t(2868),a=t(7625),g=t(1793),p=t(9350),O=t(9808),d=t(6042),l=t(2683),c=t(2643),m=t(3677),v=t(8144),z=t(6699),f=t(4219);function M(_,E){1&_&&n.Hsn(0)}function P(_,E){1&_&&n.GkF(0)}function x(_,E){if(1&_&&(n.ynx(0),n.YNc(1,P,1,0,"ng-container",5),n.BQk()),2&_){n.oxw(2);const e=n.MAs(1);n.xp6(1),n.Q6J("ngTemplateOutlet",e)}}function B(_,E){1&_&&n.GkF(0)}function S(_,E){if(1&_&&(n.ynx(0),n.TgZ(1,"nz-button-group",6),n.YNc(2,B,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&_){n.oxw();const e=n.MAs(4),C=n.oxw(),D=n.MAs(1);n.xp6(1),n.Q6J("nzSize",C.nzSize),n.xp6(1),n.Q6J("ngTemplateOutlet",D),n.xp6(1),n.Q6J("nzType",C.buttonType)("nzDanger",C.nzDanger)("disabled",C.disabled)("nzDropdownMenu",e),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 y(_,E){if(1&_){const e=n.EpF();n.TgZ(0,"li",11),n.NdJ("click",function(){const A=n.CHM(e).$implicit;return n.oxw(2).selectOrg(A)}),n._UZ(1,"nz-avatar",12),n._uU(2),n.qZA()}if(2&_){const e=E.$implicit,C=n.oxw(2);n.Q6J("nzSelected",(null==C.selectedOrg?null:C.selectedOrg.id)===e.id),n.xp6(1),n.Q6J("nzSrc",null==e?null:e.profileImagePath)("nzSize",10)("nzShape","square"),n.xp6(1),n.hij(" ",e.name," ")}}function h(_,E){if(1&_&&(n.ynx(0),n.YNc(1,x,2,1,"ng-container",1),n.YNc(2,S,9,10,"ng-container",1),n.TgZ(3,"nz-dropdown-menu",null,2),n.TgZ(5,"ul",3),n.YNc(6,y,3,5,"li",4),n.qZA(),n.qZA(),n.BQk()),2&_){const e=E.ngIf;n.xp6(1),n.Q6J("ngIf",e.length<=1),n.xp6(1),n.Q6J("ngIf",e.length>1),n.xp6(4),n.Q6J("ngForOf",e)}}const Z=["*"];let U=(()=>{class _{constructor(e){this.viewerService=e,this.selectedOrgChange=new n.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new i.xQ}get disabled(){return this.button.disabled}selectOrg(e){this.selectedOrg=e,this.selectedOrgChange.emit(e)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,o.U)(e=>e.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,r.j)("mostRecentOrg"),(0,s.b)(e=>{e&&(this.selectedOrg=e,this.selectedOrgChange.emit(e))})),this.mostRecentOrg$.pipe((0,a.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(e){return new(e||_)(n.Y36(p.a))},_.\u0275cmp=n.Xpm({type:_,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(e,C,D){if(1&e&&n.Suo(D,g.m,5),2&e){let A;n.iGM(A=n.CRH())&&(C.button=A.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:Z,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(e,C){1&e&&(n.F$t(),n.YNc(0,M,1,0,"ng-template",null,0,n.W1O),n.YNc(2,h,7,3,"ng-container",1),n.ALo(3,"async")),2&e&&(n.xp6(2),n.Q6J("ngIf",n.lcZ(3,1,C.organizations$)))},directives:[O.O5,O.tP,d.fY,l.w,d.ix,c.dQ,m.wA,m.cm,v.NU,z.Dz,m.RR,f.wO,O.sg,f.r9],pipes:[O.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),_})()},1825:(T,u,t)=>{t.d(u,{A:()=>g});var n=t(9808),i=t(6042),o=t(6699),r=t(3677),s=t(8144),a=t(5e3);let g=(()=>{class p{}return p.\u0275fac=function(d){return new(d||p)},p.\u0275mod=a.oAB({type:p}),p.\u0275inj=a.cJS({imports:[[n.ez,i.sL,o.Rt,r.b1,s.zf]]}),p})()},1793:(T,u,t)=>{t.d(u,{m:()=>i});var n=t(5e3);let i=(()=>{class o{constructor(s){this.el=s,this.observer=new MutationObserver(([a])=>this.disabled=a.target.disabled),this.observer.observe(this.el.nativeElement,{attributeFilter:["disabled"],childList:!1,subtree:!1})}ngOnDestroy(){this.observer.disconnect()}}return o.\u0275fac=function(s){return new(s||o)(n.Y36(n.SBq))},o.\u0275dir=n.lG2({type:o,selectors:[["button","cvcOrgSelectorBtn",""]],hostVars:2,hostBindings:function(s,a){2&s&&n.ekj("ant-btn-dangerous",a.nzDanger)}}),o})()},4623:(T,u,t)=>{t.d(u,{K:()=>d});var n=t(9808),i=t(8776),o=t(5e3),r=t(1047),s=t(4182);const g={name:"comment-textarea",component:(()=>{class l extends i.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(m,v)=>{var z;return`Comments must be at least ${null===(z=v.templateOptions)||void 0===z?void 0:z.minLength} characters in length.`}}},templateOptions:{rows:4}}}}return l.\u0275fac=function(){let c;return function(v){return(c||(c=o.n5z(l)))(v||l)}}(),l.\u0275cmp=o.Xpm({type:l,selectors:[["comment-textarea-type"]],features:[o.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(m,v){1&m&&o._UZ(0,"textarea",0),2&m&&o.Q6J("formControl",v.formControl)("formlyAttributes",v.field)},directives:[r.Zp,s.Fj,s.JJ,s.oH,i.VQ],styles:[""],changeDetection:0}),l})(),wrappers:["form-field"]};var p=t(4546),O=t(9139);let d=(()=>{class l{}return l.\u0275fac=function(m){return new(m||l)},l.\u0275mod=o.oAB({type:l}),l.\u0275inj=o.cJS({imports:[[n.ez,s.UX,i.X0.forChild({types:[g]}),O.u,p.U5,r.o7]]}),l})()}}]); \ No newline at end of file diff --git a/server/public/3218.3731c8d463d43cf4.js b/server/public/3218.3731c8d463d43cf4.js deleted file mode 100644 index 1e783c8ea..000000000 --- a/server/public/3218.3731c8d463d43cf4.js +++ /dev/null @@ -1 +0,0 @@ -"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"VariantGroup":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.245d0c1d12bdb2e1.js b/server/public/3438.245d0c1d12bdb2e1.js new file mode 100644 index 000000000..048be9ada --- /dev/null +++ b/server/public/3438.245d0c1d12bdb2e1.js @@ -0,0 +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),w=i(5630),Q=i(3309),P=i(4682),J=i(4867),M=i(4609),N=i(694),U=i(8766),Y=i(8762),L=i(5750),_=i(712),d=i(373),I=i(1059),O=i(7625),D=i(8929),B=i(591),n=i(5e3),E=i(9350),R=i(8992),F=i(3193),j=i(8664),$=i(5623),V=i(8168),S=i(2683),q=i(2643),G=i(9077),X=i(8525),H=i(2233),W=i(759),K=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 nn(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 en(e,s){1&e&&(n.TgZ(0,"nz-space",5),n.YNc(1,k,5,1,"span",6),n.YNc(2,nn,5,4,"span",7),n.qZA())}const tn=function(e){return["/assertions",e,"revise"]};function sn(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,tn,o.id))("nzType",t.isActive?"primary":"default")}}function on(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,sn,3,4,"button",25),n.qZA()),2&e){const t=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",t.signedIn)}}function an(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 rn(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 cn(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,rn,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 _n(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 ln(e,s){1&e&&(n.ynx(0),n.YNc(1,_n,1,1,"cvc-revert-entity-button",30),n.BQk())}function pn(e,s){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,ln,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 gn(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 dn(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 mn(e,s){1&e&&n._UZ(0,"nz-alert",34)}function zn(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 un(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 fn(e,s){1&e&&(n.ynx(0),n.YNc(1,un,1,2,"cvc-moderate-entity-buttons",37),n.BQk())}const vn=function(e){return{flagged:e}};function yn(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,on,2,1,"span",17),n.YNc(7,an,4,1,"span",17),n.YNc(8,cn,2,1,"span",17),n.YNc(9,pn,2,1,"span",17),n.qZA(),n.qZA(),n.TgZ(10,"nz-page-header-content"),n.YNc(11,gn,1,1,"nz-alert",18),n.YNc(12,dn,1,1,"nz-alert",19),n.YNc(13,mn,1,0,"nz-alert",20),n.TgZ(14,"cvc-tab-navigation",21),n.ALo(15,"ngrxPush"),n.YNc(16,zn,2,1,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(18,"nz-space",23),n.YNc(19,fn,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,vn,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 hn(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,en,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"div",3),n.ALo(5,"ngrxPush"),n.YNc(6,yn,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 An=(()=>{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 B.X(this.defaultTabs),this.paramsSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({assertionId:+l.assertionId});let x=this.queryRef.valueChanges;this.loading$=x.pipe((0,d.j)("loading"),(0,I.O)(!0)),this.assertion$=x.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,O.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(E.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,hn,7,6,"ng-container",0),n.ALo(1,"ngrxPush")),2&t&&n.Q6J("ngIf",n.lcZ(1,1,o.assertion$))},directives:[r.O5,R.I,p.NU,p.$1,u.ZU,c.yS,F.H,j.I,$.o,m.eJ,z.$O,z.u9,V.Y,r.mk,S.w,f.Ls,z.Jp,v.ix,q.dQ,c.Od,c.rH,G.Q,X.e,z.u5,r.sg,b.r,H.P,g.t3,W.N,K.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 Tn=(()=>{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 Zn=i(3801);let bn=(()=>{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:[Zn.D],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var In=i(7484),Sn=i(6559),Cn=i(4271);let wn=(()=>{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,In.vh,p.zf,Sn.H0,Cn.M]]}),e})();var Qn=i(7036);let Pn=(()=>{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:[Qn.L],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var Jn=i(2914);let Mn=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[r.ez,Jn.A]]}),e})();var Nn=i(1365);let Un=(()=>{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:[Nn.a],styles:[""]}),e})();var h=i(3098),Yn=i(9444),Ln=i(592),On=i(7345),Dn=i(897),Bn=i(8018),En=i(767),Rn=i(3580),Fn=i(6286),A=i(8625),jn=i(7026),C=i(404);let $n=(()=>{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,C.cg,Yn.s,Ln.x,On.W,Dn.$,Bn.e,En.Q,Rn.Q,Fn.y,A.$L.forChild({formatter:{useClass:jn.x,provide:A.KP}})]]}),e})();var Vn=i(4590),qn=i(125),Gn=i(4022),Xn=i(6715),Hn=i(7956),Wn=i(7469),Kn=i(8965),kn=i(4110),ne=i(9657);function ee(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 te(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 se(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 ie(e,s){if(1&e&&(n.TgZ(0,"nz-tag",29),n._uU(1),n.qZA()),2&e){const t=s.$implicit;n.Q6J("nzTooltipTitle",t.description),n.xp6(1),n.Oqu(t.code)}}function oe(e,s){if(1&e&&(n.ynx(0),n.YNc(1,ie,2,2,"nz-tag",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",30),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",30),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,se,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",39),n._uU(1),n.ALo(2,"timeago"),n._UZ(3,"cvc-user-tag",35),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",40),n._uU(1),n.ALo(2,"timeago"),n._UZ(3,"cvc-user-tag",35),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,36),n.YNc(2,le,4,4,"nz-descriptions-item",37),n.YNc(3,pe,4,4,"nz-descriptions-item",38),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",31),n.TgZ(1,"nz-descriptions-item",32),n._UZ(2,"cvc-status-tag",33),n.qZA(),n.TgZ(3,"nz-descriptions-item",34),n._uU(4),n.ALo(5,"timeago"),n._UZ(6,"cvc-user-tag",35),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",47),n.TgZ(1,"nz-tag",48),n._UZ(2,"i",49),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",30),n._uU(1,"None provided"),n.qZA())}function ue(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",41),n.TgZ(1,"nz-descriptions-item",42),n._UZ(2,"i",43),n.ALo(3,"evidenceEnumDisplay"),n._uU(4),n.ALo(5,"evidenceEnumDisplay"),n.qZA(),n.TgZ(6,"nz-descriptions-item",44),n.YNc(7,me,4,2,"a",45),n.YNc(8,ze,2,0,"ng-template",null,46,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",53),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",30),n._uU(1,"Not applicable"),n.qZA())}function ye(e,s){1&e&&(n.ynx(0),n.TgZ(1,"span",30),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",55),n.BQk()),2&e){const t=s.$implicit;n.xp6(1),n.Q6J("phenotype",t)}}function Ae(e,s){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,he,2,1,"ng-container",54),n.qZA(),n.BQk()),2&e){const t=n.oxw(3).ngIf;n.xp6(2),n.Q6J("ngForOf",t.phenotypes)}}function xe(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",13),n.TgZ(1,"nz-descriptions-item",50),n.YNc(2,fe,2,1,"ng-container",27),n.YNc(3,ve,2,0,"span",51),n.qZA(),n.TgZ(4,"nz-descriptions-item",52),n.YNc(5,ye,3,0,"ng-container",27),n.YNc(6,Ae,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",30),n._uU(1,"Not applicable"),n.qZA())}function Ze(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-drug-tag",60),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",54),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",56),n.TgZ(1,"nz-descriptions-item",52),n.ynx(2,57),n.YNc(3,Te,2,0,"ng-template",58),n.YNc(4,be,2,1,"ng-template",59),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",65),2&e&&n.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Ce(e,s){1&e&&n._UZ(0,"i",65),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",65),2&e&&n.Q6J("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Pe(e,s){1&e&&n._UZ(0,"i",65),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",30),n._uU(2,"None Provided"),n.qZA(),n.BQk())}function Ue(e,s){if(1&e&&(n.TgZ(0,"nz-descriptions",41),n.TgZ(1,"nz-descriptions-item",61),n.YNc(2,Se,1,3,"i",62),n.YNc(3,Ce,1,3,"i",62),n.YNc(4,we,3,3,"ng-container",27),n.qZA(),n.TgZ(5,"nz-descriptions-item",63),n.YNc(6,Qe,1,3,"i",62),n.YNc(7,Pe,1,3,"i",62),n.YNc(8,Je,3,3,"ng-container",27),n.qZA(),n.TgZ(9,"nz-descriptions-item",64),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,ee,7,4,"nz-descriptions",7),n.YNc(4,te,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,xe,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",66),2&e){const t=n.oxw().ngIf;n.MGl("cvcTitle","",t.name," Evidence"),n.Q6J("assertionId",t.id)}}function Oe(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 De=(()=>{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"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["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"],[4,"ngFor","ngForOf"],[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,Oe,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,y.j,C.SY,Vn.h,qn.I,r.RF,r.n9,S.w,f.Ls,Gn.n,Xn.$,Hn.i,r.iq,r.zE,Wn.u,Kn.a],pipes:[m.fM,kn.D,ne.t,A.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 Fe=(()=>{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 je=[{path:"",component:An,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:De,data:{breadcrumb:"Summary"}},{path:"events",component:Ee,data:{breadcrumb:"Events"}},{path:"comments",component:bn,data:{breadcrumb:"Comments"}},{path:"revisions",component:Un,data:{breadcrumb:"Revisions"}},{path:"flags",component:Pn,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(je),$n,Tn,Mn,wn,Fe],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,w.D,Q.U,P.m,J.Q,M.g,N.G,U.P,Y.c,L.Z]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/3438.f54dc1103b98eab1.js b/server/public/3438.f54dc1103b98eab1.js deleted file mode 100644 index d54a8164a..000000000 --- a/server/public/3438.f54dc1103b98eab1.js +++ /dev/null @@ -1 +0,0 @@ -"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/3482.c177e566185e6af0.js b/server/public/3482.c177e566185e6af0.js deleted file mode 100644 index b017b89dd..000000000 --- a/server/public/3482.c177e566185e6af0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3482],{7036:(G,Q,i)=>{i.d(Q,{L:()=>gt});var _=i(712),a=i(373),z=i(4850),t=i(5e3),n=i(9808),m=i(1894),T=i(8144),O=i(8929),x=i(7625),M=i(9350),S=i(2359),D=i(7484),y=i(7948),P=i(5737),I=i(6123),w=i(9169),B=i(6949),u=i(404),L=i(6042),h=i(2643),F=i(2683),J=i(3610),W=i(647),K=i(4182),V=i(4546),C=i(9383),b=i(7525),A=i(9180),$=i(8227),H=i(1793);function f(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",4),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function N(c,p){}function Z(c,p){1&c&&t.YNc(0,N,0,0,"ng-template")}function j(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Z,1,0,void 0,9),t.BQk()),2&c){t.oxw(2);const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function k(c,p){if(1&c&&(t.ynx(0),t.YNc(1,j,2,1,"ng-container",5),t.BQk()),2&c){const s=t.oxw().ngrxLet,g=t.MAs(5),v=t.oxw();t.xp6(1),t.Q6J("ngIf",s.isEditor||s.isAdmin||v.flag.flaggingUser.id===s.id)("ngIfElse",g)}}function en(c,p){}function sn(c,p){1&c&&t.YNc(0,en,0,0,"ng-template")}function cn(c,p){if(1&c&&(t.TgZ(0,"span",10),t.YNc(1,sn,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function on(c,p){}function ln(c,p){1&c&&t.YNc(0,on,0,0,"ng-template")}function Y(c,p){if(1&c&&(t.TgZ(0,"span",11),t.YNc(1,ln,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function q(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",13),t.NdJ("nzPopoverVisibleChange",function(v){return t.CHM(s),t.oxw(3).flagResolvePopoverVisible=v})("click",function(){t.CHM(s);const v=t.oxw(3);return v.flagResolvePopoverVisible=!v.flagResolvePopoverVisible}),t._uU(1," Resolve Flag "),t._UZ(2,"i",14),t.qZA()}if(2&c){const s=t.oxw(2).ngrxLet,g=t.oxw(),v=t.MAs(3),U=t.MAs(5);t.Q6J("nzPopoverTitle",v)("nzPopoverVisible",g.flagResolvePopoverVisible)("nzPopoverContent",U)("nzPopoverTrigger",void 0)("disabled",!s.signedIn||s.isCurator&&g.flag.flaggingUser.id!=s.id)}}function X(c,p){if(1&c&&t.YNc(0,q,3,5,"button",12),2&c){const s=t.oxw(2);t.Q6J("ngIf",!s.success)}}function E(c,p){if(1&c&&(t.ynx(0),t.YNc(1,k,2,2,"ng-container",5),t.YNc(2,cn,2,1,"ng-template",null,6,t.W1O),t.YNc(4,Y,2,1,"ng-template",null,7,t.W1O),t.YNc(6,X,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&c){const s=p.ngrxLet,g=t.MAs(3);t.xp6(1),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}const nn=function(){return{float:"right"}};function tn(c,p){if(1&c){const s=t.EpF();t._uU(0," Resolve Flag "),t.TgZ(1,"span",15),t.TgZ(2,"i",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw();return v.flagResolvePopoverVisible=!1,v.errorMessages=[]}),t.qZA(),t.qZA()}2&c&&(t.xp6(1),t.Q6J("ngStyle",t.DdM(1,nn)))}function fn(c,p){if(1&c&&t._UZ(0,"nz-alert",25),2&c){t.oxw();const s=t.MAs(2);t.Q6J("nzDescription",s)}}function un(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function zn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,un,2,1,"li",26),t.qZA()),2&c){const s=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Cn(c,p){if(1&c){const s=t.EpF();t.YNc(0,fn,1,1,"nz-alert",17),t.YNc(1,zn,2,1,"ng-template",null,18,t.W1O),t.TgZ(3,"nz-card",19),t.TgZ(4,"form",20),t.NdJ("ngSubmit",function(){return t.CHM(s),t.oxw().resolveFlag()}),t.TgZ(5,"cvc-comment-input-form",21),t.NdJ("commentChange",function(v){return t.CHM(s),t.oxw().comment=v}),t.qZA(),t.TgZ(6,"nz-spin",22),t.TgZ(7,"nz-form-item"),t.TgZ(8,"nz-form-control"),t.TgZ(9,"cvc-form-buttons"),t.TgZ(10,"cvc-org-selector-btn-group",23),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.TgZ(11,"button",24),t._uU(12," Resolve "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&c){const s=t.oxw();t.Q6J("ngIf",s.errorMessages.length>0),t.xp6(5),t.Q6J("comment",s.comment),t.xp6(1),t.Q6J("nzSpinning",s.loading),t.xp6(5),t.Q6J("disabled",!(void 0!==s.comment&&s.comment.length>=10))}}let _n=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.destroy$=new O.xQ,this.resolveFlagMutator=new I.U(v)}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg})}onOrgSelected(s){this.selectedOrg=s}resolveFlag(){var s;if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id}});g.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.success=!1,this.errorMessages=v)}),g.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{this.loading=v})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.EwB),t.Y36(M.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["noPermissions",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to resolve flag."],["nz-tooltip","","nzTooltipTitle","If you are not an editor, you can only resolve flags you opened."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click",4,"ngIf"],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(s,g){1&s&&(t.YNc(0,f,1,0,"nz-alert",0),t.YNc(1,E,8,2,"ng-container",1),t.YNc(2,tn,3,2,"ng-template",null,2,t.W1O),t.YNc(4,Cn,13,4,"ng-template",null,3,t.W1O)),2&s&&(t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngrxLet",g.viewer$))},directives:[n.O5,S.r,B.eJ,n.tP,u.SY,L.ix,h.dQ,F.w,J.lU,W.Ls,n.PC,n.sg,D.bd,K._Y,K.JL,K.F,V.Lr,C.b,b.W,m.SK,V.Nx,m.t3,V.Fd,A.Z,$.q,H.m],styles:[""]}),c})();var gn=i(3618),Tn=i(125),xn=i(4590),pn=i(685),hn=i(8625);function yn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",5),t.NdJ("nzOnClose",function(){const U=t.CHM(s).$implicit;return t.oxw().onErrorBannerClose(U)}),t.qZA()}2&c&&t.Q6J("nzMessage",p.$implicit)}function mn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}if(2&c){const s=t.oxw();t.MGl("nzMessage","Revision(s) successfully ",s.success,".")}}function dn(c,p){if(1&c&&t._UZ(0,"cvc-comment-body",15),2&c){const s=t.oxw(2).$implicit;t.Q6J("commentBodySegments",s.openComment.parsedComment)}}function An(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-flag-resolve-form",16),t.BQk()),2&c){const s=t.oxw(2).$implicit,g=t.oxw(2);t.xp6(1),t.Q6J("flag",s)("flagResolvedCallback",g.flagResolvedCallback)}}function Zn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-comment-body",15),t.BQk()),2&c){const s=t.oxw(3).$implicit;t.xp6(1),t.Q6J("commentBodySegments",s.resolutionComment.parsedComment)}}function On(c,p){if(1&c&&t._UZ(0,"cvc-user-tag",21),2&c){const s=t.oxw(3).$implicit;t.Q6J("user",s.resolvingUser)}}function vn(c,p){if(1&c&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",17),t.YNc(2,Zn,2,1,"ng-container",18),t.qZA(),t.TgZ(3,"nz-col",19),t._uU(4," Resolved By "),t.YNc(5,On,1,1,"cvc-user-tag",20),t._uU(6),t.ALo(7,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngIf",s.resolutionComment),t.xp6(3),t.Q6J("ngIf",void 0!==s.resolvingUser),t.xp6(1),t.hij(" ",t.lcZ(7,3,s.resolvedAt)," ")}}function Rn(c,p){if(1&c&&(t._UZ(0,"i",22),t._uU(1)),2&c){const s=t.oxw(2).$implicit;t.xp6(1),t.hij(" FID",s.id," ")}}function Fn(c,p){if(1&c&&(t.TgZ(0,"span"),t.TgZ(1,"span",26),t._uU(2,"Flagged By"),t.qZA(),t._UZ(3,"cvc-user-tag",21),t.TgZ(4,"span",26),t._uU(5),t.ALo(6,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(3).$implicit;t.xp6(3),t.Q6J("user",s.flaggingUser),t.xp6(2),t.Oqu(t.lcZ(6,2,s.createdAt))}}function Ln(c,p){if(1&c&&t._UZ(0,"cvc-status-tag",27),2&c){const s=t.oxw(3).$implicit;t.Q6J("status",s.state)}}function Mn(c,p){1&c&&(t.TgZ(0,"nz-space",23),t.YNc(1,Fn,7,4,"span",24),t.YNc(2,Ln,1,1,"cvc-status-tag",25),t.qZA())}function bn(c,p){if(1&c&&(t.TgZ(0,"nz-card",10),t.YNc(1,dn,1,1,"cvc-comment-body",11),t._UZ(2,"nz-divider"),t.YNc(3,An,2,2,"ng-container",3),t.YNc(4,vn,8,5,"ng-template",null,12,t.W1O),t.YNc(6,Rn,2,1,"ng-template",null,13,t.W1O),t.YNc(8,Mn,3,0,"ng-template",null,14,t.W1O),t.qZA()),2&c){const s=t.MAs(5),g=t.MAs(7),v=t.MAs(9),U=t.oxw().$implicit;t.Q6J("nzTitle",g)("nzExtra",v),t.xp6(1),t.Q6J("ngIf",U.openComment),t.xp6(2),t.Q6J("ngIf","OPEN"==U.state)("ngIfElse",s)}}function En(c,p){1&c&&(t.ynx(0),t.YNc(1,bn,10,5,"nz-card",9),t.BQk())}function an(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"nz-space",7),t.YNc(2,En,2,0,"ng-container",8),t.qZA(),t.BQk()),2&c){const s=t.oxw();t.xp6(2),t.Q6J("ngForOf",s.flags)}}function Sn(c,p){1&c&&t._UZ(0,"nz-empty",28)}let Qn=(()=>{class c{constructor(s){this.viewerService=s,this.isLoading=!1,this.success=!1,this.destroy$=new O.xQ}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.mostRecentOrg=s.mostRecentOrg})}setupMutationResultHandlers(s,g){s.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v&&(this.isLoading=!1,this.errors=void 0,this.success=g)}),s.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.isLoading=!1,this.success=!1,this.errors=v)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(s){var g;this.errors=null===(g=this.errors)||void 0===g?void 0:g.filter(v=>v!=s)}onSuccessBannerClose(){this.success=!1}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(M.a))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzTitle","Flags",1,"card-list"],[4,"ngIf","ngIfElse"],["noFlags",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],[3,"commentBodySegments"],[3,"flag","flagResolvedCallback"],["nzSpan","16"],[4,"ngIf"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"user"],["nz-icon","","nzType","civic:flag"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(s,g){if(1&s&&(t.YNc(0,yn,1,1,"nz-alert",0),t.YNc(1,mn,1,1,"nz-alert",1),t.TgZ(2,"nz-card",2),t.YNc(3,an,3,1,"ng-container",3),t.YNc(4,Sn,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&s){const v=t.MAs(5);t.Q6J("ngForOf",g.errors),t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(2),t.Q6J("ngIf",g.flags&&g.flags.length>0)("ngIfElse",v)}},directives:[n.sg,S.r,n.O5,D.bd,T.NU,T.$1,y.m,P.g,_n,m.SK,m.t3,gn.ZU,Tn.I,W.Ls,F.w,xn.h,pn.p9],pipes:[hn.wr],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})();var Nn=i(1243);function Pn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",8),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function In(c,p){if(1&c&&t._UZ(0,"nz-alert",9),2&c){t.oxw();const s=t.MAs(4);t.Q6J("nzDescription",s)}}function Jn(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function Yn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,Jn,2,1,"li",10),t.qZA()),2&c){const s=t.oxw();t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Un(c,p){}function Dn(c,p){1&c&&t.YNc(0,Un,0,0,"ng-template")}function Bn(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Dn,1,0,void 0,15),t.BQk()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function $n(c,p){}function wn(c,p){1&c&&t.YNc(0,$n,0,0,"ng-template")}function jn(c,p){if(1&c&&(t.TgZ(0,"span",16),t.YNc(1,wn,1,0,void 0,15),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Wn(c,p){if(1&c&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"enumToTitle"),t.qZA()),2&c){const s=t.oxw().ngrxLet,g=t.oxw();t.Q6J("disabled",!(void 0!==g.comment&&g.comment.length>=10&&s.signedIn)),t.xp6(1),t.hij(" Flag ",t.lcZ(2,2,g.flaggable.entityType)," ")}}function Vn(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"cvc-form-buttons"),t.TgZ(2,"cvc-org-selector-btn-group",11),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.YNc(3,Bn,2,1,"ng-container",12),t.YNc(4,jn,2,1,"ng-template",null,13,t.W1O),t.YNc(6,Wn,3,4,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=p.ngrxLet,g=t.MAs(5);t.xp6(3),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}let Kn=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.destroy$=new O.xQ,this.addFlagMutator=new I.U(v)}ngOnInit(){if(this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg}),void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(s){this.selectedOrg=s}submitFlag(){var s;this.errorMessages=[];let g={comment:this.comment,subject:this.flaggable,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id},v=this.addFlagMutator.mutate(this.gql,{input:g});v.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{U&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),v.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{U.length>0&&(this.errorMessages=U)}),v.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(U=>{this.loading=U})}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.B0s),t.Y36(M.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"selectedOrgChange"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to flag entity."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(s,g){1&s&&(t.TgZ(0,"nz-card",0),t.YNc(1,Pn,1,0,"nz-alert",1),t.YNc(2,In,1,1,"nz-alert",2),t.YNc(3,Yn,2,1,"ng-template",null,3,t.W1O),t.TgZ(5,"form",4),t.NdJ("ngSubmit",function(){return g.submitFlag()}),t.TgZ(6,"cvc-comment-input-form",5),t.NdJ("commentChange",function(U){return g.comment=U}),t.qZA(),t.TgZ(7,"nz-spin",6),t.TgZ(8,"nz-form-item"),t.TgZ(9,"nz-form-control"),t.YNc(10,Vn,8,2,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngIf",g.errorMessages.length>0),t.xp6(4),t.Q6J("comment",g.comment),t.xp6(1),t.Q6J("nzSpinning",g.loading),t.xp6(3),t.Q6J("ngrxLet",g.viewer$))},directives:[D.bd,n.O5,S.r,n.sg,K._Y,K.JL,K.F,V.Lr,C.b,b.W,m.SK,V.Nx,m.t3,V.Fd,B.eJ,A.Z,$.q,n.tP,u.SY,L.ix,h.dQ,H.m,F.w],pipes:[Nn.I],styles:[""]}),c})();var Gn=i(8747),Hn=i(6699);function kn(c,p){if(1&c&&(t._UZ(0,"cvc-flag-list",13),t.ALo(1,"ngrxPush")),2&c){const s=t.oxw(2);t.Q6J("flags",t.lcZ(1,2,s.flags$))("flagResolvedCallback",s.refresh)}}function qn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw(2).ngrxLet;return t.oxw(2).loadMore(null==v?null:v.endCursor)}),t._uU(1,"Load More"),t.qZA()}}function Xn(c,p){1&c&&(t.ynx(0),t.YNc(1,qn,2,0,"button",15),t.BQk())}function nt(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Xn,2,0,"ng-container",14),t.BQk()),2&c){const s=p.ngrxLet;t.xp6(1),t.Q6J("ngIf",null==s?null:s.hasNextPage)}}function tt(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw(2);t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}function et(c,p){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.Oqu(s.displayName)}}function ot(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function it(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function at(c,p){if(1&c&&(t.YNc(0,ot,1,1,"nz-avatar",18),t.YNc(1,it,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function st(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function ct(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function lt(c,p){if(1&c&&(t.YNc(0,st,1,1,"nz-avatar",18),t.YNc(1,ct,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function rt(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,kn,2,4,"cvc-flag-list",5),t.YNc(5,nt,2,1,"ng-container",6),t.YNc(6,tt,1,2,"cvc-flag-add-form",7),t.qZA(),t.qZA(),t.TgZ(7,"nz-col",8),t.TgZ(8,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onStateSelected(v)}),t.YNc(9,et,2,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onFlaggingUsersSelected(v)}),t.ALo(12,"ngrxPush"),t.YNc(13,at,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(15,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onResolvingUsersSelected(v)}),t.ALo(16,"ngrxPush"),t.YNc(17,lt,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(4),t.Q6J("ngrxLet",s.pageInfo$),t.xp6(3),t.Q6J("preselectedOption",s.selectableStates[0])("participantList",s.selectableStates),t.xp6(3),t.Q6J("participantList",t.lcZ(12,6,s.uniqueFlaggingUsers$)),t.xp6(4),t.Q6J("participantList",t.lcZ(16,8,s.uniqueResolvingUsers$))}}function _t(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw();t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}let gt=(()=>{class c{constructor(s){this.gql=s,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:_.BQZ.Open},{id:2,displayName:"Resolved",value:_.BQZ.Resolved}]}ngOnInit(){if(null==this.flaggable)throw new Error("Must pass a flaggable into flag list");this.queryRef=this.gql.watch({first:this.defaultPageSize,flaggable:this.flaggable,state:_.BQZ.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,a.j)("data","flags","edges"),(0,z.U)(s=>s.map(g=>g.node))),this.pageInfo$=this.results$.pipe((0,a.j)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,a.j)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,z.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueFlaggingUsers})),this.uniqueResolvingUsers$=this.results$.pipe((0,z.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueResolvingUsers}))}onFlaggingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:s?s.id:void 0})}onResolvingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:s?s.id:void 0})}onStateSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:s?s.value:void 0})}loadMore(s){var g;null===(g=this.queryRef)||void 0===g||g.fetchMore({variables:{first:this.defaultPageSize,after:s}})}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(_.rzy))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noFlags",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"flags","flagResolvedCallback",4,"nzSpaceItem"],[4,"ngrxLet"],[3,"flaggable","flagAddedCallback",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Flag State",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"]],template:function(s,g){if(1&s&&(t.YNc(0,rt,19,10,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,_t,1,2,"ng-template",null,1,t.W1O)),2&s){const v=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,g.unfilteredCount$))("ngIfElse",v)}},directives:[n.O5,m.SK,m.t3,T.NU,T.$1,Qn,B.eJ,L.ix,h.dQ,F.w,Kn,Gn.l,Hn.Dz],pipes:[B.fM,n.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})()},4271:(G,Q,i)=>{i.d(Q,{M:()=>X});var _=i(9808),a=i(6949),z=i(3868),t=i(7345),n=i(7484),m=i(4546),T=i(3762),O=i(8625),x=i(4182),M=i(1825),S=i(6042),D=i(4375),y=i(2359),P=i(404),I=i(9444),w=i(4509),B=i(7525),u=i(5e3);let L=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.u5,x.UX,a.WG,m.U5,S.sL,n.vh,y.L,P.cg,B.j,M.A,D.R,I.s,w.w]]}),E})();var h=i(9779),F=i(8144),J=i(1894),W=i(8481),K=i(3618),V=i(6699),C=i(3580),b=i(8018),A=i(6286),$=i(4867),H=i(8645),f=i(685),N=i(592),Z=i(6114),j=i(5737),k=i(647),en=i(3610),sn=i(1047);let cn=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.UX,a.WG,S.sL,m.U5,x.u5,y.L,n.vh,en.$6,k.PV,P.cg,B.j,w.w,D.R,M.A]]}),E})();var on=i(7026),ln=i(8909);let Y=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,J.Jb,T.Ph,n.vh,F.zf,W.X,K.ZJ,V.Rt,f.Xo,Z.Wr,j.S,P.cg,T.Ph,en.$6,k.PV,sn.o7,x.u5,O.$L.forChild({formatter:{useClass:on.x,provide:O.KP}}),M.A,h.s,t.W,C.Q,b.e,A.y,$.Q,H.M,N.x,S.sL,y.L,a.WG,cn,j.S,ln.m]]}),E})();var q=i(1150);let X=(()=>{class E{}return E.\u0275fac=function(tn){return new(tn||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[_.ez,x.u5,a.WG,O.$L.forChild({formatter:{useClass:on.x,provide:O.KP}}),S.sL,m.U5,z.aF,S.sL,t.W,T.Ph,n.vh,L,Y,f.Xo,q.N,V.Rt,F.zf]]}),E})()},8168:(G,Q,i)=>{i.d(Q,{Y:()=>a});var _=i(5e3);let a=(()=>{class z{constructor(){}}return z.\u0275fac=function(n){return new(n||z)},z.\u0275dir=_.lG2({type:z,selectors:[["","cvcFlaggableOptions",""]]}),z})()},5623:(G,Q,i)=>{i.d(Q,{o:()=>B});var _=i(5e3),a=i(8168),z=i(9808),t=i(4401),n=i(325),m=i(647),T=i(404);const O=["cvcFlaggable",""];function x(u,L){1&u&&_.Hsn(0)}function M(u,L){1&u&&_.GkF(0)}function S(u,L){if(1&u&&(_.ynx(0),_.YNc(1,M,1,0,"ng-container",2),_.BQk()),2&u){_.oxw();const h=_.MAs(1);_.xp6(1),_.Q6J("ngTemplateOutlet",h)}}function D(u,L){if(1&u&&(_.TgZ(0,"a",6),_._UZ(1,"i",7),_.qZA()),2&u){_.oxw();const h=_.MAs(5);_.xp6(1),_.Q6J("nzTooltipTitle",h)}}function y(u,L){if(1&u&&_._uU(0),2&u){const h=_.oxw(2);_.hij(" ",h.flags," open flags ")}}function P(u,L){1&u&&_.GkF(0)}function I(u,L){if(1&u&&(_.ynx(0),_.TgZ(1,"nz-ribbon",3),_.YNc(2,D,2,1,"ng-template",null,4,_.W1O),_.YNc(4,y,1,1,"ng-template",null,5,_.W1O),_.YNc(6,P,1,0,"ng-container",2),_.qZA(),_.BQk()),2&u){const h=_.MAs(3);_.oxw();const F=_.MAs(1);_.xp6(1),_.Q6J("nzText",h),_.xp6(5),_.Q6J("ngTemplateOutlet",F)}}const w=["*"];let B=(()=>{class u{constructor(h){this.renderer=h}ngOnChanges(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}ngAfterViewInit(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}addFlagged(){this.flaggedChild&&this.renderer.addClass(this.flaggedChild.nativeElement,"flaggedChild")}removeFlagged(){this.flaggedChild&&this.renderer.removeClass(this.flaggedChild.nativeElement,"flaggedChild")}}return u.\u0275fac=function(h){return new(h||u)(_.Y36(_.Qsj))},u.\u0275cmp=_.Xpm({type:u,selectors:[["","cvcFlaggable",""]],contentQueries:function(h,F,J){if(1&h&&_.Suo(J,a.Y,5,_.SBq),2&h){let W;_.iGM(W=_.CRH())&&(F.flaggedChild=W.first)}},inputs:{flags:"flags",entity:"entity"},features:[_.TTD],attrs:O,ngContentSelectors:w,decls:4,vars:2,consts:[["flaggedContent",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["flaggedText",""],["flaggedTooltip",""],["routerLink","flags",2,"color","#FFF"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(h,F){1&h&&(_.F$t(),_.YNc(0,x,1,0,"ng-template",null,0,_.W1O),_.YNc(2,S,2,1,"ng-container",1),_.YNc(3,I,7,2,"ng-container",1)),2&h&&(_.xp6(2),_.Q6J("ngIf",0===F.flags),_.xp6(1),_.Q6J("ngIf",F.flags))},directives:[z.O5,z.tP,t.F9,n.yS,m.Ls,T.SY],styles:[""]}),u})()},4682:(G,Q,i)=>{i.d(Q,{m:()=>O});var _=i(9808),a=i(404),z=i(3618),t=i(4401),n=i(647),m=i(325),T=i(5e3);let O=(()=>{class x{}return x.\u0275fac=function(S){return new(S||x)},x.\u0275mod=T.oAB({type:x}),x.\u0275inj=T.cJS({imports:[[_.ez,m.Bz,n.PV,t.mS,a.cg,z.ZJ]]}),x})()},1835:(G,Q,i)=>{i.d(Q,{i:()=>ln});var _=i(9808),a=i(7484),z=i(3762),t=i(1894),n=i(5e3);let m=(()=>{class Y{}return Y.\u0275fac=function(X){return new(X||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,t.Jb]]}),Y})();var T=i(8144);let O=(()=>{class Y{}return Y.\u0275fac=function(X){return new(X||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,a.vh,z.Ph,t.Jb,T.zf]]}),Y})();var x=i(9779),M=i(1825),S=i(8481),D=i(3618),y=i(6699),P=i(8625),I=i(7345),w=i(3580),B=i(8018),u=i(6286),L=i(4867),h=i(8645),F=i(5482),J=i(685),W=i(592),K=i(6114),V=i(5737),C=i(404),b=i(6042),A=i(2359),$=i(6949),H=i(647),f=i(3610),N=i(1047),Z=i(4182),j=i(9444),k=i(3098),en=i(7026),sn=i(4509),cn=i(8909),on=i(209);let ln=(()=>{class Y{}return Y.\u0275fac=function(X){return new(X||Y)},Y.\u0275mod=n.oAB({type:Y}),Y.\u0275inj=n.cJS({imports:[[_.ez,t.Jb,z.Ph,a.vh,T.zf,S.X,D.ZJ,y.Rt,J.Xo,K.Wr,V.S,C.cg,z.Ph,f.$6,H.PV,N.o7,k.q6,V.S,Z.u5,P.$L.forChild({formatter:{useClass:en.x,provide:P.KP}}),M.A,O,x.s,m,I.W,w.Q,B.e,u.y,L.Q,on.i,h.M,W.x,sn.w,j.s,cn.m,F.cD,b.sL,A.L,$.WG]]}),Y})()},8291:(G,Q,i)=>{i.d(Q,{a:()=>he});var _=i(712),a=i(373),z=i(4850),t=i(1059),n=i(5e3),m=i(325),T=i(9808),O=i(1894),x=i(8144),M=i(8929),S=i(6123),D=i(7625),y=i(9350),P=i(9169),I=i(2359),w=i(6949),B=i(7484),u=i(5482),L=i(3762);const h=["itemTemplate"],F=function(e){return{$implicit:e}};function J(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",9),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function W(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}function K(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",14),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function V(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Removed")}}function C(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,K,3,4,"nz-list-item",13),n.YNc(2,V,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Removed ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.removedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.removedObjects.length)}}function b(e,l){1&e&&(n.ynx(0),n.YNc(1,C,3,3,"nz-list",7),n.BQk())}function A(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",16),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(2);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function $(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(2);n.MGl("nzNoResult","No ",o.entityType," Added")}}function H(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,A,3,4,"nz-list-item",15),n.YNc(2,$,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw();n.MGl("nzHeader","Added ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.addedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.addedObjects.length)}}function f(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",18),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function N(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Kept")}}function Z(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,f,3,4,"nz-list-item",17),n.YNc(2,N,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Kept ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.keptObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.keptObjects.length)}}function j(e,l){1&e&&(n.ynx(0),n.YNc(1,Z,3,3,"nz-list",7),n.BQk())}function k(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",19),n.TgZ(1,"span",10),n.GkF(2,11),n.qZA(),n.qZA()),2&e){const o=l.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,F,o))}}function en(e,l){if(1&e&&n._UZ(0,"nz-list-empty",12),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}let sn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.diffObject)throw new Error("Must specify a diffObject.");if(void 0===this.entityType)throw new Error("Must specify an entityType.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(o,r,d){if(1&o&&n.Suo(d,h,5),2&o){let R;n.iGM(R=n.CRH())&&(r.itemTemplateRef=R.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:12,consts:[[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader"],["ngClass","current",4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nzDirection","vertical"],[4,"ngIf"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader",4,"nzSpaceItem"],["ngClass","suggested",4,"ngFor","ngForOf"],["ngClass","current"],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoResult"],["ngClass","removed",4,"ngFor","ngForOf"],["ngClass","removed"],["ngClass","added",4,"ngFor","ngForOf"],["ngClass","added"],["ngClass","kept",4,"ngFor","ngForOf"],["ngClass","kept"],["ngClass","suggested"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"nz-list",2),n.YNc(3,J,3,4,"nz-list-item",3),n.YNc(4,W,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"nz-space",5),n.YNc(7,b,2,0,"ng-container",6),n.YNc(8,H,3,3,"nz-list",7),n.YNc(9,j,2,0,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(10,"nz-col",1),n.TgZ(11,"nz-list",2),n.YNc(12,k,3,4,"nz-list-item",8),n.YNc(13,en,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Original ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.currentObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.currentObjects.length),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(2),n.Q6J("ngIf",r.diffObject.currentObjects.length>0),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Revised ",r.entityType," List"),n.xp6(1),n.Q6J("ngForOf",r.diffObject.suggestedObjects),n.xp6(1),n.Q6J("ngIf",0===r.diffObject.suggestedObjects.length))},directives:[O.SK,O.t3,L.n_,T.sg,L.AA,T.mk,T.tP,T.O5,L.I2,x.NU,x.$1],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})();var cn=i(6906),on=i(4022),ln=i(7469),Y=i(8481),q=i(7701),X=i(7956),E=i(8664),nn=i(9001);let tn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.left)throw new Error("Must provide a left side of the diff.");if(void 0===this.right)throw new Error("Must provide a right side of the diff.");if(void 0===this.entityType)throw new Error("Must provide a diff.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-value-diff"]],inputs:{currentValue:"currentValue",suggestedValue:"suggestedValue",left:"left",right:"right",entityType:"entityType"},decls:15,vars:10,consts:[[3,"nzGutter"],[3,"nzSpan"],[3,"innerHtml"],[1,"diff","suggested"],[1,"background"]],template:function(o,r){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"h4"),n._uU(3),n.qZA(),n._UZ(4,"div",2),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"h4"),n._uU(7),n.qZA(),n._UZ(8,"div",2),n.qZA(),n.TgZ(9,"nz-col",1),n.TgZ(10,"h4"),n._uU(11),n.qZA(),n.TgZ(12,"div",3),n.TgZ(13,"div",4),n._uU(14),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Original ",r.entityType,""),n.xp6(1),n.Q6J("innerHtml",r.left,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("",r.entityType," Diff"),n.xp6(1),n.Q6J("innerHtml",r.right,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Revised ",r.entityType,""),n.xp6(3),n.hij(" ",r.suggestedValue," "))},directives:[O.SK,O.t3],styles:[":host{display:block}.diff{overflow:auto;width:100%}.diff .background{padding:4px 8px}.diff.insertions .background{background:#f6ffed;color:#237804}.diff.deletions .background{background:#fff1f0;color:#a8071a}.diff.suggested .background,.diff.original .background{background:#f0f5ff;color:#10239e}.diff del,.diff ins{text-decoration:none}.diff del strong{font-weight:400;background:#fcc}.diff ins strong{font-weight:400;background:#9f9}.diff .del{font-weight:400;background:#fee;color:#b00}.diff .ins{font-weight:400;background:#dfd;color:#080}ul{list-style:none}\n"],encapsulation:2}),e})();var fn=i(5737),un=i(7948),zn=i(3618),Cn=i(125),_n=i(647),gn=i(2683),Tn=i(3610),xn=i(4590),pn=i(6042),hn=i(6114),yn=i(404),mn=i(685),dn=i(2643),An=i(9383),Zn=i(8227),On=i(1793),vn=i(3098),Rn=i(1243),Fn=i(8625);function Ln(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",4),n.NdJ("nzOnClose",function(){const R=n.CHM(o).$implicit;return n.oxw().onErrorBannerClose(R)}),n.qZA()}2&e&&n.Q6J("nzMessage",l.$implicit)}function Mn(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",5),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw().onSuccessBannerClose()}),n.qZA()}if(2&e){const o=n.oxw();n.MGl("nzMessage","Revision(s) successfully ",o.success,".")}}function bn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function En(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",18),n.YNc(2,bn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const an=function(e,l,o){return{id:e,name:l,link:o}};function Sn(e,l){if(1&e&&n._UZ(0,"cvc-disease-tag",22),2&e){const o=l.$implicit;n.Q6J("disease",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Qn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",21),n.YNc(2,Sn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Nn(e,l){if(1&e&&n._UZ(0,"cvc-drug-tag",24),2&e){const o=l.$implicit;n.Q6J("drug",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Pn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",23),n.YNc(2,Nn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function In(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Jn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",25),n.YNc(2,In,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Yn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Un(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",26),n.YNc(2,Yn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Dn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Bn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,Dn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function $n(e,l){if(1&e&&n._UZ(0,"cvc-variant-type-tag",29),2&e){const o=l.$implicit;n.Q6J("variantType",n.kEZ(1,an,o.id,o.displayName,o.link))}}function wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",28),n.YNc(2,$n,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function jn(e,l){if(1&e&&n._UZ(0,"cvc-phenotype-tag",31),2&e){const o=l.$implicit;n.Q6J("phenotype",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",30),n.YNc(2,jn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Vn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Kn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",32),n.YNc(2,Vn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Gn(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Hn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",34),n.YNc(2,Gn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function kn(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function qn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",35),n.YNc(2,kn,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const Xn=function(e,l,o,r){return{id:e,name:l,link:o,status:r}};function nt(e,l){if(1&e&&n._UZ(0,"cvc-evidence-tag",37),2&e){const o=l.$implicit;n.Q6J("evidence",n.l5B(1,Xn,o.id,o.displayName,o.link,o.status))}}function tt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",36),n.YNc(2,nt,1,6,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function et(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-revision-value-diff",38),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("currentValue",o.currentValue)("suggestedValue",o.suggestedValue)("left",o.linkoutData.diffValue.left)("right",o.linkoutData.diffValue.right)("entityType",o.linkoutData.name)}}function ot(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-comment-body",42),n.BQk()),2&e){const o=n.oxw(2).$implicit;n.xp6(1),n.Q6J("commentBodySegments",o.resolutionComment.parsedComment)}}function it(e,l){if(1&e&&n._UZ(0,"cvc-user-tag",43),2&e){const o=n.oxw(2).$implicit;n.Q6J("user",o.resolver)}}function at(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"nz-divider"),n.TgZ(2,"nz-row"),n.TgZ(3,"nz-col",39),n.YNc(4,ot,2,1,"ng-container",15),n.qZA(),n.TgZ(5,"nz-col",40),n._uU(6),n.ALo(7,"enumToTitle"),n.YNc(8,it,1,1,"cvc-user-tag",41),n._uU(9),n.ALo(10,"timeago"),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(4),n.Q6J("ngIf",o.resolutionComment),n.xp6(2),n.hij(" ",n.lcZ(7,4,o.status)," By "),n.xp6(2),n.Q6J("ngIf",void 0!==o.resolver),n.xp6(1),n.hij(" ",n.lcZ(10,6,o.resolvedAt)," ")}}function st(e,l){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"i",45),n._uU(2),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.qZA()),2&e){const o=n.oxw(2).$implicit;n.xp6(2),n.hij(" RID",o.id," "),n.xp6(2),n.hij("",o.linkoutData.name," Updated")}}function ct(e,l){if(1&e&&n._UZ(0,"i",48),2&e){n.oxw();const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function lt(e,l){if(1&e&&n._UZ(0,"cvc-comment-body",42),2&e){const o=n.oxw(3).$implicit;n.Q6J("commentBodySegments",o.creationComment.parsedComment)}}function rt(e,l){1&e&&(n.ynx(0),n.YNc(1,ct,1,1,"i",46),n.YNc(2,lt,1,1,"ng-template",null,47,n.W1O),n.BQk())}function _t(e,l){if(1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,st,5,2,"span",44),n.YNc(2,rt,4,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",o.creationComment)}}function gt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",55),n._uU(2,"Submitted By"),n.qZA(),n._UZ(3,"cvc-user-tag",43),n.BQk()),2&e){const o=n.oxw(3).$implicit;n.xp6(3),n.Q6J("user",o.revisor)}}function c(e,l){1&e&&(n.TgZ(0,"span",55),n._uU(1,"Submitted"),n.qZA())}function p(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,gt,4,1,"ng-container",53),n.YNc(2,c,2,0,"ng-template",null,54,n.W1O),n.TgZ(4,"span",55),n._uU(5),n.ALo(6,"timeago"),n.qZA(),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",r.revisor)("ngIfElse",o),n.xp6(4),n.Oqu(n.lcZ(6,3,r.createdAt))}}function s(e,l){if(1&e&&n._UZ(0,"cvc-status-tag",56),2&e){const o=n.oxw(2).$implicit;n.Q6J("status",o.status)}}function g(e,l){1&e&&n._UZ(0,"nz-divider",57)}function v(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"a",58),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).$implicit;return n.oxw(3).onChangesetSelected(d.revisionsetId)}),n._uU(1,"Show Group"),n.qZA()}}function U(e,l){1&e&&n._UZ(0,"nz-divider",57)}function mt(e,l){1&e&&n._UZ(0,"label",61),2&e&&n.Q6J("nzDisabled",!0)}function dt(e,l){1&e&&n._UZ(0,"label",64),2&e&&n.Q6J("nzDisabled",!0)}function vt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"label",65),n.NdJ("nzCheckedChange",function(d){n.CHM(o);const R=n.oxw(5).$implicit;return n.oxw(3).onRevisionCheckboxClicked(d,R.id)}),n.qZA()}}function ft(e,l){if(1&e&&(n.YNc(0,dt,1,1,"label",62),n.YNc(1,vt,1,0,"ng-template",null,63,n.W1O)),2&e){const o=n.MAs(2),r=n.oxw(4).$implicit,d=n.oxw(2).ngrxLet;n.Q6J("ngIf",d.isCurator&&d.id!=(null==r.revisor?null:r.revisor.id))("ngIfElse",o)}}function ut(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,mt,1,1,"label",59),n.YNc(2,ft,3,2,"ng-template",null,60,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw(5).ngrxLet;n.xp6(1),n.Q6J("ngIf",!r.signedIn)("ngIfElse",o)}}function zt(e,l){1&e&&(n.ynx(0),n.YNc(1,U,1,0,"nz-divider",51),n.YNc(2,ut,4,2,"span",44),n.BQk())}function Ct(e,l){if(1&e&&(n.TgZ(0,"nz-space",49),n.NdJ("click",function(r){return r.stopPropagation()}),n.YNc(1,p,7,5,"span",44),n.YNc(2,s,1,1,"cvc-status-tag",50),n.YNc(3,g,1,0,"nz-divider",51),n.YNc(4,v,2,0,"a",52),n.YNc(5,zt,3,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(5),n.Q6J("ngIf","NEW"===o.status)}}function Tt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse-panel",11),n.ynx(1,12),n.YNc(2,En,4,1,"ng-container",13),n.YNc(3,Qn,4,1,"ng-container",13),n.YNc(4,Pn,4,1,"ng-container",13),n.YNc(5,Jn,4,1,"ng-container",13),n.YNc(6,Un,4,1,"ng-container",13),n.YNc(7,Bn,4,1,"ng-container",13),n.YNc(8,wn,4,1,"ng-container",13),n.YNc(9,Wn,4,1,"ng-container",13),n.YNc(10,Kn,4,1,"ng-container",13),n.YNc(11,Hn,4,1,"ng-container",13),n.YNc(12,qn,4,1,"ng-container",13),n.YNc(13,tt,4,1,"ng-container",13),n.YNc(14,et,2,5,"ng-container",14),n.BQk(),n.YNc(15,at,11,8,"ng-container",15),n.YNc(16,_t,3,1,"ng-template",null,16,n.W1O),n.YNc(18,Ct,6,1,"ng-template",null,17,n.W1O),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(17),d=n.MAs(19);n.Q6J("nzHeader",r)("nzExtra",d)("nzActive",!0),n.xp6(1),n.Q6J("ngSwitch",o.fieldName),n.xp6(1),n.Q6J("ngSwitchCase","source_ids"),n.xp6(1),n.Q6J("ngSwitchCase","disease_id"),n.xp6(1),n.Q6J("ngSwitchCase","drug_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clinvar_entry_ids"),n.xp6(1),n.Q6J("ngSwitchCase","hgvs_expression_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_type_ids"),n.xp6(1),n.Q6J("ngSwitchCase","phenotype_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_id"),n.xp6(1),n.Q6J("ngSwitchCase","variant_ids"),n.xp6(1),n.Q6J("ngSwitchCase","source_id"),n.xp6(1),n.Q6J("ngSwitchCase","evidence_item_ids"),n.xp6(2),n.Q6J("ngIf","NEW"!==o.status)}}function xt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse",9),n.YNc(1,Tt,20,17,"nz-collapse-panel",10),n.qZA()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",o.untypedRevisons)}}function ht(e,l){1&e&&n._UZ(0,"nz-empty",66)}function yt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",6),n.YNc(2,xt,2,1,"nz-collapse",7),n.YNc(3,ht,1,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.MAs(4),r=n.oxw(),d=n.MAs(4);n.xp6(1),n.Q6J("nzExtra",d),n.xp6(1),n.Q6J("ngIf",r.revisions&&r.revisions.length>0)("ngIfElse",o)}}function At(e,l){}function Zt(e,l){1&e&&n.YNc(0,At,0,0,"ng-template")}function Ot(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Zt,1,0,void 0,75),n.BQk()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Rt(e,l){}function Ft(e,l){1&e&&n.YNc(0,Rt,0,0,"ng-template")}function Lt(e,l){if(1&e&&(n.TgZ(0,"span",76),n.YNc(1,Ft,1,0,void 0,75),n.qZA()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Mt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",77),n.NdJ("nzPopoverVisibleChange",function(d){return n.CHM(o),n.oxw(7).validationPopoverVisible=d})("click",function(){n.CHM(o);const d=n.oxw(7);return d.validationPopoverVisible=!d.validationPopoverVisible}),n._uU(1," Review Selected Revisions "),n._UZ(2,"i",78),n.qZA()}if(2&e){const o=n.oxw(2).ngrxLet,r=n.MAs(7),d=n.MAs(9),R=n.oxw(5);n.Q6J("nzPopoverTitle",r)("nzPopoverVisible",R.validationPopoverVisible)("nzPopoverContent",d)("nzPopoverTrigger",void 0)("disabled",0===R.selectedRevisionIds.length||!o.signedIn)}}function bt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Ot,2,1,"ng-container",53),n.YNc(2,Lt,2,1,"ng-template",null,73,n.W1O),n.YNc(4,Mt,3,5,"ng-template",null,74,n.W1O),n.qZA()),2&e){const o=n.MAs(3),r=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)("ngIfElse",o)}}function Et(e,l){if(1&e&&n._UZ(0,"i",80),2&e){n.oxw(4);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function St(e,l){1&e&&(n.ynx(0),n.YNc(1,Et,1,1,"i",79),n.BQk())}const Qt=function(){return{float:"right"}};function Nt(e,l){if(1&e){const o=n.EpF();n._uU(0," Review Selected Revisions "),n.TgZ(1,"span",81),n.TgZ(2,"i",82),n.NdJ("click",function(){return n.CHM(o),n.oxw(6).validationPopoverVisible=!1}),n.qZA(),n.qZA()}2&e&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,Qt)))}function Pt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-comment-input-form",85),n.NdJ("commentChange",function(d){return n.CHM(o),n.oxw(7).revisionComment=d}),n.qZA()}if(2&e){const o=n.oxw(7);n.Q6J("comment",o.revisionComment)}}function It(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",87),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onRejectRevisionsClicked()}),n._uU(3," Reject Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(8);n.xp6(1),n.Q6J("selectedOrg",o.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",o.isLoading)("disabled",void 0===o.revisionComment||o.revisionComment.length<10)}}function Jt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",88),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onAcceptRevisionClicked()}),n._uU(3," Accept Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(4).ngrxLet,r=n.oxw(4);n.xp6(1),n.Q6J("selectedOrg",r.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",r.isLoading)("disabled",!(0==o&&(void 0===r.revisionComment||""===r.revisionComment||r.revisionComment.length>=10)))}}function Yt(e,l){if(1&e&&n._UZ(0,"i",90),2&e){n.oxw(6);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function Ut(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Yt,1,1,"i",89),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(1),n.Q6J("ngIf",o>0)}}function Dt(e,l){1&e&&(n.TgZ(0,"span"),n.TgZ(1,"nz-space"),n.YNc(2,It,4,3,"span",44),n.YNc(3,Jt,4,3,"span",44),n.YNc(4,Ut,2,1,"span",44),n.qZA(),n.qZA())}function Bt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Pt,1,1,"cvc-comment-input-form",84),n.YNc(2,Dt,5,0,"span",44),n.qZA())}function $t(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"div",68),n.TgZ(2,"div",69),n.TgZ(3,"nz-space",70),n.YNc(4,bt,6,2,"span",44),n.YNc(5,St,2,0,"ng-container",15),n.qZA(),n.YNc(6,Nt,3,2,"ng-template",null,71,n.W1O),n.YNc(8,Bt,3,0,"ng-template",null,72,n.W1O),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().ngrxLet;n.xp6(5),n.Q6J("ngIf",o>0)}}function wt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,$t,10,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(4);n.xp6(1),n.Q6J("ngrxLet",o.viewer$)}}function jt(e,l){if(1&e&&(n.TgZ(0,"nz-list-item"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o)}}function Wt(e,l){if(1&e&&(n.TgZ(0,"nz-card",92),n.TgZ(1,"nz-list",93),n.YNc(2,jt,2,1,"nz-list-item",94),n.qZA(),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Vt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Wt,3,1,"nz-card",91),n.qZA()),2&e){const o=n.oxw(2).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function Kt(e,l){if(1&e&&(n.TgZ(0,"nz-descriptions-item",99),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.Q6J("nzTitle",o.fieldName),n.xp6(1),n.Oqu(o.error)}}function Gt(e,l){if(1&e&&(n.TgZ(0,"nz-card",96),n.TgZ(1,"nz-descriptions",97),n.YNc(2,Kt,2,2,"nz-descriptions-item",98),n.qZA(),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function Ht(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Gt,3,1,"nz-card",95),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function kt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Vt,2,1,"span",44),n.YNc(2,Ht,2,1,"span",44),n.qZA())}function qt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,wt,2,1,"ng-container",2),n.YNc(2,kt,3,0,"ng-template",null,67,n.W1O),n.BQk()),2&e){const o=n.oxw(3);n.xp6(1),n.Q6J("ngrxLet",o.totalErrorCount$)}}function Xt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,qt,4,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",o.genericErrors$)}}function ne(e,l){if(1&e&&n.YNc(0,Xt,2,1,"ng-container",2),2&e){const o=n.oxw();n.Q6J("ngrxLet",o.validationErrors$)}}let te=(()=>{class e{constructor(o,r,d,R,rn){this.viewerService=o,this.networkErrorService=r,this.acceptRevisionsGql=d,this.rejectRevisionsGql=R,this.validationGql=rn,this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new M.xQ,this.revisionSetSelectedEvent=new n.vpe,this.revisionMutationCompleted=new n.vpe,this.acceptRevisionsMutator=new S.U(r),this.rejectRevisionsMutator=new S.U(r)}ngOnChanges(o){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(o=>{this.mostRecentOrg=o.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors)),this.validationErrors$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.validationErrors)),this.totalErrorCount$=this.queryRef.valueChanges.pipe((0,z.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors.length+o.validateRevisionsForAcceptance.validationErrors.length),(0,t.O)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(o){this.revisionSetSelectedEvent.emit(o)}onRevisionCheckboxClicked(o,r){o?this.selectedRevisionIds.push(r):this.selectedRevisionIds=this.selectedRevisionIds.filter(d=>d!=r),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(o,r){o.submitSuccess$.pipe((0,D.R)(this.destroy$)).subscribe(d=>{d&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=r,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])}),o.submitError$.pipe((0,D.R)(this.destroy$)).subscribe(d=>{d.length>0&&(this.isLoading=!1,this.success=!1,this.errors=d,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){var o;if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let r=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:this.revisionComment}},{refetchQueries:[this.refetchQuery]});this.setupMutationResultHandlers(r,"rejected")}}onAcceptRevisionClicked(){var o;this.isLoading=!0;let r=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:""===this.revisionComment?void 0:this.revisionComment}},{refetchQueries:[this.refetchQuery]});this.setupMutationResultHandlers(r,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(o){var r;this.errors=null===(r=this.errors)||void 0===r?void 0:r.filter(d=>d!=o)}onSuccessBannerClose(){this.success=!1}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(y.a),n.Y36(P.Y),n.Y36(_.ti),n.Y36(_.VZq),n.Y36(_.Qzn))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions",refetchQuery:"refetchQuery"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.TTD],decls:5,vars:3,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["moderationButtons",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],["noRevisions",""],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["entityType","Sources",3,"diffObject"],["itemTemplate",""],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Drugs",3,"diffObject"],[3,"drug"],["entityType","Variant Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","HGVS Expressions",3,"diffObject"],["entityType","Variant Types",3,"diffObject"],[3,"variantType"],["entityType","Phenotypes",3,"diffObject"],[3,"phenotype"],["entityType","Variant",3,"diffObject"],[3,"variant"],["entityType","Variants",3,"diffObject"],["entityType","Source",3,"diffObject"],["entityType","Evidence",3,"diffObject"],[3,"evidence"],[3,"currentValue","suggestedValue","left","right","entityType"],["nzSpan","16"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"commentBodySegments"],[3,"user"],[4,"nzSpaceItem"],["nz-icon","","nzType","civic:revision"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent",4,"nzSpaceItem"],["creationCommentTemplate",""],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent"],["nzSize","small",3,"click"],[3,"status",4,"nzSpaceItem"],["nzType","vertical",4,"nzSpaceItem"],["nz-button","","nzType","link",3,"click",4,"nzSpaceItem"],[4,"ngIf","ngIfElse"],["noRevisor",""],["nz-typography","","nzType","secondary"],[3,"status"],["nzType","vertical"],["nz-button","","nzType","link",3,"click"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["loggedIn",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["canRevise",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Select Revision for Acceptance/Rejection",3,"nzCheckedChange"],["nzNotFoundImage","simple","nzNotFoundContent","No Revisions matching filters"],["validationErrorTemplate",""],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzDirection","vertical"],[3,"comment","commentChange",4,"nzSpaceItem"],[3,"comment","commentChange"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","",3,"nzLoading","disabled","click"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small",3,"nzLoading","disabled","click"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"ngIf"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],["nzTitle","Errors",4,"ngIf"],["nzTitle","Errors"],["nzSize","small"],[4,"ngFor","ngForOf"],["nzTitle","Validation Errors",4,"ngIf"],["nzTitle","Validation Errors"],["nzBordered",""],[3,"nzTitle",4,"ngFor","ngForOf"],[3,"nzTitle"]],template:function(o,r){1&o&&(n.YNc(0,Ln,1,1,"nz-alert",0),n.YNc(1,Mn,1,1,"nz-alert",1),n.YNc(2,yt,5,3,"ng-container",2),n.YNc(3,ne,1,1,"ng-template",null,3,n.W1O)),2&o&&(n.Q6J("ngForOf",r.errors),n.xp6(1),n.Q6J("ngIf",r.success),n.xp6(1),n.Q6J("ngrxLet",r.viewer$))},directives:[T.sg,I.r,T.O5,w.eJ,B.bd,u.yH,u.Zv,T.RF,T.n9,sn,cn.T,on.n,ln.u,Y.j,q.j,X.i,E.I,nn.O,T.ED,tn,fn.g,O.SK,O.t3,un.m,zn.ZU,Cn.I,x.NU,x.$1,_n.Ls,gn.w,Tn.lU,xn.h,pn.ix,hn.Ie,yn.SY,mn.p9,T.tP,dn.dQ,T.PC,An.b,Zn.q,On.m,L.n_,L.AA,vn.R7,vn.uj],pipes:[Rn.I,Fn.wr],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}"]}),e})();var ee=i(8747),oe=i(6699);function ie(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-revision-list",14),n.NdJ("revisionSetSelectedEvent",function(d){return n.CHM(o),n.oxw(2).onRevisionSetSelected(d)})("revisionMutationCompleted",function(){return n.CHM(o),n.oxw(2).refresh()}),n.ALo(1,"ngrxPush"),n.qZA()}if(2&e){const o=n.oxw(2);n.Q6J("revisions",n.lcZ(1,2,o.revisions$))("refetchQuery",o.refetchQuery)}}function ae(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(null==d?null:d.endCursor)}),n._uU(1,"Load More"),n.qZA()}}function se(e,l){1&e&&(n.ynx(0),n.YNc(1,ae,2,0,"button",16),n.BQk())}function ce(e,l){if(1&e&&(n.ynx(0),n.YNc(1,se,2,0,"ng-container",15),n.BQk()),2&e){const o=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",null==o?null:o.hasNextPage)}}function le(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-row"),n.TgZ(1,"nz-tag",19),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw(3).onSetFilterClearClicked()}),n._uU(2),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(3);n.xp6(2),n.hij("Group: ",o.filteredSet,"")}}function re(e,l){1&e&&(n.TgZ(0,"nz-space",4),n.YNc(1,le,3,1,"nz-row",18),n.qZA())}function _e(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function ge(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function pe(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function me(e,l){if(1&e&&(n.YNc(0,ge,1,1,"nz-avatar",20),n.YNc(1,pe,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function de(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function ve(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function fe(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function ue(e,l){if(1&e&&(n.YNc(0,ve,1,1,"nz-avatar",20),n.YNc(1,fe,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,r=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",r),n.xp6(4),n.Oqu(o.username)}}function ze(e,l){if(1&e){const o=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2),n.TgZ(2,"nz-col",3),n.TgZ(3,"nz-space",4),n.YNc(4,ie,2,4,"cvc-revision-list",5),n.YNc(5,ce,2,1,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",7),n.YNc(7,re,2,0,"nz-space",8),n.TgZ(8,"cvc-participant-list",9),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onStatusSelected(d)}),n.YNc(9,_e,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onRevisorSelected(d)}),n.ALo(12,"ngrxPush"),n.YNc(13,me,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onFieldNameSelected(d)}),n.ALo(16,"ngrxPush"),n.YNc(17,de,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",13),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onResolverSelected(d)}),n.ALo(20,"ngrxPush"),n.YNc(21,ue,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&e){const o=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(4),n.Q6J("ngrxLet",o.pageInfo$),n.xp6(2),n.Q6J("ngIf",o.filteredSet),n.xp6(1),n.Q6J("preselectedOption",o.selectableStatuses[0])("participantList",o.selectableStatuses),n.xp6(3),n.Q6J("participantList",n.lcZ(12,8,o.uniqueRevisors$)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,10,o.revisionFields$)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,12,o.uniqueResolvers$))}}function Ce(e,l){1&e&&(n.ynx(0),n.TgZ(1,"nz-row",25),n._UZ(2,"i",26),n.qZA(),n.BQk())}function Te(e,l){1&e&&n._UZ(0,"nz-empty",27)}function xe(e,l){if(1&e&&(n.YNc(0,Ce,3,0,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Te,1,0,"ng-template",null,24,n.W1O)),2&e){const o=n.MAs(3),r=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,r.isLoading$))("ngIfElse",o)}}let he=(()=>{class e{constructor(o,r,d,R,rn,pt,ye){this.gql=o,this.route=r,this.variantDetailGql=d,this.variantGroupDetailGql=R,this.assertionDetailGql=rn,this.geneDetailGql=pt,this.evidenceDetailGql=ye,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:_.FJi.New},{id:1,displayName:"Accepted",value:_.FJi.Accepted},{id:2,displayName:"Rejected",value:_.FJi.Rejected},{id:3,displayName:"Superseded",value:_.FJi.Superseded}],this.defaultPageSize=10}ngOnInit(){switch(this.routeSub=this.route.params.subscribe(o=>{this.queryRef=this.gql.watch({first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:_.FJi.New});let r=this.queryRef.valueChanges;this.revisions$=r.pipe((0,a.j)("data","revisions","edges"),(0,z.U)(d=>d.map(R=>R.node))),this.isLoading$=r.pipe((0,z.U)(d=>d.loading),(0,t.O)(!0)),this.pageInfo$=r.pipe((0,a.j)("data","revisions","pageInfo")),this.uniqueRevisors$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.uniqueRevisors})),this.uniqueResolvers$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.uniqueResolvers})),this.revisionFields$=r.pipe((0,z.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.revisedFieldNames.map((rn,pt)=>Object.assign(Object.assign({},rn),{id:pt}))})),this.unfilteredCount$=r.pipe((0,a.j)("data","revisions","unfilteredCountForSubject"))}),this.entityType){case _.oRL.Variant:return void(this.refetchQuery={query:this.variantDetailGql.document,variables:{variantId:this.id}});case _.oRL.Assertion:return void(this.refetchQuery={query:this.assertionDetailGql.document,variables:{assertionId:this.id}});case _.oRL.EvidenceItem:return void(this.refetchQuery={query:this.evidenceDetailGql.document,variables:{evidenceId:this.id}});case _.oRL.Gene:return void(this.refetchQuery={query:this.geneDetailGql.document,variables:{geneId:this.id}});case _.oRL.VariantGroup:return void(this.refetchQuery={query:this.variantGroupDetailGql.document,variables:{variantGroupId:this.id}})}}ngOnDestroy(){var o;null===(o=this.routeSub)||void 0===o||o.unsubscribe()}onFieldNameSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},fieldName:o?o.name:void 0})}onRevisorSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},originatingUserId:o?o.id:void 0})}onResolverSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},resolvingUserId:o?o.id:void 0})}onStatusSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},status:o?o.value:void 0})}onRevisionSetSelected(o){this.filteredSet=o,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:o||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(o){var r;null===(r=this.queryRef)||void 0===r||r.fetchMore({variables:{first:this.defaultPageSize,after:o}})}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(_.L5n),n.Y36(m.gz),n.Y36(_.iJT),n.Y36(_.Qtd),n.Y36(_.A94),n.Y36(_.TNk),n.Y36(_.pHu))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{id:"id",entityType:"entityType"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noRevisions",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"revisions","refetchQuery","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Revision Status",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Revisors",3,"participantList","participantSelectedEvent"],["listTitle","Fields Revised",3,"participantList","participantSelectedEvent"],["listTitle","Resolvers",3,"participantList","participantSelectedEvent"],[3,"revisions","refetchQuery","revisionSetSelectedEvent","revisionMutationCompleted"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[4,"nzSpaceItem"],["nzMode","closeable",3,"nzOnClose"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["noneFound",""],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(o,r){if(1&o&&(n.YNc(0,ze,23,14,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,xe,4,4,"ng-template",null,1,n.W1O)),2&o){const d=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,r.unfilteredCount$))("ngIfElse",d)}},directives:[T.O5,O.SK,O.t3,x.NU,x.$1,te,w.eJ,pn.ix,dn.dQ,gn.w,Y.j,ee.l,oe.Dz,_n.Ls,mn.p9],pipes:[w.fM,T.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})()},2914:(G,Q,i)=>{i.d(Q,{A:()=>w});var _=i(9808),a=i(6949),z=i(1894),t=i(3762),n=i(7484),m=i(8144),T=i(8481),O=i(3618),x=i(1150),M=i(6699),S=i(1835),D=i(685),y=i(6042),P=i(647),I=i(5e3);let w=(()=>{class B{}return B.\u0275fac=function(L){return new(L||B)},B.\u0275mod=I.oAB({type:B}),B.\u0275inj=I.cJS({imports:[[_.ez,a.WG,z.Jb,t.Ph,n.vh,m.zf,T.X,O.ZJ,M.Rt,D.Xo,y.sL,P.PV,x.N,S.i]]}),B})()},759:(G,Q,i)=>{i.d(Q,{N:()=>V});var _=i(373),a=i(5e3),z=i(712),t=i(3618),n=i(9808),m=i(325),T=i(6699),O=i(3610),x=i(6265),M=i(3098),S=i(2937);function D(C,b){1&C&&(a.ynx(0),a._uU(1,", "),a.BQk())}function y(C,b){if(1&C&&(a.ynx(0),a._uU(1),a.ALo(2,"eventVerbiage"),a.YNc(3,D,2,0,"ng-container",12),a.BQk()),2&C){const A=b.$implicit,$=b.last;a.xp6(1),a.hij(" ",a.Dn7(2,2,A.action,"contributor-card",A.count),""),a.xp6(2),a.Q6J("ngIf",!$)}}function P(C,b){if(1&C&&(a.TgZ(0,"nz-descriptions",8),a.TgZ(1,"nz-descriptions-item",9),a.YNc(2,y,4,6,"ng-container",10),a.qZA(),a.TgZ(3,"nz-descriptions-item",11),a._uU(4),a.ALo(5,"date"),a.qZA(),a.qZA()),2&C){const A=a.oxw(2).$implicit;a.Q6J("nzColumn",1),a.xp6(2),a.Q6J("ngForOf",A.uniqueActions),a.xp6(2),a.hij(" ",a.lcZ(5,3,A.lastActionDate)," ")}}function I(C,b){if(1&C&&(a.TgZ(0,"cvc-user-popover",6),a.YNc(1,P,6,5,"ng-template",null,7,a.W1O),a.qZA()),2&C){const A=a.oxw().$implicit;a.Q6J("userId",A.user.id)}}function w(C,b){if(1&C&&(a.TgZ(0,"a",3),a._UZ(1,"nz-avatar",4),a.YNc(2,I,3,1,"ng-template",null,5,a.W1O),a.qZA()),2&C){const A=b.$implicit,$=a.MAs(3);a.MGl("routerLink","/users/",A.user.id,""),a.xp6(1),a.Q6J("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",$)("nzSrc",A.user.profileImagePath)}}function B(C,b){if(1&C&&(a.ynx(0),a.YNc(1,w,4,5,"a",2),a.BQk()),2&C){const A=a.oxw();a.xp6(1),a.Q6J("ngForOf",A.sortedContributors)}}function u(C,b){1&C&&a._uU(0," None\n")}let L=(()=>{class C{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((A,$)=>$.totalActionCount-A.totalActionCount)}}return C.\u0275fac=function(A){return new(A||C)},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noContributors",""],["class","avatar",3,"routerLink",4,"ngFor","ngForOf"],[1,"avatar",3,"routerLink"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","bottomRight","nzIcon","user","nzSize","small",3,"nzSize","nzPopoverMouseEnterDelay","nzPopoverContent","nzSrc"],["curatorPopover",""],[3,"userId"],["additionalMetadata",""],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(A,$){if(1&A&&(a.YNc(0,B,2,1,"ng-container",0),a.YNc(1,u,1,0,"ng-template",null,1,a.W1O)),2&A){const H=a.MAs(2);a.Q6J("ngIf",$.sortedContributors&&$.sortedContributors.length>0)("ngIfElse",H)}},directives:[n.O5,n.sg,m.yS,T.Dz,O.lU,x.q,M.R7,M.uj],pipes:[S.R,n.uU],styles:[""]}),C})();var h=i(6949);function F(C,b){if(1&C&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&C){const A=b.ngIf;a.xp6(1),a.Q6J("contributors",A)}}function J(C,b){1&C&&a._uU(0," None ")}function W(C,b){if(1&C&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&C){const A=b.ngIf;a.xp6(1),a.Q6J("contributors",A)}}function K(C,b){1&C&&a._uU(0," None ")}let V=(()=>{class C{constructor(A){this.gql=A}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let A=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=A.pipe((0,_.j)("data","contributors","curators")),this.editors$=A.pipe((0,_.j)("data","contributors","editors"))}}return C.\u0275fac=function(A){return new(A||C)(a.Y36(z.kQf))},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],["noCurators",""],["noEditors",""],[3,"contributors"]],template:function(A,$){if(1&A&&(a.TgZ(0,"span",0),a._uU(1,"Curators:"),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,F,2,1,"ng-container",2),a.ALo(4,"ngrxPush"),a.YNc(5,J,1,0,"ng-template",null,3,a.W1O),a.qZA(),a.TgZ(7,"span",0),a._uU(8,"Editors:"),a.qZA(),a.TgZ(9,"div",1),a.YNc(10,W,2,1,"ng-container",2),a.ALo(11,"ngrxPush"),a.YNc(12,K,1,0,"ng-template",null,4,a.W1O),a.qZA()),2&A){const H=a.MAs(6),f=a.MAs(13);a.xp6(3),a.Q6J("ngIf",a.lcZ(4,4,$.curators$))("ngIfElse",H),a.xp6(7),a.Q6J("ngIf",a.lcZ(11,6,$.editors$))("ngIfElse",f)}},directives:[t.ZU,n.O5,L],pipes:[h.fM],styles:["[_nghost-%COMP%]{display:inline-block}.role-group-label[_ngcontent-%COMP%]{margin-left:12px}.role-group[_ngcontent-%COMP%]{display:inline-block}.role-group[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{display:inline-block;margin-left:2px}"]}),C})()},5750:(G,Q,i)=>{i.d(Q,{Z:()=>D});var _=i(9808),a=i(6949),z=i(3618),t=i(325),n=i(6699),m=i(3610),T=i(9444),O=i(6081),x=i(3098),M=i(5e3);let S=(()=>{class y{}return y.\u0275fac=function(I){return new(I||y)},y.\u0275mod=M.oAB({type:y}),y.\u0275inj=M.cJS({imports:[[_.ez,t.Bz,n.Rt,m.$6,x.q6,T.s,O.J]]}),y})(),D=(()=>{class y{}return y.\u0275fac=function(I){return new(I||y)},y.\u0275mod=M.oAB({type:y}),y.\u0275inj=M.cJS({imports:[[_.ez,a.WG,z.ZJ,S]]}),y})()},9077:(G,Q,i)=>{i.d(Q,{Q:()=>B});var _=i(6123),a=i(712),z=i(8929),t=i(4850),n=i(7625),m=i(5e3),T=i(9169),O=i(9808),x=i(6042),M=i(2643),S=i(2683),D=i(404),y=i(647),P=i(6949);function I(u,L){if(1&u){const h=m.EpF();m.ynx(0),m.TgZ(1,"button",2),m.NdJ("click",function(){return m.CHM(h),m.oxw().unsubscribe()}),m._UZ(2,"i",3),m.qZA(),m.BQk()}if(2&u){const h=m.oxw();m.xp6(1),m.Q6J("nzLoading",h.isSubmitting)}}function w(u,L){if(1&u){const h=m.EpF();m.TgZ(0,"button",4),m.NdJ("click",function(){return m.CHM(h),m.oxw().subscribe()}),m._UZ(1,"i",5),m.qZA()}if(2&u){const h=m.oxw();m.Q6J("nzLoading",h.isSubmitting)}}let B=(()=>{class u{constructor(h,F,J,W){this.isSubscribedGQL=h,this.unsubscribeMutation=F,this.subscribeMutation=J,this.networkErrorService=W,this.isSubmitting=!1,this.destroy$=new z.xQ,this.unsubscribeMutator=new _.U(W),this.subscribeMutator=new _.U(W)}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.typename)throw new Error("Must pass in a typename to the CvcEntitySubscriptionButtonComponent");if(void 0===this.subscribableId)throw new Error("Must pass in a subscribableId to the CvcEntitySubscriptionButtonComponent");this.subscribable={id:this.subscribableId,entityType:a.o71[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,t.U)(({data:F})=>F.subscriptionForEntity))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(F=>{var J;F&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}unsubscribe(){this.subscribable&&(this.isSubmitting=!0,this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(F=>{var J;F&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(h){return new(h||u)(m.Y36(a.A4J),m.Y36(a.m$d),m.Y36(a.jMx),m.Y36(T.Y))},u.\u0275cmp=m.Xpm({type:u,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noSub",""],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(h,F){if(1&h&&(m.YNc(0,I,3,1,"ng-container",0),m.ALo(1,"ngrxPush"),m.YNc(2,w,2,1,"ng-template",null,1,m.W1O)),2&h){const J=m.MAs(3);m.Q6J("ngIf",m.lcZ(1,2,F.existingSubscription$))("ngIfElse",J)}},directives:[O.O5,x.ix,M.dQ,S.w,D.SY,y.Ls],pipes:[P.fM],styles:["[_nghost-%COMP%]{display:block}"]}),u})()},4609:(G,Q,i)=>{i.d(Q,{g:()=>T});var _=i(9808),a=i(6042),z=i(6949),t=i(647),n=i(404),m=i(5e3);let T=(()=>{class O{}return O.\u0275fac=function(M){return new(M||O)},O.\u0275mod=m.oAB({type:O}),O.\u0275inj=m.cJS({imports:[[_.ez,a.sL,t.PV,n.cg,z.WG]]}),O})()},7701:(G,Q,i)=>{i.d(Q,{j:()=>H});var _=i(6654),a=i(5e3),z=i(9808),t=i(325),n=i(8481),m=i(3610),T=i(4850),O=i(712),x=i(7484),M=i(647),S=i(6550),D=i(3098),y=i(6949);function P(f,N){if(1&f&&(a._UZ(0,"i",7),a._uU(1)),2&f){const Z=a.oxw().ngIf;a.xp6(1),a.hij(" ",Z.name," ")}}function I(f,N){if(1&f&&(a.TgZ(0,"cvc-link-tag",9),a._uU(1),a.qZA()),2&f){const Z=a.oxw(2).ngIf;a.Q6J("href",Z.url),a.xp6(1),a.hij(" ",Z.soid," ")}}function w(f,N){if(1&f&&a.YNc(0,I,2,2,"cvc-link-tag",8),2&f){const Z=a.oxw().ngIf;a.Q6J("ngIf","N/A"!=Z.soid)}}function B(f,N){if(1&f&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,P,2,1,"ng-template",null,3,a.W1O),a.YNc(4,w,1,1,"ng-template",null,4,a.W1O),a.TgZ(6,"nz-descriptions",5),a.TgZ(7,"nz-descriptions-item",6),a._uU(8),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&f){const Z=N.ngIf,j=a.MAs(3),k=a.MAs(5);a.xp6(1),a.Q6J("nzTitle",j)("nzExtra",k),a.xp6(5),a.Q6J("nzColumn",2),a.xp6(2),a.hij(" ",Z.variantCount," ")}}let u=(()=>{class f{constructor(Z){this.gql=Z}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,T.U)(({data:Z})=>Z.variantTypePopover))}}return f.\u0275fac=function(Z){return new(Z||f)(a.Y36(O.tw_))},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(Z,j){1&Z&&(a.TgZ(0,"div",0),a.YNc(1,B,9,4,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&Z&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,j.variantType$)))},directives:[z.O5,x.bd,M.Ls,S.l,D.R7,D.uj],pipes:[y.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),f})();function L(f,N){}function h(f,N){if(1&f&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,L,0,0,"ng-template",6),a.qZA(),a.BQk()),2&f){const Z=a.oxw(),j=a.MAs(2);a.xp6(1),a.Q6J("routerLink",Z.variantType.link),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function F(f,N){}function J(f,N){if(1&f&&(a.TgZ(0,"nz-tag",9),a.YNc(1,F,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const Z=a.MAs(2);a.oxw();const j=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",Z),a.xp6(1),a.Q6J("ngTemplateOutlet",j)}}function W(f,N){if(1&f&&a._UZ(0,"cvc-variant-type-popover",10),2&f){const Z=a.oxw(2);a.Q6J("variantTypeId",Z.variantType.id)}}function K(f,N){if(1&f&&(a.YNc(0,J,2,3,"nz-tag",7),a.YNc(1,W,1,1,"ng-template",null,8,a.W1O)),2&f){const Z=a.oxw(),j=a.MAs(6);a.Q6J("ngIf",Z.enablePopover)("ngIfElse",j)}}function V(f,N){}function C(f,N){if(1&f&&a.YNc(0,V,0,0,"ng-template",6),2&f){a.oxw();const Z=a.MAs(2);a.Q6J("ngTemplateOutlet",Z)}}function b(f,N){}function A(f,N){if(1&f&&(a.TgZ(0,"nz-tag"),a.YNc(1,b,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const Z=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",Z)}}function $(f,N){if(1&f&&(a._UZ(0,"i",11),a._uU(1)),2&f){const Z=a.oxw();a.xp6(1),a.hij(" ",Z.variantType.name,"\n")}}let H=(()=>{class f extends _.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return f.\u0275fac=function(Z){return new(Z||f)},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[a.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(Z,j){if(1&Z&&(a.YNc(0,h,3,2,"ng-container",0),a.YNc(1,K,3,2,"ng-template",null,1,a.W1O),a.YNc(3,C,1,1,"ng-template",null,2,a.W1O),a.YNc(5,A,2,1,"ng-template",null,3,a.W1O),a.YNc(7,$,2,1,"ng-template",null,4,a.W1O)),2&Z){const k=a.MAs(4);a.Q6J("ngIf",j.linked)("ngIfElse",k)}},directives:[z.O5,t.yS,z.tP,n.j,m.lU,u,M.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),f})()},8645:(G,Q,i)=>{i.d(Q,{M:()=>D});var _=i(9808),a=i(325),z=i(8481),t=i(7484),n=i(3630),m=i(3098),T=i(6949),O=i(647),x=i(5e3);let M=(()=>{class y{}return y.\u0275fac=function(I){return new(I||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[_.ez,T.WG,O.PV,t.vh,m.q6,n.X]]}),y})();var S=i(3610);let D=(()=>{class y{}return y.\u0275fac=function(I){return new(I||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[_.ez,a.Bz,O.PV,z.X,S.$6,M]]}),y})()},1243:(G,Q,i)=>{i.d(Q,{I:()=>a});var _=i(5e3);let a=(()=>{class z{transform(n){if(n){let T=n.toLowerCase().replace(/_/g," ").split(" ");for(var m=0;m{e.d(z,{Q:()=>P});var s=e(9808),t=e(325),d=e(8481),n=e(3610),_=e(647),g=e(7484),m=e(3098),D=e(3630),x=e(6949),M=e(3618),h=e(9444),y=e(5e3);let N=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=y.oAB({type:r}),r.\u0275inj=y.cJS({imports:[[s.ez,x.WG,g.vh,m.q6,_.PV,M.ZJ,h.s,D.X]]}),r})(),P=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=y.oAB({type:r}),r.\u0275inj=y.cJS({imports:[[s.ez,t.Bz,d.X,n.$6,_.PV,h.s,N]]}),r})()},8018:(B,z,e)=>{e.d(z,{e:()=>P});var s=e(9808),t=e(325),d=e(8481),n=e(3610),_=e(647),g=e(7484),m=e(3098),D=e(6949),x=e(3630),M=e(3618),h=e(9444),y=e(5e3);let N=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=y.oAB({type:r}),r.\u0275inj=y.cJS({imports:[[s.ez,t.Bz,D.WG,g.vh,m.q6,_.PV,M.ZJ,x.X,h.s]]}),r})(),P=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=y.oAB({type:r}),r.\u0275inj=y.cJS({imports:[[s.ez,t.Bz,d.X,n.$6,_.PV,h.s,N]]}),r})()},3193:(B,z,e)=>{e.d(z,{H:()=>H});var s=e(6654),t=e(5e3),d=e(9808),n=e(325),_=e(8481),g=e(3610),m=e(4850),D=e(712),x=e(7484),M=e(647),h=e(3098),y=e(1894),N=e(8144),P=e(6949);function r(a,f){if(1&a&&(t._UZ(0,"i",11),t._uU(1)),2&a){const c=t.oxw().ngIf;t.xp6(1),t.hij(" ",c.officialName," ")}}function T(a,f){1&a&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function l(a,f){if(1&a&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,T,2,0,"span",1),t.qZA()),2&a){const c=f.$implicit,E=f.last;t.xp6(1),t.hij(" ",c,""),t.xp6(1),t.Q6J("ngIf",!E)}}function O(a,f){if(1&a&&(t.TgZ(0,"nz-descriptions-item",12),t.YNc(1,l,3,2,"span",13),t.qZA()),2&a){const c=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",c.geneAliases)}}function Z(a,f){if(1&a&&(t.TgZ(0,"a",14),t.TgZ(1,"nz-tag",15),t._UZ(2,"i",16),t._uU(3),t.qZA(),t.qZA()),2&a){const c=t.oxw().ngIf;t.MGl("routerLink","/genes/",c.id,"/flags"),t.xp6(3),t.hij(" Flags (",c.flags.totalCount,") ")}}function Q(a,f){if(1&a&&(t.TgZ(0,"a",14),t.TgZ(1,"nz-tag",17),t._UZ(2,"i",18),t._uU(3),t.qZA(),t.qZA()),2&a){const c=t.oxw().ngIf;t.MGl("routerLink","/genes/",c.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",c.revisions.totalCount,") ")}}function v(a,f){if(1&a&&(t.TgZ(0,"a",14),t.TgZ(1,"nz-tag",19),t._UZ(2,"i",20),t._uU(3),t.qZA(),t.qZA()),2&a){const c=t.oxw().ngIf;t.MGl("routerLink","/genes/",c.id,"/comments"),t.xp6(3),t.hij(" Comments (",c.comments.totalCount,") ")}}function I(a,f){if(1&a&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,r,2,1,"ng-template",null,3,t.W1O),t.TgZ(4,"nz-descriptions",4),t.YNc(5,O,2,1,"nz-descriptions-item",5),t.TgZ(6,"nz-descriptions-item",6),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"nz-row",7),t.TgZ(9,"nz-col",8),t.TgZ(10,"nz-space",9),t.YNc(11,Z,4,2,"a",10),t.YNc(12,Q,4,2,"a",10),t.YNc(13,v,4,2,"a",10),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&a){const c=f.ngIf,E=t.MAs(3);t.xp6(1),t.Q6J("nzTitle",E),t.xp6(3),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",c.geneAliases.length>0),t.xp6(2),t.hij(" ",c.variants.totalCount," ")}}let u=(()=>{class a{constructor(c){this.gql=c}ngOnInit(){if(null==this.geneId)throw new Error("cvc-gene-popover requires valid geneId input.");this.gene$=this.gql.watch({geneId:this.geneId}).valueChanges.pipe((0,m.U)(({data:c})=>c.gene))}}return a.\u0275fac=function(c){return new(c||a)(t.Y36(D.rJ8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-gene-popover"]],inputs:{geneId:"geneId"},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","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Variants"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],[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,E){1&c&&(t.TgZ(0,"div",0),t.YNc(1,I,14,4,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&c&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,E.gene$)))},directives:[d.O5,x.bd,M.Ls,h.R7,h.uj,d.sg,y.SK,y.t3,N.NU,N.$1,n.yS,_.j],pipes:[P.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 A(a,f){}function U(a,f){if(1&a&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,A,0,0,"ng-template",6),t.qZA(),t.BQk()),2&a){const c=t.oxw(),E=t.MAs(2);t.xp6(1),t.Q6J("routerLink",c.gene.link),t.xp6(1),t.Q6J("ngTemplateOutlet",E)}}function S(a,f){}function Y(a,f){if(1&a){const c=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(J){return t.CHM(c),t.oxw(2).itemClosed(J)}),t.YNc(1,S,0,0,"ng-template",6),t.qZA()}if(2&a){t.oxw();const c=t.MAs(2),E=t.oxw(),J=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",E.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",E.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",J)}}function W(a,f){if(1&a&&t._UZ(0,"cvc-gene-popover",10),2&a){const c=t.oxw(2);t.Q6J("geneId",c.gene.id)}}function j(a,f){if(1&a&&(t.YNc(0,Y,2,4,"nz-tag",7),t.YNc(1,W,1,1,"ng-template",null,8,t.W1O)),2&a){const c=t.oxw(),E=t.MAs(4);t.Q6J("ngIf",c.enablePopover)("ngIfElse",E)}}function G(a,f){}function $(a,f){if(1&a){const c=t.EpF();t.TgZ(0,"nz-tag",11),t.NdJ("nzOnClose",function(J){return t.CHM(c),t.oxw().itemClosed(J)}),t.YNc(1,G,0,0,"ng-template",6),t.qZA()}if(2&a){const c=t.oxw(),E=t.MAs(8);t.Q6J("nzMode",c.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",E)}}function k(a,f){}function V(a,f){if(1&a&&t.YNc(0,k,0,0,"ng-template",6),2&a){t.oxw();const c=t.MAs(2);t.Q6J("ngTemplateOutlet",c)}}function X(a,f){if(1&a&&(t._UZ(0,"i",12),t._uU(1)),2&a){const c=t.oxw();t.xp6(1),t.hij(" ",c.gene.name,"\n")}}let H=(()=>{class a extends s.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.gene.id}ngOnInit(){if(super.ngOnInit(),void 0===this.gene)throw new Error("cvc-gene-tag requires LinkableGene input, none supplied.")}}return a.\u0275fac=function(c){return new(c||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-gene-tag"]],inputs:{gene:"gene",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"],["genePopover",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"geneId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-gene","nzTheme","twotone","nzTwotoneColor","#07AFF0"]],template:function(c,E){if(1&c&&(t.YNc(0,U,3,2,"ng-container",0),t.YNc(1,j,3,2,"ng-template",null,1,t.W1O),t.YNc(3,$,2,2,"ng-template",null,2,t.W1O),t.YNc(5,V,1,1,"ng-template",null,3,t.W1O),t.YNc(7,X,2,1,"ng-template",null,4,t.W1O)),2&c){const J=t.MAs(6);t.Q6J("ngIf",E.linked)("ngIfElse",J)}},directives:[d.O5,n.yS,d.tP,_.j,g.lU,u,M.Ls],styles:[""]}),a})()},3309:(B,z,e)=>{e.d(z,{U:()=>N});var s=e(9808),t=e(325),d=e(8481),n=e(647),_=e(3610),g=e(7484),m=e(1894),D=e(3098),x=e(8144),M=e(6949),h=e(5e3);let y=(()=>{class P{}return P.\u0275fac=function(T){return new(T||P)},P.\u0275mod=h.oAB({type:P}),P.\u0275inj=h.cJS({imports:[[s.ez,t.Bz,M.WG,g.vh,m.Jb,D.q6,d.X,n.PV,x.zf]]}),P})(),N=(()=>{class P{}return P.\u0275fac=function(T){return new(T||P)},P.\u0275mod=h.oAB({type:P}),P.\u0275inj=h.cJS({imports:[[s.ez,t.Bz,d.X,_.$6,n.PV,y]]}),P})()},9476:(B,z,e)=>{e.d(z,{L:()=>P});var s=e(9808),t=e(325),d=e(8481),n=e(647),_=e(1894),g=e(3630),m=e(3098),D=e(7484),x=e(6949),M=e(5473),h=e(5e3);let y=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[[s.ez,x.WG,D.vh,_.Jb,m.q6,g.X,M.H]]}),r})();var N=e(3610);let P=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[[s.ez,t.Bz,d.X,n.PV,N.$6,y]]}),r})()},6550:(B,z,e)=>{e.d(z,{l:()=>g});var s=e(5e3),t=e(8481),d=e(404),n=e(647);const _=["*"];let g=(()=>{class m{constructor(){}ngOnInit(){if(void 0===this.href)throw new Error("cvc-link-tag requires href string input, none supplied.")}}return m.\u0275fac=function(x){return new(x||m)},m.\u0275cmp=s.Xpm({type:m,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:_,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(x,M){1&x&&(s.F$t(),s.TgZ(0,"a",0),s.TgZ(1,"nz-tag",1),s._UZ(2,"i",2),s.Hsn(3),s.qZA(),s.qZA()),2&x&&(s.Q6J("href",M.href,s.LSH),s.xp6(1),s.Q6J("nzTooltipTitle",M.tooltip)("nzTooltipTrigger",M.tooltip?"hover":null),s.xp6(1),s.Q6J("nzType",M.iconName?M.iconName:"link"))},directives:[t.j,d.SY,n.Ls],styles:[""]}),m})()},3630:(B,z,e)=>{e.d(z,{X:()=>g});var s=e(9808),t=e(404),d=e(8481),n=e(647),_=e(5e3);let g=(()=>{class m{}return m.\u0275fac=function(x){return new(x||m)},m.\u0275mod=_.oAB({type:m}),m.\u0275inj=_.cJS({imports:[[s.ez,t.cg,d.X,n.PV]]}),m})()},6715:(B,z,e)=>{e.d(z,{$:()=>d});var s=e(5e3);const t=["*"];let d=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(g){return new(g||n)},n.\u0275cmp=s.Xpm({type:n,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(g,m){2&g&&s.ekj("xs","xs"===m.size||!m.size)("sm","sm"===m.size)},inputs:{size:"size"},ngContentSelectors:t,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(g,m){1&g&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),n})()},897:(B,z,e)=>{e.d(z,{$:()=>d});var s=e(9808),t=e(5e3);let d=(()=>{class n{}return n.\u0275fac=function(g){return new(g||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[s.ez]]}),n})()},9444:(B,z,e)=>{e.d(z,{s:()=>n});var s=e(9808),t=e(7742),d=e(5e3);let n=(()=>{class _{}return _.\u0275fac=function(m){return new(m||_)},_.\u0275mod=d.oAB({type:_}),_.\u0275inj=d.cJS({providers:[t.l],imports:[[s.ez]]}),_})()},7742:(B,z,e)=>{e.d(z,{l:()=>d});var s=e(6530),t=e(5e3);let d=(()=>{class n{transform(g){return g?(0,s.c)(g):""}}return n.\u0275fac=function(g){return new(g||n)},n.\u0275pipe=t.Yjl({name:"sourceTypeDisplay",type:n,pure:!0}),n})()},6654:(B,z,e)=>{e.d(z,{a:()=>t});var s=e(5e3);let t=(()=>{class d{constructor(){this.linked=!0,this.popoverVisible=!1}ngOnInit(){this.onCloseClicked&&(this.linked=!1)}itemClosed(_){this.popoverVisible=!1,this.onCloseClicked&&this.onCloseClicked(this.idFunction())}}return d.\u0275fac=function(_){return new(_||d)},d.\u0275cmp=s.Xpm({type:d,selectors:[["ng-component"]],inputs:{onCloseClicked:"onCloseClicked",linked:"linked"},decls:0,vars:0,template:function(_,g){},encapsulation:2}),d})()},6530:(B,z,e)=>{function s(t){switch(t){case"ASCO":return"ASCO";case"PUBMED":return"PubMed";default:return t}}e.d(z,{c:()=>s})},3098:(B,z,e)=>{e.d(z,{R7:()=>dn,uj:()=>nn,q6:()=>mn});var s=e(226),t=e(925),d=e(9808),n=e(5e3),_=e(969),g=e(655),m=e(8929),D=e(6787),x=e(1721),M=e(7625),h=e(1059),y=e(7545),N=e(7138),P=e(2868),r=e(9439),T=e(948),l=e(4090);function O(o,p){1&o&&n.Hsn(0)}const Z=["*"];function Q(o,p){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const i=n.oxw(3);n.xp6(1),n.Oqu(i.nzTitle)}}function v(o,p){if(1&o&&(n.TgZ(0,"div",6),n.YNc(1,Q,2,1,"ng-container",7),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.nzTitle)}}function I(o,p){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const i=n.oxw(3);n.xp6(1),n.Oqu(i.nzExtra)}}function u(o,p){if(1&o&&(n.TgZ(0,"div",8),n.YNc(1,I,2,1,"ng-container",7),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.nzExtra)}}function A(o,p){if(1&o&&(n.TgZ(0,"div",3),n.YNc(1,v,2,1,"div",4),n.YNc(2,u,2,1,"div",5),n.qZA()),2&o){const i=n.oxw();n.xp6(1),n.Q6J("ngIf",i.nzTitle),n.xp6(1),n.Q6J("ngIf",i.nzExtra)}}function U(o,p){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",i.title," ")}}function S(o,p){}function Y(o,p){if(1&o&&(n.ynx(0),n.TgZ(1,"td",12),n.TgZ(2,"div",13),n.TgZ(3,"span",14),n.YNc(4,U,2,1,"ng-container",7),n.qZA(),n.TgZ(5,"span",15),n.YNc(6,S,0,0,"ng-template",16),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&o){const i=n.oxw().$implicit,C=n.oxw(3);n.xp6(1),n.Q6J("colSpan",i.span),n.xp6(2),n.ekj("ant-descriptions-item-no-colon",!C.nzColon),n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.title),n.xp6(2),n.Q6J("ngTemplateOutlet",i.content)}}function W(o,p){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const i=n.oxw(3).$implicit;n.xp6(1),n.hij(" ",i.title," ")}}function j(o,p){if(1&o&&(n.TgZ(0,"td",14),n.YNc(1,W,2,1,"ng-container",7),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.title)}}function G(o,p){}function $(o,p){if(1&o&&(n.ynx(0),n.YNc(1,j,2,1,"td",17),n.TgZ(2,"td",18),n.YNc(3,G,0,0,"ng-template",16),n.qZA(),n.BQk()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.title),n.xp6(1),n.Q6J("colSpan",2*i.span-1),n.xp6(1),n.Q6J("ngTemplateOutlet",i.content)}}function k(o,p){if(1&o&&(n.ynx(0),n.YNc(1,Y,7,5,"ng-container",2),n.YNc(2,$,4,3,"ng-container",2),n.BQk()),2&o){const i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",!i.nzBordered),n.xp6(1),n.Q6J("ngIf",i.nzBordered)}}function V(o,p){if(1&o&&(n.TgZ(0,"tr",10),n.YNc(1,k,3,2,"ng-container",11),n.qZA()),2&o){const i=p.$implicit;n.xp6(1),n.Q6J("ngForOf",i)}}function X(o,p){if(1&o&&(n.ynx(0),n.YNc(1,V,2,1,"tr",9),n.BQk()),2&o){const i=n.oxw();n.xp6(1),n.Q6J("ngForOf",i.itemMatrix)}}function H(o,p){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.hij(" ",i.title," ")}}function a(o,p){if(1&o&&(n.ynx(0),n.TgZ(1,"td",12),n.TgZ(2,"div",13),n.TgZ(3,"span",14),n.YNc(4,H,2,1,"ng-container",7),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&o){const i=p.$implicit,C=n.oxw(4);n.xp6(1),n.Q6J("colSpan",i.span),n.xp6(2),n.ekj("ant-descriptions-item-no-colon",!C.nzColon),n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.title)}}function f(o,p){}function c(o,p){if(1&o&&(n.ynx(0),n.TgZ(1,"td",12),n.TgZ(2,"div",13),n.TgZ(3,"span",15),n.YNc(4,f,0,0,"ng-template",16),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&o){const i=p.$implicit;n.xp6(1),n.Q6J("colSpan",i.span),n.xp6(3),n.Q6J("ngTemplateOutlet",i.content)}}function E(o,p){if(1&o&&(n.ynx(0),n.TgZ(1,"tr",10),n.YNc(2,a,5,4,"ng-container",11),n.qZA(),n.TgZ(3,"tr",10),n.YNc(4,c,5,2,"ng-container",11),n.qZA(),n.BQk()),2&o){const i=p.$implicit;n.xp6(2),n.Q6J("ngForOf",i),n.xp6(2),n.Q6J("ngForOf",i)}}function J(o,p){if(1&o&&(n.ynx(0),n.YNc(1,E,5,2,"ng-container",11),n.BQk()),2&o){const i=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",i.itemMatrix)}}function w(o,p){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.hij(" ",i.title," ")}}function rn(o,p){if(1&o&&(n.ynx(0),n.TgZ(1,"td",19),n.YNc(2,w,2,1,"ng-container",7),n.qZA(),n.BQk()),2&o){const i=p.$implicit;n.xp6(1),n.Q6J("colSpan",i.span),n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.title)}}function an(o,p){}function sn(o,p){if(1&o&&(n.ynx(0),n.TgZ(1,"td",18),n.YNc(2,an,0,0,"ng-template",16),n.qZA(),n.BQk()),2&o){const i=p.$implicit;n.xp6(1),n.Q6J("colSpan",i.span),n.xp6(1),n.Q6J("ngTemplateOutlet",i.content)}}function cn(o,p){if(1&o&&(n.ynx(0),n.TgZ(1,"tr",10),n.YNc(2,rn,3,2,"ng-container",11),n.qZA(),n.TgZ(3,"tr",10),n.YNc(4,sn,3,2,"ng-container",11),n.qZA(),n.BQk()),2&o){const i=p.$implicit;n.xp6(2),n.Q6J("ngForOf",i),n.xp6(2),n.Q6J("ngForOf",i)}}function ln(o,p){if(1&o&&(n.ynx(0),n.YNc(1,cn,5,2,"ng-container",11),n.BQk()),2&o){const i=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",i.itemMatrix)}}function _n(o,p){if(1&o&&(n.ynx(0),n.YNc(1,J,2,1,"ng-container",2),n.YNc(2,ln,2,1,"ng-container",2),n.BQk()),2&o){const i=n.oxw();n.xp6(1),n.Q6J("ngIf",!i.nzBordered),n.xp6(1),n.Q6J("ngIf",i.nzBordered)}}let nn=(()=>{class o{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new m.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-descriptions-item"]],viewQuery:function(i,C){if(1&i&&n.Gf(n.Rgc,7),2&i){let L;n.iGM(L=n.CRH())&&(C.content=L.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[n.TTD],ngContentSelectors:Z,decls:1,vars:0,template:function(i,C){1&i&&(n.F$t(),n.YNc(0,O,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,g.gn)([(0,x.Rn)()],o.prototype,"nzSpan",void 0),o})();const gn={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let dn=(()=>{class o{constructor(i,C,L,R){this.nzConfigService=i,this.cdr=C,this.breakpointService=L,this.directionality=R,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=gn,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=l.G_.md,this.destroy$=new m.xQ}ngOnInit(){var i;this.dir=this.directionality.value,null===(i=this.directionality.change)||void 0===i||i.pipe((0,M.R)(this.destroy$)).subscribe(C=>{this.dir=C})}ngOnChanges(i){i.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const i=this.items.changes.pipe((0,h.O)(this.items),(0,M.R)(this.destroy$));(0,D.T)(i,i.pipe((0,y.w)(()=>(0,D.T)(...this.items.map(C=>C.inputChange$)).pipe((0,N.e)(16)))),this.breakpointService.subscribe(l.WV).pipe((0,P.b)(C=>this.breakpoint=C))).pipe((0,M.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let i=[],C=0;const L=this.realColumn=this.getColumn(),R=this.items.toArray(),tn=R.length,en=[],on=()=>{en.push(i),i=[],C=0};for(let K=0;K=L?(C>L&&(0,T.ZK)(`"nzColumn" is ${L} but we have row length ${C}`),i.push({title:b,content:q,span:L-(C-F)}),on()):K===tn-1?(i.push({title:b,content:q,span:L-(C-F)}),on()):i.push({title:b,content:q,span:F})}this.itemMatrix=en}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(r.jY),n.Y36(n.sBO),n.Y36(l.r3),n.Y36(s.Is,8))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-descriptions"]],contentQueries:function(i,C,L){if(1&i&&n.Suo(L,nn,4),2&i){let R;n.iGM(R=n.CRH())&&(C.items=R)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(i,C){2&i&&n.ekj("ant-descriptions-bordered",C.nzBordered)("ant-descriptions-middle","middle"===C.nzSize)("ant-descriptions-small","small"===C.nzSize)("ant-descriptions-rtl","rtl"===C.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[n.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(i,C){1&i&&(n.YNc(0,A,3,2,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"table"),n.TgZ(3,"tbody"),n.YNc(4,X,2,1,"ng-container",2),n.YNc(5,_n,3,2,"ng-container",2),n.qZA(),n.qZA(),n.qZA()),2&i&&(n.Q6J("ngIf",C.nzTitle||C.nzExtra),n.xp6(4),n.Q6J("ngIf","horizontal"===C.nzLayout),n.xp6(1),n.Q6J("ngIf","vertical"===C.nzLayout))},directives:[d.O5,_.f,d.sg,d.tP],encapsulation:2,changeDetection:0}),(0,g.gn)([(0,x.yF)(),(0,r.oS)()],o.prototype,"nzBordered",void 0),(0,g.gn)([(0,r.oS)()],o.prototype,"nzColumn",void 0),(0,g.gn)([(0,r.oS)()],o.prototype,"nzSize",void 0),(0,g.gn)([(0,r.oS)(),(0,x.yF)()],o.prototype,"nzColon",void 0),o})(),mn=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[s.vT,d.ez,_.T,t.ud]]}),o})()},3610:(B,z,e)=>{e.d(z,{lU:()=>O,$6:()=>Q});var s=e(655),t=e(5e3),d=e(8076),n=e(9439),_=e(1721),g=e(404),m=e(4832),D=e(226),x=e(2845),M=e(6950),h=e(9808),y=e(969);function N(v,I){if(1&v&&(t.ynx(0),t._uU(1),t.BQk()),2&v){const u=t.oxw(3);t.xp6(1),t.Oqu(u.nzTitle)}}function P(v,I){if(1&v&&(t.TgZ(0,"div",10),t.YNc(1,N,2,1,"ng-container",9),t.qZA()),2&v){const u=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",u.nzTitle)}}function r(v,I){if(1&v&&(t.ynx(0),t._uU(1),t.BQk()),2&v){const u=t.oxw(2);t.xp6(1),t.Oqu(u.nzContent)}}function T(v,I){if(1&v&&(t.TgZ(0,"div",2),t.TgZ(1,"div",3),t.TgZ(2,"div",4),t._UZ(3,"span",5),t.qZA(),t.TgZ(4,"div",6),t.TgZ(5,"div"),t.YNc(6,P,2,1,"div",7),t.TgZ(7,"div",8),t.YNc(8,r,2,1,"ng-container",9),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&v){const u=t.oxw();t.ekj("ant-popover-rtl","rtl"===u.dir),t.Q6J("ngClass",u._classMap)("ngStyle",u.nzOverlayStyle)("@.disabled",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)("nzNoAnimation",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),t.xp6(6),t.Q6J("ngIf",u.nzTitle),t.xp6(2),t.Q6J("nzStringTemplateOutlet",u.nzContent)}}let O=(()=>{class v extends g.Mg{constructor(u,A,U,S,Y,W){super(u,A,U,S,Y,W),this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new t.vpe,this.componentRef=this.hostView.createComponent(Z)}getProxyPropertyMap(){return Object.assign({nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop]},super.getProxyPropertyMap())}}return v.\u0275fac=function(u){return new(u||v)(t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t._Vd),t.Y36(t.Qsj),t.Y36(m.P,9),t.Y36(n.jY))},v.\u0275dir=t.lG2({type:v,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(u,A){2&u&&t.ekj("ant-popover-open",A.visible)},inputs:{arrowPointAtCenter:["nzPopoverArrowPointAtCenter","arrowPointAtCenter"],title:["nzPopoverTitle","title"],content:["nzPopoverContent","content"],directiveTitle:["nz-popover","directiveTitle"],trigger:["nzPopoverTrigger","trigger"],placement:["nzPopoverPlacement","placement"],origin:["nzPopoverOrigin","origin"],visible:["nzPopoverVisible","visible"],mouseEnterDelay:["nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzPopoverOverlayClassName","overlayClassName"],overlayStyle:["nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],features:[t.qOj]}),(0,s.gn)([(0,_.yF)()],v.prototype,"arrowPointAtCenter",void 0),(0,s.gn)([(0,n.oS)()],v.prototype,"nzPopoverBackdrop",void 0),v})(),Z=(()=>{class v extends g.XK{constructor(u,A,U){super(u,A,U),this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return(0,g.pu)(this.nzTitle)&&(0,g.pu)(this.nzContent)}}return v.\u0275fac=function(u){return new(u||v)(t.Y36(t.sBO),t.Y36(D.Is,8),t.Y36(m.P,9))},v.\u0275cmp=t.Xpm({type:v,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],features:[t.qOj],decls:2,vars:6,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],["role","tooltip",1,"ant-popover-inner"],["class","ant-popover-title",4,"ngIf"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-title"]],template:function(u,A){1&u&&(t.YNc(0,T,9,9,"ng-template",0,1,t.W1O),t.NdJ("overlayOutsideClick",function(S){return A.onClickOutside(S)})("detach",function(){return A.hide()})("positionChange",function(S){return A.onPositionChange(S)})),2&u&&t.Q6J("cdkConnectedOverlayHasBackdrop",A.hasBackdrop)("cdkConnectedOverlayOrigin",A.origin)("cdkConnectedOverlayPositions",A._positions)("cdkConnectedOverlayOpen",A._visible)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",A.nzArrowPointAtCenter)},directives:[x.pI,M.hQ,h.mk,h.PC,m.P,h.O5,y.f],encapsulation:2,data:{animation:[d.$C]},changeDetection:0}),v})(),Q=(()=>{class v{}return v.\u0275fac=function(u){return new(u||v)},v.\u0275mod=t.oAB({type:v}),v.\u0275inj=t.cJS({imports:[[D.vT,h.ez,x.U8,y.T,M.e4,m.g,g.cg]]}),v})()},8481:(B,z,e)=>{e.d(z,{j:()=>N,X:()=>P});var s=e(655),t=e(5e3),d=e(8929),n=e(7625),_=e(8693),g=e(1721),m=e(226),D=e(9808),x=e(647),M=e(4182);function h(r,T){if(1&r){const l=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(Z){return t.CHM(l),t.oxw().closeTag(Z)}),t.qZA()}}const y=["*"];let N=(()=>{class r{constructor(l,O,Z,Q){this.cdr=l,this.renderer=O,this.elementRef=Z,this.directionality=Q,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new d.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(l){this.nzOnClose.emit(l),l.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const l=this.elementRef.nativeElement,O=new RegExp(`(ant-tag-(?:${[..._.uf,..._.Bh].join("|")}))`,"g"),Z=l.classList.toString(),Q=[];let v=O.exec(Z);for(;null!==v;)Q.push(v[1]),v=O.exec(Z);l.classList.remove(...Q)}setPresetColor(){const l=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,_.o2)(this.nzColor)||(0,_.M8)(this.nzColor)),this.isPresetColor&&l.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var l;null===(l=this.directionality.change)||void 0===l||l.pipe((0,n.R)(this.destroy$)).subscribe(O=>{this.dir=O,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(l){const{nzColor:O}=l;O&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return r.\u0275fac=function(l){return new(l||r)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(m.Is,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(l,O){1&l&&t.NdJ("click",function(){return O.updateCheckedStatus()}),2&l&&(t.Udp("background-color",O.isPresetColor?"":O.nzColor),t.ekj("ant-tag-has-color",O.nzColor&&!O.isPresetColor)("ant-tag-checkable","checkable"===O.nzMode)("ant-tag-checkable-checked",O.nzChecked)("ant-tag-rtl","rtl"===O.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:y,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(l,O){1&l&&(t.F$t(),t.Hsn(0),t.YNc(1,h,1,0,"i",0)),2&l&&(t.xp6(1),t.Q6J("ngIf","closeable"===O.nzMode))},directives:[D.O5,x.Ls],encapsulation:2,changeDetection:0}),(0,s.gn)([(0,g.yF)()],r.prototype,"nzChecked",void 0),r})(),P=(()=>{class r{}return r.\u0275fac=function(l){return new(l||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[[m.vT,D.ez,M.u5,x.PV]]}),r})()}}]); \ No newline at end of file diff --git a/server/public/3648.d223006cdec265b2.js b/server/public/3648.d223006cdec265b2.js deleted file mode 100644 index 834b2affc..000000000 --- a/server/public/3648.d223006cdec265b2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3648],{8369:(Y,Z,o)=>{o.d(Z,{W:()=>U});var n=o(9808),g=o(325),t=o(8481),S=o(3610),_=o(647),z=o(7484),M=o(3098),v=o(3309),P=o(4867),O=o(6286),L=o(8018),C=o(6949),b=o(9444),I=o(1894),Q=o(8144),J=o(3580),d=o(8625),f=o(7026),u=o(592),m=o(5e3);let A=(()=>{class x{}return x.\u0275fac=function(N){return new(N||x)},x.\u0275mod=m.oAB({type:x}),x.\u0275inj=m.cJS({imports:[[n.ez,g.Bz,C.WG,z.vh,M.q6,_.PV,I.Jb,Q.zf,t.X,v.U,J.Q,P.Q,O.y,L.e,b.s,u.x,d.$L.forChild({formatter:{useClass:f.x,provide:d.KP}})]]}),x})(),U=(()=>{class x{}return x.\u0275fac=function(N){return new(N||x)},x.\u0275mod=m.oAB({type:x}),x.\u0275inj=m.cJS({imports:[[n.ez,g.Bz,t.X,S.$6,_.PV,A,b.s]]}),x})()},5749:(Y,Z,o)=>{o.d(Z,{m:()=>s});var n=o(5e3),g=o(9808),t=o(325),S=o(8481),_=o(3610),z=o(4850),M=o(712),v=o(7484),P=o(7881),O=o(1894),L=o(3098),C=o(6550),b=o(6949);const I=function(i,c){return{displayName:i,profileImagePath:c}};function Q(i,c){if(1&i&&(n._UZ(0,"cvc-user-avatar",12),n.TgZ(1,"span",13),n._uU(2),n.qZA()),2&i){const p=n.oxw().ngIf;n.Q6J("user",n.WLB(2,I,p.name,p.profileImagePath)),n.xp6(2),n.Oqu(p.name)}}function J(i,c){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const p=c.ngIf;n.xp6(1),n.Oqu(p)}}function d(i,c){if(1&i&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",14),n._uU(2),n.qZA(),n.BQk()),2&i){const p=n.oxw().ngIf;n.xp6(1),n.Q6J("href",p.url),n.xp6(1),n.hij(" ",p.name," ")}}function f(i,c){if(1&i&&(n.ynx(0),n.TgZ(1,"nz-card",4),n.YNc(2,Q,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,J,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,d,3,2,"ng-container",9),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&i){const p=c.ngIf,y=n.MAs(3);n.oxw();const $=n.MAs(4),H=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",y),n.xp6(7),n.Q6J("ngIf",p.description)("ngIfElse",$),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",p.url)("ngIfElse",H)}}function u(i,c){1&i&&n._uU(0," Organization has not provided a description.\n")}function m(i,c){1&i&&n._uU(0," --\n")}let A=(()=>{class i{constructor(p){this.gql=p}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,z.U)(({data:p})=>p.organization))}}return i.\u0275fac=function(p){return new(p||i)(n.Y36(M.X5f))},i.\u0275cmp=n.Xpm({type:i,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(p,y){1&p&&(n.TgZ(0,"div",0),n.YNc(1,f,12,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,u,1,0,"ng-template",null,2,n.W1O),n.YNc(5,m,1,0,"ng-template",null,3,n.W1O)),2&p&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,y.org$)))},directives:[g.O5,v.bd,P.L,O.SK,O.t3,L.R7,L.uj,C.l],pipes:[b.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})();var U=o(647);function x(i,c){}function E(i,c){if(1&i&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,x,0,0,"ng-template",6),n.qZA(),n.BQk()),2&i){const p=n.oxw(),y=n.MAs(2);n.xp6(1),n.MGl("routerLink","/organizations/",p.org.id,""),n.xp6(1),n.Q6J("ngTemplateOutlet",y)}}function N(i,c){}function G(i,c){if(1&i&&n._UZ(0,"cvc-organization-popover",10),2&i){const p=n.oxw(3);n.Q6J("orgId",p.org.id)}}function V(i,c){if(1&i&&n.YNc(0,G,1,1,"cvc-organization-popover",9),2&i){const p=n.oxw(2);n.Q6J("ngIf",p.enablePopover)}}function W(i,c){if(1&i&&(n.TgZ(0,"nz-tag",7),n.YNc(1,N,0,0,"ng-template",6),n.qZA(),n.YNc(2,V,1,1,"ng-template",null,8,n.W1O)),2&i){const p=n.MAs(3);n.oxw();const y=n.MAs(8);n.Q6J("nzPopoverContent",p),n.xp6(1),n.Q6J("ngTemplateOutlet",y)}}function R(i,c){}function j(i,c){if(1&i&&(n.TgZ(0,"nz-tag"),n.YNc(1,R,0,0,"ng-template",6),n.qZA()),2&i){n.oxw();const p=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",p)}}function w(i,c){}function D(i,c){if(1&i&&n.YNc(0,w,0,0,"ng-template",6),2&i){n.oxw();const p=n.MAs(2);n.Q6J("ngTemplateOutlet",p)}}function B(i,c){if(1&i&&(n._UZ(0,"i",11),n._uU(1)),2&i){const p=n.oxw();n.xp6(1),n.hij(" ",p.org.name,"\n")}}let s=(()=>{class i{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 i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=n.Xpm({type:i,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(p,y){if(1&p&&(n.YNc(0,E,3,2,"ng-container",0),n.YNc(1,W,4,2,"ng-template",null,1,n.W1O),n.YNc(3,j,2,1,"ng-template",null,2,n.W1O),n.YNc(5,D,1,1,"ng-template",null,3,n.W1O),n.YNc(7,B,2,1,"ng-template",null,4,n.W1O)),2&p){const $=n.MAs(6);n.Q6J("ngIf",y.linked)("ngIfElse",$)}},directives:[g.O5,t.yS,g.tP,S.j,_.lU,A,U.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),i})()},9297:(Y,Z,o)=>{o.d(Z,{p:()=>_});var n=o(5e3),g=o(325),t=o(8481),S=o(647);let _=(()=>{class z{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return z.\u0275fac=function(v){return new(v||z)},z.\u0275cmp=n.Xpm({type:z,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(v,P){1&v&&(n.TgZ(0,"a",0),n.TgZ(1,"nz-tag"),n._UZ(2,"i",1),n._uU(3),n.qZA(),n.qZA()),2&v&&(n.Q6J("routerLink",P.revision.link),n.xp6(3),n.hij(" ",P.revision.name," "))},directives:[g.yS,t.j,S.Ls],styles:[""]}),z})()},8747:(Y,Z,o)=>{o.d(Z,{l:()=>J});var n=o(5e3),g=o(9808),t=o(7484),S=o(3762),_=o(6042),z=o(2643),M=o(2683),v=o(647);const P=["itemTemplate"],O=function(d){return{$implicit:d}};function L(d,f){if(1&d){const u=n.EpF();n.TgZ(0,"nz-list-item",5),n.NdJ("click",function(){n.CHM(u);const A=n.oxw().$implicit;return n.oxw(2).onParticipantSelected(A)}),n.GkF(1,6),n.qZA()}if(2&d){const u=n.oxw().$implicit,m=n.oxw(2);n.ekj("selected-participant",u.id==(null==m.selectedItem?null:m.selectedItem.id)),n.xp6(1),n.Q6J("ngTemplateOutlet",m.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(4,O,u))}}function C(d,f){if(1&d&&(n.ynx(0),n.YNc(1,L,2,6,"nz-list-item",4),n.BQk()),2&d){const u=f.index,m=n.oxw(2);n.xp6(1),n.Q6J("ngIf",u+1<=m.defaultListSize)}}function b(d,f){if(1&d){const u=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(u),n.oxw(2).onExpandClicked()}),n._UZ(1,"i",8),n._uU(2," Expand "),n.qZA()}}function I(d,f){if(1&d){const u=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(u),n.oxw(2).onCollapseClicked()}),n._UZ(1,"i",9),n._uU(2," Collapse "),n.qZA()}}function Q(d,f){if(1&d&&(n.ynx(0),n.TgZ(1,"nz-card",1),n.TgZ(2,"nz-list"),n.YNc(3,C,2,1,"ng-container",2),n.qZA(),n.YNc(4,b,3,0,"button",3),n.YNc(5,I,3,0,"button",3),n.qZA(),n.BQk()),2&d){const u=n.oxw();n.xp6(1),n.Q6J("nzTitle",u.listTitle),n.xp6(2),n.Q6J("ngForOf",u.participantList),n.xp6(1),n.Q6J("ngIf",u.participantList.length>u.defaultListSize),n.xp6(1),n.Q6J("ngIf",u.isExpanded)}}let J=(()=>{class d{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new n.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(u){var m;this.selectedItem=u.id==(null===(m=this.selectedItem)||void 0===m?void 0:m.id)?void 0:u,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 d.\u0275fac=function(u){return new(u||d)},d.\u0275cmp=n.Xpm({type:d,selectors:[["cvc-participant-list"]],contentQueries:function(u,m,A){if(1&u&&n.Suo(A,P,5),2&u){let U;n.iGM(U=n.CRH())&&(m.itemTemplateRef=U.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(u,m){1&u&&n.YNc(0,Q,6,4,"ng-container",0),2&u&&n.Q6J("ngIf",m.participantList&&m.participantList.length>0)},directives:[g.O5,t.bd,S.n_,g.sg,S.AA,g.tP,_.ix,z.dQ,M.w,v.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}"]}),d})()},1150:(Y,Z,o)=>{o.d(Z,{N:()=>M});var n=o(9808),g=o(7484),t=o(3762),S=o(647),_=o(6042),z=o(5e3);let M=(()=>{class v{}return v.\u0275fac=function(O){return new(O||v)},v.\u0275mod=z.oAB({type:v}),v.\u0275inj=z.cJS({imports:[[n.ez,g.vh,t.Ph,S.PV,_.sL]]}),v})()},112:(Y,Z,o)=>{o.d(Z,{u:()=>B});var n=o(5e3),g=o(9808),t=o(325),S=o(8481),_=o(3610),z=o(4850),M=o(712),v=o(7484),P=o(3098),O=o(8664),L=o(6906),C=o(6949);function b(s,i){if(1&s&&(n._UZ(0,"i",7),n._uU(1)),2&s){const c=n.oxw().ngIf;n.xp6(1),n.hij(" ",c.name," ")}}function I(s,i){if(1&s&&(n.TgZ(0,"span"),n._UZ(1,"cvc-variant-tag",10),n.qZA()),2&s){const c=i.$implicit;n.xp6(1),n.Q6J("variant",c.node)}}function Q(s,i){if(1&s&&(n.TgZ(0,"nz-descriptions-item",8),n.YNc(1,I,2,1,"span",9),n.qZA()),2&s){const c=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",c.variants.edges)}}function J(s,i){if(1&s&&(n.TgZ(0,"span"),n._UZ(1,"cvc-source-tag",12),n.qZA()),2&s){const c=i.$implicit;n.xp6(1),n.Q6J("source",c)}}function d(s,i){if(1&s&&(n.TgZ(0,"nz-descriptions-item",11),n.YNc(1,J,2,1,"span",9),n.qZA()),2&s){const c=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",c.sources)}}function f(s,i){if(1&s&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,b,2,1,"ng-template",null,3,n.W1O),n._uU(4),n.TgZ(5,"nz-descriptions",4),n.YNc(6,Q,2,1,"nz-descriptions-item",5),n.YNc(7,d,2,1,"nz-descriptions-item",6),n.qZA(),n.qZA(),n.BQk()),2&s){const c=i.ngIf,p=n.MAs(3);n.xp6(1),n.Q6J("nzTitle",p),n.xp6(3),n.hij(" ",c.description," "),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",c.variants.edges.length>0),n.xp6(1),n.Q6J("ngIf",c.sources.length>0)}}let u=(()=>{class s{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,z.U)(({data:c})=>c.variantGroup))}}return s.\u0275fac=function(c){return new(c||s)(n.Y36(M.Zo2))},s.\u0275cmp=n.Xpm({type:s,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,p){1&c&&(n.TgZ(0,"div",0),n.YNc(1,f,8,5,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&c&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,p.variantGroup$)))},directives:[g.O5,v.bd,P.R7,P.uj,g.sg,O.I,L.T],pipes:[C.fM],styles:["[_nghost-%COMP%]{display:block}"]}),s})();var m=o(647);function A(s,i){}function U(s,i){if(1&s&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,A,0,0,"ng-template",6),n.qZA(),n.BQk()),2&s){const c=n.oxw(),p=n.MAs(2);n.xp6(1),n.Q6J("routerLink",c.variantgroup.link),n.xp6(1),n.Q6J("ngTemplateOutlet",p)}}function x(s,i){}function E(s,i){if(1&s&&(n.TgZ(0,"nz-tag",9),n.YNc(1,x,0,0,"ng-template",6),n.qZA()),2&s){n.oxw();const c=n.MAs(2);n.oxw();const p=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",c),n.xp6(1),n.Q6J("ngTemplateOutlet",p)}}function N(s,i){if(1&s&&n._UZ(0,"cvc-variant-group-popover",11),2&s){const c=n.oxw(3);n.Q6J("variantGroupId",c.variantgroup.id)}}function G(s,i){if(1&s&&n.YNc(0,N,1,1,"cvc-variant-group-popover",10),2&s){const c=n.oxw(2);n.Q6J("ngIf",c.enablePopover)}}function V(s,i){if(1&s&&(n.YNc(0,E,2,3,"nz-tag",7),n.YNc(1,G,1,1,"ng-template",null,8,n.W1O)),2&s){const c=n.oxw(),p=n.MAs(4);n.Q6J("ngIf",c.enablePopover)("ngIfElse",p)}}function W(s,i){}function R(s,i){if(1&s&&(n.TgZ(0,"nz-tag"),n.YNc(1,W,0,0,"ng-template",6),n.qZA()),2&s){n.oxw();const c=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",c)}}function j(s,i){}function w(s,i){if(1&s&&n.YNc(0,j,0,0,"ng-template",6),2&s){n.oxw();const c=n.MAs(2);n.Q6J("ngTemplateOutlet",c)}}function D(s,i){if(1&s&&(n._UZ(0,"i",12),n._uU(1)),2&s){const c=n.oxw();n.xp6(1),n.hij(" ",c.variantgroup.name,"\n")}}let B=(()=>{class s{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 s.\u0275fac=function(c){return new(c||s)},s.\u0275cmp=n.Xpm({type:s,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,p){if(1&c&&(n.YNc(0,U,3,2,"ng-container",0),n.YNc(1,V,3,2,"ng-template",null,1,n.W1O),n.YNc(3,R,2,1,"ng-template",null,2,n.W1O),n.YNc(5,w,1,1,"ng-template",null,3,n.W1O),n.YNc(7,D,2,1,"ng-template",null,4,n.W1O)),2&c){const y=n.MAs(6);n.Q6J("ngIf",p.linked)("ngIfElse",y)}},directives:[g.O5,t.yS,g.tP,S.j,_.lU,u,m.Ls],styles:[""]}),s})()},359:(Y,Z,o)=>{o.r(Z),o.d(Z,{SourcesModule:()=>cn});var n=o(9808),g=o(325),t=o(5e3),S=o(8992),_=o(1945),z=o(4182),M=o(6123),v=o(7625),P=o(8929),O=o(712),L=o(9169),C=o(8144),b=o(7484),I=o(3618),Q=o(7525),J=o(4546),d=o(8776),f=o(1894),u=o(822),m=o(2359);function A(e,r){1&e&&(t.TgZ(0,"nz-card"),t.TgZ(1,"nz-typography"),t._uU(2," If you have a source publication that you believe to contain research relevant to CIViC's curation efforts, the community would appreciate your input! Please specify as many details as you can using the form below (only the Pubmed ID and Comment are required). Your suggested source will be placed in the "),t.TgZ(3,"a",3),t._uU(4,"source curation queue"),t.qZA(),t._uU(5,", and you will be given a suggestion credit if your suggestion results in a new Evidence Item added to the CIViC database. "),t.qZA(),t.qZA())}function U(e,r){1&e&&t.GkF(0)}function x(e,r){if(1&e){const a=t.EpF();t.TgZ(0,"formly-form",9),t.NdJ("modelChange",function(h){return t.CHM(a),t.oxw(2).formModel=h}),t.qZA()}if(2&e){const a=t.oxw(2);t.Q6J("form",a.formGroup)("fields",a.formFields)("model",a.formModel)("options",a.formOptions)}}function E(e,r){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",11),t.qZA()),2&e){const a=t.oxw(3);t.xp6(1),t.Q6J("errors",a.errorMessages)}}function N(e,r){1&e&&(t.TgZ(0,"p"),t._uU(1," Thank You! Your source will now appear in the "),t.TgZ(2,"a",3),t._uU(3," Source Suggestion curation queue."),t.qZA(),t.qZA())}function G(e,r){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",12),t.YNc(2,N,4,0,"ng-template",13,14,t.W1O),t.BQk()),2&e){const a=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",a)}}function V(e,r){if(1&e&&(t.YNc(0,E,2,1,"nz-form-item",10),t.YNc(1,G,4,1,"ng-container",10)),2&e){const a=t.oxw(2);t.Q6J("ngIf",a.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",a.success)}}function W(e,r){if(1&e){const a=t.EpF();t.TgZ(0,"nz-spin",4),t.TgZ(1,"form",5),t.NdJ("ngSubmit",function(){t.CHM(a);const h=t.oxw();return h.submitSourceSuggestion(h.formModel)}),t.YNc(2,U,1,0,"ng-container",6),t.YNc(3,x,1,4,"formly-form",7),t.qZA(),t.YNc(4,V,2,2,"ng-template",null,8,t.W1O),t.qZA()}if(2&e){const a=t.MAs(5),l=t.oxw();t.Q6J("nzSpinning",l.loading),t.xp6(1),t.Q6J("formGroup",l.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngIf",!l.success)}}let R=(()=>{class e{constructor(a,l){this.suggestSourceGQL=a,this.errService=l,this.destroy$=new P.xQ,this.formGroup=new z.cw({}),this.formOptions={},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestSourceMutator=new M.U(l),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Source Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1}},{key:"variant",type:"variant-array",templateOptions:{maxCount:1}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{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",required:!0,maxCount:1},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this Source Suggestion. 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"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Source Suggestion",submitSize:"large"}}]}]}submitSourceSuggestion(a){console.log(a);let l=this.toSubmitInput(a);if(l){let h=this.suggestSourceMutator.mutate(this.suggestSourceGQL,{input:l},{},T=>{this.newId=T.suggestSource.sourceSuggestion.id});h.submitSuccess$.pipe((0,v.R)(this.destroy$)).subscribe(T=>{T&&(this.success=!0)}),h.submitError$.pipe((0,v.R)(this.destroy$)).subscribe(T=>{T&&(this.errorMessages=T,this.success=!1)}),h.isSubmitting$.pipe((0,v.R)(this.destroy$)).subscribe(T=>{this.loading=T})}}toSubmitInput(a){var l,h,T,F;if(a){const K=a.fields;return{variantId:null===(l=K.variant[0])||void 0===l?void 0:l.id,geneId:null===(h=K.gene[0])||void 0===h?void 0:h.id,sourceId:K.source[0].id,diseaseId:null===(T=K.disease[0])||void 0===T?void 0:T.id,comment:K.comment,organizationId:null===(F=null==a?void 0:a.fields.organization)||void 0===F?void 0:F.id}}}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(O.SWk),t.Y36(L.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-source-submit-form"]],decls:3,vars:0,consts:[["nzDirection","vertical"],[4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["routerLink","/curation/queues/pending-sources"],["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","Source Suggestion Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""]],template:function(a,l){1&a&&(t.TgZ(0,"nz-space",0),t.YNc(1,A,6,0,"nz-card",1),t.YNc(2,W,6,4,"nz-spin",2),t.qZA())},directives:[C.NU,C.$1,b.bd,I.ZU,g.yS,Q.W,z._Y,z.JL,J.Lr,z.sg,n.tP,n.O5,d.T7,f.SK,J.Nx,u.V,m.r],styles:[""]}),e})(),j=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-source-add-page"]],decls:10,vars:0,consts:[["displayName","New"],[1,"site-page-header"],["nz-icon","","nzType","civic:assertion"],[1,"content"]],template:function(a,l){1&a&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1),t.TgZ(2,"nz-page-header-title"),t._UZ(3,"i",2),t._uU(4," Add a Source Suggestion "),t.qZA(),t.TgZ(5,"nz-page-header-subtitle"),t._uU(6," Submit a promising source for curation "),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",3),t._UZ(9,"cvc-source-submit-form"),t.qZA(),t.qZA(),t.qZA())},directives:[S.I,_.$O,_.u9,_.yG,_.u5,R],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 w=o(373),D=o(1059),B=o(9350),s=o(6949),i=o(6042),c=o(2643),p=o(2683),y=o(647),$=o(6550),H=o(2233);function k(e,r){1&e&&(t.TgZ(0,"button",10),t._UZ(1,"i",11),t._uU(2," Suggest a New Source "),t.qZA())}function tt(e,r){if(1&e&&(t.ynx(0),t.YNc(1,k,3,0,"button",9),t.BQk()),2&e){const a=r.ngrxLet;t.xp6(1),t.Q6J("ngIf",a.signedIn)}}function nt(e,r){if(1&e&&t.YNc(0,tt,2,1,"ng-container",8),2&e){const a=t.oxw(2);t.Q6J("ngrxLet",a.viewer$)}}function et(e,r){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.YNc(2,nt,1,1,"ng-template",null,2,t.W1O),t.TgZ(4,"nz-page-header",3),t.TgZ(5,"nz-page-header-title"),t._UZ(6,"i",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-page-header-extra"),t.TgZ(9,"cvc-link-tag",5),t._uU(10),t.qZA(),t.qZA(),t.TgZ(11,"nz-page-header-content"),t._UZ(12,"cvc-tab-navigation",6),t.TgZ(13,"div",7),t._UZ(14,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const a=r.ngIf,l=t.MAs(3),h=t.oxw();t.xp6(1),t.Q6J("displayName",a.citation)("actionsTpl",l),t.xp6(6),t.hij(" ",a.citation," "),t.xp6(2),t.Q6J("href",a.sourceUrl)("tooltip","View on "+a.displayType),t.xp6(1),t.hij(" ",a.displayType+": "+a.citationId," "),t.xp6(2),t.Q6J("tabs",h.tabs)}}let ot=(()=>{class e{constructor(a,l,h){this.viewerService=a,this.route=l,this.gql=h,this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(T=>{this.sourceId=+T.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let F=this.queryRef.valueChanges;this.loading$=F.pipe((0,w.j)("loading"),(0,D.O)(!0)),this.source$=F.pipe((0,w.j)("data","source"))}),this.tabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"}]}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(B.a),t.Y36(g.gz),t.Y36(O.Bk6))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-sources-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","actionsTpl"],["sourcesActions",""],[1,"site-page-header"],["nz-icon","","nzType","civic:source"],[3,"href","tooltip"],[3,"tabs"],[1,"content"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"]],template:function(a,l){1&a&&(t.YNc(0,et,15,7,"ng-container",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,l.source$))},directives:[n.O5,S.I,s.eJ,i.ix,c.dQ,g.rH,p.w,y.Ls,_.$O,_.u9,_.Jp,$.l,_.u5,H.P,g.lC],pipes:[s.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),e})();var at=o(3575);function it(e,r){1&e&&(t.TgZ(0,"button",18),t._UZ(1,"i",19),t._uU(2," Suggest a New Source "),t.qZA())}function rt(e,r){if(1&e&&(t.ynx(0),t.YNc(1,it,3,0,"button",17),t.BQk()),2&e){const a=r.ngrxLet;t.xp6(1),t.Q6J("ngIf",a.signedIn)}}function ct(e,r){if(1&e&&t.YNc(0,rt,2,1,"ng-container",16),2&e){const a=t.oxw();t.Q6J("ngrxLet",a.viewer$)}}function st(e,r){1&e&&(t.TgZ(0,"a",20),t._UZ(1,"i",21),t._uU(2," View Source Docs "),t.qZA())}function pt(e,r){1&e&&(t.TgZ(0,"a",22),t._UZ(1,"i",21),t._uU(2," View Source Curation Docs "),t.qZA())}let lt=(()=>{class e{constructor(a){this.viewerService=a,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(B.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["sources-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["sourcesActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:source"],["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/source.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse Sources"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock",""]],template:function(a,l){if(1&a&&(t._UZ(0,"cvc-section-navigation",0),t.YNc(1,ct,1,1,"ng-template",null,1,t.W1O),t.TgZ(3,"nz-page-header",2),t.TgZ(4,"nz-page-header-content"),t.TgZ(5,"nz-row",3),t.TgZ(6,"nz-col",4),t._UZ(7,"i",5),t.qZA(),t.TgZ(8,"nz-col",6),t.TgZ(9,"h2"),t._uU(10,"Sources"),t.qZA(),t.TgZ(11,"p",7),t._uU(12," Each Evidence Item is associated with a Source which supports the Item's clinical claims. CIViC accepts publications known to PubMed or abstracts published through the American Society of Clinical Oncology. "),t.qZA(),t.qZA(),t.TgZ(13,"nz-col",8),t.TgZ(14,"nz-space",9),t.YNc(15,st,3,0,"a",10),t.YNc(16,pt,3,0,"a",11),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",12),t.TgZ(18,"div",13),t.TgZ(19,"div",14),t._UZ(20,"cvc-sources-table",15),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&a){const h=t.MAs(2);t.Q6J("actionsTpl",h),t.xp6(11),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24)}},directives:[S.I,s.eJ,n.O5,i.ix,c.dQ,g.rH,p.w,y.Ls,_.$O,_.u5,f.SK,f.t3,I.ZU,C.NU,C.$1,at.d],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 X=o(3098),gt=o(4049),ut=o(8965),dt=o(9814);function mt(e,r){if(1&e&&(t.TgZ(0,"h2"),t._uU(1),t.qZA()),2&e){const a=t.oxw().ngIf;t.xp6(1),t.Oqu(a.title)}}function _t(e,r){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const a=t.oxw(3).ngIf;t.xp6(1),t.hij(" ",a.pmcId," ")}}function ft(e,r){}function vt(e,r){if(1&e&&(t.TgZ(0,"nz-descriptions-item",26),t.YNc(1,ft,0,0,"ng-template",27),t.qZA()),2&e){t.oxw(3);const a=t.MAs(9);t.xp6(1),t.Q6J("ngTemplateOutlet",a)}}function zt(e,r){if(1&e&&(t.TgZ(0,"nz-descriptions-item",26),t._UZ(1,"cvc-clinical-trial-tag",28),t.qZA()),2&e){const a=t.oxw(4).ngIf;t.xp6(1),t.Q6J("clinicalTrial",a.clinicalTrials[0])}}function ht(e,r){if(1&e&&t._UZ(0,"cvc-clinical-trial-tag",28),2&e){const a=t.oxw().$implicit;t.Q6J("clinicalTrial",a)}}function xt(e,r){1&e&&(t.ynx(0),t.TgZ(1,"nz-space"),t.YNc(2,ht,1,1,"cvc-clinical-trial-tag",31),t.qZA(),t.BQk())}function Tt(e,r){if(1&e&&(t.TgZ(0,"nz-descriptions-item",29),t.YNc(1,xt,3,0,"ng-container",30),t.qZA()),2&e){const a=t.oxw(4).ngIf;t.xp6(1),t.Q6J("ngForOf",a.clinicalTrials)}}function Ct(e,r){if(1&e&&(t.ynx(0,22),t.YNc(1,vt,2,1,"ng-template",23),t.YNc(2,zt,2,1,"ng-template",24),t.YNc(3,Tt,2,1,"ng-template",25),t.BQk()),2&e){const a=t.oxw(3).ngIf;t.Q6J("ngPlural",a.clinicalTrials.length)}}function yt(e,r){if(1&e&&(t.TgZ(0,"nz-descriptions",15),t.TgZ(1,"nz-descriptions-item",16),t._uU(2),t.qZA(),t.TgZ(3,"nz-descriptions-item",17),t._uU(4),t.qZA(),t.TgZ(5,"nz-descriptions-item",18),t._uU(6),t.qZA(),t.TgZ(7,"nz-descriptions-item",19),t.YNc(8,_t,2,1,"ng-container",20),t.qZA(),t.YNc(9,Ct,4,1,"ng-container",21),t.qZA()),2&e){t.oxw();const a=t.MAs(9),l=t.oxw().ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.Oqu(l.publicationDate),t.xp6(1),t.MGl("nzTitle","",l.displayType," ID"),t.xp6(1),t.Oqu(l.citationId),t.xp6(2),t.Oqu(l.fullJournalTitle),t.xp6(2),t.Q6J("ngIf",l.pmcId)("ngIfElse",a),t.xp6(1),t.Q6J("ngIf",l.clinicalTrials)}}function St(e,r){1&e&&(t.TgZ(0,"span",32),t._uU(1," Not available "),t.qZA())}function Pt(e,r){if(1&e&&(t.TgZ(0,"nz-descriptions",33),t.TgZ(1,"nz-descriptions-item",34),t._uU(2),t.qZA(),t.qZA()),2&e){const a=t.oxw(2).ngIf;t.Q6J("nzColumn",1),t.xp6(2),t.hij(" ",a.authorString," ")}}function Ot(e,r){if(1&e&&(t.TgZ(0,"nz-row",7),t.TgZ(1,"nz-col",8),t.TgZ(2,"nz-descriptions",9),t.TgZ(3,"nz-descriptions-item",10),t._uU(4),t.qZA(),t.qZA(),t.qZA(),t.TgZ(5,"nz-col",8),t.TgZ(6,"nz-space",11),t.YNc(7,yt,10,8,"nz-descriptions",12),t.YNc(8,St,2,0,"ng-template",null,13,t.W1O),t.YNc(10,Pt,3,2,"nz-descriptions",14),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.oxw().ngIf;t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(3),t.Oqu(a.abstract),t.xp6(1),t.Q6J("nzSpan",12)}}function Zt(e,r){if(1&e&&t._UZ(0,"cvc-evidence-table",35),2&e){t.oxw();const a=t.MAs(5),l=t.oxw();t.Q6J("sourceId",l.sourceId)("cvcTitleTemplate",a)}}function Mt(e,r){if(1&e&&(t._uU(0," Evidence for "),t.TgZ(1,"i"),t._uU(2),t.qZA()),2&e){const a=t.oxw().ngIf;t.xp6(2),t.Oqu(a.title)}}function It(e,r){if(1&e&&t._UZ(0,"cvc-source-suggestions-table",35),2&e){t.oxw();const a=t.MAs(8),l=t.oxw();t.Q6J("sourceId",l.sourceId)("cvcTitleTemplate",a)}}function At(e,r){if(1&e&&(t._uU(0," Source Suggestions for "),t.TgZ(1,"i"),t._uU(2),t.qZA()),2&e){const a=t.oxw().ngIf;t.xp6(2),t.Oqu(a.title)}}function bt(e,r){1&e&&(t.TgZ(0,"nz-space",1),t.YNc(1,mt,2,1,"h2",2),t.YNc(2,Ot,11,4,"nz-row",3),t.YNc(3,Zt,1,2,"cvc-evidence-table",4),t.YNc(4,Mt,3,1,"ng-template",null,5,t.W1O),t.YNc(6,It,1,2,"cvc-source-suggestions-table",4),t.YNc(7,At,3,1,"ng-template",null,6,t.W1O),t.qZA())}let Jt=(()=>{class e{constructor(a,l){this.route=a,this.gql=l,this.routeSub=this.route.params.subscribe(h=>{this.sourceId=+h.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let T=this.queryRef.valueChanges;this.loading$=T.pipe((0,w.j)("loading"),(0,D.O)(!0)),this.source$=T.pipe((0,w.j)("data","source"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(g.gz),t.Y36(O.g0X))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-sources-summary"]],decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[3,"sourceId","cvcTitleTemplate",4,"nzSpaceItem"],["evidenceCardTitle",""],["sourceSuggestionCardTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzLayout","vertical"],["nzTitle","Abstract"],["nzDirection","vertical"],["nzBordered","",3,"nzColumn",4,"nzSpaceItem"],["notAvailable",""],["nzBordered","","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],["nzBordered","",3,"nzColumn"],["nzTitle","Published"],[3,"nzTitle"],["nzTitle","Journal"],["nzTitle","PMC ID"],[4,"ngIf","ngIfElse"],[3,"ngPlural",4,"ngIf"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],["nzTitle","Clinicial Trial"],[3,"ngTemplateOutlet"],[3,"clinicalTrial"],["nzTitle","Clinicial Trials"],[4,"ngFor","ngForOf"],[3,"clinicalTrial",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],["nzBordered","","nzLayout","vertical",3,"nzColumn"],["nzTitle","Authors"],[3,"sourceId","cvcTitleTemplate"]],template:function(a,l){1&a&&(t.YNc(0,bt,9,0,"nz-space",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,l.source$))},directives:[n.O5,C.NU,C.$1,f.SK,f.t3,X.R7,X.uj,n.iq,n.zE,n.tP,gt.G,n.sg,I.ZU,ut.a,dt.O],pipes:[s.fM],styles:[""]}),e})(),Ut=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-sources"]],decls:1,vars:0,template:function(a,l){1&a&&t._UZ(0,"router-outlet")},directives:[g.lC],styles:[""]}),e})();var Lt=o(3801);const Qt=[{path:"",component:Ut,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:lt,data:{breadcrumb:"Home"}},{path:"add",data:{breadcrumb:"Submit a Source Suggestion"},component:j},{path:":sourceId",component:ot,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Jt,data:{breadcrumb:"Summary"}},{path:"comments",component:(()=>{class e{constructor(a){this.route=a,this.commentable={id:+this.route.snapshot.params.sourceId,entityType:O.OfU.Source}}}return e.\u0275fac=function(a){return new(a||e)(t.Y36(g.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-sources-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,l){1&a&&t._UZ(0,"cvc-comment-list",0),2&a&&t.Q6J("commentable",l.commentable)},directives:[Lt.D],styles:["[_nghost-%COMP%]{display:block}"]}),e})(),data:{breadcrumb:"Comments"}}]}]}];let Et=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[g.Bz.forChild(Qt)],g.Bz]}),e})();var Nt=o(7279),q=o(5630);let wt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[n.ez,g.Bz,s.WG,_.KJ,y.PV,f.Jb,i.sL,I.ZJ,C.zf,q.D,Nt.h]]}),e})();var Yt=o(3630),Dt=o(8762);let Bt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[n.ez,g.Bz,s.WG,_.KJ,i.sL,y.PV,q.D,Yt.X,Dt.c]]}),e})();var Ft=o(5453),Gt=o(767),Vt=o(2832);let Wt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[n.ez,s.WG,f.Jb,C.zf,f.Jb,C.zf,I.ZJ,y.PV,X.q6,Gt.Q,Vt.W,Ft.N]]}),e})();var Rt=o(5109),jt=o(7008),$t=o(4889),Kt=o(4623),Ht=o(3416),Xt=o(1605),qt=o(1270),kt=o(7075),tn=o(5926),nn=o(5472);let en=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[n.ez,g.Bz,z.UX,d.X0,Q.j,J.U5,m.L,nn.r,jt.B,Xt.e,tn.J,Ht.g,qt.i,Kt.K,kt.l,$t.E,I.ZJ,b.vh,C.zf,g.Bz,Rt.s]]}),e})(),on=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[n.ez,_.KJ,q.D,en]]}),e})();var an=o(2278);let rn=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[n.ez,an.l]]}),e})(),cn=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[n.ez,g.Bz,Et,wt,Bt,Wt,on,rn]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/3730.8e411410b404acd9.js b/server/public/3730.8e411410b404acd9.js deleted file mode 100644 index be5107977..000000000 --- a/server/public/3730.8e411410b404acd9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3730],{8616:(b,x,t)=>{t.d(x,{u:()=>e});var p=t(5e3),g=t(685),o=t(1912),h=t(3618),m=t(647);function r(n,a){1&n&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function O(n,a){1&n&&p._UZ(0,"cvc-login-button")}function T(n,a){1&n&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=p.Xpm({type:n,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(i,u){if(1&i&&(p.TgZ(0,"nz-empty",0),p.YNc(1,r,2,0,"ng-template",null,1,p.W1O),p.YNc(3,O,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,T,2,0,"ng-template",null,3,p.W1O)),2&i){const s=p.MAs(2),C=p.MAs(4),E=p.MAs(6);p.Q6J("nzNotFoundImage",E)("nzNotFoundContent",s)("nzNotFoundFooter",C)}},directives:[g.p9,o.s,h.ZU,m.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),n})()},9386:(b,x,t)=>{t.d(x,{a:()=>O});var p=t(9808),g=t(1844),o=t(685),h=t(647),m=t(3618),r=t(5e3);let O=(()=>{class T{}return T.\u0275fac=function(n){return new(n||T)},T.\u0275mod=r.oAB({type:T}),T.\u0275inj=r.cJS({imports:[[p.ez,g.B,o.Xo,h.PV,m.ZJ]]}),T})()},7905:(b,x,t)=>{t.d(x,{yQ:()=>h,nT:()=>r});var p=t(915),g=t(712),o=t(444),h=(()=>{return(O=h||(h={})).EVIDENCE="Evidence",O.ASSERTION="Assertion",h;var O})();class r{constructor(T){this.validStates=new Map,this.getTypeOptions=()=>this.entityName==h.ASSERTION?(0,o.o6)(g.uBv).map(e=>e):(0,o.o6)(g.kqt).map(e=>e),this.getSignificanceOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.clinicalSignificance)||[]},this.isValidSignificanceOption=(e,n)=>{const a=this.validStates.get(e);return!a||a.clinicalSignificance.includes(n)},this.getDirectionOptions=e=>{const n=this.validStates.get(e);return(null==n?void 0:n.entityDirection)||[]},this.isValidDirectionOption=(e,n)=>{const a=this.validStates.get(e);return!a||a.entityDirection.includes(n)},this.requiresDrug=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDrug},this.requiresDisease=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresDisease},this.requiresAcmgCodes=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAcmgCodes},this.requiresAmpLevel=e=>{const n=this.validStates.get(e);return void 0===n||n.requiresAmpLevel},this.allowsFdaApproval=e=>{const n=this.validStates.get(e);return void 0===n||n.allowsFdaApproval},this.getOptionsFromEnums=e=>0===e.length?[]:e.map(n=>({value:n,label:(0,p.E)(n)})),this.entityName=T,this.pluralNames=new Map,this.pluralNames.set(h.ASSERTION,"Assertions"),this.pluralNames.set(h.EVIDENCE,"Evidence")}}},1135:(b,x,t)=>{t.d(x,{C:()=>u});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(304),r=t(8054),O=t(915);const T={Evidence:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{NA:"Clinical Significance is not applicable."},FUNCTIONAL:{GAIN_OF_FUNCTION:"Sequence variant confers an increase in normal gene function",LOSS_OF_FUNCTION:"Sequence variant confers a diminished or abolished function",UNALTERED_FUNCTION:"Gene product of sequence variant is unchanged",NEOMORPHIC:"Sequence variant creates a novel function",DOMINANT_NEGATIVE:"Sequence variant abrogates function of wildtype allele gene product",UNKNOWN:"Sequence variant that cannot be precisely defined by the other listed categories"},ONCOGENIC:{NA:"Clinical Significance is not applicable."}},Assertion:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PATHOGENIC:"Very strong evidence the variant is pathogenic",LIKELY_PATHOGENIC:"Strong evidence (>90% certainty) the variant is pathogenic.",BENIGN:"Very strong evidence the variant is benign",LIKELY_BENIGN:"Not expected to have a major effect on disease",UNCERTAIN_SIGNIFICANCE:"Does not fullfill the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"}}},e={name:"clinical-significance-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Clinical Signficance",helpText:"The impact of the variant for predictive, prognostic, diagnostic, or functional evidence types. For predisposing and oncogenic evidence, impact is only applied at the assertion level and N/A should be selected here.",placeholder:"None specified",options:[]},validators:{validation:["cs-option"]},hooks:{onInit:s=>{var C;const E=s.templateOptions,D=null===(C=null==s?void 0:s.options)||void 0===C?void 0:C.formState;if(!D)return;const F=(null==s?void 0:s.form)?s.form.get("evidenceType"):null;!F||(E.options=D.getOptionsFromEnums(D.getSignificanceOptions(F.value)),E.vcSub=F.valueChanges.subscribe(U=>{E.options=D.getOptionsFromEnums(D.getSignificanceOptions(U)),s.formControl.updateValueAndValidity()}))},onDestroy:s=>{s.templateOptions.vcSub.unsubscribe()}},expressionProperties:{"templateOptions.optionText":(s,C,E)=>{if(C.entityName&&s.evidenceType&&s.clinicalSignificance)return T[C.entityName][s.evidenceType][s.clinicalSignificance]}}}},n={name:"cs-option",validation:(s,C,E)=>{var D,F,U;const J=null===(D=C.options)||void 0===D?void 0:D.formState,Z=s.value;if(!Z||!J)return null;const B=null===(U=null===(F=s.parent)||void 0===F?void 0:F.get("evidenceType"))||void 0===U?void 0:U.value;return B?J.isValidSignificanceOption(B,Z)?null:{"cs-option":B}:null}},a={name:"cs-option",message:(s,C)=>{var E;const D=C.options.formState;return`'${(0,O.E)(null===(E=C.formControl)||void 0===E?void 0:E.value)}' is not a valid Clinical Significance for ${(0,O.E)(s)} ${D.pluralNames.get(D.entityName)}.`}};var i=t(5e3);let u=(()=>{class s{}return s.\u0275fac=function(E){return new(E||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[[p.ez,g.u5,g.UX,r.LV,m.F,h.F,o.X0.forChild({types:[e],validators:[n],validationMessages:[a]})]]}),s})()},5452:(b,x,t)=>{t.d(x,{C:()=>X});var p=t(9808),g=t(8776),o=t(7625),h=t(373),m=t(4850),r=t(8929),O=t(591),T=t(6123),e=t(5e3),n=t(712),a=t(9169),i=t(8054),u=t(4182),s=t(6949),C=t(8144),E=t(3618),D=t(7469),F=t(822),U=t(6042),J=t(2643),Z=t(2683),B=t(8926);function I(y,P){if(1&y&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&y){const f=e.oxw().$implicit,S=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,f.label,S.to.searchString),e.oJD)}}function V(y,P){if(1&y&&(e.TgZ(0,"div"),e._UZ(1,"span",12),e.ALo(2,"highlightTypeahead"),e.qZA()),2&y){const f=e.oxw(2).$implicit,S=e.oxw(3);e.xp6(1),e.Q6J("innerHtml",e.xi3(2,1,f.drug.drugAliases.join(", "),S.to.searchString),e.oJD)}}function l(y,P){1&y&&(e.ynx(0),e.YNc(1,V,3,4,"div",11),e.BQk())}function z(y,P){if(1&y&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,I,2,4,"span",8),e.YNc(3,l,2,0,"ng-container",9),e.qZA(),e.qZA()),2&y){const f=P.$implicit;e.Q6J("nzLabel",f.tooltip)("nzValue",f.drug),e.xp6(3),e.Q6J("ngIf",f.drug.drugAliases.length>0)}}function A(y,P){if(1&y&&(e.ynx(0),e.YNc(1,z,4,3,"nz-option",6),e.BQk()),2&y){const f=P.ngrxLet;e.xp6(1),e.Q6J("ngForOf",f)}}function L(y,P){1&y&&e._uU(0," No drug found in CIViC that matches the string provided. ")}function Q(y,P){if(1&y){const f=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(N){return e.CHM(f),e.oxw().to.onSearch(N)}),e.YNc(2,A,2,1,"ng-container",4),e.qZA(),e.YNc(3,L,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&y){const f=e.MAs(4),S=e.oxw(),N=e.MAs(4);e.xp6(1),e.Q6J("formControl",S.formControl)("formlyAttributes",S.field)("nzPlaceHolder",S.to.placeholder?S.to.placeholder:null)("nzNotFoundContent",f)("nzDropdownRender",S.to.allowCreate?N:null)("nzShowArrow",S.to.showArrow)("nzFilterOption",S.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",S.drugs$)}}function v(y,P){if(1&y&&e._UZ(0,"cvc-drug-tag",13),2&y){const f=e.oxw();e.Q6J("drug",f.formControl.value)}}function M(y,P){if(1&y&&e._UZ(0,"cvc-form-errors-alert",16),2&y){const f=e.oxw(4);e.Q6J("errors",f.errorMessages)}}function c(y,P){if(1&y){const f=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){e.CHM(f);const N=e.oxw(4);return N.addDrug(N.to.searchString)}),e._UZ(1,"i",18),e._uU(2,"No Existing CIViC Drug\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Drug? "),e.qZA()}if(2&y){const f=e.oxw(4);e.Q6J("nzLoading",f.loading),e.xp6(4),e.Oqu(f.to.searchString)}}function d(y,P){if(1&y&&(e.ynx(0),e.YNc(1,M,1,1,"cvc-form-errors-alert",14),e.YNc(2,c,6,2,"button",15),e.BQk()),2&y){const f=e.oxw(3);e.xp6(1),e.Q6J("ngIf",f.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==f.errorMessages.length)}}function _(y,P){if(1&y&&(e.ynx(0),e.YNc(1,d,3,2,"ng-container",9),e.BQk()),2&y){const f=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==f.to.searchString&&f.to.searchString.length>=5)}}function R(y,P){if(1&y&&(e.YNc(0,_,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&y){const f=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,f.displayAdd$))}}const $={name:"drug-input",component:(()=>{class y extends g.fS{constructor(f,S,N){super(),this.drugTypeaheadQuery=f,this.networkErrorService=S,this.addDrugGQL=N,this.destroy$=new r.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new O.X(!1),this.addDrugMutator=new T.U(S),this.defaultOptions={templateOptions:{placeholder:"Search Drugs",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.drugTypeaheadQuery.watch({name:"zzzzz"}),this.drugs$=this.queryRef.valueChanges.pipe((0,o.R)(this.destroy$),(0,h.j)("data","drugTypeahead"),(0,m.U)(f=>f.map(S=>{let N=S.ncitId?`${S.ncitId}`:"no NCIt ID",H=S.drugAliases.length>0?`Aliases: ${S.drugAliases.join(", ")}`:"";return{value:S.id,tooltip:`${S.name} (${N}) ${H}`,label:`${S.name} (${N})`,drug:S}})))}ngAfterViewInit(){this.to.onSearch=f=>{f.length{let N=0==S.data.drugTypeahead.filter(H=>H.name.toUpperCase()==f.toUpperCase()).length;this.displayAdd$.next(N)}))}}addDrug(f){if(f&&""!=f){let S=this.addDrugMutator.mutate(this.addDrugGQL,{name:f},{},N=>{var H;null===(H=this.field.formControl)||void 0===H||H.setValue({id:N.addDrug.drug.id,name:N.addDrug.drug.name}),this.to.searchString="",this.to.searchLength=0});S.submitSuccess$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.success=!0)}),S.submitError$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{N&&(this.errorMessages=N,this.success=!1)}),S.isSubmitting$.pipe((0,o.R)(this.destroy$)).subscribe(N=>{this.loading=N})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return y.\u0275fac=function(f){return new(f||y)(e.Y36(n.vRc),e.Y36(a.Y),e.Y36(n.T97))},y.\u0275cmp=e.Xpm({type:y,selectors:[["cvc-drug-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["addDrugTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzDropdownRender","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],[4,"ngIf"],[3,"innerHtml"],[4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"drug"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(f,S){if(1&f&&(e.YNc(0,Q,5,8,"ng-container",0),e.YNc(1,v,1,1,"ng-template",null,1,e.W1O),e.YNc(3,R,2,3,"ng-template",null,2,e.W1O)),2&f){const N=e.MAs(2);e.Q6J("ngIf",!(null!=S.formControl.value&&S.formControl.value.id))("ngIfElse",N)}},directives:[p.O5,i.Vq,u.JJ,u.oH,g.VQ,s.eJ,p.sg,i.Ip,C.NU,C.$1,E.ZU,D.u,F.V,U.ix,J.dQ,Z.w],pipes:[B.A,s.fM],styles:[""]}),y})()};var Y=t(8018),G=t(7008),W=t(1047),j=t(9444);let X=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[p.ez,u.u5,u.UX,s.WG,g.X0.forChild({types:[$]}),i.LV,C.zf,E.ZJ,U.sL,W.o7,Y.e,G.B,j.s]]}),y})()},4581:(b,x,t)=>{t.d(x,{e:()=>a});var p=t(9808),g=t(4182),o=t(3793),h=t(8776),m=t(712),r=t(444);const T={COMBINATION:"The drugs listed were used as part of a combination therapy approach",SEQUENTIAL:"The drugs listed were used at separate timepoints in the same treatment plan",SUBSTITUTES:"The drugs listed are often considered to be of the same family, or behave similarly in a treatment setting"},e={name:"drug-interaction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug Interaction Type",helpText:"Indicate whether the drugs specified above are substitutes, or are used in sequential or combination treatments.",required:!1,placeholder:"Not specified",options:(0,r.o6)(m.Zyn).map((i,u)=>({value:i,label:u}))},validation:{messages:{required:(i,u)=>"Evidence with more than one drug must specify an interaction type."}},hideExpression:(i,u,s)=>!(!i.drugs||i.drugs.length>1),expressionProperties:{"templateOptions.required":(i,u,s)=>!!i.drugs&&i.drugs.length>1,"templateOptions.optionText":(i,u,s)=>T[i.drugInteractionType]}}};var n=t(5e3);let a=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[p.ez,g.UX,o.F,h.X0.forChild({types:[e]})]]}),i})()},2480:(b,x,t)=>{t.d(x,{r:()=>e});var p=t(9808),g=t(8776),o=t(5452),h=t(8390),m=t(915);const O={name:"drug-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug",helpText:"Please enter a drug name. If you are unable to locate the drug in the dropdown, please check the 'Could not find drug' checkbox below and enter the drug in the field that appears.",required:!1,addText:"Add a Drug"},fieldArray:{type:"drug-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(n,a,i)=>{var u,s;const C=null===(s=null===(u=null==i?void 0:i.parent)||void 0===u?void 0:u.templateOptions)||void 0===s?void 0:s.allowCreate;return void 0===C||C}}},defaultValue:[],validation:{messages:{required:(n,a)=>{const i=(null==a?void 0:a.form)?a.form.get("evidenceType"):null;return i?`${(0,m.E)(i.value)} Evidence requires at least one drug to be specified.`:"Drug is required."}}},hooks:{onInit:n=>{var a;const i=n.templateOptions,u=null===(a=null==n?void 0:n.options)||void 0===a?void 0:a.formState,s=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;!s||(i.vcSub=s.valueChanges.subscribe(C=>{u.requiresDrug(C)?(i.hidden=!1,i.required=!0):(i.hidden=!0,i.required=!1,n.model.length>0&&(n.model.splice(1),i.remove(0)))}))},onDestroy:n=>{n.templateOptions.vcSub.unsubscribe()}}}};var T=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=T.oAB({type:n}),n.\u0275inj=T.cJS({imports:[[p.ez,g.X0.forChild({types:[O]}),o.C,h.N]]}),n})()},5932:(b,x,t)=>{t.d(x,{A:()=>e});var p=t(9808),g=t(8776),o=t(915);const h={Evidence:{PREDICTIVE:{SUPPORTS:"The experiment or study supports this variant's response to a drug",DOES_NOT_SUPPORT:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{NA:"Evidence Direction is Not Applicable."},FUNCTIONAL:{SUPPORTS:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Evidence Direction is Not Applicable for Oncogenic Evidence Type."}},Assertion:{PREDICTIVE:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's response to a drug",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a predisposing association between variant and outcome"},FUNCTIONAL:{SUPPORTS:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}}},m={name:"evidence-direction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Direction",placeholder:"None specified",options:[]},expressionProperties:{"templateOptions.optionText":(n,a,i)=>{if(a.entityName&&n.evidenceType&&n.evidenceDirection)return h[a.entityName][n.evidenceType][n.evidenceDirection]}},validators:{validation:["ed-option"]},hooks:{onInit:n=>{var a;const i=n.templateOptions,u=null===(a=null==n?void 0:n.options)||void 0===a?void 0:a.formState;if(u){i.label=`${u.entityName} Direction`,i.helpText=`An indicator of whether the ${u.entityName} statement supports or refutes the clinical significance of an event. For predisposing and oncogenic ${u.pluralNames.get(u.entityName)}, directionality is only applied at the assertion level and N/A should be selected here.`;const s=(null==n?void 0:n.form)?n.form.get("evidenceType"):null;if(!s)return;i.options=u.getOptionsFromEnums(u.getDirectionOptions(s.value)),n.formControl.updateValueAndValidity(),i.vcSubscription=s.valueChanges.subscribe(C=>{i.options=u.getOptionsFromEnums(u.getDirectionOptions(s.value)),n.formControl.updateValueAndValidity()})}},onDestroy:n=>{n.templateOptions.vcSubscription.unsubscribe()}}}},r={name:"ed-option",validation:(n,a,i)=>{var u,s,C;const E=null===(u=a.options)||void 0===u?void 0:u.formState,D=n.value;if(!D||!E)return null;const F=null===(C=null===(s=n.parent)||void 0===s?void 0:s.get("evidenceType"))||void 0===C?void 0:C.value;return F?E.isValidDirectionOption(F,D)?null:{"ed-option":F}:null}},O={name:"ed-option",message:(n,a)=>{var i;return`'${(0,o.E)(null===(i=a.formControl)||void 0===i?void 0:i.value)}' is not a valid Clinical Significance for ${(0,o.E)(n)} Evidence.`}};var T=t(5e3);let e=(()=>{class n{}return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=T.oAB({type:n}),n.\u0275inj=T.cJS({imports:[[p.ez,g.X0.forChild({types:[m],validators:[r],validationMessages:[O]})]]}),n})()},2789:(b,x,t)=>{t.d(x,{o:()=>a});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(712),r=t(444);const O=new Map([[m.Sx0.A,"A - Validated association"],[m.Sx0.B,"B - Clinical evidence"],[m.Sx0.C,"C - Case study"],[m.Sx0.D,"D - Preclinical evidence"],[m.Sx0.E,"E - Inferential association"]]),T=new Map([[m.Sx0.A,"Evidence shows consensus association in human medicine"],[m.Sx0.B,"Evidence supports association using clinical trial or other primary patient data"],[m.Sx0.C,"Evidence supports association using individual case reports from clinical journals"],[m.Sx0.D,"Evidence supports association using in vivo or in vitro models"],[m.Sx0.E,"Evidential association is inferential or indirect"]]),e={name:"evidence-level-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Level",placeholder:"None specified",helpText:"Type of study performed to produce the evidence statement",options:(0,r.o6)(m.Sx0).map(i=>({value:i,label:O.get(i)})),labels:O,descriptions:T},expressionProperties:{"templateOptions.optionText":(i,u,s)=>T.get(i.evidenceLevel)}}};var n=t(5e3);let a=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[p.ez,g.UX,h.F,o.X0.forChild({types:[e]})]]}),i})()},3643:(b,x,t)=>{t.d(x,{q:()=>T});var p=t(9808),g=t(4182),o=t(3793),h=t(8776);const m={DIAGNOSTIC:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",PREDICTIVE:"Evidence pertains to a variant's effect on therapeutic response",PROGNOSTIC:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival",PREDISPOSING:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",ONCOGENIC:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",FUNCTIONAL:"Evidence pertains to a variant that alters biological function from the reference state"},r={name:"evidence-type-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Entity Type",placeholder:"Not specified",options:[]},hooks:{onInit:e=>{var n;const a=e.templateOptions,i=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.formState;i?(a.label=`${i.entityName} Type`,a.helpText=`Type of clinical outcome associated with the ${i.entityName} statement.`,a.options=i.getOptionsFromEnums(i.getTypeOptions())):console.warn("entity-type-select requires a formState to populate select options.")}},expressionProperties:{"templateOptions.optionText":(e,n,a)=>m[e.evidenceType]}}};var O=t(5e3);let T=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=O.oAB({type:e}),e.\u0275inj=O.cJS({imports:[[p.ez,g.UX,o.F,h.X0.forChild({types:[r]})]]}),e})()},5457:(b,x,t)=>{t.d(x,{$:()=>B});var p=t(9808),g=t(8776),o=t(8929),h=t(7625),m=t(373),r=t(5e3),O=t(712),T=t(8054),e=t(4182),n=t(6949),a=t(7956),i=t(8926);function u(I,V){if(1&I&&(r.TgZ(0,"nz-option",6),r._UZ(1,"span",7),r.ALo(2,"highlightTypeahead"),r._uU(3),r.qZA()),2&I){const l=V.$implicit,z=r.oxw(3);r.hYB("nzLabel","",l.name," (",l.hpoId,")"),r.Q6J("nzValue",l),r.xp6(1),r.Q6J("innerHtml",r.xi3(2,5,l.name,z.to.searchString),r.oJD),r.xp6(2),r.hij(" - (",l.hpoId,") ")}}function s(I,V){if(1&I&&(r.ynx(0),r.YNc(1,u,4,8,"nz-option",5),r.BQk()),2&I){const l=V.ngrxLet;r.xp6(1),r.Q6J("ngForOf",l)}}function C(I,V){1&I&&r._uU(0," No phenotype found in CIViC that matches the string provided. ")}function E(I,V){if(1&I){const l=r.EpF();r.ynx(0),r.TgZ(1,"nz-select",2),r.NdJ("nzOnSearch",function(A){return r.CHM(l),r.oxw().to.onSearch(A)}),r.YNc(2,s,2,1,"ng-container",3),r.qZA(),r.YNc(3,C,1,0,"ng-template",null,4,r.W1O),r.BQk()}if(2&I){const l=r.MAs(4),z=r.oxw();r.xp6(1),r.Q6J("formControl",z.formControl)("formlyAttributes",z.field)("nzPlaceHolder",z.to.placeholder?z.to.placeholder:null)("nzNotFoundContent",l)("nzShowArrow",z.to.showArrow)("nzFilterOption",z.to.filterOption),r.xp6(1),r.Q6J("ngrxLet",z.phenotypes$)}}function D(I,V){if(1&I&&r._UZ(0,"cvc-phenotype-tag",8),2&I){const l=r.oxw();r.Q6J("phenotype",l.formControl.value)}}const U={name:"phenotype-input",component:(()=>{class I extends g.fS{constructor(l){super(),this.phenotypeTypeaheadQuery=l,this.destroy$=new o.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Phenotypes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.phenotypeTypeaheadQuery.watch({name:""}),this.phenotypes$=this.queryRef.valueChanges.pipe((0,h.R)(this.destroy$),(0,m.j)("data","phenotypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=l=>{var z;this.to.fieldValue=l,this.to.fieldLength=l.length,!(l.length{class I{}return I.\u0275fac=function(l){return new(l||I)},I.\u0275mod=r.oAB({type:I}),I.\u0275inj=r.cJS({imports:[[p.ez,e.UX,n.WG,g.X0.forChild({types:[U]}),T.LV,J.y,Z.s]]}),I})()},1830:(b,x,t)=>{t.d(x,{S:()=>u});var p=t(9808),g=t(4182),o=t(8776),h=t(3793),m=t(304),r=t(8054),O=t(5457),T=t(8390),e=t(915);const a={name:"phenotype-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Phenotype",helpText:'Please provide any HPO phenotypes.',required:!1,addText:"Add a Phenotype"},fieldArray:{type:"phenotype-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(s,C)=>{const E=(null==C?void 0:C.form)?C.form.get("evidenceType"):null;return E?`${(0,e.E)(E.value)} Evidence requires at least one phenotype to be specified.`:"Phenotype is required."}}}}};var i=t(5e3);let u=(()=>{class s{}return s.\u0275fac=function(E){return new(E||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[[p.ez,g.u5,g.UX,r.LV,m.F,h.F,o.X0.forChild({types:[a]}),O.$,T.N]]}),s})()},5743:(b,x,t)=>{t.d(x,{W:()=>Q});var p=t(9808),g=t(8776),o=t(5e3),h=t(4182),m=t(655),r=t(1159),O=t(3753),T=t(7625),e=t(9439),n=t(4090),a=t(1721),i=t(226),u=t(647),s=t(404);const C=["nz-rate-item",""];function E(v,M){}function D(v,M){}function F(v,M){1&v&&o._UZ(0,"i",4)}const U=function(v){return{$implicit:v}},J=["ulElement"];function Z(v,M){if(1&v){const c=o.EpF();o.TgZ(0,"li",3),o.TgZ(1,"div",4),o.NdJ("itemHover",function(_){const w=o.CHM(c).index;return o.oxw().onItemHover(w,_)})("itemClick",function(_){const w=o.CHM(c).index;return o.oxw().onItemClick(w,_)}),o.qZA(),o.qZA()}if(2&v){const c=M.index,d=o.oxw();o.Q6J("ngClass",d.starStyleArray[c]||"")("nzTooltipTitle",d.nzTooltips[c]),o.xp6(1),o.Q6J("allowHalf",d.nzAllowHalf)("character",d.nzCharacter)("index",c)}}let B=(()=>{class v{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new o.vpe,this.itemClick=new o.vpe}hoverRate(c){this.itemHover.next(c&&this.allowHalf)}clickRate(c){this.itemClick.next(c&&this.allowHalf)}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:"allowHalf"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:C,decls:6,vars:8,consts:[[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["defaultCharacter",""],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(c,d){if(1&c&&(o.TgZ(0,"div",0),o.NdJ("mouseover",function(R){return d.hoverRate(!1),R.stopPropagation()})("click",function(){return d.clickRate(!1)}),o.YNc(1,E,0,0,"ng-template",1),o.qZA(),o.TgZ(2,"div",2),o.NdJ("mouseover",function(R){return d.hoverRate(!0),R.stopPropagation()})("click",function(){return d.clickRate(!0)}),o.YNc(3,D,0,0,"ng-template",1),o.qZA(),o.YNc(4,F,1,0,"ng-template",null,3,o.W1O)),2&c){const _=o.MAs(5);o.xp6(1),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(4,U,d.index)),o.xp6(2),o.Q6J("ngTemplateOutlet",d.character||_)("ngTemplateOutletContext",o.VKq(6,U,d.index))}},directives:[p.tP,u.Ls],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,a.yF)()],v.prototype,"allowHalf",void 0),v})();const I="rate";let V=(()=>{class v{constructor(c,d,_,R,w,$){this.nzConfigService=c,this.ngZone=d,this.renderer=_,this.cdr=R,this.directionality=w,this.destroy$=$,this._nzModuleName=I,this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new o.vpe,this.nzOnFocus=new o.vpe,this.nzOnHoverChange=new o.vpe,this.nzOnKeyDown=new o.vpe,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.onChange=()=>null,this.onTouched=()=>null}get nzValue(){return this._value}set nzValue(c){this._value!==c&&(this._value=c,this.hasHalf=!Number.isInteger(c),this.hoverValue=Math.ceil(c))}ngOnChanges(c){const{nzAutoFocus:d,nzCount:_,nzValue:R}=c;if(d&&!d.isFirstChange()){const w=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(w,"autofocus","autofocus"):this.renderer.removeAttribute(w,"autofocus")}_&&this.updateStarArray(),R&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,T.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,O.R)(this.ulElement.nativeElement,"focus").pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(c))}),(0,O.R)(this.ulElement.nativeElement,"blur").pipe((0,T.R)(this.destroy$)).subscribe(c=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(c))})})}onItemClick(c,d){if(this.nzDisabled)return;this.hoverValue=c+1;const _=d?c+.5:c+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(c,d){this.nzDisabled||this.hoverValue===c+1&&d===this.hasHalf||(this.hoverValue=c+1,this.hasHalf=d,this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle())}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(c){const d=this.nzValue;c.keyCode===r.SV&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),d!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(c),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((c,d)=>d),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(c=>{const d="ant-rate-star",_=c+1;return{[`${d}-full`]:_this.hoverValue,[`${d}-focused`]:this.hasHalf&&_===this.hoverValue&&this.isFocused}})}writeValue(c){this.nzValue=c||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(c){this.nzDisabled=c}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}}return v.\u0275fac=function(c){return new(c||v)(o.Y36(e.jY),o.Y36(o.R0b),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(i.Is,8),o.Y36(n.kn))},v.\u0275cmp=o.Xpm({type:v,selectors:[["nz-rate"]],viewQuery:function(c,d){if(1&c&&o.Gf(J,7),2&c){let _;o.iGM(_=o.CRH())&&(d.ulElement=_.first)}},inputs:{nzAllowClear:"nzAllowClear",nzAllowHalf:"nzAllowHalf",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzCharacter:"nzCharacter",nzCount:"nzCount",nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],features:[o._Bn([n.kn,{provide:h.JU,useExisting:(0,o.Gpc)(()=>v),multi:!0}]),o.TTD],decls:3,vars:7,consts:[[1,"ant-rate",3,"ngClass","tabindex","keydown","mouseleave"],["ulElement",""],["class","ant-rate-star","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"allowHalf","character","index","itemHover","itemClick"]],template:function(c,d){1&c&&(o.TgZ(0,"ul",0,1),o.NdJ("keydown",function(R){return d.onKeyDown(R),R.preventDefault()})("mouseleave",function(R){return d.onRateLeave(),R.stopPropagation()}),o.YNc(2,Z,2,5,"li",2),o.qZA()),2&c&&(o.ekj("ant-rate-disabled",d.nzDisabled)("ant-rate-rtl","rtl"===d.dir),o.Q6J("ngClass",d.classMap)("tabindex",d.nzDisabled?-1:1),o.xp6(2),o.Q6J("ngForOf",d.starArray))},directives:[B,p.mk,p.sg,s.SY],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,e.oS)(),(0,a.yF)()],v.prototype,"nzAllowClear",void 0),(0,m.gn)([(0,e.oS)(),(0,a.yF)()],v.prototype,"nzAllowHalf",void 0),(0,m.gn)([(0,a.yF)()],v.prototype,"nzDisabled",void 0),(0,m.gn)([(0,a.yF)()],v.prototype,"nzAutoFocus",void 0),(0,m.gn)([(0,a.Rn)()],v.prototype,"nzCount",void 0),v})(),l=(()=>{class v{}return v.\u0275fac=function(c){return new(c||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[i.vT,p.ez,u.PV,s.cg]]}),v})();const z={1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims.",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing.",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning.",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning.",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods."},L={name:"rating-input",component:(()=>{class v extends g.fS{constructor(){super(),this.defaultOptions={}}updateField(c){this.field.formControl.setValue(c);let d=this.field.templateOptions;d&&(d.optionText=z[c])}}return v.\u0275fac=function(c){return new(c||v)},v.\u0275cmp=o.Xpm({type:v,selectors:[["cvc-rating-input-type"]],features:[o.qOj],decls:2,vars:4,consts:[["type","hidden",3,"formControl","formlyAttributes"],[3,"ngModel","formlyAttributes","ngModelChange"]],template:function(c,d){1&c&&(o._UZ(0,"input",0),o.TgZ(1,"nz-rate",1),o.NdJ("ngModelChange",function(R){return d.updateField(R)}),o.qZA()),2&c&&(o.Q6J("formControl",d.formControl)("formlyAttributes",d.field),o.xp6(1),o.Q6J("ngModel",d.formControl.value)("formlyAttributes",d.field))},directives:[h.Fj,h.JJ,h.oH,g.VQ,V,h.On],styles:[""]}),v})(),wrappers:["form-field"]};let Q=(()=>{class v{}return v.\u0275fac=function(c){return new(c||v)},v.\u0275mod=o.oAB({type:v}),v.\u0275inj=o.cJS({imports:[[p.ez,h.UX,h.u5,g.X0.forChild({types:[L]}),l]]}),v})()},7462:(b,x,t)=>{t.d(x,{o:()=>T});var p=t(9808),g=t(8776),o=t(5e3),h=t(1047),m=t(4182);const O={name:"cvc-textarea",component:(()=>{class e extends g.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=o.n5z(e)))(i||e)}}(),e.\u0275cmp=o.Xpm({type:e,selectors:[["cvc-textarea-base-type"]],features:[o.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(a,i){1&a&&o._UZ(0,"textarea",0),2&a&&o.Q6J("formControl",i.formControl)("formlyAttributes",i.field)("nzAutosize",i.to.autosize)("placeholder",i.to.placeholder)},directives:[h.Zp,m.Fj,h.rh,m.JJ,m.oH,g.VQ],styles:[""],changeDetection:0}),e})(),wrappers:["form-field"]};let T=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({imports:[[p.ez,m.u5,m.UX,g.X0.forChild({types:[O]}),h.o7]]}),e})()},3594:(b,x,t)=>{t.d(x,{q:()=>n});var p=t(9808),g=t(915),o=t(712);const h={SOMATIC:"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring.",RARE_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item.",COMMON_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item.",UNKNOWN:"The variant origin is uncertain based on the available evidence.",NA:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."},m={name:"variant-origin-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant Origin",placeholder:"None specified",helpText:"Origin of variant",options:[{value:o.huM.Somatic,label:(0,g.E)(o.huM.Somatic)},{value:o.huM.RareGermline,label:(0,g.E)(o.huM.RareGermline)},{value:o.huM.CommonGermline,label:(0,g.E)(o.huM.CommonGermline)},{value:o.huM.Unknown,label:(0,g.E)(o.huM.Unknown)},{value:o.huM.Na,label:(0,g.E)(o.huM.Na)}]},expressionProperties:{"templateOptions.optionText":(a,i,u)=>h[a.variantOrigin]}}};var r=t(4182),O=t(8776),T=t(3793),e=t(5e3);let n=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[p.ez,r.UX,T.F,O.X0.forChild({types:[m]})]]}),a})()},6738:(b,x,t)=>{function p(e){let n={value:void 0,unset:void 0};return e&&e.trim().length>0?n.value=e.trim():n.unset=!0,n}function g(e){let n={value:void 0,unset:void 0};return void 0!==e?n.value=e:n.unset=!0,n}t.d(x,{aP:()=>T,li:()=>o,Zg:()=>h,_$:()=>m,uP:()=>g,dh:()=>r,xt:()=>p});var o=(()=>{return(e=o||(o={}))[e.NotApplicable=0]="NotApplicable",e[e.NoneFound=1]="NoneFound",e[e.Found=2]="Found",o;var e})();function h(e,n){let a,i,u;return n==o.Found?(a=void 0,i=void 0,u=e):n==o.NoneFound?(i=!0,a=void 0,u=void 0):(a=!0,i=void 0,u=void 0),{ids:u?u.map(s=>+s):void 0,noneFound:i,notApplicable:a}}function m(e){return e?{chromosome:O(e.chromosome),representativeTranscript:O(e.representativeTranscript),start:e.start?+e.start:void 0,stop:e.stop?+e.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function r(e){let n={value:void 0,unset:void 0};return e?n.value=e:n.unset=!0,n}function O(e){let n;return n=e&&e.length>0?e:void 0,n}const T=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7695:(b,x,t)=>{t.d(x,{C:()=>V});var p=t(9808),g=t(6949),o=t(8776),h=t(7484),m=t(5482),r=t(1894),O=t(5109),T=t(6789),e=t(5e3),n=t(19),a=t(647),i=t(404);function u(l,z){1&l&&e._UZ(0,"div",9),2&l&&e.Q6J("innerHtml",z.ngIf,e.oJD)}function s(l,z){1&l&&(e.TgZ(0,"div",10),e._uU(1,"Help not available for this field."),e.qZA())}function C(l,z){if(1&l&&(e.TgZ(0,"nz-collapse-panel",6),e.YNc(1,u,1,1,"div",7),e.YNc(2,s,2,0,"ng-template",null,8,e.W1O),e.qZA()),2&l){const A=z.ngIf,L=e.MAs(3),Q=e.oxw().$implicit,v=e.MAs(3);e.Q6J("nzHeader",A)("nzActive",Q.templateOptions.hasFocus)("nzExtra",v),e.xp6(1),e.Q6J("ngIf",null==Q.templateOptions?null:Q.templateOptions.helpText)("ngIfElse",L)}}function E(l,z){if(1&l&&e._UZ(0,"formly-validation-message",14),2&l){const A=e.oxw(4).$implicit;e.Q6J("field",A)}}function D(l,z){if(1&l&&(e.ynx(0),e._UZ(1,"i",12),e.YNc(2,E,1,1,"ng-template",null,13,e.W1O),e.BQk()),2&l){const A=e.MAs(3);e.xp6(1),e.Q6J("nzTooltipTitle",A)}}function F(l,z){if(1&l&&(e.ynx(0),e.YNc(1,D,4,1,"ng-container",11),e.BQk()),2&l){const A=z.ngIf;e.xp6(1),e.Q6J("ngIf","INVALID"===A)}}function U(l,z){if(1&l&&(e.YNc(0,F,2,1,"ng-container",11),e.ALo(1,"ngrxPush")),2&l){const A=e.oxw().$implicit;e.Q6J("ngIf",e.lcZ(1,1,A.formControl.statusChanges))}}function J(l,z){if(1&l&&(e.ynx(0),e.YNc(1,C,4,5,"nz-collapse-panel",4),e.YNc(2,U,2,3,"ng-template",null,5,e.W1O),e.BQk()),2&l){const A=z.$implicit;e.xp6(1),e.Q6J("ngIf",null==A.templateOptions?null:A.templateOptions.label)}}let Z=(()=>{class l{constructor(){}ngOnInit(){}}return l.\u0275fac=function(A){return new(A||l)},l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(A,L){1&A&&(e.TgZ(0,"nz-affix",0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-collapse",2),e.YNc(3,J,4,1,"ng-container",3),e.qZA(),e.qZA(),e.qZA()),2&A&&(e.Q6J("nzOffsetTop",0)("nzTarget",L.affixTo),e.xp6(2),e.Q6J("nzBordered",!1),e.xp6(1),e.Q6J("ngForOf",L.fieldGroup))},directives:[n.$,h.bd,m.yH,p.sg,p.O5,m.Zv,a.Ls,i.SY,o.u_],pipes:[g.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),l})();const I={name:"form-info",component:(()=>{class l extends o.n2{}return l.\u0275fac=function(){let z;return function(L){return(z||(z=e.n5z(l)))(L||l)}}(),l.\u0275cmp=e.Xpm({type:l,selectors:[["cvc-form-info-wrapper"]],features:[e.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(A,L){if(1&A&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",2),e.GkF(3,null,3),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",null,4),e._UZ(8,"cvc-form-info-card",5),e.qZA(),e.qZA(),e.qZA()),2&A){const Q=e.MAs(7);e.xp6(1),e.Q6J("nzSpan",16),e.xp6(1),e.Q6J("nzTitle",L.to.label),e.xp6(3),e.Q6J("nzSpan",8),e.xp6(3),e.Q6J("fieldGroup",L.field.fieldGroup)("affixTo",Q)}},directives:[r.SK,r.t3,h.bd,Z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),l})()};let V=(()=>{class l{}return l.\u0275fac=function(A){return new(A||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[p.ez,g.WG,o.X0.forChild({wrappers:[I]}),r.Jb,h.vh,m.cD,T._,O.s]]}),l})()}}]); \ No newline at end of file diff --git a/server/public/3883.ab7362dab83f2219.js b/server/public/3883.0f3bb9c091de4aa0.js similarity index 87% rename from server/public/3883.ab7362dab83f2219.js rename to server/public/3883.0f3bb9c091de4aa0.js index ca3efe074..ccc48d9d1 100644 --- a/server/public/3883.ab7362dab83f2219.js +++ b/server/public/3883.0f3bb9c091de4aa0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3883],{3756:(N,I,t)=>{t.d(I,{x:()=>sn});var T=t(712),z=t(3154),v=t(8929),g=t(373),h=t(1059),E=t(4850),M=t(2986),Z=t(13),n=t(5e3),f=t(7484),p=t(1132),P=t(404),A=t(2683),D=t(647),O=t(2166),c=t(8054),C=t(4182),d=t(9808),L=t(2826),u=t(3193),U=t(8664),y=t(4022),_=t(6715),m=t(7469),r=t(6949),x=t(6042),S=t(2643),R=t(3618),W=t(4110),K=t(9657);function b(a,s){if(1&a&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",65),n.BQk()),2&a){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("disease",o.disease)("truncateLongName",!0)}}function B(a,s){1&a&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function J(a,s){if(1&a&&(n.TgZ(0,"span"),n._UZ(1,"cvc-drug-tag",67),n.qZA()),2&a){const o=s.$implicit;n.xp6(1),n.Q6J("drug",o)("truncateLongName",!0)}}function Q(a,s){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"titlecase"),n.qZA()),2&a){const o=n.oxw(2).$implicit;n.xp6(1),n.hij(" (",n.lcZ(2,1,o.drugInteractionType),") ")}}function V(a,s){if(1&a&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,J,2,2,"span",51),n.qZA(),n.YNc(3,Q,3,3,"span",66),n.qZA()),2&a){const o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",o.drugs),n.xp6(1),n.Q6J("ngIf",o.drugs.length>1)}}function F(a,s){1&a&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function Y(a,s){if(1&a&&(n.TgZ(0,"span",68),n.ALo(1,"formatAmp"),n._uU(2),n.ALo(3,"formatAmp"),n.qZA()),2&a){const o=n.oxw().$implicit;n.Q6J("nzTooltipTitle",n.xi3(1,2,o.ampLevel,"verbose")),n.xp6(2),n.hij(" ",n.xi3(3,5,o.ampLevel,"compact")," ")}}function $(a,s){1&a&&n._uU(0," -- ")}function j(a,s){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-assertion-tag",54),n.qZA(),n.TgZ(3,"td"),n._UZ(4,"cvc-gene-tag",55),n.qZA(),n.TgZ(5,"td"),n._UZ(6,"cvc-variant-tag",56),n.qZA(),n.TgZ(7,"td"),n.YNc(8,b,2,2,"ng-container",57),n.YNc(9,B,2,0,"ng-template",null,58,n.W1O),n.qZA(),n.TgZ(11,"td"),n.YNc(12,V,4,2,"div",57),n.YNc(13,F,2,0,"ng-template",null,59,n.W1O),n.qZA(),n.TgZ(15,"td",60),n._UZ(16,"i",61),n.qZA(),n.TgZ(17,"td",60),n._UZ(18,"i",62),n.ALo(19,"evidenceEnumDisplay"),n.ALo(20,"evidenceEnumDisplay"),n.qZA(),n.TgZ(21,"td",60),n._UZ(22,"i",62),n.ALo(23,"evidenceEnumDisplay"),n.ALo(24,"evidenceEnumDisplay"),n.qZA(),n.TgZ(25,"td",60),n._UZ(26,"i",62),n.ALo(27,"evidenceEnumDisplay"),n.ALo(28,"evidenceEnumDisplay"),n.qZA(),n.TgZ(29,"td",60),n.YNc(30,Y,4,8,"span",63),n.YNc(31,$,1,0,"ng-template",null,64,n.W1O),n.qZA(),n.TgZ(33,"td"),n._uU(34),n.qZA(),n.qZA()),2&a){const o=s.$implicit,e=n.MAs(10),l=n.MAs(14),i=n.MAs(32);n.xp6(2),n.Q6J("assertion",o),n.xp6(2),n.Q6J("gene",o.gene),n.xp6(2),n.Q6J("variant",o.variant),n.xp6(2),n.Q6J("ngIf",o.disease.name)("ngIfElse",e),n.xp6(4),n.Q6J("ngIf",o.drugs.length>0)("ngIfElse",l),n.xp6(4),n.Q6J("nzTooltipTitle",o.summary),n.xp6(2),n.Q6J("nzType",n.xi3(19,17,o.assertionType,"icon-name"))("nzTooltipTitle",n.lcZ(20,20,o.assertionType)),n.xp6(4),n.Q6J("nzType",n.xi3(23,22,o.assertionDirection,"icon-name"))("nzTooltipTitle",n.lcZ(24,25,o.assertionDirection)),n.xp6(4),n.Q6J("nzType",n.xi3(27,27,o.clinicalSignificance,"icon-name"))("nzTooltipTitle",n.lcZ(28,30,o.clinicalSignificance)),n.xp6(4),n.Q6J("ngIf",o.ampLevel)("ngIfElse",i),n.xp6(4),n.hij(" ",o.evidenceItemsCount," ")}}function G(a,s){if(1&a){const o=n.EpF();n.TgZ(0,"button",71),n.NdJ("click",function(){n.CHM(o);const l=n.oxw(2).ngrxLet;return n.oxw().loadMore(l.endCursor)}),n._uU(1),n.qZA()}if(2&a){const o=n.oxw(3);n.xp6(1),n.hij("Load ",o.initialPageSize," More")}}function H(a,s){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td",69),n.YNc(2,G,2,1,"button",70),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",o.hasNextPage)}}function q(a,s){if(1&a&&(n.ynx(0),n.YNc(1,H,3,1,"tr",66),n.BQk()),2&a){const o=s.ngrxLet;n.xp6(1),n.Q6J("ngIf",o.hasNextPage)}}function X(a,s){}function w(a,s){if(1&a&&(n.ynx(0),n.YNc(1,X,0,0,"ng-template",75),n.BQk()),2&a){const o=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",o.cvcTitleTemplate)}}function k(a,s){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const o=n.oxw(2);n.xp6(1),n.hij(" ",o.cvcTitle," ")}}function nn(a,s){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.hij(" of ",o," filtered")}}function tn(a,s){if(1&a&&(n.TgZ(0,"span",76),n._uU(1),n.YNc(2,nn,2,1,"span",66),n._uU(3,") "),n.qZA()),2&a){const o=s.ngIf,e=n.oxw(2);n.xp6(1),n.AsE(" (",e.totalCount," total, showing ",e.visibleCount,""),n.xp6(1),n.Q6J("ngIf",e.totalCount&&o{class a{constructor(o){this.gql=o,this.debouncedQuery=new v.xQ,this.initialPageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.tableView=!0,this.sortColumns=T.u4i}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,variantId:this.variantId,evidenceId:this.evidenceId,organizationId:this.organizationId,userId:this.userId,phenotypeId:this.phenotypeId,diseaseId:this.diseaseId,drugId:this.drugId,status:this.status,cardView:!this.tableView});let o=this.queryRef.valueChanges;this.isLoading$=o.pipe((0,g.j)("loading"),(0,h.O)(!0)),this.assertions$=o.pipe((0,g.j)("data","assertions","edges"),(0,E.U)(e=>e.map(l=>l.node))),this.filteredCount$=o.pipe((0,g.j)("data","assertions","totalCount")),this.filteredCount$.pipe((0,M.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.pageInfo$=o.pipe((0,g.j)("data","assertions","pageInfo")),this.debouncedQuery.pipe((0,Z.b)(500)).subscribe(e=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var o;this.loadedPages=1,o=this.aidInput?this.aidInput.toUpperCase().startsWith("AID")?+this.aidInput.toUpperCase().replace("AID",""):+this.aidInput:void 0,this.queryRef.refetch({id:o,diseaseName:this.diseaseNameInput,geneName:this.geneNameInput,variantName:this.variantNameInput,drugName:this.drugNameInput,summary:this.summaryInput,assertionType:this.assertionTypeInput?this.assertionTypeInput:void 0,assertionDirection:this.assertionDirectionInput?this.assertionDirectionInput:void 0,clinicalSignificance:this.clinicalSignificanceInput?this.clinicalSignificanceInput:void 0,ampLevel:this.ampLevelInput?this.ampLevelInput:void 0,cardView:!this.tableView})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(o){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,z._)(o),cardView:!this.tableView})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(o){this.queryRef.fetchMore({variables:{after:o}}),this.loadedPages+=1}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(T.td))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-assertions-table"]],inputs:{evidenceId:"evidenceId",variantId:"variantId",organizationId:"organizationId",userId:"userId",phenotypeId:"phenotypeId",diseaseId:"diseaseId",drugId:"drugId",status:"status",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:87,vars:55,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["assertionsTable",""],[3,"nzSortOrderChange"],["nzWidth","5%",3,"nzColumnKey","nzSortFn"],["nzWidth","10%",3,"nzColumnKey","nzSortFn"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],["nzWidth","12%",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Assertion Type",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Assertion Direction",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Clinical Significance",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","AMP/ASCO/CAP Category",3,"nzColumnKey","nzSortFn"],["nzWidth","3%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["placeholderText","Search AID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Gene",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Variant",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Disease",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Drugs",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Summary",3,"inputModel","onInputChanged","inputModelChange"],["nzWidth","5%","nzAlign","center"],["nzAllowClear","","nzPlaceHolder","Choose",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","PREDICTIVE","nzLabel","Predictive"],["nzValue","PROGNOSTIC","nzLabel","Prognostic"],["nzValue","DIAGNOSTIC","nzLabel","Diagnostic"],["nzValue","PREDISPOSING","nzLabel","Predisposing"],["nzValue","SUPPORTS","nzLabel","Supports"],["nzValue","DOES_NOT_SUPPORT","nzLabel","Does not Support"],["nzValue","NA","nzLabel","N/A"],["nzLabel","Predictive"],["nzValue","SENSITIVITYRESPONSE","nzLabel","Sensitivity/Response"],["nzValue","RESISTANCE","nzLabel","Resistance"],["nzValue","ADVERSE_RESPONSE","nzLabel","Adverse Response"],["nzValue","REDUCED SENSITIVITY","nzLabel","Reduced Sensitivity"],["nzLabel","Prognostic"],["nzValue","BETTER_OUTCOME","nzLabel","Better Outcome"],["nzValue","POOR_OUTCOME","nzLabel","Poor Outcome"],["nzLabel","Diagnostic"],["nzValue","POSITIVE","nzLabel","Positive"],["nzValue","NEGATIVE","nzLabel","Negative"],["nzLabel","Predisposing"],["nzValue","PATHOGENIC","nzLabel","Pathogenic"],["nzValue","LIKELY_PATHOGENIC","nzLabel","Likely Pathogenic"],["nzValue","BENIGN","nzLabel","Benign"],["nzValue","LIKELY_BENIGN","nzLabel","Likely Benign"],["nzValue","UNCERTAIN_SIGNIFICANCE","nzLabel","Uncertain Significance"],["nzValue","TIER_I_LEVEL_A","nzLabel","Tier I Level A"],["nzValue","TIER_I_LEVEL_B","nzLabel","Tier I Level B"],["nzValue","TIER_II_LEVEL_C","nzLabel","Tier II Level C"],["nzValue","TIER_II_LEVEL_D","nzLabel","Tier II Level D"],["nzValue","TIER_III","nzLabel","Tier III"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"assertion"],[3,"gene"],[3,"variant"],[4,"ngIf","ngIfElse"],["diseaseElse",""],["drugsElse",""],["nzAlign","center"],["nz-icon","","nzType","align-left","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["nz-icon","","nz-tooltip","","nzTooltipPlacement","top",3,"nzType","nzTooltipTitle"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["noAmp",""],[3,"disease","truncateLongName"],[4,"ngIf"],[3,"drug","truncateLongName"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["colspan","20"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:assertion"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(o,e){if(1&o&&(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 e.onSortChanged(i)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," AID "),n.qZA(),n.TgZ(9,"th",4),n._uU(10," Gene "),n.qZA(),n.TgZ(11,"th",5),n._uU(12," Variant "),n.qZA(),n.TgZ(13,"th",6),n._uU(14," Disease "),n.qZA(),n.TgZ(15,"th",7),n._uU(16," Drugs "),n.qZA(),n.TgZ(17,"th",4),n._uU(18," Summary "),n.qZA(),n.TgZ(19,"th",8),n._uU(20," AT "),n.qZA(),n.TgZ(21,"th",9),n._uU(22," AD "),n.qZA(),n.TgZ(23,"th",10),n._uU(24," CS "),n.qZA(),n.TgZ(25,"th",11),n._uU(26," CAT "),n.qZA(),n.TgZ(27,"th",12),n._UZ(28,"i",13),n.qZA(),n.qZA(),n.TgZ(29,"tr"),n.TgZ(30,"th"),n.TgZ(31,"cvc-clearable-input-filter",14),n.NdJ("inputModelChange",function(i){return e.aidInput=i}),n.qZA(),n.qZA(),n.TgZ(32,"th"),n.TgZ(33,"cvc-clearable-input-filter",15),n.NdJ("inputModelChange",function(i){return e.geneNameInput=i}),n.qZA(),n.qZA(),n.TgZ(34,"th"),n.TgZ(35,"cvc-clearable-input-filter",16),n.NdJ("inputModelChange",function(i){return e.variantNameInput=i}),n.qZA(),n.qZA(),n.TgZ(36,"th"),n.TgZ(37,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(i){return e.diseaseNameInput=i}),n.qZA(),n.qZA(),n.TgZ(38,"th"),n.TgZ(39,"cvc-clearable-input-filter",18),n.NdJ("inputModelChange",function(i){return e.drugNameInput=i}),n.qZA(),n.qZA(),n.TgZ(40,"th"),n.TgZ(41,"cvc-clearable-input-filter",19),n.NdJ("inputModelChange",function(i){return e.summaryInput=i}),n.qZA(),n.qZA(),n.TgZ(42,"th",20),n.TgZ(43,"nz-select",21),n.NdJ("ngModelChange",function(){return e.onModelChanged()})("ngModelChange",function(i){return e.assertionTypeInput=i}),n._UZ(44,"nz-option",22),n._UZ(45,"nz-option",23),n._UZ(46,"nz-option",24),n._UZ(47,"nz-option",25),n.qZA(),n.qZA(),n.TgZ(48,"th",20),n.TgZ(49,"nz-select",21),n.NdJ("ngModelChange",function(){return e.onModelChanged()})("ngModelChange",function(i){return e.assertionDirectionInput=i}),n._UZ(50,"nz-option",26),n._UZ(51,"nz-option",27),n._UZ(52,"nz-option",28),n.qZA(),n.qZA(),n.TgZ(53,"th",20),n.TgZ(54,"nz-select",21),n.NdJ("ngModelChange",function(){return e.onModelChanged()})("ngModelChange",function(i){return e.clinicalSignificanceInput=i}),n.TgZ(55,"nz-option-group",29),n._UZ(56,"nz-option",30),n._UZ(57,"nz-option",31),n._UZ(58,"nz-option",32),n._UZ(59,"nz-option",33),n._UZ(60,"nz-option",28),n.qZA(),n.TgZ(61,"nz-option-group",34),n._UZ(62,"nz-option",35),n._UZ(63,"nz-option",36),n._UZ(64,"nz-option",28),n.qZA(),n.TgZ(65,"nz-option-group",37),n._UZ(66,"nz-option",38),n._UZ(67,"nz-option",39),n.qZA(),n.TgZ(68,"nz-option-group",40),n._UZ(69,"nz-option",41),n._UZ(70,"nz-option",42),n._UZ(71,"nz-option",43),n._UZ(72,"nz-option",44),n._UZ(73,"nz-option",45),n.qZA(),n.qZA(),n.qZA(),n.TgZ(74,"th",20),n.TgZ(75,"nz-select",21),n.NdJ("ngModelChange",function(){return e.onModelChanged()})("ngModelChange",function(i){return e.ampLevelInput=i}),n._UZ(76,"nz-option",46),n._UZ(77,"nz-option",47),n._UZ(78,"nz-option",48),n._UZ(79,"nz-option",49),n._UZ(80,"nz-option",50),n.qZA(),n.qZA(),n._UZ(81,"th"),n.qZA(),n.qZA(),n.TgZ(82,"tbody"),n.YNc(83,j,35,32,"tr",51),n.YNc(84,q,2,1,"ng-container",52),n.qZA(),n.qZA(),n.qZA(),n.YNc(85,on,7,6,"ng-template",null,53,n.W1O)),2&o){const l=n.MAs(2),i=n.MAs(86);n.Q6J("nzTitle",i),n.xp6(1),n.Q6J("nzData",n.lcZ(3,50,e.assertions$))("nzLoading",n.lcZ(4,52,e.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",e.sortColumns.Id)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.GeneName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.VariantName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.DiseaseName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.DrugName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.Summary)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.AssertionType)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.AssertionDirection)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.ClinicalSignificance)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.AmpLevel)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.EvidenceItemsCount)("nzSortFn",!0)("nzSortDirections",n.DdM(54,an)),n.xp6(4),n.Q6J("inputModel",e.aidInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.geneNameInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.variantNameInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.diseaseNameInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.drugNameInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.summaryInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.assertionTypeInput),n.xp6(6),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.assertionDirectionInput),n.xp6(5),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.clinicalSignificanceInput),n.xp6(21),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.ampLevelInput),n.xp6(8),n.Q6J("ngForOf",l.data),n.xp6(1),n.Q6J("ngrxLet",e.pageInfo$)}},directives:[f.bd,p.N8,p.Om,p.$Z,p.Uo,p._C,p.qD,p.UX,P.SY,A.w,D.Ls,O.p,c.Vq,C.JJ,C.On,c.Ip,c.Yy,p.p0,d.sg,L.w,u.H,U.I,d.O5,y.n,_.$,m.u,r.eJ,x.ix,S.dQ,d.tP,R.ZU],pipes:[r.fM,d.rS,W.D,K.t],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})()},9441:(N,I,t)=>{t.d(I,{s:()=>m});var T=t(9808),z=t(1132),v=t(4546),g=t(1047),h=t(647),E=t(3618),M=t(4182),Z=t(6949),n=t(7946),f=t(3309),p=t(404),P=t(4867),A=t(3580),D=t(8018),O=t(8054),c=t(4125),C=t(9444),d=t(6042),L=t(897),u=t(209),U=t(8369),y=t(7484),_=t(5e3);let m=(()=>{class r{}return r.\u0275fac=function(S){return new(S||r)},r.\u0275mod=_.oAB({type:r}),r.\u0275inj=_.cJS({imports:[[T.ez,M.u5,Z.WG,d.sL,z.HQ,v.U5,g.o7,h.PV,E.ZJ,p.cg,O.LV,y.vh,c.k,C.s,f.U,P.Q,A.Q,D.e,U.W,u.i,L.$,n.x,c.k]]}),r})()},8369:(N,I,t)=>{t.d(I,{W:()=>y});var T=t(9808),z=t(325),v=t(8481),g=t(3610),h=t(647),E=t(7484),M=t(3098),Z=t(3309),n=t(4867),f=t(6286),p=t(8018),P=t(6949),A=t(9444),D=t(1894),O=t(8144),c=t(3580),C=t(8625),d=t(7026),L=t(592),u=t(5e3);let U=(()=>{class _{}return _.\u0275fac=function(r){return new(r||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[[T.ez,z.Bz,P.WG,E.vh,M.q6,h.PV,D.Jb,O.zf,v.X,Z.U,c.Q,n.Q,f.y,p.e,A.s,L.x,C.$L.forChild({formatter:{useClass:d.x,provide:C.KP}})]]}),_})(),y=(()=>{class _{}return _.\u0275fac=function(r){return new(r||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[[T.ez,z.Bz,v.X,g.$6,h.PV,U,A.s]]}),_})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3883],{3756:(N,E,t)=>{t.d(E,{x:()=>sn});var T=t(712),z=t(3154),v=t(8929),g=t(373),h=t(1059),M=t(4850),Z=t(2986),f=t(13),n=t(5e3),P=t(7484),p=t(1132),D=t(404),A=t(2683),O=t(647),L=t(2166),c=t(8054),C=t(4182),d=t(9808),U=t(2826),y=t(3193),u=t(8664),x=t(4022),I=t(6715),_=t(7469),r=t(6949),m=t(6042),S=t(2643),R=t(3618),W=t(4110),K=t(9657);function b(a,s){if(1&a&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",65),n.BQk()),2&a){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("disease",o.disease)("truncateLongName",!0)}}function B(a,s){1&a&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function J(a,s){if(1&a&&(n.TgZ(0,"span"),n._UZ(1,"cvc-drug-tag",67),n.qZA()),2&a){const o=s.$implicit;n.xp6(1),n.Q6J("drug",o)("truncateLongName",!0)}}function Q(a,s){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"titlecase"),n.qZA()),2&a){const o=n.oxw(2).$implicit;n.xp6(1),n.hij(" (",n.lcZ(2,1,o.drugInteractionType),") ")}}function V(a,s){if(1&a&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,J,2,2,"span",51),n.qZA(),n.YNc(3,Q,3,3,"span",66),n.qZA()),2&a){const o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",o.drugs),n.xp6(1),n.Q6J("ngIf",o.drugs.length>1)}}function F(a,s){1&a&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function Y(a,s){if(1&a&&(n.TgZ(0,"span",68),n.ALo(1,"formatAmp"),n._uU(2),n.ALo(3,"formatAmp"),n.qZA()),2&a){const o=n.oxw().$implicit;n.Q6J("nzTooltipTitle",n.xi3(1,2,o.ampLevel,"verbose")),n.xp6(2),n.hij(" ",n.xi3(3,5,o.ampLevel,"compact")," ")}}function $(a,s){1&a&&n._uU(0," -- ")}function j(a,s){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-assertion-tag",54),n.qZA(),n.TgZ(3,"td"),n._UZ(4,"cvc-gene-tag",55),n.qZA(),n.TgZ(5,"td"),n._UZ(6,"cvc-variant-tag",56),n.qZA(),n.TgZ(7,"td"),n.YNc(8,b,2,2,"ng-container",57),n.YNc(9,B,2,0,"ng-template",null,58,n.W1O),n.qZA(),n.TgZ(11,"td"),n.YNc(12,V,4,2,"div",57),n.YNc(13,F,2,0,"ng-template",null,59,n.W1O),n.qZA(),n.TgZ(15,"td",60),n._UZ(16,"i",61),n.qZA(),n.TgZ(17,"td",60),n._UZ(18,"i",62),n.ALo(19,"evidenceEnumDisplay"),n.ALo(20,"evidenceEnumDisplay"),n.qZA(),n.TgZ(21,"td",60),n._UZ(22,"i",62),n.ALo(23,"evidenceEnumDisplay"),n.ALo(24,"evidenceEnumDisplay"),n.qZA(),n.TgZ(25,"td",60),n._UZ(26,"i",62),n.ALo(27,"evidenceEnumDisplay"),n.ALo(28,"evidenceEnumDisplay"),n.qZA(),n.TgZ(29,"td",60),n.YNc(30,Y,4,8,"span",63),n.YNc(31,$,1,0,"ng-template",null,64,n.W1O),n.qZA(),n.TgZ(33,"td"),n._uU(34),n.qZA(),n.qZA()),2&a){const o=s.$implicit,e=n.MAs(10),l=n.MAs(14),i=n.MAs(32);n.xp6(2),n.Q6J("assertion",o),n.xp6(2),n.Q6J("gene",o.gene),n.xp6(2),n.Q6J("variant",o.variant),n.xp6(2),n.Q6J("ngIf",o.disease.name)("ngIfElse",e),n.xp6(4),n.Q6J("ngIf",o.drugs.length>0)("ngIfElse",l),n.xp6(4),n.Q6J("nzTooltipTitle",o.summary),n.xp6(2),n.Q6J("nzType",n.xi3(19,17,o.assertionType,"icon-name"))("nzTooltipTitle",n.lcZ(20,20,o.assertionType)),n.xp6(4),n.Q6J("nzType",n.xi3(23,22,o.assertionDirection,"icon-name"))("nzTooltipTitle",n.lcZ(24,25,o.assertionDirection)),n.xp6(4),n.Q6J("nzType",n.xi3(27,27,o.clinicalSignificance,"icon-name"))("nzTooltipTitle",n.lcZ(28,30,o.clinicalSignificance)),n.xp6(4),n.Q6J("ngIf",o.ampLevel)("ngIfElse",i),n.xp6(4),n.hij(" ",o.evidenceItemsCount," ")}}function G(a,s){if(1&a){const o=n.EpF();n.TgZ(0,"button",71),n.NdJ("click",function(){n.CHM(o);const l=n.oxw(2).ngrxLet;return n.oxw().loadMore(l.endCursor)}),n._uU(1),n.qZA()}if(2&a){const o=n.oxw(3);n.xp6(1),n.hij("Load ",o.initialPageSize," More")}}function H(a,s){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td",69),n.YNc(2,G,2,1,"button",70),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",o.hasNextPage)}}function X(a,s){if(1&a&&(n.ynx(0),n.YNc(1,H,3,1,"tr",66),n.BQk()),2&a){const o=s.ngrxLet;n.xp6(1),n.Q6J("ngIf",o.hasNextPage)}}function q(a,s){}function w(a,s){if(1&a&&(n.ynx(0),n.YNc(1,q,0,0,"ng-template",75),n.BQk()),2&a){const o=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",o.cvcTitleTemplate)}}function k(a,s){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const o=n.oxw(2);n.xp6(1),n.hij(" ",o.cvcTitle," ")}}function nn(a,s){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.hij(" of ",o," filtered")}}function tn(a,s){if(1&a&&(n.TgZ(0,"span",76),n._uU(1),n.YNc(2,nn,2,1,"span",66),n._uU(3,") "),n.qZA()),2&a){const o=s.ngIf,e=n.oxw(2);n.xp6(1),n.AsE(" (",e.totalCount," total, showing ",e.visibleCount,""),n.xp6(1),n.Q6J("ngIf",e.totalCount&&o{class a{constructor(o){this.gql=o,this.debouncedQuery=new v.xQ,this.initialPageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.tableView=!0,this.sortColumns=T.u4i}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,variantId:this.variantId,evidenceId:this.evidenceId,organizationId:this.organizationId,userId:this.userId,phenotypeId:this.phenotypeId,diseaseId:this.diseaseId,drugId:this.drugId,status:this.status,cardView:!this.tableView});let o=this.queryRef.valueChanges;this.isLoading$=o.pipe((0,g.j)("loading"),(0,h.O)(!0)),this.assertions$=o.pipe((0,g.j)("data","assertions","edges"),(0,M.U)(e=>e.map(l=>l.node))),this.filteredCount$=o.pipe((0,g.j)("data","assertions","totalCount")),this.filteredCount$.pipe((0,Z.q)(1)).subscribe(e=>this.totalCount=e),this.filteredCount$.subscribe(e=>{ee&&(this.visibleCount=e))}),this.pageInfo$=o.pipe((0,g.j)("data","assertions","pageInfo")),this.debouncedQuery.pipe((0,f.b)(500)).subscribe(e=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var o;this.loadedPages=1,o=this.aidInput?this.aidInput.toUpperCase().startsWith("AID")?+this.aidInput.toUpperCase().replace("AID",""):+this.aidInput:void 0,this.queryRef.refetch({id:o,diseaseName:this.diseaseNameInput,geneName:this.geneNameInput,variantName:this.variantNameInput,drugName:this.drugNameInput,summary:this.summaryInput,assertionType:this.assertionTypeInput?this.assertionTypeInput:void 0,assertionDirection:this.assertionDirectionInput?this.assertionDirectionInput:void 0,clinicalSignificance:this.clinicalSignificanceInput?this.clinicalSignificanceInput:void 0,ampLevel:this.ampLevelInput?this.ampLevelInput:void 0,cardView:!this.tableView})}onModelChanged(){this.debouncedQuery.next()}onSortChanged(o){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,z._)(o),cardView:!this.tableView})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(o){this.queryRef.fetchMore({variables:{after:o}}),this.loadedPages+=1}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(T.td))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-assertions-table"]],inputs:{evidenceId:"evidenceId",variantId:"variantId",organizationId:"organizationId",userId:"userId",phenotypeId:"phenotypeId",diseaseId:"diseaseId",drugId:"drugId",status:"status",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:87,vars:55,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["assertionsTable",""],[3,"nzSortOrderChange"],["nzWidth","5%",3,"nzColumnKey","nzSortFn"],["nzWidth","10%",3,"nzColumnKey","nzSortFn"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],["nzWidth","12%",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Assertion Type",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Assertion Direction",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","Clinical Significance",3,"nzColumnKey","nzSortFn"],["nzWidth","5%","nzAlign","center","nz-tooltip","","nzTooltipTitle","AMP/ASCO/CAP Category",3,"nzColumnKey","nzSortFn"],["nzWidth","3%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["placeholderText","Search AID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Gene",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Variant",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Disease",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Drugs",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Summary",3,"inputModel","onInputChanged","inputModelChange"],["nzWidth","5%","nzAlign","center"],["nzAllowClear","","nzPlaceHolder","Choose",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","PREDICTIVE","nzLabel","Predictive"],["nzValue","PROGNOSTIC","nzLabel","Prognostic"],["nzValue","DIAGNOSTIC","nzLabel","Diagnostic"],["nzValue","PREDISPOSING","nzLabel","Predisposing"],["nzValue","SUPPORTS","nzLabel","Supports"],["nzValue","DOES_NOT_SUPPORT","nzLabel","Does not Support"],["nzValue","NA","nzLabel","N/A"],["nzLabel","Predictive"],["nzValue","SENSITIVITYRESPONSE","nzLabel","Sensitivity/Response"],["nzValue","RESISTANCE","nzLabel","Resistance"],["nzValue","ADVERSE_RESPONSE","nzLabel","Adverse Response"],["nzValue","REDUCED SENSITIVITY","nzLabel","Reduced Sensitivity"],["nzLabel","Prognostic"],["nzValue","BETTER_OUTCOME","nzLabel","Better Outcome"],["nzValue","POOR_OUTCOME","nzLabel","Poor Outcome"],["nzLabel","Diagnostic"],["nzValue","POSITIVE","nzLabel","Positive"],["nzValue","NEGATIVE","nzLabel","Negative"],["nzLabel","Predisposing"],["nzValue","PATHOGENIC","nzLabel","Pathogenic"],["nzValue","LIKELY_PATHOGENIC","nzLabel","Likely Pathogenic"],["nzValue","BENIGN","nzLabel","Benign"],["nzValue","LIKELY_BENIGN","nzLabel","Likely Benign"],["nzValue","UNCERTAIN_SIGNIFICANCE","nzLabel","Uncertain Significance"],["nzValue","TIER_I_LEVEL_A","nzLabel","Tier I Level A"],["nzValue","TIER_I_LEVEL_B","nzLabel","Tier I Level B"],["nzValue","TIER_II_LEVEL_C","nzLabel","Tier II Level C"],["nzValue","TIER_II_LEVEL_D","nzLabel","Tier II Level D"],["nzValue","TIER_III","nzLabel","Tier III"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"assertion"],[3,"gene"],[3,"variant"],[4,"ngIf","ngIfElse"],["diseaseElse",""],["drugsElse",""],["nzAlign","center"],["nz-icon","","nzType","align-left","nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["nz-icon","","nz-tooltip","","nzTooltipPlacement","top",3,"nzType","nzTooltipTitle"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["noAmp",""],[3,"disease","truncateLongName"],[4,"ngIf"],[3,"drug","truncateLongName"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],["colspan","20"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:assertion"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(o,e){if(1&o&&(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 e.onSortChanged(i)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," AID "),n.qZA(),n.TgZ(9,"th",4),n._uU(10," Gene "),n.qZA(),n.TgZ(11,"th",5),n._uU(12," Variant "),n.qZA(),n.TgZ(13,"th",6),n._uU(14," Disease "),n.qZA(),n.TgZ(15,"th",7),n._uU(16," Drugs "),n.qZA(),n.TgZ(17,"th",4),n._uU(18," Summary "),n.qZA(),n.TgZ(19,"th",8),n._uU(20," AT "),n.qZA(),n.TgZ(21,"th",9),n._uU(22," AD "),n.qZA(),n.TgZ(23,"th",10),n._uU(24," CS "),n.qZA(),n.TgZ(25,"th",11),n._uU(26," CAT "),n.qZA(),n.TgZ(27,"th",12),n._UZ(28,"i",13),n.qZA(),n.qZA(),n.TgZ(29,"tr"),n.TgZ(30,"th"),n.TgZ(31,"cvc-clearable-input-filter",14),n.NdJ("inputModelChange",function(i){return e.aidInput=i}),n.qZA(),n.qZA(),n.TgZ(32,"th"),n.TgZ(33,"cvc-clearable-input-filter",15),n.NdJ("inputModelChange",function(i){return e.geneNameInput=i}),n.qZA(),n.qZA(),n.TgZ(34,"th"),n.TgZ(35,"cvc-clearable-input-filter",16),n.NdJ("inputModelChange",function(i){return e.variantNameInput=i}),n.qZA(),n.qZA(),n.TgZ(36,"th"),n.TgZ(37,"cvc-clearable-input-filter",17),n.NdJ("inputModelChange",function(i){return e.diseaseNameInput=i}),n.qZA(),n.qZA(),n.TgZ(38,"th"),n.TgZ(39,"cvc-clearable-input-filter",18),n.NdJ("inputModelChange",function(i){return e.drugNameInput=i}),n.qZA(),n.qZA(),n.TgZ(40,"th"),n.TgZ(41,"cvc-clearable-input-filter",19),n.NdJ("inputModelChange",function(i){return e.summaryInput=i}),n.qZA(),n.qZA(),n.TgZ(42,"th",20),n.TgZ(43,"nz-select",21),n.NdJ("ngModelChange",function(){return e.onModelChanged()})("ngModelChange",function(i){return e.assertionTypeInput=i}),n._UZ(44,"nz-option",22),n._UZ(45,"nz-option",23),n._UZ(46,"nz-option",24),n._UZ(47,"nz-option",25),n.qZA(),n.qZA(),n.TgZ(48,"th",20),n.TgZ(49,"nz-select",21),n.NdJ("ngModelChange",function(){return e.onModelChanged()})("ngModelChange",function(i){return e.assertionDirectionInput=i}),n._UZ(50,"nz-option",26),n._UZ(51,"nz-option",27),n._UZ(52,"nz-option",28),n.qZA(),n.qZA(),n.TgZ(53,"th",20),n.TgZ(54,"nz-select",21),n.NdJ("ngModelChange",function(){return e.onModelChanged()})("ngModelChange",function(i){return e.clinicalSignificanceInput=i}),n.TgZ(55,"nz-option-group",29),n._UZ(56,"nz-option",30),n._UZ(57,"nz-option",31),n._UZ(58,"nz-option",32),n._UZ(59,"nz-option",33),n._UZ(60,"nz-option",28),n.qZA(),n.TgZ(61,"nz-option-group",34),n._UZ(62,"nz-option",35),n._UZ(63,"nz-option",36),n._UZ(64,"nz-option",28),n.qZA(),n.TgZ(65,"nz-option-group",37),n._UZ(66,"nz-option",38),n._UZ(67,"nz-option",39),n.qZA(),n.TgZ(68,"nz-option-group",40),n._UZ(69,"nz-option",41),n._UZ(70,"nz-option",42),n._UZ(71,"nz-option",43),n._UZ(72,"nz-option",44),n._UZ(73,"nz-option",45),n.qZA(),n.qZA(),n.qZA(),n.TgZ(74,"th",20),n.TgZ(75,"nz-select",21),n.NdJ("ngModelChange",function(){return e.onModelChanged()})("ngModelChange",function(i){return e.ampLevelInput=i}),n._UZ(76,"nz-option",46),n._UZ(77,"nz-option",47),n._UZ(78,"nz-option",48),n._UZ(79,"nz-option",49),n._UZ(80,"nz-option",50),n.qZA(),n.qZA(),n._UZ(81,"th"),n.qZA(),n.qZA(),n.TgZ(82,"tbody"),n.YNc(83,j,35,32,"tr",51),n.YNc(84,X,2,1,"ng-container",52),n.qZA(),n.qZA(),n.qZA(),n.YNc(85,on,7,6,"ng-template",null,53,n.W1O)),2&o){const l=n.MAs(2),i=n.MAs(86);n.Q6J("nzTitle",i),n.xp6(1),n.Q6J("nzData",n.lcZ(3,50,e.assertions$))("nzLoading",n.lcZ(4,52,e.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",e.sortColumns.Id)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.GeneName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.VariantName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.DiseaseName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.DrugName)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.Summary)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.AssertionType)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.AssertionDirection)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.ClinicalSignificance)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.AmpLevel)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",e.sortColumns.EvidenceItemsCount)("nzSortFn",!0)("nzSortDirections",n.DdM(54,an)),n.xp6(4),n.Q6J("inputModel",e.aidInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.geneNameInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.variantNameInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.diseaseNameInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.drugNameInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("inputModel",e.summaryInput)("onInputChanged",e.textInputCallback),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.assertionTypeInput),n.xp6(6),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.assertionDirectionInput),n.xp6(5),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.clinicalSignificanceInput),n.xp6(21),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.ampLevelInput),n.xp6(8),n.Q6J("ngForOf",l.data),n.xp6(1),n.Q6J("ngrxLet",e.pageInfo$)}},directives:[P.bd,p.N8,p.Om,p.$Z,p.Uo,p._C,p.qD,p.UX,D.SY,A.w,O.Ls,L.p,c.Vq,C.JJ,C.On,c.Ip,c.Yy,p.p0,d.sg,U.w,y.H,u.I,d.O5,x.n,I.$,_.u,r.eJ,m.ix,S.dQ,d.tP,R.ZU],pipes:[r.fM,d.rS,W.D,K.t],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})()},9441:(N,E,t)=>{t.d(E,{s:()=>_});var T=t(9808),z=t(1132),v=t(4546),g=t(1047),h=t(647),M=t(3618),Z=t(4182),f=t(6949),n=t(7946),P=t(3309),p=t(404),D=t(4867),A=t(3580),O=t(8018),L=t(8054),c=t(4125),C=t(9444),d=t(6042),U=t(897),y=t(209),u=t(8369),x=t(7484),I=t(5e3);let _=(()=>{class r{}return r.\u0275fac=function(S){return new(S||r)},r.\u0275mod=I.oAB({type:r}),r.\u0275inj=I.cJS({imports:[[T.ez,Z.u5,f.WG,d.sL,z.HQ,v.U5,g.o7,h.PV,M.ZJ,p.cg,L.LV,x.vh,c.k,C.s,P.U,D.Q,A.Q,O.e,u.W,y.i,U.$,n.x,c.k]]}),r})()},8369:(N,E,t)=>{t.d(E,{W:()=>I});var T=t(9808),z=t(325),v=t(8481),g=t(3610),h=t(647),M=t(7484),Z=t(3098),f=t(3309),n=t(4867),P=t(6286),p=t(8018),D=t(6949),A=t(9444),O=t(1894),L=t(8144),c=t(3580),C=t(8625),d=t(7026),U=t(592),y=t(404),u=t(5e3);let x=(()=>{class _{}return _.\u0275fac=function(m){return new(m||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[[T.ez,z.Bz,D.WG,M.vh,Z.q6,h.PV,O.Jb,L.zf,v.X,y.cg,f.U,c.Q,n.Q,P.y,p.e,A.s,U.x,C.$L.forChild({formatter:{useClass:d.x,provide:C.KP}})]]}),_})(),I=(()=>{class _{}return _.\u0275fac=function(m){return new(m||_)},_.\u0275mod=u.oAB({type:_}),_.\u0275inj=u.cJS({imports:[[T.ez,z.Bz,v.X,g.$6,h.PV,x,A.s]]}),_})()}}]); \ No newline at end of file diff --git a/server/public/4024.792bb338f6b4c905.js b/server/public/4024.792bb338f6b4c905.js new file mode 100644 index 000000000..f190107ea --- /dev/null +++ b/server/public/4024.792bb338f6b4c905.js @@ -0,0 +1,3606 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4024],{3193:(Te,te,o)=>{o.d(te,{H:()=>xe});var i=o(6654),t=o(5e3),n=o(9808),s=o(325),N=o(8481),_=o(3610),c=o(4850),J=o(712),u=o(7484),I=o(647),O=o(3098),Y=o(1894),$=o(8144),ne=o(6949);function R(se,ye){if(1&se&&(t._UZ(0,"i",11),t._uU(1)),2&se){const q=t.oxw().ngIf;t.xp6(1),t.hij(" ",q.officialName," ")}}function le(se,ye){if(1&se&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&se){const q=ye.$implicit;t.xp6(1),t.Oqu(q)}}function H(se,ye){if(1&se&&(t.TgZ(0,"nz-descriptions-item",12),t.YNc(1,le,2,1,"nz-tag",13),t.qZA()),2&se){const q=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",q.geneAliases)}}function Z(se,ye){if(1&se&&(t.TgZ(0,"a",14),t.TgZ(1,"nz-tag",15),t._UZ(2,"i",16),t._uU(3),t.qZA(),t.qZA()),2&se){const q=t.oxw().ngIf;t.MGl("routerLink","/genes/",q.id,"/flags"),t.xp6(3),t.hij(" Flags (",q.flags.totalCount,") ")}}function w(se,ye){if(1&se&&(t.TgZ(0,"a",14),t.TgZ(1,"nz-tag",17),t._UZ(2,"i",18),t._uU(3),t.qZA(),t.qZA()),2&se){const q=t.oxw().ngIf;t.MGl("routerLink","/genes/",q.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",q.revisions.totalCount,") ")}}function A(se,ye){if(1&se&&(t.TgZ(0,"a",14),t.TgZ(1,"nz-tag",19),t._UZ(2,"i",20),t._uU(3),t.qZA(),t.qZA()),2&se){const q=t.oxw().ngIf;t.MGl("routerLink","/genes/",q.id,"/comments"),t.xp6(3),t.hij(" Comments (",q.comments.totalCount,") ")}}function b(se,ye){if(1&se&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,R,2,1,"ng-template",null,3,t.W1O),t.TgZ(4,"nz-descriptions",4),t.YNc(5,H,2,1,"nz-descriptions-item",5),t.TgZ(6,"nz-descriptions-item",6),t._uU(7),t.qZA(),t.qZA(),t.TgZ(8,"nz-row",7),t.TgZ(9,"nz-col",8),t.TgZ(10,"nz-space",9),t.YNc(11,Z,4,2,"a",10),t.YNc(12,w,4,2,"a",10),t.YNc(13,A,4,2,"a",10),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&se){const q=ye.ngIf,me=t.MAs(3);t.xp6(1),t.Q6J("nzTitle",me),t.xp6(3),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",q.geneAliases.length>0),t.xp6(2),t.hij(" ",q.variants.totalCount," ")}}let ae=(()=>{class se{constructor(q){this.gql=q}ngOnInit(){if(null==this.geneId)throw new Error("cvc-gene-popover requires valid geneId input.");this.gene$=this.gql.watch({geneId:this.geneId}).valueChanges.pipe((0,c.U)(({data:q})=>q.gene))}}return se.\u0275fac=function(q){return new(q||se)(t.Y36(J.rJ8))},se.\u0275cmp=t.Xpm({type:se,selectors:[["cvc-gene-popover"]],inputs:{geneId:"geneId"},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","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Variants"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:gene"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],[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(q,me){1&q&&(t.TgZ(0,"div",0),t.YNc(1,b,14,4,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&q&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,me.gene$)))},directives:[n.O5,u.bd,I.Ls,O.R7,O.uj,n.sg,N.j,Y.SK,Y.t3,$.NU,$.$1,s.yS],pipes:[ne.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}"]}),se})();function F(se,ye){}function E(se,ye){if(1&se&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,F,0,0,"ng-template",6),t.qZA(),t.BQk()),2&se){const q=t.oxw(),me=t.MAs(2);t.xp6(1),t.Q6J("routerLink",q.gene.link),t.xp6(1),t.Q6J("ngTemplateOutlet",me)}}function h(se,ye){}function M(se,ye){if(1&se){const q=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(ie){return t.CHM(q),t.oxw(2).itemClosed(ie)}),t.YNc(1,h,0,0,"ng-template",6),t.qZA()}if(2&se){t.oxw();const q=t.MAs(2),me=t.oxw(),ie=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",me.onCloseClicked?0:.5)("nzPopoverContent",q)("nzMode",me.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",ie)}}function P(se,ye){if(1&se&&t._UZ(0,"cvc-gene-popover",10),2&se){const q=t.oxw(2);t.Q6J("geneId",q.gene.id)}}function L(se,ye){if(1&se&&(t.YNc(0,M,2,4,"nz-tag",7),t.YNc(1,P,1,1,"ng-template",null,8,t.W1O)),2&se){const q=t.oxw(),me=t.MAs(4);t.Q6J("ngIf",q.enablePopover)("ngIfElse",me)}}function B(se,ye){}function p(se,ye){if(1&se){const q=t.EpF();t.TgZ(0,"nz-tag",11),t.NdJ("nzOnClose",function(ie){return t.CHM(q),t.oxw().itemClosed(ie)}),t.YNc(1,B,0,0,"ng-template",6),t.qZA()}if(2&se){const q=t.oxw(),me=t.MAs(8);t.Q6J("nzMode",q.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",me)}}function K(se,ye){}function k(se,ye){if(1&se&&t.YNc(0,K,0,0,"ng-template",6),2&se){t.oxw();const q=t.MAs(2);t.Q6J("ngTemplateOutlet",q)}}function X(se,ye){if(1&se&&(t._UZ(0,"i",12),t._uU(1)),2&se){const q=t.oxw();t.xp6(1),t.hij(" ",q.gene.name,"\n")}}let xe=(()=>{class se extends i.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.gene.id}ngOnInit(){if(super.ngOnInit(),void 0===this.gene)throw new Error("cvc-gene-tag requires LinkableGene input, none supplied.")}}return se.\u0275fac=function(q){return new(q||se)},se.\u0275cmp=t.Xpm({type:se,selectors:[["cvc-gene-tag"]],inputs:{gene:"gene",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"],["genePopover",""],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"geneId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-gene","nzTheme","twotone","nzTwotoneColor","#07AFF0"]],template:function(q,me){if(1&q&&(t.YNc(0,E,3,2,"ng-container",0),t.YNc(1,L,3,2,"ng-template",null,1,t.W1O),t.YNc(3,p,2,2,"ng-template",null,2,t.W1O),t.YNc(5,k,1,1,"ng-template",null,3,t.W1O),t.YNc(7,X,2,1,"ng-template",null,4,t.W1O)),2&q){const ie=t.MAs(6);t.Q6J("ngIf",me.linked)("ngIfElse",ie)}},directives:[n.O5,s.yS,n.tP,N.j,_.lU,ae,I.Ls],styles:[""]}),se})()},3309:(Te,te,o)=>{o.d(te,{U:()=>$});var i=o(9808),t=o(325),n=o(8481),s=o(647),N=o(3610),_=o(7484),c=o(1894),J=o(3098),u=o(8144),I=o(6949),O=o(5e3);let Y=(()=>{class ne{}return ne.\u0275fac=function(le){return new(le||ne)},ne.\u0275mod=O.oAB({type:ne}),ne.\u0275inj=O.cJS({imports:[[i.ez,t.Bz,I.WG,_.vh,c.Jb,J.q6,n.X,s.PV,u.zf]]}),ne})(),$=(()=>{class ne{}return ne.\u0275fac=function(le){return new(le||ne)},ne.\u0275mod=O.oAB({type:ne}),ne.\u0275inj=O.cJS({imports:[[i.ez,t.Bz,n.X,N.$6,s.PV,Y]]}),ne})()},1912:(Te,te,o)=>{o.d(te,{s:()=>ne});var i=o(5e3),t=o(6042),n=o(2643),s=o(2683),N=o(3640),c=o(2160),J=o(3762),u=o(647);let I=(()=>{class R{constructor(H){this.cookies=H,this.location=function _(R){return encodeURIComponent(R).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}}return R.\u0275fac=function(H){return new(H||R)(i.Y36(c.N))},R.\u0275cmp=i.Xpm({type:R,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(H,Z){1&H&&(i.TgZ(0,"nz-list",0),i.TgZ(1,"nz-list-item"),i.TgZ(2,"form",1),i._UZ(3,"input",2),i.TgZ(4,"button",3),i._UZ(5,"i",4),i._uU(6," Sign In with a Google Account "),i.qZA(),i.qZA(),i.qZA(),i.TgZ(7,"nz-list-item"),i.TgZ(8,"form",1),i._UZ(9,"input",2),i.TgZ(10,"button",3),i._uU(11," Sign In with an ORCID Account "),i.qZA(),i.qZA(),i.qZA(),i.TgZ(12,"nz-list-item"),i.TgZ(13,"form",1),i._UZ(14,"input",2),i.TgZ(15,"button",3),i._UZ(16,"i",5),i._uU(17," Sign In with a Github Account "),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&H&&(i.xp6(2),i.MGl("action","/api/auth/google_oauth2?origin=",Z.location,"",i.LSH),i.xp6(1),i.s9C("value",Z.xsrfToken),i.xp6(5),i.MGl("action","/api/auth/orcid?origin=",Z.location,"",i.LSH),i.xp6(1),i.s9C("value",Z.xsrfToken),i.xp6(4),i.MGl("action","/api/auth/github?origin=",Z.location,"",i.LSH),i.xp6(1),i.s9C("value",Z.xsrfToken))},directives:[J.n_,J.AA,t.ix,n.dQ,s.w,u.Ls],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}"]}),R})();function O(R,le){1&R&&(i.ynx(0),i.TgZ(1,"p",5),i._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."),i.qZA(),i._UZ(3,"cvc-auth-options-list"),i.BQk())}function Y(R,le){1&R&&i._uU(0," Sign In / Sign Up\n")}function $(R,le){if(1&R){const H=i.EpF();i.TgZ(0,"button",0),i.NdJ("click",function(){return i.CHM(H),i.oxw().handleCancel()}),i._uU(1,"Cancel"),i.qZA()}}let ne=(()=>{class R{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}}return R.\u0275fac=function(H){return new(H||R)},R.\u0275cmp=i.Xpm({type:R,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(H,Z){if(1&H&&(i.TgZ(0,"button",0),i.NdJ("click",function(){return Z.showAuth()}),i.TgZ(1,"span"),i._uU(2,"Sign In / Sign Up"),i.qZA(),i.qZA(),i.TgZ(3,"nz-modal",1),i.NdJ("nzVisibleChange",function(A){return Z.authVisible=A})("nzOnCancel",function(){return Z.handleCancel()}),i.YNc(4,O,4,0,"ng-container",2),i.qZA(),i.YNc(5,Y,1,0,"ng-template",null,3,i.W1O),i.YNc(7,$,2,0,"ng-template",null,4,i.W1O)),2&H){const w=i.MAs(6),A=i.MAs(8);i.xp6(3),i.Q6J("nzVisible",Z.authVisible)("nzTitle",w)("nzFooter",A)}},directives:[t.ix,n.dQ,s.w,N.du,N.Hf,I],styles:["[_nghost-%COMP%]{display:inline-block}"]}),R})()},1844:(Te,te,o)=>{o.d(te,{B:()=>J});var i=o(9808),t=o(6042),n=o(3640),s=o(3762),N=o(647),_=o(5e3);let c=(()=>{class u{}return u.\u0275fac=function(O){return new(O||u)},u.\u0275mod=_.oAB({type:u}),u.\u0275inj=_.cJS({imports:[[i.ez,N.PV,s.Ph,t.sL]]}),u})(),J=(()=>{class u{}return u.\u0275fac=function(O){return new(O||u)},u.\u0275mod=_.oAB({type:u}),u.\u0275inj=_.cJS({imports:[[i.ez,t.sL,n.Qp,c]]}),u})()},7881:(Te,te,o)=>{o.d(te,{L:()=>_});var i=o(5e3),t=o(9808),n=o(6699);function s(c,J){if(1&c&&i._UZ(0,"nz-avatar",2),2&c){const u=i.oxw();i.Q6J("nzSrc",u.user.profileImagePath)("nzShape",u.shape?u.shape:"circle")("nzSize",u.size)}}function N(c,J){if(1&c&&(i._UZ(0,"nz-avatar",3),i.ALo(1,"uppercase")),2&c){const u=i.oxw();i.Q6J("nzSize",u.size)("nzText",i.lcZ(1,2,u.user.displayName.charAt(0)))}}let _=(()=>{class c{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 c.\u0275fac=function(u){return new(u||c)},c.\u0275cmp=i.Xpm({type:c,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(u,I){if(1&u&&(i.YNc(0,s,1,3,"nz-avatar",0),i.YNc(1,N,2,4,"ng-template",null,1,i.W1O)),2&u){const O=i.MAs(2);i.Q6J("ngIf",I.user.profileImagePath)("ngIfElse",O)}},directives:[t.O5,n.Dz],pipes:[t.gd],styles:["[_nghost-%COMP%]{display:inline-block}"]}),c})()},5473:(Te,te,o)=>{o.d(te,{H:()=>s});var i=o(9808),t=o(6699),n=o(5e3);let s=(()=>{class N{}return N.\u0275fac=function(c){return new(c||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({imports:[[i.ez,t.Rt]]}),N})()},8926:(Te,te,o)=>{o.d(te,{A:()=>n});var i=o(5e3),t=o(2313);let n=(()=>{class s{constructor(_){this.sanitizer=_}transform(_,c){if(!c||""==c)return _;const J=new RegExp(c,"gi"),u=_.match(J);if(!u)return _;let I=_.replace(J,`${u[0]}`);return this.sanitizer.bypassSecurityTrustHtml(I)}}return s.\u0275fac=function(_){return new(_||s)(i.Y36(t.H7,16))},s.\u0275pipe=i.Yjl({name:"highlightTypeahead",type:s,pure:!0}),s})()},9444:(Te,te,o)=>{o.d(te,{s:()=>s});var i=o(9808),t=o(7742),n=o(5e3);let s=(()=>{class N{}return N.\u0275fac=function(c){return new(c||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({providers:[t.l],imports:[[i.ez]]}),N})()},7742:(Te,te,o)=>{o.d(te,{l:()=>n});var i=o(6530),t=o(5e3);let n=(()=>{class s{transform(_){return _?(0,i.c)(_):""}}return s.\u0275fac=function(_){return new(_||s)},s.\u0275pipe=t.Yjl({name:"sourceTypeDisplay",type:s,pure:!0}),s})()},9350:(Te,te,o)=>{o.d(te,{a:()=>u});var i=o(4850),t=o(5154),n=o(373),s=o(1059),N=o(712),_=o(5e3),c=o(520);const J={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0};let u=(()=>{class I{constructor(Y,$){function ne(A){return!(!A||A.role!==N.i44.Admin)}function R(A){return!(!A||A.role!==N.i44.Editor&&A.role!==N.i44.Admin)}function le(A){return!(!A||A.role!==N.i44.Curator)}function H(A){return!(!A||A.role!==N.i44.Curator&&A.role!==N.i44.Editor&&A.role!==N.i44.Admin)}function Z(A){var b,ae;return!(!A||A.role!==N.i44.Editor&&A.role!==N.i44.Admin||!A.mostRecentConflictOfInterestStatement||(null===(b=A.mostRecentConflictOfInterestStatement)||void 0===b?void 0:b.coiStatus)!=N.Mgx.Conflict&&(null===(ae=A.mostRecentConflictOfInterestStatement)||void 0===ae?void 0:ae.coiStatus)!=N.Mgx.Valid)}function w(A){if(A.mostRecentOrganizationId)return A.organizations.find(b=>b.id===A.mostRecentOrganizationId)}this.viewerBaseGQL=Y,this.http=$,this.queryRef=this.viewerBaseGQL.watch(),this.data$=this.queryRef.valueChanges.pipe((0,i.U)(A=>({data:A.data,loading:A.loading,networkStatus:A.networkStatus})),(0,t.d)(1)),this.isLoading$=this.data$.pipe((0,n.j)("loading"),(0,s.O)(!0)),this.viewer$=this.data$.pipe((0,n.j)("data","viewer"),(0,i.U)(A=>Object.assign(Object.assign({},A),{signedIn:null!==A,signedOut:null===A,canCurate:H(A),canModerate:Z(A),isAdmin:ne(A),isEditor:R(A),isCurator:le(A),organizations:null===A?[]:A.organizations,mostRecentOrg:null===A?void 0:w(A),invalidCoi:R(A)&&(!A.mostRecentConflictOfInterestStatement||A.mostRecentConflictOfInterestStatement.coiStatus===N.Mgx.Expired||A.mostRecentConflictOfInterestStatement.coiStatus===N.Mgx.Missing)})),(0,s.O)(J),(0,t.d)(1)),this.signedIn$=this.viewer$.pipe((0,i.U)(A=>A.signedIn)),this.signedOut$=this.viewer$.pipe((0,i.U)(A=>A.signedOut)),this.isAdmin$=this.viewer$.pipe((0,i.U)(A=>ne(A))),this.isEditor$=this.viewer$.pipe((0,i.U)(A=>R(A))),this.isCurator$=this.viewer$.pipe((0,i.U)(A=>le(A))),this.canCurate$=this.viewer$.pipe((0,i.U)(A=>H(A))),this.canModerate$=this.viewer$.pipe((0,i.U)(A=>Z(A)))}signOut(){this.http.get("/api/sign_out").subscribe(Y=>{this.refetch()})}refetch(){this.queryRef.refetch()}ngOnDestroy(){}}return I.\u0275fac=function(Y){return new(Y||I)(_.LFG(N.Tt7),_.LFG(c.eN))},I.\u0275prov=_.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},6654:(Te,te,o)=>{o.d(te,{a:()=>t});var i=o(5e3);let t=(()=>{class n{constructor(){this.linked=!0,this.popoverVisible=!1}ngOnInit(){this.onCloseClicked&&(this.linked=!1)}itemClosed(N){this.popoverVisible=!1,this.onCloseClicked&&this.onCloseClicked(this.idFunction())}}return n.\u0275fac=function(N){return new(N||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],inputs:{onCloseClicked:"onCloseClicked",linked:"linked"},decls:0,vars:0,template:function(N,_){},encapsulation:2}),n})()},915:(Te,te,o)=>{function i(t){let n;if("NA"===t)n=["N/A"];else if("SENSITIVITYRESPONSE"===t)n=["Sensitivity","/","Response"];else{n=t.toLowerCase().replace(/_/g," ").split(" ");for(var s=0;si})},6530:(Te,te,o)=>{function i(t){switch(t){case"ASCO":return"ASCO";case"PUBMED":return"PubMed";default:return t}}o.d(te,{c:()=>i})},6123:(Te,te,o)=>{o.d(te,{U:()=>N});var i=o(8929),t=o(591),n=o(7625),s=o(537);class N{constructor(c){this.networkErrorService=c}mutate(c,J,u,I){let O=new i.xQ,Y={isSubmitting$:new t.X(!1),submitSuccess$:new t.X(!1),submitError$:new t.X([]),cleanup:()=>{O.next(),O.complete()}};return Y.isSubmitting$.next(!0),c.mutate(J,u).pipe((0,n.R)(O),(0,s.x)(()=>{Y.isSubmitting$.next(!1)})).subscribe({next:$=>{$.data&&I&&I($.data)},error:$=>{$.graphQLErrors.length>0?Y.submitError$.next($.graphQLErrors.map(ne=>ne.message)):$.networkError&&this.networkErrorService.networkError$.next($.networkError),Y.cleanup()},complete:()=>{Y.submitError$.next([]),Y.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),Y.cleanup()}}),Y}}},9180:(Te,te,o)=>{o.d(te,{Z:()=>n});var i=o(5e3);const t=["*"];let n=(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(_){return new(_||s)},s.\u0275cmp=i.Xpm({type:s,selectors:[["cvc-form-buttons"]],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"form-buttons"]],template:function(_,c){1&_&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:["[_nghost-%COMP%]{display:block}.form-buttons[_ngcontent-%COMP%]{text-align:right}"]}),s})()},4375:(Te,te,o)=>{o.d(te,{R:()=>n});var i=o(9808),t=o(5e3);let n=(()=>{class s{}return s.\u0275fac=function(_){return new(_||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[i.ez]]}),s})()},822:(Te,te,o)=>{o.d(te,{V:()=>J});var i=o(5e3),t=o(9808),n=o(2359);function s(u,I){if(1&u&&i._UZ(0,"nz-alert",4),2&u){const O=i.oxw();i.Q6J("nzDescription",O.errors[0])}}function N(u,I){if(1&u&&i._UZ(0,"nz-alert",5),2&u){i.oxw();const O=i.MAs(3);i.Q6J("nzDescription",O)}}function _(u,I){if(1&u&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&u){const O=I.$implicit;i.xp6(1),i.Oqu(O)}}function c(u,I){if(1&u&&(i.TgZ(0,"ul",6),i.YNc(1,_,2,1,"li",7),i.qZA()),2&u){const O=i.oxw();i.xp6(1),i.Q6J("ngForOf",O.errors)}}let J=(()=>{class u{constructor(){}ngOnInit(){}}return u.\u0275fac=function(O){return new(O||u)},u.\u0275cmp=i.Xpm({type:u,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(O,Y){1&O&&(i.YNc(0,s,1,1,"nz-alert",0),i.YNc(1,N,1,1,"nz-alert",1),i.YNc(2,c,2,1,"ng-template",2,3,i.W1O)),2&O&&(i.Q6J("ngIf",1===Y.errors.length),i.xp6(1),i.Q6J("ngIf",Y.errors.length>1))},directives:[t.O5,n.r,t.sg],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]}),u})()},7008:(Te,te,o)=>{o.d(te,{B:()=>s});var i=o(9808),t=o(2359),n=o(5e3);let s=(()=>{class N{}return N.\u0275fac=function(c){return new(c||N)},N.\u0275mod=n.oAB({type:N}),N.\u0275inj=n.cJS({imports:[[i.ez,t.L]]}),N})()},6789:(Te,te,o)=>{o.d(te,{_:()=>Y});var i=o(9808),t=o(7484),n=o(5109),s=o(5482),N=o(6949),_=o(19),c=o(8776),J=o(647),u=o(404),I=o(5e3);let O=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275mod=I.oAB({type:$}),$.\u0275inj=I.cJS({imports:[[i.ez,N.WG,c.X0,_.j,s.cD,J.PV,u.cg,n.s]]}),$})(),Y=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275mod=I.oAB({type:$}),$.\u0275inj=I.cJS({imports:[[i.ez,N.WG,c.X0,t.vh,_.j,s.cD,J.PV,u.cg,O,n.s]]}),$})()},1825:(Te,te,o)=>{o.d(te,{A:()=>c});var i=o(9808),t=o(6042),n=o(6699),s=o(3677),N=o(8144),_=o(5e3);let c=(()=>{class J{}return J.\u0275fac=function(I){return new(I||J)},J.\u0275mod=_.oAB({type:J}),J.\u0275inj=_.cJS({imports:[[i.ez,t.sL,n.Rt,s.b1,N.zf]]}),J})()},1793:(Te,te,o)=>{o.d(te,{m:()=>t});var i=o(5e3);let t=(()=>{class n{constructor(N){this.el=N,this.observer=new MutationObserver(([_])=>this.disabled=_.target.disabled),this.observer.observe(this.el.nativeElement,{attributeFilter:["disabled"],childList:!1,subtree:!1})}ngOnDestroy(){this.observer.disconnect()}}return n.\u0275fac=function(N){return new(N||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cvcOrgSelectorBtn",""]],hostVars:2,hostBindings:function(N,_){2&N&&i.ekj("ant-btn-dangerous",_.nzDanger)}}),n})()},7905:(Te,te,o)=>{o.d(te,{yQ:()=>s,nT:()=>_});var i=o(915),t=o(712),n=o(444),s=(()=>{return(c=s||(s={})).EVIDENCE="Evidence",c.ASSERTION="Assertion",s;var c})();class _{constructor(J){this.validStates=new Map,this.getTypeOptions=()=>this.entityName==s.ASSERTION?(0,n.o6)(t.uBv).map(u=>u):(0,n.o6)(t.kqt).map(u=>u),this.getSignificanceOptions=u=>{const I=this.validStates.get(u);return(null==I?void 0:I.clinicalSignificance)||[]},this.isValidSignificanceOption=(u,I)=>{const O=this.validStates.get(u);return!O||O.clinicalSignificance.includes(I)},this.getDirectionOptions=u=>{const I=this.validStates.get(u);return(null==I?void 0:I.entityDirection)||[]},this.isValidDirectionOption=(u,I)=>{const O=this.validStates.get(u);return!O||O.entityDirection.includes(I)},this.requiresDrug=u=>{const I=this.validStates.get(u);return void 0===I||I.requiresDrug},this.requiresDisease=u=>{const I=this.validStates.get(u);return void 0===I||I.requiresDisease},this.requiresAcmgCodes=u=>{const I=this.validStates.get(u);return void 0===I||I.requiresAcmgCodes},this.requiresAmpLevel=u=>{const I=this.validStates.get(u);return void 0===I||I.requiresAmpLevel},this.allowsFdaApproval=u=>{const I=this.validStates.get(u);return void 0===I||I.allowsFdaApproval},this.getOptionsFromEnums=u=>0===u.length?[]:u.map(I=>({value:I,label:(0,i.E)(I)})),this.entityName=J,this.pluralNames=new Map,this.pluralNames.set(s.ASSERTION,"Assertions"),this.pluralNames.set(s.EVIDENCE,"Evidence")}}},6064:(Te,te,o)=>{o.d(te,{_:()=>n});var i=o(712),t=o(7905);class n extends t.nT{constructor(){super(t.yQ.EVIDENCE),this.validStates.set(i.kqt.Predictive,{entityType:i.kqt.Predictive,clinicalSignificance:[i._Aq.Sensitivityresponse,i._Aq.Resistance,i._Aq.AdverseResponse,i._Aq.ReducedSensitivity,i._Aq.Na],entityDirection:[i.tI1.Supports,i.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(i.kqt.Diagnostic,{entityType:i.kqt.Diagnostic,clinicalSignificance:[i._Aq.Positive,i._Aq.Negative],entityDirection:[i.tI1.Supports,i.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(i.kqt.Prognostic,{entityType:i.kqt.Prognostic,clinicalSignificance:[i._Aq.BetterOutcome,i._Aq.PoorOutcome,i._Aq.Na],entityDirection:[i.tI1.Supports,i.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(i.kqt.Oncogenic,{entityType:i.kqt.Oncogenic,clinicalSignificance:[i._Aq.Na],entityDirection:[i.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(i.kqt.Predisposing,{entityType:i.kqt.Predisposing,clinicalSignificance:[i._Aq.Na],entityDirection:[i.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(i.kqt.Functional,{entityType:i.kqt.Functional,clinicalSignificance:[i._Aq.GainOfFunction,i._Aq.LossOfFunction,i._Aq.UnalteredFunction,i._Aq.Neomorphic,i._Aq.DominantNegative,i._Aq.Unknown],entityDirection:[i.tI1.Supports,i.tI1.DoesNotSupport],requiresDisease:!1,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},4889:(Te,te,o)=>{o.d(te,{E:()=>ne});var i=o(9808),t=o(4182),n=o(325),s=o(8776),N=o(304),_=o(6042),c=o(5e3),J=o(2643),u=o(2683);function I(R,le){if(1&R){const H=c.EpF();c.TgZ(0,"button",2),c.NdJ("click",function(){return c.CHM(H),c.oxw().callOnClick()}),c._uU(1," Cancel\n"),c.qZA()}}function O(R,le){if(1&R&&(c.TgZ(0,"button",3),c._uU(1," Cancel "),c.qZA()),2&R){const H=c.oxw();c.Q6J("routerLink",H.redirectPath)}}const $={name:"cancel-button",component:(()=>{class R extends s.fS{constructor(){super(...arguments),this.redirectPath="/"}ngOnInit(){var H,Z,w,A;(null===(H=this.field.templateOptions)||void 0===H?void 0:H.onClick)?this.callOnClick=null===(Z=this.field.templateOptions)||void 0===Z?void 0:Z.onClick:(null===(w=this.field.templateOptions)||void 0===w?void 0:w.redirectPath)&&(this.redirectPath=null===(A=this.field.templateOptions)||void 0===A?void 0:A.redirectPath)}}return R.\u0275fac=function(){let le;return function(Z){return(le||(le=c.n5z(R)))(Z||R)}}(),R.\u0275cmp=c.Xpm({type:R,selectors:[["cvc-cancel-button"]],features:[c.qOj],decls:3,vars:2,consts:[["class","cancel-button","nz-button","","type","button","nzType","default","nzSize","large",3,"click",4,"ngIf","ngIfElse"],["redirect",""],["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"click"],["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"routerLink"]],template:function(H,Z){if(1&H&&(c.YNc(0,I,2,0,"button",0),c.YNc(1,O,2,1,"ng-template",null,1,c.W1O)),2&H){const w=c.MAs(2);c.Q6J("ngIf",Z.callOnClick)("ngIfElse",w)}},directives:[i.O5,_.ix,J.dQ,u.w,n.rH],styles:[".cancel-button[_ngcontent-%COMP%]{float:left}"]}),R})()};let ne=(()=>{class R{}return R.\u0275fac=function(H){return new(H||R)},R.\u0275mod=c.oAB({type:R}),R.\u0275inj=c.cJS({imports:[[i.ez,t.u5,t.UX,_.sL,n.Bz,N.F,s.X0.forChild({types:[$]})]]}),R})()},4623:(Te,te,o)=>{o.d(te,{K:()=>I});var i=o(9808),t=o(8776),n=o(5e3),s=o(1047),N=o(4182);const c={name:"comment-textarea",component:(()=>{class O extends t.fS{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:($,ne)=>{var R;return`Comments must be at least ${null===(R=ne.templateOptions)||void 0===R?void 0:R.minLength} characters in length.`}}},templateOptions:{rows:4}}}}return O.\u0275fac=function(){let Y;return function(ne){return(Y||(Y=n.n5z(O)))(ne||O)}}(),O.\u0275cmp=n.Xpm({type:O,selectors:[["comment-textarea-type"]],features:[n.qOj],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function($,ne){1&$&&n._UZ(0,"textarea",0),2&$&&n.Q6J("formControl",ne.formControl)("formlyAttributes",ne.field)},directives:[s.Zp,N.Fj,N.JJ,N.oH,t.VQ],styles:[""],changeDetection:0}),O})(),wrappers:["form-field"]};var J=o(4546),u=o(9139);let I=(()=>{class O{}return O.\u0275fac=function($){return new($||O)},O.\u0275mod=n.oAB({type:O}),O.\u0275inj=n.cJS({imports:[[i.ez,N.UX,t.X0.forChild({types:[c]}),u.u,J.U5,s.o7]]}),O})()},1605:(Te,te,o)=>{o.d(te,{e:()=>Pe});var i=o(9808),t=o(4182),n=o(8776),s=o(3793),N=o(304),_=o(8054),c=o(5e3),J=o(1894),u=o(4546);let I=(()=>{class re{constructor(){console.log("FormCardDirective constructed.")}}return re.\u0275fac=function(ge){return new(ge||re)},re.\u0275dir=c.lG2({type:re,selectors:[["",8,"cvc-form-card-control"]]}),re})();var O=o(7484),Y=o(404);function $(re,Ie){1&re&&c._UZ(0,"i",7)}function ne(re,Ie){if(1&re&&(c.TgZ(0,"nz-form-label",5),c._uU(1),c.YNc(2,$,1,0,"i",6),c.qZA()),2&re){const ge=c.oxw();c.Q6J("nzRequired",ge.to.required&&!0!==ge.to.hideRequiredMarker)("nzFor",ge.id),c.xp6(1),c.hij(" ",ge.to.label," "),c.xp6(1),c.Q6J("ngIf",ge.to.helpText)}}function R(re,Ie){if(1&re&&c._UZ(0,"formly-validation-message",9),2&re){const ge=c.oxw(2);c.Q6J("field",ge.field)}}function le(re,Ie){if(1&re&&c.YNc(0,R,1,1,"formly-validation-message",8),2&re){const ge=c.oxw();c.Q6J("ngIf",ge.showError)}}let H=(()=>{class re extends n.n2{constructor(){super()}get errorState(){return console.log(`form-card.wrapper showError: ${this.showError}`),this.showError?"error":""}ngOnInit(){}}return re.\u0275fac=function(ge){return new(ge||re)},re.\u0275cmp=c.Xpm({type:re,selectors:[["form-card-wrapper"]],features:[c.qOj],decls:9,vars:4,consts:[[1,"cvc-form-card-control",3,"nzValidateStatus","nzErrorTip"],["nzSize","small","nzType","inner",3,"nzTitle","nzExtra"],["fieldComponent",""],["cardTitle",""],["cardExtra",""],[3,"nzRequired","nzFor"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText",4,"ngIf"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText"],[3,"field",4,"ngIf"],[3,"field"]],template:function(ge,Ae){if(1&ge&&(c.TgZ(0,"nz-form-item"),c.TgZ(1,"nz-form-control",0),c.TgZ(2,"nz-card",1),c.GkF(3,null,2),c.qZA(),c.YNc(5,ne,3,4,"ng-template",null,3,c.W1O),c.YNc(7,le,1,1,"ng-template",null,4,c.W1O),c.qZA(),c.qZA()),2&ge){const U=c.MAs(6),_e=c.MAs(8);c.xp6(1),c.Q6J("nzValidateStatus",Ae.errorState)("nzErrorTip",_e),c.xp6(1),c.Q6J("nzTitle",U)("nzExtra",_e)}},directives:[J.SK,u.Nx,J.t3,u.Fd,I,O.bd,u.iK,i.O5,Y.SY,n.u_],styles:["[_nghost-%COMP%]{display:block}.ant-form-item-label[_ngcontent-%COMP%]{padding:0}"],changeDetection:0}),re})();var Z=o(647),w=o(5109);const A={wrappers:[{name:"form-card",component:H}]};let b=(()=>{class re{}return re.\u0275fac=function(ge){return new(ge||re)},re.\u0275mod=c.oAB({type:re}),re.\u0275inj=c.cJS({imports:[[i.ez,t.UX,u.U5,O.vh,Z.PV,Y.cg,n.X0.forChild(A),w.s]]}),re})();var ae=o(8929),F=o(7625),E=o(373),h=o(4850),M=o(712),P=o(6949),L=o(8144),B=o(3618),p=o(3193),K=o(8926);function k(re,Ie){if(1&re&&(c._UZ(0,"span",10),c.ALo(1,"highlightTypeahead")),2&re){const ge=c.oxw().$implicit,Ae=c.oxw(3);c.Q6J("innerHtml",c.xi3(1,1,ge.label,Ae.to.searchString),c.oJD)}}function X(re,Ie){if(1&re&&(c._UZ(0,"span",12),c.ALo(1,"highlightTypeahead")),2&re){const ge=c.oxw(2).$implicit,Ae=c.oxw(3);c.Q6J("innerHtml",c.xi3(1,1,ge.gene.geneAliases.join(", "),Ae.to.searchString),c.oJD)}}function xe(re,Ie){1&re&&(c.ynx(0),c.YNc(1,X,2,4,"span",11),c.BQk())}function se(re,Ie){if(1&re&&(c.TgZ(0,"nz-option",7),c.TgZ(1,"nz-space"),c.YNc(2,k,2,4,"span",8),c.YNc(3,xe,2,0,"ng-container",9),c.qZA(),c.qZA()),2&re){const ge=Ie.$implicit;c.Q6J("nzLabel",ge.tooltip)("nzValue",ge.gene),c.xp6(3),c.Q6J("ngIf",ge.gene.geneAliases.length>0)}}function ye(re,Ie){if(1&re&&(c.ynx(0),c._uU(1),c.ALo(2,"json"),c.YNc(3,se,4,3,"nz-option",6),c.BQk()),2&re){const ge=Ie.ngrxLet;c.xp6(1),c.hij(" ",c.lcZ(2,2,ge)," "),c.xp6(2),c.Q6J("ngForOf",ge)}}function q(re,Ie){1&re&&c._uU(0," No gene found in CIViC that matches the string provided. ")}function me(re,Ie){if(1&re){const ge=c.EpF();c.ynx(0),c.TgZ(1,"nz-select",2,3),c.NdJ("nzOnSearch",function(U){return c.CHM(ge),c.oxw().to.onSearch(U)}),c.YNc(3,ye,4,4,"ng-container",4),c.qZA(),c.YNc(4,q,1,0,"ng-template",null,5,c.W1O),c.BQk()}if(2&re){const ge=c.MAs(5),Ae=c.oxw();c.xp6(1),c.Q6J("formControl",Ae.formControl)("formlyAttributes",Ae.field)("nzPlaceHolder",Ae.to.placeholder?Ae.to.placeholder:null)("nzNotFoundContent",ge)("nzShowArrow",Ae.to.showArrow)("nzFilterOption",Ae.to.filterOption),c.xp6(2),c.Q6J("ngrxLet",Ae.genes$)}}function ie(re,Ie){if(1&re&&c._UZ(0,"cvc-gene-tag",13),2&re){const ge=c.oxw();c.Q6J("gene",ge.formControl.value)}}const Oe={name:"cvc-gene-input",component:(()=>{class re extends n.fS{constructor(ge){super(),this.geneTypeaheadQuery=ge,this.defaultOptions={templateOptions:{placeholder:"Search Genes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}},this.destroy$=new ae.xQ}ngOnInit(){this.queryRef=this.geneTypeaheadQuery.watch({entrezSymbol:""}),this.genes$=this.queryRef.valueChanges.pipe((0,F.R)(this.destroy$),(0,E.j)("data","geneTypeahead"),(0,h.U)(ge=>ge.map(Ae=>{let U=Ae.geneAliases.length>0?`Aliases: ${Ae.geneAliases.join(", ")}`:"";return{value:Ae.id,tooltip:`${Ae.name} (${Ae.entrezId}) ${U}`,label:`${Ae.name} (${Ae.entrezId})`,gene:Ae}})))}ngAfterViewInit(){this.to.onSearch=ge=>{ge.length{class re{}return re.\u0275fac=function(ge){return new(ge||re)},re.\u0275mod=c.oAB({type:re}),re.\u0275inj=c.cJS({imports:[[i.ez,t.UX,P.WG,n.X0.forChild({types:[Oe]}),_.LV,L.zf,B.ZJ,V.U,fe.s]]}),re})();var he=o(8390);const De={name:"gene-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Gene",helpText:"Entrez Gene name (e.g. BRAF). Gene name must be known to the Entrez database.",required:!1,addText:"Specify a Gene"},fieldArray:{type:"cvc-gene-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Gene be specified."}}}};let Pe=(()=>{class re{}return re.\u0275fac=function(ge){return new(ge||re)},re.\u0275mod=c.oAB({type:re}),re.\u0275inj=c.cJS({imports:[[i.ez,t.u5,t.UX,_.LV,N.F,s.F,n.X0.forChild({types:[De]}),G,he.N,b]]}),re})()},8390:(Te,te,o)=>{o.d(te,{N:()=>P});var i=o(9808),t=o(4182),n=o(8776),s=o(4546),N=o(1047),_=o(647),c=o(5e3),J=o(1894),u=o(8481),I=o(2683),O=o(6042),Y=o(2643);function $(L,B){if(1&L){const p=c.EpF();c.TgZ(0,"nz-form-item"),c.TgZ(1,"nz-form-control",3),c.TgZ(2,"nz-tag",4),c.NdJ("click",function(k){return c.CHM(p),c.oxw().addField(k)}),c._UZ(3,"i",5),c._uU(4),c.qZA(),c.qZA(),c.qZA()}if(2&L){const p=c.oxw();c.xp6(1),c.Q6J("nzValidateStatus",p.errorState),c.xp6(3),c.hij(" ",p.to.addText," ")}}function ne(L,B){if(1&L){const p=c.EpF();c.TgZ(0,"nz-tag",4),c.NdJ("click",function(k){return c.CHM(p),c.oxw(4).addField(k)}),c._UZ(1,"i",5),c._uU(2),c.qZA()}if(2&L){const p=c.oxw(4);c.xp6(2),c.hij(" ",p.to.addText," ")}}function R(L,B){if(1&L&&(c.TgZ(0,"div",11),c.YNc(1,ne,3,1,"nz-tag",12),c.qZA()),2&L){const p=c.oxw(2).$implicit,K=c.oxw();c.xp6(1),c.Q6J("ngIf",0==K.to.maxCount||K.to.maxCount>p.model.length)}}function le(L,B){if(1&L){const p=c.EpF();c.ynx(0),c.TgZ(1,"nz-tag",8),c.TgZ(2,"i",9),c.NdJ("click",function(){c.CHM(p);const k=c.oxw().index;return c.oxw().remove(k)}),c.qZA(),c.qZA(),c.YNc(3,R,2,1,"div",10),c.BQk()}if(2&L){const p=c.oxw().last;c.xp6(3),c.Q6J("ngIf",p)}}function H(L,B){if(1&L){const p=c.EpF();c.ynx(0),c.TgZ(1,"div",13),c.TgZ(2,"button",14),c.NdJ("click",function(){c.CHM(p);const k=c.oxw().index;return c.oxw().remove(k)}),c._UZ(3,"i",15),c.qZA(),c.qZA(),c.BQk()}}function Z(L,B){if(1&L&&(c.TgZ(0,"nz-form-item"),c.TgZ(1,"div",6),c.TgZ(2,"div",0),c._UZ(3,"formly-field",7),c.qZA(),c.YNc(4,le,4,1,"ng-container",1),c.YNc(5,H,4,0,"ng-container",1),c.qZA(),c.qZA()),2&L){const p=B.$implicit,K=B.index;c.xp6(2),c.Q6J("ngClass",p.model[K]?"selected-field-col":"default-field-col"),c.xp6(1),c.Q6J("field",p),c.xp6(1),c.Q6J("ngIf",p.model[K]),c.xp6(1),c.Q6J("ngIf",!p.model[K])}}const w=function(L){return{hidden:L}},b={name:"multi-field",component:(()=>{class L extends n.hv{constructor(){super(),this.defaultOptions={templateOptions:{maxCount:0}}}get errorState(){return this.showError?"error":""}addField(p){p&&p.preventDefault(),this.add()}ngOnInit(){this.to.add=this.add.bind(this),this.to.remove=this.remove.bind(this)}}return L.\u0275fac=function(p){return new(p||L)},L.\u0275cmp=c.Xpm({type:L,selectors:[["cvc-multi-field-type"]],features:[c.qOj],decls:3,vars:5,consts:[[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzValidateStatus"],["nzNoAnimation","",1,"editable-tag",3,"click"],["nz-icon","","nzType","plus"],["ngClass","field-display"],[3,"field"],[1,"close-tag"],["nz-icon","","nzType","close",3,"click"],["class","field-add-btn",4,"ngIf"],[1,"field-add-btn"],["class","editable-tag","nzNoAnimation","",3,"click",4,"ngIf"],[1,"field-cancel-btn"],["nz-button","","nzBlock","","nzType","default","nzSize","small","nzDanger","",3,"click"],["nz-icon","","nzType","close"]],template:function(p,K){1&p&&(c.TgZ(0,"div",0),c.YNc(1,$,5,2,"nz-form-item",1),c.YNc(2,Z,6,4,"nz-form-item",2),c.qZA()),2&p&&(c.Q6J("ngClass",c.VKq(3,w,!0===K.to.hidden)),c.xp6(1),c.Q6J("ngIf",0===(null==K.field.fieldGroup?null:K.field.fieldGroup.length)),c.xp6(1),c.Q6J("ngForOf",K.field.fieldGroup))},directives:[i.mk,i.O5,J.SK,s.Nx,J.t3,s.Fd,u.j,_.Ls,I.w,i.sg,n.cw,O.ix,Y.dQ],styles:["[_nghost-%COMP%]{display:block}nz-form-item[_ngcontent-%COMP%]{margin-bottom:.25em}nz-form-item[_ngcontent-%COMP%]:last-child{margin-bottom:16px}.hidden[_ngcontent-%COMP%]{display:none}.editable-tag[_ngcontent-%COMP%]{background:#ffffff;border-style:dashed;cursor:pointer}.field-display[_ngcontent-%COMP%]{margin-top:.5em;display:inline-block} > nz-form-item[_ngcontent-%COMP%]{margin-bottom:0}.selected-field-col[_ngcontent-%COMP%]{display:inline-block}.default-field-col[_ngcontent-%COMP%]{display:inline-block;width:calc(100% - (2*(10px + 1em)))}.field-add-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em}.close-tag[_ngcontent-%COMP%]{margin-left:-9px;cursor:pointer}.field-cancel-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em;width:calc(20px + 1em)}"]}),L})()};function ae(L,B){if(1&L&&c._UZ(0,"formly-validation-message",3),2&L){const p=c.oxw();c.Q6J("field",p.field)}}const E={name:"cvc-field-errors",component:(()=>{class L extends n.n2{get errorState(){return this.showError?"error":""}}return L.\u0275fac=function(){let B;return function(K){return(B||(B=c.n5z(L)))(K||L)}}(),L.\u0275cmp=c.Xpm({type:L,selectors:[["cvc-field-errors-wrapper"]],features:[c.qOj],decls:7,vars:3,consts:[[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"field"]],template:function(p,K){if(1&p&&(c.TgZ(0,"nz-form-control",0),c.TgZ(1,"p"),c._uU(2),c.qZA(),c.GkF(3,null,1),c.YNc(5,ae,1,1,"ng-template",null,2,c.W1O),c.qZA()),2&p){const k=c.MAs(6);c.Q6J("nzValidateStatus",K.errorState)("nzErrorTip",k),c.xp6(2),c.hij("errorState: ",K.errorState,"")}},directives:[J.t3,s.Fd,n.u_],encapsulation:2,changeDetection:0}),L})()};let h=(()=>{class L{}return L.\u0275fac=function(p){return new(p||L)},L.\u0275mod=c.oAB({type:L}),L.\u0275inj=c.cJS({imports:[[i.ez,t.UX,s.U5,n.X0.forChild({wrappers:[E]})]]}),L})();var M=o(5109);let P=(()=>{class L{}return L.\u0275fac=function(p){return new(p||L)},L.\u0275mod=c.oAB({type:L}),L.\u0275inj=c.cJS({imports:[[i.ez,t.u5,n.X0.forChild({types:[b]}),t.UX,h,s.U5,N.o7,_.PV,O.sL,M.s,u.X]]}),L})()},7462:(Te,te,o)=>{o.d(te,{o:()=>J});var i=o(9808),t=o(8776),n=o(5e3),s=o(1047),N=o(4182);const c={name:"cvc-textarea",component:(()=>{class u extends t.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return u.\u0275fac=function(){let I;return function(Y){return(I||(I=n.n5z(u)))(Y||u)}}(),u.\u0275cmp=n.Xpm({type:u,selectors:[["cvc-textarea-base-type"]],features:[n.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(O,Y){1&O&&n._UZ(0,"textarea",0),2&O&&n.Q6J("formControl",Y.formControl)("formlyAttributes",Y.field)("nzAutosize",Y.to.autosize)("placeholder",Y.to.placeholder)},directives:[s.Zp,N.Fj,s.rh,N.JJ,N.oH,t.VQ],styles:[""],changeDetection:0}),u})(),wrappers:["form-field"]};let J=(()=>{class u{}return u.\u0275fac=function(O){return new(O||u)},u.\u0275mod=n.oAB({type:u}),u.\u0275inj=n.cJS({imports:[[i.ez,N.u5,N.UX,t.X0.forChild({types:[c]}),s.o7]]}),u})()},5472:(Te,te,o)=>{o.d(te,{r:()=>Y});var i=o(9808),t=o(6949),n=o(8776),s=o(7484),N=o(5482),_=o(1894),c=o(5109),J=o(6789),u=o(5e3);const O={wrappers:[{name:"form-container",component:(()=>{class $ extends n.n2{}return $.\u0275fac=function(){let ne;return function(le){return(ne||(ne=u.n5z($)))(le||$)}}(),$.\u0275cmp=u.Xpm({type:$,selectors:[["cvc-form-container-wrapper"]],features:[u.qOj],decls:5,vars:1,consts:[["nzSpan","24"],["nzSize","default",3,"nzTitle"],["fieldComponent",""]],template:function(R,le){1&R&&(u.TgZ(0,"nz-row"),u.TgZ(1,"nz-col",0),u.TgZ(2,"nz-card",1),u.GkF(3,null,2),u.qZA(),u.qZA(),u.qZA()),2&R&&(u.xp6(2),u.Q6J("nzTitle",le.to.label))},directives:[_.SK,_.t3,s.bd],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0}),$})()}]};let Y=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275mod=u.oAB({type:$}),$.\u0275inj=u.cJS({imports:[[i.ez,t.WG,n.X0.forChild(O),_.Jb,s.vh,N.cD,J._,c.s]]}),$})()},7695:(Te,te,o)=>{o.d(te,{C:()=>E});var i=o(9808),t=o(6949),n=o(8776),s=o(7484),N=o(5482),_=o(1894),c=o(5109),J=o(6789),u=o(5e3),I=o(19),O=o(647),Y=o(404);function $(h,M){1&h&&u._UZ(0,"div",9),2&h&&u.Q6J("innerHtml",M.ngIf,u.oJD)}function ne(h,M){1&h&&(u.TgZ(0,"div",10),u._uU(1,"Help not available for this field."),u.qZA())}function R(h,M){if(1&h&&(u.TgZ(0,"nz-collapse-panel",6),u.YNc(1,$,1,1,"div",7),u.YNc(2,ne,2,0,"ng-template",null,8,u.W1O),u.qZA()),2&h){const P=M.ngIf,L=u.MAs(3),B=u.oxw().$implicit,p=u.MAs(3);u.Q6J("nzHeader",P)("nzActive",B.templateOptions.hasFocus)("nzExtra",p),u.xp6(1),u.Q6J("ngIf",null==B.templateOptions?null:B.templateOptions.helpText)("ngIfElse",L)}}function le(h,M){if(1&h&&u._UZ(0,"formly-validation-message",14),2&h){const P=u.oxw(4).$implicit;u.Q6J("field",P)}}function H(h,M){if(1&h&&(u.ynx(0),u._UZ(1,"i",12),u.YNc(2,le,1,1,"ng-template",null,13,u.W1O),u.BQk()),2&h){const P=u.MAs(3);u.xp6(1),u.Q6J("nzTooltipTitle",P)}}function Z(h,M){if(1&h&&(u.ynx(0),u.YNc(1,H,4,1,"ng-container",11),u.BQk()),2&h){const P=M.ngIf;u.xp6(1),u.Q6J("ngIf","INVALID"===P)}}function w(h,M){if(1&h&&(u.YNc(0,Z,2,1,"ng-container",11),u.ALo(1,"ngrxPush")),2&h){const P=u.oxw().$implicit;u.Q6J("ngIf",u.lcZ(1,1,P.formControl.statusChanges))}}function A(h,M){if(1&h&&(u.ynx(0),u.YNc(1,R,4,5,"nz-collapse-panel",4),u.YNc(2,w,2,3,"ng-template",null,5,u.W1O),u.BQk()),2&h){const P=M.$implicit;u.xp6(1),u.Q6J("ngIf",null==P.templateOptions?null:P.templateOptions.label)}}let b=(()=>{class h{constructor(){}ngOnInit(){}}return h.\u0275fac=function(P){return new(P||h)},h.\u0275cmp=u.Xpm({type:h,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(P,L){1&P&&(u.TgZ(0,"nz-affix",0),u.TgZ(1,"nz-card",1),u.TgZ(2,"nz-collapse",2),u.YNc(3,A,4,1,"ng-container",3),u.qZA(),u.qZA(),u.qZA()),2&P&&(u.Q6J("nzOffsetTop",0)("nzTarget",L.affixTo),u.xp6(2),u.Q6J("nzBordered",!1),u.xp6(1),u.Q6J("ngForOf",L.fieldGroup))},directives:[I.$,s.bd,N.yH,i.sg,i.O5,N.Zv,O.Ls,Y.SY,n.u_],pipes:[t.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),h})();const F={name:"form-info",component:(()=>{class h extends n.n2{}return h.\u0275fac=function(){let M;return function(L){return(M||(M=u.n5z(h)))(L||h)}}(),h.\u0275cmp=u.Xpm({type:h,selectors:[["cvc-form-info-wrapper"]],features:[u.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(P,L){if(1&P&&(u.TgZ(0,"nz-row",0),u.TgZ(1,"nz-col",1),u.TgZ(2,"nz-card",2),u.GkF(3,null,3),u.qZA(),u.qZA(),u.TgZ(5,"nz-col",1),u.TgZ(6,"div",null,4),u._UZ(8,"cvc-form-info-card",5),u.qZA(),u.qZA(),u.qZA()),2&P){const B=u.MAs(7);u.xp6(1),u.Q6J("nzSpan",16),u.xp6(1),u.Q6J("nzTitle",L.to.label),u.xp6(3),u.Q6J("nzSpan",8),u.xp6(3),u.Q6J("fieldGroup",L.field.fieldGroup)("affixTo",B)}},directives:[_.SK,_.t3,s.bd,b],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),h})()};let E=(()=>{class h{}return h.\u0275fac=function(P){return new(P||h)},h.\u0275mod=u.oAB({type:h}),h.\u0275inj=u.cJS({imports:[[i.ez,t.WG,n.X0.forChild({wrappers:[F]}),_.Jb,s.vh,N.cD,J._,c.s]]}),h})()},8785:(Te,te,o)=>{o.d(te,{t:()=>ae});var i=o(5e3),t=o(6123),n=o(8929),s=o(7625),N=o(712),_=o(9169),c=o(7484),J=o(9808),u=o(2359),I=o(1894),O=o(4546),Y=o(822),$=o(7525),ne=o(3868),R=o(4182),le=o(6042),H=o(2643),Z=o(2683);function w(F,E){1&F&&i._UZ(0,"nz-alert",7)}function A(F,E){if(1&F&&(i.TgZ(0,"nz-form-item"),i._UZ(1,"cvc-form-errors-alert",8),i.qZA()),2&F){const h=i.oxw();i.xp6(1),i.Q6J("errors",h.errorMessages)}}function b(F,E){if(1&F){const h=i.EpF();i.TgZ(0,"nz-form-item"),i.TgZ(1,"textarea",9),i.NdJ("ngModelChange",function(P){return i.CHM(h),i.oxw().coiText=P}),i.qZA(),i.qZA()}if(2&F){const h=i.oxw();i.xp6(1),i.Q6J("ngModel",h.coiText)}}let ae=(()=>{class F{constructor(h,M){this.updateCoiGql=h,this.coiUpdatedEvent=new i.vpe,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new n.xQ,this.updateCoiMutator=new t.U(M)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let M=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});M.submitSuccess$.pipe((0,s.R)(this.destroy$)).subscribe(P=>{P&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),M.submitError$.pipe((0,s.R)(this.destroy$)).subscribe(P=>{P&&(this.errorMessages=P,this.success=!1)}),M.isSubmitting$.pipe((0,s.R)(this.destroy$)).subscribe(P=>{this.loading=P})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return F.\u0275fac=function(h){return new(h||F)(i.Y36(N.IP1),i.Y36(_.Y))},F.\u0275cmp=i.Xpm({type:F,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(h,M){1&h&&(i.TgZ(0,"nz-card"),i.YNc(1,w,1,0,"nz-alert",0),i.YNc(2,A,2,1,"nz-form-item",1),i.TgZ(3,"nz-spin",2),i.TgZ(4,"nz-form-item"),i.TgZ(5,"nz-radio-group",3),i.NdJ("ngModelChange",function(L){return M.coiStatus=L}),i.TgZ(6,"label",4),i._uU(7,"I do not have any potential conflicts of interest."),i.qZA(),i.TgZ(8,"label",5),i._uU(9,"I do have a potential conflict of interest."),i.qZA(),i.qZA(),i.qZA(),i.YNc(10,b,2,1,"nz-form-item",1),i.TgZ(11,"nz-form-item"),i.TgZ(12,"button",6),i.NdJ("click",function(){return M.updateCoi()}),i._uU(13," Save Conflict of Interest Statement "),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&h&&(i.xp6(1),i.Q6J("ngIf",M.success),i.xp6(1),i.Q6J("ngIf",M.errorMessages.length>0),i.xp6(1),i.Q6J("nzSpinning",M.loading),i.xp6(2),i.Q6J("ngModel",M.coiStatus),i.xp6(5),i.Q6J("ngIf","coiPresent"===M.coiStatus),i.xp6(2),i.Q6J("disabled",M.loading||"coiPresent"===M.coiStatus&&(void 0===M.coiText||M.coiText.length<10)))},directives:[c.bd,J.O5,u.r,I.SK,O.Nx,Y.V,$.W,ne.Dg,R.JJ,R.On,ne.Of,R.Fj,le.ix,H.dQ,Z.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),F})()},330:(Te,te,o)=>{o.d(te,{e:()=>Y});var i=o(9808),t=o(4182),n=o(6949),s=o(7484),N=o(2359),_=o(4546),c=o(7008),J=o(3868),u=o(7525),I=o(6042),O=o(5e3);let Y=(()=>{class ${}return $.\u0275fac=function(R){return new(R||$)},$.\u0275mod=O.oAB({type:$}),$.\u0275inj=O.cJS({imports:[[i.ez,t.u5,_.U5,t.UX,n.WG,s.vh,N.L,J.aF,I.sL,u.j,c.B]]}),$})()},3434:(Te,te,o)=>{o.d(te,{G:()=>ae});var i=o(4182),t=o(8929),n=o(6064),s=o(6123),N=o(7625),_=o(5e3),c=o(712),J=o(9169),u=o(325),I=o(7525),O=o(4546),Y=o(9808),$=o(8776),ne=o(1894),R=o(822),le=o(2359);function H(F,E){1&F&&_.GkF(0)}function Z(F,E){if(1&F&&(_.TgZ(0,"nz-form-item"),_._UZ(1,"cvc-form-errors-alert",6),_.qZA()),2&F){const h=_.oxw(2);_.xp6(1),_.Q6J("errors",h.errorMessages)}}function w(F,E){if(1&F&&(_.TgZ(0,"p"),_._uU(1,"View "),_.TgZ(2,"a",10),_._uU(3,"its details"),_.qZA(),_._uU(4,"."),_.qZA()),2&F){const h=_.oxw(3);_.xp6(2),_.MGl("routerLink","/variants/",h.newId,"/summary")}}function A(F,E){if(1&F&&(_.ynx(0),_._UZ(1,"nz-alert",7),_.YNc(2,w,5,1,"ng-template",8,9,_.W1O),_.BQk()),2&F){const h=_.MAs(3),M=_.oxw(2);_.xp6(1),_.Q6J("nzMessage",M.isNew?"Variant Created":"Variant Already Exists")("nzDescription",h)}}function b(F,E){if(1&F&&(_.YNc(0,Z,2,1,"nz-form-item",5),_.YNc(1,A,4,2,"ng-container",5)),2&F){const h=_.oxw();_.Q6J("ngIf",h.errorMessages.length>0),_.xp6(1),_.Q6J("ngIf",h.success)}}let ae=(()=>{class F{constructor(h,M,P){this.submitVariantGQL=h,this.networkErrorService=M,this.route=P,this.destroy$=new t.xQ,this.formGroup=new i.cw({}),this.formOptions={formState:new n._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitVariantMutator=new s.U(M),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1,required:!0},validation:{messages:{required:"Gene is required to add a new variant."}}},{key:"variant",type:"cvc-textarea",templateOptions:{label:"Variant Name",helpText:"The name of the variant to add",placeholder:"Enter variant name",required:!0,autosize:{minRows:1,maxRows:1}},validation:{messages:{required:"Variant name is required to add a new variant."}}},{key:"submit",type:"submit-button"}]}]}submitVariant(h){let M=null==h?void 0:h.fields.gene[0].id,P=null==h?void 0:h.fields.variant;if(M&&P){let B=this.submitVariantMutator.mutate(this.submitVariantGQL,{geneId:M,name:P},{},p=>{this.newId=p.addVariant.variant.id,this.isNew=p.addVariant.new});B.submitSuccess$.pipe((0,N.R)(this.destroy$)).subscribe(p=>{p&&(this.success=!0)}),B.submitError$.pipe((0,N.R)(this.destroy$)).subscribe(p=>{p&&(this.errorMessages=p,this.success=!1)}),B.isSubmitting$.pipe((0,N.R)(this.destroy$)).subscribe(p=>{this.loading=p})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return F.\u0275fac=function(h){return new(h||F)(_.Y36(c.LUc),_.Y36(J.Y),_.Y36(u.gz))},F.\u0275cmp=_.Xpm({type:F,selectors:[["cvc-variant-submit-form"]],decls:6,vars:7,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange"],["formMessages",""],[4,"ngIf"],[3,"errors"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(h,M){if(1&h&&(_.TgZ(0,"nz-spin",0),_.TgZ(1,"form",1),_.NdJ("ngSubmit",function(){return M.submitVariant(M.formModel)}),_.YNc(2,H,1,0,"ng-container",2),_.TgZ(3,"formly-form",3),_.NdJ("modelChange",function(L){return M.formModel=L}),_.qZA(),_.qZA(),_.qZA(),_.YNc(4,b,2,2,"ng-template",null,4,_.W1O)),2&h){const P=_.MAs(5);_.Q6J("nzSpinning",M.loading),_.xp6(1),_.Q6J("formGroup",M.formGroup),_.xp6(1),_.Q6J("ngTemplateOutlet",P),_.xp6(1),_.Q6J("form",M.formGroup)("fields",M.formFields)("model",M.formModel)("options",M.formOptions)}},directives:[I.W,i._Y,i.JL,O.Lr,i.sg,Y.tP,$.T7,Y.O5,ne.SK,O.Nx,R.V,le.r,u.yS],styles:[""]}),F})()},7058:(Te,te,o)=>{o.d(te,{e:()=>k});var i=o(9808),t=o(4623),n=o(4375),s=o(7008),N=o(7695),_=o(8390),c=o(7462),J=o(8776),u=o(5109),I=o(2359),O=o(6042),Y=o(4546),$=o(1894),ne=o(4182),R=o(325),le=o(1605),H=o(7525),Z=o(5472),w=o(4889),A=o(7484),b=o(8144),ae=o(3618),F=o(5e3),E=o(9180),h=o(2643),M=o(1793),P=o(2683);const B={name:"submit-button",component:(()=>{class X extends J.fS{constructor(){super(),this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}}return X.\u0275fac=function(se){return new(se||X)},X.\u0275cmp=F.Xpm({type:X,selectors:[["cvc-submit-button-type"]],features:[F.qOj],decls:3,vars:2,consts:[["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","large",3,"disabled"]],template:function(se,ye){1&se&&(F.TgZ(0,"cvc-form-buttons"),F.TgZ(1,"button",0),F._uU(2),F.qZA(),F.qZA()),2&se&&(F.xp6(1),F.Q6J("disabled",!ye.form.valid),F.xp6(1),F.hij(" ",ye.to.submitLabel," "))},directives:[E.Z,O.ix,h.dQ,M.m,P.w],styles:[""],changeDetection:0}),X})()};var p=o(1825);let K=(()=>{class X{}return X.\u0275fac=function(se){return new(se||X)},X.\u0275mod=F.oAB({type:X}),X.\u0275inj=F.cJS({imports:[[i.ez,ne.UX,J.X0.forChild({types:[B]}),O.sL,n.R,p.A]]}),X})(),k=(()=>{class X{}return X.\u0275fac=function(se){return new(se||X)},X.\u0275mod=F.oAB({type:X}),X.\u0275inj=F.cJS({imports:[[i.ez,R.Bz,ne.UX,u.s,Y.U5,I.L,$.Jb,O.sL,H.j,A.vh,b.zf,ae.ZJ,J.X0,s.B,n.R,N.C,_.N,c.o,t.K,le.e,Z.r,w.E,K,u.s]]}),X})()},712:(Te,te,o)=>{o.d(te,{ti:()=>ni,$G1:()=>ur,iGM:()=>nr,KNk:()=>gr,T97:()=>zr,RMv:()=>Rr,LUc:()=>Qr,iwm:()=>Ce,Vr2:()=>g,A94:()=>Ms,mdl:()=>ve,Gbq:()=>lo,bgg:()=>Ki,u4i:()=>Ee,ejK:()=>Ns,uBv:()=>Re,td:()=>po,Tq1:()=>Eo,q8c:()=>Vo,WRV:()=>Ti,IZ6:()=>Si,qf4:()=>Fi,Rdc:()=>Vi,gtM:()=>Fr,fpJ:()=>Nr,k2T:()=>Mr,UWf:()=>Ci,cMj:()=>Ls,UIR:()=>go,E8d:()=>$e,P_b:()=>ho,Mgx:()=>Be,iST:()=>zo,Kk:()=>Co,OfU:()=>ke,kQf:()=>pi,l4w:()=>hs,JQ3:()=>Lr,db2:()=>ea,h01:()=>Je,wg3:()=>Fs,k7O:()=>To,kv3:()=>pr,R8w:()=>qe,GB2:()=>Rs,Zyn:()=>rt,dUU:()=>So,kq9:()=>ct,vRc:()=>hr,Ud2:()=>Mo,GYx:()=>cr,AO2:()=>Ze,YMi:()=>No,BTF:()=>Lo,wJ2:()=>ot,eY8:()=>Ro,_Aq:()=>ut,pHu:()=>Gs,tI1:()=>st,FId:()=>Kr,Q_P:()=>Wr,Sx0:()=>C,Ybm:()=>Fo,Cp0:()=>ee,RTy:()=>x,sBY:()=>ws,kqt:()=>pe,Zhw:()=>Cr,B0s:()=>es,rzy:()=>Go,OIL:()=>wo,BQZ:()=>Ne,sfv:()=>Fe,TNk:()=>Qs,rJ8:()=>Qo,FOU:()=>is,Q4m:()=>Tr,Fvz:()=>mt,cCu:()=>Vs,_jb:()=>zi,MYm:()=>hi,oRL:()=>gt,lfy:()=>Er,fow:()=>ft,X5f:()=>Jo,WOS:()=>Ws,Lr0:()=>Js,Del:()=>Ks,xlL:()=>ht,io:()=>Ko,WGV:()=>Xs,OHm:()=>Xo,lYz:()=>vt,FKQ:()=>Sr,B97:()=>ei,mII:()=>ir,ghc:()=>Wo,NQC:()=>zt,JDX:()=>_t,VZq:()=>ii,EwB:()=>ns,otH:()=>ci,FJi:()=>Ct,L5n:()=>ui,rZD:()=>yt,SrV:()=>Tt,Bk6:()=>na,TiL:()=>Ei,yic:()=>It,SJD:()=>nn,F3s:()=>Et,jw9:()=>Dt,g0X:()=>ia,iXf:()=>Ln,NbY:()=>Gr,kQl:()=>St,LLl:()=>er,WFw:()=>Xr,tji:()=>Ts,o71:()=>Ot,jMx:()=>ga,A4J:()=>gi,c$m:()=>Xi,Vj7:()=>Jr,D9L:()=>ss,SWk:()=>cs,aw3:()=>zs,Xft:()=>Ss,mpB:()=>Mt,m$d:()=>pa,IP1:()=>ps,LiH:()=>ua,wRZ:()=>us,wbP:()=>gs,sLD:()=>sa,yqR:()=>ca,cEv:()=>Mi,i44:()=>At,vMt:()=>sr,tJ6:()=>Ni,IRu:()=>Nt,Qzn:()=>si,iJT:()=>Ta,qP7:()=>at,Qtd:()=>ha,Zo2:()=>Li,ROj:()=>Cs,FB1:()=>Gt,q1D:()=>za,d4o:()=>xt,huM:()=>Lt,ZYZ:()=>wi,nnL:()=>Es,Bo4:()=>Ea,ubO:()=>Ca,tw_:()=>Ri,wpb:()=>Pt,BnY:()=>Vr,_eC:()=>wr,fwG:()=>Gi,zwS:()=>Qi,pP7:()=>Ft,Tt7:()=>Wi,Kmw:()=>Ji});var i=o(655);function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(e)}var s=o(9245);function N(e,a){for(var S,r=/\r\n|[\n\r]/g,f=1,D=a+1;(S=r.exec(e.body))&&S.index120){for(var bt=Math.floor(ue/80),wt=ue%80,je=[],Qe=0;Qe",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"}),K=o(6261),k=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"}),X=o(2032),xe=function(){function e(r){var f=new B.WU(p.SOF,0,0,0,0,null);this.source=r,this.lastToken=f,this.token=f,this.line=1,this.lineStart=0}var a=e.prototype;return a.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},a.lookahead=function(){var f=this.token;if(f.kind!==p.EOF)do{var D;f=null!==(D=f.next)&&void 0!==D?D:f.next=q(this,f)}while(f.kind===p.COMMENT);return f},e}();function ye(e){return isNaN(e)?p.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function q(e,a){for(var r=e.source,f=r.body,D=f.length,S=a.end;S31||9===Q));return new B.WU(p.COMMENT,a,j,r,f,D,S.slice(a+1,j))}function ze(e,a,r,f,D,S){var Q=e.body,j=r,ue=a,Le=!1;if(45===j&&(j=Q.charCodeAt(++ue)),48===j){if((j=Q.charCodeAt(++ue))>=48&&j<=57)throw P(e,ue,"Invalid number, unexpected digit after 0: ".concat(ye(j),"."))}else ue=Oe(e,ue,j),j=Q.charCodeAt(ue);if(46===j&&(Le=!0,j=Q.charCodeAt(++ue),ue=Oe(e,ue,j),j=Q.charCodeAt(ue)),(69===j||101===j)&&(Le=!0,(43===(j=Q.charCodeAt(++ue))||45===j)&&(j=Q.charCodeAt(++ue)),ue=Oe(e,ue,j),j=Q.charCodeAt(ue)),46===j||function De(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(j))throw P(e,ue,"Invalid number, expected digit but got: ".concat(ye(j),"."));return new B.WU(Le?p.FLOAT:p.INT,a,ue,f,D,S,Q.slice(a,ue))}function Oe(e,a,r){var f=e.body,D=a,S=r;if(S>=48&&S<=57){do{S=f.charCodeAt(++D)}while(S>=48&&S<=57);return D}throw P(e,D,"Invalid number, expected digit but got: ".concat(ye(S),"."))}function V(e,a,r,f,D){for(var S=e.body,Q=a+1,j=Q,ue=0,Le="";Q=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ce(e,a,r,f,D){for(var S=e.body,Q=S.length,j=a+1,ue=0;j!==Q&&!isNaN(ue=S.charCodeAt(j))&&(95===ue||ue>=48&&ue<=57||ue>=65&&ue<=90||ue>=97&&ue<=122);)++j;return new B.WU(p.NAME,a,j,r,f,D,S.slice(a,j))}var ge=function(){function e(r,f){var D=(0,K.T)(r)?r:new K.H(r);this._lexer=new xe(D),this._options=f}var a=e.prototype;return a.parseName=function(){var f=this.expectToken(p.NAME);return{kind:L.NAME,value:f.value,loc:this.loc(f)}},a.parseDocument=function(){var f=this._lexer.token;return{kind:L.DOCUMENT,definitions:this.many(p.SOF,this.parseDefinition,p.EOF),loc:this.loc(f)}},a.parseDefinition=function(){if(this.peek(p.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(p.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},a.parseOperationDefinition=function(){var f=this._lexer.token;if(this.peek(p.BRACE_L))return{kind:L.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(f)};var S,D=this.parseOperationType();return this.peek(p.NAME)&&(S=this.parseName()),{kind:L.OPERATION_DEFINITION,operation:D,name:S,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(f)}},a.parseOperationType=function(){var f=this.expectToken(p.NAME);switch(f.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(f)},a.parseVariableDefinitions=function(){return this.optionalMany(p.PAREN_L,this.parseVariableDefinition,p.PAREN_R)},a.parseVariableDefinition=function(){var f=this._lexer.token;return{kind:L.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(p.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(p.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(f)}},a.parseVariable=function(){var f=this._lexer.token;return this.expectToken(p.DOLLAR),{kind:L.VARIABLE,name:this.parseName(),loc:this.loc(f)}},a.parseSelectionSet=function(){var f=this._lexer.token;return{kind:L.SELECTION_SET,selections:this.many(p.BRACE_L,this.parseSelection,p.BRACE_R),loc:this.loc(f)}},a.parseSelection=function(){return this.peek(p.SPREAD)?this.parseFragment():this.parseField()},a.parseField=function(){var S,Q,f=this._lexer.token,D=this.parseName();return this.expectOptionalToken(p.COLON)?(S=D,Q=this.parseName()):Q=D,{kind:L.FIELD,alias:S,name:Q,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(p.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(f)}},a.parseArguments=function(f){return this.optionalMany(p.PAREN_L,f?this.parseConstArgument:this.parseArgument,p.PAREN_R)},a.parseArgument=function(){var f=this._lexer.token,D=this.parseName();return this.expectToken(p.COLON),{kind:L.ARGUMENT,name:D,value:this.parseValueLiteral(!1),loc:this.loc(f)}},a.parseConstArgument=function(){var f=this._lexer.token;return{kind:L.ARGUMENT,name:this.parseName(),value:(this.expectToken(p.COLON),this.parseValueLiteral(!0)),loc:this.loc(f)}},a.parseFragment=function(){var f=this._lexer.token;this.expectToken(p.SPREAD);var D=this.expectOptionalKeyword("on");return!D&&this.peek(p.NAME)?{kind:L.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(f)}:{kind:L.INLINE_FRAGMENT,typeCondition:D?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(f)}},a.parseFragmentDefinition=function(){var f,D=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(f=this._options)||void 0===f?void 0:f.experimentalFragmentVariables)?{kind:L.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(D)}:{kind:L.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(D)}},a.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},a.parseValueLiteral=function(f){var D=this._lexer.token;switch(D.kind){case p.BRACKET_L:return this.parseList(f);case p.BRACE_L:return this.parseObject(f);case p.INT:return this._lexer.advance(),{kind:L.INT,value:D.value,loc:this.loc(D)};case p.FLOAT:return this._lexer.advance(),{kind:L.FLOAT,value:D.value,loc:this.loc(D)};case p.STRING:case p.BLOCK_STRING:return this.parseStringLiteral();case p.NAME:switch(this._lexer.advance(),D.value){case"true":return{kind:L.BOOLEAN,value:!0,loc:this.loc(D)};case"false":return{kind:L.BOOLEAN,value:!1,loc:this.loc(D)};case"null":return{kind:L.NULL,loc:this.loc(D)};default:return{kind:L.ENUM,value:D.value,loc:this.loc(D)}}case p.DOLLAR:if(!f)return this.parseVariable()}throw this.unexpected()},a.parseStringLiteral=function(){var f=this._lexer.token;return this._lexer.advance(),{kind:L.STRING,value:f.value,block:f.kind===p.BLOCK_STRING,loc:this.loc(f)}},a.parseList=function(f){var D=this,S=this._lexer.token;return{kind:L.LIST,values:this.any(p.BRACKET_L,function(){return D.parseValueLiteral(f)},p.BRACKET_R),loc:this.loc(S)}},a.parseObject=function(f){var D=this,S=this._lexer.token;return{kind:L.OBJECT,fields:this.any(p.BRACE_L,function(){return D.parseObjectField(f)},p.BRACE_R),loc:this.loc(S)}},a.parseObjectField=function(f){var D=this._lexer.token,S=this.parseName();return this.expectToken(p.COLON),{kind:L.OBJECT_FIELD,name:S,value:this.parseValueLiteral(f),loc:this.loc(D)}},a.parseDirectives=function(f){for(var D=[];this.peek(p.AT);)D.push(this.parseDirective(f));return D},a.parseDirective=function(f){var D=this._lexer.token;return this.expectToken(p.AT),{kind:L.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(f),loc:this.loc(D)}},a.parseTypeReference=function(){var D,f=this._lexer.token;return this.expectOptionalToken(p.BRACKET_L)?(D=this.parseTypeReference(),this.expectToken(p.BRACKET_R),D={kind:L.LIST_TYPE,type:D,loc:this.loc(f)}):D=this.parseNamedType(),this.expectOptionalToken(p.BANG)?{kind:L.NON_NULL_TYPE,type:D,loc:this.loc(f)}:D},a.parseNamedType=function(){var f=this._lexer.token;return{kind:L.NAMED_TYPE,name:this.parseName(),loc:this.loc(f)}},a.parseTypeSystemDefinition=function(){var f=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(f.kind===p.NAME)switch(f.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(f)},a.peekDescription=function(){return this.peek(p.STRING)||this.peek(p.BLOCK_STRING)},a.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},a.parseSchemaDefinition=function(){var f=this._lexer.token,D=this.parseDescription();this.expectKeyword("schema");var S=this.parseDirectives(!0),Q=this.many(p.BRACE_L,this.parseOperationTypeDefinition,p.BRACE_R);return{kind:L.SCHEMA_DEFINITION,description:D,directives:S,operationTypes:Q,loc:this.loc(f)}},a.parseOperationTypeDefinition=function(){var f=this._lexer.token,D=this.parseOperationType();this.expectToken(p.COLON);var S=this.parseNamedType();return{kind:L.OPERATION_TYPE_DEFINITION,operation:D,type:S,loc:this.loc(f)}},a.parseScalarTypeDefinition=function(){var f=this._lexer.token,D=this.parseDescription();this.expectKeyword("scalar");var S=this.parseName(),Q=this.parseDirectives(!0);return{kind:L.SCALAR_TYPE_DEFINITION,description:D,name:S,directives:Q,loc:this.loc(f)}},a.parseObjectTypeDefinition=function(){var f=this._lexer.token,D=this.parseDescription();this.expectKeyword("type");var S=this.parseName(),Q=this.parseImplementsInterfaces(),j=this.parseDirectives(!0),ue=this.parseFieldsDefinition();return{kind:L.OBJECT_TYPE_DEFINITION,description:D,name:S,interfaces:Q,directives:j,fields:ue,loc:this.loc(f)}},a.parseImplementsInterfaces=function(){var f;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(f=this._options)||void 0===f?void 0:f.allowLegacySDLImplementsInterfaces)){var D=[];this.expectOptionalToken(p.AMP);do{D.push(this.parseNamedType())}while(this.expectOptionalToken(p.AMP)||this.peek(p.NAME));return D}return this.delimitedMany(p.AMP,this.parseNamedType)},a.parseFieldsDefinition=function(){var f;return!0===(null===(f=this._options)||void 0===f?void 0:f.allowLegacySDLEmptyFields)&&this.peek(p.BRACE_L)&&this._lexer.lookahead().kind===p.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(p.BRACE_L,this.parseFieldDefinition,p.BRACE_R)},a.parseFieldDefinition=function(){var f=this._lexer.token,D=this.parseDescription(),S=this.parseName(),Q=this.parseArgumentDefs();this.expectToken(p.COLON);var j=this.parseTypeReference(),ue=this.parseDirectives(!0);return{kind:L.FIELD_DEFINITION,description:D,name:S,arguments:Q,type:j,directives:ue,loc:this.loc(f)}},a.parseArgumentDefs=function(){return this.optionalMany(p.PAREN_L,this.parseInputValueDef,p.PAREN_R)},a.parseInputValueDef=function(){var f=this._lexer.token,D=this.parseDescription(),S=this.parseName();this.expectToken(p.COLON);var j,Q=this.parseTypeReference();this.expectOptionalToken(p.EQUALS)&&(j=this.parseValueLiteral(!0));var ue=this.parseDirectives(!0);return{kind:L.INPUT_VALUE_DEFINITION,description:D,name:S,type:Q,defaultValue:j,directives:ue,loc:this.loc(f)}},a.parseInterfaceTypeDefinition=function(){var f=this._lexer.token,D=this.parseDescription();this.expectKeyword("interface");var S=this.parseName(),Q=this.parseImplementsInterfaces(),j=this.parseDirectives(!0),ue=this.parseFieldsDefinition();return{kind:L.INTERFACE_TYPE_DEFINITION,description:D,name:S,interfaces:Q,directives:j,fields:ue,loc:this.loc(f)}},a.parseUnionTypeDefinition=function(){var f=this._lexer.token,D=this.parseDescription();this.expectKeyword("union");var S=this.parseName(),Q=this.parseDirectives(!0),j=this.parseUnionMemberTypes();return{kind:L.UNION_TYPE_DEFINITION,description:D,name:S,directives:Q,types:j,loc:this.loc(f)}},a.parseUnionMemberTypes=function(){return this.expectOptionalToken(p.EQUALS)?this.delimitedMany(p.PIPE,this.parseNamedType):[]},a.parseEnumTypeDefinition=function(){var f=this._lexer.token,D=this.parseDescription();this.expectKeyword("enum");var S=this.parseName(),Q=this.parseDirectives(!0),j=this.parseEnumValuesDefinition();return{kind:L.ENUM_TYPE_DEFINITION,description:D,name:S,directives:Q,values:j,loc:this.loc(f)}},a.parseEnumValuesDefinition=function(){return this.optionalMany(p.BRACE_L,this.parseEnumValueDefinition,p.BRACE_R)},a.parseEnumValueDefinition=function(){var f=this._lexer.token,D=this.parseDescription(),S=this.parseName(),Q=this.parseDirectives(!0);return{kind:L.ENUM_VALUE_DEFINITION,description:D,name:S,directives:Q,loc:this.loc(f)}},a.parseInputObjectTypeDefinition=function(){var f=this._lexer.token,D=this.parseDescription();this.expectKeyword("input");var S=this.parseName(),Q=this.parseDirectives(!0),j=this.parseInputFieldsDefinition();return{kind:L.INPUT_OBJECT_TYPE_DEFINITION,description:D,name:S,directives:Q,fields:j,loc:this.loc(f)}},a.parseInputFieldsDefinition=function(){return this.optionalMany(p.BRACE_L,this.parseInputValueDef,p.BRACE_R)},a.parseTypeSystemExtension=function(){var f=this._lexer.lookahead();if(f.kind===p.NAME)switch(f.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(f)},a.parseSchemaExtension=function(){var f=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var D=this.parseDirectives(!0),S=this.optionalMany(p.BRACE_L,this.parseOperationTypeDefinition,p.BRACE_R);if(0===D.length&&0===S.length)throw this.unexpected();return{kind:L.SCHEMA_EXTENSION,directives:D,operationTypes:S,loc:this.loc(f)}},a.parseScalarTypeExtension=function(){var f=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var D=this.parseName(),S=this.parseDirectives(!0);if(0===S.length)throw this.unexpected();return{kind:L.SCALAR_TYPE_EXTENSION,name:D,directives:S,loc:this.loc(f)}},a.parseObjectTypeExtension=function(){var f=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var D=this.parseName(),S=this.parseImplementsInterfaces(),Q=this.parseDirectives(!0),j=this.parseFieldsDefinition();if(0===S.length&&0===Q.length&&0===j.length)throw this.unexpected();return{kind:L.OBJECT_TYPE_EXTENSION,name:D,interfaces:S,directives:Q,fields:j,loc:this.loc(f)}},a.parseInterfaceTypeExtension=function(){var f=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var D=this.parseName(),S=this.parseImplementsInterfaces(),Q=this.parseDirectives(!0),j=this.parseFieldsDefinition();if(0===S.length&&0===Q.length&&0===j.length)throw this.unexpected();return{kind:L.INTERFACE_TYPE_EXTENSION,name:D,interfaces:S,directives:Q,fields:j,loc:this.loc(f)}},a.parseUnionTypeExtension=function(){var f=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var D=this.parseName(),S=this.parseDirectives(!0),Q=this.parseUnionMemberTypes();if(0===S.length&&0===Q.length)throw this.unexpected();return{kind:L.UNION_TYPE_EXTENSION,name:D,directives:S,types:Q,loc:this.loc(f)}},a.parseEnumTypeExtension=function(){var f=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var D=this.parseName(),S=this.parseDirectives(!0),Q=this.parseEnumValuesDefinition();if(0===S.length&&0===Q.length)throw this.unexpected();return{kind:L.ENUM_TYPE_EXTENSION,name:D,directives:S,values:Q,loc:this.loc(f)}},a.parseInputObjectTypeExtension=function(){var f=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var D=this.parseName(),S=this.parseDirectives(!0),Q=this.parseInputFieldsDefinition();if(0===S.length&&0===Q.length)throw this.unexpected();return{kind:L.INPUT_OBJECT_TYPE_EXTENSION,name:D,directives:S,fields:Q,loc:this.loc(f)}},a.parseDirectiveDefinition=function(){var f=this._lexer.token,D=this.parseDescription();this.expectKeyword("directive"),this.expectToken(p.AT);var S=this.parseName(),Q=this.parseArgumentDefs(),j=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var ue=this.parseDirectiveLocations();return{kind:L.DIRECTIVE_DEFINITION,description:D,name:S,arguments:Q,repeatable:j,locations:ue,loc:this.loc(f)}},a.parseDirectiveLocations=function(){return this.delimitedMany(p.PIPE,this.parseDirectiveLocation)},a.parseDirectiveLocation=function(){var f=this._lexer.token,D=this.parseName();if(void 0!==k[D.value])return D;throw this.unexpected(f)},a.loc=function(f){var D;if(!0!==(null===(D=this._options)||void 0===D?void 0:D.noLocation))return new B.Ye(f,this._lexer.lastToken,this._lexer.source)},a.peek=function(f){return this._lexer.token.kind===f},a.expectToken=function(f){var D=this._lexer.token;if(D.kind===f)return this._lexer.advance(),D;throw P(this._lexer.source,D.start,"Expected ".concat(U(f),", found ").concat(Ae(D),"."))},a.expectOptionalToken=function(f){var D=this._lexer.token;if(D.kind===f)return this._lexer.advance(),D},a.expectKeyword=function(f){var D=this._lexer.token;if(D.kind!==p.NAME||D.value!==f)throw P(this._lexer.source,D.start,'Expected "'.concat(f,'", found ').concat(Ae(D),"."));this._lexer.advance()},a.expectOptionalKeyword=function(f){var D=this._lexer.token;return D.kind===p.NAME&&D.value===f&&(this._lexer.advance(),!0)},a.unexpected=function(f){var D=null!=f?f:this._lexer.token;return P(this._lexer.source,D.start,"Unexpected ".concat(Ae(D),"."))},a.any=function(f,D,S){this.expectToken(f);for(var Q=[];!this.expectOptionalToken(S);)Q.push(D.call(this));return Q},a.optionalMany=function(f,D,S){if(this.expectOptionalToken(f)){var Q=[];do{Q.push(D.call(this))}while(!this.expectOptionalToken(S));return Q}return[]},a.many=function(f,D,S){this.expectToken(f);var Q=[];do{Q.push(D.call(this))}while(!this.expectOptionalToken(S));return Q},a.delimitedMany=function(f,D){this.expectOptionalToken(f);var S=[];do{S.push(D.call(this))}while(this.expectOptionalToken(f));return S},e}();function Ae(e){var a=e.value;return U(e.kind)+(null!=a?' "'.concat(a,'"'):"")}function U(e){return function se(e){return e===p.BANG||e===p.DOLLAR||e===p.AMP||e===p.PAREN_L||e===p.PAREN_R||e===p.SPREAD||e===p.COLON||e===p.EQUALS||e===p.AT||e===p.BRACKET_L||e===p.BRACKET_R||e===p.BRACE_L||e===p.PIPE||e===p.BRACE_R}(e)?'"'.concat(e,'"'):e}var _e=new Map,W=new Map,Se=!0,be=!1;function Ge(e){return e.replace(/[\s,]+/g," ").trim()}function Ve(e){var a=Ge(e);if(!_e.has(a)){var r=function Pe(e,a){return new ge(e,a).parseDocument()}(e,{experimentalFragmentVariables:be,allowLegacyFragmentVariables:be});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");_e.set(a,function Ke(e){var a=new Set(e.definitions);a.forEach(function(f){f.loc&&delete f.loc,Object.keys(f).forEach(function(D){var S=f[D];S&&"object"==typeof S&&a.add(S)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(function nt(e){var a=new Set,r=[];return e.definitions.forEach(function(f){if("FragmentDefinition"===f.kind){var D=f.name.value,S=function tt(e){return Ge(e.source.body.substring(e.start,e.end))}(f.loc),Q=W.get(D);Q&&!Q.has(S)?Se&&console.warn("Warning: fragment with name "+D+" 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"):Q||W.set(D,Q=new Set),Q.add(S),a.has(S)||(a.add(S),r.push(f))}else r.push(f)}),(0,i.pi)((0,i.pi)({},e),{definitions:r})}(r)))}return _e.get(a)}function y(e){for(var a=[],r=1;r(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"}(Ce||(Ce={})),Ce))(),g=(()=>(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"}(g||(g={})),g))(),ve=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Supports="SUPPORTS"}(ve||(ve={})),ve))(),Ee=(()=>(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"}(Ee||(Ee={})),Ee))(),Re=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(Re||(Re={})),Re))(),$e=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NctId="NCT_ID",e.SourceCount="SOURCE_COUNT"}($e||($e={})),$e))(),Be=(()=>(function(e){e.Conflict="CONFLICT",e.Expired="EXPIRED",e.Missing="MISSING",e.Valid="VALID"}(Be||(Be={})),Be))(),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))(),Je=(()=>(function(e){e.Created="CREATED",e.LastModified="LAST_MODIFIED"}(Je||(Je={})),Je))(),qe=(()=>(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"}(qe||(qe={})),qe))(),rt=(()=>(function(e){e.Combination="COMBINATION",e.Sequential="SEQUENTIAL",e.Substitutes="SUBSTITUTES"}(rt||(rt={})),rt))(),ct=(()=>(function(e){e.AssertionCount="ASSERTION_COUNT",e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.Name="NAME",e.NcitId="NCIT_ID"}(ct||(ct={})),ct))(),Ze=(()=>(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"}(Ze||(Ze={})),Ze))(),ot=(()=>(function(e){e.Organization="ORGANIZATION",e.Subject="SUBJECT",e.Unscoped="UNSCOPED",e.User="USER"}(ot||(ot={})),ot))(),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))(),st=(()=>(function(e){e.DoesNotSupport="DOES_NOT_SUPPORT",e.Na="NA",e.Supports="SUPPORTS"}(st||(st={})),st))(),C=(()=>(function(e){e.A="A",e.B="B",e.C="C",e.D="D",e.E="E"}(C||(C={})),C))(),ee=(()=>(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"}(ee||(ee={})),ee))(),x=(()=>(function(e){e.Accepted="ACCEPTED",e.Rejected="REJECTED",e.Submitted="SUBMITTED"}(x||(x={})),x))(),pe=(()=>(function(e){e.Diagnostic="DIAGNOSTIC",e.Functional="FUNCTIONAL",e.Oncogenic="ONCOGENIC",e.Predictive="PREDICTIVE",e.Predisposing="PREDISPOSING",e.Prognostic="PROGNOSTIC"}(pe||(pe={})),pe))(),Ne=(()=>(function(e){e.Open="OPEN",e.Resolved="RESOLVED"}(Ne||(Ne={})),Ne))(),Fe=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(Fe||(Fe={})),Fe))(),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))(),_t=(()=>(function(e){e.Grch37="GRCH37",e.Grch38="GRCH38",e.Ncbi36="NCBI36"}(_t||(_t={})),_t))(),Ct=(()=>(function(e){e.Accepted="ACCEPTED",e.New="NEW",e.Rejected="REJECTED",e.Superseded="SUPERSEDED"}(Ct||(Ct={})),Ct))(),yt=(()=>(function(e){e.Assertion="ASSERTION",e.EvidenceItem="EVIDENCE_ITEM",e.Gene="GENE",e.Revision="REVISION",e.Variant="VARIANT",e.VariantGroup="VARIANT_GROUP"}(yt||(yt={})),yt))(),Tt=(()=>(function(e){e.Asc="ASC",e.Desc="DESC"}(Tt||(Tt={})),Tt))(),It=(()=>(function(e){e.Asco="ASCO",e.Pubmed="PUBMED"}(It||(It={})),It))(),Et=(()=>(function(e){e.Curated="CURATED",e.New="NEW",e.Rejected="REJECTED"}(Et||(Et={})),Et))(),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))(),St=(()=>(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"}(St||(St={})),St))(),Ot=(()=>(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"}(Ot||(Ot={})),Ot))(),Mt=(()=>(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"}(Mt||(Mt={})),Mt))(),At=(()=>(function(e){e.Admin="ADMIN",e.Curator="CURATOR",e.Editor="EDITOR"}(At||(At={})),At))(),Nt=(()=>(function(e){e.Id="ID",e.LastAction="LAST_ACTION",e.Name="NAME",e.Role="ROLE"}(Nt||(Nt={})),Nt))(),at=(()=>(function(e){e.All="ALL",e.WithAccepted="WITH_ACCEPTED",e.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",e.WithSubmitted="WITH_SUBMITTED"}(at||(at={})),at))(),Gt=(()=>(function(e){e.EvidenceItemCount="EVIDENCE_ITEM_COUNT",e.GeneNames="GENE_NAMES",e.Name="NAME",e.VariantCount="VARIANT_COUNT",e.VariantNames="VARIANT_NAMES"}(Gt||(Gt={})),Gt))(),xt=(()=>(function(e){e.CoordinateEnd="COORDINATE_END",e.CoordinateStart="COORDINATE_START",e.Name="NAME"}(xt||(xt={})),xt))(),Lt=(()=>(function(e){e.CommonGermline="COMMON_GERMLINE",e.Na="NA",e.RareGermline="RARE_GERMLINE",e.Somatic="SOMATIC",e.Unknown="UNKNOWN"}(Lt||(Lt={})),Lt))(),Pt=(()=>(function(e){e.Name="NAME",e.Soid="SOID",e.VariantCount="VARIANT_COUNT"}(Pt||(Pt={})),Pt))(),Ft=(()=>(function(e){e.AssertionCount="assertionCount",e.DiseaseName="diseaseName",e.DrugName="drugName",e.EntrezSymbol="entrezSymbol",e.EvidenceItemCount="evidenceItemCount",e.EvidenceScore="evidenceScore",e.VariantName="variantName"}(Ft||(Ft={})),Ft))();const Wt=y` + fragment assertionPopover on Assertion { + id + name + status + summary + assertionType + assertionDirection + clinicalSignificance + variantOrigin + ampLevel + acmgCodes { + code + description + } + nccnGuideline { + id + name + } + regulatoryApproval + regulatoryApprovalLastUpdated + fdaCompanionTest + fdaCompanionTestLastUpdated + drugs { + id + name + link + } + drugInteractionType + disease { + id + name + link + } + phenotypes { + id + name + link + } + gene { + id + name + link + } + variant { + id + name + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,kt=y` + fragment AssertionBrowseTableRowFields on Assertion { + id + name + link + gene { + id + name + link + } + variant { + id + name + link + } + disease { + id + name + link + } + drugs { + id + name + link + } + phenotypes @include(if: $cardView) { + id + name + link + } + drugInteractionType + summary + assertionType + assertionDirection + clinicalSignificance + ampLevel + acmgCodes @include(if: $cardView) { + code + } + fdaCompanionTest @include(if: $cardView) + regulatoryApproval @include(if: $cardView) + regulatoryApprovalLastUpdated @include(if: $cardView) + nccnGuideline @include(if: $cardView) { + id + name + } + variantOrigin @include(if: $cardView) + evidenceItemsCount + status +} + `,Jt=y` + fragment clinicalTrialPopover on BrowseClinicalTrial { + id + name + nctId + url + sourceCount + evidenceCount +} + `,Qt=y` + fragment commentListNode on Comment { + id + title + comment + createdAt + commenter { + id + username + displayName + name + role + profileImagePath(size: 32) + organizations { + id + name + profileImagePath(size: 32) + } + } + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + status + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } +} + `,jt=y` + fragment commentPopover on Comment { + id + name + createdAt + title + comment + commenter { + id + displayName + role + profileImagePath(size: 32) + } + commentable { + id + name + link + __typename + } +} + `,Kt=y` + fragment BrowseDiseaseRowFields on BrowseDisease { + id + name + doid + diseaseUrl + geneNames + assertionCount + evidenceItemCount + variantCount + geneCount + link +} + `,Ht=y` + fragment DrugBrowseTableRowFields on BrowseDrug { + id + name + ncitId + drugUrl + assertionCount + evidenceCount + link +} + `,Zt=y` + fragment eventFeedNode on Event { + id + action + createdAt + organization { + id + name + profileImagePath(size: 32) + } + originatingUser { + id + username + displayName + role + profileImagePath(size: 32) + } + subject { + name + id + link + ... on Source { + citation + sourceType + } + ... on EvidenceItem { + status + } + ... on Assertion { + status + } + __typename + } + originatingObject { + id + name + link + __typename + ... on Revision { + id + } + ... on Comment { + id + } + ... on Flag { + id + } + } +} + `,m=y` + fragment eventFeed on EventConnection { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + eventTypes @include(if: $showFilters) + unfilteredCount + uniqueParticipants @include(if: $showFilters) { + id + displayName + role + profileImagePath(size: 32) + } + participatingOrganizations @include(if: $showFilters) { + id + name + profileImagePath(size: 32) + } + edges { + cursor + node { + ...eventFeedNode + } + } +} + ${Zt}`,oe=y` + fragment evidencePopover on EvidenceItem { + id + name + status + description + evidenceLevel + evidenceType + evidenceDirection + clinicalSignificance + variantOrigin + drugs { + id + name + link + } + drugInteractionType + disease { + id + name + link + } + phenotypes { + id + name + link + } + evidenceRating + gene { + id + name + link + } + variant { + id + name + link + } + source { + id + citation + sourceType + displayType + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,d=y` + fragment EvidenceGridFields on EvidenceItem { + id + name + link + disease { + id + name + link + } + drugs { + id + name + link + } + gene { + id + name + link + } + variant { + id + name + link + } + phenotypes @include(if: $cardView) { + id + name + link + } + source @include(if: $cardView) { + id + citation + citationId + sourceType + sourceUrl + clinicalTrials { + nctId + id + } + link + } + assertions @include(if: $cardView) { + id + name + link + } + status + drugInteractionType + description + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + clinicalSignificance + variantOrigin +} + `,de=y` + fragment flagList on FlagConnection { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + totalCount + unfilteredCountForSubject + uniqueFlaggingUsers { + username + id + profileImagePath(size: 32) + } + uniqueResolvingUsers { + username + id + profileImagePath(size: 32) + } + edges { + node { + ...flag + } + } +} + ${y` + fragment flag on Flag { + id + state + createdAt + resolvedAt + flaggable { + id + name + link + } + flaggingUser { + id + displayName + role + profileImagePath(size: 32) + } + resolvingUser { + id + displayName + role + profileImagePath(size: 32) + } + openComment { + __typename + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } + } + resolutionComment { + __typename + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } + } +} + `}`,Me=y` + fragment flagPopover on Flag { + id + name + state + flaggingUser { + id + displayName + role + } + flaggable { + id + link + name + } + createdAt + openComment { + comment + } +} + `,et=y` + fragment genePopover on Gene { + id + name + officialName + geneAliases + variants { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,Bt=y` + fragment QuicksearchResult on SearchResult { + id + resultType + name + matchingText +} + `,an=y` + fragment orgPopover on Organization { + id + profileImagePath(size: 64) + name + description + url +} + `,cn=y` + fragment OrganizationBrowseTableRowFields on Organization { + id + name + description @include(if: $cardView) + profileImagePath(size: 256) @include(if: $cardView) + url + memberCount + eventCount + subGroups { + name + id + } + mostRecentEvent { + createdAt + } + orgStatsHash @include(if: $cardView) { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } +} + `,ln=y` + fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { + id + name + hpoId + url + assertionCount + evidenceCount + link +} + `,un=y` + fragment validationError on FieldValidationError { + fieldName + error +} + `,dn=y` + fragment revisionPopover on Revision { + id + name + link + status + revisor { + id + displayName + role + } + subject { + id + link + name + } + createdAt + linkoutData { + name + } +} + `,pn=y` + fragment revision on Revision { + id + revisionsetId + createdAt + resolvedAt + fieldName + currentValue + suggestedValue + linkoutData { + name + diffValue { + ... on ObjectFieldDiff { + currentObjects { + id + displayName + displayType + entityType + link + deleted + } + addedObjects { + id + displayName + displayType + entityType + link + deleted + } + removedObjects { + id + displayName + displayType + entityType + link + deleted + } + keptObjects { + id + displayName + displayType + entityType + link + deleted + } + suggestedObjects { + id + displayName + displayType + entityType + link + deleted + } + } + ... on ScalarFieldDiff { + left + right + } + } + } + revisor { + id + displayName + role + } + resolver { + id + displayName + role + } + creationComment { + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } + } + resolutionComment { + parsedComment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } + } + } + status +} + `,mn=y` + fragment ContributorFields on ContributingUser { + user { + id + profileImagePath(size: 12) + } + uniqueActions { + action + count + } + lastActionDate + totalActionCount +} + `,gn=y` + fragment subscriptionId on Subscription { + id + __typename +} + `,fn=y` + fragment TimepointCount on TimePointCounts { + allTime + newThisMonth + newThisWeek + newThisYear +} + `,hn=y` + fragment BrowseSourceSuggestionRowFields on SourceSuggestion { + id + gene { + id + name + link + } + variant { + id + name + link + } + disease { + id + name + link + } + source { + id + citation + citationId + sourceType + sourceUrl + displayType + } + user { + id + displayName + role + profileImagePath(size: 32) + } + initialComment + status + reason +} + `,vn=y` + fragment sourcePopover on SourcePopover { + id + name + evidenceItemCount + citation + citationId + displayType + sourceUrl + clinicalTrials { + id + nctId + link + } +} + `,zn=y` + fragment BrowseSourceRowFields on BrowseSource { + id + authors + citationId + evidenceItemCount + journal + name + publicationYear + sourceType + citation + displayType + link +} + `,_n=y` + fragment popoverUser on User { + id + profileImagePath(size: 64) + displayName + bio + role + organizations { + id + name + } +} + `,Cn=y` + fragment UserBrowseTableRowFields on User { + id + name + displayName + organizations { + id + name + } + role + statsHash { + submittedEvidenceItems + revisions + } + mostRecentActionTimestamp +} + `,yn=y` + fragment variantGroupPopoverFields on VariantGroup { + id + name + description + variants { + edges { + node { + id + name + link + } + } + } + sources { + id + citation + sourceType + link + } +} + `,Tn=y` + fragment BrowseVariantGroupRowFields on BrowseVariantGroup { + id + name + link + geneNames + variantNames + variantCount + evidenceItemCount +} + `,In=y` + fragment variantTypePopover on VariantTypePopover { + id + name + url + soid + variantCount +} + `,En=y` + fragment VariantTypeBrowseTableRowFields on BrowseVariantType { + id + name + soid + url + variantCount + link +} + `,Dn=y` + fragment variantPopoverFields on Variant { + id + name + description + variantAliases + alleleRegistryId + evidenceItems { + totalCount + } + gene { + id + name + link + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,Sn=y` + fragment menuVariant on Variant { + id + name + link +} + `,On=y` + fragment RevisableAssertionFields on Assertion { + id + summary + description + variant { + id + name + link + } + gene { + id + name + link + } + variantOrigin + clinicalSignificance + disease { + id + doid + name + displayName + link + } + drugs { + id + ncitId + name + link + } + drugInteractionType + assertionDirection + assertionType + phenotypes { + id + hpoId + name + } + ampLevel + acmgCodes { + id + code + description + } + nccnGuideline { + id + name + } + nccnGuidelineVersion + regulatoryApproval + fdaCompanionTest + evidenceItems { + id + name + link + status + } +} + `,Mn=y` + fragment previewComment on CommentBodySegment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + status + __typename + } + ... on CommentTextSegment { + text + __typename + } + ... on User { + id + displayName + role + __typename + } +} + `,An=y` + fragment AddDiseaseFields on AddDiseasePayload { + new + disease { + id + name + displayName + } +} + `,Nn=y` + fragment AddDrugFields on AddDrugPayload { + new + drug { + id + ncitId + name + } +} + `,xn=y` + fragment GeneTypeaheadFields on Gene { + id + name + geneAliases + entrezId +} + `,tn=y` + fragment SourceTypeaheadResult on Source { + id + name + citation + citationId + sourceType +} + `,nn=y` + fragment SourceStubFields on SourceStub { + id + citationId + sourceType +} + `,Ln=y` + fragment SourceTypeaheadFields on Source { + id + name + citation + citationId + sourceType +} + `,on=y` + fragment VariantTypeaheadFields on Variant { + id + name +} + `,Pn=y` + fragment AddVariantFields on AddVariantPayload { + clientMutationId + new + variant { + id + name + } +} + `,Fn=(y` + fragment VariantSelectFields on Variant { + id + name +} + `,y` + fragment RevisableEvidenceFields on EvidenceItem { + id + variant { + id + name + link + } + variantOrigin + description + clinicalSignificance + disease { + id + doid + name + displayName + } + drugs { + id + ncitId + name + } + drugInteractionType + evidenceDirection + evidenceLevel + evidenceType + phenotypes { + id + hpoId + name + } + evidenceRating + source { + id + sourceType + citationId + citation + } +} + `),bn=y` + fragment SubmittableEvidenceFields on EvidenceItem { + id + description + variantOrigin + evidenceType + clinicalSignificance + evidenceLevel + evidenceDirection + evidenceRating + drugInteractionType + gene { + id + name + } + variant { + id + name + } + source { + id + citation + sourceType + } + phenotypes { + id + name + } + drugs { + id + name + } + disease { + id + name + } +} + `,Rn=y` + fragment RevisableGeneFields on Gene { + id + description + sources { + id + sourceType + citation + citationId + } +} + `,$n=y` + fragment SubmittableVariantGroupFields on VariantGroup { + id + name + description + variants(first: 50) { + nodes { + id + name + link + } + } + sources { + id + link + citation + sourceType + } +} + `,Bn=y` + fragment RevisableVariantFields on Variant { + id + name + description + sources { + id + sourceType + citation + citationId + } + gene { + id + name + } + variantAliases + alleleRegistryId + clinvarIds + ensemblVersion + hgvsDescriptions + referenceBuild + variantTypes { + id + name + soid + } + primaryCoordinates { + ...CoordinateFields + } + secondaryCoordinates { + ...CoordinateFields + } + referenceBases + variantBases +} + ${y` + fragment CoordinateFields on Coordinate { + chromosome + representativeTranscript + start + stop +} + `}`,wn=y` + fragment AssertionDetailFields on Assertion { + id + name + status + gene { + id + name + link + } + variant { + id + name + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,Un=y` + fragment AssertionSummaryFields on Assertion { + id + name + summary + description + status + variantOrigin + disease { + id + name + link + } + gene { + id + name + link + } + variant { + id + name + alleleRegistryId + } + assertionType + assertionDirection + clinicalSignificance + drugs { + ncitId + name + link + id + } + phenotypes { + id + name + link + } + drugInteractionType + ampLevel + acmgCodes { + code + description + } + nccnGuideline { + id + name + } + nccnGuidelineVersion + regulatoryApproval + regulatoryApprovalLastUpdated + fdaCompanionTest + fdaCompanionTestLastUpdated + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + acceptanceEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + submissionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + rejectionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + `,Qn=y` + fragment EvidenceDetailFields on EvidenceItem { + id + name + status + variant { + id + name + link + } + gene { + id + name + link + } + assertions { + id + name + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,Zn=y` + fragment EvidenceSummaryFields on EvidenceItem { + id + name + description + status + evidenceLevel + evidenceType + evidenceDirection + clinicalSignificance + variantOrigin + drugs { + id + name + link + } + drugInteractionType + disease { + id + name + link + } + phenotypes { + id + name + link + } + source { + id + citation + citationId + sourceType + displayType + sourceUrl + ascoAbstractId + link + clinicalTrials { + nctId + id + } + } + evidenceRating + gene { + id + name + link + } + variant { + id + name + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + acceptanceEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + submissionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + rejectionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + `,Vn=y` + fragment GeneDetailFields on Gene { + id + name + officialName + entrezId + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,Yn=y` + fragment GeneSummaryFields on Gene { + description + entrezId + geneAliases + id + name + officialName + sources { + id + citation + sourceUrl + displayType + sourceType + } + variants { + edges { + node { + id + name + description + } + } + } + myGeneInfoDetails + lastSubmittedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + lastAcceptedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + `,Wn=y` + fragment OrganizationDetailFields on Organization { + id + name + url + description + profileImagePath(size: 256) + subGroups { + id + name + profileImagePath(size: 12) + } + orgStatsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + orgAndSuborgsStatsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } +} + `,kn=y` + fragment OrganizationGroupsFields on Organization { + id + name + description + profileImagePath(size: 12) + orgStatsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + orgAndSuborgsStatsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + subGroups { + id + name + profileImagePath(size: 12) + } +} + `,Jn=y` + fragment OrganizationMembersFields on User { + id + name + displayName + username + profileImagePath(size: 32) + role + url + areaOfExpertise + orcid + twitterHandle + facebookProfile + linkedinProfile + organizations { + id + name + } +} + `,jn=y` + fragment Release on DataRelease { + name + geneTsv { + filename + path + } + variantTsv { + filename + path + } + variantGroupTsv { + filename + path + } + evidenceTsv { + filename + path + } + assertionTsv { + filename + path + } + acceptedVariantsVcf { + filename + path + } + acceptedAndSubmittedVariantsVcf { + filename + path + } +} + `,Kn=y` + fragment SourceDetailFields on Source { + id + citation + sourceUrl + displayType + citationId +} + `,Hn=y` + fragment SourceSummaryFields on Source { + id + displayType + title + abstract + publicationDate + citationId + fullJournalTitle + pmcId + authorString + clinicalTrials { + nctId + id + } +} + `,Xn=y` + fragment UserDetailFields on User { + id + name + displayName + username + email + profileImagePath(size: 128) + role + url + bio + areaOfExpertise + orcid + twitterHandle + facebookProfile + linkedinProfile + organizations { + id + name + } + country { + id + name + } + statsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + mostRecentConflictOfInterestStatement { + id + coiPresent + coiStatement + coiStatus + createdAt + expiresAt + } +} + `,qn=y` + fragment notificationOrganization on Organization { + id + name +} + `,eo=y` + fragment notificationOriginatingUsers on User { + id + displayName +} + `,to=y` + fragment notificationFeedSubjects on EventSubjectWithCount { + subject { + id + __typename + name + } + occuranceCount +} + `,rn=y` + fragment notificationNode on Notification { + id + type + event { + ...eventFeedNode + } + seen + subscription { + id + subscribable { + id + name + __typename + } + } +} + ${Zt}`,no=y` + fragment subscribable on Subscribable { + id + entityType + __typename +} + `,oo=y` + fragment VariantGroupDetailFields on VariantGroup { + id + name + variants { + totalCount + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,io=y` + fragment VariantGroupSummaryFields on VariantGroup { + id + name + description + sources { + id + link + citation + sourceUrl + displayType + sourceType + } + variants { + edges { + node { + id + name + link + description + } + } + } +} + `,ro=y` + fragment VariantDetailFields on Variant { + id + name + gene { + id + name + } + variantAliases + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,ao=y` + fragment VariantSummaryFields on Variant { + id + name + description + gene { + id + name + } + sources { + id + citation + sourceUrl + displayType + sourceType + } + variantAliases + alleleRegistryId + variantTypes { + id + link + soid + name + } + hgvsDescriptions + clinvarIds + evidenceScore + referenceBuild + ensemblVersion + primaryCoordinates { + representativeTranscript + chromosome + start + stop + } + secondaryCoordinates { + representativeTranscript + chromosome + start + stop + } + referenceBases + variantBases + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + myVariantInfo { + ...MyVariantInfoFields + } + lastSubmittedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + lastAcceptedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${y` + fragment MyVariantInfoFields on MyVariantInfo { + myVariantInfoId + caddConsequence + caddDetail + caddScore + clinvarClinicalSignificance + clinvarHgvsCoding + clinvarHgvsGenomic + clinvarHgvsNonCoding + clinvarHgvsProtein + clinvarId + clinvarOmim + cosmicId + dbnsfpInterproDomain + dbsnpRsid + eglClass + eglHgvs + eglProtein + eglTranscript + exacAlleleCount + exacAlleleFrequency + exacAlleleNumber + fathmmMklPrediction + fathmmMklScore + fathmmPrediction + fathmmScore + fitconsScore + gerp + gnomadExomeAlleleCount + gnomadExomeAlleleFrequency + gnomadExomeAlleleNumber + gnomadExomeFilter + gnomadGenomeAlleleCount + gnomadGenomeAlleleFrequency + gnomadGenomeAlleleNumber + gnomadGenomeFilter + lrtPrediction + lrtScore + metalrPrediction + metalrScore + metasvmPrediction + metasvmScore + mutationassessorPrediction + mutationassessorScore + mutationtasterPrediction + mutationtasterScore + phastcons100way + phastcons30way + phyloP100way + phyloP30way + polyphen2HdivPrediction + polyphen2HdivScore + polyphen2HvarPrediction + polyphen2HvarScore + proveanPrediction + proveanScore + revelScore + siftPrediction + siftScore + siphy + snpeffSnpEffect + snpeffSnpImpact +} + `}`,co=y` + query AssertionPopover($assertionId: Int!) { + assertion(id: $assertionId) { + ...assertionPopover + } +} + ${Wt}`;let lo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=co}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const uo=y` + query AssertionsBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $drugName: String, $id: Int, $summary: String, $assertionDirection: EvidenceDirection, $clinicalSignificance: EvidenceClinicalSignificance, $assertionType: EvidenceType, $variantId: Int, $evidenceId: Int, $geneName: String, $variantName: String, $sortBy: AssertionSort, $ampLevel: AmpLevel, $organizationId: Int, $userId: Int, $phenotypeId: Int, $diseaseId: Int, $drugId: Int, $status: EvidenceStatus, $cardView: Boolean!) { + assertions( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + drugName: $drugName + id: $id + summary: $summary + assertionDirection: $assertionDirection + clinicalSignificance: $clinicalSignificance + assertionType: $assertionType + variantId: $variantId + sortBy: $sortBy + ampLevel: $ampLevel + geneName: $geneName + variantName: $variantName + evidenceId: $evidenceId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + drugId: $drugId + diseaseId: $diseaseId + status: $status + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...AssertionBrowseTableRowFields + } + } + } +} + ${kt}`;let po=(()=>{class e extends v.AE{constructor(r){super(r),this.document=uo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const mo=y` + query ClinicalTrialPopover($clinicalTrialId: Int!) { + clinicalTrials(id: $clinicalTrialId) { + edges { + node { + ...clinicalTrialPopover + } + } + } +} + ${Jt}`;let go=(()=>{class e extends v.AE{constructor(r){super(r),this.document=mo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fo=y` + query ClinicalTrialsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $nctId: String, $sortBy: ClinicalTrialSort) { + clinicalTrials( + first: $first + last: $last + before: $before + after: $after + name: $name + nctId: $nctId + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + id + name + nctId + evidenceCount + sourceCount + link + } + } + } +} + `;let ho=(()=>{class e extends v.AE{constructor(r){super(r),this.document=fo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vo=y` + query CommentList($first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $mentionedUserId: Int, $mentionedRole: UserRole, $mentionedEntity: TaggableEntityInput, $subject: CommentableInput, $sortBy: DateSort) { + comments( + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + mentionedUserId: $mentionedUserId + mentionedRole: $mentionedRole + mentionedEntity: $mentionedEntity + subject: $subject + sortBy: $sortBy + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + uniqueCommenters { + id + displayName + role + profileImagePath(size: 32) + } + mentionedUsers { + id + displayName + role + profileImagePath(size: 32) + } + mentionedRoles { + displayName + entityId + tagType + link + } + mentionedEntities { + displayName + entityId + tagType + link + } + unfilteredCountForSubject + edges { + cursor + node { + ...commentListNode + } + } + } +} + ${Qt}`;let zo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=vo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const _o=y` + query CommentPopover($commentId: Int!) { + comment(id: $commentId) { + ...commentPopover + } +} + ${jt}`;let Co=(()=>{class e extends v.AE{constructor(r){super(r),this.document=_o}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const yo=y` + query DiseasePopover($diseaseId: Int!) { + diseasePopover(id: $diseaseId) { + id + name + displayName + doid + diseaseUrl + diseaseAliases + assertionCount + evidenceItemCount + variantCount + link + } +} + `;let To=(()=>{class e extends v.AE{constructor(r){super(r),this.document=yo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Io=y` + query BrowseDiseases($first: Int, $last: Int, $before: String, $after: String, $sortBy: DiseasesSort, $name: String, $doid: String, $geneNames: String) { + browseDiseases( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + doid: $doid + geneNames: $geneNames + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseDiseaseRowFields + } + } + } +} + ${Kt}`;let Eo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Io}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Do=y` + query DrugPopover($drugId: Int!) { + drugPopover(id: $drugId) { + id + name + drugUrl + ncitId + drugAliases + assertionCount + evidenceItemCount + link + } +} + `;let So=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Do}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Oo=y` + query DrugsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $ncitId: String, $sortBy: DrugSort) { + drugs( + first: $first + last: $last + before: $before + after: $after + name: $name + ncitId: $ncitId + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...DrugBrowseTableRowFields + } + } + } +} + ${Ht}`;let Mo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Oo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ao=y` + query EventFeedCount($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode) { + events( + subject: $subject + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + organizationId: $organizationId + eventType: $eventType + mode: $mode + ) { + unfilteredCount + } +} + `;let No=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ao}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xo=y` + query EventFeed($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode, $showFilters: Boolean!) { + events( + subject: $subject + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + organizationId: $organizationId + eventType: $eventType + mode: $mode + ) { + ...eventFeed + } +} + ${m}`;let Lo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=xo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Po=y` + query EvidencePopover($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...evidencePopover + } +} + ${oe}`;let Fo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Po}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const bo=y` + query EvidenceBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $drugName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $clinicalSignificance: EvidenceClinicalSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $drugId: Int, $sourceId: Int, $clinicalTrialId: Int, $geneSymbol: String, $variantName: String, $status: EvidenceStatus, $cardView: Boolean!) { + evidenceItems( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + drugName: $drugName + id: $id + description: $description + evidenceLevel: $evidenceLevel + evidenceDirection: $evidenceDirection + clinicalSignificance: $clinicalSignificance + evidenceType: $evidenceType + evidenceRating: $rating + variantOrigin: $variantOrigin + variantId: $variantId + assertionId: $assertionId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + diseaseId: $diseaseId + drugId: $drugId + sourceId: $sourceId + clinicalTrialId: $clinicalTrialId + geneSymbol: $geneSymbol + variantName: $variantName + status: $status + sortBy: $sortBy + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...EvidenceGridFields + } + } + } +} + ${d}`;let Ro=(()=>{class e extends v.AE{constructor(r){super(r),this.document=bo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const $o=y` + query FlagList($flaggable: FlaggableInput, $flaggingUserId: Int, $resolvingUserId: Int, $state: FlagState, $sortBy: DateSort, $first: Int, $last: Int, $before: String, $after: String) { + flags( + flaggable: $flaggable + flaggingUserId: $flaggingUserId + resolvingUserId: $resolvingUserId + state: $state + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + ...flagList + } +} + ${de}`;let Go=(()=>{class e extends v.AE{constructor(r){super(r),this.document=$o}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Bo=y` + query FlagPopover($flagId: Int!) { + flag(id: $flagId) { + ...flagPopover + } +} + ${Me}`;let wo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Bo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Uo=y` + query GenePopover($geneId: Int!) { + gene(id: $geneId) { + ...genePopover + } +} + ${et}`;let Qo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Uo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Zo=y` + query BrowseGenes($entrezSymbol: String, $drugName: String, $geneAlias: String, $diseaseName: String, $sortBy: GenesSort, $first: Int, $last: Int, $before: String, $after: String) { + browseGenes( + entrezSymbol: $entrezSymbol + drugName: $drugName + geneAlias: $geneAlias + diseaseName: $diseaseName + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + edges { + cursor + node { + id + entrezId + name + link + geneAliases + diseases { + name + id + link + } + drugs { + name + id + link + } + variantCount + evidenceItemCount + assertionCount + } + } + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + totalCount + filteredCount + pageCount + } +} + `;let Vo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Zo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yo=y` + query Quicksearch($query: String!) { + search(query: $query) { + ...QuicksearchResult + } +} + ${Bt}`;let Wo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Yo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ko=y` + query OrgPopover($orgId: Int!) { + organization(id: $orgId) { + ...orgPopover + } +} + ${an}`;let Jo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ko}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jo=y` + query OrganizationsBrowse($first: Int, $last: Int, $before: String, $after: String, $id: Int, $orgName: String, $sortBy: OrganizationSort, $cardView: Boolean!) { + organizations( + first: $first + last: $last + before: $before + after: $after + name: $orgName + id: $id + sortBy: $sortBy + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...OrganizationBrowseTableRowFields + } + } + } +} + ${cn}`;let Ko=(()=>{class e extends v.AE{constructor(r){super(r),this.document=jo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ho=y` + query PhenotypePopover($phenotypeId: Int!) { + phenotypePopover(id: $phenotypeId) { + id + name + url + hpoId + assertionCount + evidenceItemCount + link + } +} + `;let Xo=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ho}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qo=y` + query PhenotypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $hpoId: String, $sortBy: PhenotypeSort) { + phenotypes( + first: $first + last: $last + before: $before + after: $after + name: $name + hpoId: $hpoId + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...PhenotypeBrowseTableRowFields + } + } + } +} + ${ln}`;let ei=(()=>{class e extends v.AE{constructor(r){super(r),this.document=qo}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ti=y` + mutation AcceptRevision($input: AcceptRevisionsInput!) { + acceptRevisions(input: $input) { + revisions { + id + __typename + } + } +} + `;let ni=(()=>{class e extends v.mm{constructor(r){super(r),this.document=ti}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const oi=y` + mutation RejectRevision($input: RejectRevisionsInput!) { + rejectRevisions(input: $input) { + revisions { + id + __typename + } + } +} + `;let ii=(()=>{class e extends v.mm{constructor(r){super(r),this.document=oi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ri=y` + query ValidateRevisionsForAcceptance($ids: [Int!]!) { + validateRevisionsForAcceptance(revisionIds: $ids) { + genericErrors + validationErrors { + ...validationError + } + } +} + ${un}`;let si=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ri}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ai=y` + query RevisionPopover($revisionId: Int!) { + revision(id: $revisionId) { + ...revisionPopover + } +} + ${dn}`;let ci=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ai}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const li=y` + query Revisions($subject: ModeratedInput, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int, $resolvingUserId: Int, $revisionsetId: String, $status: RevisionStatus) { + revisions( + first: $first + last: $last + before: $before + after: $after + fieldName: $fieldName + originatingUserId: $originatingUserId + resolvingUserId: $resolvingUserId + subject: $subject + status: $status + revisionsetId: $revisionsetId + ) { + totalCount + unfilteredCountForSubject + uniqueRevisors { + username + id + profileImagePath(size: 32) + } + uniqueResolvers { + username + id + profileImagePath(size: 32) + } + revisedFieldNames { + name + displayName + } + pageInfo { + hasNextPage + hasPreviousPage + endCursor + startCursor + } + edges { + node { + ...revision + } + } + } +} + ${pn}`;let ui=(()=>{class e extends v.AE{constructor(r){super(r),this.document=li}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const di=y` + query ContributorAvatars($subscribable: SubscribableInput!) { + contributors(subscribable: $subscribable) { + editors { + ...ContributorFields + } + curators { + ...ContributorFields + } + } +} + ${mn}`;let pi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=di}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const mi=y` + query SubscriptionForEntity($subscribable: SubscribableInput!) { + subscriptionForEntity(subscribable: $subscribable) { + ...subscriptionId + } +} + ${gn}`;let gi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=mi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fi=y` + mutation ModerateEvidenceItem($input: ModerateEvidenceItemInput!) { + moderateEvidenceItem(input: $input) { + evidenceItem { + id + } + } +} + `;let hi=(()=>{class e extends v.mm{constructor(r){super(r),this.document=fi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vi=y` + mutation ModerateAssertion($input: ModerateAssertionInput!) { + moderateAssertion(input: $input) { + assertion { + id + } + } +} + `;let zi=(()=>{class e extends v.mm{constructor(r){super(r),this.document=vi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const _i=y` + query CivicStats { + timepointStats { + assertions { + ...TimepointCount + } + diseases { + ...TimepointCount + } + comments { + ...TimepointCount + } + drugs { + ...TimepointCount + } + evidenceItems { + ...TimepointCount + } + genes { + ...TimepointCount + } + revisions { + ...TimepointCount + } + sources { + ...TimepointCount + } + users { + ...TimepointCount + } + variants { + ...TimepointCount + } + } +} + ${fn}`;let Ci=(()=>{class e extends v.AE{constructor(r){super(r),this.document=_i}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const yi=y` + query BrowseSourceSuggestions($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourceSuggestionsSort, $sourceType: SourceSource, $citationId: Int, $sourceId: Int, $geneName: String, $variantName: String, $diseaseName: String, $comment: String, $submitter: String, $citation: String, $submitterId: Int, $status: SourceSuggestionStatus) { + sourceSuggestions( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + sourceType: $sourceType + citationId: $citationId + sourceId: $sourceId + geneName: $geneName + variantName: $variantName + diseaseName: $diseaseName + comment: $comment + submitter: $submitter + citation: $citation + submitterId: $submitterId + status: $status + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseSourceSuggestionRowFields + } + } + } +} + ${hn}`;let Ti=(()=>{class e extends v.AE{constructor(r){super(r),this.document=yi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();y` + mutation UpdateSourceSuggestionStatus($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `;const Ii=y` + query SourcePopover($sourceId: Int!) { + sourcePopover(id: $sourceId) { + ...sourcePopover + } +} + ${vn}`;let Ei=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ii}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Di=y` + query BrowseSources($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourcesSort, $name: String, $year: Int, $sourceType: SourceSource, $citationId: Int, $author: String, $journal: String, $clinicalTrialId: Int) { + browseSources( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + year: $year + sourceType: $sourceType + citationId: $citationId + author: $author + journal: $journal + clinicalTrialId: $clinicalTrialId + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseSourceRowFields + } + } + } +} + ${zn}`;let Si=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Di}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Oi=y` + query UserPopover($userId: Int!) { + user(id: $userId) { + ...popoverUser + } +} + ${_n}`;let Mi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Oi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ai=y` + query UsersBrowse($first: Int, $last: Int, $before: String, $after: String, $userName: String, $orgName: OrganizationFilter, $userRole: UserRole, $sortBy: UsersSort) { + users( + first: $first + last: $last + before: $before + after: $after + name: $userName + organization: $orgName + role: $userRole + sortBy: $sortBy + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + totalCount + edges { + cursor + node { + ...UserBrowseTableRowFields + } + } + } +} + ${Cn}`;let Ni=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ai}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xi=y` + query VariantGroupPopover($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...variantGroupPopoverFields + } +} + ${yn}`;let Li=(()=>{class e extends v.AE{constructor(r){super(r),this.document=xi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Pi=y` + query BrowseVariantGroups($first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantGroupsSort, $name: String, $geneNames: String, $variantNames: String) { + browseVariantGroups( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + geneNames: $geneNames + variantNames: $variantNames + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseVariantGroupRowFields + } + } + } +} + ${Tn}`;let Fi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Pi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const bi=y` + query VariantTypePopover($variantTypeId: Int!) { + variantTypePopover(id: $variantTypeId) { + ...variantTypePopover + } +} + ${In}`;let Ri=(()=>{class e extends v.AE{constructor(r){super(r),this.document=bi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const $i=y` + query VariantTypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $soid: String, $sortBy: VariantTypeSort) { + variantTypes( + first: $first + last: $last + before: $before + after: $after + name: $name + soid: $soid + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...VariantTypeBrowseTableRowFields + } + } + } +} + ${En}`;let Gi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=$i}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Bi=y` + query VariantPopover($variantId: Int!) { + variant(id: $variantId) { + ...variantPopoverFields + } +} + ${Dn}`;let wi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Bi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ui=y` + query VariantsMenu($geneId: Int, $variantName: String, $evidenceStatusFilter: VariantDisplayFilter, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { + variants( + geneId: $geneId + name: $variantName + evidenceStatusFilter: $evidenceStatusFilter + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuVariant + } + } + } +} + ${Sn}`;let Qi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ui}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Zi=y` + 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 + entrezSymbol: $entrezSymbol + diseaseName: $diseaseName + drugName: $drugName + variantAlias: $variantAlias + variantTypeId: $variantTypeId + variantGroupId: $variantGroupId + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + id + name + link + evidenceScore + evidenceItemCount + geneId + geneName + geneLink + diseases { + id + name + link + } + drugs { + id + name + link + } + aliases { + name + } + assertionCount + } + } + totalCount + filteredCount + pageCount + } +} + `;let Vi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Zi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yi=y` + query ViewerBase { + viewer { + id + username + role + displayName + profileImagePath(size: 32) + organizations { + id + name + profileImagePath(size: 32) + } + mostRecentConflictOfInterestStatement { + coiStatus + } + mostRecentOrganizationId + } +} + `;let Wi=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Yi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ki=y` + query ViewerNotificationCount { + notifications { + unreadCount + } +} + `;let Ji=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ki}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ji=y` + query AssertionRevisableFields($assertionId: Int!) { + assertion(id: $assertionId) { + ...RevisableAssertionFields + } +} + ${On}`;let Ki=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ji}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Hi=y` + mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { + suggestAssertionRevision(input: $input) { + clientMutationId + assertion { + id + } + } +} + `;let Xi=(()=>{class e extends v.mm{constructor(r){super(r),this.document=Hi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qi=y` + mutation SubmitAssertion($input: SubmitAssertionInput!) { + submitAssertion(input: $input) { + clientMutationId + assertion { + id + } + } +} + `;let er=(()=>{class e extends v.mm{constructor(r){super(r),this.document=qi}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const tr=y` + mutation AddComment($input: AddCommentInput!) { + addComment(input: $input) { + clientMutationId + comment { + ...commentListNode + } + } +} + ${Qt}`;let nr=(()=>{class e extends v.mm{constructor(r){super(r),this.document=tr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const or=y` + query previewComment($commentText: String!) { + previewCommentText(commentText: $commentText) { + ...previewComment + } +} + ${Mn}`;let ir=(()=>{class e extends v.AE{constructor(r){super(r),this.document=or}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const rr=y` + query userTypeahead($queryTerm: String!) { + userTypeahead(queryTerm: $queryTerm) { + username + } +} + `;let sr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=rr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ar=y` + query entityTypeahead($queryTerm: String!) { + entityTypeahead(queryTerm: $queryTerm) { + entityId + tagType + displayName + } +} + `;let cr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ar}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lr=y` + query AcmgCodeTypeahead($code: String!) { + acmgCodesTypeahead(queryTerm: $code) { + id + code + description + } +} + `;let ur=(()=>{class e extends v.AE{constructor(r){super(r),this.document=lr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const dr=y` + query DiseaseTypeahead($name: String!) { + diseaseTypeahead(queryTerm: $name) { + id + name + displayName + doid + diseaseAliases + } +} + `;let pr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=dr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const mr=y` + mutation AddDisease($name: String!, $doid: Int) { + addDisease(input: {name: $name, doid: $doid}) { + ...AddDiseaseFields + } +} + ${An}`;let gr=(()=>{class e extends v.mm{constructor(r){super(r),this.document=mr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fr=y` + query DrugTypeahead($name: String!) { + drugTypeahead(queryTerm: $name) { + id + name + ncitId + drugAliases + } +} + `;let hr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=fr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vr=y` + mutation AddDrug($name: String!, $ncitId: String) { + addDrug(input: {name: $name, ncitId: $ncitId}) { + ...AddDrugFields + } +} + ${Nn}`;let zr=(()=>{class e extends v.mm{constructor(r){super(r),this.document=vr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const _r=y` + query EvidenceTypeahead($id: Int!) { + evidenceItem(id: $id) { + id + status + name + } +} + `;let Cr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=_r}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const yr=y` + query GeneTypeahead($entrezSymbol: String!) { + geneTypeahead(queryTerm: $entrezSymbol) { + ...GeneTypeaheadFields + } +} + ${xn}`;let Tr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=yr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ir=y` + query NccnGuidelineTypeahead($name: String!) { + nccnGuidelinesTypeahead(queryTerm: $name) { + id + name + } +} + `;let Er=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ir}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Dr=y` + query PhenotypeTypeahead($name: String!) { + phenotypeTypeahead(queryTerm: $name) { + hpoId + id + name + } +} + `;let Sr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Dr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Or=y` + query CitationTypeahead($partialCitationId: Int!, $sourceType: SourceSource!) { + sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { + ...SourceTypeaheadResult + } +} + ${tn}`;let Mr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Or}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ar=y` + query CitationExistenceCheck($sourceType: SourceSource!, $citationId: Int!) { + remoteCitation(sourceType: $sourceType, citationId: $citationId) +} + `;let Nr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ar}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xr=y` + mutation CreateSourceStub($input: AddRemoteCitationInput!) { + addRemoteCitation(input: $input) { + newSource { + id + citationId + sourceType + } + } +} + `;let Lr=(()=>{class e extends v.mm{constructor(r){super(r),this.document=xr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Pr=y` + query CheckRemoteCitation($sourceType: SourceSource!, $citationId: Int!) { + remoteCitation(sourceType: $sourceType, citationId: $citationId) +} + `;let Fr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Pr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const br=y` + mutation AddRemoteCitation($input: AddRemoteCitationInput!) { + addRemoteCitation(input: $input) { + newSource { + ...SourceStubFields + } + } +} + ${nn}`;let Rr=(()=>{class e extends v.mm{constructor(r){super(r),this.document=br}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const $r=y` + query SourceTypeahead($partialCitationId: Int!, $sourceType: SourceSource!) { + sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { + ...SourceTypeaheadResult + } +} + ${tn}`;let Gr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=$r}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Br=y` + query VariantTypeahead($name: String!, $geneId: Int) { + variants(name: $name, geneId: $geneId, first: 20) { + nodes { + ...VariantTypeaheadFields + } + } +} + ${on}`;let wr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Br}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ur=y` + mutation AddVariant($name: String!, $geneId: Int!) { + addVariant(input: {name: $name, geneId: $geneId}) { + ...AddVariantFields + } +} + ${Pn}`;let Qr=(()=>{class e extends v.mm{constructor(r){super(r),this.document=Ur}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();y` + query VariantSelect($name: String!, $geneId: Int) { + variants(name: $name, first: 20, geneId: $geneId) { + nodes { + ...VariantTypeaheadFields + } + } +} + ${on}`;const Zr=y` + query VariantTypeTypeahead($name: String!) { + variantTypeTypeahead(queryTerm: $name) { + name + soid + id + } +} + `;let Vr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Zr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yr=y` + query EvidenceItemRevisableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...RevisableEvidenceFields + } +} + ${Fn}`;let Wr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Yr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const kr=y` + mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { + suggestEvidenceItemRevision(input: $input) { + clientMutationId + evidenceItem { + id + } + } +} + `;let Jr=(()=>{class e extends v.mm{constructor(r){super(r),this.document=kr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jr=y` + 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 Kr=(()=>{class e extends v.AE{constructor(r){super(r),this.document=jr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();y` + query EvidenceSubmittableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...SubmittableEvidenceFields + } +} + ${bn}`;const Hr=y` + mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { + submitEvidence(input: $input) { + clientMutationId + evidenceItem { + id + } + } +} + `;let Xr=(()=>{class e extends v.mm{constructor(r){super(r),this.document=Hr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qr=y` + mutation FlagEntity($input: FlagEntityInput!) { + flagEntity(input: $input) { + flag { + id + } + } +} + `;let es=(()=>{class e extends v.mm{constructor(r){super(r),this.document=qr}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ts=y` + mutation ResolveFlag($input: ResolveFlagInput!) { + resolveFlag(input: $input) { + flag { + id + } + } +} + `;let ns=(()=>{class e extends v.mm{constructor(r){super(r),this.document=ts}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const os=y` + query GeneRevisableFields($geneId: Int!) { + gene(id: $geneId) { + ...RevisableGeneFields + } +} + ${Rn}`;let is=(()=>{class e extends v.AE{constructor(r){super(r),this.document=os}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const rs=y` + mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { + suggestGeneRevision(input: $input) { + clientMutationId + gene { + id + revisions { + totalCount + edges { + node { + id + revisionsetId + createdAt + fieldName + currentValue + suggestedValue + linkoutData { + name + diffValue { + ... on ObjectFieldDiff { + addedObjects { + id + displayName + displayType + entityType + } + removedObjects { + id + displayName + displayType + entityType + } + keptObjects { + id + displayName + displayType + entityType + } + } + ... on ScalarFieldDiff { + left + right + } + } + } + revisor { + id + name + } + status + } + } + } + } + results { + id + fieldName + } + } +} + `;let ss=(()=>{class e extends v.mm{constructor(r){super(r),this.document=rs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const as=y` + mutation SuggestSource($input: SuggestSourceInput!) { + suggestSource(input: $input) { + clientMutationId + sourceSuggestion { + id + } + } +} + `;let cs=(()=>{class e extends v.mm{constructor(r){super(r),this.document=as}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ls=y` + mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `;let us=(()=>{class e extends v.mm{constructor(r){super(r),this.document=ls}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ds=y` + mutation UpdateCoi($input: UpdateCoiInput!) { + updateCoi(input: $input) { + coiStatement { + coiPresent + coiStatus + createdAt + id + } + } +} + `;let ps=(()=>{class e extends v.mm{constructor(r){super(r),this.document=ds}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ms=y` + mutation UpdateUserProfile($input: EditUserInput!) { + editUser(input: $input) { + user { + id + } + } +} + `;let gs=(()=>{class e extends v.mm{constructor(r){super(r),this.document=ms}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fs=y` + query Countries { + countries { + id + name + } +} + `;let hs=(()=>{class e extends v.AE{constructor(r){super(r),this.document=fs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vs=y` + mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { + suggestVariantGroupRevision(input: $input) { + clientMutationId + variantGroup { + id + } + results { + id + fieldName + } + } +} + `;let zs=(()=>{class e extends v.mm{constructor(r){super(r),this.document=vs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const _s=y` + query VariantGroupSubmittableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...SubmittableVariantGroupFields + } +} + ${$n}`;let Cs=(()=>{class e extends v.AE{constructor(r){super(r),this.document=_s}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ys=y` + mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { + submitVariantGroup(input: $input) { + clientMutationId + variantGroup { + id + } + } +} + `;let Ts=(()=>{class e extends v.mm{constructor(r){super(r),this.document=ys}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Is=y` + query VariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + ...RevisableVariantFields + } +} + ${Bn}`;let Es=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Is}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ds=y` + mutation SuggestVariantRevision($input: SuggestVariantRevisionInput!) { + suggestVariantRevision(input: $input) { + clientMutationId + variant { + id + revisions { + totalCount + edges { + node { + id + revisionsetId + createdAt + fieldName + currentValue + suggestedValue + linkoutData { + name + diffValue { + ... on ObjectFieldDiff { + addedObjects { + id + displayName + displayType + entityType + } + removedObjects { + id + displayName + displayType + entityType + } + keptObjects { + id + displayName + displayType + entityType + } + } + ... on ScalarFieldDiff { + left + right + } + } + } + revisor { + id + name + } + status + } + } + } + } + results { + id + fieldName + } + } +} + `;let Ss=(()=>{class e extends v.mm{constructor(r){super(r),this.document=Ds}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Os=y` + query AssertionDetail($assertionId: Int!) { + assertion(id: $assertionId) { + ...AssertionDetailFields + } +} + ${wn}`;let Ms=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Os}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const As=y` + query AssertionSummary($assertionId: Int!) { + assertion(id: $assertionId) { + ...AssertionSummaryFields + } +} + ${Un}`;let Ns=(()=>{class e extends v.AE{constructor(r){super(r),this.document=As}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xs=y` + query ClinicalTrialDetail($clinicalTrialId: Int!) { + clinicalTrial(id: $clinicalTrialId) { + id + name + nctId + description + url + link + } +} + `;let Ls=(()=>{class e extends v.AE{constructor(r){super(r),this.document=xs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ps=y` + query DiseaseDetail($diseaseId: Int!) { + disease(id: $diseaseId) { + id + name + doid + diseaseUrl + displayName + diseaseAliases + link + } +} + `;let Fs=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ps}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const bs=y` + query DrugDetail($drugId: Int!) { + drug(id: $drugId) { + id + name + ncitId + drugUrl + drugAliases + link + } +} + `;let Rs=(()=>{class e extends v.AE{constructor(r){super(r),this.document=bs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const $s=y` + query EvidenceDetail($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...EvidenceDetailFields + } +} + ${Qn}`;let Gs=(()=>{class e extends v.AE{constructor(r){super(r),this.document=$s}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Bs=y` + query EvidenceSummary($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...EvidenceSummaryFields + } +} + ${Zn}`;let ws=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Bs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Us=y` + query GeneDetail($geneId: Int!) { + gene(id: $geneId) { + ...GeneDetailFields + } +} + ${Vn}`;let Qs=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Us}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Zs=y` + query GenesSummary($geneId: Int!) { + gene(id: $geneId) { + ...GeneSummaryFields + } +} + ${Yn}`;let Vs=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Zs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ys=y` + query OrganizationDetail($organizationId: Int!) { + organization(id: $organizationId) { + ...OrganizationDetailFields + } +} + ${Wn}`;let Ws=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ys}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ks=y` + query OrganizationGroups($organizationId: Int!) { + organization(id: $organizationId) { + subGroups { + ...OrganizationGroupsFields + } + } +} + ${kn}`;let Js=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ks}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const js=y` + query OrganizationMembers($organizationId: Int!, $first: Int, $last: Int, $before: String, $after: String) { + users( + organization: {id: $organizationId} + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...OrganizationMembersFields + } + } + } +} + ${Jn}`;let Ks=(()=>{class e extends v.AE{constructor(r){super(r),this.document=js}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Hs=y` + query PhenotypeDetail($phenotypeId: Int!) { + phenotype(id: $phenotypeId) { + id + name + hpoId + url + link + } +} + `;let Xs=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Hs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qs=y` + query DataReleases { + dataReleases { + ...Release + } +} + ${jn}`;let ea=(()=>{class e extends v.AE{constructor(r){super(r),this.document=qs}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ta=y` + query SourceDetail($sourceId: Int!) { + source(id: $sourceId) { + ...SourceDetailFields + } +} + ${Kn}`;let na=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ta}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const oa=y` + query SourceSummary($sourceId: Int!) { + source(id: $sourceId) { + ...SourceSummaryFields + } +} + ${Hn}`;let ia=(()=>{class e extends v.AE{constructor(r){super(r),this.document=oa}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ra=y` + query UserDetail($userId: Int!) { + user(id: $userId) { + ...UserDetailFields + } +} + ${Xn}`;let sa=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ra}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const aa=y` + 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 + last: $last + before: $before + after: $after + notificationReason: $notificationReason + subscriptionId: $subscriptionId + originatingObject: $originatingObject + eventType: $eventType + originatingUserId: $originatingUserId + organizationId: $organizationId + includeRead: $includeRead + ) { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + notificationSubjects { + ...notificationFeedSubjects + } + originatingUsers { + ...notificationOriginatingUsers + } + organizations { + ...notificationOrganization + } + eventTypes + edges { + node { + ...notificationNode + } + } + } +} + ${to} +${eo} +${qn} +${rn}`;let ca=(()=>{class e extends v.AE{constructor(r){super(r),this.document=aa}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const la=y` + mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { + updateNotificationStatus(input: $input) { + notifications { + ...notificationNode + } + } +} + ${rn}`;let ua=(()=>{class e extends v.mm{constructor(r){super(r),this.document=la}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const da=y` + mutation Unsubscribe($input: UnsubscribeInput!) { + unsubscribe(input: $input) { + unsubscribedEntities { + ...subscribable + } + } +} + ${no}`;let pa=(()=>{class e extends v.mm{constructor(r){super(r),this.document=da}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ma=y` + mutation Subscribe($input: SubscribeInput!) { + subscribe(input: $input) { + subscriptions { + id + } + } +} + `;let ga=(()=>{class e extends v.mm{constructor(r){super(r),this.document=ma}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fa=y` + query VariantGroupDetail($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupDetailFields + } +} + ${oo}`;let ha=(()=>{class e extends v.AE{constructor(r){super(r),this.document=fa}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();y` + query VariantGroupRevisions($variantGroupId: Int!, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int) { + variantGroup(id: $variantGroupId) { + id + revisions( + first: $first + last: $last + before: $before + after: $after + fieldName: $fieldName + originatingUserId: $originatingUserId + ) { + totalCount + uniqueRevisors { + username + id + profileImagePath(size: 32) + } + revisedFieldNames { + name + displayName + } + edges { + node { + id + revisionsetId + createdAt + fieldName + currentValue + suggestedValue + linkoutData { + name + diffValue { + ... on ObjectFieldDiff { + addedObjects { + id + displayName + displayType + entityType + } + removedObjects { + id + displayName + displayType + entityType + } + keptObjects { + id + displayName + displayType + entityType + } + } + ... on ScalarFieldDiff { + left + right + } + } + } + revisor { + id + name + } + status + } + } + } + } +} + `;const va=y` + query VariantGroupsSummary($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupSummaryFields + } +} + ${io}`;let za=(()=>{class e extends v.AE{constructor(r){super(r),this.document=va}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const _a=y` + query VariantTypeDetail($variantTypeId: Int!) { + variantType(id: $variantTypeId) { + id + name + soid + description + url + link + } +} + `;let Ca=(()=>{class e extends v.AE{constructor(r){super(r),this.document=_a}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ya=y` + query VariantDetail($variantId: Int!) { + variant(id: $variantId) { + ...VariantDetailFields + } +} + ${ro}`;let Ta=(()=>{class e extends v.AE{constructor(r){super(r),this.document=ya}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ia=y` + query VariantSummary($variantId: Int!) { + variant(id: $variantId) { + ...VariantSummaryFields + } +} + ${ao}`;let Ea=(()=>{class e extends v.AE{constructor(r){super(r),this.document=Ia}}return e.\u0275fac=function(r){return new(r||e)(l.LFG(v._M))},e.\u0275prov=l.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},4024:(Te,te,o)=>{o.r(te),o.d(te,{LayoutModule:()=>Zt});var i=o(9808),t=o(325),n=o(5e3),s=o(9350),N=o(8929),_=o(7625),c=o(655),J=o(4090),u=o(1721),I=o(4219),O=o(925),Y=o(647),$=o(226),ne=o(5113);const R=["*"],le=["nz-sider-trigger",""];function H(m,oe){}function Z(m,oe){if(1&m&&(n.ynx(0),n.YNc(1,H,0,0,"ng-template",3),n.BQk()),2&m){const d=n.oxw(),T=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",d.nzZeroTrigger||T)}}function w(m,oe){}function A(m,oe){if(1&m&&(n.ynx(0),n.YNc(1,w,0,0,"ng-template",3),n.BQk()),2&m){const d=n.oxw(),T=n.MAs(3);n.xp6(1),n.Q6J("ngTemplateOutlet",d.nzTrigger||T)}}function b(m,oe){if(1&m&&n._UZ(0,"i",5),2&m){const d=n.oxw(2);n.Q6J("nzType",d.nzCollapsed?"right":"left")}}function ae(m,oe){if(1&m&&n._UZ(0,"i",5),2&m){const d=n.oxw(2);n.Q6J("nzType",d.nzCollapsed?"left":"right")}}function F(m,oe){if(1&m&&(n.YNc(0,b,1,1,"i",4),n.YNc(1,ae,1,1,"i",4)),2&m){const d=n.oxw();n.Q6J("ngIf",!d.nzReverseArrow),n.xp6(1),n.Q6J("ngIf",d.nzReverseArrow)}}function E(m,oe){1&m&&n._UZ(0,"i",6)}function h(m,oe){if(1&m){const d=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){n.CHM(d);const de=n.oxw();return de.setCollapsed(!de.nzCollapsed)}),n.qZA()}if(2&m){const d=n.oxw();n.Q6J("matchBreakPoint",d.matchBreakPoint)("nzCollapsedWidth",d.nzCollapsedWidth)("nzCollapsed",d.nzCollapsed)("nzBreakpoint",d.nzBreakpoint)("nzReverseArrow",d.nzReverseArrow)("nzTrigger",d.nzTrigger)("nzZeroTrigger",d.nzZeroTrigger)("siderWidth",d.widthSetting)}}let M=(()=>{class m{constructor(d,T){this.elementRef=d,this.renderer=T,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(n.SBq),n.Y36(n.Qsj))},m.\u0275cmp=n.Xpm({type:m,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:R,decls:1,vars:0,template:function(d,T){1&d&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),m})(),L=(()=>{class m{constructor(d,T){this.elementRef=d,this.renderer=T,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(n.SBq),n.Y36(n.Qsj))},m.\u0275cmp=n.Xpm({type:m,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:R,decls:1,vars:0,template:function(d,T){1&d&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),m})(),B=(()=>{class m{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 m.\u0275fac=function(d){return new(d||m)},m.\u0275cmp=n.Xpm({type:m,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(d,T){2&d&&(n.Udp("width",T.isNormalTrigger?T.siderWidth:null),n.ekj("ant-layout-sider-trigger",T.isNormalTrigger)("ant-layout-sider-zero-width-trigger",T.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",T.isZeroTrigger&&T.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",T.isZeroTrigger&&!T.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[n.TTD],attrs:le,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(d,T){1&d&&(n.YNc(0,Z,2,1,"ng-container",0),n.YNc(1,A,2,1,"ng-container",0),n.YNc(2,F,2,2,"ng-template",null,1,n.W1O),n.YNc(4,E,1,0,"ng-template",null,2,n.W1O)),2&d&&(n.Q6J("ngIf",T.isZeroTrigger),n.xp6(1),n.Q6J("ngIf",T.isNormalTrigger))},directives:[i.O5,i.tP,Y.Ls],encapsulation:2,changeDetection:0}),m})(),p=(()=>{class m{constructor(d,T,de){this.platform=d,this.cdr=T,this.breakpointService=de,this.destroy$=new N.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new n.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,u.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(d){d!==this.nzCollapsed&&(this.nzCollapsed=d,this.nzCollapsedChange.emit(d),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(J.ow,!0).pipe((0,_.R)(this.destroy$)).subscribe(d=>{const T=this.nzBreakpoint;T&&(0,u.ov)().subscribe(()=>{this.matchBreakPoint=!d[T],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(d){const{nzCollapsed:T,nzCollapsedWidth:de,nzWidth:Me}=d;(T||de||Me)&&this.updateStyleMap(),T&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(O.t4),n.Y36(n.sBO),n.Y36(J.r3))},m.\u0275cmp=n.Xpm({type:m,selectors:[["nz-sider"]],contentQueries:function(d,T,de){if(1&d&&n.Suo(de,I.wO,5),2&d){let Me;n.iGM(Me=n.CRH())&&(T.nzMenuDirective=Me.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(d,T){2&d&&(n.Udp("flex",T.flexSetting)("max-width",T.widthSetting)("min-width",T.widthSetting)("width",T.widthSetting),n.ekj("ant-layout-sider-zero-width",T.nzCollapsed&&0===T.nzCollapsedWidth)("ant-layout-sider-light","light"===T.nzTheme)("ant-layout-sider-dark","dark"===T.nzTheme)("ant-layout-sider-collapsed",T.nzCollapsed)("ant-layout-sider-has-trigger",T.nzCollapsible&&null!==T.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:[n.TTD],ngContentSelectors:R,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(d,T){1&d&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA(),n.YNc(2,h,1,8,"div",1)),2&d&&(n.xp6(2),n.Q6J("ngIf",T.nzCollapsible&&null!==T.nzTrigger))},directives:[B,i.O5],encapsulation:2,changeDetection:0}),(0,c.gn)([(0,u.yF)()],m.prototype,"nzReverseArrow",void 0),(0,c.gn)([(0,u.yF)()],m.prototype,"nzCollapsible",void 0),(0,c.gn)([(0,u.yF)()],m.prototype,"nzCollapsed",void 0),m})(),K=(()=>{class m{constructor(d){this.directionality=d,this.dir="ltr",this.destroy$=new N.xQ}ngOnInit(){var d;this.dir=this.directionality.value,null===(d=this.directionality.change)||void 0===d||d.pipe((0,_.R)(this.destroy$)).subscribe(T=>{this.dir=T})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return m.\u0275fac=function(d){return new(d||m)(n.Y36($.Is,8))},m.\u0275cmp=n.Xpm({type:m,selectors:[["nz-layout"]],contentQueries:function(d,T,de){if(1&d&&n.Suo(de,p,4),2&d){let Me;n.iGM(Me=n.CRH())&&(T.listOfNzSiderComponent=Me)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(d,T){2&d&&n.ekj("ant-layout-rtl","rtl"===T.dir)("ant-layout-has-sider",T.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:R,decls:1,vars:0,template:function(d,T){1&d&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0}),m})(),k=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[$.vT,i.ez,Y.PV,ne.xu,O.ud]]}),m})();var X=o(404),xe=o(1894),se=o(712),ye=o(373),q=o(1047),me=o(4182),ie=o(2845),ze=o(4832),Oe=o(969),V=o(3753),fe=o(2654),G=o(8514),he=o(6787),ce=o(2198),De=o(2868),Pe=o(6792),re=o(2986),Ie=o(7545),ge=o(1159),Ae=o(7429),U=o(8076);function _e(m,oe){if(1&m&&(n.ynx(0),n._uU(1),n.BQk()),2&m){const d=n.oxw();n.xp6(1),n.Oqu(d.nzLabel)}}const W=[[["nz-auto-option"]]],Se=["nz-auto-option"],be=["*"],Ge=["panel"],tt=["content"];function nt(m,oe){}function Ke(m,oe){1&m&&n.YNc(0,nt,0,0,"ng-template")}function Ve(m,oe){1&m&&n.Hsn(0)}function y(m,oe){if(1&m&&(n.TgZ(0,"nz-auto-option",8),n._uU(1),n.qZA()),2&m){const d=oe.$implicit;n.Q6J("nzValue",d)("nzLabel",d&&d.label?d.label:d),n.xp6(1),n.hij(" ",d&&d.label?d.label:d," ")}}function He(m,oe){if(1&m&&n.YNc(0,y,2,3,"nz-auto-option",7),2&m){const d=n.oxw(2);n.Q6J("ngForOf",d.nzDataSource)}}function Xe(m,oe){if(1&m){const d=n.EpF();n.TgZ(0,"div",0,1),n.NdJ("@slideMotion.done",function(de){return n.CHM(d),n.oxw().onAnimationEvent(de)}),n.TgZ(2,"div",2),n.TgZ(3,"div",3),n.YNc(4,Ke,1,0,void 0,4),n.qZA(),n.qZA(),n.qZA(),n.YNc(5,Ve,1,0,"ng-template",null,5,n.W1O),n.YNc(7,He,1,1,"ng-template",null,6,n.W1O)}if(2&m){const d=n.MAs(6),T=n.MAs(8),de=n.oxw();n.ekj("ant-select-dropdown-hidden",!de.showPanel)("ant-select-dropdown-rtl","rtl"===de.dir),n.Q6J("ngClass",de.nzOverlayClassName)("ngStyle",de.nzOverlayStyle)("nzNoAnimation",null==de.noAnimation?null:de.noAnimation.nzNoAnimation)("@slideMotion",void 0)("@.disabled",null==de.noAnimation?null:de.noAnimation.nzNoAnimation),n.xp6(4),n.Q6J("ngTemplateOutlet",de.nzDataSource?T:d)}}let Ye=(()=>{class m{constructor(){}}return m.\u0275fac=function(d){return new(d||m)},m.\u0275cmp=n.Xpm({type:m,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],ngContentSelectors:Se,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(d,T){1&d&&(n.F$t(W),n.TgZ(0,"div",0),n.YNc(1,_e,2,1,"ng-container",1),n.qZA(),n.Hsn(2)),2&d&&(n.xp6(1),n.Q6J("nzStringTemplateOutlet",T.nzLabel))},directives:[Oe.f],encapsulation:2,changeDetection:0}),m})();class lt{constructor(oe,d=!1){this.source=oe,this.isUserInput=d}}let Ue=(()=>{class m{constructor(d,T,de,Me){this.ngZone=d,this.changeDetectorRef=T,this.element=de,this.nzAutocompleteOptgroupComponent=Me,this.nzDisabled=!1,this.selectionChange=new n.vpe,this.mouseEntered=new n.vpe,this.active=!1,this.selected=!1,this.destroy$=new N.xQ}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,V.R)(this.element.nativeElement,"mouseenter").pipe((0,ce.h)(()=>this.mouseEntered.observers.length>0),(0,_.R)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>this.mouseEntered.emit(this))}),(0,V.R)(this.element.nativeElement,"mousedown").pipe((0,_.R)(this.destroy$)).subscribe(d=>d.preventDefault())})}ngOnDestroy(){this.destroy$.next()}select(d=!0){this.selected=!0,this.changeDetectorRef.markForCheck(),d&&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,u.zT)(this.element.nativeElement)}selectViaInteraction(){this.nzDisabled||(this.selected=!this.selected,this.selected?this.setActiveStyles():this.setInactiveStyles(),this.emitSelectionChangeEvent(!0),this.changeDetectorRef.markForCheck())}emitSelectionChangeEvent(d=!1){this.selectionChange.emit(new lt(this,d))}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Ye,8))},m.\u0275cmp=n.Xpm({type:m,selectors:[["nz-auto-option"]],hostAttrs:["role","menuitem",1,"ant-select-item","ant-select-item-option"],hostVars:10,hostBindings:function(d,T){1&d&&n.NdJ("click",function(){return T.selectViaInteraction()}),2&d&&(n.uIk("aria-selected",T.selected.toString())("aria-disabled",T.nzDisabled.toString()),n.ekj("ant-select-item-option-grouped",T.nzAutocompleteOptgroupComponent)("ant-select-item-option-selected",T.selected)("ant-select-item-option-active",T.active)("ant-select-item-option-disabled",T.nzDisabled))},inputs:{nzValue:"nzValue",nzLabel:"nzLabel",nzDisabled:"nzDisabled"},outputs:{selectionChange:"selectionChange",mouseEntered:"mouseEntered"},exportAs:["nzAutoOption"],ngContentSelectors:be,decls:2,vars:0,consts:[[1,"ant-select-item-option-content"]],template:function(d,T){1&d&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},encapsulation:2,changeDetection:0}),(0,c.gn)([(0,u.yF)()],m.prototype,"nzDisabled",void 0),m})();const pt={provide:me.JU,useExisting:(0,n.Gpc)(()=>l),multi:!0};let l=(()=>{class m{constructor(d,T,de,Me,et){this.elementRef=d,this.overlay=T,this.viewContainerRef=de,this.nzInputGroupWhitSuffixOrPrefixDirective=Me,this.document=et,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new N.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,_.R)(this.destroy$)).subscribe(d=>{"void"===d.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(d){Promise.resolve(null).then(()=>this.setTriggerValue(d))}registerOnChange(d){this.onChange=d}registerOnTouched(d){this.onTouched=d}setDisabledState(d){this.elementRef.nativeElement.disabled=d,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(d){const T=d.keyCode,de=T===ge.LH||T===ge.JH;T===ge.hY&&d.preventDefault(),!this.panelOpen||T!==ge.hY&&T!==ge.Mf?this.panelOpen&&T===ge.K5?this.nzAutocomplete.showPanel&&(d.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&de&&this.nzAutocomplete.showPanel&&(d.stopPropagation(),d.preventDefault(),T===ge.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(d){const T=d.target,de=this.document;let Me=T.value;"number"===T.type&&(Me=""===Me?null:parseFloat(Me)),this.previousValue!==Me&&(this.previousValue=Me,this.onChange(Me),this.canOpen()&&de.activeElement===d.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,De.b)(()=>this.positionStrategy.reapplyLastPosition()),(0,Pe.g)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(d=>{this.setValueAndClose(d)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,ce.h)(d=>!this.elementRef.nativeElement.contains(d.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function v(){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 Ae.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,_.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 ie.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 d=[new ie.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new ie.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(d).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const d=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==d?(this.nzAutocomplete.setActiveItem(d),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(d){const T=d.nzValue;this.setTriggerValue(d.getLabel()),this.onChange(T),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(d){const T=this.nzAutocomplete.getOption(d),de=T?T.getLabel():d;this.elementRef.nativeElement.value=null!=de?de:"",this.nzAutocomplete.nzBackfill||(this.previousValue=de)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const d=this.elementRef.nativeElement;return!d.readOnly&&!d.disabled}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(n.SBq),n.Y36(ie.aV),n.Y36(n.s_b),n.Y36(q.ke,8),n.Y36(i.K0,8))},m.\u0275dir=n.lG2({type:m,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(d,T){1&d&&n.NdJ("focusin",function(){return T.handleFocus()})("blur",function(){return T.handleBlur()})("input",function(Me){return T.handleInput(Me)})("keydown",function(Me){return T.handleKeydown(Me)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],features:[n._Bn([pt])]}),m})(),Ce=(()=>{class m{constructor(d,T,de,Me){this.changeDetectorRef=d,this.ngZone=T,this.directionality=de,this.noAnimation=Me,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzDefaultActiveFirstOption=!0,this.nzBackfill=!1,this.compareWith=(et,Bt)=>et===Bt,this.selectionChange=new n.vpe,this.showPanel=!0,this.isOpen=!1,this.activeItem=null,this.dir="ltr",this.destroy$=new N.xQ,this.animationStateChange=new n.vpe,this.activeItemIndex=-1,this.selectionChangeSubscription=fe.w.EMPTY,this.optionMouseEnterSubscription=fe.w.EMPTY,this.dataSourceChangeSubscription=fe.w.EMPTY,this.optionSelectionChanges=(0,G.P)(()=>this.options?(0,he.T)(...this.options.map(et=>et.selectionChange)):this.ngZone.onStable.asObservable().pipe((0,re.q)(1),(0,Ie.w)(()=>this.optionSelectionChanges))),this.optionMouseEnter=(0,G.P)(()=>this.options?(0,he.T)(...this.options.map(et=>et.mouseEntered)):this.ngZone.onStable.asObservable().pipe((0,re.q)(1),(0,Ie.w)(()=>this.optionMouseEnter)))}get options(){return this.nzDataSource?this.fromDataSourceOptions:this.fromContentOptions}ngOnInit(){var d;null===(d=this.directionality.change)||void 0===d||d.pipe((0,_.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.changeDetectorRef.detectChanges()}),this.dir=this.directionality.value}onAnimationEvent(d){this.animationStateChange.emit(d)}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(d){const T=this.options.get(d);T&&!T.active?(this.activeItem=T,this.activeItemIndex=d,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(d){return this.options.reduce((T,de,Me)=>-1===T?this.compareWith(d,de.nzValue)?Me:-1:T,-1)}getOption(d){return this.options.find(T=>this.compareWith(d,T.nzValue))||null}optionsInit(){this.setVisibility(),this.subscribeOptionChanges(),this.dataSourceChangeSubscription=(this.nzDataSource?this.fromDataSourceOptions.changes:this.fromContentOptions.changes).subscribe(T=>{!T.dirty&&this.isOpen&&setTimeout(()=>this.setVisibility()),this.subscribeOptionChanges()})}clearSelectedOptions(d,T=!1){this.options.forEach(de=>{de!==d&&(T&&de.deselect(),de.setInactiveStyles())})}subscribeOptionChanges(){this.selectionChangeSubscription.unsubscribe(),this.selectionChangeSubscription=this.optionSelectionChanges.pipe((0,ce.h)(d=>d.isUserInput)).subscribe(d=>{d.source.select(),d.source.setActiveStyles(),this.activeItem=d.source,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(d.source,!0),this.selectionChange.emit(d.source)}),this.optionMouseEnterSubscription.unsubscribe(),this.optionMouseEnterSubscription=this.optionMouseEnter.subscribe(d=>{d.setActiveStyles(),this.activeItem=d,this.activeItemIndex=this.getOptionIndex(this.activeItem.nzValue),this.clearSelectedOptions(d)})}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(n.sBO),n.Y36(n.R0b),n.Y36($.Is,8),n.Y36(ze.P,9))},m.\u0275cmp=n.Xpm({type:m,selectors:[["nz-autocomplete"]],contentQueries:function(d,T,de){if(1&d&&n.Suo(de,Ue,5),2&d){let Me;n.iGM(Me=n.CRH())&&(T.fromContentOptions=Me)}},viewQuery:function(d,T){if(1&d&&(n.Gf(n.Rgc,5),n.Gf(Ge,5),n.Gf(tt,5),n.Gf(Ue,5)),2&d){let de;n.iGM(de=n.CRH())&&(T.template=de.first),n.iGM(de=n.CRH())&&(T.panel=de.first),n.iGM(de=n.CRH())&&(T.content=de.first),n.iGM(de=n.CRH())&&(T.fromDataSourceOptions=de)}},inputs:{nzWidth:"nzWidth",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzDefaultActiveFirstOption:"nzDefaultActiveFirstOption",nzBackfill:"nzBackfill",compareWith:"compareWith",nzDataSource:"nzDataSource"},outputs:{selectionChange:"selectionChange"},exportAs:["nzAutocomplete"],ngContentSelectors:be,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(d,T){1&d&&(n.F$t(),n.YNc(0,Xe,9,10,"ng-template"))},directives:[Ue,i.mk,i.PC,ze.P,i.tP,i.sg],encapsulation:2,data:{animation:[U.mF]},changeDetection:0}),(0,c.gn)([(0,u.yF)()],m.prototype,"nzDefaultActiveFirstOption",void 0),(0,c.gn)([(0,u.yF)()],m.prototype,"nzBackfill",void 0),m})(),z=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[$.vT,i.ez,ie.U8,me.u5,Oe.T,ze.g,q.o7]]}),m})();var g=o(6949);function ve(m,oe){1&m&&n._UZ(0,"i",5)}function Ee(m,oe){if(1&m){const d=n.EpF();n.ynx(0),n.TgZ(1,"a",6),n.TgZ(2,"nz-auto-option",7),n.NdJ("click",function(){n.CHM(d);const de=n.oxw();return de.searchQuery="",de.refresh()}),n.TgZ(3,"span"),n._UZ(4,"i",8),n._uU(5," \xa0 "),n._UZ(6,"span",9),n._UZ(7,"br"),n._UZ(8,"span",9),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&m){const d=oe.$implicit,T=n.oxw();n.xp6(1),n.Q6J("routerLink",T.urlForResult(d)),n.xp6(1),n.Q6J("nzValue",T.urlForResult(d)),n.xp6(2),n.Q6J("nzType",T.iconNameForResult(d)),n.xp6(2),n.s9C("innerHTML",d.name,n.oJD),n.xp6(2),n.s9C("innerHTML",d.matchingText,n.oJD)}}let Re=(()=>{class m{constructor(d,T){this.gql=d,this.router=T,this.searchQuery=""}ngOnInit(){this.queryRef=this.gql.watch({query:this.searchQuery}),this.searchResults$=this.queryRef.valueChanges.pipe((0,ye.j)("data","search"))}refresh(){this.queryRef.refetch({query:this.searchQuery})}iconNameForResult(d){switch(d.resultType){case se.rZD.EvidenceItem:return"civic:evidence";case se.rZD.VariantGroup:return"civic:variantgroup";default:return`civic:${d.resultType.toLowerCase()}`}}urlForResult(d){let T;switch(d.resultType){case se.rZD.VariantGroup:T="variant-groups";break;case se.rZD.EvidenceItem:T="evidence";break;default:T=`${d.resultType.toLowerCase()}s`}return`/${T}/${d.id}/summary`}quicksearchSelected(d){let T=d.target.value;this.searchQuery="",this.router.navigate([T])}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(se.ghc),n.Y36(t.F0))},m.\u0275cmp=n.Xpm({type:m,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(d,T){if(1&d&&(n.TgZ(0,"nz-input-group",0),n.TgZ(1,"input",1),n.NdJ("ngModelChange",function(Me){return T.searchQuery=Me})("ngModelChange",function(){return T.refresh()})("keyup.enter",function(Me){return T.quicksearchSelected(Me)}),n.qZA(),n.qZA(),n.YNc(2,ve,1,0,"ng-template",null,2,n.W1O),n.TgZ(4,"nz-autocomplete",null,3),n.YNc(6,Ee,9,5,"ng-container",4),n.ALo(7,"ngrxPush"),n.qZA()),2&d){const de=n.MAs(3),Me=n.MAs(5);n.Q6J("nzSuffix",de),n.xp6(1),n.Q6J("ngModel",T.searchQuery)("nzAutocomplete",Me),n.xp6(5),n.Q6J("ngForOf",n.lcZ(7,4,T.searchResults$))}},directives:[q.gB,q.ke,q.Zp,me.Fj,l,me.JJ,me.On,Y.Ls,Ce,i.sg,t.yS,Ue],pipes:[g.fM],styles:[""]}),m})();var We=o(1912),$e=o(4850),Be=o(1059),ke=o(2340),Je=o(8144),qe=o(6042),rt=o(2643),ct=o(2683),Ze=o(3677),ot=o(4401),ut=o(7881),st=o(3640),C=o(8785),ee=o(3434);function x(m,oe){if(1&m&&(n.TgZ(0,"button",25),n._uU(1," Add "),n._UZ(2,"i",26),n.qZA()),2&m){n.oxw(2);const d=n.MAs(14);n.Q6J("nzDropdownMenu",d)}}const pe=function(){return{backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}};function Ne(m,oe){if(1&m&&(n.TgZ(0,"nz-badge",27),n.TgZ(1,"button",28),n._UZ(2,"i",29),n.qZA(),n.qZA()),2&m){const d=n.oxw().ngrxLet,T=n.oxw().ngIf;n.Q6J("nzCount",d)("nzOverflowCount",999)("nzStyle",n.DdM(4,pe)),n.xp6(1),n.MGl("routerLink","/users/",T.id,"/notifications")}}const Fe=function(m){return{"update-coi":m}};function mt(m,oe){if(1&m&&n._UZ(0,"cvc-user-avatar",35),2&m){const d=n.oxw(3).ngIf;n.Q6J("user",d)("size",22)("ngClass",n.VKq(3,Fe,d.invalidCoi))}}function qt(m,oe){if(1&m&&(n.TgZ(0,"div",36),n._uU(1),n.qZA()),2&m){const d=n.oxw(3).ngIf;n.xp6(1),n.Oqu(d.username)}}function gt(m,oe){1&m&&n._UZ(0,"i",26)}function ft(m,oe){if(1&m&&(n.TgZ(0,"button",30),n.TgZ(1,"nz-space",31),n.YNc(2,mt,1,5,"cvc-user-avatar",32),n.YNc(3,qt,2,1,"div",33),n.YNc(4,gt,1,0,"i",34),n.qZA(),n.qZA()),2&m){n.oxw(2);const d=n.MAs(3);n.Q6J("nzDropdownMenu",d)}}function ht(m,oe){1&m&&(n.TgZ(0,"nz-space",21),n.YNc(1,x,3,1,"button",22),n.YNc(2,Ne,3,5,"nz-badge",23),n.YNc(3,ft,5,1,"button",24),n.qZA())}function vt(m,oe){if(1&m){const d=n.EpF();n.TgZ(0,"li",16),n.TgZ(1,"button",37),n.NdJ("click",function(){return n.CHM(d),n.oxw(2).coiUpdateModalVisible=!0}),n._UZ(2,"i",38),n._uU(3," Please update COI statement "),n.qZA(),n.qZA()}}function zt(m,oe){1&m&&n._UZ(0,"li",13)}function _t(m,oe){1&m&&(n.TgZ(0,"li",39),n.TgZ(1,"a",40),n._uU(2," Admin Console "),n.qZA(),n.qZA())}function Ct(m,oe){if(1&m){const d=n.EpF();n.TgZ(0,"li",16),n.TgZ(1,"a",41),n.NdJ("click",function(){return n.CHM(d),n.oxw(2).addVariantModalVisible=!0}),n._uU(2," Variant "),n.qZA(),n.qZA()}}const yt=function(m){return["/users",m]};function Tt(m,oe){if(1&m){const d=n.EpF();n.ynx(0),n.YNc(1,ht,4,0,"nz-space",6),n.TgZ(2,"nz-dropdown-menu",null,7),n.TgZ(4,"ul",8),n.YNc(5,vt,4,0,"li",9),n.YNc(6,zt,1,0,"li",10),n.TgZ(7,"li",11),n._uU(8," Your Profile "),n.qZA(),n.YNc(9,_t,3,0,"li",12),n._UZ(10,"li",13),n.TgZ(11,"li",14),n.NdJ("click",function(){return n.CHM(d),n.oxw().signOut()}),n._uU(12,"Sign Out"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(13,"nz-dropdown-menu",null,15),n.TgZ(15,"ul",8),n.TgZ(16,"li",16),n.TgZ(17,"a",17),n._uU(18," Evidence Item "),n.qZA(),n.qZA(),n.TgZ(19,"li",16),n.TgZ(20,"a",18),n._uU(21," Assertion "),n.qZA(),n.qZA(),n.TgZ(22,"li",16),n.TgZ(23,"a",19),n._uU(24," Source Suggestion "),n.qZA(),n.qZA(),n.YNc(25,Ct,3,0,"li",9),n.TgZ(26,"li",16),n.TgZ(27,"a",20),n._uU(28," Variant Group "),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&m){const d=oe.ngIf,T=n.oxw();n.xp6(1),n.Q6J("ngrxLet",T.unreadCount$),n.xp6(4),n.Q6J("ngIf",d.invalidCoi),n.xp6(1),n.Q6J("ngIf",d.invalidCoi),n.xp6(1),n.Q6J("routerLink",n.VKq(6,yt,d.id)),n.xp6(2),n.Q6J("ngIf",d.isAdmin),n.xp6(16),n.Q6J("ngIf",d.isEditor)}}function It(m,oe){1&m&&(n.TgZ(0,"span"),n._uU(1,"Update your Conflict of Interest Statement"),n.qZA())}function Et(m,oe){if(1&m){const d=n.EpF();n.TgZ(0,"cvc-user-coi-form",42),n.NdJ("coiUpdatedEvent",function(){return n.CHM(d),n.oxw().coiUpdated()}),n.qZA()}}function Dt(m,oe){1&m&&(n.TgZ(0,"span"),n._uU(1,"Add New Variant"),n.qZA())}function St(m,oe){1&m&&n._UZ(0,"cvc-variant-submit-form")}let en=(()=>{class m{constructor(d,T){this.queryService=d,this.unreadCountGql=T,this.coiUpdateModalVisible=!1,this.addVariantModalVisible=!1,this.viewer$=this.queryService.viewer$,this.unreadCount$=ke.N.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,$e.U)(({data:de})=>de.notifications.unreadCount),(0,Be.O)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,$e.U)(({data:de})=>de.notifications.unreadCount),(0,Be.O)(0))}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(s.a),n.Y36(se.Kmw))},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-viewer-button"]],decls:12,vars:11,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],["variantModalTitle",""],["variantModalContent",""],["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,"click"],[3,"coiUpdatedEvent"]],template:function(d,T){if(1&d&&(n.YNc(0,Tt,29,8,"ng-container",0),n.ALo(1,"ngrxPush"),n.TgZ(2,"nz-modal",1),n.NdJ("nzVisibleChange",function(Me){return T.coiUpdateModalVisible=Me})("nzOnCancel",function(){return T.handleCoiModalCancel()}),n.YNc(3,It,2,0,"ng-template",null,2,n.W1O),n.YNc(5,Et,1,0,"ng-template",null,3,n.W1O),n.qZA(),n.TgZ(7,"nz-modal",1),n.NdJ("nzVisibleChange",function(Me){return T.addVariantModalVisible=Me})("nzOnCancel",function(){return T.addVariantModalVisible=!1}),n.YNc(8,Dt,2,0,"ng-template",null,4,n.W1O),n.YNc(10,St,1,0,"ng-template",null,5,n.W1O),n.qZA()),2&d){const de=n.MAs(4),Me=n.MAs(6),et=n.MAs(9),Bt=n.MAs(11);n.Q6J("ngIf",n.lcZ(1,9,T.viewer$)),n.xp6(2),n.Q6J("nzVisible",T.coiUpdateModalVisible)("nzContent",Me)("nzTitle",de)("nzFooter",null),n.xp6(5),n.Q6J("nzVisible",T.addVariantModalVisible)("nzContent",Bt)("nzTitle",et)("nzFooter",null)}},directives:[i.O5,g.eJ,Je.NU,Je.$1,qe.ix,rt.dQ,ct.w,Ze.wA,Ze.cm,Y.Ls,ot.x7,t.rH,ut.L,i.mk,Ze.RR,I.wO,I.r9,I.YV,t.yS,st.du,C.t,ee.G],pipes:[g.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}"]}),m})();function Ot(m,oe){1&m&&n._UZ(0,"img",58)}function Mt(m,oe){1&m&&n._UZ(0,"img",59)}function At(m,oe){1&m&&n._UZ(0,"cvc-login-button")}function Nt(m,oe){1&m&&n._UZ(0,"cvc-viewer-button")}const at=function(m){return{"is-collapsed":m}},xt=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class m{constructor(d){this.viewerService=d,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 m.\u0275fac=function(d){return new(d||m)(n.Y36(s.a))},m.\u0275cmp=n.Xpm({type:m,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(d,T){1&d&&(n.TgZ(0,"nz-layout",0),n.TgZ(1,"nz-sider",1),n.NdJ("nzCollapsedChange",function(Me){return T.isCollapsed=Me}),n.TgZ(2,"a",2),n.TgZ(3,"div",3),n.YNc(4,Ot,1,0,"img",4),n.YNc(5,Mt,1,0,"img",5),n.qZA(),n.qZA(),n.TgZ(6,"ul",6),n.TgZ(7,"li",7),n.TgZ(8,"ul"),n.TgZ(9,"li",8),n._UZ(10,"i",9),n.TgZ(11,"span"),n.TgZ(12,"a",10),n._uU(13,"Assertions"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(14,"li",8),n._UZ(15,"i",11),n.TgZ(16,"span"),n.TgZ(17,"a",12),n._uU(18,"Evidence"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(19,"li",8),n._UZ(20,"i",13),n.TgZ(21,"span"),n.TgZ(22,"a",14),n._uU(23,"Genes"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(24,"li",8),n._UZ(25,"i",15),n.TgZ(26,"span"),n.TgZ(27,"a",16),n._uU(28,"Variants"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(29,"li",8),n._UZ(30,"i",17),n.TgZ(31,"span"),n.TgZ(32,"a",18),n._uU(33,"Variant Groups"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(34,"li",8),n._UZ(35,"i",19),n.TgZ(36,"span"),n.TgZ(37,"a",20),n._uU(38,"Clinical Trials"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(39,"li",8),n._UZ(40,"i",21),n.TgZ(41,"span"),n.TgZ(42,"a",22),n._uU(43,"Diseases"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(44,"li",8),n._UZ(45,"i",23),n.TgZ(46,"span"),n.TgZ(47,"a",24),n._uU(48,"Drugs"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(49,"li",8),n._UZ(50,"i",25),n.TgZ(51,"span"),n.TgZ(52,"a",26),n._uU(53,"Phenotypes"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(54,"li",8),n._UZ(55,"i",27),n.TgZ(56,"span"),n.TgZ(57,"a",28),n._uU(58,"Sources"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(59,"li",8),n._UZ(60,"i",29),n.TgZ(61,"span"),n.TgZ(62,"a",30),n._uU(63,"Variant Types"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(64,"li",7),n.TgZ(65,"ul"),n.TgZ(66,"li",8),n._UZ(67,"i",31),n.TgZ(68,"span"),n.TgZ(69,"a",32),n._uU(70," Activity "),n.qZA(),n.qZA(),n.qZA(),n.TgZ(71,"li",8),n._UZ(72,"i",33),n.TgZ(73,"span"),n.TgZ(74,"a",34),n._uU(75,"Queues"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(76,"li",7),n.TgZ(77,"ul"),n.TgZ(78,"li",8),n._UZ(79,"i",35),n.TgZ(80,"span"),n.TgZ(81,"a",36),n._uU(82,"Contributors"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(83,"li",8),n._UZ(84,"i",37),n.TgZ(85,"span"),n.TgZ(86,"a",38),n._uU(87,"Organizations"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(88,"li",7),n.TgZ(89,"ul"),n.TgZ(90,"li",8),n._UZ(91,"i",39),n.TgZ(92,"span"),n.TgZ(93,"a",40),n._uU(94,"Data Releases"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(95,"div",41),n._UZ(96,"img",42),n._UZ(97,"img",43),n.qZA(),n.qZA(),n.TgZ(98,"nz-layout",44),n.TgZ(99,"nz-header"),n.TgZ(100,"div",45),n.TgZ(101,"div",46),n.TgZ(102,"span",47),n.NdJ("click",function(){return T.isCollapsed=!T.isCollapsed}),n._UZ(103,"i",48),n.qZA(),n.qZA(),n.TgZ(104,"div",49),n._UZ(105,"cvc-quicksearch"),n.qZA(),n.TgZ(106,"div",50),n.TgZ(107,"ul",51),n.TgZ(108,"li",52),n.TgZ(109,"a",53),n._uU(110,"Home"),n.qZA(),n.qZA(),n.TgZ(111,"li",52),n.TgZ(112,"a",54),n._uU(113,"About CIViC"),n.qZA(),n.qZA(),n.TgZ(114,"li",52),n.TgZ(115,"a",55),n._uU(116,"Help"),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(117,"div",56),n.YNc(118,At,1,0,"cvc-login-button",57),n.ALo(119,"async"),n.YNc(120,Nt,1,0,"cvc-viewer-button",57),n.ALo(121,"async"),n.qZA(),n.qZA(),n.qZA(),n.TgZ(122,"nz-content"),n._UZ(123,"router-outlet"),n.qZA(),n.qZA(),n.qZA()),2&d&&(n.xp6(1),n.Q6J("nzWidth",170)("nzCollapsedWidth",80)("nzCollapsed",T.isCollapsed)("nzTrigger",null),n.xp6(2),n.Q6J("ngClass",n.VKq(38,at,T.isCollapsed)),n.xp6(1),n.Q6J("ngIf",!T.isCollapsed),n.xp6(1),n.Q6J("ngIf",T.isCollapsed),n.xp6(1),n.Q6J("ngClass",n.VKq(40,at,T.isCollapsed))("nzInlineCollapsed",T.isCollapsed),n.xp6(1),n.Q6J("nzTitle",T.isCollapsed?"KNOW":"KNOWLEDGEBASE"),n.xp6(2),n.Q6J("nzTooltipTitle",T.isCollapsed?"Assertions":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Evidence":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Genes":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Variants":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Variant Groups":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Clinical Trials":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Diseases":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Drugs":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Phenotypes":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Sources":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Variant Types":""),n.xp6(5),n.Q6J("nzTitle",T.isCollapsed?"CURATE":"CURATION"),n.xp6(2),n.Q6J("nzTooltipTitle",T.isCollapsed?"Activity":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Pending Queues":""),n.xp6(5),n.Q6J("nzTitle",T.isCollapsed?"COMM":"COMMUNITY"),n.xp6(2),n.Q6J("nzTooltipTitle",T.isCollapsed?"Users":""),n.xp6(5),n.Q6J("nzTooltipTitle",T.isCollapsed?"Organizations":""),n.xp6(5),n.Q6J("nzTitle",T.isCollapsed?"RES":"RESOURCES"),n.xp6(2),n.Q6J("nzTooltipTitle",T.isCollapsed?"Data Releases":""),n.xp6(5),n.Q6J("ngClass",n.VKq(42,at,T.isCollapsed)),n.xp6(3),n.Q6J("ngClass",n.VKq(44,at,T.isCollapsed)),n.xp6(5),n.Q6J("nzType",T.isCollapsed?"menu-unfold":"menu-fold"),n.xp6(15),n.Q6J("ngIf",n.lcZ(119,34,T.signedOut$)),n.xp6(2),n.Q6J("ngIf",n.lcZ(121,36,T.signedIn$)))},directives:[K,p,t.yS,i.mk,i.O5,I.wO,I.uA,I.r9,X.SY,Y.Ls,L,xe.SK,xe.t3,Re,We.s,en,M,t.lC],pipes:[i.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}"]}),m})(),children:[{path:"assertions",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(2826),o.e(305),o.e(3883),o.e(4184),o.e(2033),o.e(8829),o.e(8592),o.e(4189)]).then(o.bind(o,136)).then(m=>m.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"clinical-trials",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(305),o.e(7717),o.e(9750)]).then(o.bind(o,1838)).then(m=>m.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(2826),o.e(305),o.e(3883),o.e(8369)]).then(o.bind(o,233)).then(m=>m.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"drugs",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(2826),o.e(305),o.e(3883),o.e(2678)]).then(o.bind(o,1592)).then(m=>m.DrugsModule),data:{breadcrumb:"Drugs"}},{path:"evidence",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(305),o.e(8383)]).then(o.bind(o,7727)).then(m=>m.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",loadChildren:()=>Promise.all([o.e(7064),o.e(5193),o.e(5839),o.e(392),o.e(681)]).then(o.bind(o,681)).then(m=>m.GenesModule),data:{breadcrumb:"Genes"}},{path:"organizations",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(2826),o.e(305),o.e(6724),o.e(55),o.e(9716),o.e(3883),o.e(5291),o.e(392),o.e(4726),o.e(376),o.e(8592),o.e(9039)]).then(o.bind(o,3073)).then(m=>m.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(2826),o.e(305),o.e(3883),o.e(6104)]).then(o.bind(o,1076)).then(m=>m.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(2826),o.e(305),o.e(6724),o.e(55),o.e(4184),o.e(2043),o.e(4726),o.e(2033),o.e(7717),o.e(8592),o.e(727)]).then(o.bind(o,359)).then(m=>m.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(2826),o.e(305),o.e(6724),o.e(55),o.e(3883),o.e(4726),o.e(97)]).then(o.bind(o,7563)).then(m=>m.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5193),o.e(5839),o.e(9001),o.e(2826),o.e(305),o.e(6724),o.e(55),o.e(9716),o.e(3883),o.e(5291),o.e(4726),o.e(376),o.e(8592),o.e(8486)]).then(o.bind(o,3218)).then(m=>m.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([o.e(7064),o.e(6256),o.e(5839),o.e(6029)]).then(o.bind(o,79)).then(m=>m.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([o.e(7064),o.e(5193),o.e(5839),o.e(392),o.e(1750),o.e(4233)]).then(o.bind(o,9221)).then(m=>m.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([o.e(7064),o.e(5193),o.e(5839),o.e(392),o.e(1750),o.e(2869)]).then(o.bind(o,1875)).then(m=>m.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([o.e(6256),o.e(5193),o.e(9001),o.e(2826),o.e(6724),o.e(9716),o.e(376),o.e(6315)]).then(o.bind(o,4340)).then(m=>m.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([o.e(7064),o.e(5839),o.e(4579)]).then(o.bind(o,4579)).then(m=>m.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>Promise.all([o.e(7064),o.e(4038)]).then(o.bind(o,4038)).then(m=>m.PagesModule),data:{breadcrumb:"Pages"}}]}];let Lt=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[t.Bz.forChild(xt)],t.Bz]}),m})();var Pt=o(3618),Ft=o(5109),Wt=o(4546);let kt=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[i.ez,me.u5,t.Bz,g.WG,q.o7,Wt.U5,Y.PV,z]]}),m})();var Jt=o(1844),Qt=o(5473),jt=o(330),Kt=o(7058);let Ht=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[i.ez,g.WG,Ze.b1,t.Bz,qe.sL,Je.zf,Y.PV,ot.mS,X.cg,st.Qp,Qt.H,jt.e,Kt.e]]}),m})(),Zt=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[i.ez,Lt,Y.PV,xe.Jb,k,I.ip,X.cg,Pt.ZJ,Ft.s,Jt.B,Ht,kt]]}),m})()},6792:(Te,te,o)=>{o.d(te,{g:()=>N});var i=o(353),n=o(3489),s=o(9312);function N(u,I=i.P){const Y=function t(u){return u instanceof Date&&!isNaN(+u)}(u)?+u-I.now():Math.abs(u);return $=>$.lift(new _(Y,I))}class _{constructor(I,O){this.delay=I,this.scheduler=O}call(I,O){return O.subscribe(new c(I,this.delay,this.scheduler))}}class c extends n.L{constructor(I,O,Y){super(I),this.delay=O,this.scheduler=Y,this.queue=[],this.active=!1,this.errored=!1}static dispatch(I){const O=I.source,Y=O.queue,$=I.scheduler,ne=I.destination;for(;Y.length>0&&Y[0].time-$.now()<=0;)Y.shift().notification.observe(ne);if(Y.length>0){const R=Math.max(0,Y[0].time-$.now());this.schedule(I,R)}else this.unsubscribe(),O.active=!1}_schedule(I){this.active=!0,this.destination.add(I.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:I}))}scheduleNotification(I){if(!0===this.errored)return;const O=this.scheduler,Y=new J(O.now()+this.delay,I);this.queue.push(Y),!1===this.active&&this._schedule(O)}_next(I){this.scheduleNotification(s.P.createNext(I))}_error(I){this.errored=!0,this.queue=[],this.destination.error(I),this.unsubscribe()}_complete(){this.scheduleNotification(s.P.createComplete()),this.unsubscribe()}}class J{constructor(I,O){this.time=I,this.notification=O}}},373:(Te,te,o)=>{o.d(te,{j:()=>t});var i=o(4850);function t(...s){const N=s.length;if(0===N)throw new Error("list of properties cannot be empty.");return _=>(0,i.U)(function n(s,N){return c=>{let J=c;for(let u=0;u{function i(E){return E!==String(parseFloat(E))}o.d(te,{o6:()=>F});var N=Object.getOwnPropertyNames?function t(E){return Object.getOwnPropertyNames(E).filter(function(h){return E.propertyIsEnumerable(h)&&i(h)})}:Object.keys?function n(E){return Object.keys(E).filter(i)}:function s(E){var h=[];for(var M in E)E.hasOwnProperty(M)&&E.propertyIsEnumerable(M)&&i(M)&&h.push(M);return h},_=function(){function E(h){this.enumObj=h,this.keysList=Object.freeze(N(h));for(var M=this.keysList.length,P=new Array(M),L=new Map,B=0;B=M.length,value:M.keysList[P]};return++P,B}})[Symbol.iterator]=function(){return this},h},E.prototype.values=function(){var h,M=this,P=0;return(h={next:function(){var B={done:P>=M.length,value:M.valuesList[P]};return++P,B}})[Symbol.iterator]=function(){return this},h},E.prototype.entries=function(){var h,M=this,P=0;return(h={next:function(){var B={done:P>=M.length,value:M[P]};return++P,B}})[Symbol.iterator]=function(){return this},h},E.prototype[Symbol.iterator]=function(){return this.entries()},E.prototype.forEach=function(h,M){for(var P=this.length,L=0;L{o.d(te,{$:()=>se,j:()=>ye});var i=o(655),t=o(9808),n=o(5e3),s=o(2654),N=o(839),_=o(8929),c=o(6787),J=o(3753),u=o(3489),I=o(353);const O={leading:!0,trailing:!1};class le{constructor(me,ie,ze,Oe){this.duration=me,this.scheduler=ie,this.leading=ze,this.trailing=Oe}call(me,ie){return ie.subscribe(new H(me,this.duration,this.scheduler,this.leading,this.trailing))}}class H extends u.L{constructor(me,ie,ze,Oe,V){super(me),this.duration=ie,this.scheduler=ze,this.leading=Oe,this.trailing=V,this._hasTrailingValue=!1,this._trailingValue=null}_next(me){this.throttled?this.trailing&&(this._trailingValue=me,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Z,this.duration,{subscriber:this})),this.leading?this.destination.next(me):this.trailing&&(this._trailingValue=me,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const me=this.throttled;me&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),me.unsubscribe(),this.remove(me),this.throttled=null)}}function Z(q){const{subscriber:me}=q;me.clearThrottle()}var w=o(7625),A=o(4850),b=o(9439),ae=o(1721),F=o(4090),E=o(925),h=o(5577),M=o(226);const P=["fixedEl"],L=["*"];var B=(()=>{return(q=B||(B={})).resize="resize",q.scroll="scroll",q.touchstart="touchstart",q.touchmove="touchmove",q.touchend="touchend",q.pageshow="pageshow",q.load="LOAD",B;var q})();function K(q){return function p(q){return"undefined"!=typeof window&&q===window}(q)?{top:0,left:0,bottom:0}:q.getBoundingClientRect()}const X="ant-affix";let se=(()=>{class q{constructor(ie,ze,Oe,V,fe,G,he,ce,De,Pe){this.nzConfigService=Oe,this.scrollSrv=V,this.ngZone=fe,this.platform=G,this.renderer=he,this.nzResizeObserver=ce,this.cdr=De,this.directionality=Pe,this._nzModuleName="affix",this.nzChange=new n.vpe,this.dir="ltr",this.positionChangeSubscription=s.w.EMPTY,this.offsetChanged$=new N.t(1),this.destroy$=new _.xQ,this.placeholderNode=ie.nativeElement,this.document=ze}get target(){const ie=this.nzTarget;return("string"==typeof ie?this.document.querySelector(ie):ie)||window}ngOnInit(){var ie;null===(ie=this.directionality.change)||void 0===ie||ie.pipe((0,w.R)(this.destroy$)).subscribe(ze=>{this.dir=ze,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(ie){const{nzOffsetBottom:ze,nzOffsetTop:Oe,nzTarget:V}=ie;(ze||Oe)&&this.offsetChanged$.next(),V&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();const ie=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>(0,c.T)(...Object.keys(B).map(ze=>(0,J.R)(this.target,ze)),this.offsetChanged$.pipe((0,A.U)(()=>({}))),this.nzResizeObserver.observe(ie)).pipe(function R(q,me=I.P,ie=O){return ze=>ze.lift(new le(q,me,ie.leading,ie.trailing))}(20,void 0,{trailing:!0}),(0,w.R)(this.destroy$)).subscribe(ze=>this.updatePosition(ze))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}getOffset(ie,ze){const Oe=ie.getBoundingClientRect(),V=K(ze),fe=this.scrollSrv.getScroll(ze,!0),G=this.scrollSrv.getScroll(ze,!1),he=this.document.body;return{top:Oe.top-V.top+fe-(he.clientTop||0),left:Oe.left-V.left+G-(he.clientLeft||0),width:Oe.width,height:Oe.height}}setAffixStyle(ie,ze){const Oe=this.affixStyle,V=this.target===window;if("scroll"===ie.type&&Oe&&ze&&V||(0,ae.wU)(Oe,ze))return;const fe=!!ze,G=this.fixedEl.nativeElement;this.renderer.setStyle(G,"cssText",(0,ae.GM)(ze)),this.affixStyle=ze,fe?G.classList.add(X):G.classList.remove(X),this.updateRtlClass(),(ze&&!Oe||!ze&&Oe)&&this.nzChange.emit(fe)}setPlaceholderStyle(ie){(0,ae.wU)(ie,this.placeholderStyle)||(this.renderer.setStyle(this.placeholderNode,"cssText",(0,ae.GM)(ie)),this.placeholderStyle=ie)}syncPlaceholderStyle(ie){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;const ze={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(ie,Object.assign(Object.assign({},this.affixStyle),ze)),this.setPlaceholderStyle(ze)}updatePosition(ie){if(!this.platform.isBrowser)return;const ze=this.target;let Oe=this.nzOffsetTop;const V=this.scrollSrv.getScroll(ze,!0),fe=this.getOffset(this.placeholderNode,ze),G=this.fixedEl.nativeElement,he={width:G.offsetWidth,height:G.offsetHeight},ce={top:!1,bottom:!1};"number"!=typeof Oe&&"number"!=typeof this.nzOffsetBottom?(ce.top=!0,Oe=0):(ce.top="number"==typeof Oe,ce.bottom="number"==typeof this.nzOffsetBottom);const De=K(ze),Pe=ze.innerHeight||ze.clientHeight;if(V>=fe.top-Oe&&ce.top){const re=fe.width;this.setAffixStyle(ie,{position:"fixed",top:De.top+Oe,left:De.left+fe.left,width:re}),this.setPlaceholderStyle({width:re,height:he.height})}else if(V<=fe.top+he.height+this.nzOffsetBottom-Pe&&ce.bottom){const re=ze===window?0:window.innerHeight-De.bottom,Ie=fe.width;this.setAffixStyle(ie,{position:"fixed",bottom:re+this.nzOffsetBottom,left:De.left+fe.left,width:Ie}),this.setPlaceholderStyle({width:Ie,height:fe.height})}else ie.type===B.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(ie,Object.assign(Object.assign({},this.affixStyle),{width:this.placeholderNode.offsetWidth})):this.setAffixStyle(ie),this.setPlaceholderStyle();"resize"===ie.type&&this.syncPlaceholderStyle(ie)}updateRtlClass(){const ie=this.fixedEl.nativeElement;"rtl"===this.dir&&ie.classList.contains(X)?ie.classList.add(`${X}-rtl`):ie.classList.remove(`${X}-rtl`)}}return q.\u0275fac=function(ie){return new(ie||q)(n.Y36(n.SBq),n.Y36(t.K0),n.Y36(b.jY),n.Y36(F.MF),n.Y36(n.R0b),n.Y36(E.t4),n.Y36(n.Qsj),n.Y36(h.D3),n.Y36(n.sBO),n.Y36(M.Is,8))},q.\u0275cmp=n.Xpm({type:q,selectors:[["nz-affix"]],viewQuery:function(ie,ze){if(1&ie&&n.Gf(P,7),2&ie){let Oe;n.iGM(Oe=n.CRH())&&(ze.fixedEl=Oe.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[n.TTD],ngContentSelectors:L,decls:3,vars:0,consts:[["fixedEl",""]],template:function(ie,ze){1&ie&&(n.F$t(),n.TgZ(0,"div",null,0),n.Hsn(2),n.qZA())},encapsulation:2,changeDetection:0}),(0,i.gn)([(0,b.oS)(),(0,ae.Rn)(void 0)],q.prototype,"nzOffsetTop",void 0),(0,i.gn)([(0,b.oS)(),(0,ae.Rn)(void 0)],q.prototype,"nzOffsetBottom",void 0),q})(),ye=(()=>{class q{}return q.\u0275fac=function(ie){return new(ie||q)},q.\u0275mod=n.oAB({type:q}),q.\u0275inj=n.cJS({imports:[[M.vT,t.ez,E.ud]]}),q})()},6699:(Te,te,o)=>{o.d(te,{Dz:()=>R,Rt:()=>H});var i=o(655),t=o(5e3),n=o(9439),s=o(1721),N=o(925),_=o(9808),c=o(647),J=o(226);const u=["textEl"];function I(Z,w){if(1&Z&&t._UZ(0,"i",3),2&Z){const A=t.oxw();t.Q6J("nzType",A.nzIcon)}}function O(Z,w){if(1&Z){const A=t.EpF();t.TgZ(0,"img",4),t.NdJ("error",function(ae){return t.CHM(A),t.oxw().imgError(ae)}),t.qZA()}if(2&Z){const A=t.oxw();t.Q6J("src",A.nzSrc,t.LSH),t.uIk("srcset",A.nzSrcSet,t.LSH)("alt",A.nzAlt)}}function Y(Z,w){if(1&Z&&(t.TgZ(0,"span",5,6),t._uU(2),t.qZA()),2&Z){const A=t.oxw();t.Q6J("ngStyle",A.textStyles),t.xp6(2),t.Oqu(A.nzText)}}let R=(()=>{class Z{constructor(A,b,ae,F){this.nzConfigService=A,this.elementRef=b,this.cdr=ae,this.platform=F,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new t.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(A){this.nzError.emit(A),A.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 A=this.textEl.nativeElement.offsetWidth,b=this.el.getBoundingClientRect().width,ae=2*this.nzGap{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return Z.\u0275fac=function(A){return new(A||Z)(t.Y36(n.jY),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(N.t4))},Z.\u0275cmp=t.Xpm({type:Z,selectors:[["nz-avatar"]],viewQuery:function(A,b){if(1&A&&t.Gf(u,5),2&A){let ae;t.iGM(ae=t.CRH())&&(b.textEl=ae.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(A,b){2&A&&(t.Udp("width",b.customSize)("height",b.customSize)("line-height",b.customSize)("font-size",b.hasIcon&&b.customSize?b.nzSize/2:null,"px"),t.ekj("ant-avatar-lg","large"===b.nzSize)("ant-avatar-sm","small"===b.nzSize)("ant-avatar-square","square"===b.nzShape)("ant-avatar-circle","circle"===b.nzShape)("ant-avatar-icon",b.nzIcon)("ant-avatar-image",b.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[t.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(A,b){1&A&&(t.YNc(0,I,1,1,"i",0),t.YNc(1,O,1,3,"img",1),t.YNc(2,Y,3,2,"span",2)),2&A&&(t.Q6J("ngIf",b.nzIcon&&b.hasIcon),t.xp6(1),t.Q6J("ngIf",b.nzSrc&&b.hasSrc),t.xp6(1),t.Q6J("ngIf",b.nzText&&b.hasText))},directives:[_.O5,c.Ls,_.PC],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,n.oS)()],Z.prototype,"nzShape",void 0),(0,i.gn)([(0,n.oS)()],Z.prototype,"nzSize",void 0),(0,i.gn)([(0,n.oS)(),(0,s.Rn)()],Z.prototype,"nzGap",void 0),Z})(),H=(()=>{class Z{}return Z.\u0275fac=function(A){return new(A||Z)},Z.\u0275mod=t.oAB({type:Z}),Z.\u0275inj=t.cJS({imports:[[J.vT,_.ez,c.PV,N.ud]]}),Z})()},4401:(Te,te,o)=>{o.d(te,{x7:()=>P,mS:()=>B,F9:()=>L});var i=o(655),t=o(5e3),n=o(8929),s=o(7625),N=o(8076),_=o(9439),c=o(1721),J=o(226),u=o(4832),I=o(9808),O=o(969),Y=o(7144);function $(p,K){if(1&p&&(t.TgZ(0,"p",6),t._uU(1),t.qZA()),2&p){const k=K.$implicit,X=t.oxw(2).index,xe=t.oxw(2);t.ekj("current",k===xe.countArray[X]),t.xp6(1),t.hij(" ",k," ")}}function ne(p,K){if(1&p&&(t.ynx(0),t.YNc(1,$,2,3,"p",5),t.BQk()),2&p){const k=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",k.countSingleArray)}}function R(p,K){if(1&p&&(t.TgZ(0,"span",3),t.YNc(1,ne,2,1,"ng-container",4),t.qZA()),2&p){const k=K.index,X=t.oxw(2);t.Udp("transform","translateY("+100*-X.countArray[k]+"%)"),t.Q6J("nzNoAnimation",X.noAnimation),t.xp6(1),t.Q6J("ngIf",!X.nzDot&&void 0!==X.countArray[k])}}function le(p,K){if(1&p&&(t.ynx(0),t.YNc(1,R,2,4,"span",2),t.BQk()),2&p){const k=t.oxw();t.xp6(1),t.Q6J("ngForOf",k.maxNumberArray)}}function H(p,K){if(1&p&&t._uU(0),2&p){const k=t.oxw();t.hij("",k.nzOverflowCount,"+")}}function Z(p,K){if(1&p&&(t.ynx(0),t._uU(1),t.BQk()),2&p){const k=t.oxw(2);t.xp6(1),t.Oqu(k.nzText)}}function w(p,K){if(1&p&&(t.ynx(0),t._UZ(1,"span",2),t.TgZ(2,"span",3),t.YNc(3,Z,2,1,"ng-container",1),t.qZA(),t.BQk()),2&p){const k=t.oxw();t.xp6(1),t.Gre("ant-badge-status-dot ant-badge-status-",k.nzStatus||k.presetColor,""),t.Udp("background",!k.presetColor&&k.nzColor),t.Q6J("ngStyle",k.nzStyle),t.xp6(2),t.Q6J("nzStringTemplateOutlet",k.nzText)}}function A(p,K){if(1&p&&t._UZ(0,"nz-badge-sup",5),2&p){const k=t.oxw(2);t.Q6J("nzOffset",k.nzOffset)("nzTitle",k.nzTitle)("nzStyle",k.nzStyle)("nzDot",k.nzDot)("nzOverflowCount",k.nzOverflowCount)("disableAnimation",!!(k.nzStandalone||k.nzStatus||k.nzColor||null!=k.noAnimation&&k.noAnimation.nzNoAnimation))("nzCount",k.nzCount)("noAnimation",!(null==k.noAnimation||!k.noAnimation.nzNoAnimation))}}function b(p,K){if(1&p&&(t.ynx(0),t.YNc(1,A,1,8,"nz-badge-sup",4),t.BQk()),2&p){const k=t.oxw();t.xp6(1),t.Q6J("ngIf",k.showSup)}}const ae=["*"];function F(p,K){if(1&p&&(t.ynx(0),t._uU(1),t.BQk()),2&p){const k=t.oxw();t.xp6(1),t.Oqu(k.nzText)}}const E=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let h=(()=>{class p{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(k){const{nzOverflowCount:X,nzCount:xe}=k;xe&&"number"==typeof xe.currentValue&&(this.count=Math.max(0,xe.currentValue),this.countArray=this.count.toString().split("").map(se=>+se)),X&&this.generateMaxNumberArray()}}return p.\u0275fac=function(k){return new(k||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:15,hostBindings:function(k,X){2&k&&(t.uIk("title",null===X.nzTitle?"":X.nzTitle||X.nzCount),t.d8E("@.disabled",X.disableAnimation)("@zoomBadgeMotion",void 0),t.Akn(X.nzStyle),t.Udp("right",X.nzOffset&&X.nzOffset[0]?-X.nzOffset[0]:null,"px")("margin-top",X.nzOffset&&X.nzOffset[1]?X.nzOffset[1]:null,"px"),t.ekj("ant-badge-count",!X.nzDot)("ant-badge-dot",X.nzDot)("ant-badge-multiple-words",X.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:"nzOverflowCount",disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation"},exportAs:["nzBadgeSup"],features:[t.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(k,X){if(1&k&&(t.YNc(0,le,2,1,"ng-container",0),t.YNc(1,H,1,1,"ng-template",null,1,t.W1O)),2&k){const xe=t.MAs(2);t.Q6J("ngIf",X.count<=X.nzOverflowCount)("ngIfElse",xe)}},directives:[I.O5,I.sg,u.P],encapsulation:2,data:{animation:[N.Ev]},changeDetection:0}),p})(),P=(()=>{class p{constructor(k,X,xe,se,ye,q){this.nzConfigService=k,this.renderer=X,this.cdr=xe,this.elementRef=se,this.directionality=ye,this.noAnimation=q,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new n.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 k;null===(k=this.directionality.change)||void 0===k||k.pipe((0,s.R)(this.destroy$)).subscribe(X=>{this.dir=X,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(k){const{nzColor:X,nzShowDot:xe,nzDot:se,nzCount:ye,nzShowZero:q}=k;X&&(this.presetColor=this.nzColor&&-1!==E.indexOf(this.nzColor)?this.nzColor:null),(xe||se||ye||q)&&(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 p.\u0275fac=function(k){return new(k||p)(t.Y36(_.jY),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(J.Is,8),t.Y36(u.P,9))},p.\u0275cmp=t.Xpm({type:p,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(k,X){2&k&&t.ekj("ant-badge-status",X.nzStatus)("ant-badge-not-a-wrapper",!!(X.nzStandalone||X.nzStatus||X.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:[t.TTD],ngContentSelectors:ae,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(k,X){1&k&&(t.F$t(),t.YNc(0,w,4,7,"ng-container",0),t.Hsn(1),t.YNc(2,b,2,1,"ng-container",1)),2&k&&(t.Q6J("ngIf",X.nzStatus||X.nzColor),t.xp6(2),t.Q6J("nzStringTemplateOutlet",X.nzCount))},directives:[h,I.O5,I.PC,O.f],encapsulation:2,data:{animation:[N.Ev]},changeDetection:0}),(0,i.gn)([(0,c.yF)()],p.prototype,"nzShowZero",void 0),(0,i.gn)([(0,c.yF)()],p.prototype,"nzShowDot",void 0),(0,i.gn)([(0,c.yF)()],p.prototype,"nzStandalone",void 0),(0,i.gn)([(0,c.yF)()],p.prototype,"nzDot",void 0),(0,i.gn)([(0,_.oS)()],p.prototype,"nzOverflowCount",void 0),(0,i.gn)([(0,_.oS)()],p.prototype,"nzColor",void 0),p})(),L=(()=>{class p{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(k){const{nzColor:X}=k;X&&(this.presetColor=this.nzColor&&-1!==E.indexOf(this.nzColor)?this.nzColor:null)}}return p.\u0275fac=function(k){return new(k||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],features:[t.TTD],ngContentSelectors:ae,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"]],template:function(k,X){1&k&&(t.F$t(),t.Hsn(0),t.TgZ(1,"div",0),t.YNc(2,F,2,1,"ng-container",1),t._UZ(3,"div",2),t.qZA()),2&k&&(t.xp6(1),t.Tol(X.presetColor&&"ant-ribbon-color-"+X.presetColor),t.Udp("background-color",!X.presetColor&&X.nzColor),t.ekj("ant-ribbon-placement-end","end"===X.nzPlacement)("ant-ribbon-placement-start","start"===X.nzPlacement),t.xp6(1),t.Q6J("nzStringTemplateOutlet",X.nzText),t.xp6(1),t.Udp("color",!X.presetColor&&X.nzColor))},directives:[O.f],encapsulation:2,changeDetection:0}),p})(),B=(()=>{class p{}return p.\u0275fac=function(k){return new(k||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[[J.vT,I.ez,Y.Q8,O.T,u.g]]}),p})()},7484:(Te,te,o)=>{o.d(te,{bd:()=>ie,vh:()=>Oe,_i:()=>ye});var i=o(655),t=o(5e3),n=o(1721),s=o(8929),N=o(7625),_=o(9439),c=o(226),J=o(9808),u=o(969);function I(V,fe){1&V&&t.Hsn(0)}const O=["*"];function Y(V,fe){1&V&&(t.TgZ(0,"div",4),t._UZ(1,"div",5),t.qZA()),2&V&&t.Q6J("ngClass",fe.$implicit)}function $(V,fe){if(1&V&&(t.TgZ(0,"div",2),t.YNc(1,Y,2,1,"div",3),t.qZA()),2&V){const G=fe.$implicit;t.xp6(1),t.Q6J("ngForOf",G)}}function ne(V,fe){if(1&V&&(t.ynx(0),t._uU(1),t.BQk()),2&V){const G=t.oxw(3);t.xp6(1),t.Oqu(G.nzTitle)}}function R(V,fe){if(1&V&&(t.TgZ(0,"div",11),t.YNc(1,ne,2,1,"ng-container",12),t.qZA()),2&V){const G=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",G.nzTitle)}}function le(V,fe){if(1&V&&(t.ynx(0),t._uU(1),t.BQk()),2&V){const G=t.oxw(3);t.xp6(1),t.Oqu(G.nzExtra)}}function H(V,fe){if(1&V&&(t.TgZ(0,"div",13),t.YNc(1,le,2,1,"ng-container",12),t.qZA()),2&V){const G=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",G.nzExtra)}}function Z(V,fe){}function w(V,fe){if(1&V&&(t.ynx(0),t.YNc(1,Z,0,0,"ng-template",14),t.BQk()),2&V){const G=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",G.listOfNzCardTabComponent.template)}}function A(V,fe){if(1&V&&(t.TgZ(0,"div",6),t.TgZ(1,"div",7),t.YNc(2,R,2,1,"div",8),t.YNc(3,H,2,1,"div",9),t.qZA(),t.YNc(4,w,2,1,"ng-container",10),t.qZA()),2&V){const G=t.oxw();t.xp6(2),t.Q6J("ngIf",G.nzTitle),t.xp6(1),t.Q6J("ngIf",G.nzExtra),t.xp6(1),t.Q6J("ngIf",G.listOfNzCardTabComponent)}}function b(V,fe){}function ae(V,fe){if(1&V&&(t.TgZ(0,"div",15),t.YNc(1,b,0,0,"ng-template",14),t.qZA()),2&V){const G=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",G.nzCover)}}function F(V,fe){1&V&&(t.ynx(0),t.Hsn(1),t.BQk())}function E(V,fe){1&V&&t._UZ(0,"nz-card-loading")}function h(V,fe){}function M(V,fe){if(1&V&&(t.TgZ(0,"li"),t.TgZ(1,"span"),t.YNc(2,h,0,0,"ng-template",14),t.qZA(),t.qZA()),2&V){const G=fe.$implicit,he=t.oxw(2);t.Udp("width",100/he.nzActions.length,"%"),t.xp6(2),t.Q6J("ngTemplateOutlet",G)}}function P(V,fe){if(1&V&&(t.TgZ(0,"ul",16),t.YNc(1,M,3,3,"li",17),t.qZA()),2&V){const G=t.oxw();t.xp6(1),t.Q6J("ngForOf",G.nzActions)}}let se=(()=>{class V{constructor(){this.nzHoverable=!0}}return V.\u0275fac=function(G){return new(G||V)},V.\u0275dir=t.lG2({type:V,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(G,he){2&G&&t.ekj("ant-card-hoverable",he.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,i.gn)([(0,n.yF)()],V.prototype,"nzHoverable",void 0),V})(),ye=(()=>{class V{}return V.\u0275fac=function(G){return new(G||V)},V.\u0275cmp=t.Xpm({type:V,selectors:[["nz-card-tab"]],viewQuery:function(G,he){if(1&G&&t.Gf(t.Rgc,7),2&G){let ce;t.iGM(ce=t.CRH())&&(he.template=ce.first)}},exportAs:["nzCardTab"],ngContentSelectors:O,decls:1,vars:0,template:function(G,he){1&G&&(t.F$t(),t.YNc(0,I,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),V})(),q=(()=>{class V{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 V.\u0275fac=function(G){return new(G||V)},V.\u0275cmp=t.Xpm({type:V,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(G,he){1&G&&(t.TgZ(0,"div",0),t.YNc(1,$,2,1,"div",1),t.qZA()),2&G&&(t.xp6(1),t.Q6J("ngForOf",he.listOfLoading))},directives:[J.sg,J.mk],encapsulation:2,changeDetection:0}),V})(),ie=(()=>{class V{constructor(G,he,ce){this.nzConfigService=G,this.cdr=he,this.directionality=ce,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 s.xQ,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,N.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var G;null===(G=this.directionality.change)||void 0===G||G.pipe((0,N.R)(this.destroy$)).subscribe(he=>{this.dir=he,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return V.\u0275fac=function(G){return new(G||V)(t.Y36(_.jY),t.Y36(t.sBO),t.Y36(c.Is,8))},V.\u0275cmp=t.Xpm({type:V,selectors:[["nz-card"]],contentQueries:function(G,he,ce){if(1&G&&(t.Suo(ce,ye,5),t.Suo(ce,se,4)),2&G){let De;t.iGM(De=t.CRH())&&(he.listOfNzCardTabComponent=De.first),t.iGM(De=t.CRH())&&(he.listOfNzCardGridDirective=De)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(G,he){2&G&&t.ekj("ant-card-loading",he.nzLoading)("ant-card-bordered",!1===he.nzBorderless&&he.nzBordered)("ant-card-hoverable",he.nzHoverable)("ant-card-small","small"===he.nzSize)("ant-card-contain-grid",he.listOfNzCardGridDirective&&he.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===he.nzType)("ant-card-contain-tabs",!!he.listOfNzCardTabComponent)("ant-card-rtl","rtl"===he.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:O,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(G,he){if(1&G&&(t.F$t(),t.YNc(0,A,5,3,"div",0),t.YNc(1,ae,2,1,"div",1),t.TgZ(2,"div",2),t.YNc(3,F,2,0,"ng-container",3),t.YNc(4,E,1,0,"ng-template",null,4,t.W1O),t.qZA(),t.YNc(6,P,2,1,"ul",5)),2&G){const ce=t.MAs(5);t.Q6J("ngIf",he.nzTitle||he.nzExtra||he.listOfNzCardTabComponent),t.xp6(1),t.Q6J("ngIf",he.nzCover),t.xp6(1),t.Q6J("ngStyle",he.nzBodyStyle),t.xp6(1),t.Q6J("ngIf",!he.nzLoading)("ngIfElse",ce),t.xp6(3),t.Q6J("ngIf",he.nzActions.length)}},directives:[q,J.O5,u.f,J.tP,J.PC,J.sg],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,_.oS)(),(0,n.yF)()],V.prototype,"nzBordered",void 0),(0,i.gn)([(0,_.oS)(),(0,n.yF)()],V.prototype,"nzBorderless",void 0),(0,i.gn)([(0,n.yF)()],V.prototype,"nzLoading",void 0),(0,i.gn)([(0,_.oS)(),(0,n.yF)()],V.prototype,"nzHoverable",void 0),(0,i.gn)([(0,_.oS)()],V.prototype,"nzSize",void 0),V})(),Oe=(()=>{class V{}return V.\u0275fac=function(G){return new(G||V)},V.\u0275mod=t.oAB({type:V}),V.\u0275inj=t.cJS({imports:[[J.ez,u.T],c.vT]}),V})()},5577:(Te,te,o)=>{o.d(te,{D3:()=>_,y7:()=>J});var i=o(5e3),t=o(3191),n=o(2916),s=o(8929);let N=(()=>{class u{create(O){return"undefined"==typeof ResizeObserver?null:new ResizeObserver(O)}}return u.\u0275fac=function(O){return new(O||u)},u.\u0275prov=i.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),_=(()=>{class u{constructor(O){this.nzResizeObserverFactory=O,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((O,Y)=>this.cleanupObserver(Y))}observe(O){const Y=(0,t.fI)(O);return new n.y($=>{const R=this.observeElement(Y).subscribe($);return()=>{R.unsubscribe(),this.unobserveElement(Y)}})}observeElement(O){if(this.observedElements.has(O))this.observedElements.get(O).count++;else{const Y=new s.xQ,$=this.nzResizeObserverFactory.create(ne=>Y.next(ne));$&&$.observe(O),this.observedElements.set(O,{observer:$,stream:Y,count:1})}return this.observedElements.get(O).stream}unobserveElement(O){this.observedElements.has(O)&&(this.observedElements.get(O).count--,this.observedElements.get(O).count||this.cleanupObserver(O))}cleanupObserver(O){if(this.observedElements.has(O)){const{observer:Y,stream:$}=this.observedElements.get(O);Y&&Y.disconnect(),$.complete(),this.observedElements.delete(O)}}}return u.\u0275fac=function(O){return new(O||u)(i.LFG(N))},u.\u0275prov=i.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),J=(()=>{class u{}return u.\u0275fac=function(O){return new(O||u)},u.\u0275mod=i.oAB({type:u}),u.\u0275inj=i.cJS({providers:[N]}),u})()},5482:(Te,te,o)=>{o.d(te,{yH:()=>A,cD:()=>F,Zv:()=>ae});var i=o(655),t=o(5e3),n=o(8929),s=o(7625),N=o(8076),_=o(9439),c=o(1721),J=o(226),u=o(4832),I=o(9808),O=o(969),Y=o(647);const $=["*"];function ne(E,h){if(1&E&&(t.ynx(0),t._UZ(1,"i",6),t.BQk()),2&E){const M=h.$implicit,P=t.oxw(2);t.xp6(1),t.Q6J("nzType",M||"right")("nzRotate",P.nzActive?90:0)}}function R(E,h){if(1&E&&(t.TgZ(0,"div"),t.YNc(1,ne,2,2,"ng-container",2),t.qZA()),2&E){const M=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",M.nzExpandedIcon)}}function le(E,h){if(1&E&&(t.ynx(0),t._uU(1),t.BQk()),2&E){const M=t.oxw();t.xp6(1),t.Oqu(M.nzHeader)}}function H(E,h){if(1&E&&(t.ynx(0),t._uU(1),t.BQk()),2&E){const M=t.oxw(2);t.xp6(1),t.Oqu(M.nzExtra)}}function Z(E,h){if(1&E&&(t.TgZ(0,"div",7),t.YNc(1,H,2,1,"ng-container",2),t.qZA()),2&E){const M=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",M.nzExtra)}}const w="collapse";let A=(()=>{class E{constructor(M,P,L){this.nzConfigService=M,this.cdr=P,this.directionality=L,this._nzModuleName=w,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new n.xQ,this.nzConfigService.getConfigChangeEventForComponent(w).pipe((0,s.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var M;null===(M=this.directionality.change)||void 0===M||M.pipe((0,s.R)(this.destroy$)).subscribe(P=>{this.dir=P,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(M){this.listOfNzCollapsePanelComponent.push(M)}removePanel(M){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(M),1)}click(M){this.nzAccordion&&!M.nzActive&&this.listOfNzCollapsePanelComponent.filter(P=>P!==M).forEach(P=>{P.nzActive&&(P.nzActive=!1,P.nzActiveChange.emit(P.nzActive),P.markForCheck())}),M.nzActive=!M.nzActive,M.nzActiveChange.emit(M.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return E.\u0275fac=function(M){return new(M||E)(t.Y36(_.jY),t.Y36(t.sBO),t.Y36(J.Is,8))},E.\u0275cmp=t.Xpm({type:E,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(M,P){2&M&&t.ekj("ant-collapse-icon-position-left","left"===P.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===P.nzExpandIconPosition)("ant-collapse-ghost",P.nzGhost)("ant-collapse-borderless",!P.nzBordered)("ant-collapse-rtl","rtl"===P.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:$,decls:1,vars:0,template:function(M,P){1&M&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,i.gn)([(0,_.oS)(),(0,c.yF)()],E.prototype,"nzAccordion",void 0),(0,i.gn)([(0,_.oS)(),(0,c.yF)()],E.prototype,"nzBordered",void 0),(0,i.gn)([(0,_.oS)(),(0,c.yF)()],E.prototype,"nzGhost",void 0),E})();const b="collapsePanel";let ae=(()=>{class E{constructor(M,P,L,B){this.nzConfigService=M,this.cdr=P,this.nzCollapseComponent=L,this.noAnimation=B,this._nzModuleName=b,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.vpe,this.destroy$=new n.xQ,this.nzConfigService.getConfigChangeEventForComponent(b).pipe((0,s.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}clickHeader(){this.nzDisabled||this.nzCollapseComponent.click(this)}markForCheck(){this.cdr.markForCheck()}ngOnInit(){this.nzCollapseComponent.addPanel(this)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)}}return E.\u0275fac=function(M){return new(M||E)(t.Y36(_.jY),t.Y36(t.sBO),t.Y36(A,1),t.Y36(u.P,8))},E.\u0275cmp=t.Xpm({type:E,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(M,P){2&M&&t.ekj("ant-collapse-no-arrow",!P.nzShowArrow)("ant-collapse-item-active",P.nzActive)("ant-collapse-item-disabled",P.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:$,decls:7,vars:8,consts:[["role","button",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(M,P){1&M&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return P.clickHeader()}),t.YNc(1,R,2,1,"div",1),t.YNc(2,le,2,1,"ng-container",2),t.YNc(3,Z,2,1,"div",3),t.qZA(),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.qZA(),t.qZA()),2&M&&(t.uIk("aria-expanded",P.nzActive),t.xp6(1),t.Q6J("ngIf",P.nzShowArrow),t.xp6(1),t.Q6J("nzStringTemplateOutlet",P.nzHeader),t.xp6(1),t.Q6J("ngIf",P.nzExtra),t.xp6(1),t.ekj("ant-collapse-content-active",P.nzActive),t.Q6J("@.disabled",null==P.noAnimation?null:P.noAnimation.nzNoAnimation)("@collapseMotion",P.nzActive?"expanded":"hidden"))},directives:[I.O5,O.f,Y.Ls],encapsulation:2,data:{animation:[N.J_]},changeDetection:0}),(0,i.gn)([(0,c.yF)()],E.prototype,"nzActive",void 0),(0,i.gn)([(0,c.yF)()],E.prototype,"nzDisabled",void 0),(0,i.gn)([(0,_.oS)(),(0,c.yF)()],E.prototype,"nzShowArrow",void 0),E})(),F=(()=>{class E{}return E.\u0275fac=function(M){return new(M||E)},E.\u0275mod=t.oAB({type:E}),E.\u0275inj=t.cJS({imports:[[J.vT,I.ez,Y.PV,O.T,u.g]]}),E})()},3098:(Te,te,o)=>{o.d(te,{R7:()=>ge,uj:()=>Pe,q6:()=>Ae});var i=o(226),t=o(925),n=o(9808),s=o(5e3),N=o(969),_=o(655),c=o(8929),J=o(6787),u=o(1721),I=o(7625),O=o(1059),Y=o(7545),$=o(7138),ne=o(2868),R=o(9439),le=o(948),H=o(4090);function Z(U,_e){1&U&&s.Hsn(0)}const w=["*"];function A(U,_e){if(1&U&&(s.ynx(0),s._uU(1),s.BQk()),2&U){const W=s.oxw(3);s.xp6(1),s.Oqu(W.nzTitle)}}function b(U,_e){if(1&U&&(s.TgZ(0,"div",6),s.YNc(1,A,2,1,"ng-container",7),s.qZA()),2&U){const W=s.oxw(2);s.xp6(1),s.Q6J("nzStringTemplateOutlet",W.nzTitle)}}function ae(U,_e){if(1&U&&(s.ynx(0),s._uU(1),s.BQk()),2&U){const W=s.oxw(3);s.xp6(1),s.Oqu(W.nzExtra)}}function F(U,_e){if(1&U&&(s.TgZ(0,"div",8),s.YNc(1,ae,2,1,"ng-container",7),s.qZA()),2&U){const W=s.oxw(2);s.xp6(1),s.Q6J("nzStringTemplateOutlet",W.nzExtra)}}function E(U,_e){if(1&U&&(s.TgZ(0,"div",3),s.YNc(1,b,2,1,"div",4),s.YNc(2,F,2,1,"div",5),s.qZA()),2&U){const W=s.oxw();s.xp6(1),s.Q6J("ngIf",W.nzTitle),s.xp6(1),s.Q6J("ngIf",W.nzExtra)}}function h(U,_e){if(1&U&&(s.ynx(0),s._uU(1),s.BQk()),2&U){const W=s.oxw(2).$implicit;s.xp6(1),s.hij(" ",W.title," ")}}function M(U,_e){}function P(U,_e){if(1&U&&(s.ynx(0),s.TgZ(1,"td",12),s.TgZ(2,"div",13),s.TgZ(3,"span",14),s.YNc(4,h,2,1,"ng-container",7),s.qZA(),s.TgZ(5,"span",15),s.YNc(6,M,0,0,"ng-template",16),s.qZA(),s.qZA(),s.qZA(),s.BQk()),2&U){const W=s.oxw().$implicit,Se=s.oxw(3);s.xp6(1),s.Q6J("colSpan",W.span),s.xp6(2),s.ekj("ant-descriptions-item-no-colon",!Se.nzColon),s.xp6(1),s.Q6J("nzStringTemplateOutlet",W.title),s.xp6(2),s.Q6J("ngTemplateOutlet",W.content)}}function L(U,_e){if(1&U&&(s.ynx(0),s._uU(1),s.BQk()),2&U){const W=s.oxw(3).$implicit;s.xp6(1),s.hij(" ",W.title," ")}}function B(U,_e){if(1&U&&(s.TgZ(0,"td",14),s.YNc(1,L,2,1,"ng-container",7),s.qZA()),2&U){const W=s.oxw(2).$implicit;s.xp6(1),s.Q6J("nzStringTemplateOutlet",W.title)}}function p(U,_e){}function K(U,_e){if(1&U&&(s.ynx(0),s.YNc(1,B,2,1,"td",17),s.TgZ(2,"td",18),s.YNc(3,p,0,0,"ng-template",16),s.qZA(),s.BQk()),2&U){const W=s.oxw().$implicit;s.xp6(1),s.Q6J("nzStringTemplateOutlet",W.title),s.xp6(1),s.Q6J("colSpan",2*W.span-1),s.xp6(1),s.Q6J("ngTemplateOutlet",W.content)}}function k(U,_e){if(1&U&&(s.ynx(0),s.YNc(1,P,7,5,"ng-container",2),s.YNc(2,K,4,3,"ng-container",2),s.BQk()),2&U){const W=s.oxw(3);s.xp6(1),s.Q6J("ngIf",!W.nzBordered),s.xp6(1),s.Q6J("ngIf",W.nzBordered)}}function X(U,_e){if(1&U&&(s.TgZ(0,"tr",10),s.YNc(1,k,3,2,"ng-container",11),s.qZA()),2&U){const W=_e.$implicit;s.xp6(1),s.Q6J("ngForOf",W)}}function xe(U,_e){if(1&U&&(s.ynx(0),s.YNc(1,X,2,1,"tr",9),s.BQk()),2&U){const W=s.oxw();s.xp6(1),s.Q6J("ngForOf",W.itemMatrix)}}function se(U,_e){if(1&U&&(s.ynx(0),s._uU(1),s.BQk()),2&U){const W=s.oxw().$implicit;s.xp6(1),s.hij(" ",W.title," ")}}function ye(U,_e){if(1&U&&(s.ynx(0),s.TgZ(1,"td",12),s.TgZ(2,"div",13),s.TgZ(3,"span",14),s.YNc(4,se,2,1,"ng-container",7),s.qZA(),s.qZA(),s.qZA(),s.BQk()),2&U){const W=_e.$implicit,Se=s.oxw(4);s.xp6(1),s.Q6J("colSpan",W.span),s.xp6(2),s.ekj("ant-descriptions-item-no-colon",!Se.nzColon),s.xp6(1),s.Q6J("nzStringTemplateOutlet",W.title)}}function q(U,_e){}function me(U,_e){if(1&U&&(s.ynx(0),s.TgZ(1,"td",12),s.TgZ(2,"div",13),s.TgZ(3,"span",15),s.YNc(4,q,0,0,"ng-template",16),s.qZA(),s.qZA(),s.qZA(),s.BQk()),2&U){const W=_e.$implicit;s.xp6(1),s.Q6J("colSpan",W.span),s.xp6(3),s.Q6J("ngTemplateOutlet",W.content)}}function ie(U,_e){if(1&U&&(s.ynx(0),s.TgZ(1,"tr",10),s.YNc(2,ye,5,4,"ng-container",11),s.qZA(),s.TgZ(3,"tr",10),s.YNc(4,me,5,2,"ng-container",11),s.qZA(),s.BQk()),2&U){const W=_e.$implicit;s.xp6(2),s.Q6J("ngForOf",W),s.xp6(2),s.Q6J("ngForOf",W)}}function ze(U,_e){if(1&U&&(s.ynx(0),s.YNc(1,ie,5,2,"ng-container",11),s.BQk()),2&U){const W=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",W.itemMatrix)}}function Oe(U,_e){if(1&U&&(s.ynx(0),s._uU(1),s.BQk()),2&U){const W=s.oxw().$implicit;s.xp6(1),s.hij(" ",W.title," ")}}function V(U,_e){if(1&U&&(s.ynx(0),s.TgZ(1,"td",19),s.YNc(2,Oe,2,1,"ng-container",7),s.qZA(),s.BQk()),2&U){const W=_e.$implicit;s.xp6(1),s.Q6J("colSpan",W.span),s.xp6(1),s.Q6J("nzStringTemplateOutlet",W.title)}}function fe(U,_e){}function G(U,_e){if(1&U&&(s.ynx(0),s.TgZ(1,"td",18),s.YNc(2,fe,0,0,"ng-template",16),s.qZA(),s.BQk()),2&U){const W=_e.$implicit;s.xp6(1),s.Q6J("colSpan",W.span),s.xp6(1),s.Q6J("ngTemplateOutlet",W.content)}}function he(U,_e){if(1&U&&(s.ynx(0),s.TgZ(1,"tr",10),s.YNc(2,V,3,2,"ng-container",11),s.qZA(),s.TgZ(3,"tr",10),s.YNc(4,G,3,2,"ng-container",11),s.qZA(),s.BQk()),2&U){const W=_e.$implicit;s.xp6(2),s.Q6J("ngForOf",W),s.xp6(2),s.Q6J("ngForOf",W)}}function ce(U,_e){if(1&U&&(s.ynx(0),s.YNc(1,he,5,2,"ng-container",11),s.BQk()),2&U){const W=s.oxw(2);s.xp6(1),s.Q6J("ngForOf",W.itemMatrix)}}function De(U,_e){if(1&U&&(s.ynx(0),s.YNc(1,ze,2,1,"ng-container",2),s.YNc(2,ce,2,1,"ng-container",2),s.BQk()),2&U){const W=s.oxw();s.xp6(1),s.Q6J("ngIf",!W.nzBordered),s.xp6(1),s.Q6J("ngIf",W.nzBordered)}}let Pe=(()=>{class U{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new c.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return U.\u0275fac=function(W){return new(W||U)},U.\u0275cmp=s.Xpm({type:U,selectors:[["nz-descriptions-item"]],viewQuery:function(W,Se){if(1&W&&s.Gf(s.Rgc,7),2&W){let be;s.iGM(be=s.CRH())&&(Se.content=be.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[s.TTD],ngContentSelectors:w,decls:1,vars:0,template:function(W,Se){1&W&&(s.F$t(),s.YNc(0,Z,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,_.gn)([(0,u.Rn)()],U.prototype,"nzSpan",void 0),U})();const Ie={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let ge=(()=>{class U{constructor(W,Se,be,Ge){this.nzConfigService=W,this.cdr=Se,this.breakpointService=be,this.directionality=Ge,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=Ie,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=H.G_.md,this.destroy$=new c.xQ}ngOnInit(){var W;this.dir=this.directionality.value,null===(W=this.directionality.change)||void 0===W||W.pipe((0,I.R)(this.destroy$)).subscribe(Se=>{this.dir=Se})}ngOnChanges(W){W.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const W=this.items.changes.pipe((0,O.O)(this.items),(0,I.R)(this.destroy$));(0,J.T)(W,W.pipe((0,Y.w)(()=>(0,J.T)(...this.items.map(Se=>Se.inputChange$)).pipe((0,$.e)(16)))),this.breakpointService.subscribe(H.WV).pipe((0,ne.b)(Se=>this.breakpoint=Se))).pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let W=[],Se=0;const be=this.realColumn=this.getColumn(),Ge=this.items.toArray(),tt=Ge.length,nt=[],Ke=()=>{nt.push(W),W=[],Se=0};for(let Ve=0;Ve=be?(Se>be&&(0,le.ZK)(`"nzColumn" is ${be} but we have row length ${Se}`),W.push({title:He,content:Xe,span:be-(Se-Ye)}),Ke()):Ve===tt-1?(W.push({title:He,content:Xe,span:be-(Se-Ye)}),Ke()):W.push({title:He,content:Xe,span:Ye})}this.itemMatrix=nt}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return U.\u0275fac=function(W){return new(W||U)(s.Y36(R.jY),s.Y36(s.sBO),s.Y36(H.r3),s.Y36(i.Is,8))},U.\u0275cmp=s.Xpm({type:U,selectors:[["nz-descriptions"]],contentQueries:function(W,Se,be){if(1&W&&s.Suo(be,Pe,4),2&W){let Ge;s.iGM(Ge=s.CRH())&&(Se.items=Ge)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(W,Se){2&W&&s.ekj("ant-descriptions-bordered",Se.nzBordered)("ant-descriptions-middle","middle"===Se.nzSize)("ant-descriptions-small","small"===Se.nzSize)("ant-descriptions-rtl","rtl"===Se.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[s.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(W,Se){1&W&&(s.YNc(0,E,3,2,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"table"),s.TgZ(3,"tbody"),s.YNc(4,xe,2,1,"ng-container",2),s.YNc(5,De,3,2,"ng-container",2),s.qZA(),s.qZA(),s.qZA()),2&W&&(s.Q6J("ngIf",Se.nzTitle||Se.nzExtra),s.xp6(4),s.Q6J("ngIf","horizontal"===Se.nzLayout),s.xp6(1),s.Q6J("ngIf","vertical"===Se.nzLayout))},directives:[n.O5,N.f,n.sg,n.tP],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,u.yF)(),(0,R.oS)()],U.prototype,"nzBordered",void 0),(0,_.gn)([(0,R.oS)()],U.prototype,"nzColumn",void 0),(0,_.gn)([(0,R.oS)()],U.prototype,"nzSize",void 0),(0,_.gn)([(0,R.oS)(),(0,u.yF)()],U.prototype,"nzColon",void 0),U})(),Ae=(()=>{class U{}return U.\u0275fac=function(W){return new(W||U)},U.\u0275mod=s.oAB({type:U}),U.\u0275inj=s.cJS({imports:[[i.vT,n.ez,N.T,t.ud]]}),U})()},3677:(Te,te,o)=>{o.d(te,{cm:()=>ye,b1:()=>Oe,wA:()=>ie,RR:()=>ze});var i=o(655),t=o(1159),n=o(7429),s=o(5e3),N=o(8929),_=o(591),c=o(6787),J=o(3753),u=o(8896),I=o(3426),O=o(7604),Y=o(4850),$=o(7545),ne=o(2198),R=o(7138),le=o(5778),H=o(7625),Z=o(9439),w=o(6950),A=o(1721),b=o(2845),ae=o(925),F=o(226),E=o(9808),h=o(4182),M=o(6042),P=o(4832),L=o(969),B=o(647),p=o(4219),K=o(8076);function k(G,he){if(1&G){const ce=s.EpF();s.TgZ(0,"div",0),s.NdJ("@slideMotion.done",function(Pe){return s.CHM(ce),s.oxw().onAnimationEvent(Pe)})("mouseenter",function(){return s.CHM(ce),s.oxw().setMouseState(!0)})("mouseleave",function(){return s.CHM(ce),s.oxw().setMouseState(!1)}),s.Hsn(1),s.qZA()}if(2&G){const ce=s.oxw();s.ekj("ant-dropdown-rtl","rtl"===ce.dir),s.Q6J("ngClass",ce.nzOverlayClassName)("ngStyle",ce.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==ce.noAnimation?null:ce.noAnimation.nzNoAnimation)("nzNoAnimation",null==ce.noAnimation?null:ce.noAnimation.nzNoAnimation)}}const X=["*"],se=[w.yW.bottomLeft,w.yW.bottomRight,w.yW.topRight,w.yW.topLeft];let ye=(()=>{class G{constructor(ce,De,Pe,re,Ie,ge){this.nzConfigService=ce,this.elementRef=De,this.overlay=Pe,this.renderer=re,this.viewContainerRef=Ie,this.platform=ge,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new N.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new _.X(!1),this.nzTrigger$=new _.X("hover"),this.overlayClose$=new N.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 s.vpe}setDropdownMenuValue(ce,De){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(ce,De)}ngAfterViewInit(){if(this.nzDropdownMenu){const ce=this.elementRef.nativeElement,De=(0,c.T)((0,J.R)(ce,"mouseenter").pipe((0,O.h)(!0)),(0,J.R)(ce,"mouseleave").pipe((0,O.h)(!1))),re=(0,c.T)(this.nzDropdownMenu.mouseState$,De),Ie=(0,J.R)(ce,"click").pipe((0,Y.U)(()=>!this.nzVisible)),ge=this.nzTrigger$.pipe((0,$.w)(W=>"hover"===W?re:"click"===W?Ie:u.E)),Ae=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,ne.h)(()=>this.nzClickHide),(0,O.h)(!1)),U=(0,c.T)(ge,Ae,this.overlayClose$).pipe((0,ne.h)(()=>!this.nzDisabled)),_e=(0,c.T)(this.inputVisible$,U);(0,I.aj)([_e,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,Y.U)(([W,Se])=>W||Se),(0,R.e)(150),(0,le.x)(),(0,ne.h)(()=>this.platform.isBrowser),(0,H.R)(this.destroy$)).subscribe(W=>{const be=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:ce).getBoundingClientRect().width;this.nzVisible!==W&&this.nzVisibleChange.emit(W),this.nzVisible=W,W?(this.overlayRef?this.overlayRef.getConfig().minWidth=be:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:be,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,c.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,ne.h)(Ge=>!this.elementRef.nativeElement.contains(Ge.target))),this.overlayRef.keydownEvents().pipe((0,ne.h)(Ge=>Ge.keyCode===t.hY&&!(0,t.Vb)(Ge)))).pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([w.yW[this.nzPlacement],...se]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new n.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,H.R)(this.destroy$)).subscribe(W=>{"void"===W.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(ce){const{nzVisible:De,nzDisabled:Pe,nzOverlayClassName:re,nzOverlayStyle:Ie,nzTrigger:ge}=ce;if(ge&&this.nzTrigger$.next(this.nzTrigger),De&&this.inputVisible$.next(this.nzVisible),Pe){const Ae=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Ae,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Ae,"disabled")}re&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Ie&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return G.\u0275fac=function(ce){return new(ce||G)(s.Y36(Z.jY),s.Y36(s.SBq),s.Y36(b.aV),s.Y36(s.Qsj),s.Y36(s.s_b),s.Y36(ae.t4))},G.\u0275dir=s.lG2({type:G,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:[s.TTD]}),(0,i.gn)([(0,Z.oS)(),(0,A.yF)()],G.prototype,"nzBackdrop",void 0),(0,i.gn)([(0,A.yF)()],G.prototype,"nzClickHide",void 0),(0,i.gn)([(0,A.yF)()],G.prototype,"nzDisabled",void 0),(0,i.gn)([(0,A.yF)()],G.prototype,"nzVisible",void 0),G})(),q=(()=>{class G{}return G.\u0275fac=function(ce){return new(ce||G)},G.\u0275mod=s.oAB({type:G}),G.\u0275inj=s.cJS({}),G})(),ie=(()=>{class G{constructor(ce,De,Pe){this.renderer=ce,this.nzButtonGroupComponent=De,this.elementRef=Pe}ngAfterViewInit(){const ce=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&ce&&this.renderer.addClass(ce,"ant-dropdown-button")}}return G.\u0275fac=function(ce){return new(ce||G)(s.Y36(s.Qsj),s.Y36(M.fY,9),s.Y36(s.SBq))},G.\u0275dir=s.lG2({type:G,selectors:[["","nz-button","","nz-dropdown",""]]}),G})(),ze=(()=>{class G{constructor(ce,De,Pe,re,Ie,ge,Ae){this.cdr=ce,this.elementRef=De,this.renderer=Pe,this.viewContainerRef=re,this.nzMenuService=Ie,this.directionality=ge,this.noAnimation=Ae,this.mouseState$=new _.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new s.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new N.xQ}onAnimationEvent(ce){this.animationStateChange$.emit(ce)}setMouseState(ce){this.mouseState$.next(ce)}setValue(ce,De){this[ce]=De,this.cdr.markForCheck()}ngOnInit(){var ce;null===(ce=this.directionality.change)||void 0===ce||ce.pipe((0,H.R)(this.destroy$)).subscribe(De=>{this.dir=De,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 G.\u0275fac=function(ce){return new(ce||G)(s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(s.s_b),s.Y36(p.hl),s.Y36(F.Is,8),s.Y36(P.P,9))},G.\u0275cmp=s.Xpm({type:G,selectors:[["nz-dropdown-menu"]],viewQuery:function(ce,De){if(1&ce&&s.Gf(s.Rgc,7),2&ce){let Pe;s.iGM(Pe=s.CRH())&&(De.templateRef=Pe.first)}},exportAs:["nzDropdownMenu"],features:[s._Bn([p.hl,{provide:p.Cc,useValue:!0}])],ngContentSelectors:X,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(ce,De){1&ce&&(s.F$t(),s.YNc(0,k,2,7,"ng-template"))},directives:[E.mk,E.PC,P.P],encapsulation:2,data:{animation:[K.mF]},changeDetection:0}),G})(),Oe=(()=>{class G{}return G.\u0275fac=function(ce){return new(ce||G)},G.\u0275mod=s.oAB({type:G}),G.\u0275inj=s.cJS({imports:[[F.vT,E.ez,b.U8,h.u5,M.sL,p.ip,B.PV,P.g,ae.ud,w.e4,q,L.T],p.ip]}),G})();new b.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new b.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new b.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new b.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},3762:(Te,te,o)=>{o.d(te,{n_:()=>Ze,I2:()=>Be,t4:()=>ke,AA:()=>ot,yw:()=>Re,yi:()=>Ee,IO:()=>z,Ph:()=>st});var i=o(5e3),t=o(6699),n=o(9808),s=o(969),N=o(655),_=o(1721),c=o(8929),J=o(8514),u=o(1086),I=o(6787),O=o(591),Y=o(2986),$=o(7545),ne=o(7625),R=o(685),le=o(226),H=o(7525),Z=o(1894);const w=["*"];function A(C,ee){if(1&C&&i._UZ(0,"nz-avatar",3),2&C){const x=i.oxw();i.Q6J("nzSrc",x.nzSrc)}}function b(C,ee){1&C&&i.Hsn(0,0,["*ngIf","!nzSrc"])}function ae(C,ee){if(1&C&&i._UZ(0,"nz-list-item-meta-avatar",3),2&C){const x=i.oxw();i.Q6J("nzSrc",x.avatarStr)}}function F(C,ee){if(1&C&&(i.TgZ(0,"nz-list-item-meta-avatar"),i.GkF(1,4),i.qZA()),2&C){const x=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",x.avatarTpl)}}function E(C,ee){if(1&C&&(i.ynx(0),i._uU(1),i.BQk()),2&C){const x=i.oxw(3);i.xp6(1),i.Oqu(x.nzTitle)}}function h(C,ee){if(1&C&&(i.TgZ(0,"nz-list-item-meta-title"),i.YNc(1,E,2,1,"ng-container",6),i.qZA()),2&C){const x=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",x.nzTitle)}}function M(C,ee){if(1&C&&(i.ynx(0),i._uU(1),i.BQk()),2&C){const x=i.oxw(3);i.xp6(1),i.Oqu(x.nzDescription)}}function P(C,ee){if(1&C&&(i.TgZ(0,"nz-list-item-meta-description"),i.YNc(1,M,2,1,"ng-container",6),i.qZA()),2&C){const x=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",x.nzDescription)}}function L(C,ee){if(1&C&&(i.TgZ(0,"div",5),i.YNc(1,h,2,1,"nz-list-item-meta-title",1),i.YNc(2,P,2,1,"nz-list-item-meta-description",1),i.Hsn(3,1),i.Hsn(4,2),i.qZA()),2&C){const x=i.oxw();i.xp6(1),i.Q6J("ngIf",x.nzTitle&&!x.titleComponent),i.xp6(1),i.Q6J("ngIf",x.nzDescription&&!x.descriptionComponent)}}const B=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],p=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function K(C,ee){1&C&&i.Hsn(0)}const k=["nz-list-item-actions",""];function X(C,ee){}function xe(C,ee){1&C&&i._UZ(0,"em",3)}function se(C,ee){if(1&C&&(i.TgZ(0,"li"),i.YNc(1,X,0,0,"ng-template",1),i.YNc(2,xe,1,0,"em",2),i.qZA()),2&C){const x=ee.$implicit,pe=ee.last;i.xp6(1),i.Q6J("ngTemplateOutlet",x),i.xp6(1),i.Q6J("ngIf",!pe)}}function ye(C,ee){}const q=function(C,ee){return{$implicit:C,index:ee}};function me(C,ee){if(1&C&&(i.ynx(0),i.YNc(1,ye,0,0,"ng-template",9),i.BQk()),2&C){const x=ee.$implicit,pe=ee.index,Ne=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.nzRenderItem)("ngTemplateOutletContext",i.WLB(2,q,x,pe))}}function ie(C,ee){if(1&C&&(i.TgZ(0,"div",7),i.YNc(1,me,2,5,"ng-container",8),i.Hsn(2,4),i.qZA()),2&C){const x=i.oxw();i.xp6(1),i.Q6J("ngForOf",x.nzDataSource)}}function ze(C,ee){if(1&C&&(i.ynx(0),i._uU(1),i.BQk()),2&C){const x=i.oxw(2);i.xp6(1),i.Oqu(x.nzHeader)}}function Oe(C,ee){if(1&C&&(i.TgZ(0,"nz-list-header"),i.YNc(1,ze,2,1,"ng-container",10),i.qZA()),2&C){const x=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",x.nzHeader)}}function V(C,ee){1&C&&i._UZ(0,"div"),2&C&&i.Udp("min-height",53,"px")}function fe(C,ee){}function G(C,ee){if(1&C&&(i.TgZ(0,"div",13),i.YNc(1,fe,0,0,"ng-template",9),i.qZA()),2&C){const x=ee.$implicit,pe=ee.index,Ne=i.oxw(2);i.Q6J("nzSpan",Ne.nzGrid.span||null)("nzXs",Ne.nzGrid.xs||null)("nzSm",Ne.nzGrid.sm||null)("nzMd",Ne.nzGrid.md||null)("nzLg",Ne.nzGrid.lg||null)("nzXl",Ne.nzGrid.xl||null)("nzXXl",Ne.nzGrid.xxl||null),i.xp6(1),i.Q6J("ngTemplateOutlet",Ne.nzRenderItem)("ngTemplateOutletContext",i.WLB(9,q,x,pe))}}function he(C,ee){if(1&C&&(i.TgZ(0,"div",11),i.YNc(1,G,2,12,"div",12),i.qZA()),2&C){const x=i.oxw();i.Q6J("nzGutter",x.nzGrid.gutter||null),i.xp6(1),i.Q6J("ngForOf",x.nzDataSource)}}function ce(C,ee){if(1&C&&i._UZ(0,"nz-list-empty",14),2&C){const x=i.oxw();i.Q6J("nzNoResult",x.nzNoResult)}}function De(C,ee){if(1&C&&(i.ynx(0),i._uU(1),i.BQk()),2&C){const x=i.oxw(2);i.xp6(1),i.Oqu(x.nzFooter)}}function Pe(C,ee){if(1&C&&(i.TgZ(0,"nz-list-footer"),i.YNc(1,De,2,1,"ng-container",10),i.qZA()),2&C){const x=i.oxw();i.xp6(1),i.Q6J("nzStringTemplateOutlet",x.nzFooter)}}function re(C,ee){}function Ie(C,ee){}function ge(C,ee){if(1&C&&(i.TgZ(0,"nz-list-pagination"),i.YNc(1,Ie,0,0,"ng-template",6),i.qZA()),2&C){const x=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",x.nzPagination)}}const Ae=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],U=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function _e(C,ee){if(1&C&&i._UZ(0,"ul",6),2&C){const x=i.oxw(2);i.Q6J("nzActions",x.nzActions)}}function W(C,ee){if(1&C&&(i.YNc(0,_e,1,1,"ul",5),i.Hsn(1)),2&C){const x=i.oxw();i.Q6J("ngIf",x.nzActions&&x.nzActions.length>0)}}function Se(C,ee){if(1&C&&(i.ynx(0),i._uU(1),i.BQk()),2&C){const x=i.oxw(3);i.xp6(1),i.Oqu(x.nzContent)}}function be(C,ee){if(1&C&&(i.ynx(0),i.YNc(1,Se,2,1,"ng-container",8),i.BQk()),2&C){const x=i.oxw(2);i.xp6(1),i.Q6J("nzStringTemplateOutlet",x.nzContent)}}function Ge(C,ee){if(1&C&&(i.Hsn(0,1),i.Hsn(1,2),i.YNc(2,be,2,1,"ng-container",7)),2&C){const x=i.oxw();i.xp6(2),i.Q6J("ngIf",x.nzContent)}}function tt(C,ee){1&C&&i.Hsn(0,3)}function nt(C,ee){}function Ke(C,ee){}function Ve(C,ee){}function y(C,ee){}function He(C,ee){if(1&C&&(i.YNc(0,nt,0,0,"ng-template",9),i.YNc(1,Ke,0,0,"ng-template",9),i.YNc(2,Ve,0,0,"ng-template",9),i.YNc(3,y,0,0,"ng-template",9)),2&C){const x=i.oxw(),pe=i.MAs(3),Ne=i.MAs(5),Fe=i.MAs(1);i.Q6J("ngTemplateOutlet",pe),i.xp6(1),i.Q6J("ngTemplateOutlet",x.nzExtra),i.xp6(1),i.Q6J("ngTemplateOutlet",Ne),i.xp6(1),i.Q6J("ngTemplateOutlet",Fe)}}function Xe(C,ee){}function Ye(C,ee){}function lt(C,ee){}function Ue(C,ee){if(1&C&&(i.TgZ(0,"nz-list-item-extra"),i.YNc(1,lt,0,0,"ng-template",9),i.qZA()),2&C){const x=i.oxw(2);i.xp6(1),i.Q6J("ngTemplateOutlet",x.nzExtra)}}function pt(C,ee){}function v(C,ee){if(1&C&&(i.ynx(0),i.TgZ(1,"div",10),i.YNc(2,Xe,0,0,"ng-template",9),i.YNc(3,Ye,0,0,"ng-template",9),i.qZA(),i.YNc(4,Ue,2,1,"nz-list-item-extra",7),i.YNc(5,pt,0,0,"ng-template",9),i.BQk()),2&C){const x=i.oxw(),pe=i.MAs(3),Ne=i.MAs(1),Fe=i.MAs(5);i.xp6(2),i.Q6J("ngTemplateOutlet",pe),i.xp6(1),i.Q6J("ngTemplateOutlet",Ne),i.xp6(1),i.Q6J("ngIf",x.nzExtra),i.xp6(1),i.Q6J("ngTemplateOutlet",Fe)}}const l=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Ce=["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 z=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:w,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(x,pe){1&x&&(i.F$t(),i.TgZ(0,"h4",0),i.Hsn(1),i.qZA())},encapsulation:2,changeDetection:0}),C})(),g=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:w,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(x,pe){1&x&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},encapsulation:2,changeDetection:0}),C})(),ve=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:w,decls:3,vars:2,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc",4,"ngIf"],[4,"ngIf"],[3,"nzSrc"]],template:function(x,pe){1&x&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,A,1,1,"nz-avatar",1),i.YNc(2,b,1,0,"ng-content",2),i.qZA()),2&x&&(i.xp6(1),i.Q6J("ngIf",pe.nzSrc),i.xp6(1),i.Q6J("ngIf",!pe.nzSrc))},directives:[t.Dz,n.O5],encapsulation:2,changeDetection:0}),C})(),Ee=(()=>{class C{constructor(x,pe){this.elementRef=x,this.renderer=pe,this.avatarStr="",this.renderer.addClass(x.nativeElement,"ant-list-item-meta")}set nzAvatar(x){x instanceof i.Rgc?(this.avatarStr="",this.avatarTpl=x):this.avatarStr=x}}return C.\u0275fac=function(x){return new(x||C)(i.Y36(i.SBq),i.Y36(i.Qsj))},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(x,pe,Ne){if(1&x&&(i.Suo(Ne,g,5),i.Suo(Ne,z,5)),2&x){let Fe;i.iGM(Fe=i.CRH())&&(pe.descriptionComponent=Fe.first),i.iGM(Fe=i.CRH())&&(pe.titleComponent=Fe.first)}},inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:p,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(x,pe){1&x&&(i.F$t(B),i.YNc(0,ae,1,1,"nz-list-item-meta-avatar",0),i.YNc(1,F,2,1,"nz-list-item-meta-avatar",1),i.Hsn(2),i.YNc(3,L,5,2,"div",2)),2&x&&(i.Q6J("ngIf",pe.avatarStr),i.xp6(1),i.Q6J("ngIf",pe.avatarTpl),i.xp6(2),i.Q6J("ngIf",pe.nzTitle||pe.nzDescription||pe.descriptionComponent||pe.titleComponent))},directives:[ve,z,g,n.O5,n.tP,s.f],encapsulation:2,changeDetection:0}),C})(),Re=(()=>{class C{constructor(){}}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:w,decls:1,vars:0,template:function(x,pe){1&x&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),C})(),We=(()=>{class C{constructor(){}}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-item-action"]],viewQuery:function(x,pe){if(1&x&&i.Gf(i.Rgc,5),2&x){let Ne;i.iGM(Ne=i.CRH())&&(pe.templateRef=Ne.first)}},exportAs:["nzListItemAction"],ngContentSelectors:w,decls:1,vars:0,template:function(x,pe){1&x&&(i.F$t(),i.YNc(0,K,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),C})(),$e=(()=>{class C{constructor(x,pe){this.ngZone=x,this.cdr=pe,this.nzActions=[],this.actions=[],this.destroy$=new c.xQ,this.inputActionChanges$=new c.xQ,this.contentChildrenChanges$=(0,J.P)(()=>this.nzListItemActions?(0,u.of)(null):this.ngZone.onStable.asObservable().pipe((0,Y.q)(1),(0,$.w)(()=>this.contentChildrenChanges$))),(0,I.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,ne.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(Ne=>Ne.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return C.\u0275fac=function(x){return new(x||C)(i.Y36(i.R0b),i.Y36(i.sBO))},C.\u0275cmp=i.Xpm({type:C,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(x,pe,Ne){if(1&x&&i.Suo(Ne,We,4),2&x){let Fe;i.iGM(Fe=i.CRH())&&(pe.nzListItemActions=Fe)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[i.TTD],attrs:k,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(x,pe){1&x&&i.YNc(0,se,3,2,"li",0),2&x&&i.Q6J("ngForOf",pe.actions)},directives:[n.sg,n.tP,n.O5],encapsulation:2,changeDetection:0}),C})(),Be=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,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(x,pe){1&x&&i._UZ(0,"nz-embed-empty",0),2&x&&i.Q6J("nzComponentName","list")("specificContent",pe.nzNoResult)},directives:[R.gB],encapsulation:2,changeDetection:0}),C})(),ke=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:w,decls:1,vars:0,template:function(x,pe){1&x&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),C})(),Je=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:w,decls:1,vars:0,template:function(x,pe){1&x&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),C})(),qe=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:w,decls:1,vars:0,template:function(x,pe){1&x&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),C})(),rt=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275dir=i.lG2({type:C,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),C})(),Ze=(()=>{class C{constructor(x){this.directionality=x,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 O.X(this.nzItemLayout),this.destroy$=new c.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var x;this.dir=this.directionality.value,null===(x=this.directionality.change)||void 0===x||x.pipe((0,ne.R)(this.destroy$)).subscribe(pe=>{this.dir=pe})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(x){x.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return C.\u0275fac=function(x){return new(x||C)(i.Y36(le.Is,8))},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(x,pe,Ne){if(1&x&&(i.Suo(Ne,Je,5),i.Suo(Ne,qe,5),i.Suo(Ne,rt,5)),2&x){let Fe;i.iGM(Fe=i.CRH())&&(pe.nzListFooterComponent=Fe.first),i.iGM(Fe=i.CRH())&&(pe.nzListPaginationComponent=Fe.first),i.iGM(Fe=i.CRH())&&(pe.nzListLoadMoreDirective=Fe.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(x,pe){2&x&&i.ekj("ant-list-rtl","rtl"===pe.dir)("ant-list-vertical","vertical"===pe.nzItemLayout)("ant-list-lg","large"===pe.nzSize)("ant-list-sm","small"===pe.nzSize)("ant-list-split",pe.nzSplit)("ant-list-bordered",pe.nzBordered)("ant-list-loading",pe.nzLoading)("ant-list-something-after-last-item",pe.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:[i.TTD],ngContentSelectors:U,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(x,pe){if(1&x&&(i.F$t(Ae),i.YNc(0,ie,3,1,"ng-template",null,0,i.W1O),i.YNc(2,Oe,2,1,"nz-list-header",1),i.Hsn(3),i.TgZ(4,"nz-spin",2),i.ynx(5),i.YNc(6,V,1,2,"div",3),i.YNc(7,he,2,2,"div",4),i.YNc(8,ce,1,1,"nz-list-empty",5),i.BQk(),i.qZA(),i.YNc(9,Pe,2,1,"nz-list-footer",1),i.Hsn(10,1),i.YNc(11,re,0,0,"ng-template",6),i.Hsn(12,2),i.YNc(13,ge,2,1,"nz-list-pagination",1),i.Hsn(14,3)),2&x){const Ne=i.MAs(1);i.xp6(2),i.Q6J("ngIf",pe.nzHeader),i.xp6(2),i.Q6J("nzSpinning",pe.nzLoading),i.xp6(2),i.Q6J("ngIf",pe.nzLoading&&pe.nzDataSource&&0===pe.nzDataSource.length),i.xp6(1),i.Q6J("ngIf",pe.nzGrid&&pe.nzDataSource)("ngIfElse",Ne),i.xp6(1),i.Q6J("ngIf",!pe.nzLoading&&pe.nzDataSource&&0===pe.nzDataSource.length),i.xp6(1),i.Q6J("ngIf",pe.nzFooter),i.xp6(2),i.Q6J("ngTemplateOutlet",pe.nzLoadMore),i.xp6(2),i.Q6J("ngIf",pe.nzPagination)}},directives:[ke,H.W,Be,Je,qe,n.sg,n.tP,n.O5,s.f,Z.SK,Z.t3],encapsulation:2,changeDetection:0}),(0,N.gn)([(0,_.yF)()],C.prototype,"nzBordered",void 0),(0,N.gn)([(0,_.yF)()],C.prototype,"nzLoading",void 0),(0,N.gn)([(0,_.yF)()],C.prototype,"nzSplit",void 0),C})(),ot=(()=>{class C{constructor(x,pe,Ne,Fe){this.parentComp=Ne,this.cdr=Fe,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,pe.addClass(x.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(x=>{this.itemLayout=x,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return C.\u0275fac=function(x){return new(x||C)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(Ze),i.Y36(i.sBO))},C.\u0275cmp=i.Xpm({type:C,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(x,pe,Ne){if(1&x&&i.Suo(Ne,Re,5),2&x){let Fe;i.iGM(Fe=i.CRH())&&(pe.listItemExtraDirective=Fe.first)}},hostVars:2,hostBindings:function(x,pe){2&x&&i.ekj("ant-list-item-no-flex",pe.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:Ce,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(x,pe){if(1&x&&(i.F$t(l),i.YNc(0,W,2,1,"ng-template",null,0,i.W1O),i.YNc(2,Ge,3,1,"ng-template",null,1,i.W1O),i.YNc(4,tt,1,0,"ng-template",null,2,i.W1O),i.YNc(6,He,4,4,"ng-template",null,3,i.W1O),i.YNc(8,v,6,4,"ng-container",4)),2&x){const Ne=i.MAs(7);i.xp6(8),i.Q6J("ngIf",pe.isVerticalAndExtra)("ngIfElse",Ne)}},directives:[$e,Re,n.O5,s.f,n.tP],encapsulation:2,changeDetection:0}),(0,N.gn)([(0,_.yF)()],C.prototype,"nzNoFlex",void 0),C})(),st=(()=>{class C{}return C.\u0275fac=function(x){return new(x||C)},C.\u0275mod=i.oAB({type:C}),C.\u0275inj=i.cJS({imports:[[le.vT,n.ez,H.j,Z.Jb,t.Rt,s.T,R.Xo]]}),C})()},4219:(Te,te,o)=>{o.d(te,{hl:()=>W,Cc:()=>U,wO:()=>Ye,YV:()=>pt,uA:()=>Ue,r9:()=>be,ip:()=>v});var i=o(655),t=o(5e3),n=o(8929),s=o(591),N=o(6787),_=o(3426),c=o(4850),J=o(1709),u=o(2198),I=o(7604),O=o(7138),Y=o(5778),$=o(7625),ne=o(1059),R=o(7545),le=o(1721),H=o(325),Z=o(226),w=o(2845),A=o(6950),b=o(925),ae=o(4832),F=o(9808),E=o(647),h=o(969),M=o(8076);const P=["nz-submenu-title",""];function L(l,Ce){if(1&l&&t._UZ(0,"i",4),2&l){const z=t.oxw();t.Q6J("nzType",z.nzIcon)}}function B(l,Ce){if(1&l&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.qZA(),t.BQk()),2&l){const z=t.oxw();t.xp6(2),t.Oqu(z.nzTitle)}}function p(l,Ce){1&l&&t._UZ(0,"i",8)}function K(l,Ce){1&l&&t._UZ(0,"i",9)}function k(l,Ce){if(1&l&&(t.TgZ(0,"span",5),t.YNc(1,p,1,0,"i",6),t.YNc(2,K,1,0,"i",7),t.qZA()),2&l){const z=t.oxw();t.Q6J("ngSwitch",z.dir),t.xp6(1),t.Q6J("ngSwitchCase","rtl")}}function X(l,Ce){1&l&&t._UZ(0,"i",10)}const xe=["*"],se=["nz-submenu-inline-child",""];function ye(l,Ce){}const q=["nz-submenu-none-inline-child",""];function me(l,Ce){}const ie=["nz-submenu",""];function ze(l,Ce){1&l&&t.Hsn(0,0,["*ngIf","!nzTitle"])}function Oe(l,Ce){if(1&l&&t._UZ(0,"div",6),2&l){const z=t.oxw(),g=t.MAs(7);t.Q6J("mode",z.mode)("nzOpen",z.nzOpen)("@.disabled",null==z.noAnimation?null:z.noAnimation.nzNoAnimation)("nzNoAnimation",null==z.noAnimation?null:z.noAnimation.nzNoAnimation)("menuClass",z.nzMenuClassName)("templateOutlet",g)}}function V(l,Ce){if(1&l){const z=t.EpF();t.TgZ(0,"div",8),t.NdJ("subMenuMouseState",function(ve){return t.CHM(z),t.oxw(2).setMouseEnterState(ve)}),t.qZA()}if(2&l){const z=t.oxw(2),g=t.MAs(7);t.Q6J("theme",z.theme)("mode",z.mode)("nzOpen",z.nzOpen)("position",z.position)("nzDisabled",z.nzDisabled)("isMenuInsideDropDown",z.isMenuInsideDropDown)("templateOutlet",g)("menuClass",z.nzMenuClassName)("@.disabled",null==z.noAnimation?null:z.noAnimation.nzNoAnimation)("nzNoAnimation",null==z.noAnimation?null:z.noAnimation.nzNoAnimation)}}function fe(l,Ce){if(1&l){const z=t.EpF();t.YNc(0,V,1,10,"ng-template",7),t.NdJ("positionChange",function(ve){return t.CHM(z),t.oxw().onPositionChange(ve)})}if(2&l){const z=t.oxw(),g=t.MAs(1);t.Q6J("cdkConnectedOverlayPositions",z.overlayPositions)("cdkConnectedOverlayOrigin",g)("cdkConnectedOverlayWidth",z.triggerWidth)("cdkConnectedOverlayOpen",z.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function G(l,Ce){1&l&&t.Hsn(0,1)}const he=[[["","title",""]],"*"],ce=["[title]","*"],De=["titleElement"],Pe=["nz-menu-group",""];function re(l,Ce){if(1&l&&(t.ynx(0),t._uU(1),t.BQk()),2&l){const z=t.oxw();t.xp6(1),t.Oqu(z.nzTitle)}}function Ie(l,Ce){1&l&&t.Hsn(0,1,["*ngIf","!nzTitle"])}const ge=["*",[["","title",""]]],Ae=["*","[title]"],U=new t.OlP("NzIsInDropDownMenuToken"),_e=new t.OlP("NzMenuServiceLocalToken");let W=(()=>{class l{constructor(){this.descendantMenuItemClick$=new n.xQ,this.childMenuItemClick$=new n.xQ,this.theme$=new s.X("light"),this.mode$=new s.X("vertical"),this.inlineIndent$=new s.X(24),this.isChildSubMenuOpen$=new s.X(!1)}onDescendantMenuItemClick(z){this.descendantMenuItemClick$.next(z)}onChildMenuItemClick(z){this.childMenuItemClick$.next(z)}setMode(z){this.mode$.next(z)}setTheme(z){this.theme$.next(z)}setInlineIndent(z){this.inlineIndent$.next(z)}}return l.\u0275fac=function(z){return new(z||l)},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac}),l})(),Se=(()=>{class l{constructor(z,g,ve){this.nzHostSubmenuService=z,this.nzMenuService=g,this.isMenuInsideDropDown=ve,this.mode$=this.nzMenuService.mode$.pipe((0,c.U)($e=>"inline"===$e?"inline":"vertical"===$e||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new s.X(!1),this.isChildSubMenuOpen$=new s.X(!1),this.isMouseEnterTitleOrOverlay$=new n.xQ,this.childMenuItemClick$=new n.xQ,this.destroy$=new n.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const Ee=this.childMenuItemClick$.pipe((0,J.zg)(()=>this.mode$),(0,u.h)($e=>"inline"!==$e||this.isMenuInsideDropDown),(0,I.h)(!1)),Re=(0,N.T)(this.isMouseEnterTitleOrOverlay$,Ee);(0,_.aj)([this.isChildSubMenuOpen$,Re]).pipe((0,c.U)(([$e,Be])=>$e||Be),(0,O.e)(150),(0,Y.x)(),(0,$.R)(this.destroy$)).pipe((0,Y.x)()).subscribe($e=>{this.setOpenStateWithoutDebounce($e),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next($e):this.nzMenuService.isChildSubMenuOpen$.next($e)})}onChildMenuItemClick(z){this.childMenuItemClick$.next(z)}setOpenStateWithoutDebounce(z){this.isCurrentSubMenuOpen$.next(z)}setMouseEnterTitleOrOverlayState(z){this.isMouseEnterTitleOrOverlay$.next(z)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return l.\u0275fac=function(z){return new(z||l)(t.LFG(l,12),t.LFG(W),t.LFG(U))},l.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac}),l})(),be=(()=>{class l{constructor(z,g,ve,Ee,Re,We,$e,Be){this.nzMenuService=z,this.cdr=g,this.nzSubmenuService=ve,this.isMenuInsideDropDown=Ee,this.directionality=Re,this.routerLink=We,this.routerLinkWithHref=$e,this.router=Be,this.destroy$=new n.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new n.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Be&&this.router.events.pipe((0,$.R)(this.destroy$),(0,u.h)(ke=>ke instanceof H.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(z){this.nzDisabled?(z.preventDefault(),z.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(z){this.nzSelected=z,this.selected$.next(z)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const z=this.hasActiveLinks();this.nzSelected!==z&&(this.nzSelected=z,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const z=this.isLinkActive(this.router);return this.routerLink&&z(this.routerLink)||this.routerLinkWithHref&&z(this.routerLinkWithHref)||this.listOfRouterLink.some(z)||this.listOfRouterLinkWithHref.some(z)}isLinkActive(z){return g=>z.isActive(g.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var z;(0,_.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,$.R)(this.destroy$)).subscribe(([g,ve])=>{this.inlinePaddingLeft="inline"===g?this.level*ve:null}),this.dir=this.directionality.value,null===(z=this.directionality.change)||void 0===z||z.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.dir=g})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,$.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,$.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(z){z.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return l.\u0275fac=function(z){return new(z||l)(t.Y36(W),t.Y36(t.sBO),t.Y36(Se,8),t.Y36(U),t.Y36(Z.Is,8),t.Y36(H.rH,8),t.Y36(H.yS,8),t.Y36(H.F0,8))},l.\u0275dir=t.lG2({type:l,selectors:[["","nz-menu-item",""]],contentQueries:function(z,g,ve){if(1&z&&(t.Suo(ve,H.rH,5),t.Suo(ve,H.yS,5)),2&z){let Ee;t.iGM(Ee=t.CRH())&&(g.listOfRouterLink=Ee),t.iGM(Ee=t.CRH())&&(g.listOfRouterLinkWithHref=Ee)}},hostVars:20,hostBindings:function(z,g){1&z&&t.NdJ("click",function(Ee){return g.clickMenuItem(Ee)}),2&z&&(t.Udp("padding-left","rtl"===g.dir?null:g.nzPaddingLeft||g.inlinePaddingLeft,"px")("padding-right","rtl"===g.dir?g.nzPaddingLeft||g.inlinePaddingLeft:null,"px"),t.ekj("ant-dropdown-menu-item",g.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",g.isMenuInsideDropDown&&g.nzSelected)("ant-dropdown-menu-item-danger",g.isMenuInsideDropDown&&g.nzDanger)("ant-dropdown-menu-item-disabled",g.isMenuInsideDropDown&&g.nzDisabled)("ant-menu-item",!g.isMenuInsideDropDown)("ant-menu-item-selected",!g.isMenuInsideDropDown&&g.nzSelected)("ant-menu-item-danger",!g.isMenuInsideDropDown&&g.nzDanger)("ant-menu-item-disabled",!g.isMenuInsideDropDown&&g.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[t.TTD]}),(0,i.gn)([(0,le.yF)()],l.prototype,"nzDisabled",void 0),(0,i.gn)([(0,le.yF)()],l.prototype,"nzSelected",void 0),(0,i.gn)([(0,le.yF)()],l.prototype,"nzDanger",void 0),(0,i.gn)([(0,le.yF)()],l.prototype,"nzMatchRouterExact",void 0),(0,i.gn)([(0,le.yF)()],l.prototype,"nzMatchRouter",void 0),l})(),Ge=(()=>{class l{constructor(z,g){this.cdr=z,this.directionality=g,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new t.vpe,this.subMenuMouseState=new t.vpe,this.dir="ltr",this.destroy$=new n.xQ}ngOnInit(){var z;this.dir=this.directionality.value,null===(z=this.directionality.change)||void 0===z||z.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(z){this.nzDisabled||this.subMenuMouseState.next(z)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return l.\u0275fac=function(z){return new(z||l)(t.Y36(t.sBO),t.Y36(Z.Is,8))},l.\u0275cmp=t.Xpm({type:l,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(z,g){1&z&&t.NdJ("click",function(){return g.clickTitle()})("mouseenter",function(){return g.setMouseState(!0)})("mouseleave",function(){return g.setMouseState(!1)}),2&z&&(t.Udp("padding-left","rtl"===g.dir?null:g.paddingLeft,"px")("padding-right","rtl"===g.dir?g.paddingLeft:null,"px"),t.ekj("ant-dropdown-menu-submenu-title",g.isMenuInsideDropDown)("ant-menu-submenu-title",!g.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:P,ngContentSelectors:xe,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(z,g){if(1&z&&(t.F$t(),t.YNc(0,L,1,1,"i",0),t.YNc(1,B,3,1,"ng-container",1),t.Hsn(2),t.YNc(3,k,3,2,"span",2),t.YNc(4,X,1,0,"ng-template",null,3,t.W1O)),2&z){const ve=t.MAs(5);t.Q6J("ngIf",g.nzIcon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",g.nzTitle),t.xp6(2),t.Q6J("ngIf",g.isMenuInsideDropDown)("ngIfElse",ve)}},directives:[F.O5,E.Ls,h.f,F.RF,F.n9,F.ED],encapsulation:2,changeDetection:0}),l})(),tt=(()=>{class l{constructor(z,g,ve){this.elementRef=z,this.renderer=g,this.directionality=ve,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new n.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var z;this.calcMotionState(),this.dir=this.directionality.value,null===(z=this.directionality.change)||void 0===z||z.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.dir=g})}ngOnChanges(z){const{mode:g,nzOpen:ve,menuClass:Ee}=z;(g||ve)&&this.calcMotionState(),Ee&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(Re=>!!Re).forEach(Re=>{this.renderer.removeClass(this.elementRef.nativeElement,Re)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(Re=>!!Re).forEach(Re=>{this.renderer.addClass(this.elementRef.nativeElement,Re)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return l.\u0275fac=function(z){return new(z||l)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Z.Is,8))},l.\u0275cmp=t.Xpm({type:l,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(z,g){2&z&&(t.d8E("@collapseMotion",g.expandState),t.ekj("ant-menu-rtl","rtl"===g.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[t.TTD],attrs:se,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(z,g){1&z&&t.YNc(0,ye,0,0,"ng-template",0),2&z&&t.Q6J("ngTemplateOutlet",g.templateOutlet)},directives:[F.tP],encapsulation:2,data:{animation:[M.J_]},changeDetection:0}),l})(),nt=(()=>{class l{constructor(z){this.directionality=z,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 t.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new n.xQ}setMouseState(z){this.nzDisabled||this.subMenuMouseState.next(z)}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 z;this.calcMotionState(),this.dir=this.directionality.value,null===(z=this.directionality.change)||void 0===z||z.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.dir=g})}ngOnChanges(z){const{mode:g,nzOpen:ve}=z;(g||ve)&&this.calcMotionState()}}return l.\u0275fac=function(z){return new(z||l)(t.Y36(Z.Is,8))},l.\u0275cmp=t.Xpm({type:l,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(z,g){1&z&&t.NdJ("mouseenter",function(){return g.setMouseState(!0)})("mouseleave",function(){return g.setMouseState(!1)}),2&z&&(t.d8E("@slideMotion",g.expandState)("@zoomBigMotion",g.expandState),t.ekj("ant-menu-light","light"===g.theme)("ant-menu-dark","dark"===g.theme)("ant-menu-submenu-placement-bottom","horizontal"===g.mode)("ant-menu-submenu-placement-right","vertical"===g.mode&&"right"===g.position)("ant-menu-submenu-placement-left","vertical"===g.mode&&"left"===g.position)("ant-menu-submenu-rtl","rtl"===g.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[t.TTD],attrs:q,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(z,g){1&z&&(t.TgZ(0,"div",0),t.YNc(1,me,0,0,"ng-template",1),t.qZA()),2&z&&(t.ekj("ant-dropdown-menu",g.isMenuInsideDropDown)("ant-menu",!g.isMenuInsideDropDown)("ant-dropdown-menu-vertical",g.isMenuInsideDropDown)("ant-menu-vertical",!g.isMenuInsideDropDown)("ant-dropdown-menu-sub",g.isMenuInsideDropDown)("ant-menu-sub",!g.isMenuInsideDropDown)("ant-menu-rtl","rtl"===g.dir),t.Q6J("ngClass",g.menuClass),t.xp6(1),t.Q6J("ngTemplateOutlet",g.templateOutlet))},directives:[F.mk,F.tP],encapsulation:2,data:{animation:[M.$C,M.mF]},changeDetection:0}),l})();const Ke=[A.yW.rightTop,A.yW.right,A.yW.rightBottom,A.yW.leftTop,A.yW.left,A.yW.leftBottom],Ve=[A.yW.bottomLeft];let y=(()=>{class l{constructor(z,g,ve,Ee,Re,We,$e){this.nzMenuService=z,this.cdr=g,this.nzSubmenuService=ve,this.platform=Ee,this.isMenuInsideDropDown=Re,this.directionality=We,this.noAnimation=$e,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new t.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new n.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=Ke,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(z){this.nzSubmenuService.setOpenStateWithoutDebounce(z)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(z){this.isActive=z,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(z)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(z){const g=(0,A.d_)(z);"rightTop"===g||"rightBottom"===g||"right"===g?this.position="right":("leftTop"===g||"leftBottom"===g||"left"===g)&&(this.position="left")}ngOnInit(){var z;this.nzMenuService.theme$.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.theme=g,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.mode=g,"horizontal"===g?this.overlayPositions=Ve:"vertical"===g&&(this.overlayPositions=Ke),this.cdr.markForCheck()}),(0,_.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,$.R)(this.destroy$)).subscribe(([g,ve])=>{this.inlinePaddingLeft="inline"===g?this.level*ve:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.isActive=g,g!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=g,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(z=this.directionality.change)||void 0===z||z.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.dir=g,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const z=this.listOfNzMenuItemDirective,g=z.changes,ve=(0,N.T)(g,...z.map(Ee=>Ee.selected$));g.pipe((0,ne.O)(z),(0,R.w)(()=>ve),(0,ne.O)(!0),(0,c.U)(()=>z.some(Ee=>Ee.nzSelected)),(0,$.R)(this.destroy$)).subscribe(Ee=>{this.isSelected=Ee,this.cdr.markForCheck()})}ngOnChanges(z){const{nzOpen:g}=z;g&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return l.\u0275fac=function(z){return new(z||l)(t.Y36(W),t.Y36(t.sBO),t.Y36(Se),t.Y36(b.t4),t.Y36(U),t.Y36(Z.Is,8),t.Y36(ae.P,9))},l.\u0275cmp=t.Xpm({type:l,selectors:[["","nz-submenu",""]],contentQueries:function(z,g,ve){if(1&z&&(t.Suo(ve,l,5),t.Suo(ve,be,5)),2&z){let Ee;t.iGM(Ee=t.CRH())&&(g.listOfNzSubMenuComponent=Ee),t.iGM(Ee=t.CRH())&&(g.listOfNzMenuItemDirective=Ee)}},viewQuery:function(z,g){if(1&z&&t.Gf(w.xu,7,t.SBq),2&z){let ve;t.iGM(ve=t.CRH())&&(g.cdkOverlayOrigin=ve.first)}},hostVars:34,hostBindings:function(z,g){2&z&&t.ekj("ant-dropdown-menu-submenu",g.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",g.isMenuInsideDropDown&&g.nzDisabled)("ant-dropdown-menu-submenu-open",g.isMenuInsideDropDown&&g.nzOpen)("ant-dropdown-menu-submenu-selected",g.isMenuInsideDropDown&&g.isSelected)("ant-dropdown-menu-submenu-vertical",g.isMenuInsideDropDown&&"vertical"===g.mode)("ant-dropdown-menu-submenu-horizontal",g.isMenuInsideDropDown&&"horizontal"===g.mode)("ant-dropdown-menu-submenu-inline",g.isMenuInsideDropDown&&"inline"===g.mode)("ant-dropdown-menu-submenu-active",g.isMenuInsideDropDown&&g.isActive)("ant-menu-submenu",!g.isMenuInsideDropDown)("ant-menu-submenu-disabled",!g.isMenuInsideDropDown&&g.nzDisabled)("ant-menu-submenu-open",!g.isMenuInsideDropDown&&g.nzOpen)("ant-menu-submenu-selected",!g.isMenuInsideDropDown&&g.isSelected)("ant-menu-submenu-vertical",!g.isMenuInsideDropDown&&"vertical"===g.mode)("ant-menu-submenu-horizontal",!g.isMenuInsideDropDown&&"horizontal"===g.mode)("ant-menu-submenu-inline",!g.isMenuInsideDropDown&&"inline"===g.mode)("ant-menu-submenu-active",!g.isMenuInsideDropDown&&g.isActive)("ant-menu-submenu-rtl","rtl"===g.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[t._Bn([Se]),t.TTD],attrs:ie,ngContentSelectors:ce,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(z,g){if(1&z&&(t.F$t(he),t.TgZ(0,"div",0,1),t.NdJ("subMenuMouseState",function(Ee){return g.setMouseEnterState(Ee)})("toggleSubMenu",function(){return g.toggleSubMenu()}),t.YNc(2,ze,1,0,"ng-content",2),t.qZA(),t.YNc(3,Oe,1,6,"div",3),t.YNc(4,fe,1,5,"ng-template",null,4,t.W1O),t.YNc(6,G,1,0,"ng-template",null,5,t.W1O)),2&z){const ve=t.MAs(5);t.Q6J("nzIcon",g.nzIcon)("nzTitle",g.nzTitle)("mode",g.mode)("nzDisabled",g.nzDisabled)("isMenuInsideDropDown",g.isMenuInsideDropDown)("paddingLeft",g.nzPaddingLeft||g.inlinePaddingLeft),t.xp6(2),t.Q6J("ngIf",!g.nzTitle),t.xp6(1),t.Q6J("ngIf","inline"===g.mode)("ngIfElse",ve)}},directives:[Ge,tt,nt,w.xu,F.O5,ae.P,w.pI],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,le.yF)()],l.prototype,"nzOpen",void 0),(0,i.gn)([(0,le.yF)()],l.prototype,"nzDisabled",void 0),l})();function He(l,Ce){return l||Ce}function Xe(l){return l||!1}let Ye=(()=>{class l{constructor(z,g,ve,Ee){this.nzMenuService=z,this.isMenuInsideDropDown=g,this.cdr=ve,this.directionality=Ee,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new t.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new s.X(this.nzInlineCollapsed),this.mode$=new s.X(this.nzMode),this.destroy$=new n.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(z){this.nzInlineCollapsed=z,this.inlineCollapsed$.next(z)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(z=>z.nzOpen),this.listOfNzSubMenuComponent.forEach(z=>z.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(z=>z.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var z;(0,_.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,$.R)(this.destroy$)).subscribe(([g,ve])=>{this.actualMode=g?"vertical":ve,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.nzClick.emit(g),this.nzSelectable&&!g.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(ve=>ve.setSelectedState(ve===g))}),this.dir=this.directionality.value,null===(z=this.directionality.change)||void 0===z||z.pipe((0,$.R)(this.destroy$)).subscribe(g=>{this.dir=g,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,$.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(z){const{nzInlineCollapsed:g,nzInlineIndent:ve,nzTheme:Ee,nzMode:Re}=z;g&&this.inlineCollapsed$.next(this.nzInlineCollapsed),ve&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),Ee&&this.nzMenuService.setTheme(this.nzTheme),Re&&(this.mode$.next(this.nzMode),!z.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(We=>We.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return l.\u0275fac=function(z){return new(z||l)(t.Y36(W),t.Y36(U),t.Y36(t.sBO),t.Y36(Z.Is,8))},l.\u0275dir=t.lG2({type:l,selectors:[["","nz-menu",""]],contentQueries:function(z,g,ve){if(1&z&&(t.Suo(ve,be,5),t.Suo(ve,y,5)),2&z){let Ee;t.iGM(Ee=t.CRH())&&(g.listOfNzMenuItemDirective=Ee),t.iGM(Ee=t.CRH())&&(g.listOfNzSubMenuComponent=Ee)}},hostVars:34,hostBindings:function(z,g){2&z&&t.ekj("ant-dropdown-menu",g.isMenuInsideDropDown)("ant-dropdown-menu-root",g.isMenuInsideDropDown)("ant-dropdown-menu-light",g.isMenuInsideDropDown&&"light"===g.nzTheme)("ant-dropdown-menu-dark",g.isMenuInsideDropDown&&"dark"===g.nzTheme)("ant-dropdown-menu-vertical",g.isMenuInsideDropDown&&"vertical"===g.actualMode)("ant-dropdown-menu-horizontal",g.isMenuInsideDropDown&&"horizontal"===g.actualMode)("ant-dropdown-menu-inline",g.isMenuInsideDropDown&&"inline"===g.actualMode)("ant-dropdown-menu-inline-collapsed",g.isMenuInsideDropDown&&g.nzInlineCollapsed)("ant-menu",!g.isMenuInsideDropDown)("ant-menu-root",!g.isMenuInsideDropDown)("ant-menu-light",!g.isMenuInsideDropDown&&"light"===g.nzTheme)("ant-menu-dark",!g.isMenuInsideDropDown&&"dark"===g.nzTheme)("ant-menu-vertical",!g.isMenuInsideDropDown&&"vertical"===g.actualMode)("ant-menu-horizontal",!g.isMenuInsideDropDown&&"horizontal"===g.actualMode)("ant-menu-inline",!g.isMenuInsideDropDown&&"inline"===g.actualMode)("ant-menu-inline-collapsed",!g.isMenuInsideDropDown&&g.nzInlineCollapsed)("ant-menu-rtl","rtl"===g.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[t._Bn([{provide:_e,useClass:W},{provide:W,useFactory:He,deps:[[new t.tp0,new t.FiY,W],_e]},{provide:U,useFactory:Xe,deps:[[new t.tp0,new t.FiY,U]]}]),t.TTD]}),(0,i.gn)([(0,le.yF)()],l.prototype,"nzInlineCollapsed",void 0),(0,i.gn)([(0,le.yF)()],l.prototype,"nzSelectable",void 0),l})();function lt(l){return l||!1}let Ue=(()=>{class l{constructor(z,g,ve){this.elementRef=z,this.renderer=g,this.isMenuInsideDropDown=ve,this.renderer.addClass(z.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const z=this.titleElement.nativeElement.nextElementSibling;z&&this.renderer.addClass(z,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}}return l.\u0275fac=function(z){return new(z||l)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(U))},l.\u0275cmp=t.Xpm({type:l,selectors:[["","nz-menu-group",""]],viewQuery:function(z,g){if(1&z&&t.Gf(De,5),2&z){let ve;t.iGM(ve=t.CRH())&&(g.titleElement=ve.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],features:[t._Bn([{provide:U,useFactory:lt,deps:[[new t.tp0,new t.FiY,U]]}])],attrs:Pe,ngContentSelectors:Ae,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"],[4,"ngIf"]],template:function(z,g){1&z&&(t.F$t(ge),t.TgZ(0,"div",null,0),t.YNc(2,re,2,1,"ng-container",1),t.YNc(3,Ie,1,0,"ng-content",2),t.qZA(),t.Hsn(4)),2&z&&(t.ekj("ant-menu-item-group-title",!g.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",g.isMenuInsideDropDown),t.xp6(2),t.Q6J("nzStringTemplateOutlet",g.nzTitle),t.xp6(1),t.Q6J("ngIf",!g.nzTitle))},directives:[h.f,F.O5],encapsulation:2,changeDetection:0}),l})(),pt=(()=>{class l{constructor(z,g){this.elementRef=z,this.renderer=g,this.renderer.addClass(z.nativeElement,"ant-dropdown-menu-item-divider")}}return l.\u0275fac=function(z){return new(z||l)(t.Y36(t.SBq),t.Y36(t.Qsj))},l.\u0275dir=t.lG2({type:l,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),l})(),v=(()=>{class l{}return l.\u0275fac=function(z){return new(z||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[Z.vT,F.ez,b.ud,w.U8,E.PV,ae.g,h.T]]}),l})()},3610:(Te,te,o)=>{o.d(te,{lU:()=>Z,$6:()=>A});var i=o(655),t=o(5e3),n=o(8076),s=o(9439),N=o(1721),_=o(404),c=o(4832),J=o(226),u=o(2845),I=o(6950),O=o(9808),Y=o(969);function $(b,ae){if(1&b&&(t.ynx(0),t._uU(1),t.BQk()),2&b){const F=t.oxw(3);t.xp6(1),t.Oqu(F.nzTitle)}}function ne(b,ae){if(1&b&&(t.TgZ(0,"div",10),t.YNc(1,$,2,1,"ng-container",9),t.qZA()),2&b){const F=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",F.nzTitle)}}function R(b,ae){if(1&b&&(t.ynx(0),t._uU(1),t.BQk()),2&b){const F=t.oxw(2);t.xp6(1),t.Oqu(F.nzContent)}}function le(b,ae){if(1&b&&(t.TgZ(0,"div",2),t.TgZ(1,"div",3),t.TgZ(2,"div",4),t._UZ(3,"span",5),t.qZA(),t.TgZ(4,"div",6),t.TgZ(5,"div"),t.YNc(6,ne,2,1,"div",7),t.TgZ(7,"div",8),t.YNc(8,R,2,1,"ng-container",9),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&b){const F=t.oxw();t.ekj("ant-popover-rtl","rtl"===F.dir),t.Q6J("ngClass",F._classMap)("ngStyle",F.nzOverlayStyle)("@.disabled",null==F.noAnimation?null:F.noAnimation.nzNoAnimation)("nzNoAnimation",null==F.noAnimation?null:F.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),t.xp6(6),t.Q6J("ngIf",F.nzTitle),t.xp6(2),t.Q6J("nzStringTemplateOutlet",F.nzContent)}}let Z=(()=>{class b extends _.Mg{constructor(F,E,h,M,P,L){super(F,E,h,M,P,L),this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new t.vpe,this.componentRef=this.hostView.createComponent(w)}getProxyPropertyMap(){return Object.assign({nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop]},super.getProxyPropertyMap())}}return b.\u0275fac=function(F){return new(F||b)(t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t._Vd),t.Y36(t.Qsj),t.Y36(c.P,9),t.Y36(s.jY))},b.\u0275dir=t.lG2({type:b,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(F,E){2&F&&t.ekj("ant-popover-open",E.visible)},inputs:{arrowPointAtCenter:["nzPopoverArrowPointAtCenter","arrowPointAtCenter"],title:["nzPopoverTitle","title"],content:["nzPopoverContent","content"],directiveTitle:["nz-popover","directiveTitle"],trigger:["nzPopoverTrigger","trigger"],placement:["nzPopoverPlacement","placement"],origin:["nzPopoverOrigin","origin"],visible:["nzPopoverVisible","visible"],mouseEnterDelay:["nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzPopoverOverlayClassName","overlayClassName"],overlayStyle:["nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],features:[t.qOj]}),(0,i.gn)([(0,N.yF)()],b.prototype,"arrowPointAtCenter",void 0),(0,i.gn)([(0,s.oS)()],b.prototype,"nzPopoverBackdrop",void 0),b})(),w=(()=>{class b extends _.XK{constructor(F,E,h){super(F,E,h),this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return(0,_.pu)(this.nzTitle)&&(0,_.pu)(this.nzContent)}}return b.\u0275fac=function(F){return new(F||b)(t.Y36(t.sBO),t.Y36(J.Is,8),t.Y36(c.P,9))},b.\u0275cmp=t.Xpm({type:b,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],features:[t.qOj],decls:2,vars:6,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],["role","tooltip",1,"ant-popover-inner"],["class","ant-popover-title",4,"ngIf"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-title"]],template:function(F,E){1&F&&(t.YNc(0,le,9,9,"ng-template",0,1,t.W1O),t.NdJ("overlayOutsideClick",function(M){return E.onClickOutside(M)})("detach",function(){return E.hide()})("positionChange",function(M){return E.onPositionChange(M)})),2&F&&t.Q6J("cdkConnectedOverlayHasBackdrop",E.hasBackdrop)("cdkConnectedOverlayOrigin",E.origin)("cdkConnectedOverlayPositions",E._positions)("cdkConnectedOverlayOpen",E._visible)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",E.nzArrowPointAtCenter)},directives:[u.pI,I.hQ,O.mk,O.PC,c.P,O.O5,Y.f],encapsulation:2,data:{animation:[n.$C]},changeDetection:0}),b})(),A=(()=>{class b{}return b.\u0275fac=function(F){return new(F||b)},b.\u0275mod=t.oAB({type:b}),b.\u0275inj=t.cJS({imports:[[J.vT,O.ez,u.U8,Y.T,I.e4,c.g,_.cg]]}),b})()},8144:(Te,te,o)=>{o.d(te,{NU:()=>H,$1:()=>ne,zf:()=>Z});var i=o(226),t=o(9808),n=o(5e3),s=o(655),N=o(8929),_=o(7625),c=o(9439),J=o(1721);function u(w,A){}const I=function(w){return{$implicit:w}};function O(w,A){if(1&w&&(n.TgZ(0,"span",4),n.YNc(1,u,0,0,"ng-template",5),n.qZA()),2&w){const b=n.oxw(),ae=b.last,F=b.index,E=n.oxw();n.Udp("margin-bottom","vertical"===E.nzDirection?ae?null:E.spaceSize:null,"px")("margin-right","horizontal"===E.nzDirection?ae?null:E.spaceSize:null,"px"),n.xp6(1),n.Q6J("ngTemplateOutlet",E.nzSplit)("ngTemplateOutletContext",n.VKq(6,I,F))}}function Y(w,A){if(1&w&&(n.TgZ(0,"div",1),n.GkF(1,2),n.qZA(),n.YNc(2,O,2,8,"span",3)),2&w){const b=A.$implicit,ae=A.last,F=n.oxw();n.Udp("margin-bottom","vertical"===F.nzDirection?ae?null:F.spaceSize:null,"px")("margin-right","horizontal"===F.nzDirection?ae?null:F.spaceSize:null,"px"),n.xp6(1),n.Q6J("ngTemplateOutlet",b),n.xp6(1),n.Q6J("ngIf",F.nzSplit&&!ae)}}const $=["*"];let ne=(()=>{class w{constructor(){}}return w.\u0275fac=function(b){return new(b||w)},w.\u0275dir=n.lG2({type:w,selectors:[["","nzSpaceItem",""]]}),w})();const le={small:8,middle:16,large:24};let H=(()=>{class w{constructor(b,ae){this.nzConfigService=b,this.cdr=ae,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=le.small,this.destroy$=new N.xQ}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?le[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,_.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}}return w.\u0275fac=function(b){return new(b||w)(n.Y36(c.jY),n.Y36(n.sBO))},w.\u0275cmp=n.Xpm({type:w,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(b,ae,F){if(1&b&&n.Suo(F,ne,4,n.Rgc),2&b){let E;n.iGM(E=n.CRH())&&(ae.items=E)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(b,ae){2&b&&(n.Udp("flex-wrap",ae.nzWrap?"wrap":null),n.ekj("ant-space-horizontal","horizontal"===ae.nzDirection)("ant-space-vertical","vertical"===ae.nzDirection)("ant-space-align-start","start"===ae.mergedAlign)("ant-space-align-end","end"===ae.mergedAlign)("ant-space-align-center","center"===ae.mergedAlign)("ant-space-align-baseline","baseline"===ae.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:"nzWrap",nzSize:"nzSize"},exportAs:["NzSpace"],features:[n.TTD],ngContentSelectors:$,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(b,ae){1&b&&(n.F$t(),n.Hsn(0),n.YNc(1,Y,3,6,"ng-template",0)),2&b&&(n.xp6(1),n.Q6J("ngForOf",ae.items))},directives:[t.sg,t.tP,t.O5],encapsulation:2,changeDetection:0}),(0,s.gn)([(0,J.yF)()],w.prototype,"nzWrap",void 0),(0,s.gn)([(0,c.oS)()],w.prototype,"nzSize",void 0),w})(),Z=(()=>{class w{}return w.\u0275fac=function(b){return new(b||w)},w.\u0275mod=n.oAB({type:w}),w.\u0275inj=n.cJS({imports:[[i.vT,t.ez]]}),w})()},7525:(Te,te,o)=>{o.d(te,{W:()=>P,j:()=>L});var i=o(655),t=o(5e3),n=o(8929),s=o(591),N=o(839),_=o(8723),c=o(1177);class u{constructor(p){this.durationSelector=p}call(p,K){return K.subscribe(new I(p,this.durationSelector))}}class I extends c.Ds{constructor(p,K){super(p),this.durationSelector=K,this.hasValue=!1}_next(p){try{const K=this.durationSelector.call(this,p);K&&this._tryNext(p,K)}catch(K){this.destination.error(K)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(p,K){let k=this.durationSubscription;this.value=p,this.hasValue=!0,k&&(k.unsubscribe(),this.remove(k)),k=(0,c.ft)(K,new c.IY(this)),k&&!k.closed&&this.add(this.durationSubscription=k)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const p=this.value,K=this.durationSubscription;K&&(this.durationSubscription=void 0,K.unsubscribe(),this.remove(K)),this.value=void 0,this.hasValue=!1,super._next(p)}}}var O=o(1059),Y=o(5778),$=o(7545),ne=o(7625),R=o(9439),le=o(1721),H=o(226),Z=o(9808),w=o(7144);function A(B,p){1&B&&(t.TgZ(0,"span",3),t._UZ(1,"i",4),t._UZ(2,"i",4),t._UZ(3,"i",4),t._UZ(4,"i",4),t.qZA())}function b(B,p){}function ae(B,p){if(1&B&&(t.TgZ(0,"div",8),t._uU(1),t.qZA()),2&B){const K=t.oxw(2);t.xp6(1),t.Oqu(K.nzTip)}}function F(B,p){if(1&B&&(t.TgZ(0,"div"),t.TgZ(1,"div",5),t.YNc(2,b,0,0,"ng-template",6),t.YNc(3,ae,2,1,"div",7),t.qZA(),t.qZA()),2&B){const K=t.oxw(),k=t.MAs(1);t.xp6(1),t.ekj("ant-spin-rtl","rtl"===K.dir)("ant-spin-spinning",K.isLoading)("ant-spin-lg","large"===K.nzSize)("ant-spin-sm","small"===K.nzSize)("ant-spin-show-text",K.nzTip),t.xp6(1),t.Q6J("ngTemplateOutlet",K.nzIndicator||k),t.xp6(1),t.Q6J("ngIf",K.nzTip)}}function E(B,p){if(1&B&&(t.TgZ(0,"div",9),t.Hsn(1),t.qZA()),2&B){const K=t.oxw();t.ekj("ant-spin-blur",K.isLoading)}}const h=["*"],M="spin";let P=(()=>{class B{constructor(K,k,X){this.nzConfigService=K,this.cdr=k,this.directionality=X,this._nzModuleName=M,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new n.xQ,this.spinning$=new s.X(this.nzSpinning),this.delay$=new N.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var K;this.delay$.pipe((0,O.O)(this.nzDelay),(0,Y.x)(),(0,$.w)(X=>0===X?this.spinning$:this.spinning$.pipe(function J(B){return p=>p.lift(new u(B))}(xe=>(0,_.H)(xe?X:0)))),(0,ne.R)(this.destroy$)).subscribe(X=>{this.isLoading=X,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(M).pipe((0,ne.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(K=this.directionality.change)||void 0===K||K.pipe((0,ne.R)(this.destroy$)).subscribe(X=>{this.dir=X,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(K){const{nzSpinning:k,nzDelay:X}=K;k&&this.spinning$.next(this.nzSpinning),X&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return B.\u0275fac=function(K){return new(K||B)(t.Y36(R.jY),t.Y36(t.sBO),t.Y36(H.Is,8))},B.\u0275cmp=t.Xpm({type:B,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(K,k){2&K&&t.ekj("ant-spin-nested-loading",!k.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[t.TTD],ngContentSelectors:h,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(K,k){1&K&&(t.F$t(),t.YNc(0,A,5,0,"ng-template",null,0,t.W1O),t.YNc(2,F,4,12,"div",1),t.YNc(3,E,2,2,"div",2)),2&K&&(t.xp6(2),t.Q6J("ngIf",k.isLoading),t.xp6(1),t.Q6J("ngIf",!k.nzSimple))},directives:[Z.O5,Z.tP],encapsulation:2}),(0,i.gn)([(0,R.oS)()],B.prototype,"nzIndicator",void 0),(0,i.gn)([(0,le.Rn)()],B.prototype,"nzDelay",void 0),(0,i.gn)([(0,le.yF)()],B.prototype,"nzSimple",void 0),(0,i.gn)([(0,le.yF)()],B.prototype,"nzSpinning",void 0),B})(),L=(()=>{class B{}return B.\u0275fac=function(K){return new(K||B)},B.\u0275mod=t.oAB({type:B}),B.\u0275inj=t.cJS({imports:[[H.vT,Z.ez,w.Q8]]}),B})()},8481:(Te,te,o)=>{o.d(te,{j:()=>$,X:()=>ne});var i=o(655),t=o(5e3),n=o(8929),s=o(7625),N=o(8693),_=o(1721),c=o(226),J=o(9808),u=o(647),I=o(4182);function O(R,le){if(1&R){const H=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(w){return t.CHM(H),t.oxw().closeTag(w)}),t.qZA()}}const Y=["*"];let $=(()=>{class R{constructor(H,Z,w,A){this.cdr=H,this.renderer=Z,this.elementRef=w,this.directionality=A,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new n.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(H){this.nzOnClose.emit(H),H.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const H=this.elementRef.nativeElement,Z=new RegExp(`(ant-tag-(?:${[...N.uf,...N.Bh].join("|")}))`,"g"),w=H.classList.toString(),A=[];let b=Z.exec(w);for(;null!==b;)A.push(b[1]),b=Z.exec(w);H.classList.remove(...A)}setPresetColor(){const H=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,N.o2)(this.nzColor)||(0,N.M8)(this.nzColor)),this.isPresetColor&&H.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var H;null===(H=this.directionality.change)||void 0===H||H.pipe((0,s.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(H){const{nzColor:Z}=H;Z&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return R.\u0275fac=function(H){return new(H||R)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(c.Is,8))},R.\u0275cmp=t.Xpm({type:R,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(H,Z){1&H&&t.NdJ("click",function(){return Z.updateCheckedStatus()}),2&H&&(t.Udp("background-color",Z.isPresetColor?"":Z.nzColor),t.ekj("ant-tag-has-color",Z.nzColor&&!Z.isPresetColor)("ant-tag-checkable","checkable"===Z.nzMode)("ant-tag-checkable-checked",Z.nzChecked)("ant-tag-rtl","rtl"===Z.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:Y,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(H,Z){1&H&&(t.F$t(),t.Hsn(0),t.YNc(1,O,1,0,"i",0)),2&H&&(t.xp6(1),t.Q6J("ngIf","closeable"===Z.nzMode))},directives:[J.O5,u.Ls],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,_.yF)()],R.prototype,"nzChecked",void 0),R})(),ne=(()=>{class R{}return R.\u0275fac=function(H){return new(H||R)},R.\u0275mod=t.oAB({type:R}),R.\u0275inj=t.cJS({imports:[[c.vT,J.ez,I.u5,u.PV]]}),R})()}}]); \ No newline at end of file diff --git a/server/public/4024.a4fa77c625077d76.js b/server/public/4024.a4fa77c625077d76.js deleted file mode 100644 index 434f4c629..000000000 --- a/server/public/4024.a4fa77c625077d76.js +++ /dev/null @@ -1,3530 +0,0 @@ -"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),w=r(2160),q=r(3762),O=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(w.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,O.Ls],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}"]}),te})();function Q(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 Y(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,Q,4,0,"ng-container",2),o.qZA(),o.YNc(5,K,1,0,"ng-template",null,3,o.W1O),o.YNc(7,Y,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 w=(()=>{class O{}return O.\u0275fac=function(Q){return new(Q||O)},O.\u0275mod=Z.oAB({type:O}),O.\u0275inj=Z.cJS({imports:[[o.ez,F.PV,D.Ph,i.sL]]}),O})(),q=(()=>{class O{}return O.\u0275fac=function(Q){return new(Q||O)},O.\u0275mod=Z.oAB({type:O}),O.\u0275inj=Z.cJS({imports:[[o.ez,i.sL,t.Qp,w]]}),O})()},7881:(De,re,r)=>{r.d(re,{L:()=>Z});var o=r(5e3),i=r(9808),t=r(6699);function D(w,q){if(1&w&&o._UZ(0,"nz-avatar",2),2&w){const O=o.oxw();o.Q6J("nzSrc",O.user.profileImagePath)("nzShape",O.shape?O.shape:"circle")("nzSize",O.size)}}function F(w,q){if(1&w&&(o._UZ(0,"nz-avatar",3),o.ALo(1,"uppercase")),2&w){const O=o.oxw();o.Q6J("nzSize",O.size)("nzText",o.lcZ(1,2,O.user.displayName.charAt(0)))}}let Z=(()=>{class w{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 w.\u0275fac=function(O){return new(O||w)},w.\u0275cmp=o.Xpm({type:w,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(O,L){if(1&O&&(o.YNc(0,D,1,3,"nz-avatar",0),o.YNc(1,F,2,4,"ng-template",null,1,o.W1O)),2&O){const Q=o.MAs(2);o.Q6J("ngIf",L.user.profileImagePath)("ngIfElse",Q)}},directives:[i.O5,t.Dz],pipes:[i.gd],styles:["[_nghost-%COMP%]{display:inline-block}"]}),w})()},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(w){return new(w||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:()=>O});var o=r(4850),i=r(5154),t=r(373),D=r(1059),F=r(712),Z=r(5e3),w=r(520);const q={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0};let O=(()=>{class L{constructor(K,Y){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=Y,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(w.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(w){this.networkErrorService=w}mutate(w,q,O,L){let Q=new o.xQ,K={isSubmitting$:new i.X(!1),submitSuccess$:new i.X(!1),submitError$:new i.X([]),cleanup:()=>{Q.next(),Q.complete()}};return K.isSubmitting$.next(!0),w.mutate(q,O).pipe((0,t.R)(Q),(0,D.x)(()=>{K.isSubmitting$.next(!1)})).subscribe({next:Y=>{Y.data&&L&&L(Y.data)},error:Y=>{Y.graphQLErrors.length>0?K.submitError$.next(Y.graphQLErrors.map(le=>le.message)):Y.networkError&&this.networkErrorService.networkError$.next(Y.networkError),K.cleanup()},complete:()=>{K.submitError$.next([]),K.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),K.cleanup()}}),K}}},822:(De,re,r)=>{r.d(re,{V:()=>q});var o=r(5e3),i=r(9808),t=r(2359);function D(O,L){if(1&O&&o._UZ(0,"nz-alert",4),2&O){const Q=o.oxw();o.Q6J("nzDescription",Q.errors[0])}}function F(O,L){if(1&O&&o._UZ(0,"nz-alert",5),2&O){o.oxw();const Q=o.MAs(3);o.Q6J("nzDescription",Q)}}function Z(O,L){if(1&O&&(o.TgZ(0,"li"),o._uU(1),o.qZA()),2&O){const Q=L.$implicit;o.xp6(1),o.Oqu(Q)}}function w(O,L){if(1&O&&(o.TgZ(0,"ul",6),o.YNc(1,Z,2,1,"li",7),o.qZA()),2&O){const Q=o.oxw();o.xp6(1),o.Q6J("ngForOf",Q.errors)}}let q=(()=>{class O{constructor(){}ngOnInit(){}}return O.\u0275fac=function(Q){return new(Q||O)},O.\u0275cmp=o.Xpm({type:O,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(Q,K){1&Q&&(o.YNc(0,D,1,1,"nz-alert",0),o.YNc(1,F,1,1,"nz-alert",1),o.YNc(2,w,2,1,"ng-template",2,3,o.W1O)),2&Q&&(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}"]}),O})()},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(w){return new(w||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),w=r(7484),q=r(9808),O=r(2359),L=r(1894),Q=r(4546),K=r(822),Y=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(J){return pe.coiStatus=J}),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:[w.bd,q.O5,O.r,L.SK,Q.Nx,K.V,Y.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),w=r(7008),q=r(3868),O=r(7525),L=r(6042),Q=r(5e3);let K=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=Q.oAB({type:Y}),Y.\u0275inj=Q.cJS({imports:[[o.ez,i.u5,Z.U5,i.UX,t.WG,D.vh,F.L,q.aF,L.sL,O.j,w.B]]}),Y})()},712:(De,re,r)=>{r.d(re,{ti:()=>ji,$G1:()=>nr,iGM:()=>Jo,KNk:()=>sr,T97:()=>ur,RMv:()=>Ar,LUc:()=>br,iwm:()=>H,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"}),G=r(6261),A=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"}),U=r(2032),ye=function(){function e(n){var d=new W.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 W.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 W.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 B(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 W.WU(g.NAME,s,S,n,d,z,y.slice(s,S))}var Ie=function(){function e(n,d){var z=(0,G.T)(n)?n:new G.H(n);this._lexer=new ye(z),this._options=d}var s=e.prototype;return s.parseName=function(){var d=this.expectToken(g.NAME);return{kind:J.NAME,value:d.value,loc:this.loc(d)}},s.parseDocument=function(){var d=this._lexer.token;return{kind:J.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:J.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:J.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:J.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:J.VARIABLE,name:this.parseName(),loc:this.loc(d)}},s.parseSelectionSet=function(){var d=this._lexer.token;return{kind:J.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:J.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:J.ARGUMENT,name:z,value:this.parseValueLiteral(!1),loc:this.loc(d)}},s.parseConstArgument=function(){var d=this._lexer.token;return{kind:J.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:J.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(d)}:{kind:J.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:J.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:J.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:J.INT,value:z.value,loc:this.loc(z)};case g.FLOAT:return this._lexer.advance(),{kind:J.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:J.BOOLEAN,value:!0,loc:this.loc(z)};case"false":return{kind:J.BOOLEAN,value:!1,loc:this.loc(z)};case"null":return{kind:J.NULL,loc:this.loc(z)};default:return{kind:J.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:J.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:J.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:J.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:J.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:J.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:J.LIST_TYPE,type:z,loc:this.loc(d)}):z=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:J.NON_NULL_TYPE,type:z,loc:this.loc(d)}:z},s.parseNamedType=function(){var d=this._lexer.token;return{kind:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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:J.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!==A[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 W.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"}(H||(H={})),H))(),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 - status - summary - assertionType - assertionDirection - clinicalSignificance - variantOrigin - ampLevel - acmgCodes { - code - } - nccnGuideline { - id - name - } - regulatoryApproval - regulatoryApprovalLastUpdated - fdaCompanionTest - fdaCompanionTestLastUpdated - drugs { - id - name - link - } - drugInteractionType - disease { - id - name - link - } - phenotypes { - id - name - link - } - gene { - id - name - link - } - variant { - id - name - link - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,Zt=h` - fragment AssertionBrowseTableRowFields on Assertion { - id - name - link - gene { - id - name - link - } - variant { - id - name - link - } - disease { - id - name - link - } - drugs { - id - name - link - } - phenotypes @include(if: $cardView) { - id - name - link - } - drugInteractionType - summary - assertionType - assertionDirection - clinicalSignificance - ampLevel - acmgCodes @include(if: $cardView) { - code - } - fdaCompanionTest @include(if: $cardView) - regulatoryApproval @include(if: $cardView) - regulatoryApprovalLastUpdated @include(if: $cardView) - nccnGuideline @include(if: $cardView) { - id - name - } - variantOrigin @include(if: $cardView) - evidenceItemsCount - status -} - `,kt=h` - fragment clinicalTrialPopover on BrowseClinicalTrial { - id - name - nctId - url - sourceCount - evidenceCount -} - `,u=h` - fragment commentListNode on Comment { - id - title - comment - createdAt - commenter { - id - username - displayName - name - role - profileImagePath(size: 32) - organizations { - id - name - profileImagePath(size: 32) - } - } - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - status - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } -} - `,M=h` - fragment commentPopover on Comment { - id - name - createdAt - title - comment - commenter { - id - displayName - role - profileImagePath(size: 32) - } - commentable { - id - name - link - __typename - } -} - `,c=h` - fragment BrowseDiseaseRowFields on BrowseDisease { - id - name - doid - diseaseUrl - geneNames - assertionCount - evidenceItemCount - variantCount - geneCount - link -} - `,v=h` - fragment DrugBrowseTableRowFields on BrowseDrug { - id - name - ncitId - drugUrl - assertionCount - evidenceCount - link -} - `,P=h` - fragment eventFeedNode on Event { - id - action - createdAt - organization { - id - name - profileImagePath(size: 32) - } - originatingUser { - id - username - displayName - role - profileImagePath(size: 32) - } - subject { - name - id - link - ... on Source { - citation - sourceType - } - ... on EvidenceItem { - status - } - ... on Assertion { - status - } - __typename - } - originatingObject { - id - name - link - __typename - ... on Revision { - id - } - ... on Comment { - id - } - ... on Flag { - id - } - } -} - `,ae=h` - fragment eventFeed on EventConnection { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - eventTypes @include(if: $showFilters) - unfilteredCount - uniqueParticipants @include(if: $showFilters) { - id - displayName - role - profileImagePath(size: 32) - } - participatingOrganizations @include(if: $showFilters) { - id - name - profileImagePath(size: 32) - } - edges { - cursor - node { - ...eventFeedNode - } - } -} - ${P}`,et=h` - fragment evidencePopover on EvidenceItem { - id - name - status - description - evidenceLevel - evidenceType - evidenceDirection - clinicalSignificance - variantOrigin - drugs { - id - name - link - } - drugInteractionType - disease { - id - name - link - } - phenotypes { - id - name - link - } - evidenceRating - gene { - id - name - link - } - variant { - id - name - link - } - source { - id - citation - sourceType - displayType - link - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,Yt=h` - fragment EvidenceGridFields on EvidenceItem { - id - name - link - disease { - id - name - link - } - drugs { - id - name - link - } - gene { - id - name - link - } - variant { - id - name - link - } - phenotypes @include(if: $cardView) { - id - name - link - } - source @include(if: $cardView) { - id - citation - citationId - sourceType - sourceUrl - clinicalTrials { - nctId - id - } - link - } - assertions @include(if: $cardView) { - id - name - link - } - status - drugInteractionType - description - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - clinicalSignificance - variantOrigin -} - `,nn=h` - fragment flagList on FlagConnection { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - totalCount - unfilteredCountForSubject - uniqueFlaggingUsers { - username - id - profileImagePath(size: 32) - } - uniqueResolvingUsers { - username - id - profileImagePath(size: 32) - } - edges { - node { - ...flag - } - } -} - ${h` - fragment flag on Flag { - id - state - createdAt - resolvedAt - flaggable { - id - name - link - } - flaggingUser { - id - displayName - role - profileImagePath(size: 32) - } - resolvingUser { - id - displayName - role - profileImagePath(size: 32) - } - openComment { - __typename - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } - } - resolutionComment { - __typename - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } - } -} - `}`,on=h` - fragment genePopover on Gene { - id - name - officialName - geneAliases - variants { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,rn=h` - fragment QuicksearchResult on SearchResult { - id - resultType - name - matchingText -} - `,sn=h` - fragment orgPopover on Organization { - id - profileImagePath(size: 64) - name - description - url -} - `,an=h` - fragment OrganizationBrowseTableRowFields on Organization { - id - name - description @include(if: $cardView) - profileImagePath(size: 256) @include(if: $cardView) - url - memberCount - eventCount - subGroups { - name - id - } - mostRecentEvent { - createdAt - } - orgStatsHash @include(if: $cardView) { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } -} - `,cn=h` - fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { - id - name - hpoId - url - assertionCount - evidenceCount - link -} - `,ln=h` - fragment validationError on FieldValidationError { - fieldName - error -} - `,un=h` - fragment revision on Revision { - id - revisionsetId - createdAt - resolvedAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - currentObjects { - id - displayName - displayType - entityType - link - } - addedObjects { - id - displayName - displayType - entityType - link - } - removedObjects { - id - displayName - displayType - entityType - link - } - keptObjects { - id - displayName - displayType - entityType - link - } - suggestedObjects { - id - displayName - displayType - entityType - link - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - revisor { - id - displayName - role - } - resolver { - id - displayName - role - } - creationComment { - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } - } - resolutionComment { - parsedComment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } - } - } - status -} - `,dn=h` - fragment ContributorFields on ContributingUser { - user { - id - profileImagePath(size: 12) - } - uniqueActions { - action - count - } - lastActionDate - totalActionCount -} - `,pn=h` - fragment subscriptionId on Subscription { - id - __typename -} - `,mn=h` - fragment TimepointCount on TimePointCounts { - allTime - newThisMonth - newThisWeek - newThisYear -} - `,gn=h` - fragment BrowseSourceSuggestionRowFields on SourceSuggestion { - id - gene { - id - name - link - } - variant { - id - name - link - } - disease { - id - name - link - } - source { - id - citation - citationId - sourceType - sourceUrl - displayType - } - user { - id - displayName - role - profileImagePath(size: 32) - } - initialComment - status - reason -} - `,fn=h` - fragment sourcePopover on SourcePopover { - id - name - evidenceItemCount - citation - citationId - displayType - sourceUrl - clinicalTrials { - id - nctId - link - } -} - `,hn=h` - fragment BrowseSourceRowFields on BrowseSource { - id - authors - citationId - evidenceItemCount - journal - name - publicationYear - sourceType - citation - displayType - link -} - `,vn=h` - fragment popoverUser on User { - id - profileImagePath(size: 64) - displayName - bio - role - organizations { - id - name - } -} - `,zn=h` - fragment UserBrowseTableRowFields on User { - id - name - displayName - organizations { - id - name - } - role - statsHash { - submittedEvidenceItems - revisions - } - mostRecentActionTimestamp -} - `,yn=h` - fragment variantGroupPopoverFields on VariantGroup { - id - name - description - variants { - edges { - node { - id - name - link - } - } - } - sources { - id - citation - sourceType - link - } -} - `,Cn=h` - fragment BrowseVariantGroupRowFields on BrowseVariantGroup { - id - name - link - geneNames - variantNames - variantCount - evidenceItemCount -} - `,In=h` - fragment variantTypePopover on VariantTypePopover { - id - name - url - soid - variantCount -} - `,Tn=h` - fragment VariantTypeBrowseTableRowFields on BrowseVariantType { - id - name - soid - url - variantCount - link -} - `,_n=h` - fragment variantPopoverFields on Variant { - id - name - description - variantAliases - alleleRegistryId - evidenceItems { - totalCount - } - gene { - id - name - link - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,Sn=h` - fragment menuVariant on Variant { - id - name - link -} - `,Dn=h` - fragment RevisableAssertionFields on Assertion { - id - summary - description - variant { - id - name - link - } - gene { - id - name - link - } - variantOrigin - clinicalSignificance - disease { - id - doid - name - displayName - link - } - drugs { - id - ncitId - name - link - } - drugInteractionType - assertionDirection - assertionType - phenotypes { - id - hpoId - name - } - ampLevel - acmgCodes { - id - code - description - } - nccnGuideline { - id - name - } - nccnGuidelineVersion - regulatoryApproval - fdaCompanionTest - evidenceItems { - id - name - link - status - } -} - `,En=h` - fragment previewComment on CommentBodySegment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - status - __typename - } - ... on CommentTextSegment { - text - __typename - } - ... on User { - id - displayName - role - __typename - } -} - `,Nn=h` - fragment AddDiseaseFields on AddDiseasePayload { - new - disease { - id - name - displayName - } -} - `,An=h` - fragment AddDrugFields on AddDrugPayload { - new - drug { - id - ncitId - name - } -} - `,On=h` - fragment GeneTypeaheadFields on Gene { - id - name - geneAliases - entrezId -} - `,Kt=h` - fragment SourceTypeaheadResult on Source { - id - name - citation - citationId - sourceType -} - `,Ht=h` - fragment SourceStubFields on SourceStub { - id - citationId - sourceType -} - `,Mn=h` - fragment SourceTypeaheadFields on Source { - id - name - citation - citationId - sourceType -} - `,Xt=h` - fragment VariantTypeaheadFields on Variant { - id - name -} - `,Ln=h` - fragment AddVariantFields on AddVariantPayload { - new - variant { - id - name - } -} - `,xn=(h` - fragment VariantSelectFields on Variant { - id - name -} - `,h` - fragment RevisableEvidenceFields on EvidenceItem { - id - variant { - id - name - link - } - variantOrigin - description - clinicalSignificance - disease { - id - doid - name - displayName - } - drugs { - id - ncitId - name - } - drugInteractionType - evidenceDirection - evidenceLevel - evidenceType - phenotypes { - id - hpoId - name - } - evidenceRating - source { - id - sourceType - citationId - citation - } -} - `),Fn=h` - fragment SubmittableEvidenceFields on EvidenceItem { - id - description - variantOrigin - evidenceType - clinicalSignificance - evidenceLevel - evidenceDirection - evidenceRating - drugInteractionType - gene { - id - name - } - variant { - id - name - } - source { - id - citation - sourceType - } - phenotypes { - id - name - } - drugs { - id - name - } - disease { - id - name - } -} - `,bn=h` - fragment RevisableGeneFields on Gene { - id - description - sources { - id - sourceType - citation - citationId - } -} - `,$n=h` - fragment SubmittableVariantGroupFields on VariantGroup { - id - name - description - variants(first: 50) { - nodes { - id - name - link - } - } - sources { - id - link - citation - sourceType - } -} - `,Pn=h` - fragment RevisableVariantFields on Variant { - id - name - description - sources { - id - sourceType - citation - citationId - } - gene { - id - name - } - variantAliases - alleleRegistryId - clinvarIds - ensemblVersion - hgvsDescriptions - referenceBuild - variantTypes { - id - name - soid - } - primaryCoordinates { - ...CoordinateFields - } - secondaryCoordinates { - ...CoordinateFields - } - referenceBases - variantBases -} - ${h` - fragment CoordinateFields on Coordinate { - chromosome - representativeTranscript - start - stop -} - `}`,Gn=h` - fragment AssertionDetailFields on Assertion { - id - name - status - gene { - id - name - link - } - variant { - id - name - link - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,wn=h` - fragment AssertionSummaryFields on Assertion { - id - name - summary - description - status - variantOrigin - disease { - id - name - link - } - gene { - id - name - link - } - variant { - id - name - alleleRegistryId - } - assertionType - assertionDirection - clinicalSignificance - drugs { - ncitId - name - link - id - } - phenotypes { - id - name - link - } - drugInteractionType - ampLevel - acmgCodes { - code - description - } - nccnGuideline { - id - name - } - nccnGuidelineVersion - regulatoryApproval - regulatoryApprovalLastUpdated - fdaCompanionTest - fdaCompanionTestLastUpdated - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - acceptanceEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - submissionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - rejectionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - `,Bn=h` - fragment EvidenceDetailFields on EvidenceItem { - id - name - status - variant { - id - name - link - } - gene { - id - name - link - } - assertions { - id - name - link - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,Un=h` - fragment EvidenceSummaryFields on EvidenceItem { - id - name - description - status - evidenceLevel - evidenceType - evidenceDirection - clinicalSignificance - variantOrigin - drugs { - id - name - link - } - drugInteractionType - disease { - id - name - link - } - phenotypes { - id - name - link - } - source { - id - citation - citationId - sourceType - displayType - sourceUrl - ascoAbstractId - link - clinicalTrials { - nctId - id - } - } - evidenceRating - gene { - id - name - link - } - variant { - id - name - link - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - acceptanceEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - submissionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - rejectionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - `,Qn=h` - fragment GeneDetailFields on Gene { - id - name - officialName - entrezId - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,Vn=h` - fragment GeneSummaryFields on Gene { - description - entrezId - geneAliases - id - name - officialName - sources { - id - citation - sourceUrl - displayType - sourceType - } - variants { - edges { - node { - id - name - description - } - } - } - myGeneInfoDetails - lastSubmittedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - lastAcceptedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - `,Zn=h` - fragment OrganizationDetailFields on Organization { - id - name - url - description - profileImagePath(size: 256) - subGroups { - id - name - profileImagePath(size: 12) - } - orgStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - orgAndSuborgsStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } -} - `,kn=h` - fragment OrganizationGroupsFields on Organization { - id - name - description - profileImagePath(size: 12) - orgStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - orgAndSuborgsStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - subGroups { - id - name - profileImagePath(size: 12) - } -} - `,Yn=h` - fragment OrganizationMembersFields on User { - id - name - displayName - username - profileImagePath(size: 32) - role - url - areaOfExpertise - orcid - twitterHandle - facebookProfile - linkedinProfile - organizations { - id - name - } -} - `,Wn=h` - fragment Release on DataRelease { - name - geneTsv { - filename - path - } - variantTsv { - filename - path - } - variantGroupTsv { - filename - path - } - evidenceTsv { - filename - path - } - assertionTsv { - filename - path - } - acceptedVariantsVcf { - filename - path - } - acceptedAndSubmittedVariantsVcf { - filename - path - } -} - `,Jn=h` - fragment SourceDetailFields on Source { - id - citation - sourceUrl - displayType - citationId -} - `,jn=h` - fragment SourceSummaryFields on Source { - id - displayType - title - abstract - publicationDate - citationId - fullJournalTitle - pmcId - authorString - clinicalTrials { - nctId - id - } -} - `,Kn=h` - fragment UserDetailFields on User { - id - name - displayName - username - email - profileImagePath(size: 128) - role - url - bio - areaOfExpertise - orcid - twitterHandle - facebookProfile - linkedinProfile - organizations { - id - name - } - country { - id - name - } - statsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - mostRecentConflictOfInterestStatement { - id - coiPresent - coiStatement - coiStatus - createdAt - expiresAt - } -} - `,Hn=h` - fragment notificationOrganization on Organization { - id - name -} - `,Xn=h` - fragment notificationOriginatingUsers on User { - id - displayName -} - `,qn=h` - fragment notificationFeedSubjects on EventSubjectWithCount { - subject { - id - __typename - name - } - occuranceCount -} - `,qt=h` - fragment notificationNode on Notification { - id - type - event { - ...eventFeedNode - } - seen - subscription { - id - subscribable { - id - name - __typename - } - } -} - ${P}`,ei=h` - fragment subscribable on Subscribable { - id - entityType - __typename -} - `,ti=h` - fragment VariantGroupDetailFields on VariantGroup { - id - name - variants { - totalCount - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,ni=h` - fragment VariantGroupSummaryFields on VariantGroup { - id - name - description - sources { - id - link - citation - sourceUrl - displayType - sourceType - } - variants { - edges { - node { - id - name - link - description - } - } - } -} - `,ii=h` - fragment VariantDetailFields on Variant { - id - name - gene { - id - name - } - variantAliases - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,ri=h` - fragment VariantSummaryFields on Variant { - id - name - description - gene { - id - name - } - sources { - id - citation - sourceUrl - displayType - sourceType - } - variantAliases - alleleRegistryId - variantTypes { - id - link - soid - name - } - hgvsDescriptions - clinvarIds - evidenceScore - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - myVariantInfo { - ...MyVariantInfoFields - } - lastSubmittedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - lastAcceptedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${h` - fragment MyVariantInfoFields on MyVariantInfo { - myVariantInfoId - caddConsequence - caddDetail - caddScore - clinvarClinicalSignificance - clinvarHgvsCoding - clinvarHgvsGenomic - clinvarHgvsNonCoding - clinvarHgvsProtein - clinvarId - clinvarOmim - cosmicId - dbnsfpInterproDomain - dbsnpRsid - eglClass - eglHgvs - eglProtein - eglTranscript - exacAlleleCount - exacAlleleFrequency - exacAlleleNumber - fathmmMklPrediction - fathmmMklScore - fathmmPrediction - fathmmScore - fitconsScore - gerp - gnomadExomeAlleleCount - gnomadExomeAlleleFrequency - gnomadExomeAlleleNumber - gnomadExomeFilter - gnomadGenomeAlleleCount - gnomadGenomeAlleleFrequency - gnomadGenomeAlleleNumber - gnomadGenomeFilter - lrtPrediction - lrtScore - metalrPrediction - metalrScore - metasvmPrediction - metasvmScore - mutationassessorPrediction - mutationassessorScore - mutationtasterPrediction - mutationtasterScore - phastcons100way - phastcons30way - phyloP100way - phyloP30way - polyphen2HdivPrediction - polyphen2HdivScore - polyphen2HvarPrediction - polyphen2HvarScore - proveanPrediction - proveanScore - revelScore - siftPrediction - siftScore - siphy - snpeffSnpEffect - snpeffSnpImpact -} - `}`,si=h` - query AssertionPopover($assertionId: Int!) { - assertion(id: $assertionId) { - ...assertionPopover - } -} - ${Vt}`;let ai=(()=>{class e extends p.AE{constructor(n){super(n),this.document=si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ci=h` - query AssertionsBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $drugName: String, $id: Int, $summary: String, $assertionDirection: EvidenceDirection, $clinicalSignificance: EvidenceClinicalSignificance, $assertionType: EvidenceType, $variantId: Int, $evidenceId: Int, $geneName: String, $variantName: String, $sortBy: AssertionSort, $ampLevel: AmpLevel, $organizationId: Int, $userId: Int, $phenotypeId: Int, $diseaseId: Int, $drugId: Int, $status: EvidenceStatus, $cardView: Boolean!) { - assertions( - first: $first - last: $last - before: $before - after: $after - diseaseName: $diseaseName - drugName: $drugName - id: $id - summary: $summary - assertionDirection: $assertionDirection - clinicalSignificance: $clinicalSignificance - assertionType: $assertionType - variantId: $variantId - sortBy: $sortBy - ampLevel: $ampLevel - geneName: $geneName - variantName: $variantName - evidenceId: $evidenceId - organizationId: $organizationId - userId: $userId - phenotypeId: $phenotypeId - drugId: $drugId - diseaseId: $diseaseId - status: $status - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...AssertionBrowseTableRowFields - } - } - } -} - ${Zt}`;let li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ui=h` - query ClinicalTrialPopover($clinicalTrialId: Int!) { - clinicalTrials(id: $clinicalTrialId) { - edges { - node { - ...clinicalTrialPopover - } - } - } -} - ${kt}`;let di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ui}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const pi=h` - query ClinicalTrialsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $nctId: String, $sortBy: ClinicalTrialSort) { - clinicalTrials( - first: $first - last: $last - before: $before - after: $after - name: $name - nctId: $nctId - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - id - name - nctId - evidenceCount - sourceCount - link - } - } - } -} - `;let mi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=pi}}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 CommentList($first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $mentionedUserId: Int, $mentionedRole: UserRole, $mentionedEntity: TaggableEntityInput, $subject: CommentableInput, $sortBy: DateSort) { - comments( - first: $first - last: $last - before: $before - after: $after - originatingUserId: $originatingUserId - mentionedUserId: $mentionedUserId - mentionedRole: $mentionedRole - mentionedEntity: $mentionedEntity - subject: $subject - sortBy: $sortBy - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - uniqueCommenters { - id - displayName - role - profileImagePath(size: 32) - } - mentionedUsers { - id - displayName - role - profileImagePath(size: 32) - } - mentionedRoles { - displayName - entityId - tagType - link - } - mentionedEntities { - displayName - entityId - tagType - link - } - unfilteredCountForSubject - edges { - cursor - node { - ...commentListNode - } - } - } -} - ${u}`;let fi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=gi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hi=h` - query CommentPopover($commentId: Int!) { - comment(id: $commentId) { - ...commentPopover - } -} - ${M}`;let vi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=hi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zi=h` - query DiseasePopover($diseaseId: Int!) { - diseasePopover(id: $diseaseId) { - id - name - displayName - doid - diseaseUrl - diseaseAliases - assertionCount - evidenceItemCount - variantCount - link - } -} - `;let yi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=zi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ci=h` - query BrowseDiseases($first: Int, $last: Int, $before: String, $after: String, $sortBy: DiseasesSort, $name: String, $doid: String, $geneNames: String) { - browseDiseases( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - doid: $doid - geneNames: $geneNames - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseDiseaseRowFields - } - } - } -} - ${c}`;let Ii=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ci}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ti=h` - query DrugPopover($drugId: Int!) { - drugPopover(id: $drugId) { - id - name - drugUrl - ncitId - drugAliases - assertionCount - evidenceItemCount - link - } -} - `;let _i=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ti}}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 Si=h` - query DrugsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $ncitId: String, $sortBy: DrugSort) { - drugs( - first: $first - last: $last - before: $before - after: $after - name: $name - ncitId: $ncitId - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...DrugBrowseTableRowFields - } - } - } -} - ${v}`;let Di=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Si}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ei=h` - query EventFeed($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode, $showFilters: Boolean!) { - events( - subject: $subject - first: $first - last: $last - before: $before - after: $after - originatingUserId: $originatingUserId - organizationId: $organizationId - eventType: $eventType - mode: $mode - ) { - ...eventFeed - } -} - ${ae}`;let Ni=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ei}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ai=h` - query EvidencePopover($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...evidencePopover - } -} - ${et}`;let Oi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ai}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Mi=h` - query EvidenceBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $drugName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $clinicalSignificance: EvidenceClinicalSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $drugId: Int, $sourceId: Int, $clinicalTrialId: Int, $geneSymbol: String, $variantName: String, $status: EvidenceStatus, $cardView: Boolean!) { - evidenceItems( - first: $first - last: $last - before: $before - after: $after - diseaseName: $diseaseName - drugName: $drugName - id: $id - description: $description - evidenceLevel: $evidenceLevel - evidenceDirection: $evidenceDirection - clinicalSignificance: $clinicalSignificance - evidenceType: $evidenceType - evidenceRating: $rating - variantOrigin: $variantOrigin - variantId: $variantId - assertionId: $assertionId - organizationId: $organizationId - userId: $userId - phenotypeId: $phenotypeId - diseaseId: $diseaseId - drugId: $drugId - sourceId: $sourceId - clinicalTrialId: $clinicalTrialId - geneSymbol: $geneSymbol - variantName: $variantName - status: $status - sortBy: $sortBy - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...EvidenceGridFields - } - } - } -} - ${Yt}`;let Li=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Mi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xi=h` - query FlagList($flaggable: FlaggableInput, $flaggingUserId: Int, $resolvingUserId: Int, $state: FlagState, $sortBy: DateSort, $first: Int, $last: Int, $before: String, $after: String) { - flags( - flaggable: $flaggable - flaggingUserId: $flaggingUserId - resolvingUserId: $resolvingUserId - state: $state - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - ...flagList - } -} - ${nn}`;let Fi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=xi}}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 bi=h` - query GenePopover($geneId: Int!) { - gene(id: $geneId) { - ...genePopover - } -} - ${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 - drugName: $drugName - geneAlias: $geneAlias - diseaseName: $diseaseName - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - edges { - cursor - node { - id - entrezId - name - link - geneAliases - diseases { - name - id - link - } - drugs { - name - id - link - } - variantCount - evidenceItemCount - assertionCount - } - } - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - totalCount - filteredCount - pageCount - } -} - `;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 - } -} - ${rn}`;let wi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Gi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Bi=h` - query OrgPopover($orgId: Int!) { - organization(id: $orgId) { - ...orgPopover - } -} - ${sn}`;let Ui=(()=>{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 Qi=h` - query OrganizationsBrowse($first: Int, $last: Int, $before: String, $after: String, $id: Int, $orgName: String, $sortBy: OrganizationSort, $cardView: Boolean!) { - organizations( - first: $first - last: $last - before: $before - after: $after - name: $orgName - id: $id - sortBy: $sortBy - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...OrganizationBrowseTableRowFields - } - } - } -} - ${an}`;let Vi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Qi}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Zi=h` - query PhenotypePopover($phenotypeId: Int!) { - phenotypePopover(id: $phenotypeId) { - id - name - url - hpoId - assertionCount - evidenceItemCount - link - } -} - `;let ki=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Zi}}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 Yi=h` - query PhenotypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $hpoId: String, $sortBy: PhenotypeSort) { - phenotypes( - first: $first - last: $last - before: $before - after: $after - name: $name - hpoId: $hpoId - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...PhenotypeBrowseTableRowFields - } - } - } -} - ${cn}`;let Wi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Yi}}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 Ji=h` - mutation AcceptRevision($input: AcceptRevisionsInput!) { - acceptRevisions(input: $input) { - revisions { - id - __typename - } - } -} - `;let ji=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Ji}}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 Ki=h` - mutation RejectRevision($input: RejectRevisionsInput!) { - rejectRevisions(input: $input) { - revisions { - id - __typename - } - } -} - `;let Hi=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Ki}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Xi=h` - query ValidateRevisionsForAcceptance($ids: [Int!]!) { - validateRevisionsForAcceptance(revisionIds: $ids) { - genericErrors - validationErrors { - ...validationError - } - } -} - ${ln}`;let qi=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Xi}}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 eo=h` - query Revisions($subject: ModeratedInput, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int, $resolvingUserId: Int, $revisionsetId: String, $status: RevisionStatus) { - revisions( - first: $first - last: $last - before: $before - after: $after - fieldName: $fieldName - originatingUserId: $originatingUserId - resolvingUserId: $resolvingUserId - subject: $subject - status: $status - revisionsetId: $revisionsetId - ) { - totalCount - unfilteredCountForSubject - uniqueRevisors { - username - id - profileImagePath(size: 32) - } - uniqueResolvers { - username - id - profileImagePath(size: 32) - } - revisedFieldNames { - name - displayName - } - pageInfo { - hasNextPage - hasPreviousPage - endCursor - startCursor - } - edges { - node { - ...revision - } - } - } -} - ${un}`;let to=(()=>{class e extends p.AE{constructor(n){super(n),this.document=eo}}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 no=h` - query ContributorAvatars($subscribable: SubscribableInput!) { - contributors(subscribable: $subscribable) { - editors { - ...ContributorFields - } - curators { - ...ContributorFields - } - } -} - ${dn}`;let io=(()=>{class e extends p.AE{constructor(n){super(n),this.document=no}}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 oo=h` - query SubscriptionForEntity($subscribable: SubscribableInput!) { - subscriptionForEntity(subscribable: $subscribable) { - ...subscriptionId - } -} - ${pn}`;let ro=(()=>{class e extends p.AE{constructor(n){super(n),this.document=oo}}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 so=h` - mutation ModerateEvidenceItem($input: ModerateEvidenceItemInput!) { - moderateEvidenceItem(input: $input) { - evidenceItem { - id - } - } -} - `;let ao=(()=>{class e extends p.mm{constructor(n){super(n),this.document=so}}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 co=h` - mutation ModerateAssertion($input: ModerateAssertionInput!) { - moderateAssertion(input: $input) { - assertion { - id - } - } -} - `;let lo=(()=>{class e extends p.mm{constructor(n){super(n),this.document=co}}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 uo=h` - query CivicStats { - timepointStats { - assertions { - ...TimepointCount - } - diseases { - ...TimepointCount - } - comments { - ...TimepointCount - } - drugs { - ...TimepointCount - } - evidenceItems { - ...TimepointCount - } - genes { - ...TimepointCount - } - revisions { - ...TimepointCount - } - sources { - ...TimepointCount - } - users { - ...TimepointCount - } - variants { - ...TimepointCount - } - } -} - ${mn}`;let po=(()=>{class e extends p.AE{constructor(n){super(n),this.document=uo}}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 mo=h` - query BrowseSourceSuggestions($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourceSuggestionsSort, $sourceType: SourceSource, $citationId: Int, $sourceId: Int, $geneName: String, $variantName: String, $diseaseName: String, $comment: String, $submitter: String, $citation: String, $submitterId: Int, $status: SourceSuggestionStatus) { - sourceSuggestions( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - sourceType: $sourceType - citationId: $citationId - sourceId: $sourceId - geneName: $geneName - variantName: $variantName - diseaseName: $diseaseName - comment: $comment - submitter: $submitter - citation: $citation - submitterId: $submitterId - status: $status - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseSourceSuggestionRowFields - } - } - } -} - ${gn}`;let go=(()=>{class e extends p.AE{constructor(n){super(n),this.document=mo}}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` - mutation UpdateSourceSuggestionStatus($input: UpdateSourceSuggestionStatusInput!) { - updateSourceSuggestionStatus(input: $input) { - sourceSuggestion { - id - status - } - } -} - `;const fo=h` - query SourcePopover($sourceId: Int!) { - sourcePopover(id: $sourceId) { - ...sourcePopover - } -} - ${fn}`;let ho=(()=>{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 vo=h` - query BrowseSources($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourcesSort, $name: String, $year: Int, $sourceType: SourceSource, $citationId: Int, $author: String, $journal: String, $clinicalTrialId: Int) { - browseSources( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - year: $year - sourceType: $sourceType - citationId: $citationId - author: $author - journal: $journal - clinicalTrialId: $clinicalTrialId - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseSourceRowFields - } - } - } -} - ${hn}`;let zo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=vo}}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 yo=h` - query UserPopover($userId: Int!) { - user(id: $userId) { - ...popoverUser - } -} - ${vn}`;let Co=(()=>{class e extends p.AE{constructor(n){super(n),this.document=yo}}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 Io=h` - query UsersBrowse($first: Int, $last: Int, $before: String, $after: String, $userName: String, $orgName: OrganizationFilter, $userRole: UserRole, $sortBy: UsersSort) { - users( - first: $first - last: $last - before: $before - after: $after - name: $userName - organization: $orgName - role: $userRole - sortBy: $sortBy - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - totalCount - edges { - cursor - node { - ...UserBrowseTableRowFields - } - } - } -} - ${zn}`;let To=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Io}}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 VariantGroupPopover($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...variantGroupPopoverFields - } -} - ${yn}`;let So=(()=>{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 Do=h` - query BrowseVariantGroups($first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantGroupsSort, $name: String, $geneNames: String, $variantNames: String) { - browseVariantGroups( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - geneNames: $geneNames - variantNames: $variantNames - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseVariantGroupRowFields - } - } - } -} - ${Cn}`;let Eo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Do}}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 No=h` - query VariantTypePopover($variantTypeId: Int!) { - variantTypePopover(id: $variantTypeId) { - ...variantTypePopover - } -} - ${In}`;let Ao=(()=>{class e extends p.AE{constructor(n){super(n),this.document=No}}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 Oo=h` - query VariantTypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $soid: String, $sortBy: VariantTypeSort) { - variantTypes( - first: $first - last: $last - before: $before - after: $after - name: $name - soid: $soid - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...VariantTypeBrowseTableRowFields - } - } - } -} - ${Tn}`;let Mo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Oo}}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 Lo=h` - query VariantPopover($variantId: Int!) { - variant(id: $variantId) { - ...variantPopoverFields - } -} - ${_n}`;let xo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Lo}}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 Fo=h` - query VariantsMenu($geneId: Int, $variantName: String, $evidenceStatusFilter: VariantDisplayFilter, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { - variants( - geneId: $geneId - name: $variantName - evidenceStatusFilter: $evidenceStatusFilter - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - cursor - node { - ...menuVariant - } - } - } -} - ${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 - entrezSymbol: $entrezSymbol - diseaseName: $diseaseName - drugName: $drugName - variantAlias: $variantAlias - variantTypeId: $variantTypeId - variantGroupId: $variantGroupId - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - edges { - cursor - node { - id - name - link - evidenceScore - evidenceItemCount - geneId - geneName - geneLink - diseases { - id - name - link - } - drugs { - id - name - link - } - aliases { - name - } - assertionCount - } - } - totalCount - filteredCount - pageCount - } -} - `;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 - username - role - displayName - profileImagePath(size: 32) - organizations { - id - name - profileImagePath(size: 32) - } - mostRecentConflictOfInterestStatement { - coiStatus - } - mostRecentOrganizationId - } -} - `;let Go=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Po}}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 wo=h` - query ViewerNotificationCount { - notifications { - unreadCount - } -} - `;let Bo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=wo}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Uo=h` - query AssertionRevisableFields($assertionId: Int!) { - assertion(id: $assertionId) { - ...RevisableAssertionFields - } -} - ${Dn}`;let Qo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Uo}}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 Vo=h` - mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { - suggestAssertionRevision(input: $input) { - clientMutationId - assertion { - id - } - } -} - `;let Zo=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Vo}}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 ko=h` - mutation SubmitAssertion($input: SubmitAssertionInput!) { - submitAssertion(input: $input) { - clientMutationId - assertion { - id - } - } -} - `;let Yo=(()=>{class e extends p.mm{constructor(n){super(n),this.document=ko}}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 Wo=h` - mutation AddComment($input: AddCommentInput!) { - addComment(input: $input) { - clientMutationId - comment { - ...commentListNode - } - } -} - ${u}`;let Jo=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Wo}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jo=h` - query previewComment($commentText: String!) { - previewCommentText(commentText: $commentText) { - ...previewComment - } -} - ${En}`;let Ko=(()=>{class e extends p.AE{constructor(n){super(n),this.document=jo}}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 Ho=h` - query userTypeahead($queryTerm: String!) { - userTypeahead(queryTerm: $queryTerm) { - username - } -} - `;let Xo=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ho}}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 qo=h` - query entityTypeahead($queryTerm: String!) { - entityTypeahead(queryTerm: $queryTerm) { - entityId - tagType - displayName - } -} - `;let er=(()=>{class e extends p.AE{constructor(n){super(n),this.document=qo}}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 tr=h` - query AcmgCodeTypeahead($code: String!) { - acmgCodesTypeahead(queryTerm: $code) { - id - code - description - } -} - `;let nr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=tr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ir=h` - query DiseaseTypeahead($name: String!) { - diseaseTypeahead(queryTerm: $name) { - id - name - displayName - doid - diseaseAliases - } -} - `;let or=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ir}}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 rr=h` - mutation AddDisease($name: String!, $doid: Int) { - addDisease(input: {name: $name, doid: $doid}) { - ...AddDiseaseFields - } -} - ${Nn}`;let sr=(()=>{class e extends p.mm{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 ar=h` - query DrugTypeahead($name: String!) { - drugTypeahead(queryTerm: $name) { - id - name - ncitId - drugAliases - } -} - `;let cr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=ar}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lr=h` - mutation AddDrug($name: String!, $ncitId: String) { - addDrug(input: {name: $name, ncitId: $ncitId}) { - ...AddDrugFields - } -} - ${An}`;let ur=(()=>{class e extends p.mm{constructor(n){super(n),this.document=lr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const dr=h` - query EvidenceTypeahead($id: Int!) { - evidenceItem(id: $id) { - id - status - name - } -} - `;let pr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=dr}}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 mr=h` - query GeneTypeahead($entrezSymbol: String!) { - geneTypeahead(queryTerm: $entrezSymbol) { - ...GeneTypeaheadFields - } -} - ${On}`;let gr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=mr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fr=h` - query NccnGuidelineTypeahead($name: String!) { - nccnGuidelinesTypeahead(queryTerm: $name) { - id - name - } -} - `;let hr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=fr}}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` - query PhenotypeTypeahead($name: String!) { - phenotypeTypeahead(queryTerm: $name) { - hpoId - id - name - } -} - `;let zr=(()=>{class e extends p.AE{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 yr=h` - query CitationTypeahead($partialCitationId: Int!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceTypeaheadResult - } -} - ${Kt}`;let Cr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=yr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ir=h` - query CitationExistenceCheck($sourceType: SourceSource!, $citationId: Int!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) -} - `;let Tr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Ir}}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 _r=h` - mutation CreateSourceStub($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - id - citationId - sourceType - } - } -} - `;let Sr=(()=>{class e extends p.mm{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 Dr=h` - query CheckRemoteCitation($sourceType: SourceSource!, $citationId: Int!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) -} - `;let Er=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Dr}}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 Nr=h` - mutation AddRemoteCitation($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - ...SourceStubFields - } - } -} - ${Ht}`;let Ar=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Nr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Or=h` - query SourceTypeahead($partialCitationId: Int!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceTypeaheadResult - } -} - ${Kt}`;let Mr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Or}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Lr=h` - query VariantTypeahead($name: String!, $geneId: Int) { - variants(name: $name, geneId: $geneId, first: 20) { - nodes { - ...VariantTypeaheadFields - } - } -} - ${Xt}`;let xr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Lr}}return e.\u0275fac=function(n){return new(n||e)(a.LFG(p._M))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Fr=h` - mutation AddVariant($name: String!, $geneId: Int!) { - addVariant(input: {name: $name, geneId: $geneId}) { - ...AddVariantFields - } -} - ${Ln}`;let br=(()=>{class e extends p.mm{constructor(n){super(n),this.document=Fr}}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 VariantSelect($name: String!, $geneId: Int) { - variants(name: $name, first: 20, geneId: $geneId) { - nodes { - ...VariantTypeaheadFields - } - } -} - ${Xt}`;const $r=h` - query VariantTypeTypeahead($name: String!) { - variantTypeTypeahead(queryTerm: $name) { - name - soid - id - } -} - `;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 - } -} - ${xn}`;let Gr=(()=>{class e extends p.AE{constructor(n){super(n),this.document=Pr}}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 SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { - suggestEvidenceItemRevision(input: $input) { - clientMutationId - evidenceItem { - id - } - } -} - `;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 Vr=h` - mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { - submitEvidence(input: $input) { - clientMutationId - evidenceItem { - id - } - } -} - `;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 { - id - } - } -} - `;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 { - id - } - } -} - `;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 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 - gene { - id - revisions { - totalCount - edges { - node { - id - revisionsetId - createdAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - addedObjects { - id - displayName - displayType - entityType - } - removedObjects { - id - displayName - displayType - entityType - } - keptObjects { - id - displayName - displayType - entityType - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - revisor { - id - name - } - status - } - } - } - } - results { - id - fieldName - } - } -} - `;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 - sourceSuggestion { - id - } - } -} - `;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 { - id - status - } - } -} - `;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 { - coiPresent - coiStatus - createdAt - id - } - } -} - `;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 { - id - } - } -} - `;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 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 - variantGroup { - id - } - results { - id - fieldName - } - } -} - `;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 - } -} - ${$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 - variantGroup { - id - } - } -} - `;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 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 - variant { - id - revisions { - totalCount - edges { - node { - id - revisionsetId - createdAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - addedObjects { - id - displayName - displayType - entityType - } - removedObjects { - id - displayName - displayType - entityType - } - keptObjects { - id - displayName - displayType - entityType - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - revisor { - id - name - } - status - } - } - } - } - results { - id - fieldName - } - } -} - `;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 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 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 - name - nctId - description - url - 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` - query DiseaseDetail($diseaseId: Int!) { - disease(id: $diseaseId) { - id - name - doid - diseaseUrl - displayName - diseaseAliases - 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` - query DrugDetail($drugId: Int!) { - drug(id: $drugId) { - id - name - ncitId - drugUrl - drugAliases - link - } -} - `;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 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 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 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 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 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 { - ...OrganizationGroupsFields - } - } -} - ${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} - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...OrganizationMembersFields - } - } - } -} - ${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 - name - hpoId - url - link - } -} - `;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 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 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 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 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 - last: $last - before: $before - after: $after - notificationReason: $notificationReason - subscriptionId: $subscriptionId - originatingObject: $originatingObject - eventType: $eventType - originatingUserId: $originatingUserId - organizationId: $organizationId - includeRead: $includeRead - ) { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - notificationSubjects { - ...notificationFeedSubjects - } - originatingUsers { - ...notificationOriginatingUsers - } - organizations { - ...notificationOrganization - } - eventTypes - edges { - node { - ...notificationNode - } - } - } -} - ${qn} -${Xn} -${Hn} -${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 { - ...notificationNode - } - } -} - ${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 { - ...subscribable - } - } -} - ${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 { - id - } - } -} - `;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 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 - revisions( - first: $first - last: $last - before: $before - after: $after - fieldName: $fieldName - originatingUserId: $originatingUserId - ) { - totalCount - uniqueRevisors { - username - id - profileImagePath(size: 32) - } - revisedFieldNames { - name - displayName - } - edges { - node { - id - revisionsetId - createdAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - addedObjects { - id - displayName - displayType - entityType - } - removedObjects { - id - displayName - displayType - entityType - } - keptObjects { - id - displayName - displayType - entityType - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - revisor { - id - name - } - status - } - } - } - } -} - `;const la=h` - query VariantGroupsSummary($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupSummaryFields - } -} - ${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 - name - soid - description - url - link - } -} - `;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 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 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),w=r(655),q=r(4090),O=r(1721),L=r(4219),Q=r(925),K=r(647),Y=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})(),J=(()=>{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})(),W=(()=>{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,O.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,O.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(Q.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:[W,o.O5],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,O.yF)()],u.prototype,"nzReverseArrow",void 0),(0,w.gn)([(0,O.yF)()],u.prototype,"nzCollapsible",void 0),(0,w.gn)([(0,O.yF)()],u.prototype,"nzCollapsed",void 0),u})(),G=(()=>{class u{constructor(c){this.directionality=c,this.dir="ltr",this.destroy$=new F.xQ}ngOnInit(){var c;this.dir=this.directionality.value,null===(c=this.directionality.change)||void 0===c||c.pipe((0,Z.R)(this.destroy$)).subscribe(v=>{this.dir=v})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(c){return new(c||u)(t.Y36(Y.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})(),A=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=t.oAB({type:u}),u.\u0275inj=t.cJS({imports:[[Y.vT,o.ez,K.PV,le.xu,Q.ud]]}),u})();var U=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),B=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,B.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,O.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,w.gn)([(0,O.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,B.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})(),H=(()=>{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,B.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(Y.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,w.gn)([(0,O.yF)()],u.prototype,"nzDefaultActiveFirstOption",void 0),(0,w.gn)([(0,O.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:[[Y.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,H,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:[G,g,i.yS,o.mk,o.O5,L.wO,L.uA,L.r9,U.SY,K.Ls,J,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,U.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,A,L.ip,U.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(O,L=o.P){const K=function i(O){return O instanceof Date&&!isNaN(+O)}(O)?+O-L.now():Math.abs(O);return Y=>Y.lift(new Z(K,L))}class Z{constructor(L,Q){this.delay=L,this.scheduler=Q}call(L,Q){return Q.subscribe(new w(L,this.delay,this.scheduler))}}class w extends t.L{constructor(L,Q,K){super(L),this.delay=Q,this.scheduler=K,this.queue=[],this.active=!1,this.errored=!1}static dispatch(L){const Q=L.source,K=Q.queue,Y=L.scheduler,le=L.destination;for(;K.length>0&&K[0].time-Y.now()<=0;)K.shift().notification.observe(le);if(K.length>0){const te=Math.max(0,K[0].time-Y.now());this.schedule(L,te)}else this.unsubscribe(),Q.active=!1}_schedule(L){this.active=!0,this.destination.add(L.schedule(w.dispatch,this.delay,{source:this,destination:this.destination,scheduler:L}))}scheduleNotification(L){if(!0===this.errored)return;const Q=this.scheduler,K=new q(Q.now()+this.delay,L);this.queue.push(K),!1===this.active&&this._schedule(Q)}_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,Q){this.time=L,this.notification=Q}}},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 w=>{let q=w;for(let O=0;O{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),w=r(647),q=r(226);const O=["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 Q(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(O,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,Q,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,w.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,w.PV,F.ud]]}),V})()},4401:(De,re,r)=>{r.d(re,{x7:()=>ue,mS:()=>W,F9:()=>J});var o=r(655),i=r(5e3),t=r(8929),D=r(7625),F=r(8076),Z=r(9439),w=r(1721),q=r(226),O=r(4832),L=r(9808),Q=r(969),K=r(7144);function Y(g,G){if(1&g&&(i.TgZ(0,"p",6),i._uU(1),i.qZA()),2&g){const A=G.$implicit,U=i.oxw(2).index,ye=i.oxw(2);i.ekj("current",A===ye.countArray[U]),i.xp6(1),i.hij(" ",A," ")}}function le(g,G){if(1&g&&(i.ynx(0),i.YNc(1,Y,2,3,"p",5),i.BQk()),2&g){const A=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",A.countSingleArray)}}function te(g,G){if(1&g&&(i.TgZ(0,"span",3),i.YNc(1,le,2,1,"ng-container",4),i.qZA()),2&g){const A=G.index,U=i.oxw(2);i.Udp("transform","translateY("+100*-U.countArray[A]+"%)"),i.Q6J("nzNoAnimation",U.noAnimation),i.xp6(1),i.Q6J("ngIf",!U.nzDot&&void 0!==U.countArray[A])}}function se(g,G){if(1&g&&(i.ynx(0),i.YNc(1,te,2,4,"span",2),i.BQk()),2&g){const A=i.oxw();i.xp6(1),i.Q6J("ngForOf",A.maxNumberArray)}}function oe(g,G){if(1&g&&i._uU(0),2&g){const A=i.oxw();i.hij("",A.nzOverflowCount,"+")}}function V(g,G){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const A=i.oxw(2);i.xp6(1),i.Oqu(A.nzText)}}function b(g,G){if(1&g&&(i.ynx(0),i._UZ(1,"span",2),i.TgZ(2,"span",3),i.YNc(3,V,2,1,"ng-container",1),i.qZA(),i.BQk()),2&g){const A=i.oxw();i.xp6(1),i.Gre("ant-badge-status-dot ant-badge-status-",A.nzStatus||A.presetColor,""),i.Udp("background",!A.presetColor&&A.nzColor),i.Q6J("ngStyle",A.nzStyle),i.xp6(2),i.Q6J("nzStringTemplateOutlet",A.nzText)}}function I(g,G){if(1&g&&i._UZ(0,"nz-badge-sup",5),2&g){const A=i.oxw(2);i.Q6J("nzOffset",A.nzOffset)("nzTitle",A.nzTitle)("nzStyle",A.nzStyle)("nzDot",A.nzDot)("nzOverflowCount",A.nzOverflowCount)("disableAnimation",!!(A.nzStandalone||A.nzStatus||A.nzColor||null!=A.noAnimation&&A.noAnimation.nzNoAnimation))("nzCount",A.nzCount)("noAnimation",!(null==A.noAnimation||!A.noAnimation.nzNoAnimation))}}function R(g,G){if(1&g&&(i.ynx(0),i.YNc(1,I,1,8,"nz-badge-sup",4),i.BQk()),2&g){const A=i.oxw();i.xp6(1),i.Q6J("ngIf",A.showSup)}}const ne=["*"];function X(g,G){if(1&g&&(i.ynx(0),i._uU(1),i.BQk()),2&g){const A=i.oxw();i.xp6(1),i.Oqu(A.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(A){const{nzOverflowCount:U,nzCount:ye}=A;ye&&"number"==typeof ye.currentValue&&(this.count=Math.max(0,ye.currentValue),this.countArray=this.count.toString().split("").map(_e=>+_e)),U&&this.generateMaxNumberArray()}}return g.\u0275fac=function(A){return new(A||g)},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:15,hostBindings:function(A,U){2&A&&(i.uIk("title",null===U.nzTitle?"":U.nzTitle||U.nzCount),i.d8E("@.disabled",U.disableAnimation)("@zoomBadgeMotion",void 0),i.Akn(U.nzStyle),i.Udp("right",U.nzOffset&&U.nzOffset[0]?-U.nzOffset[0]:null,"px")("margin-top",U.nzOffset&&U.nzOffset[1]?U.nzOffset[1]:null,"px"),i.ekj("ant-badge-count",!U.nzDot)("ant-badge-dot",U.nzDot)("ant-badge-multiple-words",U.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(A,U){if(1&A&&(i.YNc(0,se,2,1,"ng-container",0),i.YNc(1,oe,1,1,"ng-template",null,1,i.W1O)),2&A){const ye=i.MAs(2);i.Q6J("ngIf",U.count<=U.nzOverflowCount)("ngIfElse",ye)}},directives:[L.O5,L.sg,O.P],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),g})(),ue=(()=>{class g{constructor(A,U,ye,_e,Se,Ee){this.nzConfigService=A,this.renderer=U,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 A;null===(A=this.directionality.change)||void 0===A||A.pipe((0,D.R)(this.destroy$)).subscribe(U=>{this.dir=U,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(A){const{nzColor:U,nzShowDot:ye,nzDot:_e,nzCount:Se,nzShowZero:Ee}=A;U&&(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(A){return new(A||g)(i.Y36(Z.jY),i.Y36(i.Qsj),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(q.Is,8),i.Y36(O.P,9))},g.\u0275cmp=i.Xpm({type:g,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(A,U){2&A&&i.ekj("ant-badge-status",U.nzStatus)("ant-badge-not-a-wrapper",!!(U.nzStandalone||U.nzStatus||U.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(A,U){1&A&&(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&A&&(i.Q6J("ngIf",U.nzStatus||U.nzColor),i.xp6(2),i.Q6J("nzStringTemplateOutlet",U.nzCount))},directives:[fe,L.O5,L.PC,Q.f],encapsulation:2,data:{animation:[F.Ev]},changeDetection:0}),(0,o.gn)([(0,w.yF)()],g.prototype,"nzShowZero",void 0),(0,o.gn)([(0,w.yF)()],g.prototype,"nzShowDot",void 0),(0,o.gn)([(0,w.yF)()],g.prototype,"nzStandalone",void 0),(0,o.gn)([(0,w.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})(),J=(()=>{class g{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(A){const{nzColor:U}=A;U&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null)}}return g.\u0275fac=function(A){return new(A||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(A,U){1&A&&(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&A&&(i.xp6(1),i.Tol(U.presetColor&&"ant-ribbon-color-"+U.presetColor),i.Udp("background-color",!U.presetColor&&U.nzColor),i.ekj("ant-ribbon-placement-end","end"===U.nzPlacement)("ant-ribbon-placement-start","start"===U.nzPlacement),i.xp6(1),i.Q6J("nzStringTemplateOutlet",U.nzText),i.xp6(1),i.Udp("color",!U.presetColor&&U.nzColor))},directives:[Q.f],encapsulation:2,changeDetection:0}),g})(),W=(()=>{class g{}return g.\u0275fac=function(A){return new(A||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({imports:[[q.vT,L.ez,K.Q8,Q.T,O.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),w=r(226),q=r(9808),O=r(969);function L(N,ee){1&N&&i.Hsn(0)}const Q=["*"];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 Y(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 B;i.iGM(B=i.CRH())&&(j.template=B.first)}},exportAs:["nzCardTab"],ngContentSelectors:Q,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,Y,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,B){this.nzConfigService=_,this.cdr=j,this.directionality=B,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(w.Is,8))},N.\u0275cmp=i.Xpm({type:N,selectors:[["nz-card"]],contentQueries:function(_,j,B){if(1&_&&(i.Suo(B,Se,5),i.Suo(B,_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:Q,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 B=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",B),i.xp6(3),i.Q6J("ngIf",j.nzActions.length)}},directives:[Ee,q.O5,O.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,O.T],w.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),w=r(6787),q=r(3753),O=r(8896),L=r(3426),Q=r(7604),K=r(4850),Y=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),J=r(969),W=r(647),g=r(4219),G=r(8076);function A(_,j){if(1&_){const B=D.EpF();D.TgZ(0,"div",0),D.NdJ("@slideMotion.done",function(Ce){return D.CHM(B),D.oxw().onAnimationEvent(Ce)})("mouseenter",function(){return D.CHM(B),D.oxw().setMouseState(!0)})("mouseleave",function(){return D.CHM(B),D.oxw().setMouseState(!1)}),D.Hsn(1),D.qZA()}if(2&_){const B=D.oxw();D.ekj("ant-dropdown-rtl","rtl"===B.dir),D.Q6J("ngClass",B.nzOverlayClassName)("ngStyle",B.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==B.noAnimation?null:B.noAnimation.nzNoAnimation)("nzNoAnimation",null==B.noAnimation?null:B.noAnimation.nzNoAnimation)}}const U=["*"],_e=[b.yW.bottomLeft,b.yW.bottomRight,b.yW.topRight,b.yW.topLeft];let Se=(()=>{class _{constructor(B,ge,Ce,Ae,Me,Ie){this.nzConfigService=B,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(B,ge){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(B,ge)}ngAfterViewInit(){if(this.nzDropdownMenu){const B=this.elementRef.nativeElement,ge=(0,w.T)((0,q.R)(B,"mouseenter").pipe((0,Q.h)(!0)),(0,q.R)(B,"mouseleave").pipe((0,Q.h)(!1))),Ae=(0,w.T)(this.nzDropdownMenu.mouseState$,ge),Me=(0,q.R)(B,"click").pipe((0,K.U)(()=>!this.nzVisible)),Ie=this.nzTrigger$.pipe((0,Y.w)(ve=>"hover"===ve?Ae:"click"===ve?Me:O.E)),Le=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,le.h)(()=>this.nzClickHide),(0,Q.h)(!1)),Ne=(0,w.T)(Ie,Le,this.overlayClose$).pipe((0,le.h)(()=>!this.nzDisabled)),Be=(0,w.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:B).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,w.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(B){const{nzVisible:ge,nzDisabled:Ce,nzOverlayClassName:Ae,nzOverlayStyle:Me,nzTrigger:Ie}=B;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(B){return new(B||_)(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(B){return new(B||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({}),_})(),$e=(()=>{class _{constructor(B,ge,Ce){this.renderer=B,this.nzButtonGroupComponent=ge,this.elementRef=Ce}ngAfterViewInit(){const B=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&B&&this.renderer.addClass(B,"ant-dropdown-button")}}return _.\u0275fac=function(B){return new(B||_)(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(B,ge,Ce,Ae,Me,Ie,Le){this.cdr=B,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(B){this.animationStateChange$.emit(B)}setMouseState(B){this.mouseState$.next(B)}setValue(B,ge){this[B]=ge,this.cdr.markForCheck()}ngOnInit(){var B;null===(B=this.directionality.change)||void 0===B||B.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(B){return new(B||_)(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(B,ge){if(1&B&&D.Gf(D.Rgc,7),2&B){let Ce;D.iGM(Ce=D.CRH())&&(ge.templateRef=Ce.first)}},exportAs:["nzDropdownMenu"],features:[D._Bn([g.hl,{provide:g.Cc,useValue:!0}])],ngContentSelectors:U,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(B,ge){1&B&&(D.F$t(),D.YNc(0,A,2,7,"ng-template"))},directives:[de.mk,de.PC,ue.P],encapsulation:2,data:{animation:[G.mF]},changeDetection:0}),_})(),Pe=(()=>{class _{}return _.\u0275fac=function(B){return new(B||_)},_.\u0275mod=D.oAB({type:_}),_.\u0275inj=D.cJS({imports:[[X.vT,de.ez,R.U8,fe.u5,pe.sL,g.ip,W.PV,ue.g,ne.ud,b.e4,Ee,J.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),w=r(8929),q=r(8514),O=r(1086),L=r(6787),Q=r(591),K=r(2986),Y=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 J(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 W=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],g=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function G(f,E){1&f&&o.Hsn(0)}const A=["nz-list-item-actions",""];function U(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,U,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 B(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",""]]],H=["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(W),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,J,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,G,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 w.xQ,this.inputActionChanges$=new w.xQ,this.contentChildrenChanges$=(0,q.P)(()=>this.nzListItemActions?(0,O.of)(null):this.ngZone.onStable.asObservable().pipe((0,K.q)(1),(0,Y.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:A,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 Q.X(this.nzItemLayout),this.destroy$=new w.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,B,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:H,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),w=r(4850),q=r(1709),O=r(2198),L=r(7604),Q=r(7138),K=r(5778),Y=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 J(a,H){if(1&a&&i._UZ(0,"i",4),2&a){const m=i.oxw();i.Q6J("nzType",m.nzIcon)}}function W(a,H){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,H){1&a&&i._UZ(0,"i",8)}function G(a,H){1&a&&i._UZ(0,"i",9)}function A(a,H){if(1&a&&(i.TgZ(0,"span",5),i.YNc(1,g,1,0,"i",6),i.YNc(2,G,1,0,"i",7),i.qZA()),2&a){const m=i.oxw();i.Q6J("ngSwitch",m.dir),i.xp6(1),i.Q6J("ngSwitchCase","rtl")}}function U(a,H){1&a&&i._UZ(0,"i",10)}const ye=["*"],_e=["nz-submenu-inline-child",""];function Se(a,H){}const Ee=["nz-submenu-none-inline-child",""];function Oe(a,H){}const $e=["nz-submenu",""];function Ve(a,H){1&a&&i.Hsn(0,0,["*ngIf","!nzTitle"])}function Pe(a,H){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,H){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,H){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,H){1&a&&i.Hsn(0,1)}const j=[[["","title",""]],"*"],B=["[title]","*"],ge=["titleElement"],Ce=["nz-menu-group",""];function Ae(a,H){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,H){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,w.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,O.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,w.U)(([Te,Fe])=>Te||Fe),(0,Q.e)(150),(0,K.x)(),(0,Y.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,Y.R)(this.destroy$),(0,O.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,Y.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,Y.R)(this.destroy$)).subscribe(l=>{this.dir=l})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,Y.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,Y.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,Y.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,J,1,1,"i",0),i.YNc(1,W,3,1,"ng-container",1),i.Hsn(2),i.YNc(3,A,3,2,"span",2),i.YNc(4,U,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,Y.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,Y.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,Y.R)(this.destroy$)).subscribe(l=>{this.theme=l,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,Y.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,Y.R)(this.destroy$)).subscribe(([l,k])=>{this.inlinePaddingLeft="inline"===l?this.level*k:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,Y.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,Y.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,w.U)(()=>m.some(ie=>ie.nzSelected)),(0,Y.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:B,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,H){return a||H}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,Y.R)(this.destroy$)).subscribe(([l,k])=>{this.actualMode=l?"vertical":k,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,Y.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,Y.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,Y.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),w=r(9439),q=r(1721);function O(b,I){}const L=function(b){return{$implicit:b}};function Q(b,I){if(1&b&&(t.TgZ(0,"span",4),t.YNc(1,O,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,Q,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 Y=["*"];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(w.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:Y,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,w.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:()=>J});var o=r(655),i=r(5e3),t=r(8929),D=r(591),F=r(839),Z=r(8723),w=r(1177);class O{constructor(g){this.durationSelector=g}call(g,G){return G.subscribe(new L(g,this.durationSelector))}}class L extends w.Ds{constructor(g,G){super(g),this.durationSelector=G,this.hasValue=!1}_next(g){try{const G=this.durationSelector.call(this,g);G&&this._tryNext(g,G)}catch(G){this.destination.error(G)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(g,G){let A=this.durationSubscription;this.value=g,this.hasValue=!0,A&&(A.unsubscribe(),this.remove(A)),A=(0,w.ft)(G,new w.IY(this)),A&&!A.closed&&this.add(this.durationSubscription=A)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const g=this.value,G=this.durationSubscription;G&&(this.durationSubscription=void 0,G.unsubscribe(),this.remove(G)),this.value=void 0,this.hasValue=!1,super._next(g)}}}var Q=r(1059),K=r(5778),Y=r(7545),le=r(7625),te=r(9439),se=r(1721),oe=r(226),V=r(9808),b=r(7144);function I(W,g){1&W&&(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(W,g){}function ne(W,g){if(1&W&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&W){const G=i.oxw(2);i.xp6(1),i.Oqu(G.nzTip)}}function X(W,g){if(1&W&&(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&W){const G=i.oxw(),A=i.MAs(1);i.xp6(1),i.ekj("ant-spin-rtl","rtl"===G.dir)("ant-spin-spinning",G.isLoading)("ant-spin-lg","large"===G.nzSize)("ant-spin-sm","small"===G.nzSize)("ant-spin-show-text",G.nzTip),i.xp6(1),i.Q6J("ngTemplateOutlet",G.nzIndicator||A),i.xp6(1),i.Q6J("ngIf",G.nzTip)}}function de(W,g){if(1&W&&(i.TgZ(0,"div",9),i.Hsn(1),i.qZA()),2&W){const G=i.oxw();i.ekj("ant-spin-blur",G.isLoading)}}const fe=["*"];let ue=(()=>{class W{constructor(G,A,U){this.nzConfigService=G,this.cdr=A,this.directionality=U,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new t.xQ,this.spinning$=new D.X(this.nzSpinning),this.delay$=new F.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var G;this.delay$.pipe((0,Q.O)(this.nzDelay),(0,K.x)(),(0,Y.w)(U=>0===U?this.spinning$:this.spinning$.pipe(function q(W){return g=>g.lift(new O(W))}(ye=>(0,Z.H)(ye?U:0)))),(0,le.R)(this.destroy$)).subscribe(U=>{this.isLoading=U,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,le.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(G=this.directionality.change)||void 0===G||G.pipe((0,le.R)(this.destroy$)).subscribe(U=>{this.dir=U,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(G){const{nzSpinning:A,nzDelay:U}=G;A&&this.spinning$.next(this.nzSpinning),U&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return W.\u0275fac=function(G){return new(G||W)(i.Y36(te.jY),i.Y36(i.sBO),i.Y36(oe.Is,8))},W.\u0275cmp=i.Xpm({type:W,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(G,A){2&G&&i.ekj("ant-spin-nested-loading",!A.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[i.TTD],ngContentSelectors:fe,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(G,A){1&G&&(i.F$t(),i.YNc(0,I,5,0,"ng-template",null,0,i.W1O),i.YNc(2,X,4,12,"div",1),i.YNc(3,de,2,2,"div",2)),2&G&&(i.xp6(2),i.Q6J("ngIf",A.isLoading),i.xp6(1),i.Q6J("ngIf",!A.nzSimple))},directives:[V.O5,V.tP],encapsulation:2}),(0,o.gn)([(0,te.oS)()],W.prototype,"nzIndicator",void 0),(0,o.gn)([(0,se.Rn)()],W.prototype,"nzDelay",void 0),(0,o.gn)([(0,se.yF)()],W.prototype,"nzSimple",void 0),(0,o.gn)([(0,se.yF)()],W.prototype,"nzSpinning",void 0),W})(),J=(()=>{class W{}return W.\u0275fac=function(G){return new(G||W)},W.\u0275mod=i.oAB({type:W}),W.\u0275inj=i.cJS({imports:[[oe.vT,V.ez,b.Q8]]}),W})()}}]); \ No newline at end of file diff --git a/server/public/4028.b00446bf886b8fd8.js b/server/public/4028.b00446bf886b8fd8.js new file mode 100644 index 000000000..008ae6388 --- /dev/null +++ b/server/public/4028.b00446bf886b8fd8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4028],{427:(P,C,i)=>{i.d(C,{J:()=>z});var e=i(5e3),d=i(685),t=i(9808),E=i(647);function S(p,h){if(1&p&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&p){const g=e.oxw(2);e.xp6(1),e.Oqu(g.notification)}}function m(p,h){1&p&&e._uU(0," Not specified ")}function u(p,h){if(1&p&&(e.YNc(0,S,2,1,"span",3),e.YNc(1,m,1,0,"ng-template",null,4,e.W1O)),2&p){const g=e.MAs(2),v=e.oxw();e.Q6J("ngIf",v.notification)("ngIfElse",g)}}function f(p,h){1&p&&e._UZ(0,"i",6)}let z=(()=>{class p{constructor(){}ngOnInit(){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275cmp=e.Xpm({type:p,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification"},decls:5,vars:2,consts:[[3,"nzNotFoundContent","nzNotFoundImage"],["notFound",""],["notFoundImg",""],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["defaultNotification",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(g,v){if(1&g&&(e._UZ(0,"nz-empty",0),e.YNc(1,u,3,2,"ng-template",null,1,e.W1O),e.YNc(3,f,1,0,"ng-template",null,2,e.W1O)),2&g){const O=e.MAs(2),y=e.MAs(4);e.Q6J("nzNotFoundContent",O)("nzNotFoundImage",y)}},directives:[d.p9,t.O5,E.Ls],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]}),p})()},8541:(P,C,i)=>{i.d(C,{o:()=>S});var e=i(9808),d=i(685),t=i(647),E=i(5e3);let S=(()=>{class m{}return m.\u0275fac=function(f){return new(f||m)},m.\u0275mod=E.oAB({type:m}),m.\u0275inj=E.cJS({imports:[[e.ez,d.Xo,t.PV]]}),m})()},8227:(P,C,i)=>{i.d(C,{q:()=>a});var e=i(5e3),d=i(8929),t=i(4850),E=i(373),S=i(2868),m=i(7625),u=i(1793),f=i(9350),z=i(9808),p=i(6042),h=i(2683),g=i(2643),v=i(3677),O=i(8144),y=i(6699),k=i(4219);function x(r,o){1&r&&e.Hsn(0)}function N(r,o){1&r&&e.GkF(0)}function A(r,o){if(1&r&&(e.ynx(0),e.YNc(1,N,1,0,"ng-container",5),e.BQk()),2&r){e.oxw(2);const n=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function I(r,o){1&r&&e.GkF(0)}function T(r,o){if(1&r&&(e.ynx(0),e.TgZ(1,"nz-button-group",6),e.YNc(2,I,1,0,"ng-container",5),e.TgZ(3,"button",7),e.TgZ(4,"nz-space",8),e.TgZ(5,"span"),e._uU(6,"for"),e.qZA(),e._UZ(7,"nz-avatar",9),e._UZ(8,"i",10),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&r){e.oxw();const n=e.MAs(4),_=e.oxw(),D=e.MAs(1);e.xp6(1),e.Q6J("nzSize",_.nzSize),e.xp6(1),e.Q6J("ngTemplateOutlet",D),e.xp6(1),e.Q6J("nzType",_.buttonType)("nzDanger",_.nzDanger)("disabled",_.disabled)("nzDropdownMenu",n),e.xp6(1),e.Q6J("nzSize",4),e.xp6(3),e.Q6J("nzSrc",null==_.selectedOrg?null:_.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function l(r,o){if(1&r){const n=e.EpF();e.TgZ(0,"li",11),e.NdJ("click",function(){const M=e.CHM(n).$implicit;return e.oxw(2).selectOrg(M)}),e._UZ(1,"nz-avatar",12),e._uU(2),e.qZA()}if(2&r){const n=o.$implicit,_=e.oxw(2);e.Q6J("nzSelected",(null==_.selectedOrg?null:_.selectedOrg.id)===n.id),e.xp6(1),e.Q6J("nzSrc",null==n?null:n.profileImagePath)("nzSize",10)("nzShape","square"),e.xp6(1),e.hij(" ",n.name," ")}}function c(r,o){if(1&r&&(e.ynx(0),e.YNc(1,A,2,1,"ng-container",1),e.YNc(2,T,9,10,"ng-container",1),e.TgZ(3,"nz-dropdown-menu",null,2),e.TgZ(5,"ul",3),e.YNc(6,l,3,5,"li",4),e.qZA(),e.qZA(),e.BQk()),2&r){const n=o.ngIf;e.xp6(1),e.Q6J("ngIf",n.length<=1),e.xp6(1),e.Q6J("ngIf",n.length>1),e.xp6(4),e.Q6J("ngForOf",n)}}const s=["*"];let a=(()=>{class r{constructor(n){this.viewerService=n,this.selectedOrgChange=new e.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new d.xQ}get disabled(){return this.button.disabled}selectOrg(n){this.selectedOrg=n,this.selectedOrgChange.emit(n)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,t.U)(n=>n.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,E.j)("mostRecentOrg"),(0,S.b)(n=>{n&&(this.selectedOrg=n,this.selectedOrgChange.emit(n))})),this.mostRecentOrg$.pipe((0,m.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(f.a))},r.\u0275cmp=e.Xpm({type:r,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(n,_,D){if(1&n&&e.Suo(D,u.m,5),2&n){let M;e.iGM(M=e.CRH())&&(_.button=M.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:s,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(n,_){1&n&&(e.F$t(),e.YNc(0,x,1,0,"ng-template",null,0,e.W1O),e.YNc(2,c,7,3,"ng-container",1),e.ALo(3,"async")),2&n&&(e.xp6(2),e.Q6J("ngIf",e.lcZ(3,1,_.organizations$)))},directives:[z.O5,z.tP,p.fY,h.w,p.ix,g.dQ,v.wA,v.cm,O.NU,y.Dz,v.RR,k.wO,z.sg,k.r9],pipes:[z.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),r})()},6559:(P,C,i)=>{i.d(C,{H0:()=>T});var e=i(5e3),d=i(9808),t=i(226);let T=(()=>{class l{}return l.\u0275fac=function(s){return new(s||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[t.vT,d.ez]]}),l})()},6462:(P,C,i)=>{i.d(C,{i:()=>c,m:()=>s});var e=i(655),d=i(1159),t=i(5e3),E=i(4182),S=i(8929),m=i(3753),u=i(7625),f=i(9439),z=i(1721),p=i(5664),h=i(226),g=i(2643),v=i(9808),O=i(647),y=i(969);const k=["switchElement"];function x(a,r){1&a&&t._UZ(0,"i",8)}function N(a,r){if(1&a&&(t.ynx(0),t._uU(1),t.BQk()),2&a){const o=t.oxw(2);t.xp6(1),t.Oqu(o.nzCheckedChildren)}}function A(a,r){if(1&a&&(t.ynx(0),t.YNc(1,N,2,1,"ng-container",9),t.BQk()),2&a){const o=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",o.nzCheckedChildren)}}function I(a,r){if(1&a&&(t.ynx(0),t._uU(1),t.BQk()),2&a){const o=t.oxw(2);t.xp6(1),t.Oqu(o.nzUnCheckedChildren)}}function T(a,r){if(1&a&&t.YNc(0,I,2,1,"ng-container",9),2&a){const o=t.oxw();t.Q6J("nzStringTemplateOutlet",o.nzUnCheckedChildren)}}let c=(()=>{class a{constructor(o,n,_,D,M,w){this.nzConfigService=o,this.host=n,this.ngZone=_,this.cdr=D,this.focusMonitor=M,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 S.xQ}updateValue(o){this.isChecked!==o&&(this.isChecked=o,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,u.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.host.nativeElement,"click").pipe((0,u.R)(this.destroy$)).subscribe(o=>{o.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,m.R)(this.switchElement.nativeElement,"keydown").pipe((0,u.R)(this.destroy$)).subscribe(o=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:n}=o;n!==d.oh&&n!==d.SV&&n!==d.L_&&n!==d.K5||(o.preventDefault(),this.ngZone.run(()=>{n===d.oh?this.updateValue(!1):n===d.SV?this.updateValue(!0):(n===d.L_||n===d.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,u.R)(this.destroy$)).subscribe(o=>{o||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(o){this.isChecked=o,this.cdr.markForCheck()}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.nzDisabled=o,this.cdr.markForCheck()}}return a.\u0275fac=function(o){return new(o||a)(t.Y36(f.jY),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(p.tE),t.Y36(h.Is,8))},a.\u0275cmp=t.Xpm({type:a,selectors:[["nz-switch"]],viewQuery:function(o,n){if(1&o&&t.Gf(k,7),2&o){let _;t.iGM(_=t.CRH())&&(n.switchElement=_.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[t._Bn([{provide:E.JU,useExisting:(0,t.Gpc)(()=>a),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(o,n){if(1&o&&(t.TgZ(0,"button",0,1),t.TgZ(2,"span",2),t.YNc(3,x,1,0,"i",3),t.qZA(),t.TgZ(4,"span",4),t.YNc(5,A,2,1,"ng-container",5),t.YNc(6,T,1,1,"ng-template",null,6,t.W1O),t.qZA(),t._UZ(8,"div",7),t.qZA()),2&o){const _=t.MAs(7);t.ekj("ant-switch-checked",n.isChecked)("ant-switch-loading",n.nzLoading)("ant-switch-disabled",n.nzDisabled)("ant-switch-small","small"===n.nzSize)("ant-switch-rtl","rtl"===n.dir),t.Q6J("disabled",n.nzDisabled)("nzWaveExtraNode",!0),t.xp6(3),t.Q6J("ngIf",n.nzLoading),t.xp6(2),t.Q6J("ngIf",n.isChecked)("ngIfElse",_)}},directives:[g.dQ,v.O5,O.Ls,y.f],encapsulation:2,changeDetection:0}),(0,e.gn)([(0,z.yF)()],a.prototype,"nzLoading",void 0),(0,e.gn)([(0,z.yF)()],a.prototype,"nzDisabled",void 0),(0,e.gn)([(0,z.yF)()],a.prototype,"nzControl",void 0),(0,e.gn)([(0,f.oS)()],a.prototype,"nzSize",void 0),a})(),s=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[h.vT,v.ez,g.vG,O.PV,y.T]]}),a})()}}]); \ No newline at end of file diff --git a/server/public/4038.65b27aab267b3352.js b/server/public/4038.fe3013a5e2c513ca.js similarity index 65% rename from server/public/4038.65b27aab267b3352.js rename to server/public/4038.fe3013a5e2c513ca.js index b5950e5d6..be41ab41f 100644 --- a/server/public/4038.65b27aab267b3352.js +++ b/server/public/4038.fe3013a5e2c513ca.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4038],{4038:(U,h,i)=>{i.r(h),i.d(h,{PagesModule:()=>I});var c=i(9808),l=i(325),e=i(5e3),o=i(1945),s=i(1894),g=i(8144),d=i(7484),r=i(1132);function u(t,n){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.qZA()),2&t){const a=n.$implicit;e.xp6(2),e.Oqu(a.awardee),e.xp6(2),e.Oqu(a.org),e.xp6(2),e.Oqu(a.award)}}function f(t,n){1&t&&e._UZ(0,"img",23)}function m(t,n){1&t&&e._UZ(0,"img",24)}function z(t,n){1&t&&e._UZ(0,"img",25)}function C(t,n){1&t&&e._UZ(0,"img",26)}function b(t,n){1&t&&e._UZ(0,"img",27)}function Z(t,n){1&t&&e._UZ(0,"img",28)}function _(t,n){if(1&t&&(e.TgZ(0,"nz-row",5),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",6),e.TgZ(3,"p"),e._uU(4," Precision medicine refers to the use of prevention and treatment strategies that are tailored to the unique features of each individual and their disease. In the context of cancer this might involve the identification of specific variants shown to predict response to a targeted therapy. The biomedical literature describing associations between genetic variants and clinically relevant outcomes is large and growing rapidly. Currently variant interpretations exist largely in private or encumbered databases resulting in extensive repetition of effort. Effective precision medicine requires this information to be centralized, debated, and interpreted for application in a clinical setting. CIViC is an open access, open source, community-driven web resource for Clinical Interpretation of Variants in Cancer, available online at "),e.TgZ(5,"a",7),e._uU(6,"civicdb.org"),e.qZA(),e._uU(7,". Our goal is to enable precision medicine by providing an educational forum for dissemination of knowledge and active discussion of the clinical significance of cancer genome alterations. For more details and to cite CIViC please refer to the "),e.TgZ(8,"a",8),e._uU(9,"CIViC publication"),e.qZA(),e._uU(10," in Nature Genetics. "),e.qZA(),e.TgZ(11,"p"),e._uU(12," All content created in CIViC is, and will continue to be, freely available, without restriction with a "),e.TgZ(13,"a",9),e._uU(14,"Public Domain License"),e.qZA(),e._uU(15,". Anyone can contribute to CIViC by simply registering for an account. Users join the community with \u201cCurator\u201d level privileges that allow them to comment or propose additions or revisions on any knowledge in CIViC. Proposed additions and revisions are then reviewed by users with \u201cEditor\u201d or \u201cAdmin\u201d level privileges before gaining \u201cAccepted\u201d status. Content that has been Submitted but not yet Accepted should be interpreted and used with caution. Community Curators work together with Editors towards comprehensive and accurate interpretations of the clinical relevance of variants in cancer. "),e.qZA(),e._UZ(16,"img",10),e.qZA(),e.qZA(),e.TgZ(17,"nz-col",1),e.TgZ(18,"nz-card",11),e.TgZ(19,"p"),e._uU(20," Malachi Griffith was supported by the National Human Genome Research Institute (NHGRI) of the National Institutes of Health (NIH) under Award Number R00HG007940. Obi Lee Griffith was supported by the National Cancer Institute of the NIH under Award Number K22CA188163. The CIViC project is also supported by the NCI under Award Numbers U24CA237719 to Obi Lee Griffith (with Malachi Griffith as co-PI), including a funding supplement from the Childhood Cancer Data Initiative (CCDI), and previously U01CA209936 (with Malachi Griffith and Elaine R Mardis as co-PIs). CIViC is also supported by the Washington University Institute of Clinical and Translational Sciences grant UL1TR002345 from the National Center for Advancing Translational Sciences (NCATS) of the National Institutes of Health (NIH). CIViC is also supported by Children\u2019s Discovery Institute (CDI) of the St. Louis Children\u2019s Hospital and Washington University School of Medicine. This research benefited from the use of credits from the National Institutes of Health (NIH) Cloud Credits Model Pilot, a component of the NIH Big Data to Knowledge (BD2K) program. Support for the VCF format and integration with Google BigQuery was funded by Google. The content of this website is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health or other funding sources. "),e.qZA(),e.TgZ(21,"nz-table",12,13),e.TgZ(23,"thead"),e.TgZ(24,"tr"),e.TgZ(25,"th"),e._uU(26,"Awardee"),e.qZA(),e.TgZ(27,"th"),e._uU(28,"Awarding Organization"),e.qZA(),e.TgZ(29,"th"),e._uU(30,"Award Number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"tbody"),e.YNc(32,u,7,3,"tr",14),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"nz-col",1),e.TgZ(34,"nz-card",15),e.TgZ(35,"nz-space",16),e.YNc(36,f,1,0,"img",17),e.YNc(37,m,1,0,"img",18),e.YNc(38,z,1,0,"img",19),e.YNc(39,C,1,0,"img",20),e.YNc(40,b,1,0,"img",21),e.YNc(41,Z,1,0,"img",22),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const a=e.MAs(22),p=e.oxw();e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(16),e.Q6J("nzSpan",10),e.xp6(4),e.Q6J("nzData",p.funding)("nzFrontPagination",!1)("nzShowPagination",!1),e.xp6(11),e.Q6J("ngForOf",a.data),e.xp6(1),e.Q6J("nzSpan",6)}}let w=(()=>{class t{constructor(){this.funding=[{awardee:"Malachi Griffith",org:"National Human Genome Research Institute (NHGRI) of the National Institutes of Health (NIH)",award:"R00HG007940"},{awardee:"Obi Lee Griffith",org:"National Cancer Institute (NCI) of NIH",award:"K22CA188163"},{awardee:"Obi Lee Griffith (with Malachi Griffith as co-PI)",org:"NCI including a funding supplement from the Childhood Cancer Data Initiative (CCDI)",award:"U24CA237719 (previously: U01CA209936)"},{awardee:"CIViC",org:"Washington University Institute of Clinical and Translational Sciences from National Center for Advancing Translational Sciences (NCATS) of NIH",award:"UL1TR002345"},{awardee:"CIViC",org:"Children\u2019s Discovery Institute (CDI) of the St. Louis Children\u2019s Hospital and Washington University School of Medicine.",award:""},{awardee:"CIViC (awarded in cloud credits)",org:"NIH Cloud Credits Model Pilot of the NIH Big Data to Knowledge (BD2K) program",award:""},{awardee:"CIViC (integration with Google BigQuery)",org:"Google",award:""}]}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-pages-about"]],decls:9,vars:1,consts:[[1,"site-page-header"],[3,"nzSpan"],[1,"content",2,"min-height","600px"],["nzDirection","vertical",2,"width","100%"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzGutter"],["nzType","inner","nzTitle","Mission Statement",2,"width","100%"],["href","https://www.civicdb.org","target","_blank"],["href","http://www.nature.com/ng/journal/v49/n2/full/ng.3774.html","target","_blank"],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["src","assets/images/CIViC_principles__shorter.png","alt","CIViC principles",2,"width","100%"],["nzType","inner","nzTitle","Funding",2,"width","100%"],[3,"nzData","nzFrontPagination","nzShowPagination"],["basicTable",""],[4,"ngFor","ngForOf"],["nzType","inner","nzTitle","Acknowledgements",2,"width","100%"],["nzDirection","vertical"],["src","assets/images/nih-nci-logo.png","alt","NHI - National Cancer Institute","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/icts-logo.png","alt","Washington University - Institute for Clinical and Translational Sciences","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/ga4gh-logo.png","alt","Global Alliance for Genomics & Health","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/nih-nhgri-logo.png","alt","NHI - National Human Genome Research Institute","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/wustl-logo.png","alt","Washington University in St. Louis","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/cdi-logo.jpeg","alt","Washington University - Children's Discovery Institute","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/nih-nci-logo.png","alt","NHI - National Cancer Institute",2,"height","50px"],["src","assets/images/icts-logo.png","alt","Washington University - Institute for Clinical and Translational Sciences",2,"height","50px"],["src","assets/images/ga4gh-logo.png","alt","Global Alliance for Genomics & Health",2,"height","50px"],["src","assets/images/nih-nhgri-logo.png","alt","NHI - National Human Genome Research Institute",2,"height","50px"],["src","assets/images/wustl-logo.png","alt","Washington University in St. Louis",2,"height","50px"],["src","assets/images/cdi-logo.jpeg","alt","Washington University - Children's Discovery Institute",2,"height","50px"]],template:function(a,p){1&a&&(e.TgZ(0,"nz-page-header",0),e.TgZ(1,"nz-page-header-title"),e._uU(2," About CIViC "),e.qZA(),e.TgZ(3,"nz-page-header-content"),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",2),e.TgZ(7,"nz-space",3),e.YNc(8,_,42,8,"nz-row",4),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(5),e.Q6J("nzSpan",24))},directives:[o.$O,o.u9,o.u5,s.SK,s.t3,g.NU,g.$1,d.bd,r.N8,r.Om,r.$Z,r.Uo,r._C,r.p0,c.sg],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})();function y(t,n){1&t&&(e.TgZ(0,"nz-row",5),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",6),e.TgZ(3,"p"),e._uU(4," CIViC provides an educational resource to support better understanding of the current state of precision medicine. It may also provide useful summaries and links to relevant published evidence for the clinical relevance of specific variants. "),e.qZA(),e.TgZ(5,"p"),e._uU(6," For more information on the CIViC knowledge model, please see "),e.TgZ(7,"a",7),e._uU(8,"our documentation"),e.qZA(),e._uU(9,". "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"nz-col",1),e.TgZ(11,"nz-card",8),e.TgZ(12,"p"),e._uU(13," CIViC provides an open forum for community contributions. Anyone can create an account to flag problems, add comments, propose revisions to existing content, or submit new evidence, assertions, or summaries. All proposed additions/revisions enter a pending state until considered for acceptance by a CIViC editor. All content contributed and accepted is immediately considered public domain knowledge. "),e.qZA(),e.TgZ(14,"p"),e._uU(15," For more details on how to contribute please read our "),e.TgZ(16,"a",9),e._uU(17,"curating docs"),e.qZA(),e._uU(18,". "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"nz-col",1),e.TgZ(20,"nz-card",10),e.TgZ(21,"p"),e._uU(22," CIViC data can be retrieved using the underlying GraphQL API. The API documentation is available on "),e.TgZ(23,"a",11),e._uU(24,"GitHub"),e.qZA(),e._uU(25,". "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"nz-col",1),e.TgZ(27,"nz-card",12),e.TgZ(28,"p"),e._uU(29," We've recorded a few instructional videos to offer overviews of the CIViC application. They are recommended viewing for users wishing to gain a quick understanding of basic CIViC interface elements and workflows. "),e.qZA(),e.TgZ(30,"p"),e._uU(31," These videos can be found on the "),e.TgZ(32,"a",13),e._uU(33,"CIViC YouTube channel"),e.qZA(),e._uU(34,". "),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",6),e.xp6(9),e.Q6J("nzSpan",6),e.xp6(9),e.Q6J("nzSpan",6),e.xp6(7),e.Q6J("nzSpan",6))}function T(t,n){1&t&&(e.TgZ(0,"nz-row",5),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",14),e._uU(3," Please follow our Twitter account "),e.TgZ(4,"a",15),e._uU(5,"@CIViCdb"),e.qZA(),e._uU(6,". "),e.qZA(),e.qZA(),e.TgZ(7,"nz-col",1),e.TgZ(8,"nz-card",16),e._uU(9," Please email "),e.TgZ(10,"a",17),e._uU(11,"help@civicdb.org"),e.qZA(),e._uU(12,". "),e.qZA(),e.qZA(),e.TgZ(13,"nz-col",1),e.TgZ(14,"nz-card",18),e._uU(15," Please create an issue in the "),e.TgZ(16,"a",19),e._uU(17,"civic-v2 GitHub repo"),e.qZA(),e._uU(18,". "),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(6),e.Q6J("nzSpan",8),e.xp6(6),e.Q6J("nzSpan",8))}const A=[{path:"",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-pages"]],decls:1,vars:0,template:function(a,p){1&a&&e._UZ(0,"router-outlet")},directives:[l.lC],styles:[""]}),t})(),children:[{path:"about",component:w},{path:"help",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-pages-help"]],decls:10,vars:1,consts:[[1,"site-page-header"],[3,"nzSpan"],[1,"content",2,"min-height","600px"],["nzDirection","vertical",2,"width","100%"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzGutter"],["nzType","inner","nzTitle","Knowledgebase Documentation",2,"width","100%","height","100%"],["href","https://docs.civicdb.org/en/latest/model.html","target","_blank"],["nzType","inner","nzTitle","Curation Process Documentation",2,"width","100%","height","100%"],["href","https://docs.civicdb.org/en/latest/curating.html","target","_blank"],["nzType","inner","nzTitle","API Documentation",2,"width","100%","height","100%"],["href","https://griffithlab.github.io/civic-v2/","target","_blank"],["nzType","inner","nzTitle","Tutorials",2,"width","100%","height","100%"],["href","https://www.youtube.com/playlist?list=PLImz36orVFPCQjx6wjMrYW-IPWGk8HrbX","target","_blank"],["nzType","inner","nzTitle","News and Updates",2,"width","100%"],["href","https://twitter.com/CIViCdb","target","_blank"],["nzType","inner","nzTitle","General Inquiries",2,"width","100%"],["href","mailto:help@civicdb.org","target","_blank"],["nzType","inner","nzTitle","Bug Reports and Feature Requests",2,"width","100%"],["href","https://github.com/griffithlab/civic-v2/issues","target","_blank"]],template:function(a,p){1&a&&(e.TgZ(0,"nz-page-header",0),e.TgZ(1,"nz-page-header-title"),e._uU(2," CIViC Help "),e.qZA(),e.TgZ(3,"nz-page-header-content"),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",2),e.TgZ(7,"nz-space",3),e.YNc(8,y,35,5,"nz-row",4),e.YNc(9,T,19,4,"nz-row",4),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(5),e.Q6J("nzSpan",24))},directives:[o.$O,o.u9,o.u5,s.SK,s.t3,g.NU,g.$1,d.bd],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})()}]}];let P=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[l.Bz.forChild(A)],l.Bz]}),t})(),v=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,o.KJ,s.Jb,g.zf,d.vh,r.HQ]]}),t})(),x=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,o.KJ,s.Jb,g.zf,d.vh]]}),t})(),I=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,P,v,x]]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4038],{4038:(U,h,i)=>{i.r(h),i.d(h,{PagesModule:()=>I});var c=i(9808),l=i(325),e=i(5e3),o=i(1945),s=i(1894),g=i(8144),d=i(7484),r=i(1132);function u(t,n){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td"),e._uU(4),e.qZA(),e.TgZ(5,"td"),e._uU(6),e.qZA(),e.qZA()),2&t){const a=n.$implicit;e.xp6(2),e.Oqu(a.awardee),e.xp6(2),e.Oqu(a.org),e.xp6(2),e.Oqu(a.award)}}function f(t,n){1&t&&e._UZ(0,"img",23)}function m(t,n){1&t&&e._UZ(0,"img",24)}function z(t,n){1&t&&e._UZ(0,"img",25)}function C(t,n){1&t&&e._UZ(0,"img",26)}function b(t,n){1&t&&e._UZ(0,"img",27)}function Z(t,n){1&t&&e._UZ(0,"img",28)}function _(t,n){if(1&t&&(e.TgZ(0,"nz-row",5),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",6),e.TgZ(3,"p"),e._uU(4," Precision medicine refers to the use of prevention and treatment strategies that are tailored to the unique features of each individual and their disease. In the context of cancer this might involve the identification of specific variants shown to predict response to a targeted therapy. The biomedical literature describing associations between genetic variants and clinically relevant outcomes is large and growing rapidly. Currently variant interpretations exist largely in private or encumbered databases resulting in extensive repetition of effort. Effective precision medicine requires this information to be centralized, debated, and interpreted for application in a clinical setting. CIViC is an open access, open source, community-driven web resource for Clinical Interpretation of Variants in Cancer, available online at "),e.TgZ(5,"a",7),e._uU(6,"civicdb.org"),e.qZA(),e._uU(7,". Our goal is to enable precision medicine by providing an educational forum for dissemination of knowledge and active discussion of the clinical significance of cancer genome alterations. For more details and to cite CIViC please refer to the "),e.TgZ(8,"a",8),e._uU(9,"CIViC publication"),e.qZA(),e._uU(10," in Nature Genetics. "),e.qZA(),e.TgZ(11,"p"),e._uU(12," All content created in CIViC is, and will continue to be, freely available, without restriction with a "),e.TgZ(13,"a",9),e._uU(14,"Public Domain License"),e.qZA(),e._uU(15,". Anyone can contribute to CIViC by simply registering for an account. Users join the community with \u201cCurator\u201d level privileges that allow them to comment or propose additions or revisions on any knowledge in CIViC. Proposed additions and revisions are then reviewed by users with \u201cEditor\u201d or \u201cAdmin\u201d level privileges before gaining \u201cAccepted\u201d status. Content that has been Submitted but not yet Accepted should be interpreted and used with caution. Community Curators work together with Editors towards comprehensive and accurate interpretations of the clinical relevance of variants in cancer. "),e.qZA(),e._UZ(16,"img",10),e.qZA(),e.qZA(),e.TgZ(17,"nz-col",1),e.TgZ(18,"nz-card",11),e.TgZ(19,"p"),e._uU(20," Malachi Griffith was supported by the National Human Genome Research Institute (NHGRI) of the National Institutes of Health (NIH) under Award Number R00HG007940. Obi Lee Griffith was supported by the National Cancer Institute of the NIH under Award Number K22CA188163. The CIViC project is also supported by the NCI under Award Numbers U24CA237719 to Obi Lee Griffith (with Malachi Griffith as co-PI), including a funding supplement from the Childhood Cancer Data Initiative (CCDI), and previously U01CA209936 (with Malachi Griffith and Elaine R Mardis as co-PIs). CIViC is also supported by the Washington University Institute of Clinical and Translational Sciences grant UL1TR002345 from the National Center for Advancing Translational Sciences (NCATS) of the National Institutes of Health (NIH). CIViC is also supported by Children\u2019s Discovery Institute (CDI) of the St. Louis Children\u2019s Hospital and Washington University School of Medicine. This research benefited from the use of credits from the National Institutes of Health (NIH) Cloud Credits Model Pilot, a component of the NIH Big Data to Knowledge (BD2K) program. Support for the VCF format and integration with Google BigQuery was funded by Google. The content of this website is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health or other funding sources. "),e.qZA(),e.TgZ(21,"nz-table",12,13),e.TgZ(23,"thead"),e.TgZ(24,"tr"),e.TgZ(25,"th"),e._uU(26,"Awardee"),e.qZA(),e.TgZ(27,"th"),e._uU(28,"Awarding Organization"),e.qZA(),e.TgZ(29,"th"),e._uU(30,"Award Number"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"tbody"),e.YNc(32,u,7,3,"tr",14),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(33,"nz-col",1),e.TgZ(34,"nz-card",15),e.TgZ(35,"nz-space",16),e.YNc(36,f,1,0,"img",17),e.YNc(37,m,1,0,"img",18),e.YNc(38,z,1,0,"img",19),e.YNc(39,C,1,0,"img",20),e.YNc(40,b,1,0,"img",21),e.YNc(41,Z,1,0,"img",22),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const a=e.MAs(22),p=e.oxw();e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(16),e.Q6J("nzSpan",10),e.xp6(4),e.Q6J("nzData",p.funding)("nzFrontPagination",!1)("nzShowPagination",!1),e.xp6(11),e.Q6J("ngForOf",a.data),e.xp6(1),e.Q6J("nzSpan",6)}}let w=(()=>{class t{constructor(){this.funding=[{awardee:"Malachi Griffith",org:"National Human Genome Research Institute (NHGRI) of the National Institutes of Health (NIH)",award:"R00HG007940"},{awardee:"Obi Lee Griffith",org:"National Cancer Institute (NCI) of NIH",award:"K22CA188163"},{awardee:"Obi Lee Griffith (with Malachi Griffith as co-PI)",org:"NCI including a funding supplement from the Childhood Cancer Data Initiative (CCDI)",award:"U24CA237719 (previously: U01CA209936)"},{awardee:"CIViC",org:"Washington University Institute of Clinical and Translational Sciences from National Center for Advancing Translational Sciences (NCATS) of NIH",award:"UL1TR002345"},{awardee:"CIViC",org:"Children\u2019s Discovery Institute (CDI) of the St. Louis Children\u2019s Hospital and Washington University School of Medicine.",award:""},{awardee:"CIViC (awarded in cloud credits)",org:"NIH Cloud Credits Model Pilot of the NIH Big Data to Knowledge (BD2K) program",award:""},{awardee:"CIViC (integration with Google BigQuery)",org:"Google",award:""}]}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-pages-about"]],decls:9,vars:1,consts:[[1,"site-page-header"],[3,"nzSpan"],[1,"content",2,"min-height","600px"],["nzDirection","vertical",2,"width","100%"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzGutter"],["nzType","inner","nzTitle","Mission Statement",2,"width","100%"],["href","https://www.civicdb.org","target","_blank"],["href","http://www.nature.com/ng/journal/v49/n2/full/ng.3774.html","target","_blank"],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["src","assets/images/CIViC_principles__shorter.png","alt","CIViC principles",2,"width","100%"],["nzType","inner","nzTitle","Funding",2,"width","100%"],[3,"nzData","nzFrontPagination","nzShowPagination"],["basicTable",""],[4,"ngFor","ngForOf"],["nzType","inner","nzTitle","Acknowledgements",2,"width","100%"],["nzDirection","vertical"],["src","assets/images/nih-nci-logo.png","alt","NHI - National Cancer Institute","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/icts-logo.png","alt","Washington University - Institute for Clinical and Translational Sciences","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/ga4gh-logo.png","alt","Global Alliance for Genomics & Health","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/nih-nhgri-logo.png","alt","NHI - National Human Genome Research Institute","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/wustl-logo.png","alt","Washington University in St. Louis","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/cdi-logo.jpeg","alt","Washington University - Children's Discovery Institute","style","height: 50px",4,"nzSpaceItem"],["src","assets/images/nih-nci-logo.png","alt","NHI - National Cancer Institute",2,"height","50px"],["src","assets/images/icts-logo.png","alt","Washington University - Institute for Clinical and Translational Sciences",2,"height","50px"],["src","assets/images/ga4gh-logo.png","alt","Global Alliance for Genomics & Health",2,"height","50px"],["src","assets/images/nih-nhgri-logo.png","alt","NHI - National Human Genome Research Institute",2,"height","50px"],["src","assets/images/wustl-logo.png","alt","Washington University in St. Louis",2,"height","50px"],["src","assets/images/cdi-logo.jpeg","alt","Washington University - Children's Discovery Institute",2,"height","50px"]],template:function(a,p){1&a&&(e.TgZ(0,"nz-page-header",0),e.TgZ(1,"nz-page-header-title"),e._uU(2," About CIViC "),e.qZA(),e.TgZ(3,"nz-page-header-content"),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",2),e.TgZ(7,"nz-space",3),e.YNc(8,_,42,8,"nz-row",4),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(5),e.Q6J("nzSpan",24))},directives:[o.$O,o.u9,o.u5,s.SK,s.t3,g.NU,g.$1,d.bd,r.N8,r.Om,r.$Z,r.Uo,r._C,r.p0,c.sg],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})();function y(t,n){1&t&&(e.TgZ(0,"nz-row",5),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",6),e.TgZ(3,"p"),e._uU(4," CIViC provides an educational resource to support better understanding of the current state of precision medicine. It may also provide useful summaries and links to relevant published evidence for the clinical relevance of specific variants. "),e.qZA(),e.TgZ(5,"p"),e._uU(6," For more information on the CIViC knowledge model, please see "),e.TgZ(7,"a",7),e._uU(8,"our documentation"),e.qZA(),e._uU(9,". "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(10,"nz-col",1),e.TgZ(11,"nz-card",8),e.TgZ(12,"p"),e._uU(13," CIViC provides an open forum for community contributions. Anyone can create an account to flag problems, add comments, propose revisions to existing content, or submit new evidence, assertions, or summaries. All proposed additions/revisions enter a pending state until considered for acceptance by a CIViC editor. All content contributed and accepted is immediately considered public domain knowledge. "),e.qZA(),e.TgZ(14,"p"),e._uU(15," For more details on how to contribute please read our "),e.TgZ(16,"a",9),e._uU(17,"curating docs"),e.qZA(),e._uU(18,". "),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"nz-col",1),e.TgZ(20,"nz-card",10),e.TgZ(21,"p"),e._uU(22," CIViC data can be retrieved using the underlying GraphQL API. The API documentation is available on "),e.TgZ(23,"a",11),e._uU(24,"GitHub"),e.qZA(),e._uU(25,". "),e.qZA(),e.TgZ(26,"p"),e._uU(27," The GraphiQL user interface found "),e.TgZ(28,"a",12),e._uU(29,"here"),e.qZA(),e._uU(30,' is a good way to get started interacting with the API. You can explore the schema and available queries using the "Docs" explorer found in the upper right. '),e.qZA(),e.qZA(),e.qZA(),e.TgZ(31,"nz-col",1),e.TgZ(32,"nz-card",13),e.TgZ(33,"p"),e._uU(34," We've recorded a few instructional videos to offer overviews of the CIViC application. They are recommended viewing for users wishing to gain a quick understanding of basic CIViC interface elements and workflows. "),e.qZA(),e.TgZ(35,"p"),e._uU(36," These videos can be found on the "),e.TgZ(37,"a",14),e._uU(38,"CIViC YouTube channel"),e.qZA(),e._uU(39,". "),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",6),e.xp6(9),e.Q6J("nzSpan",6),e.xp6(9),e.Q6J("nzSpan",6),e.xp6(12),e.Q6J("nzSpan",6))}function T(t,n){1&t&&(e.TgZ(0,"nz-row",5),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",15),e._uU(3," Please follow our Twitter account "),e.TgZ(4,"a",16),e._uU(5,"@CIViCdb"),e.qZA(),e._uU(6,". "),e.qZA(),e.qZA(),e.TgZ(7,"nz-col",1),e.TgZ(8,"nz-card",17),e._uU(9," Please email "),e.TgZ(10,"a",18),e._uU(11,"help@civicdb.org"),e.qZA(),e._uU(12,". "),e.qZA(),e.qZA(),e.TgZ(13,"nz-col",1),e.TgZ(14,"nz-card",19),e._uU(15," Please create an issue in the "),e.TgZ(16,"a",20),e._uU(17,"civic-v2 GitHub repo"),e.qZA(),e._uU(18,". "),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.Q6J("nzGutter",24),e.xp6(1),e.Q6J("nzSpan",8),e.xp6(6),e.Q6J("nzSpan",8),e.xp6(6),e.Q6J("nzSpan",8))}const A=[{path:"",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-pages"]],decls:1,vars:0,template:function(a,p){1&a&&e._UZ(0,"router-outlet")},directives:[l.lC],styles:[""]}),t})(),children:[{path:"about",component:w},{path:"help",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-pages-help"]],decls:10,vars:1,consts:[[1,"site-page-header"],[3,"nzSpan"],[1,"content",2,"min-height","600px"],["nzDirection","vertical",2,"width","100%"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzGutter"],["nzType","inner","nzTitle","Knowledgebase Documentation",2,"width","100%","height","100%"],["href","https://docs.civicdb.org/en/latest/model.html","target","_blank"],["nzType","inner","nzTitle","Curation Process Documentation",2,"width","100%","height","100%"],["href","https://docs.civicdb.org/en/latest/curating.html","target","_blank"],["nzType","inner","nzTitle","API Documentation",2,"width","100%","height","100%"],["href","https://griffithlab.github.io/civic-v2/","target","_blank"],["href","https://civicdb.org/api/graphiql","target","_blank"],["nzType","inner","nzTitle","Tutorials",2,"width","100%","height","100%"],["href","https://www.youtube.com/playlist?list=PLImz36orVFPCQjx6wjMrYW-IPWGk8HrbX","target","_blank"],["nzType","inner","nzTitle","News and Updates",2,"width","100%"],["href","https://twitter.com/CIViCdb","target","_blank"],["nzType","inner","nzTitle","General Inquiries",2,"width","100%"],["href","mailto:help@civicdb.org","target","_blank"],["nzType","inner","nzTitle","Bug Reports and Feature Requests",2,"width","100%"],["href","https://github.com/griffithlab/civic-v2/issues","target","_blank"]],template:function(a,p){1&a&&(e.TgZ(0,"nz-page-header",0),e.TgZ(1,"nz-page-header-title"),e._uU(2," CIViC Help "),e.qZA(),e.TgZ(3,"nz-page-header-content"),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",2),e.TgZ(7,"nz-space",3),e.YNc(8,y,40,5,"nz-row",4),e.YNc(9,T,19,4,"nz-row",4),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(5),e.Q6J("nzSpan",24))},directives:[o.$O,o.u9,o.u5,s.SK,s.t3,g.NU,g.$1,d.bd],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})()}]}];let P=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[l.Bz.forChild(A)],l.Bz]}),t})(),v=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,o.KJ,s.Jb,g.zf,d.vh,r.HQ]]}),t})(),x=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,o.KJ,s.Jb,g.zf,d.vh]]}),t})(),I=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.ez,P,v,x]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/4184.d395d52a99d5b071.js b/server/public/4184.d395d52a99d5b071.js new file mode 100644 index 000000000..dcc05b696 --- /dev/null +++ b/server/public/4184.d395d52a99d5b071.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4184],{8227:(U,I,r)=>{r.d(I,{q:()=>F});var o=r(5e3),m=r(8929),e=r(4850),g=r(373),S=r(2868),x=r(7625),O=r(1793),b=r(9350),C=r(9808),A=r(6042),L=r(2683),p=r(2643),T=r(3677),y=r(8144),M=r(6699),u=r(4219);function v(l,h){1&l&&o.Hsn(0)}function f(l,h){1&l&&o.GkF(0)}function z(l,h){if(1&l&&(o.ynx(0),o.YNc(1,f,1,0,"ng-container",5),o.BQk()),2&l){o.oxw(2);const a=o.MAs(1);o.xp6(1),o.Q6J("ngTemplateOutlet",a)}}function E(l,h){1&l&&o.GkF(0)}function w(l,h){if(1&l&&(o.ynx(0),o.TgZ(1,"nz-button-group",6),o.YNc(2,E,1,0,"ng-container",5),o.TgZ(3,"button",7),o.TgZ(4,"nz-space",8),o.TgZ(5,"span"),o._uU(6,"for"),o.qZA(),o._UZ(7,"nz-avatar",9),o._UZ(8,"i",10),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&l){o.oxw();const a=o.MAs(4),d=o.oxw(),Z=o.MAs(1);o.xp6(1),o.Q6J("nzSize",d.nzSize),o.xp6(1),o.Q6J("ngTemplateOutlet",Z),o.xp6(1),o.Q6J("nzType",d.buttonType)("nzDanger",d.nzDanger)("disabled",d.disabled)("nzDropdownMenu",a),o.xp6(1),o.Q6J("nzSize",4),o.xp6(3),o.Q6J("nzSrc",null==d.selectedOrg?null:d.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function B(l,h){if(1&l){const a=o.EpF();o.TgZ(0,"li",11),o.NdJ("click",function(){const Q=o.CHM(a).$implicit;return o.oxw(2).selectOrg(Q)}),o._UZ(1,"nz-avatar",12),o._uU(2),o.qZA()}if(2&l){const a=h.$implicit,d=o.oxw(2);o.Q6J("nzSelected",(null==d.selectedOrg?null:d.selectedOrg.id)===a.id),o.xp6(1),o.Q6J("nzSrc",null==a?null:a.profileImagePath)("nzSize",10)("nzShape","square"),o.xp6(1),o.hij(" ",a.name," ")}}function J(l,h){if(1&l&&(o.ynx(0),o.YNc(1,z,2,1,"ng-container",1),o.YNc(2,w,9,10,"ng-container",1),o.TgZ(3,"nz-dropdown-menu",null,2),o.TgZ(5,"ul",3),o.YNc(6,B,3,5,"li",4),o.qZA(),o.qZA(),o.BQk()),2&l){const a=h.ngIf;o.xp6(1),o.Q6J("ngIf",a.length<=1),o.xp6(1),o.Q6J("ngIf",a.length>1),o.xp6(4),o.Q6J("ngForOf",a)}}const D=["*"];let F=(()=>{class l{constructor(a){this.viewerService=a,this.selectedOrgChange=new o.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new m.xQ}get disabled(){return this.button.disabled}selectOrg(a){this.selectedOrg=a,this.selectedOrgChange.emit(a)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,e.U)(a=>a.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,g.j)("mostRecentOrg"),(0,S.b)(a=>{a&&(this.selectedOrg=a,this.selectedOrgChange.emit(a))})),this.mostRecentOrg$.pipe((0,x.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return l.\u0275fac=function(a){return new(a||l)(o.Y36(b.a))},l.\u0275cmp=o.Xpm({type:l,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(a,d,Z){if(1&a&&o.Suo(Z,O.m,5),2&a){let Q;o.iGM(Q=o.CRH())&&(d.button=Q.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:D,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(a,d){1&a&&(o.F$t(),o.YNc(0,v,1,0,"ng-template",null,0,o.W1O),o.YNc(2,J,7,3,"ng-container",1),o.ALo(3,"async")),2&a&&(o.xp6(2),o.Q6J("ngIf",o.lcZ(3,1,d.organizations$)))},directives:[C.O5,C.tP,A.fY,L.w,A.ix,p.dQ,T.wA,T.cm,y.NU,M.Dz,T.RR,u.wO,C.sg,u.r9],pipes:[C.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),l})()},8979:(U,I,r)=>{r.d(I,{N:()=>L});var o=r(9808),m=r(8776),e=r(5e3),g=r(6042),S=r(2643),x=r(2683);const b={name:"cvc-multi-field-add-btn",component:(()=>{class p extends m.fS{constructor(){super()}}return p.\u0275fac=function(y){return new(y||p)},p.\u0275cmp=e.Xpm({type:p,selectors:[["cvc-multi-field-add-btn-type"]],features:[e.qOj],decls:2,vars:2,consts:[["type","submit","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"disabled"]],template:function(y,M){1&y&&(e.TgZ(0,"button",0),e._uU(1),e.qZA()),2&y&&(e.Q6J("disabled",M.to.disabled),e.xp6(1),e.Oqu(M.to.label))},directives:[g.ix,S.dQ,x.w],styles:[""],encapsulation:2,changeDetection:0}),p})()};var C=r(9139),A=r(4546);let L=(()=>{class p{}return p.\u0275fac=function(y){return new(y||p)},p.\u0275mod=e.oAB({type:p}),p.\u0275inj=e.cJS({imports:[[o.ez,C.u,m.X0.forChild({types:[b]}),A.U5,g.sL]]}),p})()},3022:(U,I,r)=>{r.d(I,{e:()=>M});var o=r(9808),m=r(8776),e=r(5e3),g=r(9180),S=r(8227),x=r(6042),O=r(2643),b=r(1793),C=r(2683);const L={name:"org-submit-button",component:(()=>{class u extends m.fS{constructor(){super(),this._selectedOrg=void 0,this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}get selectedOrg(){return this._selectedOrg}set selectedOrg(f){this._selectedOrg=f,this.formControl.setValue(f)}}return u.\u0275fac=function(f){return new(f||u)},u.\u0275cmp=e.Xpm({type:u,selectors:[["cvc-org-submit-button-type"]],features:[e.qOj],decls:5,vars:4,consts:[[3,"selectedOrg","nzSize","selectedOrgChange"],["orgButton",""],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary",3,"disabled","click"]],template:function(f,z){if(1&f){const E=e.EpF();e.TgZ(0,"cvc-form-buttons"),e.TgZ(1,"cvc-org-selector-btn-group",0,1),e.NdJ("selectedOrgChange",function(B){return z.selectedOrg=B}),e.TgZ(3,"button",2),e.NdJ("click",function(){return e.CHM(E),e.MAs(2).refreshViewer()}),e._uU(4),e.qZA(),e.qZA(),e.qZA()}2&f&&(e.xp6(1),e.Q6J("selectedOrg",z.selectedOrg)("nzSize",z.to.submitSize),e.xp6(2),e.Q6J("disabled",!z.form.valid),e.xp6(1),e.hij(" ",z.to.submitLabel," "))},directives:[g.Z,S.q,x.ix,O.dQ,b.m,C.w],styles:[""],changeDetection:0}),u})()};var p=r(4375),T=r(1825),y=r(4182);let M=(()=>{class u{}return u.\u0275fac=function(f){return new(f||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[[o.ez,y.UX,m.X0.forChild({types:[L]}),x.sL,p.R,T.A]]}),u})()},3773:(U,I,r)=>{r.d(I,{g:()=>de});var o=r(9808),m=r(8776),e=r(5e3),g=r(4182),S=r(712),x=r(6530),O=r(444);const b={sourceType:void 0,citationId:void 0};let C=(()=>{class n{constructor(){this.sourceSelected=new e.vpe,this.model=b,this.form=new g.cw({}),this.options={},this.fields=[{key:"id"},{key:"citation",defaultValue:""},{key:"sourceType",type:"select",className:"source-type-field",defaultValue:S.yic.Pubmed,templateOptions:{required:!0,placeholder:"Select Type",options:(0,O.o6)(S.yic).map((t,c)=>({value:t,label:(0,x.c)(t)}))}},{key:"citationId",className:"citation-id-field",type:"source-selector-typeahead",templateOptions:{maxLength:10,required:!0,triggerParentSubmit:()=>{this.onSubmit()}},expressionProperties:{"templateOptions.disabled":"!model.sourceType","templateOptions.placeholder":'!model.sourceType ? "Select source type before searching" : "Search " + model.sourceType + " sources"',"templateOptions.sourceType":"model.sourceType","templateOptions.sourceTypeKey":t=>{if(t.sourceType)return(0,O.o6)(S.yic).getKeyOrThrow(t.sourceType)}}},{type:"cvc-multi-field-add-btn",className:"add-button",templateOptions:{label:"Add Source"},expressionProperties:{"templateOptions.disabled":"!model.citationId"}}]}ngOnInit(){}onSubmit(){console.log("source-select form submitted."),this.sourceSelected.emit(this.model)}ngOnDestroy(){console.log("source-selector onDestroy called.")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-source-selector"]],outputs:{sourceSelected:"sourceSelected"},decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[1,"formly-form",3,"model","fields","options","form","modelChange"]],template:function(t,c){1&t&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return c.onSubmit()}),e.TgZ(1,"formly-form",1),e.NdJ("modelChange",function(_){return c.model=_}),e.qZA(),e.qZA()),2&t&&(e.Q6J("formGroup",c.form),e.xp6(1),e.Q6J("model",c.model)("fields",c.fields)("options",c.options)("form",c.form))},directives:[g._Y,g.JL,g.sg,m.T7],styles:[":host{display:block}cvc-source-input .formly-form{width:100%}cvc-source-input .source-type-field{display:inline-block;width:10em}cvc-source-input .citation-id-field{display:inline-block;margin-left:.5em;width:calc(100% - 19em)}cvc-source-input .add-button{display:inline-block;margin-left:.5em;width:8em}\n"],encapsulation:2}),n})();var A=r(6906);function L(n,i){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"cvc-source-selector",2),e.NdJ("sourceSelected",function(s){return e.CHM(t),e.oxw().onSourceSelected(s)}),e.qZA(),e.BQk()}}function p(n,i){if(1&n&&e._UZ(0,"cvc-source-tag",3),2&n){const t=e.oxw();e.Q6J("source",t.formControl.value)}}const y={name:"source-input",component:(()=>{class n extends m.fS{constructor(){super()}onSourceSelected(t){console.log(t),this.formControl.setValue(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-source-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["sourceListItem",""],[3,"sourceSelected"],[3,"source"]],template:function(t,c){if(1&t&&(e.YNc(0,L,2,0,"ng-container",0),e.YNc(1,p,1,1,"ng-template",null,1,e.W1O)),2&t){const s=e.MAs(2);e.Q6J("ngIf",!(null!=c.formControl.value&&c.formControl.value.id))("ngIfElse",s)}},directives:[o.O5,C,A.T],styles:[""],changeDetection:0}),n})()};var M=r(9139),u=r(6042),v=r(8054),f=r(537),z=r(8144),E=r(2359),w=r(1894),B=r(4546),J=r(822),D=r(2643),F=r(2683);function l(n,i){if(1&n&&e._UZ(0,"nz-alert",6),2&n){e.oxw();const t=e.MAs(3);e.Q6J("nzMessage",t)}}function h(n,i){if(1&n&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA()),2&n){const t=e.oxw(3);e.xp6(2),e.Oqu(t.foundCitation)}}function a(n,i){1&n&&(e.ynx(0),e.YNc(1,l,1,1,"nz-alert",4),e.YNc(2,h,3,1,"ng-template",null,5,e.W1O),e.BQk())}function d(n,i){if(1&n&&e._UZ(0,"nz-alert",9),2&n){e.oxw();const t=e.MAs(3);e.Q6J("nzMessage",t)}}function Z(n,i){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 Q(n,i){1&n&&(e.ynx(0),e.YNc(1,d,1,1,"nz-alert",7),e.YNc(2,Z,4,1,"ng-template",null,8,e.W1O),e.BQk())}function P(n,i){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 Y(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(s){return e.CHM(t),e.oxw(3).onCreateSourceStub(s)}),e._uU(1," Create\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 CIViC Source "),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("nzLoading",t.isCreating),e.xp6(3),e.Oqu(t.foundCitation)}}function R(n,i){1&n&&(e.ynx(0),e.YNc(1,Y,5,2,"button",11),e.BQk())}function K(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(s){return e.CHM(t),e.oxw(3).onAcceptSource(s)}),e._uU(1," Add Source to List "),e.qZA()}}function V(n,i){1&n&&(e.ynx(0),e.YNc(1,K,2,0,"button",13),e.BQk())}function j(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,a,4,0,"ng-container",3),e.YNc(3,Q,4,0,"ng-container",3),e.YNc(4,P,2,1,"nz-form-item",3),e.YNc(5,R,2,0,"ng-container",3),e.YNc(6,V,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 W(n,i){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 G(n,i){1&n&&(e.ynx(0),e.YNc(1,W,3,1,"span",15),e.BQk())}function X(n,i){if(1&n&&e._uU(0),2&n){const t=e.oxw(4);e.AsE(" Citation not found for ",t.sourceTypeKey,": ",t.citationId,". ")}}function $(n,i){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,X,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 H(n,i){1&n&&(e.ynx(0),e.YNc(1,$,4,1,"span",18),e.BQk())}function k(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(s){return e.CHM(t),e.oxw(2).onExistenceQuery(s)}),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 q(n,i){if(1&n&&(e.TgZ(0,"nz-space",2),e.YNc(1,G,2,0,"ng-container",3),e.YNc(2,H,2,0,"ng-container",3),e.YNc(3,k,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.existenceFail)}}let ee=(()=>{class n{constructor(t,c,s){this.existenceCheckQuery=t,this.createSourceStubQuery=c,this.changeDetectorRef=s,this.modelUpdate=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceError=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(t){this._sourceType=t,this.sourceTypeKey=(0,O.o6)(S.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,f.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:c}})=>{null!==c?this.foundCitation=c:(this.showPrompt=!1,this.existenceFail=!0)},error:c=>{this.showPrompt=!1,this.existenceError=c.graphQLErrors.map(s=>s.message)},complete:()=>{this.existenceError=[]}})}onCreateSourceStub(t){t&&t.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,f.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:c})=>{var s;console.log(c);const _=null===(s=null==c?void 0:c.addRemoteCitation)||void 0===s?void 0:s.newSource;this.sourceStub=_,this.createSuccess=!0},error:c=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=c.graphQLErrors.map(s=>s.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(t){t&&t.preventDefault(),console.log("source accepted");const c=Object.assign(Object.assign({},this.model),{id:this.sourceStub.id,citation:this.foundCitation,citationId:this.citationId});this.modelUpdate.emit(c)}ngAfterContentInit(){console.log("model")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(S.fpJ),e.Y36(S.JQ3),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-source-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{modelUpdate:"modelUpdate",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(t,c){if(1&t&&(e.YNc(0,j,7,5,"ng-container",0),e.YNc(1,q,4,2,"ng-template",null,1,e.W1O)),2&t){const s=e.MAs(2);e.Q6J("ngIf",c.foundCitation)("ngIfElse",s)}},directives:[o.O5,z.NU,z.$1,E.r,w.SK,B.Nx,J.V,u.ix,D.dQ,F.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),n})();function te(n,i){if(1&n&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&n){const t=i.$implicit;e.Q6J("nzLabel",t.label)("nzValue",t.value),e.xp6(1),e.AsE(" ",t.source.citation?t.source.citation:t.source.name," (",t.source.citationId,") ")}}function ne(n,i){if(1&n&&(e.TgZ(0,"div",5),e._uU(1," Citation: "),e.TgZ(2,"span",6),e._uU(3),e.qZA(),e.qZA()),2&n){const t=e.oxw();e.xp6(3),e.hij(" ",t.model.citation," ")}}function oe(n,i){if(1&n&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij(" Enter a ",t.to.sourceTypeKey," citation ID to search CIViC sources ")}}function re(n,i){if(1&n){const t=e.EpF();e.TgZ(0,"cvc-source-loader",10),e.NdJ("modelUpdate",function(s){return e.CHM(t),e.oxw(2).onModelUpdated(s)})("sourceTypeChange",function(s){return e.CHM(t),e.oxw(2).model.sourceType=s})("citationIdChange",function(s){return e.CHM(t),e.oxw(2).to.fieldValue=s}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("model",t.model)("sourceType",t.model.sourceType)("citationId",t.to.fieldValue)}}function ce(n,i){if(1&n&&(e.ynx(0,7),e.YNc(1,oe,2,1,"div",8),e.YNc(2,re,1,3,"cvc-source-loader",9),e.BQk()),2&n){const t=e.oxw();e.Q6J("ngSwitch",t.to.fieldLength>0&&t.to.fieldLength>=t.to.minLengthSearch),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const ie={name:"source-selector-typeahead",component:(()=>{class n extends m.fS{constructor(t,c){super(),this.sourceTypeaheadQuery=t,this.changeDetectorRef=c,this.selectedValue=null,this.nzFilterOption=()=>!0,this.defaultOptions={templateOptions:{placeholder:"Search",sourceType:void 0,showArrow:!1,onSearch:()=>{},filterOption:()=>{},modelChange:()=>{},triggerParentSubmit:()=>{},minLengthSearch:1,fieldLength:0,fieldValue:"",optionList:[]}}}ngAfterViewInit(){this.to.filterOption=()=>!0,this.to.modelChange=t=>{if(this.to.optionList.length>0){const{source:c}=this.to.optionList.find(s=>s.value===+t);c?this.form.patchValue({citation:c.citation?c.citation:c.name,id:c.id}):console.error("Could not find selected citation in list?")}},this.to.onSearch=t=>{this.to.fieldValue=t,this.to.fieldLength=t.length,!(t.lengththis.to.maxLength)&&this.sourceTypeaheadQuery.fetch({sourceType:this.to.sourceType,partialCitationId:+t},{fetchPolicy:"network-only"}).subscribe(({data:{sourceTypeahead:c}})=>{this.to.optionList=c.map(s=>({value:s.citationId,label:s.citationId,source:s})),this.changeDetectorRef.detectChanges()})}}onModelUpdated(t){this.form.patchValue(t),this.changeDetectorRef.detectChanges(),this.to.triggerParentSubmit()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(S.k2T),e.Y36(e.sBO))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-source-selector-typeahead-type"]],features:[e.qOj],decls:5,vars:8,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","ngModelChange","nzOnSearch"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["class","ant-form-item-explain",4,"ngIf"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue"],[1,"ant-form-item-explain"],[1,"source-citation"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange"]],template:function(t,c){if(1&t&&(e.TgZ(0,"nz-select",0),e.NdJ("ngModelChange",function(_){return c.to.modelChange(_)})("nzOnSearch",function(_){return c.to.onSearch(_)}),e.YNc(1,te,2,4,"nz-option",1),e.qZA(),e.YNc(2,ne,4,1,"div",2),e.YNc(3,ce,3,3,"ng-template",null,3,e.W1O)),2&t){const s=e.MAs(4);e.Q6J("formControl",c.formControl)("formlyAttributes",c.field)("nzPlaceHolder",c.to.placeholder?c.to.placeholder:null)("nzNotFoundContent",s)("nzShowArrow",c.to.showArrow)("nzFilterOption",c.to.filterOption),e.xp6(1),e.Q6J("ngForOf",c.to.optionList),e.xp6(1),e.Q6J("ngIf",c.model.citation.length>0)}},directives:[v.Vq,g.JJ,g.oH,m.VQ,o.sg,v.Ip,o.O5,o.RF,o.n9,ee],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),n})(),wrappers:["form-field"]};var se=r(7008);let N=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,z.zf,E.L,B.U5,se.B,u.sL]]}),n})(),ae=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,g.UX,m.X0.forChild({types:[ie]}),v.LV,N]]}),n})();var le=r(8979);let ue=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,g.UX,m.X0,M.u,u.sL,N,ae,le.N]]}),n})();var pe=r(9779);let de=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[o.ez,m.X0.forChild({types:[y]}),ue,pe.s]]}),n})()}}]); \ No newline at end of file diff --git a/server/public/4189.00a59016128bd7b3.js b/server/public/4189.00a59016128bd7b3.js new file mode 100644 index 000000000..b25ff8975 --- /dev/null +++ b/server/public/4189.00a59016128bd7b3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4189],{3580:(Q,E,e)=>{e.d(E,{Q:()=>S});var l=e(9808),t=e(325),a=e(8481),T=e(3610),M=e(647),n=e(7484),c=e(3098),u=e(3630),g=e(6949),y=e(3618),P=e(9444),r=e(5e3);let o=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[l.ez,g.WG,n.vh,c.q6,M.PV,y.ZJ,P.s,u.X]]}),v})(),S=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=r.oAB({type:v}),v.\u0275inj=r.cJS({imports:[[l.ez,t.Bz,a.X,T.$6,M.PV,P.s,o]]}),v})()},8018:(Q,E,e)=>{e.d(E,{e:()=>v});var l=e(9808),t=e(325),a=e(8481),T=e(3610),M=e(647),n=e(7484),c=e(3098),u=e(6949),g=e(3630),y=e(3618),P=e(9444),r=e(404),o=e(5e3);let S=(()=>{class s{}return s.\u0275fac=function(O){return new(O||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[l.ez,t.Bz,u.WG,n.vh,c.q6,M.PV,y.ZJ,a.X,r.cg,g.X,P.s]]}),s})(),v=(()=>{class s{}return s.\u0275fac=function(O){return new(O||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[l.ez,t.Bz,a.X,T.$6,M.PV,P.s,S]]}),s})()},9476:(Q,E,e)=>{e.d(E,{L:()=>S});var l=e(9808),t=e(325),a=e(8481),T=e(647),M=e(1894),n=e(3630),c=e(3098),u=e(7484),g=e(6949),y=e(5473),P=e(5e3);let r=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=P.oAB({type:v}),v.\u0275inj=P.cJS({imports:[[l.ez,g.WG,u.vh,M.Jb,c.q6,n.X,y.H]]}),v})();var o=e(3610);let S=(()=>{class v{}return v.\u0275fac=function(D){return new(D||v)},v.\u0275mod=P.oAB({type:v}),v.\u0275inj=P.cJS({imports:[[l.ez,t.Bz,a.X,T.PV,o.$6,r]]}),v})()},6715:(Q,E,e)=>{e.d(E,{$:()=>a});var l=e(5e3);const t=["*"];let a=(()=>{class T{constructor(){}ngOnInit(){}}return T.\u0275fac=function(n){return new(n||T)},T.\u0275cmp=l.Xpm({type:T,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(n,c){2&n&&l.ekj("xs","xs"===c.size||!c.size)("sm","sm"===c.size)},inputs:{size:"size"},ngContentSelectors:t,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(n,c){1&n&&(l.F$t(),l.TgZ(0,"div",0),l.Hsn(1),l.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),T})()},897:(Q,E,e)=>{e.d(E,{$:()=>a});var l=e(9808),t=e(5e3);let a=(()=>{class T{}return T.\u0275fac=function(n){return new(n||T)},T.\u0275mod=t.oAB({type:T}),T.\u0275inj=t.cJS({imports:[[l.ez]]}),T})()},7946:(Q,E,e)=>{e.d(E,{x:()=>g});var l=e(9808),t=e(897),a=e(8481),T=e(3610),M=e(8018),n=e(3580),c=e(9476),u=e(5e3);let g=(()=>{class y{}return y.\u0275fac=function(r){return new(r||y)},y.\u0275mod=u.oAB({type:y}),y.\u0275inj=u.cJS({imports:[[l.ez,a.X,T.$6,t.$,M.e,n.Q,c.L]]}),y})()},8664:(Q,E,e)=>{e.d(E,{I:()=>oe});var l=e(6654),t=e(5e3),a=e(9808),T=e(325),M=e(8481),n=e(3610),c=e(4850),u=e(712),g=e(7484),y=e(647),P=e(3193),r=e(3098),o=e(6550),S=e(1894),v=e(8144),s=e(6949);function D(h,L){if(1&h&&(t._UZ(0,"i",13),t._uU(1)),2&h){const C=t.oxw().ngIf;t.xp6(1),t.hij(" ",C.name," ")}}function O(h,L){if(1&h&&t._UZ(0,"cvc-gene-tag",14),2&h){const C=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",C.gene)}}function $(h,L){if(1&h&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&h){const C=L.$implicit;t.xp6(1),t.Oqu(C)}}function Y(h,L){if(1&h&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,$,2,1,"nz-tag",16),t.qZA()),2&h){const C=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",C.variantAliases)}}function b(h,L){if(1&h&&(t.TgZ(0,"nz-descriptions-item",17),t.TgZ(1,"cvc-link-tag",18),t._uU(2),t.qZA(),t.qZA()),2&h){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 Z(h,L){if(1&h&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",20),t._UZ(2,"i",21),t._uU(3),t.qZA(),t.qZA()),2&h){const C=t.oxw().ngIf;t.MGl("routerLink","/variants/",C.id,"/flags"),t.xp6(3),t.hij(" Flags (",C.flags.totalCount,") ")}}function B(h,L){if(1&h&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",22),t._UZ(2,"i",23),t._uU(3),t.qZA(),t.qZA()),2&h){const C=t.oxw().ngIf;t.MGl("routerLink","/variants/",C.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",C.revisions.totalCount,") ")}}function V(h,L){if(1&h&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",24),t._UZ(2,"i",25),t._uU(3),t.qZA(),t.qZA()),2&h){const C=t.oxw().ngIf;t.MGl("routerLink","/variants/",C.id,"/comments"),t.xp6(3),t.hij(" Comments (",C.comments.totalCount,") ")}}function x(h,L){if(1&h&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,D,2,1,"ng-template",null,3,t.W1O),t.YNc(4,O,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,Y,2,1,"nz-descriptions-item",6),t.YNc(8,b,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,Z,4,2,"a",12),t.YNc(15,B,4,2,"a",12),t.YNc(16,V,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&h){const C=L.ngIf,G=t.MAs(3),X=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",G)("nzExtra",X),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 N=(()=>{class h{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,c.U)(({data:C})=>C.variant))}}return h.\u0275fac=function(C){return new(C||h)(t.Y36(u.ZYZ))},h.\u0275cmp=t.Xpm({type:h,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,G){1&C&&(t.TgZ(0,"div",0),t.YNc(1,x,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&C&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,G.variant$)))},directives:[a.O5,g.bd,y.Ls,P.H,r.R7,r.uj,a.sg,M.j,o.l,S.SK,S.t3,v.NU,v.$1,T.yS],pipes:[s.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),h})();function p(h,L){}function f(h,L){if(1&h&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,p,0,0,"ng-template",6),t.qZA(),t.BQk()),2&h){const C=t.oxw(),G=t.MAs(2);t.xp6(1),t.Q6J("routerLink",C.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",G)}}function A(h,L){}function _(h,L){if(1&h){const C=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(X){return t.CHM(C),t.oxw(2).itemClosed(X)}),t.YNc(1,A,0,0,"ng-template",6),t.qZA()}if(2&h){t.oxw();const C=t.MAs(2),G=t.oxw(),X=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",G.onCloseClicked?0:.5)("nzPopoverContent",C)("nzMode",G.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",X)}}function i(h,L){if(1&h&&t._UZ(0,"cvc-variant-popover",11),2&h){const C=t.oxw(3);t.Q6J("variantId",C.variant.id)}}function I(h,L){if(1&h&&t.YNc(0,i,1,1,"cvc-variant-popover",10),2&h){const C=t.oxw(2);t.Q6J("ngIf",C.enablePopover)}}function z(h,L){if(1&h&&(t.YNc(0,_,2,4,"nz-tag",7),t.YNc(1,I,1,1,"ng-template",null,8,t.W1O)),2&h){const C=t.oxw(),G=t.MAs(4);t.Q6J("ngIf",C.enablePopover)("ngIfElse",G)}}function U(h,L){}function j(h,L){if(1&h){const C=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(X){return t.CHM(C),t.oxw().itemClosed(X)}),t.YNc(1,U,0,0,"ng-template",6),t.qZA()}if(2&h){const C=t.oxw(),G=t.MAs(8);t.Q6J("nzMode",C.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",G)}}function q(h,L){}function ne(h,L){if(1&h&&t.YNc(0,q,0,0,"ng-template",6),2&h){t.oxw();const C=t.MAs(2);t.Q6J("ngTemplateOutlet",C)}}function te(h,L){if(1&h&&(t._UZ(0,"i",13),t._uU(1)),2&h){const C=t.oxw();t.xp6(1),t.hij(" ",C.variant.name,"\n")}}let oe=(()=>{class h extends l.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 h.\u0275fac=function(C){return new(C||h)},h.\u0275cmp=t.Xpm({type:h,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,G){if(1&C&&(t.YNc(0,f,3,2,"ng-container",0),t.YNc(1,z,3,2,"ng-template",null,1,t.W1O),t.YNc(3,j,2,2,"ng-template",null,2,t.W1O),t.YNc(5,ne,1,1,"ng-template",null,3,t.W1O),t.YNc(7,te,2,1,"ng-template",null,4,t.W1O)),2&C){const X=t.MAs(6);t.Q6J("ngIf",G.linked)("ngIfElse",X)}},directives:[a.O5,T.yS,a.tP,M.j,n.lU,N,y.Ls],styles:[""]}),h})()},4867:(Q,E,e)=>{e.d(E,{Q:()=>v});var l=e(9808),t=e(325),a=e(8481),T=e(647),M=e(3610),n=e(6949),c=e(7484),u=e(1894),g=e(3098),y=e(8144),P=e(3309),r=e(3630),o=e(5e3);let S=(()=>{class s{}return s.\u0275fac=function(O){return new(O||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[l.ez,t.Bz,n.WG,c.vh,u.Jb,g.q6,a.X,T.PV,y.zf,P.U,r.X]]}),s})(),v=(()=>{class s{}return s.\u0275fac=function(O){return new(O||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[l.ez,t.Bz,a.X,M.$6,T.PV,S]]}),s})()},3154:(Q,E,e)=>{e.d(E,{_:()=>t});var l=e(712);function t(a){var T;switch(a.value){case"ascend":T=l.SrV.Asc;break;case"descend":T=l.SrV.Desc;break;default:return}return{column:a.key,direction:T}}},1837:(Q,E,e)=>{e.d(E,{_:()=>a});var l=e(712),t=e(7905);class a extends t.nT{constructor(){super(t.yQ.ASSERTION),this.validStates.set(l.uBv.Predictive,{entityType:l.uBv.Predictive,clinicalSignificance:[l.Vr2.Sensitivityresponse,l.Vr2.Resistance,l.Vr2.AdverseResponse,l.Vr2.ReducedSensitivity,l.Vr2.Na],entityDirection:[l.mdl.Supports,l.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(l.uBv.Diagnostic,{entityType:l.uBv.Diagnostic,clinicalSignificance:[l.Vr2.Positive,l.Vr2.Negative],entityDirection:[l.mdl.Supports,l.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(l.uBv.Prognostic,{entityType:l.uBv.Prognostic,clinicalSignificance:[l.Vr2.BetterOutcome,l.Vr2.PoorOutcome,l.Vr2.Na],entityDirection:[l.mdl.Supports,l.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(l.uBv.Predisposing,{entityType:l.uBv.Predisposing,clinicalSignificance:[l.Vr2.Pathogenic,l.Vr2.LikelyPathogenic,l.Vr2.Benign,l.Vr2.LikelyBenign,l.Vr2.UncertainSignificance],entityDirection:[l.mdl.Supports,l.mdl.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},3759:(Q,E,e)=>{e.d(E,{D:()=>_});var l=e(9808),t=e(915);const T={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:(i,I)=>{const z=(null==I?void 0:I.form)?I.form.get("evidenceType"):null;return z&&z.value?`${(0,t.E)(z.value)} Assertions requires at least one ACMG code to be specified.`:"ACMG Code is required."}}},hooks:{onInit:i=>{var I;const z=i.templateOptions,U=null===(I=null==i?void 0:i.options)||void 0===I?void 0:I.formState,j=(null==i?void 0:i.form)?i.form.get("evidenceType"):null;!j||(z.vcSub=j.valueChanges.subscribe(q=>{U.requiresAcmgCodes(q)?(z.hidden=!1,z.required=!0):(z.hidden=!0,z.required=!1,i.model.length>0&&(i.model.splice(1),z.remove(0)))}))}}}};var M=e(8776),n=e(8390),c=e(4182),u=e(3793),g=e(8929),y=e(7625),P=e(4850),r=e(5e3),o=e(712),S=e(8054),v=e(6949),s=e(8144),D=e(8481),O=e(8926);function $(i,I){if(1&i&&(r.TgZ(0,"span"),r._UZ(1,"span",8),r.ALo(2,"highlightTypeahead"),r._uU(3),r.qZA()),2&i){const z=r.oxw().$implicit,U=r.oxw(3);r.xp6(1),r.Q6J("innerHtml",r.xi3(2,2,z.code,U.searchVal),r.oJD),r.xp6(2),r.hij(" - ",z.description," ")}}function Y(i,I){if(1&i&&(r.TgZ(0,"nz-option",6),r.TgZ(1,"nz-space"),r.YNc(2,$,4,5,"span",7),r.qZA(),r.qZA()),2&i){const z=I.$implicit;r.Q6J("nzLabel",z.code)("nzValue",z)}}function b(i,I){if(1&i&&(r.ynx(0),r.YNc(1,Y,3,2,"nz-option",5),r.BQk()),2&i){const z=I.ngrxLet;r.xp6(1),r.Q6J("ngForOf",z)}}function Z(i,I){1&i&&r._uU(0," No ACMG code found in CIViC that matches the string provided. ")}function B(i,I){if(1&i){const z=r.EpF();r.ynx(0),r.TgZ(1,"nz-select",2),r.NdJ("nzOnSearch",function(j){return r.CHM(z),r.oxw().onSearch(j)}),r.YNc(2,b,2,1,"ng-container",3),r.qZA(),r.YNc(3,Z,1,0,"ng-template",null,4,r.W1O),r.BQk()}if(2&i){const z=r.MAs(4),U=r.oxw();r.xp6(1),r.Q6J("formControl",U.formControl)("formlyAttributes",U.field)("nzPlaceHolder",U.to.placeholder?U.to.placeholder:null)("nzNotFoundContent",z)("nzShowArrow",U.to.showArrow)("nzFilterOption",U.to.filterOption),r.xp6(1),r.Q6J("ngrxLet",U.codes$)}}function V(i,I){if(1&i&&(r.TgZ(0,"nz-tag"),r._uU(1),r.qZA()),2&i){const z=r.oxw();r.xp6(1),r.Oqu(z.formControl.value.code)}}const N={name:"acmg-code-select",extends:"select",component:(()=>{class i extends M.fS{constructor(z){super(),this.acmgCodeGQL=z,this.destroy$=new g.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.acmgCodeGQL.watch({code:this.searchVal}),this.codes$=this.queryRef.valueChanges.pipe((0,y.R)(this.destroy$),(0,P.U)(({data:z})=>z.acmgCodesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(z){var U;this.searchVal=z,null===(U=this.queryRef)||void 0===U||U.refetch({code:z})}}return i.\u0275fac=function(z){return new(z||i)(r.Y36(o.$G1))},i.\u0275cmp=r.Xpm({type:i,selectors:[["cvc-acmg-code-select-type"]],features:[r.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(z,U){if(1&z&&(r.YNc(0,B,5,7,"ng-container",0),r.YNc(1,V,2,1,"ng-template",null,1,r.W1O)),2&z){const j=r.MAs(2);r.Q6J("ngIf",!(null!=U.formControl.value&&U.formControl.value.id))("ngIfElse",j)}},directives:[l.O5,S.Vq,c.JJ,c.oH,M.VQ,v.eJ,l.sg,S.Ip,s.NU,s.$1,D.j],pipes:[O.A],styles:[""]}),i})(),wrappers:["form-field"],defaultOptions:{templateOptions:{placeholder:"None specified."},modelOptions:{debounce:{default:500}}}};var p=e(9444),f=e(7338);let A=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=r.oAB({type:i}),i.\u0275inj=r.cJS({imports:[[l.ez,c.UX,v.WG,u.F,D.X,S.LV,s.zf,p.s,M.X0.forChild({types:[N]}),f.z]]}),i})(),_=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=r.oAB({type:i}),i.\u0275inj=r.cJS({imports:[[l.ez,M.X0.forChild({types:[T]}),n.N,A]]}),i})()},3314:(Q,E,e)=>{e.d(E,{p:()=>r});var l=e(9808),t=e(4182),a=e(8776),T=e(9657),M=e(712),n=e(444);const c=new T.t,u={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."},g={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,n.o6)(M.iwm).map(o=>({value:o,label:c.transform(o,"verbose")}))},hideExpression:(o,S,v)=>{var s;return(null===(s=null==v?void 0:v.templateOptions)||void 0===s?void 0:s.hidden)||!1},hooks:{onInit:o=>{var S;const v=o.templateOptions,s=null===(S=null==o?void 0:o.options)||void 0===S?void 0:S.formState,D=(null==o?void 0:o.form)?o.form.get("evidenceType"):null;!D||(v.vcSub=D.valueChanges.subscribe(O=>{s.requiresAmpLevel(O)?(v.hidden=!1,v.required=!0):(v.hidden=!0,v.required=!1,o.model[o.key]=void 0)}))}},expressionProperties:{"templateOptions.optionText":(o,S,v)=>u[o.ampLevel]}}};var y=e(9444),P=e(5e3);let r=(()=>{class o{}return o.\u0275fac=function(v){return new(v||o)},o.\u0275mod=P.oAB({type:o}),o.\u0275inj=P.cJS({imports:[[l.ez,t.UX,y.s,a.X0.forChild({types:[g]})]]}),o})()},9946:(Q,E,e)=>{e.d(E,{d:()=>N});var l=e(9808),t=e(8776),a=e(8054),T=e(4182),M=e(8144),n=e(3618),c=e(6949),u=e(7008),g=e(6042),y=e(1047),P=e(9444),r=e(7625),o=e(373),S=e(4850),v=e(8929),s=e(5e3),D=e(712),O=e(9001);function $(p,f){if(1&p&&(s.ynx(0),s.TgZ(1,"nz-option",5),s._uU(2),s.qZA(),s.BQk()),2&p){const A=f.ngIf;s.xp6(1),s.Q6J("nzLabel",A.tooltip)("nzValue",A.eid),s.xp6(1),s.hij(" ",A.label," ")}}function Y(p,f){1&p&&s._uU(0," No EID matches the provided ID ")}function b(p,f){if(1&p){const A=s.EpF();s.ynx(0),s.TgZ(1,"nz-select",2),s.NdJ("nzOnSearch",function(i){return s.CHM(A),s.oxw().to.onSearch(i)}),s.YNc(2,$,3,3,"ng-container",3),s.ALo(3,"ngrxPush"),s.qZA(),s.YNc(4,Y,1,0,"ng-template",null,4,s.W1O),s.BQk()}if(2&p){const A=s.MAs(5),_=s.oxw();s.xp6(1),s.Q6J("formControl",_.formControl)("formlyAttributes",_.field)("nzPlaceHolder",_.to.placeholder?_.to.placeholder:null)("nzNotFoundContent",A)("nzShowArrow",_.to.showArrow)("nzFilterOption",_.to.filterOption),s.xp6(1),s.Q6J("ngIf",s.lcZ(3,7,_.eid$))}}function Z(p,f){if(1&p&&s._UZ(0,"cvc-evidence-tag",6),2&p){const A=s.oxw();s.Q6J("evidence",A.formControl.value)}}const V={name:"evidence-input",component:(()=>{class p extends t.fS{constructor(A){super(),this.evidenceGQL=A,this.destroy$=new v.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,r.R)(this.destroy$),(0,o.j)("data","evidenceItem"),(0,S.U)(A=>{if(A)return{value:A.id,label:A.name,eid:A}}))}ngAfterViewInit(){this.to.onSearch=A=>{if(A.length{class p{}return p.\u0275fac=function(A){return new(A||p)},p.\u0275mod=s.oAB({type:p}),p.\u0275inj=s.cJS({imports:[[l.ez,T.u5,T.UX,c.WG,t.X0.forChild({types:[V]}),a.LV,M.zf,n.ZJ,g.sL,y.o7,x.i,u.B,P.s]]}),p})()},464:(Q,E,e)=>{e.d(E,{N:()=>n});var l=e(9808),t=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:c=>{var u;if(c){const g=c.templateOptions,y=(null==c?void 0:c.form)?c.form.get("evidenceType"):null,P=null===(u=null==c?void 0:c.options)||void 0===u?void 0:u.formState;if(!y||!g)return;g.ncSub=y.valueChanges.subscribe(r=>{var o,S;r&&P.allowsFdaApproval(r)?(g.hidden=!1,g.required=!0):(null===(S=null===(o=c.form)||void 0===o?void 0:o.get(c.key))||void 0===S||S.setValue(void 0),g.modelCallback(void 0),c.model[c.key]=void 0,g.hidden=!0,g.required=!1)})}},onDestroy:c=>{var u;if(c){const g=c.templateOptions;null===(u=null==g?void 0:g.ncSub)||void 0===u||u.unsubscribe()}}}}};var T=e(8776),M=e(5e3);let n=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275mod=M.oAB({type:c}),c.\u0275inj=M.cJS({imports:[[l.ez,t.UX,T.X0.forChild({types:[a]})]]}),c})()},7795:(Q,E,e)=>{e.d(E,{k:()=>n});var l=e(9808),t=e(4182),a=e(8776);const T={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:c=>{var u;if(c){const g=c.templateOptions,y=(null==c?void 0:c.form)?c.form.get("fdaRegulatoryApproval"):null,P=(null==c?void 0:c.form)?c.form.get("evidenceType"):null,r=null===(u=null==c?void 0:c.options)||void 0===u?void 0:u.formState;if(!y||!g||!P)return;g.etSub=P.valueChanges.subscribe(o=>{var S,v;o&&r.allowsFdaApproval(o)?(g.hidden=!1,g.required=!0):(null===(v=null===(S=c.form)||void 0===S?void 0:S.get(c.key))||void 0===v||v.setValue(void 0),g.modelCallback(void 0),c.model[c.key]=void 0,g.hidden=!0,g.required=!1)}),g.ncSub=y.valueChanges.subscribe(o=>{o?(g.hidden=!1,g.required=!0,g.modelCallback(!0),c.model[c.key]=!0):(g.modelCallback(!1),c.model[c.key]=!1,g.hidden=!0,g.required=!1)})}},onDestroy:c=>{var u,g;if(c){const y=c.templateOptions;null===(u=null==y?void 0:y.ncSub)||void 0===u||u.unsubscribe(),null===(g=null==y?void 0:y.etSub)||void 0===g||g.unsubscribe()}}}}};var M=e(5e3);let n=(()=>{class c{}return c.\u0275fac=function(g){return new(g||c)},c.\u0275mod=M.oAB({type:c}),c.\u0275inj=M.cJS({imports:[[l.ez,t.UX,a.X0.forChild({types:[T]})]]}),c})()},5486:(Q,E,e)=>{e.d(E,{$:()=>b});var l=e(9808),t=e(8776),a=e(8929),T=e(7625),M=e(4850),n=e(5e3),c=e(712),u=e(8054),g=e(4182),y=e(6949),P=e(8144),r=e(8481);function o(Z,B){if(1&Z&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&Z){const V=n.oxw().$implicit;n.xp6(1),n.hij(" ",V.name," ")}}function S(Z,B){if(1&Z&&(n.TgZ(0,"nz-option",6),n.TgZ(1,"nz-space"),n.YNc(2,o,2,1,"span",7),n.qZA(),n.qZA()),2&Z){const V=B.$implicit;n.Q6J("nzLabel",V.name)("nzValue",V)}}function v(Z,B){if(1&Z&&(n.ynx(0),n.YNc(1,S,3,2,"nz-option",5),n.BQk()),2&Z){const V=B.ngrxLet;n.xp6(1),n.Q6J("ngForOf",V)}}function s(Z,B){1&Z&&n._uU(0," No NCCN Guideline found in CIViC that matches the string provided. ")}function D(Z,B){if(1&Z){const V=n.EpF();n.ynx(0),n.TgZ(1,"nz-select",2),n.NdJ("nzOnSearch",function(N){return n.CHM(V),n.oxw().onSearch(N)}),n.YNc(2,v,2,1,"ng-container",3),n.qZA(),n.YNc(3,s,1,0,"ng-template",null,4,n.W1O),n.BQk()}if(2&Z){const V=n.MAs(4),x=n.oxw();n.xp6(1),n.Q6J("formControl",x.formControl)("formlyAttributes",x.field)("nzPlaceHolder",x.to.placeholder?x.to.placeholder:null)("nzNotFoundContent",V)("nzShowArrow",x.to.showArrow)("nzFilterOption",x.to.filterOption),n.xp6(1),n.Q6J("ngrxLet",x.guidelines$)}}function O(Z,B){if(1&Z&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&Z){const V=n.oxw();n.xp6(1),n.Oqu(V.formControl.value.name)}}const Y={name:"nccn-guideline-input",extends:"select",wrappers:["form-field"],component:(()=>{class Z extends t.fS{constructor(V){super(),this.nccnGuidelineGQL=V,this.destroy$=new a.xQ,this.searchVal=""}ngOnInit(){this.queryRef=this.nccnGuidelineGQL.watch({name:this.searchVal}),this.guidelines$=this.queryRef.valueChanges.pipe((0,T.R)(this.destroy$),(0,M.U)(({data:V})=>V.nccnGuidelinesTypeahead))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSearch(V){var x;null===(x=this.queryRef)||void 0===x||x.refetch({name:V})}}return Z.\u0275fac=function(V){return new(V||Z)(n.Y36(c.lfy))},Z.\u0275cmp=n.Xpm({type:Z,selectors:[["cvc-nccn-guideline-input-type"]],features:[n.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(V,x){if(1&V&&(n.YNc(0,D,5,7,"ng-container",0),n.YNc(1,O,2,1,"ng-template",null,1,n.W1O)),2&V){const N=n.MAs(2);n.Q6J("ngIf",!(null!=x.formControl.value&&x.formControl.value.id))("ngIfElse",N)}},directives:[l.O5,u.Vq,g.JJ,g.oH,t.VQ,y.eJ,l.sg,u.Ip,P.NU,P.$1,r.j],styles:[""]}),Z})(),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 b=(()=>{class Z{}return Z.\u0275fac=function(V){return new(V||Z)},Z.\u0275mod=n.oAB({type:Z}),Z.\u0275inj=n.cJS({imports:[[l.ez,g.UX,y.WG,u.LV,P.zf,r.X,t.X0.forChild({types:[Y]})]]}),Z})()},4902:(Q,E,e)=>{e.d(E,{a:()=>c});var l=e(9808);const t={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:(u,g,y)=>!u.nccnGuideline,hooks:{onInit:u=>{if(u){const g=u.templateOptions,y=(null==u?void 0:u.form)?u.form.get("nccnGuideline"):null;if(!y||!g)return;g.ncSub=y.valueChanges.subscribe(P=>{P?g.required=!0:(g.required=!1,u.model[u.key]=void 0)})}},onDestroy:u=>{var g;if(u){const y=u.templateOptions;null===(g=null==y?void 0:y.ncSub)||void 0===g||g.unsubscribe()}}}}};var a=e(4182),T=e(8776),M=e(5e3);function n(u){return/^\d{1,2}\.\d{4}$/.test(u.value)?{format:!0}:null}let c=(()=>{class u{}return u.\u0275fac=function(y){return new(y||u)},u.\u0275mod=M.oAB({type:u}),u.\u0275inj=M.cJS({imports:[[l.ez,a.UX,T.X0.forChild({types:[t],validators:[{name:"format",validation:n}],validationMessages:[{name:"format",message:"The NCCN Guideline version must be in the format {version number}.{year}."}]})]]}),u})()},9754:(Q,E,e)=>{e.d(E,{K:()=>x});var l=e(9808),t=e(767),a=e(9444),T=e(6949),M=e(8776),n=e(6042),c=e(7484),u=e(5482),g=e(4546),y=e(1894),P=e(647),r=e(3640),o=e(3610),S=e(8144),v=e(3618),s=e(5109),D=e(6789),O=e(5e3),$=e(2643),Y=e(2683),b=e(8965);function Z(N,p){if(1&N){const f=O.EpF();O.TgZ(0,"cvc-evidence-table",4),O.NdJ("selectedEids",function(_){return O.CHM(f),O.oxw().onEidSelectionChange(_)}),O.qZA()}if(2&N){const f=O.oxw();O.Q6J("initialPageSize",15)("initialUserFilters",f.evidenceGridFilters)("initialSelectedEids",f.alreadySelected)}}const V={wrappers:[{name:"evidence-manager",component:(()=>{class N extends M.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 f,A,_;if(null===(f=this.field.parent)||void 0===f?void 0:f.model){const i=null===(A=this.field.parent)||void 0===A?void 0:A.model;this.evidenceGridFilters.geneSymbolInput=1==(null===(_=i.gene)||void 0===_?void 0:_.length)&&i.gene[0]?i.gene[0].name:void 0,this.evidenceGridFilters.variantNameInput=1==i.variant.length&&i.variant[0]?i.variant[0].name:void 0,this.evidenceGridFilters.evidenceTypeInput=i.evidenceType?i.evidenceType:void 0,this.evidenceGridFilters.diseaseNameInput=1==i.disease.length&&i.disease[0]?i.disease[0].name:void 0}this.model&&(this.alreadySelected=this.model.filter(i=>i)),this.managerVisible=!0}handleCancel(){this.managerVisible=!1}handleOk(){this.managerVisible=!1;const f=this.managerSelectedEids;for(;this.formControl.value.lengthf.length;)this.to.remove(this.formControl.value.length-1);f.forEach((A,_)=>{this.field.formControl.controls[_].setValue(A)}),this.to.eidCallback&&this.to.eidCallback(f)}onEidSelectionChange(f){this.managerSelectedEids=f}}return N.\u0275fac=function(){let p;return function(A){return(p||(p=O.n5z(N)))(A||N)}}(),N.\u0275cmp=O.Xpm({type:N,selectors:[["cvc-with-evidence-manager-wrapper"]],features:[O.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(f,A){if(1&f&&(O.GkF(0,null,0),O.TgZ(2,"button",1),O.NdJ("click",function(){return A.handleOpen()}),O._uU(3,"Show Evidence Manager"),O.qZA(),O.TgZ(4,"nz-modal",2),O.NdJ("nzVisibleChange",function(i){return A.managerVisible=i})("nzOnCancel",function(){return A.handleCancel()})("nzOnOk",function(){return A.handleOk()}),O.qZA(),O.YNc(5,Z,1,3,"ng-template",null,3,O.W1O)),2&f){const _=O.MAs(6);O.xp6(4),O.Q6J("nzVisible",A.managerVisible)("nzContent",_)}},directives:[n.ix,$.dQ,Y.w,r.du,b.a],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),N})()}]};let x=(()=>{class N{}return N.\u0275fac=function(f){return new(f||N)},N.\u0275mod=O.oAB({type:N}),N.\u0275inj=O.cJS({imports:[[l.ez,T.WG,M.X0.forChild(V),y.Jb,c.vh,u.cD,D._,s.s,g.U5,P.PV,n.sL,S.zf,o.$6,a.s,t.Q,v.ZJ,r.Qp]]}),N})()},5878:(Q,E,e)=>{e.r(E),e.d(E,{AssertionsReviseModule:()=>qe});var l=e(9808),t=e(325),a=e(373),T=e(1059),M=e(4850),n=e(5e3),c=e(712),u=e(9350),g=e(8992),y=e(8144),P=e(3618),r=e(3193),o=e(8664),S=e(1945),v=e(647),s=e(1894),D=e(8616),O=e(6949);function $(m,F){if(1&m&&(n.TgZ(0,"span",12),n.TgZ(1,"strong"),n._uU(2),n.qZA(),n._uU(3," Parents:"),n.qZA()),2&m){const d=n.oxw(2).ngIf;n.xp6(2),n.Oqu(d.name)}}function Y(m,F){if(1&m&&(n.TgZ(0,"span",13),n.TgZ(1,"a",14),n._UZ(2,"cvc-gene-tag",15),n.qZA(),n.TgZ(3,"a",14),n._UZ(4,"cvc-variant-tag",16),n.qZA(),n.qZA()),2&m){const d=n.oxw(2).ngIf;n.xp6(1),n.MGl("routerLink","/genes/",d.gene.id,""),n.xp6(1),n.Q6J("gene",d.gene),n.xp6(1),n.MGl("routerLink","/variants/",d.variant.id,""),n.xp6(1),n.Q6J("variant",d.variant)}}function b(m,F){1&m&&(n.TgZ(0,"nz-space",9),n.YNc(1,$,4,1,"span",10),n.YNc(2,Y,5,4,"span",11),n.qZA())}function Z(m,F){1&m&&(n.TgZ(0,"div"),n._UZ(1,"router-outlet"),n.qZA())}function B(m,F){1&m&&(n.TgZ(0,"nz-row",17),n.TgZ(1,"div",18),n._UZ(2,"cvc-login-prompt"),n.qZA(),n.qZA())}function V(m,F){if(1&m&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,b,3,0,"ng-template",null,2,n.W1O),n.TgZ(4,"nz-page-header",3),n.TgZ(5,"nz-page-header-title",4),n._uU(6," REVISE "),n._UZ(7,"i",5),n._uU(8),n.qZA(),n.TgZ(9,"nz-page-header-content"),n.TgZ(10,"div",6),n.YNc(11,Z,2,0,"div",7),n.ALo(12,"ngrxPush"),n.YNc(13,B,3,0,"ng-template",null,8,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&m){const d=F.ngIf,R=n.MAs(3),W=n.MAs(14),H=n.oxw();n.xp6(1),n.Q6J("displayName",d.name)("relationsTpl",R),n.xp6(7),n.hij(" ",d.name," "),n.xp6(3),n.Q6J("ngIf",n.lcZ(12,5,H.isSignedIn$))("ngIfElse",W)}}let x=(()=>{class m{constructor(d,R,W){this.gql=d,this.route=R,this.viewerService=W,this.routeSub=this.route.params.subscribe(H=>{let J=this.gql.watch({assertionId:+H.assertionId}).valueChanges;this.loading$=J.pipe((0,a.j)("loading"),(0,T.O)(!0)),this.assertion$=J.pipe((0,a.j)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,M.U)(d=>d.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(c.A94),n.Y36(t.gz),n.Y36(u.a))},m.\u0275cmp=n.Xpm({type:m,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(d,R){1&d&&(n.YNc(0,V,15,7,"ng-container",0),n.ALo(1,"async")),2&d&&n.Q6J("ngIf",n.lcZ(1,1,R.assertion$))},directives:[l.O5,g.I,y.NU,y.$1,P.ZU,t.yS,r.H,o.I,S.$O,S.u9,v.Ls,S.u5,t.lC,s.SK,s.t3,D.u],pipes:[l.Ov,O.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}"]}),m})();var N=e(7484),p=e(6559),f=e(4182),A=e(5109),_=e(4546),i=e(2359),I=e(6042),z=e(7525),U=e(8776),j=e(1825),q=e(7008),ne=e(4375),te=e(7695),oe=e(3022),h=e(8390),L=e(3773),C=e(5452),G=e(5743),X=e(5457),ie=e(8006),ce=e(7462),re=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),ze=e(4581),ye=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),Pe=e(5472),Ee=e(9946),Ze=e(9754),Ne=e(4889);let _e=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[l.ez,t.Bz,f.UX,A.s,_.U5,i.L,s.Jb,I.sL,z.j,U.X0,j.A,q.B,ne.R,te.C,oe.e,h.N,L.g,C.C,G.W,X.$,ie.I,ce.o,re.K,de.q,pe.q,ge.C,me.o,ue.A,ve.g,he.r,fe.S,ze.e,ye.e,Ce.J,Te.i,xe.p,Ae.D,Oe.a,Me.$,Ie.N,Se.k,Pe.r,Ee.d,Ze.K,Ne.E]]}),m})(),Ve=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[l.ez,O.WG,s.Jb,N.vh,p.H0,y.zf,_e]]}),m})();var De=e(6123),Le=e(8929),Fe=e(1837),K=e(6738),ae=e(7625),Re=e(9169),Je=e(822);function Ue(m,F){1&m&&n.GkF(0)}function Be(m,F){if(1&m){const d=n.EpF();n.TgZ(0,"formly-form",6),n.NdJ("modelChange",function(W){return n.CHM(d),n.oxw(2).formModel=W}),n.qZA()}if(2&m){const d=n.oxw(2);n.Q6J("form",d.formGroup)("fields",d.formFields)("model",d.formModel)("options",d.formOptions)}}function Qe(m,F){if(1&m){const d=n.EpF();n.TgZ(0,"form",3),n.NdJ("ngSubmit",function(){n.CHM(d);const W=n.oxw();return W.reviseAssertion(W.formModel)}),n.YNc(1,Ue,1,0,"ng-container",4),n.YNc(2,Be,1,4,"formly-form",5),n.qZA()}if(2&m){const d=n.oxw(),R=n.MAs(3);n.Q6J("formGroup",d.formGroup),n.xp6(1),n.Q6J("ngTemplateOutlet",R),n.xp6(1),n.Q6J("ngIf",!d.success)}}function Ge(m,F){if(1&m&&(n.ynx(0),n.TgZ(1,"nz-form-item"),n._UZ(2,"cvc-form-errors-alert",8),n.qZA(),n.BQk()),2&m){const d=n.oxw(2);n.xp6(2),n.Q6J("errors",d.errorMessages)}}function We(m,F){1&m&&(n.TgZ(0,"p"),n._uU(1,"View it on the "),n.TgZ(2,"a",12),n._uU(3,"Revisions Page"),n.qZA(),n._uU(4,"."),n.qZA())}function Ye(m,F){if(1&m&&(n.ynx(0),n._UZ(1,"nz-alert",9),n.YNc(2,We,5,0,"ng-template",10,11,n.W1O),n.BQk()),2&m){const d=n.MAs(3);n.xp6(1),n.Q6J("nzDescription",d)}}function be(m,F){if(1&m&&(n.YNc(0,Ge,3,1,"ng-container",7),n.YNc(1,Ye,4,1,"ng-container",7)),2&m){const d=n.oxw();n.Q6J("ngIf",d.errorMessages.length>0),n.xp6(1),n.Q6J("ngIf",d.success)}}let $e=(()=>{class m{constructor(d,R,W){this.suggestAssertionRevisionGQL=d,this.networkErrorService=R,this.revisableFieldsGQL=W,this.destroy$=new Le.xQ,this.formGroup=new f.cw({}),this.formOptions={formState:new Fe._},this.success=!1,this.errorMessages=[],this.loading=!0,this.reviseAssertion=k=>{let le=this.toReviseInput(k);if(le){let se=this.suggestAssertionRevisionMutator.mutate(this.suggestAssertionRevisionGQL,{input:le});se.submitSuccess$.pipe((0,ae.R)(this.destroy$)).subscribe(ee=>{ee&&(this.success=!0)}),se.submitError$.pipe((0,ae.R)(this.destroy$)).subscribe(ee=>{ee&&(this.errorMessages=ee,this.success=!1)}),se.isSubmitting$.pipe((0,ae.R)(this.destroy$)).subscribe(ee=>{this.loading=ee})}},this.suggestAssertionRevisionMutator=new De.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(d){var R,W,H;if(d){const J=d.fields;return{id:J.id,comment:J.comment,organizationId:null===(R=J.organization)||void 0===R?void 0:R.id,fields:{description:K.xt(J.description),summary:K.xt(J.summary),variantId:J.variant[0].id,geneId:J.gene[0].id,variantOrigin:J.variantOrigin,assertionType:J.evidenceType,clinicalSignificance:J.clinicalSignificance,diseaseId:K.uP(null===(W=J.disease[0])||void 0===W?void 0:W.id),assertionDirection:J.evidenceDirection,phenotypeIds:J.phenotypes.map(w=>w.id),drugIds:J.drugs.map(w=>w.id),drugInteractionType:K.uP(J.drugInteractionType),ampLevel:K.uP(J.ampLevel),nccnGuidelineId:K.uP(null===(H=J.nccnGuideline)||void 0===H?void 0:H.id),nccnGuidelineVersion:K.xt(J.nccnGuidelineVersion),acmgCodeIds:J.acmgCodes.map(w=>w.id),fdaCompanionTest:K.uP(J.fdaCompanionTest),fdaRegulatoryApproval:K.uP(J.fdaRegulatoryApproval),evidenceItemIds:J.evidenceItems.map(w=>w.id)}}}}toFormModel(d){var R,W;return{fields:{id:d.id,description:d.description,summary:d.summary,variant:[d.variant],gene:[d.gene],variantOrigin:d.variantOrigin,evidenceType:d.assertionType,clinicalSignificance:d.clinicalSignificance,disease:[d.disease],evidenceDirection:d.assertionDirection,phenotypes:d.phenotypes,drugs:d.drugs,drugInteractionType:d.drugInteractionType,ampLevel:d.ampLevel,evidenceItems:d.evidenceItems,nccnGuideline:d.nccnGuideline,nccnGuidelineVersion:d.nccnGuidelineVersion,acmgCodes:d.acmgCodes,fdaCompanionTest:d.fdaCompanionTest,fdaRegulatoryApproval:d.regulatoryApproval,comment:null===(R=this.formModel)||void 0===R?void 0:R.fields.comment,organization:null===(W=this.formModel)||void 0===W?void 0:W.fields.organization}}}ngAfterViewInit(){this.assertionId&&this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).subscribe(({data:{assertion:d}})=>{d&&(this.formModel=this.toFormModel(d),this.loading=!1)},d=>{console.error("Error retrieving assertion."),console.error(d)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const d=this.formGroup.get("fields.comment");d&&d.markAsUntouched()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(c.c$m),n.Y36(Re.Y),n.Y36(c.bgg))},m.\u0275cmp=n.Xpm({type:m,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(d,R){1&d&&(n.TgZ(0,"nz-spin",0),n.YNc(1,Qe,3,3,"form",1),n.YNc(2,be,2,2,"ng-template",null,2,n.W1O),n.qZA()),2&d&&(n.Q6J("nzSpinning",R.loading),n.xp6(1),n.Q6J("ngIf",R.formModel))},directives:[z.W,l.O5,f._Y,f.JL,_.Lr,f.sg,l.tP,U.T7,s.SK,_.Nx,Je.V,i.r,t.yS],styles:["[_nghost-%COMP%]{display:block}"]}),m})();const je=[{path:"",component:x,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class m{constructor(d){this.route=d,this.routeParams$=this.route.params.subscribe(R=>{this.assertionId=+R.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return m.\u0275fac=function(d){return new(d||m)(n.Y36(t.gz))},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-assertions-suggest-page"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(d,R){1&d&&n._UZ(0,"cvc-assertion-revise-form",0),2&d&&n.Q6J("assertionId",R.assertionId)},directives:[$e],styles:[""]}),m})(),data:{breadcrumb:"Suggest Revision"}}]}];let Xe=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[t.Bz.forChild(je),Ve],t.Bz]}),m})();var He=e(5630),Ke=e(3309),we=e(4867),ke=e(9386);let qe=(()=>{class m{}return m.\u0275fac=function(d){return new(d||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[l.ez,Xe,S.KJ,y.zf,v.PV,P.ZJ,y.zf,Ke.U,we.Q,He.D,re.K,O.WG,s.Jb,ke.a]]}),m})()},136:(Q,E,e)=>{e.r(E),e.d(E,{AssertionsModule:()=>_});var l=e(9808),t=e(325),a=e(3618),T=e(1945),M=e(1894),n=e(6949),c=e(6462),u=e(9441),g=e(647),y=e(5630),P=e(6042),r=e(8144),o=e(5e3);let S=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[[l.ez,n.WG,t.Bz,g.PV,a.ZJ,T.KJ,M.Jb,c.m,P.sL,r.zf,u.s,y.D]]}),i})();var v=e(9350),s=e(8992),D=e(2643),O=e(2683),$=e(3756);function Y(i,I){1&i&&(o.TgZ(0,"button",17),o._UZ(1,"i",18),o._uU(2," Submit New Assertion "),o.qZA())}function b(i,I){if(1&i&&(o.ynx(0),o.YNc(1,Y,3,0,"button",16),o.BQk()),2&i){const z=I.ngrxLet;o.xp6(1),o.Q6J("ngIf",z.signedIn)}}function Z(i,I){if(1&i&&o.YNc(0,b,2,1,"ng-container",15),2&i){const z=o.oxw();o.Q6J("ngrxLet",z.viewer$)}}function B(i,I){1&i&&(o.TgZ(0,"a",19),o._UZ(1,"i",20),o._uU(2," View Assertion Model Docs "),o.qZA())}function V(i,I){1&i&&(o.TgZ(0,"a",21),o._UZ(1,"i",20),o._uU(2," View Assertion Curation Docs "),o.qZA())}const p=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(z){return new(z||i)},i.\u0275cmp=o.Xpm({type:i,selectors:[["app-assertions"]],decls:1,vars:0,template:function(z,U){1&z&&o._UZ(0,"router-outlet")},directives:[t.lC],styles:[""]}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(z){this.viewerService=z,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return i.\u0275fac=function(z){return new(z||i)(o.Y36(v.a))},i.\u0275cmp=o.Xpm({type:i,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(z,U){if(1&z&&(o._UZ(0,"cvc-section-navigation",0),o.YNc(1,Z,1,1,"ng-template",null,1,o.W1O),o.TgZ(3,"nz-page-header",2),o.TgZ(4,"nz-page-header-content"),o.TgZ(5,"nz-row",3),o.TgZ(6,"nz-col",4),o._UZ(7,"i",5),o.qZA(),o.TgZ(8,"nz-col",6),o.TgZ(9,"h2"),o._uU(10,"Assertions"),o.qZA(),o.TgZ(11,"p",7),o._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."),o.qZA(),o.qZA(),o.TgZ(13,"nz-col",8),o.TgZ(14,"nz-space",9),o.YNc(15,B,3,0,"a",10),o.YNc(16,V,3,0,"a",11),o.qZA(),o.qZA(),o.qZA(),o.TgZ(17,"nz-row"),o.TgZ(18,"nz-col",12),o.TgZ(19,"div",13),o._UZ(20,"cvc-assertions-table",14),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&z){const j=o.MAs(2);o.Q6J("actionsTpl",j),o.xp6(11),o.Q6J("nzEllipsisRows",2),o.xp6(7),o.Q6J("nzSpan",24)}},directives:[s.I,n.eJ,l.O5,P.ix,D.dQ,t.rH,O.w,g.Ls,T.$O,T.u5,M.SK,M.t3,a.ZU,r.NU,r.$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}"]}),i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(i=>i.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(6724),e.e(55),e.e(9716),e.e(5291),e.e(2043),e.e(4355),e.e(775),e.e(3438)]).then(e.bind(e,3438)).then(i=>i.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(e.bind(e,5878)).then(i=>i.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>e.e(4456).then(e.bind(e,4456)).then(i=>i.AssertionAddModule)}];let f=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[[t.Bz.forChild(p),S],t.Bz]}),i})();var A=e(5878);let _=(()=>{class i{}return i.\u0275fac=function(z){return new(z||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[[l.ez,f,A.AssertionsReviseModule]]}),i})()},6462:(Q,E,e)=>{e.d(E,{i:()=>B,m:()=>V});var l=e(655),t=e(1159),a=e(5e3),T=e(4182),M=e(8929),n=e(3753),c=e(7625),u=e(9439),g=e(1721),y=e(5664),P=e(226),r=e(2643),o=e(9808),S=e(647),v=e(969);const s=["switchElement"];function D(x,N){1&x&&a._UZ(0,"i",8)}function O(x,N){if(1&x&&(a.ynx(0),a._uU(1),a.BQk()),2&x){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzCheckedChildren)}}function $(x,N){if(1&x&&(a.ynx(0),a.YNc(1,O,2,1,"ng-container",9),a.BQk()),2&x){const p=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",p.nzCheckedChildren)}}function Y(x,N){if(1&x&&(a.ynx(0),a._uU(1),a.BQk()),2&x){const p=a.oxw(2);a.xp6(1),a.Oqu(p.nzUnCheckedChildren)}}function b(x,N){if(1&x&&a.YNc(0,Y,2,1,"ng-container",9),2&x){const p=a.oxw();a.Q6J("nzStringTemplateOutlet",p.nzUnCheckedChildren)}}let B=(()=>{class x{constructor(p,f,A,_,i,I){this.nzConfigService=p,this.host=f,this.ngZone=A,this.cdr=_,this.focusMonitor=i,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 M.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,c.R)(this.destroy$)).subscribe(p=>{this.dir=p,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,n.R)(this.host.nativeElement,"click").pipe((0,c.R)(this.destroy$)).subscribe(p=>{p.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,n.R)(this.switchElement.nativeElement,"keydown").pipe((0,c.R)(this.destroy$)).subscribe(p=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:f}=p;f!==t.oh&&f!==t.SV&&f!==t.L_&&f!==t.K5||(p.preventDefault(),this.ngZone.run(()=>{f===t.oh?this.updateValue(!1):f===t.SV?this.updateValue(!0):(f===t.L_||f===t.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,c.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 x.\u0275fac=function(p){return new(p||x)(a.Y36(u.jY),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(y.tE),a.Y36(P.Is,8))},x.\u0275cmp=a.Xpm({type:x,selectors:[["nz-switch"]],viewQuery:function(p,f){if(1&p&&a.Gf(s,7),2&p){let A;a.iGM(A=a.CRH())&&(f.switchElement=A.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[a._Bn([{provide:T.JU,useExisting:(0,a.Gpc)(()=>x),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,f){if(1&p&&(a.TgZ(0,"button",0,1),a.TgZ(2,"span",2),a.YNc(3,D,1,0,"i",3),a.qZA(),a.TgZ(4,"span",4),a.YNc(5,$,2,1,"ng-container",5),a.YNc(6,b,1,1,"ng-template",null,6,a.W1O),a.qZA(),a._UZ(8,"div",7),a.qZA()),2&p){const A=a.MAs(7);a.ekj("ant-switch-checked",f.isChecked)("ant-switch-loading",f.nzLoading)("ant-switch-disabled",f.nzDisabled)("ant-switch-small","small"===f.nzSize)("ant-switch-rtl","rtl"===f.dir),a.Q6J("disabled",f.nzDisabled)("nzWaveExtraNode",!0),a.xp6(3),a.Q6J("ngIf",f.nzLoading),a.xp6(2),a.Q6J("ngIf",f.isChecked)("ngIfElse",A)}},directives:[r.dQ,o.O5,S.Ls,v.f],encapsulation:2,changeDetection:0}),(0,l.gn)([(0,g.yF)()],x.prototype,"nzLoading",void 0),(0,l.gn)([(0,g.yF)()],x.prototype,"nzDisabled",void 0),(0,l.gn)([(0,g.yF)()],x.prototype,"nzControl",void 0),(0,l.gn)([(0,u.oS)()],x.prototype,"nzSize",void 0),x})(),V=(()=>{class x{}return x.\u0275fac=function(p){return new(p||x)},x.\u0275mod=a.oAB({type:x}),x.\u0275inj=a.cJS({imports:[[P.vT,o.ez,r.vG,S.PV,v.T]]}),x})()}}]); \ No newline at end of file diff --git a/server/public/4233.113cf0343a1183bf.js b/server/public/4233.113cf0343a1183bf.js new file mode 100644 index 000000000..c83d5378c --- /dev/null +++ b/server/public/4233.113cf0343a1183bf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4233],{3580:(V,m,t)=>{t.d(m,{Q:()=>y});var l=t(9808),n=t(325),o=t(8481),c=t(3610),p=t(647),v=t(7484),z=t(3098),M=t(3630),O=t(6949),u=t(3618),h=t(9444),x=t(5e3);let C=(()=>{class s{}return s.\u0275fac=function(T){return new(T||s)},s.\u0275mod=x.oAB({type:s}),s.\u0275inj=x.cJS({imports:[[l.ez,O.WG,v.vh,z.q6,p.PV,u.ZJ,h.s,M.X]]}),s})(),y=(()=>{class s{}return s.\u0275fac=function(T){return new(T||s)},s.\u0275mod=x.oAB({type:s}),s.\u0275inj=x.cJS({imports:[[l.ez,n.Bz,o.X,c.$6,p.PV,h.s,C]]}),s})()},8018:(V,m,t)=>{t.d(m,{e:()=>s});var l=t(9808),n=t(325),o=t(8481),c=t(3610),p=t(647),v=t(7484),z=t(3098),M=t(6949),O=t(3630),u=t(3618),h=t(9444),x=t(404),C=t(5e3);let y=(()=>{class i{}return i.\u0275fac=function(Z){return new(Z||i)},i.\u0275mod=C.oAB({type:i}),i.\u0275inj=C.cJS({imports:[[l.ez,n.Bz,M.WG,v.vh,z.q6,p.PV,u.ZJ,o.X,x.cg,O.X,h.s]]}),i})(),s=(()=>{class i{}return i.\u0275fac=function(Z){return new(Z||i)},i.\u0275mod=C.oAB({type:i}),i.\u0275inj=C.cJS({imports:[[l.ez,n.Bz,o.X,c.$6,p.PV,h.s,y]]}),i})()},9476:(V,m,t)=>{t.d(m,{L:()=>y});var l=t(9808),n=t(325),o=t(8481),c=t(647),p=t(1894),v=t(3630),z=t(3098),M=t(7484),O=t(6949),u=t(5473),h=t(5e3);let x=(()=>{class s{}return s.\u0275fac=function(T){return new(T||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[[l.ez,O.WG,M.vh,p.Jb,z.q6,v.X,u.H]]}),s})();var C=t(3610);let y=(()=>{class s{}return s.\u0275fac=function(T){return new(T||s)},s.\u0275mod=h.oAB({type:s}),s.\u0275inj=h.cJS({imports:[[l.ez,n.Bz,o.X,c.PV,C.$6,x]]}),s})()},6715:(V,m,t)=>{t.d(m,{$:()=>o});var l=t(5e3);const n=["*"];let o=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(v){return new(v||c)},c.\u0275cmp=l.Xpm({type:c,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(v,z){2&v&&l.ekj("xs","xs"===z.size||!z.size)("sm","sm"===z.size)},inputs:{size:"size"},ngContentSelectors:n,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(v,z){1&v&&(l.F$t(),l.TgZ(0,"div",0),l.Hsn(1),l.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),c})()},897:(V,m,t)=>{t.d(m,{$:()=>o});var l=t(9808),n=t(5e3);let o=(()=>{class c{}return c.\u0275fac=function(v){return new(v||c)},c.\u0275mod=n.oAB({type:c}),c.\u0275inj=n.cJS({imports:[[l.ez]]}),c})()},7946:(V,m,t)=>{t.d(m,{x:()=>O});var l=t(9808),n=t(897),o=t(8481),c=t(3610),p=t(8018),v=t(3580),z=t(9476),M=t(5e3);let O=(()=>{class u{}return u.\u0275fac=function(x){return new(x||u)},u.\u0275mod=M.oAB({type:u}),u.\u0275inj=M.cJS({imports:[[l.ez,o.X,c.$6,n.$,p.e,v.Q,z.L]]}),u})()},8664:(V,m,t)=>{t.d(m,{I:()=>$});var l=t(6654),n=t(5e3),o=t(9808),c=t(325),p=t(8481),v=t(3610),z=t(4850),M=t(712),O=t(7484),u=t(647),h=t(3193),x=t(3098),C=t(6550),y=t(1894),s=t(8144),i=t(6949);function T(a,g){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const e=n.oxw().ngIf;n.xp6(1),n.hij(" ",e.name," ")}}function Z(a,g){if(1&a&&n._UZ(0,"cvc-gene-tag",14),2&a){const e=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",e.gene)}}function _(a,g){if(1&a&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&a){const e=g.$implicit;n.xp6(1),n.Oqu(e)}}function I(a,g){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,_,2,1,"nz-tag",16),n.qZA()),2&a){const e=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",e.variantAliases)}}function E(a,g){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 e=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",e.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",e.alleleRegistryId," ")}}function D(a,g){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 e=n.oxw().ngIf;n.MGl("routerLink","/variants/",e.id,"/flags"),n.xp6(3),n.hij(" Flags (",e.flags.totalCount,") ")}}function U(a,g){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 e=n.oxw().ngIf;n.MGl("routerLink","/variants/",e.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",e.revisions.totalCount,") ")}}function B(a,g){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 e=n.oxw().ngIf;n.MGl("routerLink","/variants/",e.id,"/comments"),n.xp6(3),n.hij(" Comments (",e.comments.totalCount,") ")}}function J(a,g){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,T,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,D,4,2,"a",12),n.YNc(15,U,4,2,"a",12),n.YNc(16,B,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const e=g.ngIf,P=n.MAs(3),A=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",P)("nzExtra",A),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",e.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",e.alleleRegistryId),n.xp6(2),n.hij(" ",e.evidenceItems.totalCount," ")}}let S=(()=>{class a{constructor(e){this.gql=e}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:e})=>e.variant))}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(M.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(e,P){1&e&&(n.TgZ(0,"div",0),n.YNc(1,J,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,P.variant$)))},directives:[o.O5,O.bd,u.Ls,h.H,x.R7,x.uj,o.sg,p.j,C.l,y.SK,y.t3,s.NU,s.$1,c.yS],pipes:[i.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 L(a,g){}function N(a,g){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,L,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const e=n.oxw(),P=n.MAs(2);n.xp6(1),n.Q6J("routerLink",e.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",P)}}function Q(a,g){}function H(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(A){return n.CHM(e),n.oxw(2).itemClosed(A)}),n.YNc(1,Q,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const e=n.MAs(2),P=n.oxw(),A=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",e)("nzMode",P.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",A)}}function Y(a,g){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const e=n.oxw(3);n.Q6J("variantId",e.variant.id)}}function F(a,g){if(1&a&&n.YNc(0,Y,1,1,"cvc-variant-popover",10),2&a){const e=n.oxw(2);n.Q6J("ngIf",e.enablePopover)}}function R(a,g){if(1&a&&(n.YNc(0,H,2,4,"nz-tag",7),n.YNc(1,F,1,1,"ng-template",null,8,n.W1O)),2&a){const e=n.oxw(),P=n.MAs(4);n.Q6J("ngIf",e.enablePopover)("ngIfElse",P)}}function r(a,g){}function f(a,g){if(1&a){const e=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(A){return n.CHM(e),n.oxw().itemClosed(A)}),n.YNc(1,r,0,0,"ng-template",6),n.qZA()}if(2&a){const e=n.oxw(),P=n.MAs(8);n.Q6J("nzMode",e.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",P)}}function d(a,g){}function W(a,g){if(1&a&&n.YNc(0,d,0,0,"ng-template",6),2&a){n.oxw();const e=n.MAs(2);n.Q6J("ngTemplateOutlet",e)}}function j(a,g){if(1&a&&(n._UZ(0,"i",13),n._uU(1)),2&a){const e=n.oxw();n.xp6(1),n.hij(" ",e.variant.name,"\n")}}let $=(()=>{class a extends l.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(e){return new(e||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(e,P){if(1&e&&(n.YNc(0,N,3,2,"ng-container",0),n.YNc(1,R,3,2,"ng-template",null,1,n.W1O),n.YNc(3,f,2,2,"ng-template",null,2,n.W1O),n.YNc(5,W,1,1,"ng-template",null,3,n.W1O),n.YNc(7,j,2,1,"ng-template",null,4,n.W1O)),2&e){const A=n.MAs(6);n.Q6J("ngIf",P.linked)("ngIfElse",A)}},directives:[o.O5,c.yS,o.tP,p.j,v.lU,S,u.Ls],styles:[""]}),a})()},4867:(V,m,t)=>{t.d(m,{Q:()=>s});var l=t(9808),n=t(325),o=t(8481),c=t(647),p=t(3610),v=t(6949),z=t(7484),M=t(1894),O=t(3098),u=t(8144),h=t(3309),x=t(3630),C=t(5e3);let y=(()=>{class i{}return i.\u0275fac=function(Z){return new(Z||i)},i.\u0275mod=C.oAB({type:i}),i.\u0275inj=C.cJS({imports:[[l.ez,n.Bz,v.WG,z.vh,M.Jb,O.q6,o.X,c.PV,u.zf,h.U,x.X]]}),i})(),s=(()=>{class i{}return i.\u0275fac=function(Z){return new(Z||i)},i.\u0275mod=C.oAB({type:i}),i.\u0275inj=C.cJS({imports:[[l.ez,n.Bz,o.X,p.$6,c.PV,y]]}),i})()},3154:(V,m,t)=>{t.d(m,{_:()=>n});var l=t(712);function n(o){var c;switch(o.value){case"ascend":c=l.SrV.Asc;break;case"descend":c=l.SrV.Desc;break;default:return}return{column:o.key,direction:c}}},9221:(V,m,t)=>{t.r(m),t.d(m,{VariantsModule:()=>R});var l=t(9808),n=t(325),o=t(5e3);let c=(()=>{class r{constructor(){}}return r.\u0275fac=function(d){return new(d||r)},r.\u0275cmp=o.Xpm({type:r,selectors:[["app-variants"]],decls:1,vars:0,template:function(d,W){1&d&&o._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),r})();var p=t(5630),v=t(1945),z=t(1894),M=t(647),O=t(3855),u=t(3309),h=t(3618),x=t(6042),C=t(8144),y=t(6949),s=t(3610),i=t(7058);let T=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=o.oAB({type:r}),r.\u0275inj=o.cJS({imports:[[l.ez,n.Bz,y.WG,v.KJ,z.Jb,M.PV,h.ZJ,x.sL,C.zf,s.$6,p.D,u.U,O.H,p.D,i.e]]}),r})();var Z=t(9350),_=t(8992),I=t(2643),E=t(2683),D=t(3434),U=t(6410);function B(r,f){1&r&&(o.TgZ(0,"div",20),o._UZ(1,"cvc-variant-submit-form"),o.qZA())}function J(r,f){if(1&r&&(o.TgZ(0,"button",17),o._UZ(1,"i",18),o._uU(2," Submit New Variant "),o.YNc(3,B,2,0,"ng-template",null,19,o.W1O),o.qZA()),2&r){const d=o.MAs(4);o.Q6J("nzPopoverContent",d)}}function S(r,f){if(1&r&&(o.ynx(0),o.YNc(1,J,5,1,"button",16),o.BQk()),2&r){const d=f.ngrxLet;o.xp6(1),o.Q6J("ngIf",d.isEditor)}}function L(r,f){if(1&r&&o.YNc(0,S,2,1,"ng-container",15),2&r){const d=o.oxw();o.Q6J("ngrxLet",d.viewer$)}}function N(r,f){1&r&&(o.TgZ(0,"a",21),o._UZ(1,"i",22),o._uU(2," View Variant Model Docs "),o.qZA())}function Q(r,f){1&r&&(o.TgZ(0,"a",23),o._UZ(1,"i",22),o._uU(2," View Variant Curation Docs "),o.qZA())}const Y=[{path:"",component:c,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class r{constructor(d){this.viewerService=d,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return r.\u0275fac=function(d){return new(d||r)(o.Y36(Z.a))},r.\u0275cmp=o.Xpm({type:r,selectors:[["variants-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["variantActions",""],[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"],[4,"ngrxLet"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent",4,"ngIf"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent"],["nz-icon","","nzType","plus-circle"],["addVariantForm",""],[1,"addVariant"],["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(d,W){if(1&d&&(o._UZ(0,"cvc-section-navigation",0),o.YNc(1,L,1,1,"ng-template",null,1,o.W1O),o.TgZ(3,"nz-page-header",2),o.TgZ(4,"nz-page-header-content"),o.TgZ(5,"nz-row",3),o.TgZ(6,"nz-col",4),o._UZ(7,"i",5),o.qZA(),o.TgZ(8,"nz-col",6),o.TgZ(9,"h2"),o._uU(10,"Variants"),o.qZA(),o.TgZ(11,"p",7),o._uU(12,'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.'),o.qZA(),o.qZA(),o.TgZ(13,"nz-col",8),o.TgZ(14,"nz-space",9),o.YNc(15,N,3,0,"a",10),o.YNc(16,Q,3,0,"a",11),o.qZA(),o.qZA(),o.qZA(),o.TgZ(17,"nz-row"),o.TgZ(18,"nz-col",12),o.TgZ(19,"div",13),o._UZ(20,"cvc-variants-table",14),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&d){const j=o.MAs(2);o.Q6J("actionsTpl",j),o.xp6(11),o.Q6J("nzEllipsisRows",2),o.xp6(7),o.Q6J("nzSpan",24)}},directives:[_.I,y.eJ,l.O5,x.ix,I.dQ,n.rH,E.w,s.lU,M.Ls,D.G,v.$O,v.u5,z.SK,z.t3,h.ZU,C.NU,C.$1,U.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}.addVariant[_ngcontent-%COMP%]{width:500px}"]}),r})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(6256),t.e(9001),t.e(2826),t.e(305),t.e(6724),t.e(55),t.e(9716),t.e(3883),t.e(5291),t.e(2043),t.e(4355),t.e(4028),t.e(9286)]).then(t.bind(t,1485)).then(r=>r.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(6256),t.e(4184),t.e(8533),t.e(7012)]).then(t.bind(t,7012)).then(r=>r.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let F=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=o.oAB({type:r}),r.\u0275inj=o.cJS({imports:[[n.Bz.forChild(Y),T],n.Bz]}),r})(),R=(()=>{class r{}return r.\u0275fac=function(d){return new(d||r)},r.\u0275mod=o.oAB({type:r}),r.\u0275inj=o.cJS({imports:[[l.ez,F]]}),r})()}}]); \ No newline at end of file diff --git a/server/public/4276.bc012717d8d8d96c.js b/server/public/4276.bc012717d8d8d96c.js deleted file mode 100644 index 03e591197..000000000 --- a/server/public/4276.bc012717d8d8d96c.js +++ /dev/null @@ -1 +0,0 @@ -"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/4355.dc3b99721f40c486.js b/server/public/4355.dc3b99721f40c486.js new file mode 100644 index 000000000..4bffb6001 --- /dev/null +++ b/server/public/4355.dc3b99721f40c486.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4355],{7036:(G,Q,i)=>{i.d(Q,{L:()=>gt});var r=i(712),a=i(373),T=i(4850),t=i(5e3),n=i(9808),m=i(1894),h=i(8144),O=i(8929),x=i(7625),L=i(9350),S=i(2359),U=i(7484),y=i(7948),N=i(5737),P=i(6123),w=i(9169),D=i(6949),u=i(404),F=i(6042),z=i(2643),M=i(2683),J=i(3610),$=i(647),K=i(4182),V=i(4546),C=i(9383),b=i(7525),A=i(9180),B=i(8227),H=i(1793);function f(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",4),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function I(c,p){}function Z(c,p){1&c&&t.YNc(0,I,0,0,"ng-template")}function W(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Z,1,0,void 0,9),t.BQk()),2&c){t.oxw(2);const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function k(c,p){if(1&c&&(t.ynx(0),t.YNc(1,W,2,1,"ng-container",5),t.BQk()),2&c){const s=t.oxw().ngrxLet,g=t.MAs(5),v=t.oxw();t.xp6(1),t.Q6J("ngIf",s.isEditor||s.isAdmin||v.flag.flaggingUser.id===s.id)("ngIfElse",g)}}function en(c,p){}function sn(c,p){1&c&&t.YNc(0,en,0,0,"ng-template")}function cn(c,p){if(1&c&&(t.TgZ(0,"span",10),t.YNc(1,sn,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function on(c,p){}function ln(c,p){1&c&&t.YNc(0,on,0,0,"ng-template")}function j(c,p){if(1&c&&(t.TgZ(0,"span",11),t.YNc(1,ln,1,0,void 0,9),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function nn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",13),t.NdJ("nzPopoverVisibleChange",function(v){return t.CHM(s),t.oxw(3).flagResolvePopoverVisible=v})("click",function(){t.CHM(s);const v=t.oxw(3);return v.flagResolvePopoverVisible=!v.flagResolvePopoverVisible}),t._uU(1," Resolve Flag "),t._UZ(2,"i",14),t.qZA()}if(2&c){const s=t.oxw(2).ngrxLet,g=t.oxw(),v=t.MAs(3),Y=t.MAs(5);t.Q6J("nzPopoverTitle",v)("nzPopoverVisible",g.flagResolvePopoverVisible)("nzPopoverContent",Y)("nzPopoverTrigger",void 0)("disabled",!s.signedIn||s.isCurator&&g.flag.flaggingUser.id!=s.id)}}function tn(c,p){if(1&c&&t.YNc(0,nn,3,5,"button",12),2&c){const s=t.oxw(2);t.Q6J("ngIf",!s.success)}}function E(c,p){if(1&c&&(t.ynx(0),t.YNc(1,k,2,2,"ng-container",5),t.YNc(2,cn,2,1,"ng-template",null,6,t.W1O),t.YNc(4,j,2,1,"ng-template",null,7,t.W1O),t.YNc(6,tn,1,1,"ng-template",null,8,t.W1O),t.BQk()),2&c){const s=p.ngrxLet,g=t.MAs(3);t.xp6(1),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}const q=function(){return{float:"right"}};function X(c,p){if(1&c){const s=t.EpF();t._uU(0," Resolve Flag "),t.TgZ(1,"span",15),t.TgZ(2,"i",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw();return v.flagResolvePopoverVisible=!1,v.errorMessages=[]}),t.qZA(),t.qZA()}2&c&&(t.xp6(1),t.Q6J("ngStyle",t.DdM(1,q)))}function fn(c,p){if(1&c&&t._UZ(0,"nz-alert",25),2&c){t.oxw();const s=t.MAs(2);t.Q6J("nzDescription",s)}}function un(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function zn(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,un,2,1,"li",26),t.qZA()),2&c){const s=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Cn(c,p){if(1&c){const s=t.EpF();t.YNc(0,fn,1,1,"nz-alert",17),t.YNc(1,zn,2,1,"ng-template",null,18,t.W1O),t.TgZ(3,"nz-card",19),t.TgZ(4,"form",20),t.NdJ("ngSubmit",function(){return t.CHM(s),t.oxw().resolveFlag()}),t.TgZ(5,"cvc-comment-input-form",21),t.NdJ("commentChange",function(v){return t.CHM(s),t.oxw().comment=v}),t.qZA(),t.TgZ(6,"nz-spin",22),t.TgZ(7,"nz-form-item"),t.TgZ(8,"nz-form-control"),t.TgZ(9,"cvc-form-buttons"),t.TgZ(10,"cvc-org-selector-btn-group",23),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.TgZ(11,"button",24),t._uU(12," Resolve "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&c){const s=t.oxw();t.Q6J("ngIf",s.errorMessages.length>0),t.xp6(5),t.Q6J("comment",s.comment),t.xp6(1),t.Q6J("nzSpinning",s.loading),t.xp6(5),t.Q6J("disabled",!(void 0!==s.comment&&s.comment.length>=10))}}let Tn=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.destroy$=new O.xQ,this.resolveFlagMutator=new P.U(v)}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg})}onOrgSelected(s){this.selectedOrg=s}resolveFlag(){var s;if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id}});g.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.success=!1,this.errorMessages=v)}),g.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{this.loading=v})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(r.EwB),t.Y36(L.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["noPermissions",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to resolve flag."],["nz-tooltip","","nzTooltipTitle","If you are not an editor, you can only resolve flags you opened."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click",4,"ngIf"],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[3,"selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(s,g){1&s&&(t.YNc(0,f,1,0,"nz-alert",0),t.YNc(1,E,8,2,"ng-container",1),t.YNc(2,X,3,2,"ng-template",null,2,t.W1O),t.YNc(4,Cn,13,4,"ng-template",null,3,t.W1O)),2&s&&(t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngrxLet",g.viewer$))},directives:[n.O5,S.r,D.eJ,n.tP,u.SY,F.ix,z.dQ,M.w,J.lU,$.Ls,n.PC,n.sg,U.bd,K._Y,K.JL,K.F,V.Lr,C.b,b.W,m.SK,V.Nx,m.t3,V.Fd,A.Z,B.q,H.m],styles:[""]}),c})();var xn=i(3618),hn=i(125),yn=i(4590),An=i(685),Zn=i(8625);function On(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",5),t.NdJ("nzOnClose",function(){const Y=t.CHM(s).$implicit;return t.oxw().onErrorBannerClose(Y)}),t.qZA()}2&c&&t.Q6J("nzMessage",p.$implicit)}function Rn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",6),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}if(2&c){const s=t.oxw();t.MGl("nzMessage","Revision(s) successfully ",s.success,".")}}function Fn(c,p){if(1&c&&t._UZ(0,"cvc-comment-body",15),2&c){const s=t.oxw(2).$implicit;t.Q6J("commentBodySegments",s.openComment.parsedComment)}}function Ln(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-flag-resolve-form",16),t.BQk()),2&c){const s=t.oxw(2).$implicit,g=t.oxw(2);t.xp6(1),t.Q6J("flag",s)("flagResolvedCallback",g.flagResolvedCallback)}}function Mn(c,p){if(1&c&&(t.ynx(0),t._UZ(1,"cvc-comment-body",15),t.BQk()),2&c){const s=t.oxw(3).$implicit;t.xp6(1),t.Q6J("commentBodySegments",s.resolutionComment.parsedComment)}}function rn(c,p){if(1&c&&t._UZ(0,"cvc-user-tag",21),2&c){const s=t.oxw(3).$implicit;t.Q6J("user",s.resolvingUser)}}function gn(c,p){if(1&c&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",17),t.YNc(2,Mn,2,1,"ng-container",18),t.qZA(),t.TgZ(3,"nz-col",19),t._uU(4," Resolved By "),t.YNc(5,rn,1,1,"cvc-user-tag",20),t._uU(6),t.ALo(7,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(2).$implicit;t.xp6(2),t.Q6J("ngIf",s.resolutionComment),t.xp6(3),t.Q6J("ngIf",void 0!==s.resolvingUser),t.xp6(1),t.hij(" ",t.lcZ(7,3,s.resolvedAt)," ")}}function bn(c,p){if(1&c&&(t._UZ(0,"i",22),t._uU(1)),2&c){const s=t.oxw(2).$implicit;t.xp6(1),t.hij(" FID",s.id," ")}}function En(c,p){if(1&c&&(t.TgZ(0,"span"),t.TgZ(1,"span",26),t._uU(2,"Flagged By"),t.qZA(),t._UZ(3,"cvc-user-tag",21),t.TgZ(4,"span",26),t._uU(5),t.ALo(6,"timeago"),t.qZA(),t.qZA()),2&c){const s=t.oxw(3).$implicit;t.xp6(3),t.Q6J("user",s.flaggingUser),t.xp6(2),t.Oqu(t.lcZ(6,2,s.createdAt))}}function pn(c,p){if(1&c&&t._UZ(0,"cvc-status-tag",27),2&c){const s=t.oxw(3).$implicit;t.Q6J("status",s.state)}}function Sn(c,p){1&c&&(t.TgZ(0,"nz-space",23),t.YNc(1,En,7,4,"span",24),t.YNc(2,pn,1,1,"cvc-status-tag",25),t.qZA())}function Qn(c,p){if(1&c&&(t.TgZ(0,"nz-card",10),t.YNc(1,Fn,1,1,"cvc-comment-body",11),t._UZ(2,"nz-divider"),t.YNc(3,Ln,2,2,"ng-container",3),t.YNc(4,gn,8,5,"ng-template",null,12,t.W1O),t.YNc(6,bn,2,1,"ng-template",null,13,t.W1O),t.YNc(8,Sn,3,0,"ng-template",null,14,t.W1O),t.qZA()),2&c){const s=t.MAs(5),g=t.MAs(7),v=t.MAs(9),Y=t.oxw().$implicit;t.Q6J("nzTitle",g)("nzExtra",v),t.xp6(1),t.Q6J("ngIf",Y.openComment),t.xp6(2),t.Q6J("ngIf","OPEN"==Y.state)("ngIfElse",s)}}function mn(c,p){1&c&&(t.ynx(0),t.YNc(1,Qn,10,5,"nz-card",9),t.BQk())}function dn(c,p){if(1&c&&(t.ynx(0),t.TgZ(1,"nz-space",7),t.YNc(2,mn,2,0,"ng-container",8),t.qZA(),t.BQk()),2&c){const s=t.oxw();t.xp6(2),t.Q6J("ngForOf",s.flags)}}function In(c,p){1&c&&t._UZ(0,"nz-empty",28)}let Nn=(()=>{class c{constructor(s){this.viewerService=s,this.isLoading=!1,this.success=!1,this.destroy$=new O.xQ}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.mostRecentOrg=s.mostRecentOrg})}setupMutationResultHandlers(s,g){s.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v&&(this.isLoading=!1,this.errors=void 0,this.success=g)}),s.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(v=>{v.length>0&&(this.isLoading=!1,this.success=!1,this.errors=v)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(s){var g;this.errors=null===(g=this.errors)||void 0===g?void 0:g.filter(v=>v!=s)}onSuccessBannerClose(){this.success=!1}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(L.a))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzTitle","Flags",1,"card-list"],[4,"ngIf","ngIfElse"],["noFlags",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],[3,"commentBodySegments"],[3,"flag","flagResolvedCallback"],["nzSpan","16"],[4,"ngIf"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"user"],["nz-icon","","nzType","civic:flag"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(s,g){if(1&s&&(t.YNc(0,On,1,1,"nz-alert",0),t.YNc(1,Rn,1,1,"nz-alert",1),t.TgZ(2,"nz-card",2),t.YNc(3,dn,3,1,"ng-container",3),t.YNc(4,In,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&s){const v=t.MAs(5);t.Q6J("ngForOf",g.errors),t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(2),t.Q6J("ngIf",g.flags&&g.flags.length>0)("ngIfElse",v)}},directives:[n.sg,S.r,n.O5,U.bd,h.NU,h.$1,y.m,N.g,Tn,m.SK,m.t3,xn.ZU,hn.I,$.Ls,M.w,yn.h,An.p9],pipes:[Zn.wr],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})();var Pn=i(1243);function vn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"nz-alert",8),t.NdJ("nzOnClose",function(){return t.CHM(s),t.oxw().onSuccessBannerClose()}),t.qZA()}}function Jn(c,p){if(1&c&&t._UZ(0,"nz-alert",9),2&c){t.oxw();const s=t.MAs(4);t.Q6J("nzDescription",s)}}function Yn(c,p){if(1&c&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.hij(" ",s," ")}}function Un(c,p){if(1&c&&(t.TgZ(0,"ul"),t.YNc(1,Yn,2,1,"li",10),t.qZA()),2&c){const s=t.oxw();t.xp6(1),t.Q6J("ngForOf",s.errorMessages)}}function Dn(c,p){}function $n(c,p){1&c&&t.YNc(0,Dn,0,0,"ng-template")}function Bn(c,p){if(1&c&&(t.ynx(0),t.YNc(1,$n,1,0,void 0,15),t.BQk()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function an(c,p){}function wn(c,p){1&c&&t.YNc(0,an,0,0,"ng-template")}function Wn(c,p){if(1&c&&(t.TgZ(0,"span",16),t.YNc(1,wn,1,0,void 0,15),t.qZA()),2&c){t.oxw();const s=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function jn(c,p){if(1&c&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"enumToTitle"),t.qZA()),2&c){const s=t.oxw().ngrxLet,g=t.oxw();t.Q6J("disabled",!(void 0!==g.comment&&g.comment.length>=10&&s.signedIn)),t.xp6(1),t.hij(" Flag ",t.lcZ(2,2,g.flaggable.entityType)," ")}}function Vn(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"cvc-form-buttons"),t.TgZ(2,"cvc-org-selector-btn-group",11),t.NdJ("selectedOrgChange",function(v){return t.CHM(s),t.oxw().onOrgSelected(v)}),t.YNc(3,Bn,2,1,"ng-container",12),t.YNc(4,Wn,2,1,"ng-template",null,13,t.W1O),t.YNc(6,jn,3,4,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=p.ngrxLet,g=t.MAs(5);t.xp6(3),t.Q6J("ngIf",s.signedIn)("ngIfElse",g)}}let Kn=(()=>{class c{constructor(s,g,v){this.gql=s,this.viewerService=g,this.networkErrorService=v,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.destroy$=new O.xQ,this.addFlagMutator=new P.U(v)}ngOnInit(){if(this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(s=>{this.selectedOrg=s.mostRecentOrg}),void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(s){this.selectedOrg=s}submitFlag(){var s;this.errorMessages=[];let g={comment:this.comment,subject:this.flaggable,organizationId:null===(s=this.selectedOrg)||void 0===s?void 0:s.id},v=this.addFlagMutator.mutate(this.gql,{input:g});v.submitSuccess$.pipe((0,x.R)(this.destroy$)).subscribe(Y=>{Y&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),v.submitError$.pipe((0,x.R)(this.destroy$)).subscribe(Y=>{Y.length>0&&(this.errorMessages=Y)}),v.isSubmitting$.pipe((0,x.R)(this.destroy$)).subscribe(Y=>{this.loading=Y})}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(r.B0s),t.Y36(L.a),t.Y36(w.Y))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["errorContents",""],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"comment","commentChange"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"selectedOrgChange"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to flag entity."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small",3,"disabled"]],template:function(s,g){1&s&&(t.TgZ(0,"nz-card",0),t.YNc(1,vn,1,0,"nz-alert",1),t.YNc(2,Jn,1,1,"nz-alert",2),t.YNc(3,Un,2,1,"ng-template",null,3,t.W1O),t.TgZ(5,"form",4),t.NdJ("ngSubmit",function(){return g.submitFlag()}),t.TgZ(6,"cvc-comment-input-form",5),t.NdJ("commentChange",function(Y){return g.comment=Y}),t.qZA(),t.TgZ(7,"nz-spin",6),t.TgZ(8,"nz-form-item"),t.TgZ(9,"nz-form-control"),t.YNc(10,Vn,8,2,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",g.success),t.xp6(1),t.Q6J("ngIf",g.errorMessages.length>0),t.xp6(4),t.Q6J("comment",g.comment),t.xp6(1),t.Q6J("nzSpinning",g.loading),t.xp6(3),t.Q6J("ngrxLet",g.viewer$))},directives:[U.bd,n.O5,S.r,n.sg,K._Y,K.JL,K.F,V.Lr,C.b,b.W,m.SK,V.Nx,m.t3,V.Fd,D.eJ,A.Z,B.q,n.tP,u.SY,F.ix,z.dQ,H.m,M.w],pipes:[Pn.I],styles:[""]}),c})();var Gn=i(8747),Hn=i(6699);function kn(c,p){if(1&c&&(t._UZ(0,"cvc-flag-list",13),t.ALo(1,"ngrxPush")),2&c){const s=t.oxw(2);t.Q6J("flags",t.lcZ(1,2,s.flags$))("flagResolvedCallback",s.refresh)}}function qn(c,p){if(1&c){const s=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(s);const v=t.oxw(2).ngrxLet;return t.oxw(2).loadMore(null==v?null:v.endCursor)}),t._uU(1,"Load More"),t.qZA()}}function Xn(c,p){1&c&&(t.ynx(0),t.YNc(1,qn,2,0,"button",15),t.BQk())}function nt(c,p){if(1&c&&(t.ynx(0),t.YNc(1,Xn,2,0,"ng-container",14),t.BQk()),2&c){const s=p.ngrxLet;t.xp6(1),t.Q6J("ngIf",null==s?null:s.hasNextPage)}}function tt(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw(2);t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}function et(c,p){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&c){const s=p.$implicit;t.xp6(1),t.Oqu(s.displayName)}}function ot(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function it(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function at(c,p){if(1&c&&(t.YNc(0,ot,1,1,"nz-avatar",18),t.YNc(1,it,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function st(c,p){if(1&c&&t._UZ(0,"nz-avatar",20),2&c){const s=t.oxw().$implicit;t.Q6J("nzSrc",s.profileImagePath)}}function ct(c,p){if(1&c&&(t._UZ(0,"nz-avatar",21),t.ALo(1,"uppercase")),2&c){const s=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,s.username.charAt(0)))}}function lt(c,p){if(1&c&&(t.YNc(0,st,1,1,"nz-avatar",18),t.YNc(1,ct,2,3,"ng-template",null,19,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&c){const s=p.$implicit,g=t.MAs(2);t.Q6J("ngIf",s.profileImagePath)("ngIfElse",g),t.xp6(4),t.Oqu(s.username)}}function _t(c,p){if(1&c){const s=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2),t.TgZ(2,"nz-col",3),t.TgZ(3,"nz-space",4),t.YNc(4,kn,2,4,"cvc-flag-list",5),t.YNc(5,nt,2,1,"ng-container",6),t.YNc(6,tt,1,2,"cvc-flag-add-form",7),t.qZA(),t.qZA(),t.TgZ(7,"nz-col",8),t.TgZ(8,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onStateSelected(v)}),t.YNc(9,et,2,1,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(11,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onFlaggingUsersSelected(v)}),t.ALo(12,"ngrxPush"),t.YNc(13,at,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.TgZ(15,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(v){return t.CHM(s),t.oxw().onResolvingUsersSelected(v)}),t.ALo(16,"ngrxPush"),t.YNc(17,lt,5,3,"ng-template",null,10,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&c){const s=t.oxw();t.xp6(1),t.Q6J("nzGutter",16),t.xp6(4),t.Q6J("ngrxLet",s.pageInfo$),t.xp6(3),t.Q6J("preselectedOption",s.selectableStates[0])("participantList",s.selectableStates),t.xp6(3),t.Q6J("participantList",t.lcZ(12,6,s.uniqueFlaggingUsers$)),t.xp6(4),t.Q6J("participantList",t.lcZ(16,8,s.uniqueResolvingUsers$))}}function rt(c,p){if(1&c&&t._UZ(0,"cvc-flag-add-form",17),2&c){const s=t.oxw();t.Q6J("flaggable",s.flaggable)("flagAddedCallback",s.refresh)}}let gt=(()=>{class c{constructor(s){this.gql=s,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:r.BQZ.Open},{id:2,displayName:"Resolved",value:r.BQZ.Resolved}]}ngOnInit(){if(null==this.flaggable)throw new Error("Must pass a flaggable into flag list");this.queryRef=this.gql.watch({first:this.defaultPageSize,flaggable:this.flaggable,state:r.BQZ.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,a.j)("data","flags","edges"),(0,T.U)(s=>s.map(g=>g.node))),this.pageInfo$=this.results$.pipe((0,a.j)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,a.j)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,T.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueFlaggingUsers})),this.uniqueResolvingUsers$=this.results$.pipe((0,T.U)(({data:s})=>{var g;return null===(g=s.flags)||void 0===g?void 0:g.uniqueResolvingUsers}))}onFlaggingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:s?s.id:void 0})}onResolvingUsersSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:s?s.id:void 0})}onStateSelected(s){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:s?s.value:void 0})}loadMore(s){var g;null===(g=this.queryRef)||void 0===g||g.fetchMore({variables:{first:this.defaultPageSize,after:s}})}}return c.\u0275fac=function(s){return new(s||c)(t.Y36(r.rzy))},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noFlags",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"flags","flagResolvedCallback",4,"nzSpaceItem"],[4,"ngrxLet"],[3,"flaggable","flagAddedCallback",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Flag State",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"]],template:function(s,g){if(1&s&&(t.YNc(0,_t,19,10,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,rt,1,2,"ng-template",null,1,t.W1O)),2&s){const v=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,g.unfilteredCount$))("ngIfElse",v)}},directives:[n.O5,m.SK,m.t3,h.NU,h.$1,Nn,D.eJ,F.ix,z.dQ,M.w,Kn,Gn.l,Hn.Dz],pipes:[D.fM,n.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),c})()},4271:(G,Q,i)=>{i.d(Q,{M:()=>tn});var r=i(9808),a=i(6949),T=i(3868),t=i(7345),n=i(7484),m=i(4546),h=i(3762),O=i(8625),x=i(4182),L=i(1825),S=i(6042),U=i(4375),y=i(2359),N=i(404),P=i(9444),w=i(4509),D=i(7525),u=i(5e3);let F=(()=>{class E{}return E.\u0275fac=function(X){return new(X||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[r.ez,x.u5,x.UX,a.WG,m.U5,S.sL,n.vh,y.L,N.cg,D.j,L.A,U.R,P.s,w.w]]}),E})();var z=i(9779),M=i(8144),J=i(1894),$=i(8481),K=i(3618),V=i(6699),C=i(3580),b=i(8018),A=i(6286),B=i(4867),H=i(8645),f=i(685),I=i(592),Z=i(6114),W=i(5737),k=i(647),en=i(3610),sn=i(1047);let cn=(()=>{class E{}return E.\u0275fac=function(X){return new(X||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[r.ez,x.UX,a.WG,S.sL,m.U5,x.u5,y.L,n.vh,en.$6,k.PV,N.cg,D.j,w.w,U.R,L.A]]}),E})();var on=i(7026),ln=i(8909);let j=(()=>{class E{}return E.\u0275fac=function(X){return new(X||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[r.ez,J.Jb,h.Ph,n.vh,M.zf,$.X,K.ZJ,V.Rt,f.Xo,Z.Wr,W.S,N.cg,h.Ph,en.$6,k.PV,sn.o7,x.u5,O.$L.forChild({formatter:{useClass:on.x,provide:O.KP}}),L.A,z.s,t.W,C.Q,b.e,A.y,B.Q,H.M,I.x,S.sL,y.L,a.WG,cn,W.S,ln.m]]}),E})();var nn=i(1150);let tn=(()=>{class E{}return E.\u0275fac=function(X){return new(X||E)},E.\u0275mod=u.oAB({type:E}),E.\u0275inj=u.cJS({imports:[[r.ez,x.u5,a.WG,O.$L.forChild({formatter:{useClass:on.x,provide:O.KP}}),S.sL,m.U5,T.aF,S.sL,t.W,h.Ph,n.vh,F,j,f.Xo,nn.N,V.Rt,M.zf]]}),E})()},8168:(G,Q,i)=>{i.d(Q,{Y:()=>a});var r=i(5e3);let a=(()=>{class T{constructor(){}}return T.\u0275fac=function(n){return new(n||T)},T.\u0275dir=r.lG2({type:T,selectors:[["","cvcFlaggableOptions",""]]}),T})()},5623:(G,Q,i)=>{i.d(Q,{o:()=>D});var r=i(5e3),a=i(8168),T=i(9808),t=i(4401),n=i(325),m=i(647),h=i(404);const O=["cvcFlaggable",""];function x(u,F){1&u&&r.Hsn(0)}function L(u,F){1&u&&r.GkF(0)}function S(u,F){if(1&u&&(r.ynx(0),r.YNc(1,L,1,0,"ng-container",2),r.BQk()),2&u){r.oxw();const z=r.MAs(1);r.xp6(1),r.Q6J("ngTemplateOutlet",z)}}function U(u,F){if(1&u&&(r.TgZ(0,"a",6),r._UZ(1,"i",7),r.qZA()),2&u){r.oxw();const z=r.MAs(5);r.xp6(1),r.Q6J("nzTooltipTitle",z)}}function y(u,F){if(1&u&&r._uU(0),2&u){const z=r.oxw(2);r.hij(" ",z.flags," open flags ")}}function N(u,F){1&u&&r.GkF(0)}function P(u,F){if(1&u&&(r.ynx(0),r.TgZ(1,"nz-ribbon",3),r.YNc(2,U,2,1,"ng-template",null,4,r.W1O),r.YNc(4,y,1,1,"ng-template",null,5,r.W1O),r.YNc(6,N,1,0,"ng-container",2),r.qZA(),r.BQk()),2&u){const z=r.MAs(3);r.oxw();const M=r.MAs(1);r.xp6(1),r.Q6J("nzText",z),r.xp6(5),r.Q6J("ngTemplateOutlet",M)}}const w=["*"];let D=(()=>{class u{constructor(z){this.renderer=z}ngOnChanges(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}ngAfterViewInit(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}addFlagged(){this.flaggedChild&&this.renderer.addClass(this.flaggedChild.nativeElement,"flaggedChild")}removeFlagged(){this.flaggedChild&&this.renderer.removeClass(this.flaggedChild.nativeElement,"flaggedChild")}}return u.\u0275fac=function(z){return new(z||u)(r.Y36(r.Qsj))},u.\u0275cmp=r.Xpm({type:u,selectors:[["","cvcFlaggable",""]],contentQueries:function(z,M,J){if(1&z&&r.Suo(J,a.Y,5,r.SBq),2&z){let $;r.iGM($=r.CRH())&&(M.flaggedChild=$.first)}},inputs:{flags:"flags",entity:"entity"},features:[r.TTD],attrs:O,ngContentSelectors:w,decls:4,vars:2,consts:[["flaggedContent",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["flaggedText",""],["flaggedTooltip",""],["routerLink","flags",2,"color","#FFF"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(z,M){1&z&&(r.F$t(),r.YNc(0,x,1,0,"ng-template",null,0,r.W1O),r.YNc(2,S,2,1,"ng-container",1),r.YNc(3,P,7,2,"ng-container",1)),2&z&&(r.xp6(2),r.Q6J("ngIf",0===M.flags),r.xp6(1),r.Q6J("ngIf",M.flags))},directives:[T.O5,T.tP,t.F9,n.yS,m.Ls,h.SY],styles:[""]}),u})()},4682:(G,Q,i)=>{i.d(Q,{m:()=>O});var r=i(9808),a=i(404),T=i(3618),t=i(4401),n=i(647),m=i(325),h=i(5e3);let O=(()=>{class x{}return x.\u0275fac=function(S){return new(S||x)},x.\u0275mod=h.oAB({type:x}),x.\u0275inj=h.cJS({imports:[[r.ez,m.Bz,n.PV,t.mS,a.cg,T.ZJ]]}),x})()},6059:(G,Q,i)=>{i.d(Q,{i:()=>ln});var r=i(9808),a=i(7484),T=i(3762),t=i(1894),n=i(5e3);let m=(()=>{class j{}return j.\u0275fac=function(tn){return new(tn||j)},j.\u0275mod=n.oAB({type:j}),j.\u0275inj=n.cJS({imports:[[r.ez,t.Jb]]}),j})();var h=i(2322),O=i(9779),x=i(8144),L=i(1825),S=i(8481),U=i(3618),y=i(6699),N=i(8625),P=i(7345),w=i(3580),D=i(8018),u=i(6286),F=i(4867),z=i(8645),M=i(5482),J=i(685),$=i(592),K=i(6114),V=i(5737),C=i(404),b=i(6042),A=i(2359),B=i(6949),H=i(647),f=i(3610),I=i(1047),Z=i(4182),W=i(9444),k=i(3098),en=i(7026),sn=i(4509),cn=i(8909),on=i(209);let ln=(()=>{class j{}return j.\u0275fac=function(tn){return new(tn||j)},j.\u0275mod=n.oAB({type:j}),j.\u0275inj=n.cJS({imports:[[r.ez,t.Jb,T.Ph,a.vh,x.zf,S.X,U.ZJ,y.Rt,J.Xo,K.Wr,V.S,C.cg,T.Ph,f.$6,H.PV,I.o7,k.q6,V.S,Z.u5,N.$L.forChild({formatter:{useClass:en.x,provide:N.KP}}),L.A,h.C,O.s,m,P.W,w.Q,D.e,u.y,F.Q,on.i,z.M,$.x,sn.w,W.s,cn.m,M.cD,b.sL,A.L,B.WG]]}),j})()},1365:(G,Q,i)=>{i.d(Q,{a:()=>Se});var r=i(712),a=i(373),T=i(4850),t=i(1059),n=i(5e3),m=i(325),h=i(9808),O=i(1894),x=i(8144),L=i(8929),S=i(6123),U=i(7625),y=i(9350),N=i(9169),P=i(2359),w=i(6949),D=i(7484),u=i(5482),F=i(3762),z=i(8481);let M=(()=>{class e{transform(o){return o?o.replace(/([a-z])([A-Z])/g,"$1 $2"):""}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275pipe=n.Yjl({name:"camelToWords",type:e,pure:!0}),e})();const J=["itemTemplate"],$=function(e){return{$implicit:e}};function K(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit,_=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,$,o))}}function V(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,o.entityType)," ",o.id,"")}}function C(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",9),n.YNc(1,K,3,4,"ng-container",10),n.YNc(2,V,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const o=l.$implicit,_=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!o.deleted)("ngIfElse",_)}}function b(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}function A(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit,_=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,$,o))}}function B(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,o.entityType)," ",o.id,"")}}function H(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",17),n.YNc(1,A,3,4,"ng-container",10),n.YNc(2,B,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const o=l.$implicit,_=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!o.deleted)("ngIfElse",_)}}function f(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Removed")}}function I(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,H,4,2,"nz-list-item",16),n.YNc(2,f,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Removed ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.removedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.removedObjects.length)}}function Z(e,l){1&e&&(n.ynx(0),n.YNc(1,I,3,3,"nz-list",7),n.BQk())}function W(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit,_=n.oxw(2);n.xp6(2),n.Q6J("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,$,o))}}function k(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,o.entityType)," ",o.id,"")}}function en(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",19),n.YNc(1,W,3,4,"ng-container",10),n.YNc(2,k,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const o=l.$implicit,_=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!o.deleted)("ngIfElse",_)}}function sn(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const o=n.oxw(2);n.MGl("nzNoResult","No ",o.entityType," Added")}}function cn(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,en,4,2,"nz-list-item",18),n.YNc(2,sn,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw();n.MGl("nzHeader","Added ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.addedObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.addedObjects.length)}}function on(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit,_=n.oxw(3);n.xp6(2),n.Q6J("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,$,o))}}function ln(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,o.entityType)," ",o.id,"")}}function j(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",21),n.YNc(1,on,3,4,"ng-container",10),n.YNc(2,ln,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const o=l.$implicit,_=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!o.deleted)("ngIfElse",_)}}function nn(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const o=n.oxw(3);n.MGl("nzNoResult","No ",o.entityType," Kept")}}function tn(e,l){if(1&e&&(n.TgZ(0,"nz-list",2),n.YNc(1,j,4,2,"nz-list-item",20),n.YNc(2,nn,1,1,"nz-list-empty",4),n.qZA()),2&e){const o=n.oxw(2);n.MGl("nzHeader","Kept ",o.entityType,""),n.xp6(1),n.Q6J("ngForOf",o.diffObject.keptObjects),n.xp6(1),n.Q6J("ngIf",0===o.diffObject.keptObjects.length)}}function E(e,l){1&e&&(n.ynx(0),n.YNc(1,tn,3,3,"nz-list",7),n.BQk())}function q(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",12),n.GkF(2,13),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit,_=n.oxw();n.xp6(2),n.Q6J("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.VKq(2,$,o))}}function X(e,l){if(1&e&&(n.TgZ(0,"nz-tag",14),n._uU(1),n.ALo(2,"camelToWords"),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.AsE("Deleted ",n.lcZ(2,2,o.entityType)," ",o.id,"")}}function fn(e,l){if(1&e&&(n.TgZ(0,"nz-list-item",22),n.YNc(1,q,3,4,"ng-container",10),n.YNc(2,X,3,4,"ng-template",null,11,n.W1O),n.qZA()),2&e){const o=l.$implicit,_=n.MAs(3);n.xp6(1),n.Q6J("ngIf",!o.deleted)("ngIfElse",_)}}function un(e,l){if(1&e&&n._UZ(0,"nz-list-empty",15),2&e){const o=n.oxw();n.MGl("nzNoResult","No ",o.entityType,"")}}let zn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.diffObject)throw new Error("Must specify a diffObject.");if(void 0===this.entityType)throw new Error("Must specify an entityType.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(o,_,d){if(1&o&&n.Suo(d,J,5),2&o){let R;n.iGM(R=n.CRH())&&(_.itemTemplateRef=R.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:12,consts:[[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader"],["ngClass","current",4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nzDirection","vertical"],[4,"ngIf"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader",4,"nzSpaceItem"],["ngClass","suggested",4,"ngFor","ngForOf"],["ngClass","current"],[4,"ngIf","ngIfElse"],["deleted",""],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nzColor","error"],[3,"nzNoResult"],["ngClass","removed",4,"ngFor","ngForOf"],["ngClass","removed"],["ngClass","added",4,"ngFor","ngForOf"],["ngClass","added"],["ngClass","kept",4,"ngFor","ngForOf"],["ngClass","kept"],["ngClass","suggested"]],template:function(o,_){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"nz-list",2),n.YNc(3,C,4,2,"nz-list-item",3),n.YNc(4,b,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"nz-space",5),n.YNc(7,Z,2,0,"ng-container",6),n.YNc(8,cn,3,3,"nz-list",7),n.YNc(9,E,2,0,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(10,"nz-col",1),n.TgZ(11,"nz-list",2),n.YNc(12,fn,4,2,"nz-list-item",8),n.YNc(13,un,1,1,"nz-list-empty",4),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Original ",_.entityType," List"),n.xp6(1),n.Q6J("ngForOf",_.diffObject.currentObjects),n.xp6(1),n.Q6J("ngIf",0===_.diffObject.currentObjects.length),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.Q6J("ngIf",_.diffObject.currentObjects.length>0),n.xp6(2),n.Q6J("ngIf",_.diffObject.currentObjects.length>0),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(1),n.MGl("nzHeader","Revised ",_.entityType," List"),n.xp6(1),n.Q6J("ngForOf",_.diffObject.suggestedObjects),n.xp6(1),n.Q6J("ngIf",0===_.diffObject.suggestedObjects.length))},directives:[O.SK,O.t3,F.n_,h.sg,F.AA,h.mk,h.O5,h.tP,z.j,F.I2,x.NU,x.$1],pipes:[M],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})();var Cn=i(6906),Tn=i(4022),xn=i(7469),hn=i(7701),yn=i(7956),An=i(8664),Zn=i(9001);let On=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.left)throw new Error("Must provide a left side of the diff.");if(void 0===this.right)throw new Error("Must provide a right side of the diff.");if(void 0===this.entityType)throw new Error("Must provide a diff.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-value-diff"]],inputs:{currentValue:"currentValue",suggestedValue:"suggestedValue",left:"left",right:"right",entityType:"entityType"},decls:15,vars:10,consts:[[3,"nzGutter"],[3,"nzSpan"],[3,"innerHtml"],[1,"diff","suggested"],[1,"background"]],template:function(o,_){1&o&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n.TgZ(2,"h4"),n._uU(3),n.qZA(),n._UZ(4,"div",2),n.qZA(),n.TgZ(5,"nz-col",1),n.TgZ(6,"h4"),n._uU(7),n.qZA(),n._UZ(8,"div",2),n.qZA(),n.TgZ(9,"nz-col",1),n.TgZ(10,"h4"),n._uU(11),n.qZA(),n.TgZ(12,"div",3),n.TgZ(13,"div",4),n._uU(14),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Original ",_.entityType,""),n.xp6(1),n.Q6J("innerHtml",_.left,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("",_.entityType," Diff"),n.xp6(1),n.Q6J("innerHtml",_.right,n.oJD),n.xp6(1),n.Q6J("nzSpan",8),n.xp6(2),n.hij("Revised ",_.entityType,""),n.xp6(3),n.hij(" ",_.suggestedValue," "))},directives:[O.SK,O.t3],styles:[":host{display:block}.diff{overflow:auto;width:100%}.diff .background{padding:4px 8px}.diff.insertions .background{background:#f6ffed;color:#237804}.diff.deletions .background{background:#fff1f0;color:#a8071a}.diff.suggested .background,.diff.original .background{background:#f0f5ff;color:#10239e}.diff del,.diff ins{text-decoration:none}.diff del strong{font-weight:400;background:#fcc}.diff ins strong{font-weight:400;background:#9f9}.diff .del{font-weight:400;background:#fee;color:#b00}.diff .ins{font-weight:400;background:#dfd;color:#080}ul{list-style:none}\n"],encapsulation:2}),e})();var Rn=i(5737),Fn=i(7948),Ln=i(3618),Mn=i(125),rn=i(647),gn=i(2683),bn=i(3610),En=i(4590),pn=i(6042),Sn=i(6114),Qn=i(404),mn=i(685),dn=i(2643),In=i(9383),Nn=i(8227),Pn=i(1793),vn=i(3098),Jn=i(1243),Yn=i(8625);function Un(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",4),n.NdJ("nzOnClose",function(){const R=n.CHM(o).$implicit;return n.oxw().onErrorBannerClose(R)}),n.qZA()}2&e&&n.Q6J("nzMessage",l.$implicit)}function Dn(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-alert",5),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw().onSuccessBannerClose()}),n.qZA()}if(2&e){const o=n.oxw();n.MGl("nzMessage","Revision(s) successfully ",o.success,".")}}function $n(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function Bn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",18),n.YNc(2,$n,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const an=function(e,l,o){return{id:e,name:l,link:o}};function wn(e,l){if(1&e&&n._UZ(0,"cvc-disease-tag",22),2&e){const o=l.$implicit;n.Q6J("disease",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Wn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",21),n.YNc(2,wn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function jn(e,l){if(1&e&&n._UZ(0,"cvc-drug-tag",24),2&e){const o=l.$implicit;n.Q6J("drug",n.kEZ(1,an,o.id,o.displayName,o.link))}}function Vn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",23),n.YNc(2,jn,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Kn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Gn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",25),n.YNc(2,Kn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function Hn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function kn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",26),n.YNc(2,Hn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function qn(e,l){if(1&e&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.hij(" ",o.displayName," ")}}function Xn(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",27),n.YNc(2,qn,2,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function nt(e,l){if(1&e&&n._UZ(0,"cvc-variant-type-tag",29),2&e){const o=l.$implicit;n.Q6J("variantType",n.kEZ(1,an,o.id,o.displayName,o.link))}}function tt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",28),n.YNc(2,nt,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function et(e,l){if(1&e&&n._UZ(0,"cvc-phenotype-tag",31),2&e){const o=l.$implicit;n.Q6J("phenotype",n.kEZ(1,an,o.id,o.displayName,o.link))}}function ot(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",30),n.YNc(2,et,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function it(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function at(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",32),n.YNc(2,it,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function st(e,l){if(1&e&&n._UZ(0,"cvc-variant-tag",33),2&e){const o=l.$implicit;n.Q6J("variant",n.kEZ(1,an,o.id,o.displayName,o.link))}}function ct(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",34),n.YNc(2,st,1,5,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function lt(e,l){1&e&&n._UZ(0,"cvc-source-tag",20),2&e&&n.Q6J("source",l.$implicit)}function _t(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",35),n.YNc(2,lt,1,1,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}const rt=function(e,l,o,_){return{id:e,name:l,link:o,status:_}};function gt(e,l){if(1&e&&n._UZ(0,"cvc-evidence-tag",37),2&e){const o=l.$implicit;n.Q6J("evidence",n.l5B(1,rt,o.id,o.displayName,o.link,o.status))}}function c(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"cvc-revision-list-diff",36),n.YNc(2,gt,1,6,"ng-template",null,19,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("diffObject",o.linkoutData.diffValue)}}function p(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-revision-value-diff",38),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(1),n.Q6J("currentValue",o.currentValue)("suggestedValue",o.suggestedValue)("left",o.linkoutData.diffValue.left)("right",o.linkoutData.diffValue.right)("entityType",o.linkoutData.name)}}function s(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-comment-body",42),n.BQk()),2&e){const o=n.oxw(2).$implicit;n.xp6(1),n.Q6J("commentBodySegments",o.resolutionComment.parsedComment)}}function g(e,l){if(1&e&&n._UZ(0,"cvc-user-tag",43),2&e){const o=n.oxw(2).$implicit;n.Q6J("user",o.resolver)}}function v(e,l){if(1&e&&(n.ynx(0),n._UZ(1,"nz-divider"),n.TgZ(2,"nz-row"),n.TgZ(3,"nz-col",39),n.YNc(4,s,2,1,"ng-container",15),n.qZA(),n.TgZ(5,"nz-col",40),n._uU(6),n.ALo(7,"enumToTitle"),n.YNc(8,g,1,1,"cvc-user-tag",41),n._uU(9),n.ALo(10,"timeago"),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().$implicit;n.xp6(4),n.Q6J("ngIf",o.resolutionComment),n.xp6(2),n.hij(" ",n.lcZ(7,4,o.status)," By "),n.xp6(2),n.Q6J("ngIf",void 0!==o.resolver),n.xp6(1),n.hij(" ",n.lcZ(10,6,o.resolvedAt)," ")}}function Y(e,l){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"i",45),n._uU(2),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.qZA()),2&e){const o=n.oxw(2).$implicit;n.xp6(2),n.hij(" RID",o.id," "),n.xp6(2),n.hij("",o.linkoutData.name," Updated")}}function mt(e,l){if(1&e&&n._UZ(0,"i",48),2&e){n.oxw();const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function dt(e,l){if(1&e&&n._UZ(0,"cvc-comment-body",42),2&e){const o=n.oxw(3).$implicit;n.Q6J("commentBodySegments",o.creationComment.parsedComment)}}function vt(e,l){1&e&&(n.ynx(0),n.YNc(1,mt,1,1,"i",46),n.YNc(2,dt,1,1,"ng-template",null,47,n.W1O),n.BQk())}function ft(e,l){if(1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,Y,5,2,"span",44),n.YNc(2,vt,4,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",o.creationComment)}}function ut(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"span",55),n._uU(2,"Submitted By"),n.qZA(),n._UZ(3,"cvc-user-tag",43),n.BQk()),2&e){const o=n.oxw(3).$implicit;n.xp6(3),n.Q6J("user",o.revisor)}}function zt(e,l){1&e&&(n.TgZ(0,"span",55),n._uU(1,"Submitted"),n.qZA())}function Ct(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,ut,4,1,"ng-container",53),n.YNc(2,zt,2,0,"ng-template",null,54,n.W1O),n.TgZ(4,"span",55),n._uU(5),n.ALo(6,"timeago"),n.qZA(),n.qZA()),2&e){const o=n.MAs(3),_=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",_.revisor)("ngIfElse",o),n.xp6(4),n.Oqu(n.lcZ(6,3,_.createdAt))}}function Tt(e,l){if(1&e&&n._UZ(0,"cvc-status-tag",56),2&e){const o=n.oxw(2).$implicit;n.Q6J("status",o.status)}}function xt(e,l){1&e&&n._UZ(0,"nz-divider",57)}function ht(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"a",58),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).$implicit;return n.oxw(3).onChangesetSelected(d.revisionsetId)}),n._uU(1,"Show Group"),n.qZA()}}function yt(e,l){1&e&&n._UZ(0,"nz-divider",57)}function At(e,l){1&e&&n._UZ(0,"label",61),2&e&&n.Q6J("nzDisabled",!0)}function Zt(e,l){1&e&&n._UZ(0,"label",64),2&e&&n.Q6J("nzDisabled",!0)}function Ot(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"label",65),n.NdJ("nzCheckedChange",function(d){n.CHM(o);const R=n.oxw(5).$implicit;return n.oxw(3).onRevisionCheckboxClicked(d,R.id)}),n.qZA()}}function Rt(e,l){if(1&e&&(n.YNc(0,Zt,1,1,"label",62),n.YNc(1,Ot,1,0,"ng-template",null,63,n.W1O)),2&e){const o=n.MAs(2),_=n.oxw(4).$implicit,d=n.oxw(2).ngrxLet;n.Q6J("ngIf",d.isCurator&&d.id!=(null==_.revisor?null:_.revisor.id))("ngIfElse",o)}}function Ft(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,At,1,1,"label",59),n.YNc(2,Rt,3,2,"ng-template",null,60,n.W1O),n.qZA()),2&e){const o=n.MAs(3),_=n.oxw(5).ngrxLet;n.xp6(1),n.Q6J("ngIf",!_.signedIn)("ngIfElse",o)}}function Lt(e,l){1&e&&(n.ynx(0),n.YNc(1,yt,1,0,"nz-divider",51),n.YNc(2,Ft,4,2,"span",44),n.BQk())}function Mt(e,l){if(1&e&&(n.TgZ(0,"nz-space",49),n.NdJ("click",function(_){return _.stopPropagation()}),n.YNc(1,Ct,7,5,"span",44),n.YNc(2,Tt,1,1,"cvc-status-tag",50),n.YNc(3,xt,1,0,"nz-divider",51),n.YNc(4,ht,2,0,"a",52),n.YNc(5,Lt,3,0,"ng-container",15),n.qZA()),2&e){const o=n.oxw().$implicit;n.xp6(5),n.Q6J("ngIf","NEW"===o.status)}}function bt(e,l){if(1&e&&(n.TgZ(0,"nz-collapse-panel",11),n.ynx(1,12),n.YNc(2,Bn,4,1,"ng-container",13),n.YNc(3,Wn,4,1,"ng-container",13),n.YNc(4,Vn,4,1,"ng-container",13),n.YNc(5,Gn,4,1,"ng-container",13),n.YNc(6,kn,4,1,"ng-container",13),n.YNc(7,Xn,4,1,"ng-container",13),n.YNc(8,tt,4,1,"ng-container",13),n.YNc(9,ot,4,1,"ng-container",13),n.YNc(10,at,4,1,"ng-container",13),n.YNc(11,ct,4,1,"ng-container",13),n.YNc(12,_t,4,1,"ng-container",13),n.YNc(13,c,4,1,"ng-container",13),n.YNc(14,p,2,5,"ng-container",14),n.BQk(),n.YNc(15,v,11,8,"ng-container",15),n.YNc(16,ft,3,1,"ng-template",null,16,n.W1O),n.YNc(18,Mt,6,1,"ng-template",null,17,n.W1O),n.qZA()),2&e){const o=l.$implicit,_=n.MAs(17),d=n.MAs(19);n.Q6J("nzHeader",_)("nzExtra",d)("nzActive",!0),n.xp6(1),n.Q6J("ngSwitch",o.fieldName),n.xp6(1),n.Q6J("ngSwitchCase","source_ids"),n.xp6(1),n.Q6J("ngSwitchCase","disease_id"),n.xp6(1),n.Q6J("ngSwitchCase","drug_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_alias_ids"),n.xp6(1),n.Q6J("ngSwitchCase","clinvar_entry_ids"),n.xp6(1),n.Q6J("ngSwitchCase","hgvs_expression_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_type_ids"),n.xp6(1),n.Q6J("ngSwitchCase","phenotype_ids"),n.xp6(1),n.Q6J("ngSwitchCase","variant_id"),n.xp6(1),n.Q6J("ngSwitchCase","variant_ids"),n.xp6(1),n.Q6J("ngSwitchCase","source_id"),n.xp6(1),n.Q6J("ngSwitchCase","evidence_item_ids"),n.xp6(2),n.Q6J("ngIf","NEW"!==o.status)}}function Et(e,l){if(1&e&&(n.TgZ(0,"nz-collapse",9),n.YNc(1,bt,20,17,"nz-collapse-panel",10),n.qZA()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",o.untypedRevisons)}}function St(e,l){1&e&&n._UZ(0,"nz-empty",66)}function Qt(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",6),n.YNc(2,Et,2,1,"nz-collapse",7),n.YNc(3,St,1,0,"ng-template",null,8,n.W1O),n.qZA(),n.BQk()),2&e){const o=n.MAs(4),_=n.oxw(),d=n.MAs(4);n.xp6(1),n.Q6J("nzExtra",d),n.xp6(1),n.Q6J("ngIf",_.revisions&&_.revisions.length>0)("ngIfElse",o)}}function It(e,l){}function Nt(e,l){1&e&&n.YNc(0,It,0,0,"ng-template")}function Pt(e,l){if(1&e&&(n.ynx(0),n.YNc(1,Nt,1,0,void 0,75),n.BQk()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Jt(e,l){}function Yt(e,l){1&e&&n.YNc(0,Jt,0,0,"ng-template")}function Ut(e,l){if(1&e&&(n.TgZ(0,"span",76),n.YNc(1,Yt,1,0,void 0,75),n.qZA()),2&e){n.oxw();const o=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function Dt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",77),n.NdJ("nzPopoverVisibleChange",function(d){return n.CHM(o),n.oxw(7).validationPopoverVisible=d})("click",function(){n.CHM(o);const d=n.oxw(7);return d.validationPopoverVisible=!d.validationPopoverVisible}),n._uU(1," Review Selected Revisions "),n._UZ(2,"i",78),n.qZA()}if(2&e){const o=n.oxw(2).ngrxLet,_=n.MAs(7),d=n.MAs(9),R=n.oxw(5);n.Q6J("nzPopoverTitle",_)("nzPopoverVisible",R.validationPopoverVisible)("nzPopoverContent",d)("nzPopoverTrigger",void 0)("disabled",0===R.selectedRevisionIds.length||!o.signedIn)}}function $t(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Pt,2,1,"ng-container",53),n.YNc(2,Ut,2,1,"ng-template",null,73,n.W1O),n.YNc(4,Dt,3,5,"ng-template",null,74,n.W1O),n.qZA()),2&e){const o=n.MAs(3),_=n.oxw().ngrxLet;n.xp6(1),n.Q6J("ngIf",_.signedIn)("ngIfElse",o)}}function Bt(e,l){if(1&e&&n._UZ(0,"i",80),2&e){n.oxw(4);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function wt(e,l){1&e&&(n.ynx(0),n.YNc(1,Bt,1,1,"i",79),n.BQk())}const Wt=function(){return{float:"right"}};function jt(e,l){if(1&e){const o=n.EpF();n._uU(0," Review Selected Revisions "),n.TgZ(1,"span",81),n.TgZ(2,"i",82),n.NdJ("click",function(){return n.CHM(o),n.oxw(6).validationPopoverVisible=!1}),n.qZA(),n.qZA()}2&e&&(n.xp6(1),n.Q6J("ngStyle",n.DdM(1,Wt)))}function Vt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-comment-input-form",85),n.NdJ("commentChange",function(d){return n.CHM(o),n.oxw(7).revisionComment=d}),n.qZA()}if(2&e){const o=n.oxw(7);n.Q6J("comment",o.revisionComment)}}function Kt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",87),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onRejectRevisionsClicked()}),n._uU(3," Reject Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(8);n.xp6(1),n.Q6J("selectedOrg",o.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",o.isLoading)("disabled",void 0===o.revisionComment||o.revisionComment.length<10)}}function Gt(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"span"),n.TgZ(1,"cvc-org-selector-btn-group",86),n.NdJ("selectedOrgChange",function(d){return n.CHM(o),n.oxw(8).mostRecentOrg=d}),n.TgZ(2,"button",88),n.NdJ("click",function(){return n.CHM(o),n.oxw(8).onAcceptRevisionClicked()}),n._uU(3," Accept Revision "),n.qZA(),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(4).ngrxLet,_=n.oxw(4);n.xp6(1),n.Q6J("selectedOrg",_.mostRecentOrg),n.xp6(1),n.Q6J("nzLoading",_.isLoading)("disabled",!(0==o&&(void 0===_.revisionComment||""===_.revisionComment||_.revisionComment.length>=10)))}}function Ht(e,l){if(1&e&&n._UZ(0,"i",90),2&e){n.oxw(6);const o=n.MAs(3);n.Q6J("nzPopoverContent",o)}}function kt(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,Ht,1,1,"i",89),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(1),n.Q6J("ngIf",o>0)}}function qt(e,l){1&e&&(n.TgZ(0,"span"),n.TgZ(1,"nz-space"),n.YNc(2,Kt,4,3,"span",44),n.YNc(3,Gt,4,3,"span",44),n.YNc(4,kt,2,1,"span",44),n.qZA(),n.qZA())}function Xt(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,Vt,1,1,"cvc-comment-input-form",84),n.YNc(2,qt,5,0,"span",44),n.qZA())}function ne(e,l){if(1&e&&(n.ynx(0),n.TgZ(1,"div",68),n.TgZ(2,"div",69),n.TgZ(3,"nz-space",70),n.YNc(4,$t,6,2,"span",44),n.YNc(5,wt,2,0,"ng-container",15),n.qZA(),n.YNc(6,jt,3,2,"ng-template",null,71,n.W1O),n.YNc(8,Xt,3,0,"ng-template",null,72,n.W1O),n.qZA(),n.qZA(),n.BQk()),2&e){const o=n.oxw().ngrxLet;n.xp6(5),n.Q6J("ngIf",o>0)}}function te(e,l){if(1&e&&(n.ynx(0),n.YNc(1,ne,10,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(4);n.xp6(1),n.Q6J("ngrxLet",o.viewer$)}}function ee(e,l){if(1&e&&(n.TgZ(0,"nz-list-item"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o)}}function oe(e,l){if(1&e&&(n.TgZ(0,"nz-card",92),n.TgZ(1,"nz-list",93),n.YNc(2,ee,2,1,"nz-list-item",94),n.qZA(),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function ie(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,oe,3,1,"nz-card",91),n.qZA()),2&e){const o=n.oxw(2).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function ae(e,l){if(1&e&&(n.TgZ(0,"nz-descriptions-item",99),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.Q6J("nzTitle",o.fieldName),n.xp6(1),n.Oqu(o.error)}}function se(e,l){if(1&e&&(n.TgZ(0,"nz-card",96),n.TgZ(1,"nz-descriptions",97),n.YNc(2,ae,2,2,"nz-descriptions-item",98),n.qZA(),n.qZA()),2&e){const o=n.oxw(4).ngrxLet;n.xp6(2),n.Q6J("ngForOf",o)}}function ce(e,l){if(1&e&&(n.TgZ(0,"span"),n.YNc(1,se,3,1,"nz-card",95),n.qZA()),2&e){const o=n.oxw(3).ngrxLet;n.xp6(1),n.Q6J("ngIf",o.length>0)}}function le(e,l){1&e&&(n.TgZ(0,"nz-space",83),n.YNc(1,ie,2,1,"span",44),n.YNc(2,ce,2,1,"span",44),n.qZA())}function _e(e,l){if(1&e&&(n.ynx(0),n.YNc(1,te,2,1,"ng-container",2),n.YNc(2,le,3,0,"ng-template",null,67,n.W1O),n.BQk()),2&e){const o=n.oxw(3);n.xp6(1),n.Q6J("ngrxLet",o.totalErrorCount$)}}function re(e,l){if(1&e&&(n.ynx(0),n.YNc(1,_e,4,1,"ng-container",2),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",o.genericErrors$)}}function ge(e,l){if(1&e&&n.YNc(0,re,2,1,"ng-container",2),2&e){const o=n.oxw();n.Q6J("ngrxLet",o.validationErrors$)}}let pe=(()=>{class e{constructor(o,_,d,R,_n){this.viewerService=o,this.networkErrorService=_,this.acceptRevisionsGql=d,this.rejectRevisionsGql=R,this.validationGql=_n,this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new L.xQ,this.revisionSetSelectedEvent=new n.vpe,this.revisionMutationCompleted=new n.vpe,this.acceptRevisionsMutator=new S.U(_),this.rejectRevisionsMutator=new S.U(_)}ngOnChanges(o){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(o=>{this.mostRecentOrg=o.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,T.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors)),this.validationErrors$=this.queryRef.valueChanges.pipe((0,T.U)(({data:o})=>o.validateRevisionsForAcceptance.validationErrors)),this.totalErrorCount$=this.queryRef.valueChanges.pipe((0,T.U)(({data:o})=>o.validateRevisionsForAcceptance.genericErrors.length+o.validateRevisionsForAcceptance.validationErrors.length),(0,t.O)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(o){this.revisionSetSelectedEvent.emit(o)}onRevisionCheckboxClicked(o,_){o?this.selectedRevisionIds.push(_):this.selectedRevisionIds=this.selectedRevisionIds.filter(d=>d!=_),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(o,_){o.submitSuccess$.pipe((0,U.R)(this.destroy$)).subscribe(d=>{d&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=_,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])}),o.submitError$.pipe((0,U.R)(this.destroy$)).subscribe(d=>{d.length>0&&(this.isLoading=!1,this.success=!1,this.errors=d,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){var o;if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let _=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:this.revisionComment}},{refetchQueries:[this.refetchQuery]});this.setupMutationResultHandlers(_,"rejected")}}onAcceptRevisionClicked(){var o;this.isLoading=!0;let _=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:null===(o=this.mostRecentOrg)||void 0===o?void 0:o.id,comment:""===this.revisionComment?void 0:this.revisionComment}},{refetchQueries:[this.refetchQuery]});this.setupMutationResultHandlers(_,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(o){var _;this.errors=null===(_=this.errors)||void 0===_?void 0:_.filter(d=>d!=o)}onSuccessBannerClose(){this.success=!1}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(y.a),n.Y36(N.Y),n.Y36(r.ti),n.Y36(r.VZq),n.Y36(r.Qzn))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions",refetchQuery:"refetchQuery"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.TTD],decls:5,vars:3,consts:[["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["moderationButtons",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],["noRevisions",""],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["entityType","Sources",3,"diffObject"],["itemTemplate",""],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Drugs",3,"diffObject"],[3,"drug"],["entityType","Variant Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","HGVS Expressions",3,"diffObject"],["entityType","Variant Types",3,"diffObject"],[3,"variantType"],["entityType","Phenotypes",3,"diffObject"],[3,"phenotype"],["entityType","Variant",3,"diffObject"],[3,"variant"],["entityType","Variants",3,"diffObject"],["entityType","Source",3,"diffObject"],["entityType","Evidence",3,"diffObject"],[3,"evidence"],[3,"currentValue","suggestedValue","left","right","entityType"],["nzSpan","16"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"commentBodySegments"],[3,"user"],[4,"nzSpaceItem"],["nz-icon","","nzType","civic:revision"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent",4,"nzSpaceItem"],["creationCommentTemplate",""],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent"],["nzSize","small",3,"click"],[3,"status",4,"nzSpaceItem"],["nzType","vertical",4,"nzSpaceItem"],["nz-button","","nzType","link",3,"click",4,"nzSpaceItem"],[4,"ngIf","ngIfElse"],["noRevisor",""],["nz-typography","","nzType","secondary"],[3,"status"],["nzType","vertical"],["nz-button","","nzType","link",3,"click"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["loggedIn",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["canRevise",""],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Select Revision for Acceptance/Rejection",3,"nzCheckedChange"],["nzNotFoundImage","simple","nzNotFoundContent","No Revisions matching filters"],["validationErrorTemplate",""],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzDirection","vertical"],[3,"comment","commentChange",4,"nzSpaceItem"],[3,"comment","commentChange"],[3,"selectedOrg","selectedOrgChange"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","",3,"nzLoading","disabled","click"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small",3,"nzLoading","disabled","click"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"ngIf"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],["nzTitle","Errors",4,"ngIf"],["nzTitle","Errors"],["nzSize","small"],[4,"ngFor","ngForOf"],["nzTitle","Validation Errors",4,"ngIf"],["nzTitle","Validation Errors"],["nzBordered",""],[3,"nzTitle",4,"ngFor","ngForOf"],[3,"nzTitle"]],template:function(o,_){1&o&&(n.YNc(0,Un,1,1,"nz-alert",0),n.YNc(1,Dn,1,1,"nz-alert",1),n.YNc(2,Qt,5,3,"ng-container",2),n.YNc(3,ge,1,1,"ng-template",null,3,n.W1O)),2&o&&(n.Q6J("ngForOf",_.errors),n.xp6(1),n.Q6J("ngIf",_.success),n.xp6(1),n.Q6J("ngrxLet",_.viewer$))},directives:[h.sg,P.r,h.O5,w.eJ,D.bd,u.yH,u.Zv,h.RF,h.n9,zn,Cn.T,Tn.n,xn.u,z.j,hn.j,yn.i,An.I,Zn.O,h.ED,On,Rn.g,O.SK,O.t3,Fn.m,Ln.ZU,Mn.I,x.NU,x.$1,rn.Ls,gn.w,bn.lU,En.h,pn.ix,Sn.Ie,Qn.SY,mn.p9,h.tP,dn.dQ,h.PC,In.b,Nn.q,Pn.m,F.n_,F.AA,vn.R7,vn.uj],pipes:[Jn.I,Yn.wr],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}"]}),e})();var me=i(8747),de=i(6699);function ve(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"cvc-revision-list",14),n.NdJ("revisionSetSelectedEvent",function(d){return n.CHM(o),n.oxw(2).onRevisionSetSelected(d)})("revisionMutationCompleted",function(){return n.CHM(o),n.oxw(2).refresh()}),n.ALo(1,"ngrxPush"),n.qZA()}if(2&e){const o=n.oxw(2);n.Q6J("revisions",n.lcZ(1,2,o.revisions$))("refetchQuery",o.refetchQuery)}}function fe(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){n.CHM(o);const d=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(null==d?null:d.endCursor)}),n._uU(1,"Load More"),n.qZA()}}function ue(e,l){1&e&&(n.ynx(0),n.YNc(1,fe,2,0,"button",16),n.BQk())}function ze(e,l){if(1&e&&(n.ynx(0),n.YNc(1,ue,2,0,"ng-container",15),n.BQk()),2&e){const o=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",null==o?null:o.hasNextPage)}}function Ce(e,l){if(1&e){const o=n.EpF();n.TgZ(0,"nz-row"),n.TgZ(1,"nz-tag",19),n.NdJ("nzOnClose",function(){return n.CHM(o),n.oxw(3).onSetFilterClearClicked()}),n._uU(2),n.qZA(),n.qZA()}if(2&e){const o=n.oxw(3);n.xp6(2),n.hij("Group: ",o.filteredSet,"")}}function Te(e,l){1&e&&(n.TgZ(0,"nz-space",4),n.YNc(1,Ce,3,1,"nz-row",18),n.qZA())}function xe(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function he(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function ye(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function Ae(e,l){if(1&e&&(n.YNc(0,he,1,1,"nz-avatar",20),n.YNc(1,ye,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,_=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",_),n.xp6(4),n.Oqu(o.username)}}function Ze(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=l.$implicit;n.xp6(1),n.Oqu(o.displayName)}}function Oe(e,l){if(1&e&&n._UZ(0,"nz-avatar",22),2&e){const o=n.oxw().$implicit;n.Q6J("nzSrc",o.profileImagePath)}}function Re(e,l){if(1&e&&(n._UZ(0,"nz-avatar",23),n.ALo(1,"uppercase")),2&e){const o=n.oxw().$implicit;n.Q6J("nzText",n.lcZ(1,1,o.username.charAt(0)))}}function Fe(e,l){if(1&e&&(n.YNc(0,Oe,1,1,"nz-avatar",20),n.YNc(1,Re,2,3,"ng-template",null,21,n.W1O),n.TgZ(3,"span"),n._uU(4),n.qZA()),2&e){const o=l.$implicit,_=n.MAs(2);n.Q6J("ngIf",o.profileImagePath)("ngIfElse",_),n.xp6(4),n.Oqu(o.username)}}function Le(e,l){if(1&e){const o=n.EpF();n.ynx(0),n.TgZ(1,"nz-row",2),n.TgZ(2,"nz-col",3),n.TgZ(3,"nz-space",4),n.YNc(4,ve,2,4,"cvc-revision-list",5),n.YNc(5,ze,2,1,"ng-container",6),n.qZA(),n.qZA(),n.TgZ(6,"nz-col",7),n.YNc(7,Te,2,0,"nz-space",8),n.TgZ(8,"cvc-participant-list",9),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onStatusSelected(d)}),n.YNc(9,xe,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(11,"cvc-participant-list",11),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onRevisorSelected(d)}),n.ALo(12,"ngrxPush"),n.YNc(13,Ae,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(15,"cvc-participant-list",12),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onFieldNameSelected(d)}),n.ALo(16,"ngrxPush"),n.YNc(17,Ze,2,1,"ng-template",null,10,n.W1O),n.qZA(),n.TgZ(19,"cvc-participant-list",13),n.NdJ("participantSelectedEvent",function(d){return n.CHM(o),n.oxw().onResolverSelected(d)}),n.ALo(20,"ngrxPush"),n.YNc(21,Fe,5,3,"ng-template",null,10,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.BQk()}if(2&e){const o=n.oxw();n.xp6(1),n.Q6J("nzGutter",16),n.xp6(4),n.Q6J("ngrxLet",o.pageInfo$),n.xp6(2),n.Q6J("ngIf",o.filteredSet),n.xp6(1),n.Q6J("preselectedOption",o.selectableStatuses[0])("participantList",o.selectableStatuses),n.xp6(3),n.Q6J("participantList",n.lcZ(12,8,o.uniqueRevisors$)),n.xp6(4),n.Q6J("participantList",n.lcZ(16,10,o.revisionFields$)),n.xp6(4),n.Q6J("participantList",n.lcZ(20,12,o.uniqueResolvers$))}}function Me(e,l){1&e&&(n.ynx(0),n.TgZ(1,"nz-row",25),n._UZ(2,"i",26),n.qZA(),n.BQk())}function be(e,l){1&e&&n._UZ(0,"nz-empty",27)}function Ee(e,l){if(1&e&&(n.YNc(0,Me,3,0,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,be,1,0,"ng-template",null,24,n.W1O)),2&e){const o=n.MAs(3),_=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,_.isLoading$))("ngIfElse",o)}}let Se=(()=>{class e{constructor(o,_,d,R,_n,pt,Qe){this.gql=o,this.route=_,this.variantDetailGql=d,this.variantGroupDetailGql=R,this.assertionDetailGql=_n,this.geneDetailGql=pt,this.evidenceDetailGql=Qe,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:r.FJi.New},{id:1,displayName:"Accepted",value:r.FJi.Accepted},{id:2,displayName:"Rejected",value:r.FJi.Rejected},{id:3,displayName:"Superseded",value:r.FJi.Superseded}],this.defaultPageSize=10}ngOnInit(){switch(this.routeSub=this.route.params.subscribe(o=>{this.queryRef=this.gql.watch({first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:r.FJi.New});let _=this.queryRef.valueChanges;this.revisions$=_.pipe((0,a.j)("data","revisions","edges"),(0,T.U)(d=>d.map(R=>R.node))),this.isLoading$=_.pipe((0,T.U)(d=>d.loading),(0,t.O)(!0)),this.pageInfo$=_.pipe((0,a.j)("data","revisions","pageInfo")),this.uniqueRevisors$=_.pipe((0,T.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.uniqueRevisors})),this.uniqueResolvers$=_.pipe((0,T.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.uniqueResolvers})),this.revisionFields$=_.pipe((0,T.U)(({data:d})=>{var R;return null===(R=d.revisions)||void 0===R?void 0:R.revisedFieldNames.map((_n,pt)=>Object.assign(Object.assign({},_n),{id:pt}))})),this.unfilteredCount$=_.pipe((0,a.j)("data","revisions","unfilteredCountForSubject"))}),this.entityType){case r.oRL.Variant:return void(this.refetchQuery={query:this.variantDetailGql.document,variables:{variantId:this.id}});case r.oRL.Assertion:return void(this.refetchQuery={query:this.assertionDetailGql.document,variables:{assertionId:this.id}});case r.oRL.EvidenceItem:return void(this.refetchQuery={query:this.evidenceDetailGql.document,variables:{evidenceId:this.id}});case r.oRL.Gene:return void(this.refetchQuery={query:this.geneDetailGql.document,variables:{geneId:this.id}});case r.oRL.VariantGroup:return void(this.refetchQuery={query:this.variantGroupDetailGql.document,variables:{variantGroupId:this.id}})}}ngOnDestroy(){var o;null===(o=this.routeSub)||void 0===o||o.unsubscribe()}onFieldNameSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},fieldName:o?o.name:void 0})}onRevisorSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},originatingUserId:o?o.id:void 0})}onResolverSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},resolvingUserId:o?o.id:void 0})}onStatusSelected(o){this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},status:o?o.value:void 0})}onRevisionSetSelected(o){this.filteredSet=o,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:o||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:{id:this.id,entityType:this.entityType},revisionsetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(o){var _;null===(_=this.queryRef)||void 0===_||_.fetchMore({variables:{first:this.defaultPageSize,after:o}})}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(r.L5n),n.Y36(m.gz),n.Y36(r.iJT),n.Y36(r.Qtd),n.Y36(r.A94),n.Y36(r.TNk),n.Y36(r.pHu))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{id:"id",entityType:"entityType"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noRevisions",""],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"revisions","refetchQuery","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Revision Status",3,"preselectedOption","participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Revisors",3,"participantList","participantSelectedEvent"],["listTitle","Fields Revised",3,"participantList","participantSelectedEvent"],["listTitle","Resolvers",3,"participantList","participantSelectedEvent"],[3,"revisions","refetchQuery","revisionSetSelectedEvent","revisionMutationCompleted"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[4,"nzSpaceItem"],["nzMode","closeable",3,"nzOnClose"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["noAvatar",""],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["noneFound",""],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(o,_){if(1&o&&(n.YNc(0,Le,23,14,"ng-container",0),n.ALo(1,"ngrxPush"),n.YNc(2,Ee,4,4,"ng-template",null,1,n.W1O)),2&o){const d=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,_.unfilteredCount$))("ngIfElse",d)}},directives:[h.O5,O.SK,O.t3,x.NU,x.$1,pe,w.eJ,pn.ix,dn.dQ,gn.w,z.j,me.l,de.Dz,rn.Ls,mn.p9],pipes:[w.fM,h.gd],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]}),e})()},2914:(G,Q,i)=>{i.d(Q,{A:()=>w});var r=i(9808),a=i(6949),T=i(1894),t=i(3762),n=i(7484),m=i(8144),h=i(8481),O=i(3618),x=i(1150),L=i(6699),S=i(6059),U=i(685),y=i(6042),N=i(647),P=i(5e3);let w=(()=>{class D{}return D.\u0275fac=function(F){return new(F||D)},D.\u0275mod=P.oAB({type:D}),D.\u0275inj=P.cJS({imports:[[r.ez,a.WG,T.Jb,t.Ph,n.vh,m.zf,h.X,O.ZJ,L.Rt,U.Xo,y.sL,N.PV,x.N,S.i]]}),D})()},759:(G,Q,i)=>{i.d(Q,{N:()=>V});var r=i(373),a=i(5e3),T=i(712),t=i(3618),n=i(9808),m=i(325),h=i(6699),O=i(3610),x=i(6265),L=i(3098),S=i(2937);function U(C,b){1&C&&(a.ynx(0),a._uU(1,", "),a.BQk())}function y(C,b){if(1&C&&(a.ynx(0),a._uU(1),a.ALo(2,"eventVerbiage"),a.YNc(3,U,2,0,"ng-container",12),a.BQk()),2&C){const A=b.$implicit,B=b.last;a.xp6(1),a.hij(" ",a.Dn7(2,2,A.action,"contributor-card",A.count),""),a.xp6(2),a.Q6J("ngIf",!B)}}function N(C,b){if(1&C&&(a.TgZ(0,"nz-descriptions",8),a.TgZ(1,"nz-descriptions-item",9),a.YNc(2,y,4,6,"ng-container",10),a.qZA(),a.TgZ(3,"nz-descriptions-item",11),a._uU(4),a.ALo(5,"date"),a.qZA(),a.qZA()),2&C){const A=a.oxw(2).$implicit;a.Q6J("nzColumn",1),a.xp6(2),a.Q6J("ngForOf",A.uniqueActions),a.xp6(2),a.hij(" ",a.lcZ(5,3,A.lastActionDate)," ")}}function P(C,b){if(1&C&&(a.TgZ(0,"cvc-user-popover",6),a.YNc(1,N,6,5,"ng-template",null,7,a.W1O),a.qZA()),2&C){const A=a.oxw().$implicit;a.Q6J("userId",A.user.id)}}function w(C,b){if(1&C&&(a.TgZ(0,"a",3),a._UZ(1,"nz-avatar",4),a.YNc(2,P,3,1,"ng-template",null,5,a.W1O),a.qZA()),2&C){const A=b.$implicit,B=a.MAs(3);a.MGl("routerLink","/users/",A.user.id,""),a.xp6(1),a.Q6J("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",B)("nzSrc",A.user.profileImagePath)}}function D(C,b){if(1&C&&(a.ynx(0),a.YNc(1,w,4,5,"a",2),a.BQk()),2&C){const A=a.oxw();a.xp6(1),a.Q6J("ngForOf",A.sortedContributors)}}function u(C,b){1&C&&a._uU(0," None\n")}let F=(()=>{class C{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((A,B)=>B.totalActionCount-A.totalActionCount)}}return C.\u0275fac=function(A){return new(A||C)},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noContributors",""],["class","avatar",3,"routerLink",4,"ngFor","ngForOf"],[1,"avatar",3,"routerLink"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","bottomRight","nzIcon","user","nzSize","small",3,"nzSize","nzPopoverMouseEnterDelay","nzPopoverContent","nzSrc"],["curatorPopover",""],[3,"userId"],["additionalMetadata",""],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(A,B){if(1&A&&(a.YNc(0,D,2,1,"ng-container",0),a.YNc(1,u,1,0,"ng-template",null,1,a.W1O)),2&A){const H=a.MAs(2);a.Q6J("ngIf",B.sortedContributors&&B.sortedContributors.length>0)("ngIfElse",H)}},directives:[n.O5,n.sg,m.yS,h.Dz,O.lU,x.q,L.R7,L.uj],pipes:[S.R,n.uU],styles:[""]}),C})();var z=i(6949);function M(C,b){if(1&C&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&C){const A=b.ngIf;a.xp6(1),a.Q6J("contributors",A)}}function J(C,b){1&C&&a._uU(0," None ")}function $(C,b){if(1&C&&(a.ynx(0),a._UZ(1,"cvc-contributor-stack",5),a.BQk()),2&C){const A=b.ngIf;a.xp6(1),a.Q6J("contributors",A)}}function K(C,b){1&C&&a._uU(0," None ")}let V=(()=>{class C{constructor(A){this.gql=A}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let A=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=A.pipe((0,r.j)("data","contributors","curators")),this.editors$=A.pipe((0,r.j)("data","contributors","editors"))}}return C.\u0275fac=function(A){return new(A||C)(a.Y36(T.kQf))},C.\u0275cmp=a.Xpm({type:C,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],["noCurators",""],["noEditors",""],[3,"contributors"]],template:function(A,B){if(1&A&&(a.TgZ(0,"span",0),a._uU(1,"Curators:"),a.qZA(),a.TgZ(2,"div",1),a.YNc(3,M,2,1,"ng-container",2),a.ALo(4,"ngrxPush"),a.YNc(5,J,1,0,"ng-template",null,3,a.W1O),a.qZA(),a.TgZ(7,"span",0),a._uU(8,"Editors:"),a.qZA(),a.TgZ(9,"div",1),a.YNc(10,$,2,1,"ng-container",2),a.ALo(11,"ngrxPush"),a.YNc(12,K,1,0,"ng-template",null,4,a.W1O),a.qZA()),2&A){const H=a.MAs(6),f=a.MAs(13);a.xp6(3),a.Q6J("ngIf",a.lcZ(4,4,B.curators$))("ngIfElse",H),a.xp6(7),a.Q6J("ngIf",a.lcZ(11,6,B.editors$))("ngIfElse",f)}},directives:[t.ZU,n.O5,F],pipes:[z.fM],styles:["[_nghost-%COMP%]{display:inline-block}.role-group-label[_ngcontent-%COMP%]{margin-left:12px}.role-group[_ngcontent-%COMP%]{display:inline-block}.role-group[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{display:inline-block;margin-left:2px}"]}),C})()},5750:(G,Q,i)=>{i.d(Q,{Z:()=>U});var r=i(9808),a=i(6949),T=i(3618),t=i(325),n=i(6699),m=i(3610),h=i(9444),O=i(6081),x=i(3098),L=i(5e3);let S=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=L.oAB({type:y}),y.\u0275inj=L.cJS({imports:[[r.ez,t.Bz,n.Rt,m.$6,x.q6,h.s,O.J]]}),y})(),U=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=L.oAB({type:y}),y.\u0275inj=L.cJS({imports:[[r.ez,a.WG,T.ZJ,S]]}),y})()},9077:(G,Q,i)=>{i.d(Q,{Q:()=>D});var r=i(6123),a=i(712),T=i(8929),t=i(4850),n=i(7625),m=i(5e3),h=i(9169),O=i(9808),x=i(6042),L=i(2643),S=i(2683),U=i(404),y=i(647),N=i(6949);function P(u,F){if(1&u){const z=m.EpF();m.ynx(0),m.TgZ(1,"button",2),m.NdJ("click",function(){return m.CHM(z),m.oxw().unsubscribe()}),m._UZ(2,"i",3),m.qZA(),m.BQk()}if(2&u){const z=m.oxw();m.xp6(1),m.Q6J("nzLoading",z.isSubmitting)}}function w(u,F){if(1&u){const z=m.EpF();m.TgZ(0,"button",4),m.NdJ("click",function(){return m.CHM(z),m.oxw().subscribe()}),m._UZ(1,"i",5),m.qZA()}if(2&u){const z=m.oxw();m.Q6J("nzLoading",z.isSubmitting)}}let D=(()=>{class u{constructor(z,M,J,$){this.isSubscribedGQL=z,this.unsubscribeMutation=M,this.subscribeMutation=J,this.networkErrorService=$,this.isSubmitting=!1,this.destroy$=new T.xQ,this.unsubscribeMutator=new r.U($),this.subscribeMutator=new r.U($)}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.typename)throw new Error("Must pass in a typename to the CvcEntitySubscriptionButtonComponent");if(void 0===this.subscribableId)throw new Error("Must pass in a subscribableId to the CvcEntitySubscriptionButtonComponent");this.subscribable={id:this.subscribableId,entityType:a.o71[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,t.U)(({data:M})=>M.subscriptionForEntity))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(M=>{var J;M&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}unsubscribe(){this.subscribable&&(this.isSubmitting=!0,this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(M=>{var J;M&&(null===(J=this.queryRef)||void 0===J||J.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return u.\u0275fac=function(z){return new(z||u)(m.Y36(a.A4J),m.Y36(a.m$d),m.Y36(a.jMx),m.Y36(h.Y))},u.\u0275cmp=m.Xpm({type:u,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noSub",""],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(z,M){if(1&z&&(m.YNc(0,P,3,1,"ng-container",0),m.ALo(1,"ngrxPush"),m.YNc(2,w,2,1,"ng-template",null,1,m.W1O)),2&z){const J=m.MAs(3);m.Q6J("ngIf",m.lcZ(1,2,M.existingSubscription$))("ngIfElse",J)}},directives:[O.O5,x.ix,L.dQ,S.w,U.SY,y.Ls],pipes:[N.fM],styles:["[_nghost-%COMP%]{display:block}"]}),u})()},4609:(G,Q,i)=>{i.d(Q,{g:()=>h});var r=i(9808),a=i(6042),T=i(6949),t=i(647),n=i(404),m=i(5e3);let h=(()=>{class O{}return O.\u0275fac=function(L){return new(L||O)},O.\u0275mod=m.oAB({type:O}),O.\u0275inj=m.cJS({imports:[[r.ez,a.sL,t.PV,n.cg,T.WG]]}),O})()},7701:(G,Q,i)=>{i.d(Q,{j:()=>H});var r=i(6654),a=i(5e3),T=i(9808),t=i(325),n=i(8481),m=i(3610),h=i(4850),O=i(712),x=i(7484),L=i(647),S=i(6550),U=i(3098),y=i(6949);function N(f,I){if(1&f&&(a._UZ(0,"i",7),a._uU(1)),2&f){const Z=a.oxw().ngIf;a.xp6(1),a.hij(" ",Z.name," ")}}function P(f,I){if(1&f&&(a.TgZ(0,"cvc-link-tag",9),a._uU(1),a.qZA()),2&f){const Z=a.oxw(2).ngIf;a.Q6J("href",Z.url),a.xp6(1),a.hij(" ",Z.soid," ")}}function w(f,I){if(1&f&&a.YNc(0,P,2,2,"cvc-link-tag",8),2&f){const Z=a.oxw().ngIf;a.Q6J("ngIf","N/A"!=Z.soid)}}function D(f,I){if(1&f&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,N,2,1,"ng-template",null,3,a.W1O),a.YNc(4,w,1,1,"ng-template",null,4,a.W1O),a.TgZ(6,"nz-descriptions",5),a.TgZ(7,"nz-descriptions-item",6),a._uU(8),a.qZA(),a.qZA(),a.qZA(),a.BQk()),2&f){const Z=I.ngIf,W=a.MAs(3),k=a.MAs(5);a.xp6(1),a.Q6J("nzTitle",W)("nzExtra",k),a.xp6(5),a.Q6J("nzColumn",2),a.xp6(2),a.hij(" ",Z.variantCount," ")}}let u=(()=>{class f{constructor(Z){this.gql=Z}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,h.U)(({data:Z})=>Z.variantTypePopover))}}return f.\u0275fac=function(Z){return new(Z||f)(a.Y36(O.tw_))},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(Z,W){1&Z&&(a.TgZ(0,"div",0),a.YNc(1,D,9,4,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&Z&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,W.variantType$)))},directives:[T.O5,x.bd,L.Ls,S.l,U.R7,U.uj],pipes:[y.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),f})();function F(f,I){}function z(f,I){if(1&f&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,F,0,0,"ng-template",6),a.qZA(),a.BQk()),2&f){const Z=a.oxw(),W=a.MAs(2);a.xp6(1),a.Q6J("routerLink",Z.variantType.link),a.xp6(1),a.Q6J("ngTemplateOutlet",W)}}function M(f,I){}function J(f,I){if(1&f&&(a.TgZ(0,"nz-tag",9),a.YNc(1,M,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const Z=a.MAs(2);a.oxw();const W=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",Z),a.xp6(1),a.Q6J("ngTemplateOutlet",W)}}function $(f,I){if(1&f&&a._UZ(0,"cvc-variant-type-popover",10),2&f){const Z=a.oxw(2);a.Q6J("variantTypeId",Z.variantType.id)}}function K(f,I){if(1&f&&(a.YNc(0,J,2,3,"nz-tag",7),a.YNc(1,$,1,1,"ng-template",null,8,a.W1O)),2&f){const Z=a.oxw(),W=a.MAs(6);a.Q6J("ngIf",Z.enablePopover)("ngIfElse",W)}}function V(f,I){}function C(f,I){if(1&f&&a.YNc(0,V,0,0,"ng-template",6),2&f){a.oxw();const Z=a.MAs(2);a.Q6J("ngTemplateOutlet",Z)}}function b(f,I){}function A(f,I){if(1&f&&(a.TgZ(0,"nz-tag"),a.YNc(1,b,0,0,"ng-template",6),a.qZA()),2&f){a.oxw();const Z=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",Z)}}function B(f,I){if(1&f&&(a._UZ(0,"i",11),a._uU(1)),2&f){const Z=a.oxw();a.xp6(1),a.hij(" ",Z.variantType.name,"\n")}}let H=(()=>{class f extends r.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return f.\u0275fac=function(Z){return new(Z||f)},f.\u0275cmp=a.Xpm({type:f,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[a.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(Z,W){if(1&Z&&(a.YNc(0,z,3,2,"ng-container",0),a.YNc(1,K,3,2,"ng-template",null,1,a.W1O),a.YNc(3,C,1,1,"ng-template",null,2,a.W1O),a.YNc(5,A,2,1,"ng-template",null,3,a.W1O),a.YNc(7,B,2,1,"ng-template",null,4,a.W1O)),2&Z){const k=a.MAs(4);a.Q6J("ngIf",W.linked)("ngIfElse",k)}},directives:[T.O5,t.yS,T.tP,n.j,m.lU,u,L.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),f})()},8645:(G,Q,i)=>{i.d(Q,{M:()=>U});var r=i(9808),a=i(325),T=i(8481),t=i(7484),n=i(3630),m=i(3098),h=i(6949),O=i(647),x=i(5e3);let L=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[r.ez,h.WG,O.PV,t.vh,m.q6,n.X]]}),y})();var S=i(3610);let U=(()=>{class y{}return y.\u0275fac=function(P){return new(P||y)},y.\u0275mod=x.oAB({type:y}),y.\u0275inj=x.cJS({imports:[[r.ez,a.Bz,O.PV,T.X,S.$6,L]]}),y})()},1243:(G,Q,i)=>{i.d(Q,{I:()=>a});var r=i(5e3);let a=(()=>{class T{transform(n){if(n){let h=n.toLowerCase().replace(/_/g," ").split(" ");for(var m=0;m{n.r(v),n.d(v,{AssertionAddModule:()=>Ft});var m=n(9808),c=n(325),t=n(5e3),T=n(8992),p=n(1945),A=n(647);let Z=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-assertion-add"]],decls:10,vars:0,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:assertion"],[1,"content"]],template:function(o,r){1&o&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1),t.TgZ(2,"nz-page-header-title",2),t._UZ(3,"i",3),t._uU(4," Add New Assertion "),t.qZA(),t.TgZ(5,"nz-page-header-subtitle"),t._uU(6," Submit and review new assertion items "),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",4),t._UZ(9,"router-outlet"),t.qZA(),t.qZA(),t.qZA())},directives:[T.I,p.$O,p.u9,A.Ls,p.yG,p.u5,c.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}"]}),e})();var u=n(4182),z=n(5109),f=n(4546),x=n(2359),b=n(1894),P=n(6042),C=n(7525),S=n(8776),I=n(1825),F=n(7008),U=n(4375),J=n(7695),N=n(7075),G=n(8390),L=n(3773),D=n(5452),Q=n(5743),$=n(5457),V=n(8006),Y=n(7462),R=n(4623),B=n(3594),j=n(3643),E=n(1135),X=n(2789),K=n(5932),W=n(3416),H=n(2480),w=n(1830),k=n(4581),_=n(1605),q=n(5926),tt=n(1270),et=n(3314),nt=n(3759),ot=n(4902),it=n(5486),st=n(464),rt=n(7795),at=n(5472),dt=n(9946),lt=n(9754),mt=n(4889),O=n(7484),h=n(8144),M=n(3618);let ct=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[m.ez,c.Bz,u.UX,z.s,f.U5,x.L,b.Jb,P.sL,C.j,S.X0,I.A,F.B,U.R,J.C,N.l,G.N,L.g,D.C,Q.W,$.$,V.I,Y.o,R.K,B.q,j.q,E.C,X.o,K.A,W.g,H.r,w.S,k.e,_.e,q.J,tt.i,et.p,nt.D,ot.a,it.$,st.N,rt.k,at.r,dt.d,z.s,lt.K,mt.E,h.zf,O.vh,M.ZJ]]}),e})(),pt=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[m.ez,ct]]}),e})();var ut=n(6123),d=n(6738),gt=n(8929),y=n(7625),ft=n(1837),ht=n(712),yt=n(9169),vt=n(822);function At(e,s){1&e&&(t.TgZ(0,"nz-card"),t.TgZ(1,"nz-typography"),t._uU(2," To add an assertion, please complete the following form, provide a short statement supporting its inclusion into the CIViC database, then click the 'Submit Assertion for Inclusion' button. "),t._UZ(3,"br"),t._UZ(4,"br"),t.TgZ(5,"strong"),t._uU(6,"Please ensure that your submission contains no "),t.TgZ(7,"a",3),t._uU(8,"Protected Health Information"),t.qZA(),t._uU(9,", and is your own original work. By contributing to CIViC you agree to release your contributions to the public domain as described by the "),t.TgZ(10,"a",4),t._uU(11,"Creative Commons Public Domain Dedication (CC0 1.0 Universal)"),t.qZA(),t._uU(12,"."),t.qZA(),t.qZA(),t.qZA())}function zt(e,s){1&e&&t.GkF(0)}function xt(e,s){if(1&e){const o=t.EpF();t.TgZ(0,"formly-form",10),t.NdJ("modelChange",function(a){return t.CHM(o),t.oxw(2).formModel=a}),t.qZA()}if(2&e){const o=t.oxw(2);t.Q6J("form",o.formGroup)("fields",o.formFields)("model",o.formModel)("options",o.formOptions)}}function bt(e,s){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",12),t.qZA()),2&e){const o=t.oxw(3);t.xp6(1),t.Q6J("errors",o.errorMessages)}}function Ct(e,s){if(1&e&&(t.TgZ(0,"p"),t._uU(1,"View "),t.TgZ(2,"a",16),t._uU(3,"its details"),t.qZA(),t._uU(4,"."),t.qZA()),2&e){const o=t.oxw(4);t.xp6(2),t.MGl("routerLink","/assertions/",o.newId,"/summary")}}function St(e,s){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",13),t.YNc(2,Ct,5,1,"ng-template",14,15,t.W1O),t.BQk()),2&e){const o=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",o)}}function Ot(e,s){if(1&e&&(t.YNc(0,bt,2,1,"nz-form-item",11),t.YNc(1,St,4,1,"ng-container",11)),2&e){const o=t.oxw(2);t.Q6J("ngIf",o.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",o.success)}}function Mt(e,s){if(1&e){const o=t.EpF();t.TgZ(0,"nz-spin",5),t.TgZ(1,"form",6),t.NdJ("ngSubmit",function(){t.CHM(o);const a=t.oxw();return a.submitAssertion(a.formModel)}),t.YNc(2,zt,1,0,"ng-container",7),t.YNc(3,xt,1,4,"formly-form",8),t.qZA(),t.YNc(4,Ot,2,2,"ng-template",null,9,t.W1O),t.qZA()}if(2&e){const o=t.MAs(5),r=t.oxw();t.Q6J("nzSpinning",r.loading),t.xp6(1),t.Q6J("formGroup",r.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",o),t.xp6(1),t.Q6J("ngIf",!r.success)}}let Tt=(()=>{class e{constructor(o,r){this.submitAssertionGQL=o,this.networkErrorService=r,this.destroy$=new gt.xQ,this.formGroup=new u.cw({}),this.formOptions={formState:new ft._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitAssertionMutator=new ut.U(r),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Assertion 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:g=>{this.formModel.fields.fdaRegulatoryApproval=g}}},{key:"fdaCompanionTest",type:"fda-test-checkbox",templateOptions:{modelCallback:g=>{this.formModel.fields.fdaCompanionTest=g}}},{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",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:g=>{this.formModel.fields.evidenceItems=g}},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 assertion. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your assertion.",minLength:10}},{key:"cancel",type:"cancel-button"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Assertion",submitSize:"large"}}]}]}toSubmitInput(o){var r,a;if(o){const i=o.fields;return{comment:i.comment&&0!=i.comment.length?i.comment:void 0,organizationId:null===(r=i.organization)||void 0===r?void 0:r.id,fields:{description:d.xt(i.description),summary:d.xt(i.summary),variantId:i.variant[0].id,geneId:i.gene[0].id,variantOrigin:i.variantOrigin,assertionType:i.evidenceType,clinicalSignificance:i.clinicalSignificance,diseaseId:d.uP(i.disease[0].id),assertionDirection:i.evidenceDirection,phenotypeIds:i.phenotypes.map(l=>l.id),drugIds:i.drugs.map(l=>l.id),drugInteractionType:d.uP(i.drugInteractionType),ampLevel:d.uP(i.ampLevel),nccnGuidelineId:d.uP(null===(a=i.nccnGuideline)||void 0===a?void 0:a.id),nccnGuidelineVersion:d.xt(i.nccnGuidelineVersion),acmgCodeIds:i.acmgCodes.map(l=>l.id),fdaCompanionTest:d.uP(i.fdaCompanionTest),fdaRegulatoryApproval:d.uP(i.fdaRegulatoryApproval),evidenceItemIds:i.evidenceItems.map(l=>l.id)}}}}submitAssertion(o){let r=this.toSubmitInput(o);if(r){let a=this.submitAssertionMutator.mutate(this.submitAssertionGQL,{input:r},{},i=>{this.newId=i.submitAssertion.assertion.id});a.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(i=>{i&&(this.success=!0)}),a.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(i=>{i&&(this.errorMessages=i,this.success=!1)}),a.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.loading=i})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(ht.LLl),t.Y36(yt.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-assertion-submit-form"]],decls:3,vars:0,consts:[["nzDirection","vertical"],[4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["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","Assertion Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(o,r){1&o&&(t.TgZ(0,"nz-space",0),t.YNc(1,At,13,0,"nz-card",1),t.YNc(2,Mt,6,4,"nz-spin",2),t.qZA())},directives:[h.NU,h.$1,O.bd,M.ZU,C.W,u._Y,u.JL,f.Lr,u.sg,m.tP,m.O5,S.T7,b.SK,f.Nx,vt.V,x.r,c.yS],styles:["[_nghost-%COMP%]{display:block}"]}),e})();const Zt=[{path:"",component:Z,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-assertion-submit"]],decls:1,vars:0,template:function(o,r){1&o&&t._UZ(0,"cvc-assertion-submit-form")},directives:[Tt],styles:[""]}),e})(),data:{breadcrumb:"Submit New Assertion"}}]}];let Pt=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[c.Bz.forChild(Zt),pt],c.Bz]}),e})();var It=n(5630);let Ft=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[m.ez,Pt,p.KJ,A.PV,It.D]]}),e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4456],{4456:(Ut,v,n)=>{n.r(v),n.d(v,{AssertionAddModule:()=>Ft});var m=n(9808),c=n(325),t=n(5e3),T=n(8992),p=n(1945),A=n(647);let Z=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-assertion-add"]],decls:10,vars:0,consts:[["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:assertion"],[1,"content"]],template:function(o,r){1&o&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1),t.TgZ(2,"nz-page-header-title",2),t._UZ(3,"i",3),t._uU(4," Add New Assertion "),t.qZA(),t.TgZ(5,"nz-page-header-subtitle"),t._uU(6," Submit and review new assertion items "),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",4),t._UZ(9,"router-outlet"),t.qZA(),t.qZA(),t.qZA())},directives:[T.I,p.$O,p.u9,A.Ls,p.yG,p.u5,c.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}"]}),e})();var u=n(4182),z=n(5109),f=n(4546),x=n(2359),b=n(1894),P=n(6042),C=n(7525),S=n(8776),I=n(1825),F=n(7008),U=n(4375),J=n(7695),N=n(3022),G=n(8390),L=n(3773),D=n(5452),Q=n(5743),$=n(5457),V=n(8006),Y=n(7462),R=n(4623),B=n(3594),j=n(3643),E=n(1135),X=n(2789),K=n(5932),W=n(3416),H=n(2480),w=n(1830),k=n(4581),_=n(1605),q=n(5926),tt=n(1270),et=n(3314),nt=n(3759),ot=n(4902),it=n(5486),st=n(464),rt=n(7795),at=n(5472),dt=n(9946),lt=n(9754),mt=n(4889),O=n(7484),h=n(8144),M=n(3618);let ct=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[m.ez,c.Bz,u.UX,z.s,f.U5,x.L,b.Jb,P.sL,C.j,S.X0,I.A,F.B,U.R,J.C,N.e,G.N,L.g,D.C,Q.W,$.$,V.I,Y.o,R.K,B.q,j.q,E.C,X.o,K.A,W.g,H.r,w.S,k.e,_.e,q.J,tt.i,et.p,nt.D,ot.a,it.$,st.N,rt.k,at.r,dt.d,z.s,lt.K,mt.E,h.zf,O.vh,M.ZJ]]}),e})(),pt=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[m.ez,ct]]}),e})();var ut=n(6123),d=n(6738),gt=n(8929),y=n(7625),ft=n(1837),ht=n(712),yt=n(9169),vt=n(822);function At(e,s){1&e&&(t.TgZ(0,"nz-card"),t.TgZ(1,"nz-typography"),t._uU(2," To add an assertion, please complete the following form, provide a short statement supporting its inclusion into the CIViC database, then click the 'Submit Assertion for Inclusion' button. "),t._UZ(3,"br"),t._UZ(4,"br"),t.TgZ(5,"strong"),t._uU(6,"Please ensure that your submission contains no "),t.TgZ(7,"a",3),t._uU(8,"Protected Health Information"),t.qZA(),t._uU(9,", and is your own original work. By contributing to CIViC you agree to release your contributions to the public domain as described by the "),t.TgZ(10,"a",4),t._uU(11,"Creative Commons Public Domain Dedication (CC0 1.0 Universal)"),t.qZA(),t._uU(12,"."),t.qZA(),t.qZA(),t.qZA())}function zt(e,s){1&e&&t.GkF(0)}function xt(e,s){if(1&e){const o=t.EpF();t.TgZ(0,"formly-form",10),t.NdJ("modelChange",function(a){return t.CHM(o),t.oxw(2).formModel=a}),t.qZA()}if(2&e){const o=t.oxw(2);t.Q6J("form",o.formGroup)("fields",o.formFields)("model",o.formModel)("options",o.formOptions)}}function bt(e,s){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",12),t.qZA()),2&e){const o=t.oxw(3);t.xp6(1),t.Q6J("errors",o.errorMessages)}}function Ct(e,s){if(1&e&&(t.TgZ(0,"p"),t._uU(1,"View "),t.TgZ(2,"a",16),t._uU(3,"its details"),t.qZA(),t._uU(4,"."),t.qZA()),2&e){const o=t.oxw(4);t.xp6(2),t.MGl("routerLink","/assertions/",o.newId,"/summary")}}function St(e,s){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",13),t.YNc(2,Ct,5,1,"ng-template",14,15,t.W1O),t.BQk()),2&e){const o=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",o)}}function Ot(e,s){if(1&e&&(t.YNc(0,bt,2,1,"nz-form-item",11),t.YNc(1,St,4,1,"ng-container",11)),2&e){const o=t.oxw(2);t.Q6J("ngIf",o.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",o.success)}}function Mt(e,s){if(1&e){const o=t.EpF();t.TgZ(0,"nz-spin",5),t.TgZ(1,"form",6),t.NdJ("ngSubmit",function(){t.CHM(o);const a=t.oxw();return a.submitAssertion(a.formModel)}),t.YNc(2,zt,1,0,"ng-container",7),t.YNc(3,xt,1,4,"formly-form",8),t.qZA(),t.YNc(4,Ot,2,2,"ng-template",null,9,t.W1O),t.qZA()}if(2&e){const o=t.MAs(5),r=t.oxw();t.Q6J("nzSpinning",r.loading),t.xp6(1),t.Q6J("formGroup",r.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",o),t.xp6(1),t.Q6J("ngIf",!r.success)}}let Tt=(()=>{class e{constructor(o,r){this.submitAssertionGQL=o,this.networkErrorService=r,this.destroy$=new gt.xQ,this.formGroup=new u.cw({}),this.formOptions={formState:new ft._},this.success=!1,this.errorMessages=[],this.loading=!1,this.submitAssertionMutator=new ut.U(r),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Assertion 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:g=>{this.formModel.fields.fdaRegulatoryApproval=g}}},{key:"fdaCompanionTest",type:"fda-test-checkbox",templateOptions:{modelCallback:g=>{this.formModel.fields.fdaCompanionTest=g}}},{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",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:g=>{this.formModel.fields.evidenceItems=g}},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 assertion. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your assertion.",minLength:10}},{key:"cancel",type:"cancel-button"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Assertion",submitSize:"large"}}]}]}toSubmitInput(o){var r,a;if(o){const i=o.fields;return{comment:i.comment&&0!=i.comment.length?i.comment:void 0,organizationId:null===(r=i.organization)||void 0===r?void 0:r.id,fields:{description:d.xt(i.description),summary:d.xt(i.summary),variantId:i.variant[0].id,geneId:i.gene[0].id,variantOrigin:i.variantOrigin,assertionType:i.evidenceType,clinicalSignificance:i.clinicalSignificance,diseaseId:d.uP(i.disease[0].id),assertionDirection:i.evidenceDirection,phenotypeIds:i.phenotypes.map(l=>l.id),drugIds:i.drugs.map(l=>l.id),drugInteractionType:d.uP(i.drugInteractionType),ampLevel:d.uP(i.ampLevel),nccnGuidelineId:d.uP(null===(a=i.nccnGuideline)||void 0===a?void 0:a.id),nccnGuidelineVersion:d.xt(i.nccnGuidelineVersion),acmgCodeIds:i.acmgCodes.map(l=>l.id),fdaCompanionTest:d.uP(i.fdaCompanionTest),fdaRegulatoryApproval:d.uP(i.fdaRegulatoryApproval),evidenceItemIds:i.evidenceItems.map(l=>l.id)}}}}submitAssertion(o){let r=this.toSubmitInput(o);if(r){let a=this.submitAssertionMutator.mutate(this.submitAssertionGQL,{input:r},{},i=>{this.newId=i.submitAssertion.assertion.id});a.submitSuccess$.pipe((0,y.R)(this.destroy$)).subscribe(i=>{i&&(this.success=!0)}),a.submitError$.pipe((0,y.R)(this.destroy$)).subscribe(i=>{i&&(this.errorMessages=i,this.success=!1)}),a.isSubmitting$.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.loading=i})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(ht.LLl),t.Y36(yt.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-assertion-submit-form"]],decls:3,vars:0,consts:[["nzDirection","vertical"],[4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["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","Assertion Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(o,r){1&o&&(t.TgZ(0,"nz-space",0),t.YNc(1,At,13,0,"nz-card",1),t.YNc(2,Mt,6,4,"nz-spin",2),t.qZA())},directives:[h.NU,h.$1,O.bd,M.ZU,C.W,u._Y,u.JL,f.Lr,u.sg,m.tP,m.O5,S.T7,b.SK,f.Nx,vt.V,x.r,c.yS],styles:["[_nghost-%COMP%]{display:block}"]}),e})();const Zt=[{path:"",component:Z,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-assertion-submit"]],decls:1,vars:0,template:function(o,r){1&o&&t._UZ(0,"cvc-assertion-submit-form")},directives:[Tt],styles:[""]}),e})(),data:{breadcrumb:"Submit New Assertion"}}]}];let Pt=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[c.Bz.forChild(Zt),pt],c.Bz]}),e})();var It=n(5630);let Ft=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[m.ez,Pt,p.KJ,A.PV,It.D]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/4579.221a4086674a9f5c.js b/server/public/4579.221a4086674a9f5c.js deleted file mode 100644 index 3a00c43ac..000000000 --- a/server/public/4579.221a4086674a9f5c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4579],{6550:(x,T,n)=>{n.d(T,{l:()=>v});var r=n(5e3),o=n(8481),u=n(404),m=n(647);const p=["*"];let v=(()=>{class l{constructor(){}ngOnInit(){if(void 0===this.href)throw new Error("cvc-link-tag requires href string input, none supplied.")}}return l.\u0275fac=function(h){return new(h||l)},l.\u0275cmp=r.Xpm({type:l,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:p,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(h,f){1&h&&(r.F$t(),r.TgZ(0,"a",0),r.TgZ(1,"nz-tag",1),r._UZ(2,"i",2),r.Hsn(3),r.qZA(),r.qZA()),2&h&&(r.Q6J("href",f.href,r.LSH),r.xp6(1),r.Q6J("nzTooltipTitle",f.tooltip)("nzTooltipTrigger",f.tooltip?"hover":null),r.xp6(1),r.Q6J("nzType",f.iconName?f.iconName:"link"))},directives:[o.j,u.SY,m.Ls],styles:[""]}),l})()},3630:(x,T,n)=>{n.d(T,{X:()=>v});var r=n(9808),o=n(404),u=n(8481),m=n(647),p=n(5e3);let v=(()=>{class l{}return l.\u0275fac=function(h){return new(h||l)},l.\u0275mod=p.oAB({type:l}),l.\u0275inj=p.cJS({imports:[[r.ez,o.cg,u.X,m.PV]]}),l})()},4579:(x,T,n)=>{n.r(T),n.d(T,{ReleasesModule:()=>$});var r=n(9808),o=n(6949),u=n(8144),m=n(1945),p=n(1894),v=n(647),l=n(1132),z=n(3630),h=n(2359),f=n(3618),P=n(5630),A=n(6042),y=n(7484),e=n(5e3);let d=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[r.ez,o.WG,A.sL,m.KJ,p.Jb,v.PV,l.HQ,u.zf,f.ZJ,h.L,y.vh,P.D,z.X]]}),t})();var _=n(325),s=n(373),c=n(1059),C=n(4850),Z=n(712),M=n(8992),E=n(2683),O=n(6550);function R(t,i){1&t&&(e.TgZ(0,"a",11),e._UZ(1,"i",12),e._uU(2," View Data Releases Docs "),e.qZA())}function I(t,i){1&t&&(e.TgZ(0,"nz-row"),e._UZ(1,"nz-alert",13),e.qZA())}function V(t,i){1&t&&(e.TgZ(0,"nz-row"),e.TgZ(1,"p",14),e._uU(2," The CIViC server produces nightly and monthly releases that include a subset of all primary entity records (Genes, Variants, Evidence, Variant Groups, and Assertions). Both TSV and VCF versions are provided below - just locate the specific entity type and data format you wish to obtain, then click on the relevant button to download. "),e.qZA(),e.TgZ(3,"p",14),e._uU(4," These records do not contain user profile data, discussion and commentary, data provenance and revision history, or information dynamically obtained from resources external to CIViC (e.g. MyVariant.Info, MyGene.Info). Variant TSV releases only include variant records with accepted evidence records. Variant TSV releases from before August 2020 include all variant records, irregardless of the status of the associated evidence items. Evidence TSV releases only include accepted evidence items and exclude pending or rejected evidence items. Assertion TSV releases only include accepted assertions. Accepted VCF releases include only variants with accepted evidence items and/or accepted assertions. Accepted & Submitted VCF releases include Variants with accepted and/or submitted evidence items and/or assertions. "),e.qZA(),e.TgZ(5,"p",14),e._uU(6," In order to comply with the VCF specification, the VCFs can only include variants with complete coordinates. By contrast, the TSV variants file may contain variants with coordinates that have not been fully curated in CIViC. Additional variants are of types that can not be properly represented in VCF format. Thus, the number of variants will be lower in the VCFs compared to the number of variants in the TSV. "),e.qZA(),e.TgZ(7,"p",14),e._uU(8," As with all curated evidence and interpretations of CIViC, the contents of these files are made freely available, without restriction under the CC0 license ("),e.TgZ(9,"a",15),e._uU(10,"Creative Commons Public Domain Dedication, CC0 1.0 Universal"),e.qZA(),e._uU(11,"). "),e.qZA(),e.TgZ(12,"p",14),e._uU(13," If you use CIViC content, please consider citing the "),e.TgZ(14,"a",16),e._uU(15,"CIViC publication"),e.qZA(),e._uU(16,". "),e.qZA(),e.qZA())}function U(t,i){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Genes TSV "),e.qZA(),e.qZA()),2&t){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("href",a.geneTsv.path)}}function D(t,i){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Variants TSV "),e.qZA(),e.qZA()),2&t){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("href",a.variantTsv.path)}}function w(t,i){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Evidence TSV "),e.qZA(),e.qZA()),2&t){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("href",a.evidenceTsv.path)}}function b(t,i){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Variant Groups TSV "),e.qZA(),e.qZA()),2&t){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("href",a.variantGroupTsv.path)}}function S(t,i){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Assertions TSV "),e.qZA(),e.qZA()),2&t){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("href",a.assertionTsv.path)}}function L(t,i){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Accepted Variants VCF "),e.qZA(),e.qZA()),2&t){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("href",a.acceptedVariantsVcf.path)}}function B(t,i){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Accepted & Submitted Variants VCF "),e.qZA(),e.qZA()),2&t){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("href",a.acceptedAndSubmittedVariantsVcf.path)}}function N(t,i){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._uU(2),e.qZA(),e.YNc(3,U,3,1,"td",24),e.YNc(4,D,3,1,"td",24),e.YNc(5,w,3,1,"td",24),e.YNc(6,b,3,1,"td",24),e.YNc(7,S,3,1,"td",24),e.YNc(8,L,3,1,"td",24),e.YNc(9,B,3,1,"td",24),e.qZA()),2&t){const a=i.$implicit;e.oxw();const g=e.MAs(29);e.xp6(2),e.Oqu(a.name),e.xp6(1),e.Q6J("ngIf",a.geneTsv)("ngIfElse",g),e.xp6(1),e.Q6J("ngIf",a.variantTsv)("ngIfElse",g),e.xp6(1),e.Q6J("ngIf",a.evidenceTsv)("ngIfElse",g),e.xp6(1),e.Q6J("ngIf",a.variantGroupTsv)("ngIfElse",g),e.xp6(1),e.Q6J("ngIf",a.assertionTsv)("ngIfElse",g),e.xp6(1),e.Q6J("ngIf",a.acceptedVariantsVcf)("ngIfElse",g),e.xp6(1),e.Q6J("ngIf",a.acceptedAndSubmittedVariantsVcf)("ngIfElse",g)}}function F(t,i){1&t&&(e.TgZ(0,"td",26),e._uU(1,"--"),e.qZA())}function J(t,i){if(1&t&&(e.TgZ(0,"nz-row"),e.TgZ(1,"nz-col",17),e.TgZ(2,"div",18),e.TgZ(3,"nz-card",19),e.TgZ(4,"nz-table",20,21),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e.TgZ(8,"thead"),e.TgZ(9,"tr"),e.TgZ(10,"th"),e._uU(11,"Date"),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Genes"),e.qZA(),e.TgZ(14,"th"),e._uU(15,"Variants"),e.qZA(),e.TgZ(16,"th"),e._uU(17,"Evidence"),e.qZA(),e.TgZ(18,"th"),e._uU(19,"Variant Groups"),e.qZA(),e.TgZ(20,"th"),e._uU(21,"Assertions"),e.qZA(),e.TgZ(22,"th"),e._uU(23,"Accepted Variants VCF"),e.qZA(),e.TgZ(24,"th"),e._uU(25,"Accepted & Submitted Variants VCF"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"tbody"),e.YNc(27,N,10,15,"tr",22),e.YNc(28,F,2,0,"ng-template",null,23,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const a=e.MAs(5),g=e.oxw();e.xp6(1),e.Q6J("nzSpan",24),e.xp6(3),e.Q6J("nzData",e.lcZ(6,7,g.releases$))("nzLoading",e.lcZ(7,9,g.loading$))("nzFrontPagination",!0)("nzShowPagination",!0)("nzPageSize",5),e.xp6(23),e.Q6J("ngForOf",a.data)}}const k=[{path:"",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-releases"]],decls:1,vars:0,template:function(a,g){1&a&&e._UZ(0,"router-outlet")},directives:[_.lC],styles:[""]}),t})(),children:[{path:"",redirectTo:"main",pathMatch:"full"},{path:"main",component:(()=>{class t{constructor(a){this.gql=a}ngOnInit(){let a=this.gql.watch().valueChanges;this.loading$=a.pipe((0,s.j)("loading"),(0,c.O)(!0)),this.releases$=a.pipe((0,s.j)("data"),(0,C.U)(g=>g.dataReleases))}}return t.\u0275fac=function(a){return new(a||t)(e.Y36(Z.db2))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-releases-main"]],decls:18,vars:1,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","download"],["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/data_releases.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nzDirection","vertical","nzSpace","large"],[4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/data_releases.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nzType","info","nzMessage","Please Note","nzDescription","TSV and VCF releases of CIViC data are provided at regular intervals for the convenience of those who require the use of a static file. For most users, we recomend utilizing our API which. Using the API will provide you with the richest metadata about CIViC entries as well as the most current versions of all evidence statements. In fact, the entire CIViC web frontend runs off the exact same API that is available for public use."],["nz-typography",""],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["href","http://www.nature.com/ng/journal/v49/n2/full/ng.3774.html","target","_blank"],[3,"nzSpan"],[1,"content"],["nzTitle","Browse All Data Releases"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination","nzPageSize"],["releasesTable",""],[4,"ngFor","ngForOf"],["noData",""],[4,"ngIf","ngIfElse"],["iconName","download",3,"href"],["nz-typography","","nzType","secondary"]],template:function(a,g){1&a&&(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,"Data Releases"),e.qZA(),e.TgZ(9,"p",5),e._uU(10,"The CIViC server produces nightly and monthly releases that include a subset of all primary entity records."),e.qZA(),e.qZA(),e.TgZ(11,"nz-col",6),e.TgZ(12,"nz-space",7),e.YNc(13,R,3,0,"a",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"nz-space",9),e.YNc(15,I,2,0,"nz-row",10),e.YNc(16,V,17,0,"nz-row",10),e.YNc(17,J,30,11,"nz-row",10),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(9),e.Q6J("nzEllipsisRows",2))},directives:[M.I,m.$O,m.u5,p.SK,p.t3,E.w,v.Ls,f.ZU,u.NU,u.$1,A.ix,h.r,y.bd,l.N8,l.Om,l.$Z,l.Uo,l._C,l.p0,r.sg,r.O5,O.l],pipes:[o.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}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}"]}),t})()}]}];let Q=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[_.Bz.forChild(k)],_.Bz]}),t})(),$=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[r.ez,Q,d]]}),t})()},8481:(x,T,n)=>{n.d(T,{j:()=>y,X:()=>e});var r=n(655),o=n(5e3),u=n(8929),m=n(7625),p=n(8693),v=n(1721),l=n(226),z=n(9808),h=n(647),f=n(4182);function P(d,_){if(1&d){const s=o.EpF();o.TgZ(0,"i",1),o.NdJ("click",function(C){return o.CHM(s),o.oxw().closeTag(C)}),o.qZA()}}const A=["*"];let y=(()=>{class d{constructor(s,c,C,Z){this.cdr=s,this.renderer=c,this.elementRef=C,this.directionality=Z,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new o.vpe,this.nzCheckedChange=new o.vpe,this.dir="ltr",this.destroy$=new u.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(s){this.nzOnClose.emit(s),s.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const s=this.elementRef.nativeElement,c=new RegExp(`(ant-tag-(?:${[...p.uf,...p.Bh].join("|")}))`,"g"),C=s.classList.toString(),Z=[];let M=c.exec(C);for(;null!==M;)Z.push(M[1]),M=c.exec(C);s.classList.remove(...Z)}setPresetColor(){const s=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,p.o2)(this.nzColor)||(0,p.M8)(this.nzColor)),this.isPresetColor&&s.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var s;null===(s=this.directionality.change)||void 0===s||s.pipe((0,m.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(s){const{nzColor:c}=s;c&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return d.\u0275fac=function(s){return new(s||d)(o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(l.Is,8))},d.\u0275cmp=o.Xpm({type:d,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(s,c){1&s&&o.NdJ("click",function(){return c.updateCheckedStatus()}),2&s&&(o.Udp("background-color",c.isPresetColor?"":c.nzColor),o.ekj("ant-tag-has-color",c.nzColor&&!c.isPresetColor)("ant-tag-checkable","checkable"===c.nzMode)("ant-tag-checkable-checked",c.nzChecked)("ant-tag-rtl","rtl"===c.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[o.TTD],ngContentSelectors:A,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(s,c){1&s&&(o.F$t(),o.Hsn(0),o.YNc(1,P,1,0,"i",0)),2&s&&(o.xp6(1),o.Q6J("ngIf","closeable"===c.nzMode))},directives:[z.O5,h.Ls],encapsulation:2,changeDetection:0}),(0,r.gn)([(0,v.yF)()],d.prototype,"nzChecked",void 0),d})(),e=(()=>{class d{}return d.\u0275fac=function(s){return new(s||d)},d.\u0275mod=o.oAB({type:d}),d.\u0275inj=o.cJS({imports:[[l.vT,z.ez,f.u5,h.PV]]}),d})()}}]); \ No newline at end of file diff --git a/server/public/4579.ce3e7d2abb9eb0af.js b/server/public/4579.ce3e7d2abb9eb0af.js new file mode 100644 index 000000000..f17338891 --- /dev/null +++ b/server/public/4579.ce3e7d2abb9eb0af.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4579],{4579:(B,g,o)=>{o.r(g),o.d(g,{ReleasesModule:()=>Y});var r=o(9808),h=o(6949),c=o(8144),l=o(1945),d=o(1894),f=o(647),s=o(1132),T=o(3630),u=o(2359),m=o(3618),_=o(5630),z=o(6042),Z=o(7484),e=o(5e3);let C=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[r.ez,h.WG,z.sL,l.KJ,d.Jb,f.PV,s.HQ,c.zf,m.ZJ,u.L,Z.vh,_.D,T.X]]}),t})();var p=o(325),v=o(373),x=o(1059),y=o(4850),A=o(712),M=o(8992),V=o(2683),w=o(6550);function b(t,a){1&t&&(e.TgZ(0,"a",11),e._UZ(1,"i",12),e._uU(2," View Data Releases Docs "),e.qZA())}function R(t,a){1&t&&(e.TgZ(0,"nz-row"),e._UZ(1,"nz-alert",13),e.qZA())}function U(t,a){1&t&&(e.TgZ(0,"nz-row"),e.TgZ(1,"p",14),e._uU(2," The CIViC server produces nightly and monthly releases that include a subset of all primary entity records (Genes, Variants, Evidence, Variant Groups, and Assertions). Both TSV and VCF versions are provided below - just locate the specific entity type and data format you wish to obtain, then click on the relevant button to download. "),e.qZA(),e.TgZ(3,"p",14),e._uU(4," These records do not contain user profile data, discussion and commentary, data provenance and revision history, or information dynamically obtained from resources external to CIViC (e.g. MyVariant.Info, MyGene.Info). Variant TSV releases only include variant records with accepted evidence records. Variant TSV releases from before August 2020 include all variant records, irregardless of the status of the associated evidence items. Evidence TSV releases only include accepted evidence items and exclude pending or rejected evidence items. Assertion TSV releases only include accepted assertions. Accepted VCF releases include only variants with accepted evidence items and/or accepted assertions. Accepted & Submitted VCF releases include Variants with accepted and/or submitted evidence items and/or assertions. "),e.qZA(),e.TgZ(5,"p",14),e._uU(6," In order to comply with the VCF specification, the VCFs can only include variants with complete coordinates. By contrast, the TSV variants file may contain variants with coordinates that have not been fully curated in CIViC. Additional variants are of types that can not be properly represented in VCF format. Thus, the number of variants will be lower in the VCFs compared to the number of variants in the TSV. "),e.qZA(),e.TgZ(7,"p",14),e._uU(8," As with all curated evidence and interpretations of CIViC, the contents of these files are made freely available, without restriction under the CC0 license ("),e.TgZ(9,"a",15),e._uU(10,"Creative Commons Public Domain Dedication, CC0 1.0 Universal"),e.qZA(),e._uU(11,"). "),e.qZA(),e.TgZ(12,"p",14),e._uU(13," If you use CIViC content, please consider citing the "),e.TgZ(14,"a",16),e._uU(15,"CIViC publication"),e.qZA(),e._uU(16,". "),e.qZA(),e.qZA())}function I(t,a){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Genes TSV "),e.qZA(),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("href",n.geneTsv.path)}}function q(t,a){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Variants TSV "),e.qZA(),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("href",n.variantTsv.path)}}function P(t,a){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Evidence TSV "),e.qZA(),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("href",n.evidenceTsv.path)}}function S(t,a){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Variant Groups TSV "),e.qZA(),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("href",n.variantGroupTsv.path)}}function O(t,a){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Assertions TSV "),e.qZA(),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("href",n.assertionTsv.path)}}function F(t,a){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Accepted Variants VCF "),e.qZA(),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("href",n.acceptedVariantsVcf.path)}}function J(t,a){if(1&t&&(e.TgZ(0,"td"),e.TgZ(1,"cvc-link-tag",25),e._uU(2," Accepted & Submitted Variants VCF "),e.qZA(),e.qZA()),2&t){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("href",n.acceptedAndSubmittedVariantsVcf.path)}}function Q(t,a){if(1&t&&(e.TgZ(0,"tr"),e.TgZ(1,"td"),e._uU(2),e.qZA(),e.YNc(3,I,3,1,"td",24),e.YNc(4,q,3,1,"td",24),e.YNc(5,P,3,1,"td",24),e.YNc(6,S,3,1,"td",24),e.YNc(7,O,3,1,"td",24),e.YNc(8,F,3,1,"td",24),e.YNc(9,J,3,1,"td",24),e.qZA()),2&t){const n=a.$implicit;e.oxw();const i=e.MAs(29);e.xp6(2),e.Oqu(n.name),e.xp6(1),e.Q6J("ngIf",n.geneTsv)("ngIfElse",i),e.xp6(1),e.Q6J("ngIf",n.variantTsv)("ngIfElse",i),e.xp6(1),e.Q6J("ngIf",n.evidenceTsv)("ngIfElse",i),e.xp6(1),e.Q6J("ngIf",n.variantGroupTsv)("ngIfElse",i),e.xp6(1),e.Q6J("ngIf",n.assertionTsv)("ngIfElse",i),e.xp6(1),e.Q6J("ngIf",n.acceptedVariantsVcf)("ngIfElse",i),e.xp6(1),e.Q6J("ngIf",n.acceptedAndSubmittedVariantsVcf)("ngIfElse",i)}}function N(t,a){1&t&&(e.TgZ(0,"td",26),e._uU(1,"--"),e.qZA())}function E(t,a){if(1&t&&(e.TgZ(0,"nz-row"),e.TgZ(1,"nz-col",17),e.TgZ(2,"div",18),e.TgZ(3,"nz-card",19),e.TgZ(4,"nz-table",20,21),e.ALo(6,"ngrxPush"),e.ALo(7,"ngrxPush"),e.TgZ(8,"thead"),e.TgZ(9,"tr"),e.TgZ(10,"th"),e._uU(11,"Date"),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Genes"),e.qZA(),e.TgZ(14,"th"),e._uU(15,"Variants"),e.qZA(),e.TgZ(16,"th"),e._uU(17,"Evidence"),e.qZA(),e.TgZ(18,"th"),e._uU(19,"Variant Groups"),e.qZA(),e.TgZ(20,"th"),e._uU(21,"Assertions"),e.qZA(),e.TgZ(22,"th"),e._uU(23,"Accepted Variants VCF"),e.qZA(),e.TgZ(24,"th"),e._uU(25,"Accepted & Submitted Variants VCF"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(26,"tbody"),e.YNc(27,Q,10,15,"tr",22),e.YNc(28,N,2,0,"ng-template",null,23,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t){const n=e.MAs(5),i=e.oxw();e.xp6(1),e.Q6J("nzSpan",24),e.xp6(3),e.Q6J("nzData",e.lcZ(6,7,i.releases$))("nzLoading",e.lcZ(7,9,i.loading$))("nzFrontPagination",!0)("nzShowPagination",!0)("nzPageSize",5),e.xp6(23),e.Q6J("ngForOf",n.data)}}const $=[{path:"",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-releases"]],decls:1,vars:0,template:function(n,i){1&n&&e._UZ(0,"router-outlet")},directives:[p.lC],styles:[""]}),t})(),children:[{path:"",redirectTo:"main",pathMatch:"full"},{path:"main",component:(()=>{class t{constructor(n){this.gql=n}ngOnInit(){let n=this.gql.watch().valueChanges;this.loading$=n.pipe((0,v.j)("loading"),(0,x.O)(!0)),this.releases$=n.pipe((0,v.j)("data"),(0,y.U)(i=>i.dataReleases))}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(A.db2))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-releases-main"]],decls:18,vars:1,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","download"],["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/data_releases.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nzDirection","vertical","nzSpace","large"],[4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/data_releases.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nzType","info","nzMessage","Please Note","nzDescription","TSV and VCF releases of CIViC data are provided at regular intervals for the convenience of those who require the use of a static file. For most users, we recomend utilizing our API which. Using the API will provide you with the richest metadata about CIViC entries as well as the most current versions of all evidence statements. In fact, the entire CIViC web frontend runs off the exact same API that is available for public use."],["nz-typography",""],["href","https://creativecommons.org/publicdomain/zero/1.0/","target","_blank"],["href","http://www.nature.com/ng/journal/v49/n2/full/ng.3774.html","target","_blank"],[3,"nzSpan"],[1,"content"],["nzTitle","Browse All Data Releases"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination","nzPageSize"],["releasesTable",""],[4,"ngFor","ngForOf"],["noData",""],[4,"ngIf","ngIfElse"],["iconName","download",3,"href"],["nz-typography","","nzType","secondary"]],template:function(n,i){1&n&&(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,"Data Releases"),e.qZA(),e.TgZ(9,"p",5),e._uU(10,"The CIViC server produces nightly and monthly releases that include a subset of all primary entity records."),e.qZA(),e.qZA(),e.TgZ(11,"nz-col",6),e.TgZ(12,"nz-space",7),e.YNc(13,b,3,0,"a",8),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"nz-space",9),e.YNc(15,R,2,0,"nz-row",10),e.YNc(16,U,17,0,"nz-row",10),e.YNc(17,E,30,11,"nz-row",10),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.xp6(9),e.Q6J("nzEllipsisRows",2))},directives:[M.I,l.$O,l.u5,d.SK,d.t3,V.w,f.Ls,m.ZU,c.NU,c.$1,z.ix,u.r,Z.bd,s.N8,s.Om,s.$Z,s.Uo,s._C,s.p0,r.sg,r.O5,w.l],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}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}"]}),t})()}]}];let D=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[p.Bz.forChild($)],p.Bz]}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[r.ez,D,C]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/4584.cd2fc068f9edf75f.js b/server/public/4584.cd2fc068f9edf75f.js deleted file mode 100644 index 38d229ab6..000000000 --- a/server/public/4584.cd2fc068f9edf75f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4584],{8616:(F,M,t)=>{t.d(M,{u:()=>o});var p=t(5e3),n=t(685),e=t(1912),C=t(3618),z=t(647);function i(l,s){1&l&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function _(l,s){1&l&&p._UZ(0,"cvc-login-button")}function h(l,s){1&l&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let o=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=p.Xpm({type:l,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(d,u){if(1&d&&(p.TgZ(0,"nz-empty",0),p.YNc(1,i,2,0,"ng-template",null,1,p.W1O),p.YNc(3,_,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,h,2,0,"ng-template",null,3,p.W1O)),2&d){const O=p.MAs(2),a=p.MAs(4),D=p.MAs(6);p.Q6J("nzNotFoundImage",D)("nzNotFoundContent",O)("nzNotFoundFooter",a)}},directives:[n.p9,e.s,C.ZU,z.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),l})()},9386:(F,M,t)=>{t.d(M,{a:()=>_});var p=t(9808),n=t(1844),e=t(685),C=t(647),z=t(3618),i=t(5e3);let _=(()=>{class h{}return h.\u0275fac=function(l){return new(l||h)},h.\u0275mod=i.oAB({type:h}),h.\u0275inj=i.cJS({imports:[[p.ez,n.B,e.Xo,C.PV,z.ZJ]]}),h})()},7701:(F,M,t)=>{t.d(M,{j:()=>A});var p=t(6654),n=t(5e3),e=t(9808),C=t(325),z=t(8481),i=t(3610),_=t(4850),h=t(712),o=t(7484),l=t(647),s=t(6550),d=t(3098),u=t(6949);function O(c,x){if(1&c&&(n._UZ(0,"i",7),n._uU(1)),2&c){const v=n.oxw().ngIf;n.xp6(1),n.hij(" ",v.name," ")}}function a(c,x){if(1&c&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&c){const v=n.oxw(2).ngIf;n.Q6J("href",v.url),n.xp6(1),n.hij(" ",v.soid," ")}}function D(c,x){if(1&c&&n.YNc(0,a,2,2,"cvc-link-tag",8),2&c){const v=n.oxw().ngIf;n.Q6J("ngIf","N/A"!=v.soid)}}function L(c,x){if(1&c&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,O,2,1,"ng-template",null,3,n.W1O),n.YNc(4,D,1,1,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&c){const v=x.ngIf,V=n.MAs(3),B=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",V)("nzExtra",B),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",v.variantCount," ")}}let Z=(()=>{class c{constructor(v){this.gql=v}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,_.U)(({data:v})=>v.variantTypePopover))}}return c.\u0275fac=function(v){return new(v||c)(n.Y36(h.tw_))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(v,V){1&v&&(n.TgZ(0,"div",0),n.YNc(1,L,9,4,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&v&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,V.variantType$)))},directives:[e.O5,o.bd,l.Ls,s.l,d.R7,d.uj],pipes:[u.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),c})();function S(c,x){}function N(c,x){if(1&c&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,S,0,0,"ng-template",6),n.qZA(),n.BQk()),2&c){const v=n.oxw(),V=n.MAs(2);n.xp6(1),n.Q6J("routerLink",v.variantType.link),n.xp6(1),n.Q6J("ngTemplateOutlet",V)}}function y(c,x){}function P(c,x){if(1&c&&(n.TgZ(0,"nz-tag",9),n.YNc(1,y,0,0,"ng-template",6),n.qZA()),2&c){n.oxw();const v=n.MAs(2);n.oxw();const V=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",v),n.xp6(1),n.Q6J("ngTemplateOutlet",V)}}function f(c,x){if(1&c&&n._UZ(0,"cvc-variant-type-popover",10),2&c){const v=n.oxw(2);n.Q6J("variantTypeId",v.variantType.id)}}function E(c,x){if(1&c&&(n.YNc(0,P,2,3,"nz-tag",7),n.YNc(1,f,1,1,"ng-template",null,8,n.W1O)),2&c){const v=n.oxw(),V=n.MAs(6);n.Q6J("ngIf",v.enablePopover)("ngIfElse",V)}}function m(c,x){}function I(c,x){if(1&c&&n.YNc(0,m,0,0,"ng-template",6),2&c){n.oxw();const v=n.MAs(2);n.Q6J("ngTemplateOutlet",v)}}function r(c,x){}function g(c,x){if(1&c&&(n.TgZ(0,"nz-tag"),n.YNc(1,r,0,0,"ng-template",6),n.qZA()),2&c){n.oxw();const v=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",v)}}function T(c,x){if(1&c&&(n._UZ(0,"i",11),n._uU(1)),2&c){const v=n.oxw();n.xp6(1),n.hij(" ",v.variantType.name,"\n")}}let A=(()=>{class c extends p.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return c.\u0275fac=function(v){return new(v||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(v,V){if(1&v&&(n.YNc(0,N,3,2,"ng-container",0),n.YNc(1,E,3,2,"ng-template",null,1,n.W1O),n.YNc(3,I,1,1,"ng-template",null,2,n.W1O),n.YNc(5,g,2,1,"ng-template",null,3,n.W1O),n.YNc(7,T,2,1,"ng-template",null,4,n.W1O)),2&v){const B=n.MAs(4);n.Q6J("ngIf",V.linked)("ngIfElse",B)}},directives:[e.O5,C.yS,e.tP,z.j,i.lU,Z,l.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),c})()},8645:(F,M,t)=>{t.d(M,{M:()=>d});var p=t(9808),n=t(325),e=t(8481),C=t(7484),z=t(3630),i=t(3098),_=t(6949),h=t(647),o=t(5e3);let l=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=o.oAB({type:u}),u.\u0275inj=o.cJS({imports:[[p.ez,_.WG,h.PV,C.vh,i.q6,z.X]]}),u})();var s=t(3610);let d=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=o.oAB({type:u}),u.\u0275inj=o.cJS({imports:[[p.ez,n.Bz,h.PV,e.X,s.$6,l]]}),u})()},9990:(F,M,t)=>{t.d(M,{M:()=>l});var p=t(9808),n=t(8776),e=t(5e3),C=t(656),z=t(4182);const _={name:"ensembl-version",validation:(s,d)=>{if(null==s.value)return null;{let u=+s.value;return u<75||u>150?{"ensembl-version":!0}:null}}},h={name:"ensembl-version",message:(s,d)=>{var u;return`${null===(u=d.formControl)||void 0===u?void 0:u.value} is not a valid version of Ensembl. Must be an number between 75 and the latest version of Ensembl.`}},o={name:"cvc-ensembl-input",component:(()=>{class s extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{label:"Ensembl Version",helpText:"Enter a valid Ensembl database version (e.g. 75)."},validators:{validation:["ensembl-version"]}}}}return s.\u0275fac=function(){let d;return function(O){return(d||(d=e.n5z(s)))(O||s)}}(),s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-ensembl-input-type"]],features:[e.qOj],decls:1,vars:2,consts:[[3,"formControl","formlyAttributes"]],template:function(u,O){1&u&&e._UZ(0,"nz-input-number",0),2&u&&e.Q6J("formControl",O.formControl)("formlyAttributes",O.field)},directives:[C._,z.JJ,z.oH,n.VQ],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),s})(),wrappers:["form-field"]};let l=(()=>{class s{}return s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[p.ez,z.u5,z.UX,n.X0.forChild({types:[o],validators:[_],validationMessages:[h]}),C.Z]]}),s})()},7462:(F,M,t)=>{t.d(M,{o:()=>h});var p=t(9808),n=t(8776),e=t(5e3),C=t(1047),z=t(4182);const _={name:"cvc-textarea",component:(()=>{class o extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return o.\u0275fac=function(){let l;return function(d){return(l||(l=e.n5z(o)))(d||o)}}(),o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-textarea-base-type"]],features:[e.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(s,d){1&s&&e._UZ(0,"textarea",0),2&s&&e.Q6J("formControl",d.formControl)("formlyAttributes",d.field)("nzAutosize",d.to.autosize)("placeholder",d.to.placeholder)},directives:[C.Zp,z.Fj,C.rh,z.JJ,z.oH,n.VQ],styles:[""],changeDetection:0}),o})(),wrappers:["form-field"]};let h=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,z.u5,z.UX,n.X0.forChild({types:[_]}),C.o7]]}),o})()},9911:(F,M,t)=>{t.d(M,{G:()=>h});var p=t(9808),n=t(8776),e=t(5e3),C=t(7484);const i={name:"variant-coordinates-card",component:(()=>{class o extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{isFusionVariant:!1}}}}return o.\u0275fac=function(){let l;return function(d){return(l||(l=e.n5z(o)))(d||o)}}(),o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-variant-coordinates-card-type"]],features:[e.qOj],decls:3,vars:1,consts:[[3,"nzTitle"],["fieldComponent",""]],template:function(s,d){1&s&&(e.TgZ(0,"nz-card",0),e.GkF(1,null,1),e.qZA()),2&s&&e.Q6J("nzTitle",d.to.label)},directives:[C.bd],styles:[""],changeDetection:0}),o})()};var _=t(4182);let h=(()=>{class o{}return o.\u0275fac=function(s){return new(s||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[p.ez,_.UX,n.X0.forChild({types:[i]}),C.vh]]}),o})()},6501:(F,M,t)=>{t.d(M,{r:()=>N});var p=t(9808),n=t(8776),e=t(8929),C=t(7625),z=t(373),i=t(5e3),_=t(712),h=t(8054),o=t(4182),l=t(6949),s=t(7701);function d(y,P){if(1&y&&(i.TgZ(0,"nz-option",6),i._uU(1),i.qZA()),2&y){const f=P.$implicit;i.hYB("nzLabel","",f.name," (",f.soid,")"),i.Q6J("nzValue",f),i.xp6(1),i.AsE(" ",f.name," (",f.soid,") ")}}function u(y,P){if(1&y&&(i.ynx(0),i.YNc(1,d,2,5,"nz-option",5),i.BQk()),2&y){const f=P.ngrxLet;i.xp6(1),i.Q6J("ngForOf",f)}}function O(y,P){1&y&&i._uU(0," No variant type found in CIViC that matches the string provided. ")}function a(y,P){if(1&y){const f=i.EpF();i.ynx(0),i.TgZ(1,"nz-select",2),i.NdJ("nzOnSearch",function(m){return i.CHM(f),i.oxw().to.onSearch(m)}),i.YNc(2,u,2,1,"ng-container",3),i.qZA(),i.YNc(3,O,1,0,"ng-template",null,4,i.W1O),i.BQk()}if(2&y){const f=i.MAs(4),E=i.oxw();i.xp6(1),i.Q6J("formControl",E.formControl)("formlyAttributes",E.field)("nzPlaceHolder",E.to.placeholder?E.to.placeholder:null)("nzNotFoundContent",f)("nzShowArrow",E.to.showArrow)("nzFilterOption",E.to.filterOption),i.xp6(1),i.Q6J("ngrxLet",E.variantTypes$)}}function D(y,P){if(1&y&&i._UZ(0,"cvc-variant-type-tag",7),2&y){const f=i.oxw();i.Q6J("variantType",f.formControl.value)}}const Z={name:"variant-type-input",component:(()=>{class y extends n.fS{constructor(f){super(),this.variantTypeTypeaheadQuery=f,this.destroy$=new e.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Variant Types",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.variantTypeTypeaheadQuery.watch({name:""}),this.variantTypes$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,z.j)("data","variantTypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=f=>{var E;this.to.fieldValue=f,this.to.fieldLength=f.length,!(f.lengththis.to.maxLength)&&(null===(E=this.queryRef)||void 0===E||E.refetch({name:f}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(_.BnY))},y.\u0275cmp=i.Xpm({type:y,selectors:[["cvc-variant-type-input-type"]],features:[i.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"variantType"]],template:function(f,E){if(1&f&&(i.YNc(0,a,5,7,"ng-container",0),i.YNc(1,D,1,1,"ng-template",null,1,i.W1O)),2&f){const m=i.MAs(2);i.Q6J("ngIf",!(null!=E.formControl.value&&E.formControl.value.id))("ngIfElse",m)}},directives:[p.O5,h.Vq,o.JJ,o.oH,n.VQ,l.eJ,p.sg,h.Ip,s.j],styles:[""]}),y})()};var S=t(8645);let N=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=i.oAB({type:y}),y.\u0275inj=i.cJS({imports:[[p.ez,o.UX,n.X0.forChild({types:[Z]}),l.WG,h.LV,S.M]]}),y})()},6738:(F,M,t)=>{function p(o){let l={value:void 0,unset:void 0};return o&&o.trim().length>0?l.value=o.trim():l.unset=!0,l}function n(o){let l={value:void 0,unset:void 0};return void 0!==o?l.value=o:l.unset=!0,l}t.d(M,{aP:()=>h,li:()=>e,Zg:()=>C,_$:()=>z,uP:()=>n,dh:()=>i,xt:()=>p});var e=(()=>{return(o=e||(e={}))[o.NotApplicable=0]="NotApplicable",o[o.NoneFound=1]="NoneFound",o[o.Found=2]="Found",e;var o})();function C(o,l){let s,d,u;return l==e.Found?(s=void 0,d=void 0,u=o):l==e.NoneFound?(d=!0,s=void 0,u=void 0):(s=!0,d=void 0,u=void 0),{ids:u?u.map(O=>+O):void 0,noneFound:d,notApplicable:s}}function z(o){return o?{chromosome:_(o.chromosome),representativeTranscript:_(o.representativeTranscript),start:o.start?+o.start:void 0,stop:o.stop?+o.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function i(o){let l={value:void 0,unset:void 0};return o?l.value=o:l.unset=!0,l}function _(o){let l;return l=o&&o.length>0?o:void 0,l}const h=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7338:(F,M,t)=>{t.d(M,{z:()=>I});var p=t(9808),n=t(9444),e=t(6949),C=t(8776),z=t(7484),i=t(5482),_=t(4546),h=t(1894),o=t(647),l=t(3610),s=t(8144),d=t(3618),u=t(5109),O=t(6789),a=t(5e3),D=t(2313);let L=(()=>{class r{constructor(T){this.sanitizer=T}transform(T){return this.sanitizer.bypassSecurityTrustHtml(T)}}return r.\u0275fac=function(T){return new(T||r)(a.Y36(D.H7,16))},r.\u0275pipe=a.Yjl({name:"sanitizeHtml",type:r,pure:!0}),r})();function Z(r,g){if(1&r&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&r){const T=a.oxw(2);a.xp6(1),a.Oqu(T.to.label)}}function S(r,g){if(1&r&&a._UZ(0,"i",11),2&r){a.oxw();const T=a.MAs(3);a.Q6J("nzPopoverContent",T)}}function N(r,g){if(1&r&&(a._UZ(0,"span",12),a.ALo(1,"sanitizeHtml")),2&r){const T=a.oxw(3);a.Q6J("innerHtml",a.lcZ(1,1,T.to.helpText),a.oJD)}}function y(r,g){1&r&&(a.ynx(0),a.YNc(1,S,1,1,"i",9),a.YNc(2,N,2,3,"ng-template",null,10,a.W1O),a.BQk())}function P(r,g){if(1&r&&(a.ynx(0),a.TgZ(1,"nz-form-label",7),a.TgZ(2,"nz-space"),a.YNc(3,Z,2,1,"span",8),a.YNc(4,y,4,0,"ng-container",1),a.qZA(),a.qZA(),a.BQk()),2&r){const T=a.oxw();a.xp6(1),a.Q6J("nzRequired",T.to.required&&!0!==T.to.hideRequiredMarker)("nzFor",T.id),a.xp6(3),a.Q6J("ngIf",T.to.helpText)}}const f=function(r){return{hidden:r}},m={wrappers:[{name:"form-field",component:(()=>{class r extends C.n2{get errorState(){return this.showError?"error":""}}return r.\u0275fac=function(){let g;return function(A){return(g||(g=a.n5z(r)))(A||r)}}(),r.\u0275cmp=a.Xpm({type:r,selectors:[["cvc-form-field-wrapper"]],features:[a.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(T,A){1&T&&(a.TgZ(0,"div",0),a.TgZ(1,"nz-form-item"),a.YNc(2,P,5,3,"ng-container",1),a.TgZ(3,"nz-form-control",2),a.GkF(4,null,3),a.qZA(),a.TgZ(6,"nz-typography",4),a._UZ(7,"formly-validation-message",5),a.qZA(),a.TgZ(8,"nz-typography",6),a._uU(9),a.qZA(),a.qZA(),a.qZA()),2&T&&(a.Q6J("ngClass",a.VKq(5,f,!0===A.to.hidden)),a.xp6(2),a.Q6J("ngIf",A.to.label&&!0!==A.to.hideLabel),a.xp6(1),a.Q6J("nzValidateStatus",A.errorState),a.xp6(4),a.Q6J("field",A.field),a.xp6(2),a.hij(" ",A.to.optionText," "))},directives:[p.mk,h.SK,_.Nx,p.O5,h.t3,_.iK,s.NU,s.$1,o.Ls,l.lU,_.Fd,d.ZU,C.u_],pipes:[L],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),r})()}]};let I=(()=>{class r{}return r.\u0275fac=function(T){return new(T||r)},r.\u0275mod=a.oAB({type:r}),r.\u0275inj=a.cJS({imports:[[p.ez,e.WG,C.X0.forChild(m),h.Jb,z.vh,i.cD,O._,u.s,_.U5,o.PV,s.zf,l.$6,n.s,d.ZJ]]}),r})()},6462:(F,M,t)=>{t.d(M,{i:()=>f,m:()=>E});var p=t(655),n=t(1159),e=t(5e3),C=t(4182),z=t(8929),i=t(3753),_=t(7625),h=t(9439),o=t(1721),l=t(5664),s=t(226),d=t(2643),u=t(9808),O=t(647),a=t(969);const D=["switchElement"];function L(m,I){1&m&&e._UZ(0,"i",8)}function Z(m,I){if(1&m&&(e.ynx(0),e._uU(1),e.BQk()),2&m){const r=e.oxw(2);e.xp6(1),e.Oqu(r.nzCheckedChildren)}}function S(m,I){if(1&m&&(e.ynx(0),e.YNc(1,Z,2,1,"ng-container",9),e.BQk()),2&m){const r=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",r.nzCheckedChildren)}}function N(m,I){if(1&m&&(e.ynx(0),e._uU(1),e.BQk()),2&m){const r=e.oxw(2);e.xp6(1),e.Oqu(r.nzUnCheckedChildren)}}function y(m,I){if(1&m&&e.YNc(0,N,2,1,"ng-container",9),2&m){const r=e.oxw();e.Q6J("nzStringTemplateOutlet",r.nzUnCheckedChildren)}}let f=(()=>{class m{constructor(r,g,T,A,c,x){this.nzConfigService=r,this.host=g,this.ngZone=T,this.cdr=A,this.focusMonitor=c,this.directionality=x,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new z.xQ}updateValue(r){this.isChecked!==r&&(this.isChecked=r,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,_.R)(this.destroy$)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,i.R)(this.host.nativeElement,"click").pipe((0,_.R)(this.destroy$)).subscribe(r=>{r.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,i.R)(this.switchElement.nativeElement,"keydown").pipe((0,_.R)(this.destroy$)).subscribe(r=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:g}=r;g!==n.oh&&g!==n.SV&&g!==n.L_&&g!==n.K5||(r.preventDefault(),this.ngZone.run(()=>{g===n.oh?this.updateValue(!1):g===n.SV?this.updateValue(!0):(g===n.L_||g===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,_.R)(this.destroy$)).subscribe(r=>{r||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(r){this.isChecked=r,this.cdr.markForCheck()}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.nzDisabled=r,this.cdr.markForCheck()}}return m.\u0275fac=function(r){return new(r||m)(e.Y36(h.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(l.tE),e.Y36(s.Is,8))},m.\u0275cmp=e.Xpm({type:m,selectors:[["nz-switch"]],viewQuery:function(r,g){if(1&r&&e.Gf(D,7),2&r){let T;e.iGM(T=e.CRH())&&(g.switchElement=T.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[e._Bn([{provide:C.JU,useExisting:(0,e.Gpc)(()=>m),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(r,g){if(1&r&&(e.TgZ(0,"button",0,1),e.TgZ(2,"span",2),e.YNc(3,L,1,0,"i",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,S,2,1,"ng-container",5),e.YNc(6,y,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&r){const T=e.MAs(7);e.ekj("ant-switch-checked",g.isChecked)("ant-switch-loading",g.nzLoading)("ant-switch-disabled",g.nzDisabled)("ant-switch-small","small"===g.nzSize)("ant-switch-rtl","rtl"===g.dir),e.Q6J("disabled",g.nzDisabled)("nzWaveExtraNode",!0),e.xp6(3),e.Q6J("ngIf",g.nzLoading),e.xp6(2),e.Q6J("ngIf",g.isChecked)("ngIfElse",T)}},directives:[d.dQ,u.O5,O.Ls,a.f],encapsulation:2,changeDetection:0}),(0,p.gn)([(0,o.yF)()],m.prototype,"nzLoading",void 0),(0,p.gn)([(0,o.yF)()],m.prototype,"nzDisabled",void 0),(0,p.gn)([(0,o.yF)()],m.prototype,"nzControl",void 0),(0,p.gn)([(0,h.oS)()],m.prototype,"nzSize",void 0),m})(),E=(()=>{class m{}return m.\u0275fac=function(r){return new(r||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[[s.vT,u.ez,d.vG,O.PV,a.T]]}),m})()}}]); \ No newline at end of file diff --git a/server/public/4658.5c85d7945136a277.js b/server/public/4658.5c85d7945136a277.js deleted file mode 100644 index 5b21c86eb..000000000 --- a/server/public/4658.5c85d7945136a277.js +++ /dev/null @@ -1 +0,0 @@ -"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/4721.785031df1f100b85.js b/server/public/4721.785031df1f100b85.js deleted file mode 100644 index 5a5a7abf4..000000000 --- a/server/public/4721.785031df1f100b85.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4721],{7946:(Q,T,a)=>{a.d(T,{x:()=>I});var l=a(9808),t=a(897),m=a(8481),_=a(3610),v=a(8018),z=a(3580),u=a(9476),n=a(5e3);let I=(()=>{class d{}return d.\u0275fac=function(M){return new(M||d)},d.\u0275mod=n.oAB({type:d}),d.\u0275inj=n.cJS({imports:[[l.ez,m.X,_.$6,t.$,v.e,z.Q,u.L]]}),d})()},8664:(Q,T,a)=>{a.d(T,{I:()=>k});var l=a(6654),t=a(5e3),m=a(9808),_=a(325),v=a(8481),z=a(3610),u=a(4850),n=a(712),I=a(7484),d=a(647),A=a(3193),M=a(3098),O=a(6550),f=a(1894),S=a(8144),h=a(6949);function x(i,c){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const r=t.oxw().ngIf;t.xp6(1),t.hij(" ",r.name," ")}}function P(i,c){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const r=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",r.gene)}}function N(i,c){1&i&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function E(i,c){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,N,2,0,"span",1),t.qZA()),2&i){const r=c.$implicit,g=c.last;t.xp6(1),t.hij(" ",r,""),t.xp6(1),t.Q6J("ngIf",!g)}}function B(i,c){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,E,3,2,"span",16),t.qZA()),2&i){const r=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",r.variantAliases)}}function J(i,c){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 r=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",r.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",r.alleleRegistryId," ")}}function L(i,c){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/flags"),t.xp6(3),t.hij(" Flags (",r.flags.totalCount,") ")}}function b(i,c){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",r.revisions.totalCount,") ")}}function D(i,c){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/comments"),t.xp6(3),t.hij(" Comments (",r.comments.totalCount,") ")}}function U(i,c){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,x,2,1,"ng-template",null,3,t.W1O),t.YNc(4,P,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,B,2,1,"nz-descriptions-item",6),t.YNc(8,J,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,L,4,2,"a",12),t.YNc(15,b,4,2,"a",12),t.YNc(16,D,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const r=c.ngIf,g=t.MAs(3),C=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",g)("nzExtra",C),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",r.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",r.alleleRegistryId),t.xp6(2),t.hij(" ",r.evidenceItems.totalCount," ")}}let V=(()=>{class i{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,u.U)(({data:r})=>r.variant))}}return i.\u0275fac=function(r){return new(r||i)(t.Y36(n.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(r,g){1&r&&(t.TgZ(0,"div",0),t.YNc(1,U,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,g.variant$)))},directives:[m.O5,I.bd,d.Ls,A.H,M.R7,M.uj,m.sg,O.l,f.SK,f.t3,S.NU,S.$1,_.yS,v.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}"]}),i})();function Y(i,c){}function j(i,c){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,Y,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const r=t.oxw(),g=t.MAs(2);t.xp6(1),t.Q6J("routerLink",r.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",g)}}function w(i,c){}function F(i,c){if(1&i){const r=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(C){return t.CHM(r),t.oxw(2).itemClosed(C)}),t.YNc(1,w,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const r=t.MAs(2),g=t.oxw(),C=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",g.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",g.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",C)}}function R(i,c){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const r=t.oxw(3);t.Q6J("variantId",r.variant.id)}}function W(i,c){if(1&i&&t.YNc(0,R,1,1,"cvc-variant-popover",10),2&i){const r=t.oxw(2);t.Q6J("ngIf",r.enablePopover)}}function $(i,c){if(1&i&&(t.YNc(0,F,2,4,"nz-tag",7),t.YNc(1,W,1,1,"ng-template",null,8,t.W1O)),2&i){const r=t.oxw(),g=t.MAs(4);t.Q6J("ngIf",r.enablePopover)("ngIfElse",g)}}function H(i,c){}function K(i,c){if(1&i){const r=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(C){return t.CHM(r),t.oxw().itemClosed(C)}),t.YNc(1,H,0,0,"ng-template",6),t.qZA()}if(2&i){const r=t.oxw(),g=t.MAs(8);t.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",g)}}function q(i,c){}function X(i,c){if(1&i&&t.YNc(0,q,0,0,"ng-template",6),2&i){t.oxw();const r=t.MAs(2);t.Q6J("ngTemplateOutlet",r)}}function G(i,c){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const r=t.oxw();t.xp6(1),t.hij(" ",r.variant.name,"\n")}}let k=(()=>{class i extends l.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(r){return new(r||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(r,g){if(1&r&&(t.YNc(0,j,3,2,"ng-container",0),t.YNc(1,$,3,2,"ng-template",null,1,t.W1O),t.YNc(3,K,2,2,"ng-template",null,2,t.W1O),t.YNc(5,X,1,1,"ng-template",null,3,t.W1O),t.YNc(7,G,2,1,"ng-template",null,4,t.W1O)),2&r){const C=t.MAs(6);t.Q6J("ngIf",g.linked)("ngIfElse",C)}},directives:[m.O5,_.yS,m.tP,v.j,z.lU,V,d.Ls],styles:[""]}),i})()},4867:(Q,T,a)=>{a.d(T,{Q:()=>S});var l=a(9808),t=a(325),m=a(8481),_=a(647),v=a(3610),z=a(6949),u=a(7484),n=a(1894),I=a(3098),d=a(8144),A=a(3309),M=a(3630),O=a(5e3);let f=(()=>{class h{}return h.\u0275fac=function(P){return new(P||h)},h.\u0275mod=O.oAB({type:h}),h.\u0275inj=O.cJS({imports:[[l.ez,t.Bz,z.WG,u.vh,n.Jb,I.q6,m.X,_.PV,d.zf,A.U,M.X]]}),h})(),S=(()=>{class h{}return h.\u0275fac=function(P){return new(P||h)},h.\u0275mod=O.oAB({type:h}),h.\u0275inj=O.cJS({imports:[[l.ez,t.Bz,m.X,v.$6,_.PV,f]]}),h})()},3154:(Q,T,a)=>{a.d(T,{_:()=>t});var l=a(712);function t(m){var _;switch(m.value){case"ascend":_=l.SrV.Asc;break;case"descend":_=l.SrV.Desc;break;default:return}return{column:m.key,direction:_}}},1076:(Q,T,a)=>{a.r(T),a.d(T,{PhenotypesModule:()=>Cn});var l=a(9808),t=a(325),m=a(3630),_=a(5630),v=a(6949),z=a(647),u=a(1945),n=a(5e3);let I=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,t.Bz,v.WG,u.KJ,z.PV,m.X,_.D]]}),e})();var d=a(8144),A=a(767),M=a(9441);let O=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,d.zf,A.Q,M.s]]}),e})();var f=a(1132),S=a(4125),h=a(6286),x=a(6042),P=a(3618),N=a(7484),E=a(404);let B=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,v.WG,f.HQ,x.sL,z.PV,P.ZJ,N.vh,E.cg,S.k,h.y,m.X]]}),e})();var J=a(1894);let L=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,u.KJ,z.PV,J.Jb,x.sL,d.zf,P.ZJ,_.D,B]]}),e})();var b=a(373),D=a(1059),U=a(712),V=a(8992),Y=a(6550);function j(e,s){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2),n.TgZ(3,"nz-page-header-title"),n._UZ(4,"i",3),n._uU(5),n.qZA(),n.TgZ(6,"nz-page-header-extra"),n.TgZ(7,"cvc-link-tag",4),n._uU(8),n.qZA(),n.qZA(),n.TgZ(9,"nz-page-header-content"),n.TgZ(10,"div",5),n._UZ(11,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const o=s.ngIf;n.xp6(1),n.Q6J("displayName",o.name),n.xp6(4),n.hij(" ",o.name," "),n.xp6(2),n.Q6J("href",o.url),n.xp6(1),n.hij(" ",o.hpoId," ")}}let w=(()=>{class e{constructor(o,p){this.route=o,this.gql=p,this.routeSub=this.route.params.subscribe(Z=>{this.phenotypeId=+Z.phenotypeId,this.queryRef=this.gql.watch({phenotypeId:this.phenotypeId});let y=this.queryRef.valueChanges;this.loading$=y.pipe((0,b.j)("loading"),(0,D.O)(!0)),this.phenotype$=y.pipe((0,b.j)("data","phenotype"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(t.gz),n.Y36(U.WGV))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-phenotypes-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","civic:phenotype"],["tooltip","View in the HPO",3,"href"],[1,"content"]],template:function(o,p){1&o&&(n.YNc(0,j,12,4,"ng-container",0),n.ALo(1,"ngrxPush")),2&o&&n.Q6J("ngIf",n.lcZ(1,1,p.phenotype$))},directives:[l.O5,V.I,u.$O,u.u9,z.Ls,u.Jp,Y.l,u.u5,t.lC],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}"]}),e})();var F=a(2683),R=a(3154),W=a(8929),$=a(4850),H=a(2986),K=a(13),q=a(2166),X=a(7956),G=a(2643);function k(e,s){if(1&e&&(n.TgZ(0,"cvc-link-tag",17),n._uU(1),n.qZA()),2&e){const o=n.oxw().$implicit;n.Q6J("href",o.url),n.xp6(1),n.hij(" ",o.hpoId," ")}}function i(e,s){1&e&&n._uU(0,"--")}function c(e,s){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-phenotype-tag",14),n.qZA(),n.TgZ(3,"td"),n.YNc(4,k,2,2,"cvc-link-tag",15),n.YNc(5,i,1,0,"ng-template",null,16,n.W1O),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.qZA()),2&e){const o=s.$implicit,p=n.MAs(6);n.xp6(2),n.Q6J("phenotype",o),n.xp6(2),n.Q6J("ngIf",o.hpoId)("ngIfElse",p),n.xp6(4),n.hij(" ",o.evidenceCount," "),n.xp6(2),n.hij(" ",o.assertionCount," ")}}function r(e,s){if(1&e){const o=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(o);const Z=n.oxw(2).ngrxLet;return n.oxw().loadMore(Z.endCursor)}),n._uU(1),n.qZA()}if(2&e){const o=n.oxw(3);n.xp6(1),n.hij("Load ",o.initialPageSize," More")}}function g(e,s){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td",19),n.YNc(2,r,2,1,"button",20),n.qZA(),n.qZA()),2&e){const o=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",o.hasNextPage)}}function C(e,s){if(1&e&&(n.ynx(0),n.YNc(1,g,3,1,"tr",18),n.BQk()),2&e){const o=s.ngrxLet;n.xp6(1),n.Q6J("ngIf",o.hasNextPage)}}function nn(e,s){}function en(e,s){if(1&e&&(n.ynx(0),n.YNc(1,nn,0,0,"ng-template",25),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",o.cvcTitleTemplate)}}function on(e,s){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.hij(" ",o.cvcTitle," ")}}function an(e,s){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=n.oxw().ngIf;n.xp6(1),n.hij(" of ",o," filtered")}}function rn(e,s){if(1&e&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,an,2,1,"span",18),n._uU(3,") "),n.qZA()),2&e){const o=s.ngIf,p=n.oxw(2);n.xp6(1),n.AsE(" (",p.totalCount," total, showing ",p.visibleCount,""),n.xp6(1),n.Q6J("ngIf",p.totalCount&&o{class e{constructor(o){this.gql=o,this.initialPageSize=25,this.debouncedQuery=new W.xQ,this.sortColumns=U.lYz,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize});let o=this.queryRef.valueChanges;this.phenotypes$=o.pipe((0,b.j)("data","phenotypes","edges"),(0,$.U)(p=>p.map(Z=>Z.node))),this.isLoading$=o.pipe((0,b.j)("loading"),(0,D.O)(!0)),this.filteredCount$=o.pipe((0,b.j)("data","phenotypes","filteredCount")),this.filteredCount$.pipe((0,H.q)(1)).subscribe(p=>this.totalCount=p),this.filteredCount$.subscribe(p=>{pp&&(this.visibleCount=p))}),this.pageInfo$=o.pipe((0,b.j)("data","phenotypes","pageInfo")),this.debouncedQuery.pipe((0,K.b)(500)).subscribe(p=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}onModelChanged(){this.debouncedQuery.next()}onSortChanged(o){var p;this.loadedPages=1,null===(p=this.queryRef)||void 0===p||p.refetch({sortBy:(0,R._)(o)})}refresh(){var o;this.loadedPages=1,null===(o=this.queryRef)||void 0===o||o.refetch({name:this.hpoNameFilter,hpoId:this.hpoIdFilter})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(o){var p;null===(p=this.queryRef)||void 0===p||p.fetchMore({variables:{after:o}}),this.loadedPages+=1}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(U.B97))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-phenotypes-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:27,vars:27,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["phenotypesTable",""],[3,"nzSortOrderChange"],["nzWidth","40%",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:assertion"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search HPO ID",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"phenotype"],["tooltip","View in the HPO",3,"href",4,"ngIf","ngIfElse"],["noHpo",""],["tooltip","View in the HPO",3,"href"],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:phenotype"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(o,p){if(1&o&&(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(y){return p.onSortChanged(y)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",4),n._uU(10," HPO ID "),n.qZA(),n.TgZ(11,"th",5),n._UZ(12,"i",6),n.qZA(),n.TgZ(13,"th",7),n._UZ(14,"i",8),n.qZA(),n.qZA(),n.TgZ(15,"tr"),n.TgZ(16,"th"),n.TgZ(17,"cvc-clearable-input-filter",9),n.NdJ("inputModelChange",function(y){return p.hpoNameFilter=y}),n.qZA(),n.qZA(),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",10),n.NdJ("inputModelChange",function(y){return p.hpoIdFilter=y}),n.qZA(),n.qZA(),n._UZ(20,"th"),n._UZ(21,"th"),n.qZA(),n.qZA(),n.TgZ(22,"tbody"),n.YNc(23,c,11,5,"tr",11),n.YNc(24,C,2,1,"ng-container",12),n.qZA(),n.qZA(),n.qZA(),n.YNc(25,sn,7,6,"ng-template",null,13,n.W1O)),2&o){const Z=n.MAs(2),y=n.MAs(26);n.Q6J("nzTitle",y),n.xp6(1),n.Q6J("nzData",n.lcZ(3,21,p.phenotypes$))("nzLoading",n.lcZ(4,23,p.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",p.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",p.sortColumns.HpoId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",p.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(25,tn)),n.xp6(2),n.Q6J("nzColumnKey",p.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",n.DdM(26,tn)),n.xp6(4),n.Q6J("inputModel",p.hpoNameFilter)("onInputChanged",p.textInputCallback),n.xp6(2),n.Q6J("inputModel",p.hpoIdFilter)("onInputChanged",p.textInputCallback),n.xp6(4),n.Q6J("ngForOf",Z.data),n.xp6(1),n.Q6J("ngrxLet",p.pageInfo$)}},directives:[N.bd,f.N8,f.Om,f.$Z,f.Uo,f._C,f.qD,f.qn,E.SY,F.w,z.Ls,q.p,f.p0,l.sg,X.i,l.O5,Y.l,v.eJ,x.ix,G.dQ,l.tP,P.ZU],pipes:[v.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function ln(e,s){1&e&&(n.TgZ(0,"a",14),n._UZ(1,"i",15),n._uU(2," View Associated Phenotype Docs "),n.qZA())}function gn(e,s){1&e&&(n.TgZ(0,"a",16),n._UZ(1,"i",15),n._uU(2," View Phenotype Curation Docs "),n.qZA())}let dn=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["phenotypes-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:phenotype"],["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/associated_phenotype.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html#curating-associated-phenotypes","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Associated Phenotypes"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html#curating-associated-phenotypes","target","_blank","nzSize","small","nzBlock",""]],template:function(o,p){1&o&&(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,"Associated Phenotypes"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"Phenotypes are symptoms or abnormalities that are encountered in human disease, optionally associated with Evidence Items and known to the Human Phenotype Ontology database."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,ln,3,0,"a",8),n.YNc(14,gn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n.TgZ(17,"div",12),n._UZ(18,"cvc-phenotypes-table",13),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[V.I,u.$O,u.u5,J.SK,J.t3,z.Ls,F.w,P.ZU,d.NU,d.$1,x.ix,cn],styles:["[_nghost-%COMP%]{display:block}"]}),e})();var hn=a(3756),mn=a(8965);function _n(e,s){if(1&e&&n._UZ(0,"cvc-assertions-table",4),2&e){const o=n.oxw(2);n.Q6J("phenotypeId",o.phenotypeId)}}function un(e,s){if(1&e&&n._UZ(0,"cvc-evidence-table",5),2&e){const o=n.oxw(2);n.Q6J("phenotypeId",o.phenotypeId)}}function fn(e,s){1&e&&(n.TgZ(0,"nz-space",1),n.YNc(1,_n,1,1,"cvc-assertions-table",2),n.YNc(2,un,1,1,"cvc-evidence-table",3),n.qZA())}const vn=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-phenotypes"]],decls:1,vars:0,template:function(o,p){1&o&&n._UZ(0,"router-outlet")},directives:[t.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}"]}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:dn,data:{breadcrumb:"Home"}},{path:":phenotypeId",component:w,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(p=>{this.phenotypeId=+p.phenotypeId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(t.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-phenotypes-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Phenotype Assertions",3,"phenotypeId",4,"nzSpaceItem"],["cvcTitle","Phenotype Evidence",3,"phenotypeId",4,"nzSpaceItem"],["cvcTitle","Phenotype Assertions",3,"phenotypeId"],["cvcTitle","Phenotype Evidence",3,"phenotypeId"]],template:function(o,p){1&o&&n.YNc(0,fn,3,0,"nz-space",0),2&o&&n.Q6J("ngIf",p.phenotypeId)},directives:[l.O5,d.NU,d.$1,hn.x,mn.a],styles:["[_nghost-%COMP%]{display:block}"]}),e})(),data:{breadcrumb:"Summary"}}]}]}];let zn=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.Bz.forChild(vn)],t.Bz]}),e})(),Cn=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,t.Bz,zn,L,I,O]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/4726.9630e9511479c70a.js b/server/public/4726.9630e9511479c70a.js new file mode 100644 index 000000000..f6ce61c26 --- /dev/null +++ b/server/public/4726.9630e9511479c70a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4726],{3580:(O,S,o)=>{o.d(S,{Q:()=>v});var p=o(9808),t=o(325),m=o(8481),d=o(3610),_=o(647),f=o(7484),I=o(3098),y=o(3630),n=o(6949),h=o(3618),T=o(9444),Z=o(5e3);let M=(()=>{class l{}return l.\u0275fac=function(x){return new(x||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[p.ez,n.WG,f.vh,I.q6,_.PV,h.ZJ,T.s,y.X]]}),l})(),v=(()=>{class l{}return l.\u0275fac=function(x){return new(x||l)},l.\u0275mod=Z.oAB({type:l}),l.\u0275inj=Z.cJS({imports:[[p.ez,t.Bz,m.X,d.$6,_.PV,T.s,M]]}),l})()},8018:(O,S,o)=>{o.d(S,{e:()=>l});var p=o(9808),t=o(325),m=o(8481),d=o(3610),_=o(647),f=o(7484),I=o(3098),y=o(6949),n=o(3630),h=o(3618),T=o(9444),Z=o(404),M=o(5e3);let v=(()=>{class g{}return g.\u0275fac=function(J){return new(J||g)},g.\u0275mod=M.oAB({type:g}),g.\u0275inj=M.cJS({imports:[[p.ez,t.Bz,y.WG,f.vh,I.q6,_.PV,h.ZJ,m.X,Z.cg,n.X,T.s]]}),g})(),l=(()=>{class g{}return g.\u0275fac=function(J){return new(J||g)},g.\u0275mod=M.oAB({type:g}),g.\u0275inj=M.cJS({imports:[[p.ez,t.Bz,m.X,d.$6,_.PV,T.s,v]]}),g})()},9476:(O,S,o)=>{o.d(S,{L:()=>v});var p=o(9808),t=o(325),m=o(8481),d=o(647),_=o(1894),f=o(3630),I=o(3098),y=o(7484),n=o(6949),h=o(5473),T=o(5e3);let Z=(()=>{class l{}return l.\u0275fac=function(x){return new(x||l)},l.\u0275mod=T.oAB({type:l}),l.\u0275inj=T.cJS({imports:[[p.ez,n.WG,y.vh,_.Jb,I.q6,f.X,h.H]]}),l})();var M=o(3610);let v=(()=>{class l{}return l.\u0275fac=function(x){return new(x||l)},l.\u0275mod=T.oAB({type:l}),l.\u0275inj=T.cJS({imports:[[p.ez,t.Bz,m.X,d.PV,M.$6,Z]]}),l})()},6715:(O,S,o)=>{o.d(S,{$:()=>m});var p=o(5e3);const t=["*"];let m=(()=>{class d{constructor(){}ngOnInit(){}}return d.\u0275fac=function(f){return new(f||d)},d.\u0275cmp=p.Xpm({type:d,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(f,I){2&f&&p.ekj("xs","xs"===I.size||!I.size)("sm","sm"===I.size)},inputs:{size:"size"},ngContentSelectors:t,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(f,I){1&f&&(p.F$t(),p.TgZ(0,"div",0),p.Hsn(1),p.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),d})()},897:(O,S,o)=>{o.d(S,{$:()=>m});var p=o(9808),t=o(5e3);let m=(()=>{class d{}return d.\u0275fac=function(f){return new(f||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({imports:[[p.ez]]}),d})()},7946:(O,S,o)=>{o.d(S,{x:()=>n});var p=o(9808),t=o(897),m=o(8481),d=o(3610),_=o(8018),f=o(3580),I=o(9476),y=o(5e3);let n=(()=>{class h{}return h.\u0275fac=function(Z){return new(Z||h)},h.\u0275mod=y.oAB({type:h}),h.\u0275inj=y.cJS({imports:[[p.ez,m.X,d.$6,t.$,_.e,f.Q,I.L]]}),h})()},9814:(O,S,o)=>{o.d(S,{O:()=>Un});var p=o(712),t=o(3154),m=o(8929),d=o(4850),_=o(373),f=o(1059),I=o(2986),y=o(13),n=o(5e3),h=o(9350),T=o(9169),Z=o(7484),M=o(6949),v=o(1132),l=o(9808),g=o(8054),x=o(4182),J=o(2166),Y=o(647),L=o(2683),D=o(404),b=o(125),B=o(6906),$=o(3193),R=o(8664),W=o(4022),E=o(6042),N=o(2643),j=o(325),H=o(3610),Q=o(7625),G=o(6123),A=o(8144),F=o(2359),V=o(822),K=o(1047),X=o(7525),w=o(9180),q=o(8227),i=o(1793);function C(a,u){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 s(a,u){if(1&a&&n._UZ(0,"cvc-form-errors-alert",7),2&a){const e=n.oxw();n.Q6J("errors",e.errorMessages)}}function P(a,u){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 U(a,u){1&a&&n._UZ(0,"nz-option",13)}function k(a,u){1&a&&n._UZ(0,"nz-option",14)}function nn(a,u){1&a&&n._UZ(0,"nz-option",15)}function tn(a,u){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,U,1,0,"nz-option",10),n.YNc(2,k,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 on(a,u){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,c,r){this.viewerService=e,this.networkErrorService=c,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,Q.R)(this.destroy$)).subscribe(z=>{this.organizations=z.organizations,this.mostRecentOrg=z.mostRecentOrg}),this.sourceSuggestionStatusMutator=new G.U(c)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){var e;if(this.newStatus){let c=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}});c.submitSuccess$.pipe((0,Q.R)(this.destroy$)).subscribe(r=>{this.resetForm(),this.success=!0}),c.submitError$.pipe((0,Q.R)(this.destroy$)).subscribe(r=>{r&&(this.errorMessages=r)}),c.isSubmitting$.pipe((0,Q.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(h.a),n.Y36(T.Y),n.Y36(p.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,c){1&e&&(n.TgZ(0,"nz-card"),n.TgZ(1,"nz-space",0),n.YNc(2,C,1,0,"nz-alert",1),n.YNc(3,s,1,1,"cvc-form-errors-alert",2),n.YNc(4,P,1,1,"textarea",3),n.YNc(5,tn,4,4,"nz-select",4),n.YNc(6,on,5,3,"nz-spin",5),n.qZA(),n.qZA()),2&e&&(n.xp6(2),n.Q6J("ngIf",c.success),n.xp6(1),n.Q6J("ngIf",c.errorMessages.length))},directives:[Z.bd,A.NU,l.O5,F.r,V.V,A.$1,K.Zp,x.Fj,x.JJ,x.On,g.Vq,x.Q7,g.Ip,X.W,w.Z,q.q,E.ix,N.dQ,i.m,L.w],styles:[""],encapsulation:2}),a})();var an=o(3618);function rn(a,u){1&a&&(n.TgZ(0,"th",25),n._uU(1," Actions "),n.qZA())}function sn(a,u){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,u){1&a&&n._UZ(0,"th")}function gn(a,u){if(1&a&&n._UZ(0,"i",35),2&a){const e=n.oxw().$implicit;n.Q6J("nzTooltipTitle",e.reason)}}function ln(a,u){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,u){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,u){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,u){if(1&a&&n._UZ(0,"cvc-source-tag",37),2&a){const e=n.oxw().$implicit;n.Q6J("source",e.source)}}function vn(a,u){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,u){if(1&a&&n._UZ(0,"cvc-variant-tag",39),2&a){const e=n.oxw().$implicit;n.Q6J("variant",e.variant)}}function _n(a,u){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,u,e,c){return{geneId:a,sourceId:u,variantId:e,diseaseId:c}};function zn(a,u){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 c=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",c)}}function fn(a,u){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,vn,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,_n,1,1,"cvc-disease-tag",32),n.qZA(),n.TgZ(19,"td",33),n._UZ(20,"i",34),n.qZA(),n.YNc(21,zn,6,8,"td",22),n.qZA()),2&a){const e=u.$implicit,c=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",c.signedIn)}}function Tn(a,u){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,u){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,u){if(1&a&&(n.ynx(0),n.YNc(1,xn,3,1,"tr",22),n.BQk()),2&a){const e=u.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}function Sn(a,u){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 Mn(a,u){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 In(a,u){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,sn,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,fn,22,13,"tr",23),n.YNc(52,hn,2,1,"ng-container",1),n.qZA(),n.qZA(),n.YNc(53,Mn,1,1,"ng-template",null,24,n.W1O),n.BQk()}if(2&a){const e=u.ngrxLet,c=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",c.data),n.xp6(1),n.Q6J("ngrxLet",r.pageInfo$)}}function Zn(a,u){}function yn(a,u){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 An(a,u){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 Pn(a,u){if(1&a&&(n.TgZ(0,"span",54),n._uU(1),n.qZA()),2&a){const e=u.ngIf,c=n.oxw(2);n.xp6(1),n.lnq(" (",c.totalCount," new, showing ",c.visibleCount," of ",e," filtered) ")}}function Jn(a,u){1&a&&(n.TgZ(0,"span",54),n._uU(1," (0 total) "),n.qZA())}function On(a,u){if(1&a&&(n._UZ(0,"i",50),n.YNc(1,yn,2,1,"ng-container",22),n.YNc(2,An,2,1,"ng-container",22),n.YNc(3,Pn,2,3,"span",51),n.ALo(4,"ngrxPush"),n.YNc(5,Jn,2,0,"ng-template",null,52,n.W1O)),2&a){const e=n.MAs(6),c=n.oxw();n.xp6(1),n.Q6J("ngIf",c.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",c.cvcTitle),n.xp6(1),n.Q6J("ngIf",n.lcZ(4,4,c.filteredCount$))("ngIfElse",e)}}let Un=(()=>{class a{constructor(e,c,r){this.gql=e,this.viewerService=c,this.networkErrorService=r,this.debouncedQuery=new m.xQ,this.statusInput=p.F3s.New,this.pageSize=25,this.sortColumns=p.jw9,this.status=p.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,d.U)(e=>({data:e.data,loading:e.loading,networkStatus:e.networkStatus}))),this.isLoading$=this.data$.pipe((0,_.j)("loading"),(0,f.O)(!0)),this.sourceSuggestions$=this.data$.pipe((0,_.j)("data","sourceSuggestions","edges"),(0,d.U)(e=>e.map(c=>c.node))),this.pageInfo$=this.data$.pipe((0,_.j)("data","sourceSuggestions","pageInfo")),this.filteredCount$=this.data$.pipe((0,_.j)("data","sourceSuggestions","filteredCount")),this.filteredCount$.pipe((0,I.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 c;this.loadedPages=1,null===(c=this.queryRef)||void 0===c||c.refetch({sortBy:(0,t._)(e)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}setFormInputs(e,c){this.selectedSourceId=e,this.selectedStatus=c,this.showManageForm=!0}closePopover(){this.showManageForm=!1}loadMore(e){var c;null===(c=this.queryRef)||void 0===c||c.fetchMore({variables:{first:this.pageSize,after:e}}),this.loadedPages+=1}}return a.\u0275fac=function(e){return new(e||a)(n.Y36(p.WRV),n.Y36(h.a),n.Y36(T.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,c){if(1&e&&(n.TgZ(0,"nz-card",0),n.YNc(1,In,55,39,"ng-container",1),n.qZA(),n.YNc(2,On,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",c.viewer$)}},directives:[Z.bd,M.eJ,v.N8,v.Om,v.$Z,v.Uo,v._C,v.qD,l.O5,g.Vq,x.JJ,x.On,g.Ip,J.p,v.p0,l.sg,Y.Ls,L.w,D.SY,b.I,B.T,$.H,R.I,W.n,v.UX,E.fY,E.ix,N.dQ,j.rH,H.lU,en,l.tP,an.ZU],pipes:[M.fM,l.i8],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})()},2832:(O,S,o)=>{o.d(S,{W:()=>G});var p=o(9808),t=o(1132),m=o(8054),d=o(4125),_=o(4182),f=o(6949),I=o(7345),y=o(9779),n=o(3309),h=o(4867),T=o(3580),Z=o(647),M=o(6042),v=o(404),l=o(7008),g=o(3610),x=o(8776),J=o(7484),Y=o(4546),L=o(1825),D=o(4375),b=o(868),B=o(7525),$=o(2359),R=o(1047),W=o(4509),E=o(8144),N=o(5e3);let j=(()=>{class A{}return A.\u0275fac=function(V){return new(V||A)},A.\u0275mod=N.oAB({type:A}),A.\u0275inj=N.cJS({imports:[[p.ez,_.UX,f.WG,M.sL,J.vh,b.we,Y.U5,B.j,$.L,R.o7,m.LV,E.zf,_.u5,x.X0,l.B,L.A,D.R,W.w]]}),A})();var H=o(3618),Q=o(325);let G=(()=>{class A{}return A.\u0275fac=function(V){return new(V||A)},A.\u0275mod=N.oAB({type:A}),A.\u0275inj=N.cJS({imports:[[p.ez,_.u5,Q.Bz,f.WG,t.HQ,m.LV,v.cg,Z.PV,M.sL,g.$6,H.ZJ,J.vh,d.k,I.W,y.s,n.U,h.Q,T.Q,l.B,j]]}),A})()},7677:(O,S,o)=>{o.d(S,{G:()=>M});var p=o(9808),t=o(325),m=o(3610),d=o(8481),_=o(647),f=o(9779),I=o(4867),y=o(7484),n=o(3098),h=o(6949),T=o(5e3);let Z=(()=>{class v{}return v.\u0275fac=function(g){return new(g||v)},v.\u0275mod=T.oAB({type:v}),v.\u0275inj=T.cJS({imports:[[p.ez,h.WG,y.vh,n.q6,f.s,I.Q]]}),v})(),M=(()=>{class v{}return v.\u0275fac=function(g){return new(g||v)},v.\u0275mod=T.oAB({type:v}),v.\u0275inj=T.cJS({imports:[[p.ez,t.Bz,m.$6,d.X,_.PV,Z]]}),v})()},8664:(O,S,o)=>{o.d(S,{I:()=>q});var p=o(6654),t=o(5e3),m=o(9808),d=o(325),_=o(8481),f=o(3610),I=o(4850),y=o(712),n=o(7484),h=o(647),T=o(3193),Z=o(3098),M=o(6550),v=o(1894),l=o(8144),g=o(6949);function x(i,C){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const s=t.oxw().ngIf;t.xp6(1),t.hij(" ",s.name," ")}}function J(i,C){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const s=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",s.gene)}}function Y(i,C){if(1&i&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&i){const s=C.$implicit;t.xp6(1),t.Oqu(s)}}function L(i,C){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,Y,2,1,"nz-tag",16),t.qZA()),2&i){const s=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",s.variantAliases)}}function D(i,C){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 s=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",s.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",s.alleleRegistryId," ")}}function b(i,C){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 s=t.oxw().ngIf;t.MGl("routerLink","/variants/",s.id,"/flags"),t.xp6(3),t.hij(" Flags (",s.flags.totalCount,") ")}}function B(i,C){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 s=t.oxw().ngIf;t.MGl("routerLink","/variants/",s.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",s.revisions.totalCount,") ")}}function $(i,C){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 s=t.oxw().ngIf;t.MGl("routerLink","/variants/",s.id,"/comments"),t.xp6(3),t.hij(" Comments (",s.comments.totalCount,") ")}}function R(i,C){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,x,2,1,"ng-template",null,3,t.W1O),t.YNc(4,J,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,D,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,b,4,2,"a",12),t.YNc(15,B,4,2,"a",12),t.YNc(16,$,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const s=C.ngIf,P=t.MAs(3),U=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",P)("nzExtra",U),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",s.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",s.alleleRegistryId),t.xp6(2),t.hij(" ",s.evidenceItems.totalCount," ")}}let W=(()=>{class i{constructor(s){this.gql=s}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,I.U)(({data:s})=>s.variant))}}return i.\u0275fac=function(s){return new(s||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(s,P){1&s&&(t.TgZ(0,"div",0),t.YNc(1,R,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,P.variant$)))},directives:[m.O5,n.bd,h.Ls,T.H,Z.R7,Z.uj,m.sg,_.j,M.l,v.SK,v.t3,l.NU,l.$1,d.yS],pipes:[g.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 E(i,C){}function N(i,C){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,E,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const s=t.oxw(),P=t.MAs(2);t.xp6(1),t.Q6J("routerLink",s.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",P)}}function j(i,C){}function H(i,C){if(1&i){const s=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(U){return t.CHM(s),t.oxw(2).itemClosed(U)}),t.YNc(1,j,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const s=t.MAs(2),P=t.oxw(),U=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",s)("nzMode",P.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",U)}}function Q(i,C){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const s=t.oxw(3);t.Q6J("variantId",s.variant.id)}}function G(i,C){if(1&i&&t.YNc(0,Q,1,1,"cvc-variant-popover",10),2&i){const s=t.oxw(2);t.Q6J("ngIf",s.enablePopover)}}function A(i,C){if(1&i&&(t.YNc(0,H,2,4,"nz-tag",7),t.YNc(1,G,1,1,"ng-template",null,8,t.W1O)),2&i){const s=t.oxw(),P=t.MAs(4);t.Q6J("ngIf",s.enablePopover)("ngIfElse",P)}}function F(i,C){}function V(i,C){if(1&i){const s=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(U){return t.CHM(s),t.oxw().itemClosed(U)}),t.YNc(1,F,0,0,"ng-template",6),t.qZA()}if(2&i){const s=t.oxw(),P=t.MAs(8);t.Q6J("nzMode",s.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",P)}}function K(i,C){}function X(i,C){if(1&i&&t.YNc(0,K,0,0,"ng-template",6),2&i){t.oxw();const s=t.MAs(2);t.Q6J("ngTemplateOutlet",s)}}function w(i,C){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const s=t.oxw();t.xp6(1),t.hij(" ",s.variant.name,"\n")}}let q=(()=>{class i extends p.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(s){return new(s||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(s,P){if(1&s&&(t.YNc(0,N,3,2,"ng-container",0),t.YNc(1,A,3,2,"ng-template",null,1,t.W1O),t.YNc(3,V,2,2,"ng-template",null,2,t.W1O),t.YNc(5,X,1,1,"ng-template",null,3,t.W1O),t.YNc(7,w,2,1,"ng-template",null,4,t.W1O)),2&s){const U=t.MAs(6);t.Q6J("ngIf",P.linked)("ngIfElse",U)}},directives:[m.O5,d.yS,m.tP,_.j,f.lU,W,h.Ls],styles:[""]}),i})()},4867:(O,S,o)=>{o.d(S,{Q:()=>l});var p=o(9808),t=o(325),m=o(8481),d=o(647),_=o(3610),f=o(6949),I=o(7484),y=o(1894),n=o(3098),h=o(8144),T=o(3309),Z=o(3630),M=o(5e3);let v=(()=>{class g{}return g.\u0275fac=function(J){return new(J||g)},g.\u0275mod=M.oAB({type:g}),g.\u0275inj=M.cJS({imports:[[p.ez,t.Bz,f.WG,I.vh,y.Jb,n.q6,m.X,d.PV,h.zf,T.U,Z.X]]}),g})(),l=(()=>{class g{}return g.\u0275fac=function(J){return new(J||g)},g.\u0275mod=M.oAB({type:g}),g.\u0275inj=M.cJS({imports:[[p.ez,t.Bz,m.X,_.$6,d.PV,v]]}),g})()},3154:(O,S,o)=>{o.d(S,{_:()=>t});var p=o(712);function t(m){var d;switch(m.value){case"ascend":d=p.SrV.Asc;break;case"descend":d=p.SrV.Desc;break;default:return}return{column:m.key,direction:d}}}}]); \ No newline at end of file diff --git a/server/public/4729.2c38846785e7bfbe.js b/server/public/4729.2c38846785e7bfbe.js deleted file mode 100644 index c5ca01319..000000000 --- a/server/public/4729.2c38846785e7bfbe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4729],{5453:(B,y,e)=>{e.d(y,{N:()=>M});var i=e(9808),n=e(325),v=e(8481),_=e(3610),f=e(7484),C=e(3098),h=e(3630),t=e(6949),u=e(5e3);let m=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[[i.ez,t.WG,f.vh,C.q6,h.X]]}),l})();var z=e(647);let M=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[[i.ez,n.Bz,z.PV,v.X,_.$6,m]]}),l})()},767:(B,y,e)=>{e.d(y,{Q:()=>W});var i=e(9808),n=e(1132),v=e(4546),_=e(1047),f=e(647),C=e(3618),h=e(4182),t=e(6949),u=e(7946),m=e(3309),z=e(404),M=e(4867),l=e(3580),x=e(8018),O=e(209),c=e(8054),Z=e(4125),V=e(9444),K=e(6042),S=e(897),N=e(6114),J=e(7484),I=e(5e3);let W=(()=>{class D{}return D.\u0275fac=function(Y){return new(Y||D)},D.\u0275mod=I.oAB({type:D}),D.\u0275inj=I.cJS({imports:[[i.ez,h.u5,t.WG,K.sL,n.HQ,v.U5,_.o7,f.PV,C.ZJ,z.cg,c.LV,N.Wr,J.vh,V.s,m.U,M.Q,l.Q,x.e,O.i,S.$,u.x,Z.k]]}),D})()},209:(B,y,e)=>{e.d(y,{i:()=>J});var i=e(9808),n=e(325),v=e(8481),_=e(3610),f=e(647),C=e(7484),h=e(3309),t=e(4867),u=e(1894),m=e(3098),z=e(8018),M=e(3580),l=e(6286),x=e(6949),O=e(8144),c=e(9444),Z=e(9779),V=e(592),K=e(3618),S=e(5e3);let N=(()=>{class I{}return I.\u0275fac=function(D){return new(D||I)},I.\u0275mod=S.oAB({type:I}),I.\u0275inj=S.cJS({imports:[[i.ez,n.Bz,x.WG,f.PV,C.vh,u.Jb,m.q6,v.X,O.zf,K.ZJ,c.s,z.e,M.Q,h.U,t.Q,l.y,Z.s,V.x]]}),I})(),J=(()=>{class I{}return I.\u0275fac=function(D){return new(D||I)},I.\u0275mod=S.oAB({type:I}),I.\u0275inj=S.cJS({imports:[[i.ez,n.Bz,v.X,_.$6,f.PV,N,c.s]]}),I})()},6286:(B,y,e)=>{e.d(y,{y:()=>M});var i=e(9808),n=e(325),v=e(8481),_=e(3610),f=e(647),C=e(6949),h=e(7484),t=e(3630),u=e(3098),m=e(5e3);let z=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=m.oAB({type:l}),l.\u0275inj=m.cJS({imports:[[i.ez,C.WG,f.PV,h.vh,t.X,u.q6]]}),l})(),M=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=m.oAB({type:l}),l.\u0275inj=m.cJS({imports:[[i.ez,n.Bz,v.X,_.$6,f.PV,z]]}),l})()},2166:(B,y,e)=>{e.d(y,{p:()=>t});var i=e(5e3),n=e(1047),v=e(4182),_=e(9808),f=e(647);function C(u,m){if(1&u){const z=i.EpF();i.TgZ(0,"i",4),i.NdJ("click",function(){i.CHM(z);const l=i.oxw(2);return l.inputModel=void 0,l.onModelUpdated()}),i.qZA()}}function h(u,m){if(1&u&&i.YNc(0,C,1,0,"i",3),2&u){const z=i.oxw();i.Q6J("ngIf",z.inputModel)}}let t=(()=>{class u{constructor(){this.inputModelChange=new i.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return u.\u0275fac=function(z){return new(z||u)},u.\u0275cmp=i.Xpm({type:u,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(z,M){if(1&z&&(i.TgZ(0,"nz-input-group",0),i.TgZ(1,"input",1),i.NdJ("ngModelChange",function(x){return M.inputModel=x})("ngModelChange",function(){return M.onModelUpdated()}),i.qZA(),i.qZA(),i.YNc(2,h,1,1,"ng-template",null,2,i.W1O)),2&z){const l=i.MAs(3);i.Q6J("nzSuffix",l),i.xp6(1),i.Q6J("placeholder",M.placeholderText?M.placeholderText:"")("ngModel",M.inputModel)}},directives:[n.gB,n.ke,n.Zp,v.Fj,v.JJ,v.On,_.O5,f.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),u})()},4125:(B,y,e)=>{e.d(y,{k:()=>C});var i=e(9808),n=e(1047),v=e(4182),_=e(647),f=e(5e3);let C=(()=>{class h{}return h.\u0275fac=function(u){return new(u||h)},h.\u0275mod=f.oAB({type:h}),h.\u0275inj=f.cJS({imports:[[i.ez,v.u5,n.o7,_.PV]]}),h})()},592:(B,y,e)=>{e.d(y,{x:()=>f});var i=e(9808),n=e(8481),v=e(647),_=e(5e3);let f=(()=>{class C{}return C.\u0275fac=function(t){return new(t||C)},C.\u0275mod=_.oAB({type:C}),C.\u0275inj=_.cJS({imports:[[i.ez,n.X,v.PV]]}),C})()},7946:(B,y,e)=>{e.d(y,{x:()=>u});var i=e(9808),n=e(897),v=e(8481),_=e(3610),f=e(8018),C=e(3580),h=e(9476),t=e(5e3);let u=(()=>{class m{}return m.\u0275fac=function(M){return new(M||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[i.ez,v.X,_.$6,n.$,f.e,C.Q,h.L]]}),m})()},9779:(B,y,e)=>{e.d(y,{s:()=>O});var i=e(9808),n=e(3610),v=e(325),_=e(7484),f=e(3630),C=e(3098),h=e(897),t=e(6949),u=e(5453),m=e(647),z=e(5e3);let M=(()=>{class c{}return c.\u0275fac=function(V){return new(V||c)},c.\u0275mod=z.oAB({type:c}),c.\u0275inj=z.cJS({imports:[[i.ez,t.WG,m.PV,_.vh,C.q6,f.X,h.$,u.N]]}),c})();var l=e(8481),x=e(9444);let O=(()=>{class c{}return c.\u0275fac=function(V){return new(V||c)},c.\u0275mod=z.oAB({type:c}),c.\u0275inj=z.cJS({imports:[[i.ez,v.Bz,m.PV,n.$6,l.X,M,x.s]]}),c})()},7279:(B,y,e)=>{e.d(y,{h:()=>O});var i=e(9808),n=e(1132),v=e(8054),_=e(4125),f=e(4182),C=e(9779),h=e(6949),t=e(3968),u=e(6042),m=e(647),z=e(3618),M=e(7484),l=e(404),x=e(5e3);let O=(()=>{class c{}return c.\u0275fac=function(V){return new(V||c)},c.\u0275mod=x.oAB({type:c}),c.\u0275inj=x.cJS({imports:[[i.ez,f.u5,h.WG,n.HQ,v.LV,m.PV,z.ZJ,M.vh,u.sL,l.cg,_.k,C.s,t.T]]}),c})()},7701:(B,y,e)=>{e.d(y,{j:()=>X});var i=e(6654),n=e(5e3),v=e(9808),_=e(325),f=e(8481),C=e(3610),h=e(4850),t=e(712),u=e(7484),m=e(647),z=e(6550),M=e(3098),l=e(6949);function x(s,E){if(1&s&&(n._UZ(0,"i",7),n._uU(1)),2&s){const T=n.oxw().ngIf;n.xp6(1),n.hij(" ",T.name," ")}}function O(s,E){if(1&s&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&s){const T=n.oxw(2).ngIf;n.Q6J("href",T.url),n.xp6(1),n.hij(" ",T.soid," ")}}function c(s,E){if(1&s&&n.YNc(0,O,2,2,"cvc-link-tag",8),2&s){const T=n.oxw().ngIf;n.Q6J("ngIf","N/A"!=T.soid)}}function Z(s,E){if(1&s&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,x,2,1,"ng-template",null,3,n.W1O),n.YNc(4,c,1,1,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&s){const T=E.ngIf,U=n.MAs(3),b=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",U)("nzExtra",b),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",T.variantCount," ")}}let V=(()=>{class s{constructor(T){this.gql=T}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,h.U)(({data:T})=>T.variantTypePopover))}}return s.\u0275fac=function(T){return new(T||s)(n.Y36(t.tw_))},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(T,U){1&T&&(n.TgZ(0,"div",0),n.YNc(1,Z,9,4,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&T&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,U.variantType$)))},directives:[v.O5,u.bd,m.Ls,z.l,M.R7,M.uj],pipes:[l.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}"]}),s})();function K(s,E){}function S(s,E){if(1&s&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,K,0,0,"ng-template",6),n.qZA(),n.BQk()),2&s){const T=n.oxw(),U=n.MAs(2);n.xp6(1),n.Q6J("routerLink",T.variantType.link),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function N(s,E){}function J(s,E){if(1&s&&(n.TgZ(0,"nz-tag",9),n.YNc(1,N,0,0,"ng-template",6),n.qZA()),2&s){n.oxw();const T=n.MAs(2);n.oxw();const U=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",T),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function I(s,E){if(1&s&&n._UZ(0,"cvc-variant-type-popover",10),2&s){const T=n.oxw(2);n.Q6J("variantTypeId",T.variantType.id)}}function W(s,E){if(1&s&&(n.YNc(0,J,2,3,"nz-tag",7),n.YNc(1,I,1,1,"ng-template",null,8,n.W1O)),2&s){const T=n.oxw(),U=n.MAs(6);n.Q6J("ngIf",T.enablePopover)("ngIfElse",U)}}function D(s,E){}function L(s,E){if(1&s&&n.YNc(0,D,0,0,"ng-template",6),2&s){n.oxw();const T=n.MAs(2);n.Q6J("ngTemplateOutlet",T)}}function Y(s,E){}function j(s,E){if(1&s&&(n.TgZ(0,"nz-tag"),n.YNc(1,Y,0,0,"ng-template",6),n.qZA()),2&s){n.oxw();const T=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",T)}}function $(s,E){if(1&s&&(n._UZ(0,"i",11),n._uU(1)),2&s){const T=n.oxw();n.xp6(1),n.hij(" ",T.variantType.name,"\n")}}let X=(()=>{class s extends i.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return s.\u0275fac=function(T){return new(T||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(T,U){if(1&T&&(n.YNc(0,S,3,2,"ng-container",0),n.YNc(1,W,3,2,"ng-template",null,1,n.W1O),n.YNc(3,L,1,1,"ng-template",null,2,n.W1O),n.YNc(5,j,2,1,"ng-template",null,3,n.W1O),n.YNc(7,$,2,1,"ng-template",null,4,n.W1O)),2&T){const b=n.MAs(4);n.Q6J("ngIf",U.linked)("ngIfElse",b)}},directives:[v.O5,_.yS,v.tP,f.j,C.lU,V,m.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),s})()},8645:(B,y,e)=>{e.d(y,{M:()=>M});var i=e(9808),n=e(325),v=e(8481),_=e(7484),f=e(3630),C=e(3098),h=e(6949),t=e(647),u=e(5e3);let m=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[[i.ez,h.WG,t.PV,_.vh,C.q6,f.X]]}),l})();var z=e(3610);let M=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({imports:[[i.ez,n.Bz,t.PV,v.X,z.$6,m]]}),l})()},8664:(B,y,e)=>{e.d(y,{I:()=>q});var i=e(6654),n=e(5e3),v=e(9808),_=e(325),f=e(8481),C=e(3610),h=e(4850),t=e(712),u=e(7484),m=e(647),z=e(3193),M=e(3098),l=e(6550),x=e(1894),O=e(8144),c=e(6949);function Z(r,P){if(1&r&&(n._UZ(0,"i",13),n._uU(1)),2&r){const p=n.oxw().ngIf;n.xp6(1),n.hij(" ",p.name," ")}}function V(r,P){if(1&r&&n._UZ(0,"cvc-gene-tag",14),2&r){const p=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",p.gene)}}function K(r,P){1&r&&(n.TgZ(0,"span"),n._uU(1,",\xa0"),n.qZA())}function S(r,P){if(1&r&&(n.TgZ(0,"span"),n._uU(1),n.YNc(2,K,2,0,"span",1),n.qZA()),2&r){const p=P.$implicit,A=P.last;n.xp6(1),n.hij(" ",p,""),n.xp6(1),n.Q6J("ngIf",!A)}}function N(r,P){if(1&r&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,S,3,2,"span",16),n.qZA()),2&r){const p=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",p.variantAliases)}}function J(r,P){if(1&r&&(n.TgZ(0,"nz-descriptions-item",17),n.TgZ(1,"cvc-link-tag",18),n._uU(2),n.qZA(),n.qZA()),2&r){const p=n.oxw().ngIf;n.xp6(1),n.MGl("href","https://reg.genome.network/allele/",p.alleleRegistryId,".html"),n.xp6(1),n.hij(" ",p.alleleRegistryId," ")}}function I(r,P){if(1&r&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",20),n._UZ(2,"i",21),n._uU(3),n.qZA(),n.qZA()),2&r){const p=n.oxw().ngIf;n.MGl("routerLink","/variants/",p.id,"/flags"),n.xp6(3),n.hij(" Flags (",p.flags.totalCount,") ")}}function W(r,P){if(1&r&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",22),n._UZ(2,"i",23),n._uU(3),n.qZA(),n.qZA()),2&r){const p=n.oxw().ngIf;n.MGl("routerLink","/variants/",p.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",p.revisions.totalCount,") ")}}function D(r,P){if(1&r&&(n.TgZ(0,"a",19),n.TgZ(1,"nz-tag",24),n._UZ(2,"i",25),n._uU(3),n.qZA(),n.qZA()),2&r){const p=n.oxw().ngIf;n.MGl("routerLink","/variants/",p.id,"/comments"),n.xp6(3),n.hij(" Comments (",p.comments.totalCount,") ")}}function L(r,P){if(1&r&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,Z,2,1,"ng-template",null,3,n.W1O),n.YNc(4,V,1,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.YNc(7,N,2,1,"nz-descriptions-item",6),n.YNc(8,J,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,I,4,2,"a",12),n.YNc(15,W,4,2,"a",12),n.YNc(16,D,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&r){const p=P.ngIf,A=n.MAs(3),Q=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",A)("nzExtra",Q),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",p.variantAliases.length>0),n.xp6(1),n.Q6J("ngIf",p.alleleRegistryId),n.xp6(2),n.hij(" ",p.evidenceItems.totalCount," ")}}let Y=(()=>{class r{constructor(p){this.gql=p}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:p})=>p.variant))}}return r.\u0275fac=function(p){return new(p||r)(n.Y36(t.ZYZ))},r.\u0275cmp=n.Xpm({type:r,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(p,A){1&p&&(n.TgZ(0,"div",0),n.YNc(1,L,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&p&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,A.variant$)))},directives:[v.O5,u.bd,m.Ls,z.H,M.R7,M.uj,v.sg,l.l,x.SK,x.t3,O.NU,O.$1,_.yS,f.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}"]}),r})();function j(r,P){}function $(r,P){if(1&r&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,j,0,0,"ng-template",6),n.qZA(),n.BQk()),2&r){const p=n.oxw(),A=n.MAs(2);n.xp6(1),n.Q6J("routerLink",p.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",A)}}function X(r,P){}function s(r,P){if(1&r){const p=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(Q){return n.CHM(p),n.oxw(2).itemClosed(Q)}),n.YNc(1,X,0,0,"ng-template",6),n.qZA()}if(2&r){n.oxw();const p=n.MAs(2),A=n.oxw(),Q=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",A.onCloseClicked?0:.5)("nzPopoverContent",p)("nzMode",A.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",Q)}}function E(r,P){if(1&r&&n._UZ(0,"cvc-variant-popover",11),2&r){const p=n.oxw(3);n.Q6J("variantId",p.variant.id)}}function T(r,P){if(1&r&&n.YNc(0,E,1,1,"cvc-variant-popover",10),2&r){const p=n.oxw(2);n.Q6J("ngIf",p.enablePopover)}}function U(r,P){if(1&r&&(n.YNc(0,s,2,4,"nz-tag",7),n.YNc(1,T,1,1,"ng-template",null,8,n.W1O)),2&r){const p=n.oxw(),A=n.MAs(4);n.Q6J("ngIf",p.enablePopover)("ngIfElse",A)}}function b(r,P){}function H(r,P){if(1&r){const p=n.EpF();n.TgZ(0,"nz-tag",12),n.NdJ("nzOnClose",function(Q){return n.CHM(p),n.oxw().itemClosed(Q)}),n.YNc(1,b,0,0,"ng-template",6),n.qZA()}if(2&r){const p=n.oxw(),A=n.MAs(8);n.Q6J("nzMode",p.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",A)}}function G(r,P){}function w(r,P){if(1&r&&n.YNc(0,G,0,0,"ng-template",6),2&r){n.oxw();const p=n.MAs(2);n.Q6J("ngTemplateOutlet",p)}}function k(r,P){if(1&r&&(n._UZ(0,"i",13),n._uU(1)),2&r){const p=n.oxw();n.xp6(1),n.hij(" ",p.variant.name,"\n")}}let q=(()=>{class r 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 r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=n.Xpm({type:r,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(p,A){if(1&p&&(n.YNc(0,$,3,2,"ng-container",0),n.YNc(1,U,3,2,"ng-template",null,1,n.W1O),n.YNc(3,H,2,2,"ng-template",null,2,n.W1O),n.YNc(5,w,1,1,"ng-template",null,3,n.W1O),n.YNc(7,k,2,1,"ng-template",null,4,n.W1O)),2&p){const Q=n.MAs(6);n.Q6J("ngIf",A.linked)("ngIfElse",Q)}},directives:[v.O5,_.yS,v.tP,f.j,C.lU,Y,m.Ls],styles:[""]}),r})()},4867:(B,y,e)=>{e.d(y,{Q:()=>O});var i=e(9808),n=e(325),v=e(8481),_=e(647),f=e(3610),C=e(6949),h=e(7484),t=e(1894),u=e(3098),m=e(8144),z=e(3309),M=e(3630),l=e(5e3);let x=(()=>{class c{}return c.\u0275fac=function(V){return new(V||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[i.ez,n.Bz,C.WG,h.vh,t.Jb,u.q6,v.X,_.PV,m.zf,z.U,M.X]]}),c})(),O=(()=>{class c{}return c.\u0275fac=function(V){return new(V||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[i.ez,n.Bz,v.X,f.$6,_.PV,x]]}),c})()},3154:(B,y,e)=>{e.d(y,{_:()=>n});var i=e(712);function n(v){var _;switch(v.value){case"ascend":_=i.SrV.Asc;break;case"descend":_=i.SrV.Desc;break;default:return}return{column:v.key,direction:_}}},1875:(B,y,e)=>{e.r(y),e.d(y,{VariantTypesModule:()=>hn});var i=e(9808),n=e(325),v=e(6949),_=e(1945),f=e(647),C=e(3630),h=e(5630),t=e(5e3);let u=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[i.ez,n.Bz,v.WG,_.KJ,f.PV,C.X,h.D]]}),o})();var m=e(8144),z=e(767),M=e(7279),l=e(3855);let x=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[i.ez,m.zf,z.Q,M.h,l.H]]}),o})();var O=e(1894),c=e(1132),Z=e(4125),V=e(6286),K=e(8645),S=e(6042),N=e(7484),J=e(3618),I=e(404);let W=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[i.ez,n.Bz,v.WG,c.HQ,f.PV,S.sL,N.vh,J.ZJ,I.cg,Z.k,V.y,C.X,K.M]]}),o})(),D=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[i.ez,_.KJ,f.PV,O.Jb,S.sL,m.zf,J.ZJ,h.D,W]]}),o})();var L=e(373),Y=e(1059),j=e(712),$=e(8992),X=e(6550);function s(o,d){if(1&o&&(t.TgZ(0,"cvc-link-tag",6),t._uU(1),t.qZA()),2&o){const a=t.oxw().ngIf;t.Q6J("href",a.url),t.xp6(1),t.hij(" ",a.soid," ")}}function E(o,d){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-title"),t._UZ(4,"i",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-page-header-extra"),t.YNc(7,s,2,2,"cvc-link-tag",4),t.qZA(),t.TgZ(8,"nz-page-header-content"),t.TgZ(9,"div",5),t._uU(10),t._UZ(11,"router-outlet"),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&o){const a=d.ngIf;t.xp6(1),t.Q6J("displayName",a.name),t.xp6(4),t.hij(" ",a.name," "),t.xp6(2),t.Q6J("ngIf",a.url),t.xp6(3),t.hij(" ",a.description," ")}}let T=(()=>{class o{constructor(a,g){this.route=a,this.gql=g,this.routeSub=this.route.params.subscribe(F=>{this.variantTypeId=+F.variantTypeId,this.queryRef=this.gql.watch({variantTypeId:this.variantTypeId});let R=this.queryRef.valueChanges;this.loading$=R.pipe((0,L.j)("loading"),(0,Y.O)(!0)),this.variantType$=R.pipe((0,L.j)("data","variantType"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(a){return new(a||o)(t.Y36(n.gz),t.Y36(j.ubO))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-types-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","civic:varianttype"],["tooltip","View on sequenceontology.org",3,"href",4,"ngIf"],[1,"content"],["tooltip","View on sequenceontology.org",3,"href"]],template:function(a,g){1&a&&(t.YNc(0,E,12,4,"ng-container",0),t.ALo(1,"ngrxPush")),2&a&&t.Q6J("ngIf",t.lcZ(1,1,g.variantType$))},directives:[i.O5,$.I,_.$O,_.u9,f.Ls,_.Jp,X.l,_.u5,n.lC],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}"]}),o})();var U=e(2683),b=e(3154),H=e(8929),G=e(4850),w=e(2986),k=e(13),q=e(2166),r=e(7701),P=e(2643);function p(o,d){1&o&&t._uU(0," -- ")}function A(o,d){if(1&o&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._UZ(2,"cvc-variant-type-tag",12),t.qZA(),t.TgZ(3,"td"),t.TgZ(4,"cvc-link-tag",13),t._uU(5),t.qZA(),t.YNc(6,p,1,0,"ng-template",null,14,t.W1O),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.qZA()),2&o){const a=d.$implicit;t.xp6(2),t.Q6J("variantType",a),t.xp6(2),t.Q6J("href",a.url),t.xp6(1),t.hij(" ",a.soid," "),t.xp6(4),t.hij(" ",a.variantCount," ")}}function Q(o,d){if(1&o){const a=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(a);const F=t.oxw(2).ngrxLet;return t.oxw().loadMore(F.endCursor)}),t._uU(1),t.qZA()}if(2&o){const a=t.oxw(3);t.xp6(1),t.hij("Load ",a.initialPageSize," More")}}function nn(o,d){if(1&o&&(t.TgZ(0,"tr"),t.TgZ(1,"td",16),t.YNc(2,Q,2,1,"button",17),t.qZA(),t.qZA()),2&o){const a=t.oxw().ngrxLet;t.xp6(2),t.Q6J("ngIf",a.hasNextPage)}}function tn(o,d){if(1&o&&(t.ynx(0),t.YNc(1,nn,3,1,"tr",15),t.BQk()),2&o){const a=d.ngrxLet;t.xp6(1),t.Q6J("ngIf",a.hasNextPage)}}function en(o,d){}function on(o,d){if(1&o&&(t.ynx(0),t.YNc(1,en,0,0,"ng-template",22),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function an(o,d){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const a=t.oxw(2);t.xp6(1),t.hij(" ",a.cvcTitle," ")}}function rn(o,d){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&o){const a=t.oxw().ngIf;t.xp6(1),t.hij(" of ",a," filtered")}}function ln(o,d){if(1&o&&(t.TgZ(0,"span",23),t._uU(1),t.YNc(2,rn,2,1,"span",15),t._uU(3,") "),t.qZA()),2&o){const a=d.ngIf,g=t.oxw(2);t.xp6(1),t.AsE(" (",g.totalCount," total, showing ",g.visibleCount,""),t.xp6(1),t.Q6J("ngIf",g.totalCount&&a{class o{constructor(a){this.gql=a,this.initialPageSize=25,this.debouncedQuery=new H.xQ,this.sortColumns=j.wpb,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize});let a=this.queryRef.valueChanges;this.variantTypes$=a.pipe((0,L.j)("data","variantTypes","edges"),(0,G.U)(g=>g.map(F=>F.node))),this.isLoading$=a.pipe((0,L.j)("loading"),(0,Y.O)(!0)),this.filteredCount$=a.pipe((0,L.j)("data","variantTypes","filteredCount")),this.filteredCount$.pipe((0,w.q)(1)).subscribe(g=>this.totalCount=g),this.filteredCount$.subscribe(g=>{gg&&(this.visibleCount=g))}),this.pageInfo$=a.pipe((0,L.j)("data","variantTypes","pageInfo")),this.debouncedQuery.pipe((0,k.b)(500)).subscribe(g=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}onModelChanged(){this.debouncedQuery.next()}onSortChanged(a){var g;this.loadedPages=1,null===(g=this.queryRef)||void 0===g||g.refetch({sortBy:(0,b._)(a)})}refresh(){var a;this.loadedPages=1,null===(a=this.queryRef)||void 0===a||a.refetch({name:this.nameFilter,soid:this.soidFilter})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(a){var g;null===(g=this.queryRef)||void 0===g||g.fetchMore({variables:{after:a}}),this.loadedPages+=1}}return o.\u0275fac=function(a){return new(a||o)(t.Y36(j.fwG))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-types-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:24,vars:23,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["variantTypesTable",""],[3,"nzSortOrderChange"],["nzWidth","40%",3,"nzColumnKey","nzSortFn"],["nzWidth","20%","nzRight","","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:variant"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search SO ID",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"variantType"],["tooltip","View on sequenceontology.org",3,"href"],["noSoid",""],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:varianttype"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(a,g){if(1&a&&(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 g.onSortChanged(R)}),t.TgZ(6,"tr"),t.TgZ(7,"th",4),t._uU(8," Name "),t.qZA(),t.TgZ(9,"th",4),t._uU(10," SOID "),t.qZA(),t.TgZ(11,"th",5),t._UZ(12,"i",6),t.qZA(),t.qZA(),t.TgZ(13,"tr"),t.TgZ(14,"th"),t.TgZ(15,"cvc-clearable-input-filter",7),t.NdJ("inputModelChange",function(R){return g.nameFilter=R}),t.qZA(),t.qZA(),t.TgZ(16,"th"),t.TgZ(17,"cvc-clearable-input-filter",8),t.NdJ("inputModelChange",function(R){return g.soidFilter=R}),t.qZA(),t.qZA(),t._UZ(18,"th"),t.qZA(),t.qZA(),t.TgZ(19,"tbody"),t.YNc(20,A,10,4,"tr",9),t.YNc(21,tn,2,1,"ng-container",10),t.qZA(),t.qZA(),t.qZA(),t.YNc(22,cn,7,6,"ng-template",null,11,t.W1O)),2&a){const F=t.MAs(2),R=t.MAs(23);t.Q6J("nzTitle",R),t.xp6(1),t.Q6J("nzData",t.lcZ(3,18,g.variantTypes$))("nzLoading",t.lcZ(4,20,g.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(6),t.Q6J("nzColumnKey",g.sortColumns.Name)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",g.sortColumns.Soid)("nzSortFn",!0),t.xp6(2),t.Q6J("nzColumnKey",g.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.DdM(22,sn)),t.xp6(4),t.Q6J("inputModel",g.nameFilter)("onInputChanged",g.textInputCallback),t.xp6(2),t.Q6J("inputModel",g.soidFilter)("onInputChanged",g.textInputCallback),t.xp6(3),t.Q6J("ngForOf",F.data),t.xp6(1),t.Q6J("ngrxLet",g.pageInfo$)}},directives:[N.bd,c.N8,c.Om,c.$Z,c.Uo,c._C,c.qD,c.qn,I.SY,f.Ls,U.w,q.p,c.p0,i.sg,r.j,X.l,v.eJ,i.O5,S.ix,P.dQ,i.tP,J.ZU],pipes:[v.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),o})();function dn(o,d){1&o&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Variant Type Docs "),t.qZA())}function vn(o,d){1&o&&(t.TgZ(0,"a",16),t._UZ(1,"i",15),t._uU(2," View Variant Type Curation Docs "),t.qZA())}let mn=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["variant-types-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:varianttype"],["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/types.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants/types.html#curating-variant-types","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variant Types"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants/types.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants/types.html#curating-variant-types","target","_blank","nzSize","small","nzBlock",""]],template:function(a,g){1&a&&(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,"Variant Types"),t.qZA(),t.TgZ(9,"p",5),t._uU(10,"Variant Types are used to classify CIViC variants by Sequence Ontology terms, permitting advanced searching for categories of variants downstream semantic analyses."),t.qZA(),t.qZA(),t.TgZ(11,"nz-col",6),t.TgZ(12,"nz-space",7),t.YNc(13,dn,3,0,"a",8),t.YNc(14,vn,3,0,"a",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",10),t.TgZ(16,"div",11),t.TgZ(17,"div",12),t._UZ(18,"cvc-variant-types-table",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&a&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(7),t.Q6J("nzSpan",24))},directives:[$.I,_.$O,_.u5,O.SK,O.t3,f.Ls,U.w,J.ZU,m.NU,m.$1,S.ix,gn],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})();var _n=e(6410);function un(o,d){if(1&o&&t._UZ(0,"cvc-variants-table",3),2&o){const a=t.oxw(2);t.Q6J("variantTypeId",a.variantTypeId)}}function Tn(o,d){1&o&&(t.TgZ(0,"nz-space",1),t.YNc(1,un,1,1,"cvc-variants-table",2),t.qZA())}const fn=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-types"]],decls:1,vars:0,template:function(a,g){1&a&&t._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:mn,data:{breadcrumb:"Home"}},{path:":variantTypeId",component:T,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class o{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(g=>{this.variantTypeId=+g.variantTypeId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(a){return new(a||o)(t.Y36(n.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-types-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Type Variants",3,"variantTypeId",4,"nzSpaceItem"],["cvcTitle","Type Variants",3,"variantTypeId"]],template:function(a,g){1&a&&t.YNc(0,Tn,2,0,"nz-space",0),2&a&&t.Q6J("ngIf",g.variantTypeId)},directives:[i.O5,m.NU,m.$1,_n.S],styles:["[_nghost-%COMP%]{display:block}"]}),o})(),data:{breadcrumb:"Summary"}}]}]}];let Cn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.Bz.forChild(fn)],n.Bz]}),o})(),hn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[i.ez,n.Bz,Cn,D,u,x]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/5193.079fc90b586abf32.js b/server/public/5193.079fc90b586abf32.js deleted file mode 100644 index e17039aa4..000000000 --- a/server/public/5193.079fc90b586abf32.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5193],{4022:(b,l,a)=>{a.d(l,{n:()=>F});var _=a(6654),n=a(5e3),s=a(9808),m=a(325),r=a(8481),p=a(3610),d=a(4850),g=a(712),f=a(7484),u=a(647),x=a(6550),z=a(3618),v=a(3098),T=a(6949),C=a(4557);function h(e,o){if(1&e&&(n._UZ(0,"i",12),n._uU(1),n.ALo(2,"truncate")),2&e){const t=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.xi3(2,1,t.name,50)," ")}}function I(e,o){if(1&e&&(n.TgZ(0,"cvc-link-tag",14),n._uU(1),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("href",t.diseaseUrl),n.xp6(1),n.hij(" DOID: ",t.doid," ")}}function P(e,o){if(1&e&&n.YNc(0,I,2,2,"cvc-link-tag",13),2&e){const t=n.oxw().ngIf,i=n.MAs(7);n.Q6J("ngIf",t.doid)("ngIfElse",i)}}function O(e,o){1&e&&(n.TgZ(0,"span",15),n._uU(1,"No DOID"),n.qZA())}function D(e,o){if(1&e&&(n.TgZ(0,"nz-descriptions-item",16),n._uU(1),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.hij(" ",t.name," ")}}function A(e,o){if(1&e&&(n.TgZ(0,"nz-descriptions-item",17),n._uU(1),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.hij(" ",t.diseaseAliases.join(", ")," ")}}function M(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,h,3,4,"ng-template",null,3,n.W1O),n.YNc(4,P,1,2,"ng-template",null,4,n.W1O),n.YNc(6,O,2,0,"ng-template",null,5,n.W1O),n.TgZ(8,"nz-descriptions",6),n.YNc(9,D,2,1,"nz-descriptions-item",7),n.YNc(10,A,2,1,"nz-descriptions-item",8),n.TgZ(11,"nz-descriptions-item",9),n._uU(12),n.qZA(),n.TgZ(13,"nz-descriptions-item",10),n._uU(14),n.qZA(),n.TgZ(15,"nz-descriptions-item",11),n._uU(16),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const t=o.ngIf,i=n.MAs(3),c=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",i)("nzExtra",c),n.xp6(7),n.Q6J("nzColumn",1),n.xp6(1),n.Q6J("ngIf",t.name.length>50),n.xp6(1),n.Q6J("ngIf",t.diseaseAliases.length>0),n.xp6(2),n.hij(" ",t.assertionCount," "),n.xp6(2),n.hij(" ",t.evidenceItemCount," "),n.xp6(2),n.hij(" ",t.variantCount," ")}}let N=(()=>{class e{constructor(t){this.gql=t}ngOnInit(){if(null==this.diseaseId)throw new Error("cvc-disease-popover requires valid diseaseId input.");this.disease$=this.gql.watch({diseaseId:this.diseaseId}).valueChanges.pipe((0,d.U)(({data:t})=>t.diseasePopover))}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(g.k7O))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-disease-popover"]],inputs:{diseaseId:"diseaseId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["noDoid",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","1"],["nzTitle","Evidence","nzSpan","1"],["nzTitle","Variants","nzSpan","1"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on disease-ontology.org",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"]],template:function(t,i){1&t&&(n.TgZ(0,"div",0),n.YNc(1,M,17,8,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,i.disease$)))},directives:[s.O5,f.bd,u.Ls,x.l,z.ZU,v.R7,v.uj],pipes:[T.fM,C.W],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}"]}),e})();function Z(e,o){}function y(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,Z,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){const t=n.oxw(),i=n.MAs(2);n.xp6(1),n.Q6J("routerLink",t.disease.link),n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function w(e,o){}function Y(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(c){return n.CHM(t),n.oxw(2).itemClosed(c)}),n.YNc(1,w,0,0,"ng-template",6),n.qZA()}if(2&e){n.oxw();const t=n.MAs(2),i=n.oxw(),c=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",i.onCloseClicked?0:.5)("nzPopoverContent",t)("nzMode",i.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",c)}}function Q(e,o){if(1&e&&n._UZ(0,"cvc-disease-popover",10),2&e){const t=n.oxw(2);n.Q6J("diseaseId",t.disease.id)}}function J(e,o){if(1&e&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,Q,1,1,"ng-template",null,8,n.W1O)),2&e){const t=n.oxw(),i=n.MAs(4);n.Q6J("ngIf",t.enablePopover)("ngIfElse",i)}}function E(e,o){}function U(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"nz-tag",11),n.NdJ("nzOnClose",function(c){return n.CHM(t),n.oxw().itemClosed(c)}),n.YNc(1,E,0,0,"ng-template",6),n.qZA()}if(2&e){const t=n.oxw(),i=n.MAs(8);n.Q6J("nzMode",t.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function j(e,o){}function L(e,o){if(1&e&&n.YNc(0,j,0,0,"ng-template",6),2&e){n.oxw();const t=n.MAs(2);n.Q6J("ngTemplateOutlet",t)}}function W(e,o){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"truncate"),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.hij(" ",n.xi3(2,1,t.disease.name,27)," ")}}function S(e,o){if(1&e&&n._uU(0),2&e){const t=n.oxw(2);n.hij(" ",t.disease.name," ")}}function k(e,o){if(1&e&&(n._UZ(0,"i",12),n.YNc(1,W,3,4,"ng-container",0),n.YNc(2,S,1,1,"ng-template",null,13,n.W1O)),2&e){const t=n.MAs(3),i=n.oxw();n.xp6(1),n.Q6J("ngIf",i.truncateLongName)("ngIfElse",t)}}let F=(()=>{class e extends _.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1}idFunction(){return this.disease.id}ngOnInit(){if(super.ngOnInit(),void 0===this.disease)throw new Error("cvc-disease-tag requires LinkableDisease input, none supplied.")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-disease-tag"]],inputs:{disease:"disease",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["diseasePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"diseaseId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["fullName",""]],template:function(t,i){if(1&t&&(n.YNc(0,y,3,2,"ng-container",0),n.YNc(1,J,3,2,"ng-template",null,1,n.W1O),n.YNc(3,U,2,2,"ng-template",null,2,n.W1O),n.YNc(5,L,1,1,"ng-template",null,3,n.W1O),n.YNc(7,k,4,2,"ng-template",null,4,n.W1O)),2&t){const c=n.MAs(6);n.Q6J("ngIf",i.linked)("ngIfElse",c)}},directives:[s.O5,m.yS,s.tP,r.j,p.lU,N,u.Ls],pipes:[C.W],styles:[""]}),e})()},7469:(b,l,a)=>{a.d(l,{u:()=>F});var _=a(6654),n=a(5e3),s=a(9808),m=a(325),r=a(8481),p=a(3610),d=a(4850),g=a(712),f=a(7484),u=a(647),x=a(6550),z=a(3618),v=a(3098),T=a(6949),C=a(4557);function h(e,o){if(1&e&&(n._UZ(0,"i",11),n._uU(1),n.ALo(2,"truncate")),2&e){const t=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.xi3(2,1,t.name,50)," ")}}function I(e,o){if(1&e&&(n.TgZ(0,"cvc-link-tag",13),n._uU(1),n.qZA()),2&e){const t=n.oxw(2).ngIf;n.Q6J("href",t.drugUrl),n.xp6(1),n.hij(" ",t.ncitId," ")}}function P(e,o){if(1&e&&n.YNc(0,I,2,2,"cvc-link-tag",12),2&e){const t=n.oxw().ngIf,i=n.MAs(7);n.Q6J("ngIf",t.ncitId)("ngIfElse",i)}}function O(e,o){1&e&&(n.TgZ(0,"span",14),n._uU(1,"No NCIt ID"),n.qZA())}function D(e,o){if(1&e&&(n.TgZ(0,"nz-descriptions-item",15),n._uU(1),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.hij(" ",t.name," ")}}function A(e,o){if(1&e&&(n.TgZ(0,"nz-descriptions-item",16),n._uU(1),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.hij(" ",t.drugAliases.join(", ")," ")}}function M(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,h,3,4,"ng-template",null,3,n.W1O),n.YNc(4,P,1,2,"ng-template",null,4,n.W1O),n.YNc(6,O,2,0,"ng-template",null,5,n.W1O),n.TgZ(8,"nz-descriptions",6),n.YNc(9,D,2,1,"nz-descriptions-item",7),n.YNc(10,A,2,1,"nz-descriptions-item",8),n.TgZ(11,"nz-descriptions-item",9),n._uU(12),n.qZA(),n.TgZ(13,"nz-descriptions-item",10),n._uU(14),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const t=o.ngIf,i=n.MAs(3),c=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",i)("nzExtra",c),n.xp6(7),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",t.name.length>50),n.xp6(1),n.Q6J("ngIf",t.drugAliases.length>0),n.xp6(2),n.hij(" ",t.assertionCount," "),n.xp6(2),n.hij(" ",t.evidenceItemCount," ")}}let N=(()=>{class e{constructor(t){this.gql=t}ngOnInit(){if(null==this.drugId)throw new Error("cvc-drug-popover requires valid drugId input.");this.drug$=this.gql.watch({drugId:this.drugId}).valueChanges.pipe((0,d.U)(({data:t})=>t.drugPopover))}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(g.dUU))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-drug-popover"]],inputs:{drugId:"drugId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["noNcitId",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nz-icon","","nzType","civic-intervention","nzTheme","twotone","nzTwotoneColor","#AC3996"],["tooltip","View on NCI Thesaurus",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on NCI Thesaurus",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"]],template:function(t,i){1&t&&(n.TgZ(0,"div",0),n.YNc(1,M,15,7,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,i.drug$)))},directives:[s.O5,f.bd,u.Ls,x.l,z.ZU,v.R7,v.uj],pipes:[T.fM,C.W],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}"]}),e})();function Z(e,o){}function y(e,o){if(1&e&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,Z,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){const t=n.oxw(),i=n.MAs(2);n.xp6(1),n.Q6J("routerLink",t.drug.link),n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function w(e,o){}function Y(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(c){return n.CHM(t),n.oxw(2).itemClosed(c)}),n.YNc(1,w,0,0,"ng-template",6),n.qZA()}if(2&e){n.oxw();const t=n.MAs(2),i=n.oxw(),c=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",i.onCloseClicked?0:.5)("nzPopoverContent",t)("nzMode",i.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",c)}}function Q(e,o){if(1&e&&n._UZ(0,"cvc-drug-popover",10),2&e){const t=n.oxw(2);n.Q6J("drugId",t.drug.id)}}function J(e,o){if(1&e&&(n.YNc(0,Y,2,4,"nz-tag",7),n.YNc(1,Q,1,1,"ng-template",null,8,n.W1O)),2&e){const t=n.oxw(),i=n.MAs(4);n.Q6J("ngIf",t.enablePopover)("ngIfElse",i)}}function E(e,o){}function U(e,o){if(1&e){const t=n.EpF();n.TgZ(0,"nz-tag",11),n.NdJ("nzOnClose",function(c){return n.CHM(t),n.oxw().itemClosed(c)}),n.YNc(1,E,0,0,"ng-template",6),n.qZA()}if(2&e){const t=n.oxw(),i=n.MAs(8);n.Q6J("nzMode",t.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function j(e,o){}function L(e,o){if(1&e&&n.YNc(0,j,0,0,"ng-template",6),2&e){n.oxw();const t=n.MAs(2);n.Q6J("ngTemplateOutlet",t)}}function W(e,o){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"truncate"),n.BQk()),2&e){const t=n.oxw(2);n.xp6(1),n.hij(" ",n.xi3(2,1,t.drug.name,21)," ")}}function S(e,o){if(1&e&&n._uU(0),2&e){const t=n.oxw(2);n.hij(" ",t.drug.name," ")}}function k(e,o){if(1&e&&(n._UZ(0,"i",12),n.YNc(1,W,3,4,"ng-container",0),n.YNc(2,S,1,1,"ng-template",null,13,n.W1O)),2&e){const t=n.MAs(3),i=n.oxw();n.xp6(1),n.Q6J("ngIf",i.truncateLongName)("ngIfElse",t)}}let F=(()=>{class e extends _.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1}idFunction(){return this.drug.id}ngOnInit(){if(super.ngOnInit(),void 0===this.drug)throw new Error("cvc-drug-tag requires LinkableDrug input, none supplied.")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-drug-tag"]],inputs:{drug:"drug",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["drugPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"drugId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-intervention","nzTheme","twotone","nzTwotoneColor","#AC3996"],["fullName",""]],template:function(t,i){if(1&t&&(n.YNc(0,y,3,2,"ng-container",0),n.YNc(1,J,3,2,"ng-template",null,1,n.W1O),n.YNc(3,U,2,2,"ng-template",null,2,n.W1O),n.YNc(5,L,1,1,"ng-template",null,3,n.W1O),n.YNc(7,k,4,2,"ng-template",null,4,n.W1O)),2&t){const c=n.MAs(6);n.Q6J("ngIf",i.linked)("ngIfElse",c)}},directives:[s.O5,m.yS,s.tP,r.j,p.lU,N,u.Ls],pipes:[C.W],styles:[""]}),e})()},4557:(b,l,a)=>{a.d(l,{W:()=>n});var _=a(5e3);let n=(()=>{class s{constructor(){}transform(r,p=25){if(r.length>p){let g=r.slice(0,p);var d=g.lastIndexOf(" ");return g.slice(0,d+1)+"..."}return r}}return s.\u0275fac=function(r){return new(r||s)},s.\u0275pipe=_.Yjl({name:"truncate",type:s,pure:!0}),s})()}}]); \ No newline at end of file diff --git a/server/public/5193.df16b16f719a127b.js b/server/public/5193.df16b16f719a127b.js new file mode 100644 index 000000000..0e9d9f128 --- /dev/null +++ b/server/public/5193.df16b16f719a127b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5193],{4022:(q,m,a)=>{a.d(m,{n:()=>b});var d=a(6654),n=a(5e3),r=a(9808),u=a(325),p=a(8481),l=a(3610),v=a(4850),_=a(712),T=a(7484),C=a(647),h=a(6550),P=a(3618),f=a(3098),I=a(6949),z=a(4557);function x(t,c){if(1&t&&(n._UZ(0,"i",12),n._uU(1),n.ALo(2,"truncate")),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.xi3(2,1,e.name,50)," ")}}function O(t,c){if(1&t&&(n.TgZ(0,"cvc-link-tag",14),n._uU(1),n.qZA()),2&t){const e=n.oxw(2).ngIf;n.Q6J("href",e.diseaseUrl),n.xp6(1),n.hij(" DOID: ",e.doid," ")}}function D(t,c){if(1&t&&n.YNc(0,O,2,2,"cvc-link-tag",13),2&t){const e=n.oxw().ngIf,i=n.MAs(7);n.Q6J("ngIf",e.doid)("ngIfElse",i)}}function A(t,c){1&t&&(n.TgZ(0,"span",15),n._uU(1,"No DOID"),n.qZA())}function N(t,c){if(1&t&&(n.TgZ(0,"nz-descriptions-item",16),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" ",e.name," ")}}function M(t,c){if(1&t&&(n.TgZ(0,"nz-descriptions-item",17),n._uU(1),n.qZA()),2&t){const e=n.oxw().ngIf;n.xp6(1),n.hij(" ",e.diseaseAliases.join(", ")," ")}}function Z(t,c){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,x,3,4,"ng-template",null,3,n.W1O),n.YNc(4,D,1,2,"ng-template",null,4,n.W1O),n.YNc(6,A,2,0,"ng-template",null,5,n.W1O),n.TgZ(8,"nz-descriptions",6),n.YNc(9,N,2,1,"nz-descriptions-item",7),n.YNc(10,M,2,1,"nz-descriptions-item",8),n.TgZ(11,"nz-descriptions-item",9),n._uU(12),n.qZA(),n.TgZ(13,"nz-descriptions-item",10),n._uU(14),n.qZA(),n.TgZ(15,"nz-descriptions-item",11),n._uU(16),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const e=c.ngIf,i=n.MAs(3),o=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",i)("nzExtra",o),n.xp6(7),n.Q6J("nzColumn",1),n.xp6(1),n.Q6J("ngIf",e.name.length>50),n.xp6(1),n.Q6J("ngIf",e.diseaseAliases.length>0),n.xp6(2),n.hij(" ",e.assertionCount," "),n.xp6(2),n.hij(" ",e.evidenceItemCount," "),n.xp6(2),n.hij(" ",e.variantCount," ")}}let y=(()=>{class t{constructor(e){this.gql=e}ngOnInit(){if(null==this.diseaseId)throw new Error("cvc-disease-popover requires valid diseaseId input.");this.disease$=this.gql.watch({diseaseId:this.diseaseId}).valueChanges.pipe((0,v.U)(({data:e})=>e.diseasePopover))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(_.k7O))},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-disease-popover"]],inputs:{diseaseId:"diseaseId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["noDoid",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","1"],["nzTitle","Evidence","nzSpan","1"],["nzTitle","Variants","nzSpan","1"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on disease-ontology.org",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"]],template:function(e,i){1&e&&(n.TgZ(0,"div",0),n.YNc(1,Z,17,8,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&e&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,i.disease$)))},directives:[r.O5,T.bd,C.Ls,h.l,P.ZU,f.R7,f.uj],pipes:[I.fM,z.W],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}"]}),t})();function Y(t,c){}function w(t,c){if(1&t&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,Y,0,0,"ng-template",6),n.qZA(),n.BQk()),2&t){const e=n.oxw(),i=n.MAs(2);n.xp6(1),n.Q6J("routerLink",e.disease.link),n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function Q(t,c){}function J(t,c){if(1&t){const e=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(o){return n.CHM(e),n.oxw(2).itemClosed(o)}),n.YNc(1,Q,0,0,"ng-template",6),n.qZA()}if(2&t){n.oxw();const e=n.MAs(2),i=n.oxw(),o=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",i.onCloseClicked?0:.5)("nzPopoverContent",e)("nzMode",i.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",o)}}function E(t,c){if(1&t&&n._UZ(0,"cvc-disease-popover",10),2&t){const e=n.oxw(2);n.Q6J("diseaseId",e.disease.id)}}function U(t,c){if(1&t&&(n.YNc(0,J,2,4,"nz-tag",7),n.YNc(1,E,1,1,"ng-template",null,8,n.W1O)),2&t){const e=n.oxw(),i=n.MAs(4);n.Q6J("ngIf",e.enablePopover)("ngIfElse",i)}}function L(t,c){}function j(t,c){if(1&t){const e=n.EpF();n.TgZ(0,"nz-tag",11),n.NdJ("nzOnClose",function(o){return n.CHM(e),n.oxw().itemClosed(o)}),n.YNc(1,L,0,0,"ng-template",6),n.qZA()}if(2&t){const e=n.oxw(),i=n.MAs(8);n.Q6J("nzMode",e.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",i)}}function W(t,c){}function S(t,c){if(1&t&&n.YNc(0,W,0,0,"ng-template",6),2&t){n.oxw();const e=n.MAs(2);n.Q6J("ngTemplateOutlet",e)}}function F(t,c){if(1&t&&(n.ynx(0),n._uU(1),n.ALo(2,"truncate"),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.hij(" ",n.xi3(2,1,e.disease.name,27)," ")}}function k(t,c){if(1&t&&n._uU(0),2&t){const e=n.oxw(2);n.hij(" ",e.disease.name," ")}}function B(t,c){if(1&t&&(n._UZ(0,"i",12),n.YNc(1,F,3,4,"ng-container",0),n.YNc(2,k,1,1,"ng-template",null,13,n.W1O)),2&t){const e=n.MAs(3),i=n.oxw();n.xp6(1),n.Q6J("ngIf",i.truncateLongName)("ngIfElse",e)}}let b=(()=>{class t extends d.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1}idFunction(){return this.disease.id}ngOnInit(){if(super.ngOnInit(),void 0===this.disease)throw new Error("cvc-disease-tag requires LinkableDisease input, none supplied.")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["cvc-disease-tag"]],inputs:{disease:"disease",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["diseasePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"diseaseId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["fullName",""]],template:function(e,i){if(1&e&&(n.YNc(0,w,3,2,"ng-container",0),n.YNc(1,U,3,2,"ng-template",null,1,n.W1O),n.YNc(3,j,2,2,"ng-template",null,2,n.W1O),n.YNc(5,S,1,1,"ng-template",null,3,n.W1O),n.YNc(7,B,4,2,"ng-template",null,4,n.W1O)),2&e){const o=n.MAs(6);n.Q6J("ngIf",i.linked)("ngIfElse",o)}},directives:[r.O5,u.yS,r.tP,p.j,l.lU,y,C.Ls],pipes:[z.W],styles:[""]}),t})()},7469:(q,m,a)=>{a.d(m,{u:()=>c});var d=a(6654),n=a(5e3),r=a(9808),u=a(325),p=a(8481),l=a(3610),v=a(4850),_=a(712),T=a(7484),C=a(647),h=a(6550),P=a(3618),f=a(3098),I=a(404),z=a(6949),x=a(4557);function O(e,i){if(1&e&&(n._UZ(0,"i",11),n._uU(1),n.ALo(2,"truncate")),2&e){const o=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.xi3(2,1,o.name,50)," ")}}function D(e,i){if(1&e&&(n.TgZ(0,"cvc-link-tag",13),n._uU(1),n.qZA()),2&e){const o=n.oxw(2).ngIf;n.Q6J("href",o.drugUrl),n.xp6(1),n.hij(" ",o.ncitId," ")}}function A(e,i){if(1&e&&n.YNc(0,D,2,2,"cvc-link-tag",12),2&e){const o=n.oxw().ngIf,s=n.MAs(7);n.Q6J("ngIf",o.ncitId)("ngIfElse",s)}}function N(e,i){1&e&&(n.TgZ(0,"span",14),n._uU(1,"No NCIt ID"),n.qZA())}function M(e,i){if(1&e&&(n.TgZ(0,"nz-descriptions-item",15),n._uU(1),n.qZA()),2&e){const o=n.oxw().ngIf;n.xp6(1),n.hij(" ",o.name," ")}}function Z(e,i){if(1&e&&(n.TgZ(0,"nz-tag",18),n._uU(1),n.ALo(2,"truncate"),n.qZA()),2&e){const o=i.$implicit;n.Q6J("nzTooltipTitle",o),n.xp6(1),n.Oqu(n.lcZ(2,2,o))}}function y(e,i){if(1&e&&(n.TgZ(0,"nz-descriptions-item",16),n.YNc(1,Z,3,4,"nz-tag",17),n.qZA()),2&e){const o=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",o.drugAliases)}}function Y(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,O,3,4,"ng-template",null,3,n.W1O),n.YNc(4,A,1,2,"ng-template",null,4,n.W1O),n.YNc(6,N,2,0,"ng-template",null,5,n.W1O),n.TgZ(8,"nz-descriptions",6),n.YNc(9,M,2,1,"nz-descriptions-item",7),n.YNc(10,y,2,1,"nz-descriptions-item",8),n.TgZ(11,"nz-descriptions-item",9),n._uU(12),n.qZA(),n.TgZ(13,"nz-descriptions-item",10),n._uU(14),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const o=i.ngIf,s=n.MAs(3),g=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",s)("nzExtra",g),n.xp6(7),n.Q6J("nzColumn",2),n.xp6(1),n.Q6J("ngIf",o.name.length>50),n.xp6(1),n.Q6J("ngIf",o.drugAliases.length>0),n.xp6(2),n.hij(" ",o.assertionCount," "),n.xp6(2),n.hij(" ",o.evidenceItemCount," ")}}let w=(()=>{class e{constructor(o){this.gql=o}ngOnInit(){if(null==this.drugId)throw new Error("cvc-drug-popover requires valid drugId input.");this.drug$=this.gql.watch({drugId:this.drugId}).valueChanges.pipe((0,v.U)(({data:o})=>o.drugPopover))}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(_.dUU))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-drug-popover"]],inputs:{drugId:"drugId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["noNcitId",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nz-icon","","nzType","civic-intervention","nzTheme","twotone","nzTwotoneColor","#AC3996"],["tooltip","View on NCI Thesaurus",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on NCI Thesaurus",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"]],template:function(o,s){1&o&&(n.TgZ(0,"div",0),n.YNc(1,Y,15,7,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&o&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,s.drug$)))},directives:[r.O5,T.bd,C.Ls,h.l,P.ZU,f.R7,f.uj,r.sg,p.j,I.SY],pipes:[z.fM,x.W],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}"]}),e})();function Q(e,i){}function J(e,i){if(1&e&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,Q,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){const o=n.oxw(),s=n.MAs(2);n.xp6(1),n.Q6J("routerLink",o.drug.link),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function E(e,i){}function U(e,i){if(1&e){const o=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(g){return n.CHM(o),n.oxw(2).itemClosed(g)}),n.YNc(1,E,0,0,"ng-template",6),n.qZA()}if(2&e){n.oxw();const o=n.MAs(2),s=n.oxw(),g=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",s.onCloseClicked?0:.5)("nzPopoverContent",o)("nzMode",s.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",g)}}function L(e,i){if(1&e&&n._UZ(0,"cvc-drug-popover",10),2&e){const o=n.oxw(2);n.Q6J("drugId",o.drug.id)}}function j(e,i){if(1&e&&(n.YNc(0,U,2,4,"nz-tag",7),n.YNc(1,L,1,1,"ng-template",null,8,n.W1O)),2&e){const o=n.oxw(),s=n.MAs(4);n.Q6J("ngIf",o.enablePopover)("ngIfElse",s)}}function W(e,i){}function S(e,i){if(1&e){const o=n.EpF();n.TgZ(0,"nz-tag",11),n.NdJ("nzOnClose",function(g){return n.CHM(o),n.oxw().itemClosed(g)}),n.YNc(1,W,0,0,"ng-template",6),n.qZA()}if(2&e){const o=n.oxw(),s=n.MAs(8);n.Q6J("nzMode",o.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",s)}}function F(e,i){}function k(e,i){if(1&e&&n.YNc(0,F,0,0,"ng-template",6),2&e){n.oxw();const o=n.MAs(2);n.Q6J("ngTemplateOutlet",o)}}function B(e,i){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"truncate"),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.hij(" ",n.xi3(2,1,o.drug.name,21)," ")}}function b(e,i){if(1&e&&n._uU(0),2&e){const o=n.oxw(2);n.hij(" ",o.drug.name," ")}}function t(e,i){if(1&e&&(n._UZ(0,"i",12),n.YNc(1,B,3,4,"ng-container",0),n.YNc(2,b,1,1,"ng-template",null,13,n.W1O)),2&e){const o=n.MAs(3),s=n.oxw();n.xp6(1),n.Q6J("ngIf",s.truncateLongName)("ngIfElse",o)}}let c=(()=>{class e extends d.a{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1}idFunction(){return this.drug.id}ngOnInit(){if(super.ngOnInit(),void 0===this.drug)throw new Error("cvc-drug-tag requires LinkableDrug input, none supplied.")}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-drug-tag"]],inputs:{drug:"drug",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["drugPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"drugId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-intervention","nzTheme","twotone","nzTwotoneColor","#AC3996"],["fullName",""]],template:function(o,s){if(1&o&&(n.YNc(0,J,3,2,"ng-container",0),n.YNc(1,j,3,2,"ng-template",null,1,n.W1O),n.YNc(3,S,2,2,"ng-template",null,2,n.W1O),n.YNc(5,k,1,1,"ng-template",null,3,n.W1O),n.YNc(7,t,4,2,"ng-template",null,4,n.W1O)),2&o){const g=n.MAs(6);n.Q6J("ngIf",s.linked)("ngIfElse",g)}},directives:[r.O5,u.yS,r.tP,p.j,l.lU,w,C.Ls],pipes:[x.W],styles:[""]}),e})()},4557:(q,m,a)=>{a.d(m,{W:()=>n});var d=a(5e3);let n=(()=>{class r{constructor(){}transform(p,l=25){if(p.length>l){let _=p.slice(0,l);var v=_.lastIndexOf(" ");return _.slice(0,v+1)+"..."}return p}}return r.\u0275fac=function(p){return new(p||r)},r.\u0275pipe=d.Yjl({name:"truncate",type:r,pure:!0}),r})()}}]); \ No newline at end of file diff --git a/server/public/5291.95fc472ce90a140e.js b/server/public/5291.95fc472ce90a140e.js deleted file mode 100644 index e105d62f2..000000000 --- a/server/public/5291.95fc472ce90a140e.js +++ /dev/null @@ -1 +0,0 @@ -"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/5291.c566178f1d8384f2.js b/server/public/5291.c566178f1d8384f2.js new file mode 100644 index 000000000..5f2f1ef75 --- /dev/null +++ b/server/public/5291.c566178f1d8384f2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5291],{2011:(w,M,_)=>{_.d(M,{o:()=>B});var e=_(712),u=_(8929),p=_(4850),m=_(7625),P=_(1059),I=_(2986),E=_(2340),t=_(5e3);function C(i,c){if(1&i&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",13),t.BQk()),2&i){const n=t.oxw().ngIf,a=t.oxw(3);t.xp6(1),t.Q6J("events",n)("tagDisplay",a.tagDisplay)}}function D(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"div",15),t.TgZ(1,"button",16),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 L(i,c){if(1&i&&(t.ynx(0),t.YNc(1,D,3,0,"div",14),t.BQk()),2&i){const n=c.ngIf;t.xp6(1),t.Q6J("ngIf",n.hasNextPage)}}function x(i,c){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-row",3),t.TgZ(2,"nz-col",12),t.YNc(3,C,2,2,"ng-container",1),t.YNc(4,L,2,1,"ng-container",10),t.ALo(5,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()),2&i){const n=c.ngIf,a=t.oxw(3),l=t.MAs(5);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,a.pageInfo$))}}function T(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"nz-badge",19),t.TgZ(1,"button",20),t.NdJ("click",function(){return t.CHM(n),t.oxw(6).refresh()}),t._uU(2," New Event(s) "),t.qZA(),t.qZA()}if(2&i){const n=t.oxw().ngrxLet,a=t.oxw(5);t.Q6J("nzCount",n-a.originalEventCount)}}function f(i,c){if(1&i&&(t.ynx(0),t.YNc(1,T,3,1,"nz-badge",18),t.BQk()),2&i){const n=c.ngrxLet,a=t.oxw(5);t.xp6(1),t.Q6J("ngIf",n>a.originalEventCount)}}function A(i,c){if(1&i&&(t.ynx(0),t.YNc(1,f,2,1,"ng-container",17),t.BQk()),2&i){const n=t.oxw(4);t.xp6(1),t.Q6J("ngrxLet",n.newEventCount$)}}function O(i,c){if(1&i&&t.YNc(0,A,2,1,"ng-container",10),2&i){const n=t.oxw(3);t.Q6J("ngIf",n.pollForNewEvents&&n.originalEventCount)}}function s(i,c){if(1&i&&(t.TgZ(0,"nz-card",9),t.YNc(1,x,6,6,"ng-container",10),t.ALo(2,"ngrxPush"),t.YNc(3,O,1,1,"ng-template",null,11,t.W1O),t.qZA()),2&i){const n=t.MAs(4),a=t.oxw(2);t.Q6J("nzTitle",a.showFilters?"Events":void 0)("nzExtra",n),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,3,a.events$))}}function g(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"span"),t._uU(1," Show Child Events "),t.TgZ(2,"nz-switch",22),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 o(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 r(i,c){if(1&i&&t._UZ(0,"nz-avatar",30),2&i){const n=t.oxw().$implicit;t.Q6J("nzSrc",n.profileImagePath)}}function d(i,c){if(1&i&&(t._UZ(0,"nz-avatar",31),t.ALo(1,"uppercase")),2&i){const n=t.oxw().$implicit;t.Q6J("nzText",t.lcZ(1,1,n.displayName.charAt(0)))}}function h(i,c){if(1&i&&(t.YNc(0,r,1,1,"nz-avatar",28),t.YNc(1,d,2,3,"ng-template",null,29,t.W1O),t.TgZ(3,"span"),t._uU(4),t.qZA()),2&i){const n=c.$implicit,a=t.MAs(2);t.Q6J("ngIf",n.profileImagePath)("ngIfElse",a),t.xp6(4),t.Oqu(n.displayName)}}function F(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"cvc-participant-list",27),t.NdJ("participantSelectedEvent",function(l){return t.CHM(n),t.oxw(4).onOriginatingUserSelected(l)}),t.ALo(1,"ngrxPush"),t.YNc(2,h,5,3,"ng-template",null,24,t.W1O),t.qZA()}if(2&i){const n=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,n.participants$))}}function U(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 S(i,c){if(1&i){const n=t.EpF();t.TgZ(0,"cvc-participant-list",32),t.NdJ("participantSelectedEvent",function(l){return t.CHM(n),t.oxw(4).onOrganizationSelected(l)}),t.ALo(1,"ngrxPush"),t.YNc(2,U,2,1,"ng-template",null,24,t.W1O),t.qZA()}if(2&i){const n=t.oxw(4);t.Q6J("participantList",t.lcZ(1,1,n.organizations$))}}function Z(i,c){if(1&i){const n=t.EpF();t.ynx(0),t.TgZ(1,"cvc-participant-list",23),t.NdJ("participantSelectedEvent",function(l){return t.CHM(n),t.oxw(3).onActionSelected(l)}),t.ALo(2,"ngrxPush"),t.YNc(3,o,2,4,"ng-template",null,24,t.W1O),t.qZA(),t.YNc(5,F,4,3,"cvc-participant-list",25),t.YNc(6,S,4,3,"cvc-participant-list",26),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 y(i,c){1&i&&(t.TgZ(0,"nz-space",5),t.YNc(1,g,3,1,"span",21),t.YNc(2,Z,7,5,"ng-container",21),t.qZA())}function v(i,c){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-row",3),t.TgZ(2,"nz-col",4),t.TgZ(3,"nz-space",5),t.YNc(4,s,5,5,"nz-card",6),t.qZA(),t.qZA(),t.TgZ(5,"nz-col",7),t.YNc(6,y,3,0,"nz-space",8),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",33)}let B=(()=>{class i{constructor(n,a){this.gql=n,this.eventCountGql=a,this.tagDisplay="displayAll",this.mode=e.wJ2.Subject,this.showFilters=!0,this.pageSize=15,this.pollForNewEvents=!0,this.destroy$=new u.xQ,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.pollForNewEvents&&E.N.production&&(this.newEventCount$=this.eventCountGql.watch(this.initialQueryVars,{fetchPolicy:"no-cache",pollInterval:3e4}).valueChanges.pipe((0,p.U)(({data:n})=>n.events.unfilteredCount),(0,m.R)(this.destroy$))),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(a=>a.node))),this.loading$=this.results$.pipe((0,p.U)(({loading:n})=>n),(0,P.O)(!0)),this.unfilteredCount$=this.results$.pipe((0,p.U)(({data:n})=>n.events.unfilteredCount)),this.unfilteredCount$.pipe((0,I.q)(1)).subscribe(n=>this.originalEventCount=n),this.showFilters&&(this.participants$=this.results$.pipe((0,p.U)(({data:n})=>n.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,p.U)(({data:n})=>n.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,p.U)(({data:n})=>{var a,l;return(null===(l=null===(a=n.events)||void 0===a?void 0:a.eventTypes)||void 0===l?void 0:l.map(z=>({id:z})))||[]})))}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})}refresh(){this.queryRef.refetch().then(({data:n})=>{this.originalEventCount=n.events.unfilteredCount})}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}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.unsubscribe()}}return i.\u0275fac=function(n){return new(n||i)(t.Y36(e.BTF),t.Y36(e.YMi))},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",pollForNewEvents:"pollForNewEvents"},decls:6,vars:7,consts:[["nzTip","Loading",3,"nzSpinning"],[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle","nzExtra"],[4,"ngIf"],["refreshFeed",""],["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,"ngrxLet"],[3,"nzCount",4,"ngIf"],[3,"nzCount"],["nz-button","","nz-tooltip","Click to Refresh",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,a){if(1&n&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.YNc(2,v,7,3,"ng-container",1),t.ALo(3,"ngrxPush"),t.YNc(4,R,1,0,"ng-template",null,2,t.W1O),t.qZA()),2&n){const l=t.MAs(5);t.Q6J("nzSpinning",t.lcZ(1,3,a.loading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,5,a.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:(w,M,_)=>{_.d(M,{t:()=>y});var e=_(9808),u=_(2011),p=_(6949),m=_(7484),P=_(647),I=_(4546),E=_(4182),t=_(6462),C=_(1894),D=_(8054),L=_(3884),x=_(6042),T=_(9444),f=_(8144),A=_(1150),O=_(6699),s=_(685),g=_(7525),o=_(4401),r=_(404),d=_(5e3),h=_(3227),F=_(2643),U=_(2683),S=_(8747),Z=_(2937);let y=(()=>{class v{}return v.\u0275fac=function(B){return new(B||v)},v.\u0275mod=d.oAB({type:v}),v.\u0275inj=d.cJS({imports:[[e.ez,E.u5,p.WG,x.sL,m.vh,P.PV,I.U5,D.LV,t.m,C.Jb,f.zf,s.Xo,O.Rt,g.j,o.mS,r.cg,L.m,T.s,A.N,T.s]]}),v})();d.B6R(u.o,[g.W,e.O5,C.SK,C.t3,f.NU,f.$1,m.bd,h.r,x.ix,F.dQ,U.w,p.eJ,o.x7,r.SY,t.i,E.JJ,E.On,S.l,O.Dz,s.p9],[p.fM,Z.R,e.gd])},8747:(w,M,_)=>{_.d(M,{l:()=>O});var e=_(5e3),u=_(9808),p=_(7484),m=_(3762),P=_(6042),I=_(2643),E=_(2683),t=_(647);const C=["itemTemplate"],D=function(s){return{$implicit:s}};function L(s,g){if(1&s){const o=e.EpF();e.TgZ(0,"nz-list-item",5),e.NdJ("click",function(){e.CHM(o);const d=e.oxw().$implicit;return e.oxw(2).onParticipantSelected(d)}),e.GkF(1,6),e.qZA()}if(2&s){const o=e.oxw().$implicit,r=e.oxw(2);e.ekj("selected-participant",o.id==(null==r.selectedItem?null:r.selectedItem.id)),e.xp6(1),e.Q6J("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",e.VKq(4,D,o))}}function x(s,g){if(1&s&&(e.ynx(0),e.YNc(1,L,2,6,"nz-list-item",4),e.BQk()),2&s){const o=g.index,r=e.oxw(2);e.xp6(1),e.Q6J("ngIf",o+1<=r.defaultListSize)}}function T(s,g){if(1&s){const o=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).onExpandClicked()}),e._UZ(1,"i",8),e._uU(2," Expand "),e.qZA()}}function f(s,g){if(1&s){const o=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(o),e.oxw(2).onCollapseClicked()}),e._UZ(1,"i",9),e._uU(2," Collapse "),e.qZA()}}function A(s,g){if(1&s&&(e.ynx(0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-list"),e.YNc(3,x,2,1,"ng-container",2),e.qZA(),e.YNc(4,T,3,0,"button",3),e.YNc(5,f,3,0,"button",3),e.qZA(),e.BQk()),2&s){const o=e.oxw();e.xp6(1),e.Q6J("nzTitle",o.listTitle),e.xp6(2),e.Q6J("ngForOf",o.participantList),e.xp6(1),e.Q6J("ngIf",o.participantList.length>o.defaultListSize),e.xp6(1),e.Q6J("ngIf",o.isExpanded)}}let O=(()=>{class s{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(o){var r;this.selectedItem=o.id==(null===(r=this.selectedItem)||void 0===r?void 0:r.id)?void 0:o,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(o){return new(o||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-participant-list"]],contentQueries:function(o,r,d){if(1&o&&e.Suo(d,C,5),2&o){let h;e.iGM(h=e.CRH())&&(r.itemTemplateRef=h.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(o,r){1&o&&e.YNc(0,A,6,4,"ng-container",0),2&o&&e.Q6J("ngIf",r.participantList&&r.participantList.length>0)},directives:[u.O5,p.bd,m.n_,u.sg,m.AA,u.tP,P.ix,I.dQ,E.w,t.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 deleted file mode 100644 index d6205fe01..000000000 --- a/server/public/535.41583e85177a9773.js +++ /dev/null @@ -1 +0,0 @@ -"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/55.ba71fd90dd4b7d35.js b/server/public/55.fc7e72e0ab03da36.js similarity index 99% rename from server/public/55.ba71fd90dd4b7d35.js rename to server/public/55.fc7e72e0ab03da36.js index f2d16fb0a..08330a213 100644 --- a/server/public/55.ba71fd90dd4b7d35.js +++ b/server/public/55.fc7e72e0ab03da36.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[55],{8909:(X,W,r)=>{r.d(W,{m:()=>k});var t=r(9808),b=r(9401),E=r(8369),a=r(209),x=r(4867),y=r(7677),N=r(3309),M=r(7345),O=r(9476),z=r(8481),w=r(647),I=r(5e3);let k=(()=>{class g{}return g.\u0275fac=function(u){return new(u||g)},g.\u0275mod=I.oAB({type:g}),g.\u0275inj=I.cJS({imports:[[t.ez,z.X,w.PV,b.y,E.W,a.i,x.Q,y.G,N.U,M.W,O.L]]}),g})()},2233:(X,W,r)=>{r.d(W,{P:()=>k});var t=r(5e3),b=r(325),E=r(1894),a=r(868),x=r(9808),y=r(647),N=r(4401);const M=["tabBarExtraContent"];function O(g,D){if(1&g&&t.GkF(0,5),2&g){const u=t.oxw();t.Q6J("ngTemplateOutlet",u.tabBarExtraContent||null)}}const z=function(){return{transform:"scale(0.75, 0.75) translate(0, -2px)"}};function w(g,D){if(1&g&&(t.TgZ(0,"a",7),t._UZ(1,"i",8),t._uU(2),t._UZ(3,"nz-badge",9),t.qZA()),2&g){const u=t.oxw().$implicit;t.Q6J("routerLink",u.routeName),t.xp6(1),t.Q6J("nzType",u.iconName),t.xp6(1),t.hij(" ",u.tabLabel," "),t.xp6(1),t.MGl("nzTitle","There are ",u.badgeCount," outstanding revisions."),t.Q6J("nzCount",u.badgeCount)("nzStyle",t.DdM(6,z))}}function I(g,D){1&g&&(t.TgZ(0,"nz-tab"),t.YNc(1,w,4,7,"a",6),t.qZA())}let k=(()=>{class g{constructor(u){this.router=u,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url)}getActivatedRouteIndex(u){var T;return null===(T=this.tabs)||void 0===T?void 0:T.findIndex(B=>u.includes(B.routeName))}}return g.\u0275fac=function(u){return new(u||g)(t.Y36(b.F0))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-tab-navigation"]],contentQueries:function(u,T,B){if(1&u&&t.Suo(B,M,5),2&u){let Y;t.iGM(Y=t.CRH())&&(T.tabBarExtraContent=Y.first)}},inputs:{entity:"entity",tabs:"tabs"},decls:6,vars:3,consts:[["id","section-tabs"],["nzSpan","24"],["nzLinkRouter","","nzType","card","nzSize","small",3,"nzSelectedIndex","nzTabBarExtraContent"],["extraTpl",""],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["nz-tab-link","",3,"routerLink",4,"nzTabLink"],["nz-tab-link","",3,"routerLink"],["nz-icon","",3,"nzType"],["nzStandalone","",3,"nzCount","nzTitle","nzStyle"]],template:function(u,T){if(1&u&&(t.TgZ(0,"nz-row",0),t.TgZ(1,"nz-col",1),t.TgZ(2,"nz-tabset",2),t.YNc(3,O,1,1,"ng-template",null,3,t.W1O),t.YNc(5,I,2,0,"nz-tab",4),t.qZA(),t.qZA(),t.qZA()),2&u){const B=t.MAs(4);t.xp6(2),t.Q6J("nzSelectedIndex",T.selectedTabIndex)("nzTabBarExtraContent",B),t.xp6(3),t.Q6J("ngForOf",T.tabs)}},directives:[E.SK,E.t3,a.xH,x.tP,x.sg,a.xw,a.Fx,a.Ao,b.yS,y.Ls,N.x7],styles:["[_nghost-%COMP%]{display:block}"]}),g})()},8762:(X,W,r)=>{r.d(W,{c:()=>O});var t=r(9808),b=r(868),E=r(1894),a=r(325),x=r(647),y=r(6949),N=r(4401),M=r(5e3);let O=(()=>{class z{}return z.\u0275fac=function(I){return new(I||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({imports:[[t.ez,a.Bz,b.we,E.Jb,x.PV,N.mS,y.WG]]}),z})()},4509:(X,W,r)=>{r.d(W,{w:()=>u});var t=r(9808),b=r(4182),E=r(7484),a=r(4546),x=r(7008),y=r(1825),N=r(4375),M=r(6042),O=r(4623),z=r(868),w=r(6949),I=r(8909),k=r(7525),g=r(4921),D=r(5e3);let u=(()=>{class T{}return T.\u0275fac=function(Y){return new(Y||T)},T.\u0275mod=D.oAB({type:T}),T.\u0275inj=D.cJS({imports:[[t.ez,b.UX,w.WG,M.sL,E.vh,z.we,a.U5,k.j,g.Gl,b.u5,x.B,y.A,N.R,I.m,O.K]]}),T})()},4921:(X,W,r)=>{r.d(W,{YW:()=>nt,Gl:()=>ct,O3:()=>S,jO:()=>H});var t=r(226),b=r(2845),E=r(9808),a=r(5e3),x=r(4182),y=r(647),N=r(8929),M=r(2916),O=r(6787),z=r(3753),w=r(655),I=r(1159),k=r(7429),g=r(1059),D=r(7545),u=r(6950),T=r(1721);const B=["items"];function Y(h,v){1&h&&a.GkF(0)}const ot=function(h){return{$implicit:h}};function at(h,v){if(1&h&&(a.ynx(0),a.YNc(1,Y,1,0,"ng-container",8),a.BQk()),2&h){const o=a.oxw().$implicit,d=a.oxw(2);a.xp6(1),a.Q6J("ngTemplateOutlet",d.suggestionTemplate)("ngTemplateOutletContext",a.VKq(2,ot,o))}}function V(h,v){if(1&h&&a._uU(0),2&h){const o=a.oxw().$implicit,d=a.oxw(2);a.Oqu(d.nzValueWith(o))}}function R(h,v){if(1&h){const o=a.EpF();a.TgZ(0,"li",4,5),a.NdJ("click",function(){const f=a.CHM(o).$implicit;return a.oxw(2).selectSuggestion(f)}),a.YNc(2,at,2,4,"ng-container",6),a.YNc(3,V,1,1,"ng-template",null,7,a.W1O),a.qZA()}if(2&h){const o=v.index,d=a.MAs(4),_=a.oxw(2);a.ekj("focus",o===_.activeIndex),a.xp6(2),a.Q6J("ngIf",_.suggestionTemplate)("ngIfElse",d)}}function tt(h,v){1&h&&(a.TgZ(0,"span"),a._UZ(1,"i",11),a.qZA())}function et(h,v){if(1&h&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&h){const o=a.oxw(3);a.xp6(1),a.Oqu(o.nzNotFoundContent)}}function rt(h,v){if(1&h&&(a.TgZ(0,"li",9),a.YNc(1,tt,2,0,"span",10),a.YNc(2,et,2,1,"span",10),a.qZA()),2&h){const o=a.oxw(2);a.xp6(1),a.Q6J("ngIf",o.nzLoading),a.xp6(1),a.Q6J("ngIf",!o.nzLoading)}}function j(h,v){if(1&h&&(a.TgZ(0,"ul",1),a.YNc(1,R,5,4,"li",2),a.YNc(2,rt,3,2,"li",3),a.qZA()),2&h){const o=a.oxw();a.xp6(1),a.Q6J("ngForOf",o.filteredSuggestions),a.xp6(1),a.Q6J("ngIf",0===o.filteredSuggestions.length)}}const P=["*"];let S=(()=>{class h{}return h.\u0275fac=function(o){return new(o||h)},h.\u0275dir=a.lG2({type:h,selectors:[["","nzMentionSuggestion",""]],exportAs:["nzMentionSuggestion"]}),h})();let q=(()=>{class h{constructor(){this.triggerChange$=new N.xQ}triggerChanged(){return this.triggerChange$.asObservable()}registerTrigger(o){this.trigger!==o&&(this.trigger=o,this.triggerChange$.next(o))}ngOnDestroy(){this.triggerChange$.complete()}}return h.\u0275fac=function(o){return new(o||h)},h.\u0275prov=a.Yz7({token:h,factory:h.\u0275fac}),h})();const lt={provide:x.JU,useExisting:(0,a.Gpc)(()=>H),multi:!0};let H=(()=>{class h{constructor(o,d){this.el=o,this.nzMentionService=d,this.onChange=()=>{},this.onTouched=()=>{},this.onFocusin=new a.vpe,this.onBlur=new a.vpe,this.onInput=new a.vpe,this.onKeydown=new a.vpe,this.onClick=new a.vpe}completeEvents(){this.onFocusin.complete(),this.onBlur.complete(),this.onInput.complete(),this.onKeydown.complete(),this.onClick.complete()}focus(o){this.el.nativeElement.focus(),this.el.nativeElement.setSelectionRange(o,o)}insertMention(o){const d=this.el.nativeElement.value,_=`${o.mention} `,f=[d.slice(0,o.startPos+1),_,d.slice(o.endPos,d.length)].join("");this.el.nativeElement.value=f,this.focus(o.startPos+_.length+1),this.onChange(f),this.value=f}writeValue(o){this.value=o,this.el.nativeElement.value="string"==typeof o?o:""}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}ngAfterViewInit(){this.nzMentionService.registerTrigger(this)}ngOnDestroy(){this.completeEvents()}}return h.\u0275fac=function(o){return new(o||h)(a.Y36(a.SBq),a.Y36(q))},h.\u0275dir=a.lG2({type:h,selectors:[["input","nzMentionTrigger",""],["textarea","nzMentionTrigger",""]],hostAttrs:["autocomplete","off"],hostBindings:function(o,d){1&o&&a.NdJ("focusin",function(){return d.onFocusin.emit()})("blur",function(){return d.onBlur.emit()})("input",function(f){return d.onInput.emit(f)})("keydown",function(f){return d.onKeydown.emit(f)})("click",function(f){return d.onClick.emit(f)})},exportAs:["nzMentionTrigger"],features:[a._Bn([lt])]}),h})(),nt=(()=>{class h{constructor(o,d,_,f,L,$){this.ngZone=o,this.ngDocument=d,this.cdr=_,this.overlay=f,this.viewContainerRef=L,this.nzMentionService=$,this.nzValueWith=Z=>Z,this.nzPrefix="@",this.nzLoading=!1,this.nzNotFoundContent="\u65e0\u5339\u914d\u7ed3\u679c\uff0c\u8f7b\u6572\u7a7a\u683c\u5b8c\u6210\u8f93\u5165",this.nzPlacement="bottom",this.nzSuggestions=[],this.nzOnSelect=new a.vpe,this.nzOnSearchChange=new a.vpe,this.isOpen=!1,this.filteredSuggestions=[],this.suggestionTemplate=null,this.activeIndex=-1,this.previousValue=null,this.cursorMention=null,this.overlayRef=null}set suggestionChild(o){o&&(this.suggestionTemplate=o)}get triggerNativeElement(){return this.trigger.el.nativeElement}get focusItemElement(){var o;const d=null===(o=this.items)||void 0===o?void 0:o.toArray();return d&&d[this.activeIndex]?d[this.activeIndex].nativeElement:null}ngOnInit(){this.nzMentionService.triggerChanged().subscribe(o=>{this.trigger=o,this.bindTriggerEvents(),this.closeDropdown(),this.overlayRef=null})}ngOnChanges(o){o.hasOwnProperty("nzSuggestions")&&this.isOpen&&(this.previousValue=null,this.activeIndex=-1,this.resetDropdown(!1))}ngAfterViewInit(){this.items.changes.pipe((0,g.O)(this.items),(0,D.w)(()=>{const o=this.items.toArray();return new M.y(d=>this.ngZone.runOutsideAngular(()=>(0,O.T)(...o.map(_=>(0,z.R)(_.nativeElement,"mousedown"))).subscribe(d)))})).subscribe(o=>{o.preventDefault()})}ngOnDestroy(){this.closeDropdown()}closeDropdown(){this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.overlayOutsideClickSubscription.unsubscribe(),this.isOpen=!1,this.cdr.markForCheck())}openDropdown(){this.attachOverlay(),this.isOpen=!0,this.cdr.markForCheck()}getMentions(){return this.trigger?(0,T.qR)(this.trigger.value,this.nzPrefix):[]}selectSuggestion(o){const d=this.nzValueWith(o);this.trigger.insertMention({mention:d,startPos:this.cursorMentionStart,endPos:this.cursorMentionEnd}),this.nzOnSelect.emit(o),this.closeDropdown(),this.activeIndex=-1}handleInput(o){const d=o.target;this.trigger.onChange(d.value),this.trigger.value=d.value,this.resetDropdown()}handleKeydown(o){const d=o.keyCode;if(this.isOpen&&d===I.K5&&-1!==this.activeIndex&&this.filteredSuggestions.length)this.selectSuggestion(this.filteredSuggestions[this.activeIndex]),o.preventDefault();else if(d===I.oh||d===I.SV)this.resetDropdown(),o.stopPropagation();else{if(this.isOpen&&(d===I.Mf||d===I.hY))return void this.closeDropdown();this.isOpen&&d===I.LH&&(this.setPreviousItemActive(),o.preventDefault(),o.stopPropagation()),this.isOpen&&d===I.JH&&(this.setNextItemActive(),o.preventDefault(),o.stopPropagation())}}handleClick(){this.resetDropdown()}bindTriggerEvents(){this.trigger.onInput.subscribe(o=>this.handleInput(o)),this.trigger.onKeydown.subscribe(o=>this.handleKeydown(o)),this.trigger.onClick.subscribe(()=>this.handleClick())}suggestionsFilter(o,d){const _=o.substring(1);if(this.previousValue===o&&o!==this.cursorMention[0])return;this.previousValue=o,d&&this.nzOnSearchChange.emit({value:this.cursorMention.substring(1),prefix:this.cursorMention[0]});const f=_.toLowerCase();this.filteredSuggestions=this.nzSuggestions.filter(L=>this.nzValueWith(L).toLowerCase().includes(f))}resetDropdown(o=!0){if(this.resetCursorMention(),"string"!=typeof this.cursorMention||!this.canOpen())return void this.closeDropdown();this.suggestionsFilter(this.cursorMention,o);const d=this.filteredSuggestions.indexOf(this.cursorMention.substring(1));this.activeIndex=d>=0?d:0,this.openDropdown()}setNextItemActive(){this.activeIndex=this.activeIndex+1<=this.filteredSuggestions.length-1?this.activeIndex+1:0,this.cdr.markForCheck(),this.scrollToFocusItem()}setPreviousItemActive(){this.activeIndex=this.activeIndex-1<0?this.filteredSuggestions.length-1:this.activeIndex-1,this.cdr.markForCheck(),this.scrollToFocusItem()}scrollToFocusItem(){this.focusItemElement&&this.focusItemElement.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}canOpen(){const o=this.triggerNativeElement;return!o.readOnly&&!o.disabled}resetCursorMention(){const o=this.triggerNativeElement.value.replace(/[\r\n]/g," ")||"",d=this.triggerNativeElement.selectionStart,_="string"==typeof this.nzPrefix?[this.nzPrefix]:this.nzPrefix;let f=_.length;for(;f>=0;){const L=o.lastIndexOf(_[f],d),$=o.indexOf(" ",d)>-1?o.indexOf(" ",d):o.length,Z=o.substring(L,$);if(!(L>0&&" "!==o[L-1]||L<0||Z.includes(_[f],1)||Z.includes(" ")))return this.cursorMention=Z,this.cursorMentionStart=L,void(this.cursorMentionEnd=$);this.cursorMention=null,this.cursorMentionStart=-1,this.cursorMentionEnd=-1,f--}}updatePositions(){const o=(0,T.Ly)(this.triggerNativeElement,this.cursorMentionStart),d=o.top-this.triggerNativeElement.getBoundingClientRect().height-this.triggerNativeElement.scrollTop+("bottom"===this.nzPlacement?o.height-6:-6);this.positionStrategy.withDefaultOffsetX(o.left-this.triggerNativeElement.scrollLeft).withDefaultOffsetY(d),"bottom"===this.nzPlacement&&this.positionStrategy.withPositions([...u.fG]),"top"===this.nzPlacement&&this.positionStrategy.withPositions([...u.A7]),this.positionStrategy.apply()}subscribeOverlayOutsideClick(){return(0,O.T)(this.overlayRef.outsidePointerEvents(),(0,z.R)(this.ngDocument,"touchend")).subscribe(o=>{var d;const _=o.target;this.isOpen&&_!==this.trigger.el.nativeElement&&!(null===(d=this.overlayRef)||void 0===d?void 0:d.overlayElement.contains(_))&&this.closeDropdown()})}attachOverlay(){this.overlayRef||(this.portal=new k.UE(this.suggestionsTemp,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick()),this.updatePositions()}getOverlayConfig(){return new b.X_({positionStrategy:this.getOverlayPosition(),scrollStrategy:this.overlay.scrollStrategies.reposition(),disposeOnNavigation:!0})}getOverlayPosition(){const o=[new b.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new b.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.trigger.el).withPositions(o).withFlexibleDimensions(!1).withPush(!1),this.positionStrategy}}return h.\u0275fac=function(o){return new(o||h)(a.Y36(a.R0b),a.Y36(E.K0,8),a.Y36(a.sBO),a.Y36(b.aV),a.Y36(a.s_b),a.Y36(q))},h.\u0275cmp=a.Xpm({type:h,selectors:[["nz-mention"]],contentQueries:function(o,d,_){if(1&o&&a.Suo(_,S,5,a.Rgc),2&o){let f;a.iGM(f=a.CRH())&&(d.suggestionChild=f.first)}},viewQuery:function(o,d){if(1&o&&(a.Gf(a.Rgc,5),a.Gf(B,5,a.SBq)),2&o){let _;a.iGM(_=a.CRH())&&(d.suggestionsTemp=_.first),a.iGM(_=a.CRH())&&(d.items=_)}},inputs:{nzValueWith:"nzValueWith",nzPrefix:"nzPrefix",nzLoading:"nzLoading",nzNotFoundContent:"nzNotFoundContent",nzPlacement:"nzPlacement",nzSuggestions:"nzSuggestions"},outputs:{nzOnSelect:"nzOnSelect",nzOnSearchChange:"nzOnSearchChange"},exportAs:["nzMention"],features:[a._Bn([q]),a.TTD],ngContentSelectors:P,decls:3,vars:0,consts:[["suggestions",""],[1,"ant-mention-dropdown"],["class","ant-mention-dropdown-item",3,"focus","click",4,"ngFor","ngForOf"],["class","ant-mention-dropdown-notfound ant-mention-dropdown-item",4,"ngIf"],[1,"ant-mention-dropdown-item",3,"click"],["items",""],[4,"ngIf","ngIfElse"],["defaultSuggestion",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-mention-dropdown-notfound","ant-mention-dropdown-item"],[4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(o,d){1&o&&(a.F$t(),a.Hsn(0),a.YNc(1,j,3,2,"ng-template",null,0,a.W1O))},directives:[E.sg,E.O5,E.tP,y.Ls],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,T.yF)()],h.prototype,"nzLoading",void 0),h})(),ct=(()=>{class h{}return h.\u0275fac=function(o){return new(o||h)},h.\u0275mod=a.oAB({type:h}),h.\u0275inj=a.cJS({imports:[[t.vT,E.ez,x.u5,b.U8,y.PV]]}),h})()},868:(X,W,r)=>{r.d(W,{xw:()=>pt,Ao:()=>gt,Fx:()=>mt,xH:()=>Ot,we:()=>jt});var t=r(5e3),b=r(969),E=r(647),a=r(6360),x=r(6987),y=r(5664),N=r(3191),M=r(1159),O=r(3753),z=r(2654),w=r(352),I=r(8139),k=r(8929),g=r(1086),D=r(6787),u=r(7625),T=r(7138),B=r(1059),Y=r(7224),ot=r(2198),at=r(6792),V=r(3677),R=r(9808),tt=r(4219),et=r(2321),rt=r(5577),j=r(226),P=r(655),S=r(1721),F=r(325),q=r(7144),lt=r(925),H=r(9439),nt=r(948);function vt(i,c){if(1&i&&(t.ynx(0),t._UZ(1,"i",1),t.BQk()),2&i){const e=c.$implicit;t.xp6(1),t.Q6J("nzType",e)}}function ct(i,c){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.tab.label," ")}}const h=function(){return{visible:!1}};function v(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"li",8),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onSelect(l)})("contextmenu",function(s){const m=t.CHM(e).$implicit;return t.oxw(2).onContextmenu(m,s)}),t.YNc(1,ct,2,1,"ng-container",9),t.qZA()}if(2&i){const e=c.$implicit;t.ekj("ant-tabs-dropdown-menu-item-disabled",e.disabled),t.Q6J("nzSelected",e.active)("nzDisabled",e.disabled),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.tab.label)("nzStringTemplateOutletContext",t.DdM(6,h))}}function o(i,c){if(1&i&&(t.TgZ(0,"ul",6),t.YNc(1,v,2,7,"li",7),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.items)}}function d(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().addClicked.emit()}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("addIcon",e.addIcon)}}const _=function(){return{minWidth:"46px"}},f=["navWarp"],L=["navList"];function $(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().addClicked.emit()}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("addIcon",e.addIcon)}}function Z(i,c){}function Pt(i,c){if(1&i&&(t.TgZ(0,"div",9),t.YNc(1,Z,0,0,"ng-template",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.extraTemplate)}}const At=["*"],St=["nz-tab-body",""];function Nt(i,c){}function Bt(i,c){if(1&i&&(t.ynx(0),t.YNc(1,Nt,0,0,"ng-template",1),t.BQk()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function Rt(i,c){if(1&i&&(t.ynx(0),t._UZ(1,"i",1),t.BQk()),2&i){const e=c.$implicit;t.xp6(1),t.Q6J("nzType",e)}}const Lt=["contentTemplate"];function Wt(i,c){1&i&&t.Hsn(0)}function wt(i,c){1&i&&t.Hsn(0,1)}const kt=[[["","nz-tab-link",""]],"*"],Ft=["[nz-tab-link]","*"];function Ut(i,c){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.label)}}function Ht(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(s){t.CHM(e);const l=t.oxw().index;return t.oxw(2).onClose(l,s)}),t.qZA()}if(2&i){const e=t.oxw().$implicit;t.Q6J("closeIcon",e.nzCloseIcon)}}const Kt=function(){return{visible:!0}};function Yt(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(s){const l=t.CHM(e),m=l.$implicit,p=l.index;return t.oxw(2).clickNavItem(m,p,s)})("contextmenu",function(s){const m=t.CHM(e).$implicit;return t.oxw(2).contextmenuNavItem(m,s)}),t.TgZ(1,"div",7),t.YNc(2,Ut,2,1,"ng-container",8),t.YNc(3,Ht,1,1,"button",9),t.qZA(),t.qZA()}if(2&i){const e=c.$implicit,n=c.index,s=t.oxw(2);t.Udp("margin-right","horizontal"===s.position?s.nzTabBarGutter:null,"px")("margin-bottom","vertical"===s.position?s.nzTabBarGutter:null,"px"),t.ekj("ant-tabs-tab-active",s.nzSelectedIndex===n)("ant-tabs-tab-disabled",e.nzDisabled),t.xp6(1),t.Q6J("disabled",e.nzDisabled)("tab",e)("active",s.nzSelectedIndex===n),t.uIk("tabIndex",s.getTabIndex(e,n))("aria-disabled",e.nzDisabled)("aria-selected",s.nzSelectedIndex===n&&!s.nzHideAll)("aria-controls",s.getTabContentId(n)),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.label)("nzStringTemplateOutletContext",t.DdM(18,Kt)),t.xp6(1),t.Q6J("ngIf",e.nzClosable&&s.closable&&!e.nzDisabled)}}function Zt(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"nz-tabs-nav",4),t.NdJ("tabScroll",function(s){return t.CHM(e),t.oxw().nzTabListScroll.emit(s)})("selectFocusedIndex",function(s){return t.CHM(e),t.oxw().setSelectedIndex(s)})("addClicked",function(){return t.CHM(e),t.oxw().onAdd()}),t.YNc(1,Yt,4,19,"div",5),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("ngStyle",e.nzTabBarStyle)("selectedIndex",e.nzSelectedIndex||0)("inkBarAnimated",e.inkBarAnimated)("addable",e.addable)("addIcon",e.nzAddIcon)("hideBar",e.nzHideAll)("position",e.position)("extraTemplate",e.nzTabBarExtraContent),t.xp6(1),t.Q6J("ngForOf",e.tabs)}}function Qt(i,c){if(1&i&&t._UZ(0,"div",11),2&i){const e=c.$implicit,n=c.index,s=t.oxw();t.Q6J("active",s.nzSelectedIndex===n&&!s.nzHideAll)("content",e.content)("forceRender",e.nzForceRender)("tabPaneAnimated",s.tabPaneAnimated)}}let it=(()=>{class i{constructor(e){this.elementRef=e,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetWidth)||0}getElementHeight(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetHeight)||0}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(e,n){1&e&&t.YNc(0,vt,2,1,"ng-container",0),2&e&&t.Q6J("nzStringTemplateOutlet",n.addIcon)},directives:[b.f,E.Ls],encapsulation:2}),i})(),dt=(()=>{class i{constructor(e,n,s){this.elementRef=e,this.ngZone=n,this.animationMode=s,this.position="horizontal",this.animated=!0}get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}alignToElement(e){this.ngZone.runOutsideAngular(()=>{(0,x.e)(()=>this.setStyles(e))})}setStyles(e){const n=this.elementRef.nativeElement;"horizontal"===this.position?(n.style.top="",n.style.height="",n.style.left=this.getLeftPosition(e),n.style.width=this.getElementWidth(e)):(n.style.left="",n.style.width="",n.style.top=this.getTopPosition(e),n.style.height=this.getElementHeight(e))}getLeftPosition(e){return e?`${e.offsetLeft||0}px`:"0"}getElementWidth(e){return e?`${e.offsetWidth||0}px`:"0"}getTopPosition(e){return e?`${e.offsetTop||0}px`:"0"}getElementHeight(e){return e?`${e.offsetHeight||0}px`:"0"}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.Qb,8))},i.\u0275dir=t.lG2({type:i,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("ant-tabs-ink-bar-animated",n._animated)},inputs:{position:"position",animated:"animated"}}),i})(),ht=(()=>{class i{constructor(e){this.elementRef=e,this.disabled=!1,this.active=!1,this.el=e.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","nzTabNavItem",""]],inputs:{disabled:"disabled",tab:"tab",active:"active"}}),i})(),_t=(()=>{class i{constructor(e,n){this.cdr=e,this.elementRef=n,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new t.vpe,this.selected=new t.vpe,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(e){e.disabled||(e.tab.nzClick.emit(),this.selected.emit(e))}onContextmenu(e,n){e.disabled||e.tab.nzContextmenu.emit(n)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(e){e||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetWidth)||0}getElementHeight(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetHeight)||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.sBO),t.Y36(t.SBq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("ant-tabs-nav-operations-hidden",0===n.items.length)},inputs:{items:"items",addable:"addable",addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement","nzVisibleChange","mouseenter"],["dropdownTrigger","nzDropdown"],["nz-icon","","nzType","ellipsis"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"nzSelected","nzDisabled","click","contextmenu"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"addIcon","click"]],template:function(e,n){if(1&e&&(t.TgZ(0,"button",0,1),t.NdJ("nzVisibleChange",function(l){return n.menuVisChange(l)})("mouseenter",function(){return n.showItems()}),t._UZ(2,"i",2),t.qZA(),t.TgZ(3,"nz-dropdown-menu",null,3),t.YNc(5,o,2,1,"ul",4),t.qZA(),t.YNc(6,d,1,1,"button",5)),2&e){const s=t.MAs(4);t.Q6J("nzDropdownMenu",s)("nzOverlayStyle",t.DdM(5,_))("nzMatchWidthElement",null),t.xp6(5),t.Q6J("ngIf",n.menuOpened),t.xp6(1),t.Q6J("ngIf",n.addable)}},directives:[V.RR,it,V.cm,E.Ls,R.O5,tt.wO,R.sg,tt.r9,b.f],encapsulation:2,changeDetection:0}),i})();const Tt=Math.pow(.995,20);let zt=(()=>{class i{constructor(e,n){this.ngZone=e,this.elementRef=n,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new t.vpe,this.tabScroll=new t.vpe,this.onTouchEnd=s=>{if(!this.touchPosition)return;const l=this.lastOffset,m=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,l){const p=l.x/m,C=l.y/m,U=Math.abs(p),Q=Math.abs(C);if(Math.max(U,Q)<.1)return;let K=p,J=C;this.motion=window.setInterval(()=>{Math.abs(K)<.01&&Math.abs(J)<.01?window.clearInterval(this.motion):(K*=Tt,J*=Tt,this.onOffset(20*K,20*J,s))},20)}},this.onTouchMove=s=>{if(!this.touchPosition)return;s.preventDefault();const{screenX:l,screenY:m}=s.touches[0],p=l-this.touchPosition.x,C=m-this.touchPosition.y;this.onOffset(p,C,s);const U=Date.now();this.lastTimeDiff=U-this.lastTimestamp,this.lastTimestamp=U,this.lastOffset={x:p,y:C},this.touchPosition={x:l,y:m}},this.onTouchStart=s=>{const{screenX:l,screenY:m}=s.touches[0];this.touchPosition={x:l,y:m},window.clearInterval(this.motion)},this.onWheel=s=>{const{deltaX:l,deltaY:m}=s;let p;const C=Math.abs(l),U=Math.abs(m);C===U?p="x"===this.lastWheelDirection?l:m:C>U?(p=l,this.lastWheelDirection="x"):(p=m,this.lastWheelDirection="y");const Q=Date.now(),K=Math.abs(p);(Q-this.lastWheelTimestamp>100||K-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-p,-p,s),(s.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=Q,this.lastMixedWheel=K}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const e=this.elementRef.nativeElement,n=(0,O.R)(e,"wheel"),s=(0,O.R)(e,"touchstart"),l=(0,O.R)(e,"touchmove"),m=(0,O.R)(e,"touchend"),p=new z.w;return p.add(this.subscribeWrap("wheel",n,this.onWheel)),p.add(this.subscribeWrap("touchstart",s,this.onTouchStart)),p.add(this.subscribeWrap("touchmove",l,this.onTouchMove)),p.add(this.subscribeWrap("touchend",m,this.onTouchEnd)),()=>{p.unsubscribe()}})}subscribeWrap(e,n,s){return n.subscribe(l=>{this.tabScroll.emit({type:e,event:l}),l.defaultPrevented||s(l)})}onOffset(e,n,s){this.ngZone.run(()=>{this.offsetChange.emit({x:e,y:n,event:s})})}ngOnDestroy(){this.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.R0b),t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}}),i})();const $t="undefined"!=typeof requestAnimationFrame?w.Z:I.E;let ut=(()=>{class i{constructor(e,n,s,l,m){this.cdr=e,this.ngZone=n,this.viewportRuler=s,this.nzResizeObserver=l,this.dir=m,this.indexFocused=new t.vpe,this.selectFocusedIndex=new t.vpe,this.addClicked=new t.vpe,this.tabScroll=new t.vpe,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new k.xQ,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const n=(0,N.su)(e);this._selectedIndex!==n&&(this._selectedIndex=e,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(e))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(e){!this.isValidIndex(e)||this.focusIndex===e||!this.keyManager||this.keyManager.setActiveItem(e)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}ngAfterViewInit(){const e=this.dir?this.dir.change:(0,g.of)(null),n=this.viewportRuler.change(150),s=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new y.Em(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),(0,x.e)(s),(0,D.T)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe((0,u.R)(this.destroy$),(0,T.e)(16,$t)).subscribe(()=>{s()}),(0,D.T)(e,n,this.items.changes).pipe((0,u.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(s),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe((0,u.R)(this.destroy$)).subscribe(l=>{this.indexFocused.emit(l),this.setTabFocus(l),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(e){const n=this.items.toArray().findIndex(s=>s===e);-1!==n&&(this.keyManager.updateActiveItem(n),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(e)))}onOffsetChange(e){if("horizontal"===this.position){if(-1===this.lockAnimationTimeoutId&&(this.transformX>=0&&e.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&e.x<0))return;e.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+e.x),this.setTransform(this.transformX,0)}else{if(-1===this.lockAnimationTimeoutId&&(this.transformY>=0&&e.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&e.y<0))return;e.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+e.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(e){const n=this.navWarpRef.nativeElement.contains(e.target);if(!(0,M.Vb)(e)&&n)switch(e.keyCode){case M.oh:case M.LH:case M.SV:case M.JH:this.lockAnimation(),this.keyManager.onKeydown(e);break;case M.K5:case M.L_:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(e)}}isValidIndex(e){if(!this.items)return!0;const n=this.items?this.items.toArray()[e]:null;return!!n&&!n.disabled}scrollToTab(e){if(!this.items.find(s=>s===e))return;const n=this.items.toArray();if("horizontal"===this.position){let s=this.transformX;if("rtl"===this.getLayoutDirection()){const l=n[0].left+n[0].width-e.left-e.width;lthis.transformX+this.wrapperWidth&&(s=l+e.width-this.wrapperWidth)}else e.left<-this.transformX?s=-e.left:e.left+e.width>-this.transformX+this.wrapperWidth&&(s=-(e.left+e.width-this.wrapperWidth));this.transformX=s,this.transformY=0,this.setTransform(s,0)}else{let s=this.transformY;e.top<-this.transformY?s=-e.top:e.top+e.height>-this.transformY+this.wrapperHeight&&(s=-(e.top+e.height-this.wrapperHeight)),this.transformY=s,this.transformX=0,this.setTransform(0,s)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){-1===this.lockAnimationTimeoutId&&this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=-1},150)})}setTransform(e,n){this.navListRef.nativeElement.style.transform=`translate(${e}px, ${n}px)`}clampTransformX(e){const n=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(n,e),0):Math.min(Math.max(n,e),0)}clampTransformY(e){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,e),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){const e=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n&&this.inkBar.alignToElement(n.parentElement)}setPingStatus(){const e={top:!1,right:!1,bottom:!1,left:!1},n=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(e.right=this.transformX>0,e.left=this.transformX+this.wrapperWidth{const l=`ant-tabs-nav-wrap-ping-${s}`;e[s]?n.classList.add(l):n.classList.remove(l)})}setVisibleRange(){let e,n,s,l,m,p;const C=this.items.toArray(),U={width:0,height:0,left:0,top:0,right:0},Q=A=>{let G;return G="right"===n?C[0].left+C[0].width-C[A].left-C[A].width:(C[A]||U)[n],G};"horizontal"===this.position?(e="width",l=this.wrapperWidth,m=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),p=this.addButtonWidth,s=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidthl&&(K=l-p),!C.length)return this.hiddenItems=[],void this.cdr.markForCheck();const J=C.length;let xt=J;for(let A=0;As+K){xt=A-1;break}let yt=0;for(let A=J-1;A>=0;A-=1)if(Q(A){class i{constructor(){this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:12,hostBindings:function(e,n){2&e&&(t.uIk("tabindex",n.active?0:-1)("aria-hidden",!n.active),t.Udp("visibility",n.tabPaneAnimated?n.active?null:"hidden":null)("height",n.tabPaneAnimated?n.active?null:0:null)("overflow-y",n.tabPaneAnimated?n.active?null:"none":null)("display",n.tabPaneAnimated||n.active?null:"none"),t.ekj("ant-tabs-tabpane-active",n.active))},inputs:{content:"content",active:"active",tabPaneAnimated:"tabPaneAnimated",forceRender:"forceRender"},exportAs:["nzTabBody"],attrs:St,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(e,n){1&e&&t.YNc(0,Bt,2,1,"ng-container",0),2&e&&t.Q6J("ngIf",n.active||n.forceRender)},directives:[R.O5,R.tP],encapsulation:2,changeDetection:0}),i})(),Mt=(()=>{class i{constructor(){this.closeIcon="close"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(e,n){1&e&&t.YNc(0,Rt,2,1,"ng-container",0),2&e&&t.Q6J("nzStringTemplateOutlet",n.closeIcon)},directives:[b.f,E.Ls],encapsulation:2}),i})(),mt=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.Rgc,1))},i.\u0275dir=t.lG2({type:i,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]}),i})(),gt=(()=>{class i{constructor(e,n,s){this.elementRef=e,this.routerLink=n,this.routerLinkWithHref=s}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(F.rH,10),t.Y36(F.yS,10))},i.\u0275dir=t.lG2({type:i,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]}),i})(),It=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=t.lG2({type:i,selectors:[["","nz-tab",""]],exportAs:["nzTab"]}),i})();const Dt=new t.OlP("NZ_TAB_SET");let pt=(()=>{class i{constructor(e){this.closestTabSet=e,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new t.vpe,this.nzDeselect=new t.vpe,this.nzClick=new t.vpe,this.nzContextmenu=new t.vpe,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new k.xQ}get content(){return this.template||this.contentTemplate}get label(){var e;return this.nzTitle||(null===(e=this.nzTabLinkTemplateDirective)||void 0===e?void 0:e.templateRef)}ngOnChanges(e){const{nzTitle:n,nzDisabled:s,nzForceRender:l}=e;(n||s||l)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Dt))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tab"]],contentQueries:function(e,n,s){if(1&e&&(t.Suo(s,mt,5),t.Suo(s,It,5,t.Rgc),t.Suo(s,gt,5)),2&e){let l;t.iGM(l=t.CRH())&&(n.nzTabLinkTemplateDirective=l.first),t.iGM(l=t.CRH())&&(n.template=l.first),t.iGM(l=t.CRH())&&(n.linkDirective=l.first)}},viewQuery:function(e,n){if(1&e&&t.Gf(Lt,7),2&e){let s;t.iGM(s=t.CRH())&&(n.contentTemplate=s.first)}},inputs:{nzTitle:"nzTitle",nzClosable:"nzClosable",nzCloseIcon:"nzCloseIcon",nzDisabled:"nzDisabled",nzForceRender:"nzForceRender"},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[t.TTD],ngContentSelectors:Ft,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(e,n){1&e&&(t.F$t(kt),t.YNc(0,Wt,1,0,"ng-template",null,0,t.W1O),t.YNc(2,wt,1,0,"ng-template",null,1,t.W1O))},encapsulation:2,changeDetection:0}),(0,P.gn)([(0,S.yF)()],i.prototype,"nzClosable",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzDisabled",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzForceRender",void 0),i})();class Gt{}let Vt=0,Ot=(()=>{class i{constructor(e,n,s,l){this.nzConfigService=e,this.cdr=n,this.directionality=s,this.router=l,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new t.vpe(!0),this.nzSelectedIndexChange=new t.vpe,this.nzTabListScroll=new t.vpe,this.nzClose=new t.vpe,this.nzAdd=new t.vpe,this.allTabs=new t.n_E,this.tabs=new t.n_E,this.dir="ltr",this.destroy$=new k.xQ,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=z.w.EMPTY,this.tabsSubscription=z.w.EMPTY,this.canDeactivateSubscription=z.w.EMPTY,this.tabSetId=Vt++}get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(e){this.indexToSelect=(0,N.su)(e,null)}get position(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}get addable(){return"editable-card"===this.nzType&&!this.nzHideAdd}get closable(){return"editable-card"===this.nzType}get line(){return"line"===this.nzType}get inkBarAnimated(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return"horizontal"===this.position&&this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane)}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,u.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){Promise.resolve().then(()=>{this.setUpRouter()}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){const n=this.tabs.toArray();for(let s=0;s{this.tabs.forEach((s,l)=>s.isActive=l===e),n||this.nzSelectedIndexChange.emit(e)})}this.tabs.forEach((n,s)=>{n.position=s-e,null!=this.selectedIndex&&0===n.position&&!n.origin&&(n.origin=e-this.selectedIndex)}),this.selectedIndex!==e&&(this.selectedIndex=e,this.cdr.markForCheck())}onClose(e,n){n.preventDefault(),n.stopPropagation(),this.nzClose.emit({index:e})}onAdd(){this.nzAdd.emit()}clampTabIndex(e){return Math.min(this.tabs.length-1,Math.max(e||0,0))}createChangeEvent(e){const n=new Gt;return n.index=e,this.tabs&&this.tabs.length&&(n.tab=this.tabs.toArray()[e],this.tabs.forEach((s,l)=>{l!==e&&s.nzDeselect.emit()}),n.tab.nzSelect.emit()),n}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=(0,D.T)(...this.tabs.map(e=>e.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe((0,B.O)(this.allTabs)).subscribe(e=>{this.tabs.reset(e.filter(n=>n.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(e,n){return"function"==typeof this.nzCanDeactivate?(0,S.lN)(this.nzCanDeactivate(e,n)).pipe((0,Y.P)(),(0,u.R)(this.destroy$)):(0,g.of)(!0)}clickNavItem(e,n,s){e.nzDisabled||(e.nzClick.emit(),this.isRouterLinkClickEvent(n,s)||this.setSelectedIndex(n))}isRouterLinkClickEvent(e,n){var s,l;const m=n.target;return!!this.nzLinkRouter&&!!(null===(l=null===(s=this.tabs.toArray()[e])||void 0===s?void 0:s.linkDirective)||void 0===l?void 0:l.elementRef.nativeElement.contains(m))}contextmenuNavItem(e,n){e.nzDisabled||e.nzContextmenu.emit(n)}setSelectedIndex(e){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,e).subscribe(n=>{n&&(this.nzSelectedIndex=e,this.tabNavBarRef.focusIndex=e,this.cdr.markForCheck())})}getTabIndex(e,n){return e.nzDisabled?null:this.selectedIndex===n?0:-1}getTabContentId(e){return`nz-tabs-${this.tabSetId}-tab-${e}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${nt.Bq} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe((0,u.R)(this.destroy$),(0,ot.h)(e=>e instanceof F.m2),(0,B.O)(!0),(0,at.g)(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const e=this.findShouldActiveTabIndex();e!==this.selectedIndex&&this.setSelectedIndex(e),this.nzHideAll=-1===e}}findShouldActiveTabIndex(){const e=this.tabs.toArray(),n=this.isLinkActive(this.router);return e.findIndex(s=>{const l=s.linkDirective;return!!l&&(n(l.routerLink)||n(l.routerLinkWithHref))})}isLinkActive(e){return n=>!!n&&e.isActive(n.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}getTabContentMarginValue(){return 100*-(this.nzSelectedIndex||0)}getTabContentMarginLeft(){return this.tabPaneAnimated&&"rtl"!==this.dir?`${this.getTabContentMarginValue()}%`:""}getTabContentMarginRight(){return this.tabPaneAnimated&&"rtl"===this.dir?`${this.getTabContentMarginValue()}%`:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(H.jY),t.Y36(t.sBO),t.Y36(j.Is,8),t.Y36(F.F0,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tabset"]],contentQueries:function(e,n,s){if(1&e&&t.Suo(s,pt,5),2&e){let l;t.iGM(l=t.CRH())&&(n.allTabs=l)}},viewQuery:function(e,n){if(1&e&&t.Gf(ut,5),2&e){let s;t.iGM(s=t.CRH())&&(n.tabNavBarRef=s.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(e,n){2&e&&t.ekj("ant-tabs-card","card"===n.nzType||"editable-card"===n.nzType)("ant-tabs-editable","editable-card"===n.nzType)("ant-tabs-editable-card","editable-card"===n.nzType)("ant-tabs-centered",n.nzCentered)("ant-tabs-rtl","rtl"===n.dir)("ant-tabs-top","top"===n.nzTabPosition)("ant-tabs-bottom","bottom"===n.nzTabPosition)("ant-tabs-left","left"===n.nzTabPosition)("ant-tabs-right","right"===n.nzTabPosition)("ant-tabs-default","default"===n.nzSize)("ant-tabs-small","small"===n.nzSize)("ant-tabs-large","large"===n.nzSize)},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:"nzHideAdd",nzCentered:"nzCentered",nzHideAll:"nzHideAll",nzLinkRouter:"nzLinkRouter",nzLinkExact:"nzLinkExact"},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],features:[t._Bn([{provide:Dt,useExisting:i}])],decls:4,vars:16,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated",4,"ngFor","ngForOf"],[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["nz-tab-close-button","",3,"closeIcon","click"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated"]],template:function(e,n){1&e&&(t.YNc(0,Zt,2,9,"nz-tabs-nav",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.YNc(3,Qt,1,4,"div",3),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",n.tabs.length||n.addable),t.xp6(2),t.Udp("margin-left",n.getTabContentMarginLeft())("margin-right",n.getTabContentMarginRight()),t.ekj("ant-tabs-content-top","top"===n.nzTabPosition)("ant-tabs-content-bottom","bottom"===n.nzTabPosition)("ant-tabs-content-left","left"===n.nzTabPosition)("ant-tabs-content-right","right"===n.nzTabPosition)("ant-tabs-content-animated",n.tabPaneAnimated),t.xp6(1),t.Q6J("ngForOf",n.tabs))},directives:[ut,Mt,Et,R.O5,R.PC,R.sg,ht,y.kH,b.f],encapsulation:2}),(0,P.gn)([(0,H.oS)()],i.prototype,"nzType",void 0),(0,P.gn)([(0,H.oS)()],i.prototype,"nzSize",void 0),(0,P.gn)([(0,H.oS)()],i.prototype,"nzAnimated",void 0),(0,P.gn)([(0,H.oS)()],i.prototype,"nzTabBarGutter",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzHideAdd",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzCentered",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzHideAll",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzLinkRouter",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzLinkExact",void 0),i})(),jt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[j.vT,R.ez,q.Q8,E.PV,b.T,lt.ud,y.rt,et.ZD,V.b1]]}),i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[55],{8909:(X,W,r)=>{r.d(W,{m:()=>k});var t=r(9808),b=r(7488),E=r(8369),a=r(209),x=r(4867),y=r(7677),N=r(3309),M=r(7345),O=r(9476),z=r(8481),w=r(647),I=r(5e3);let k=(()=>{class g{}return g.\u0275fac=function(u){return new(u||g)},g.\u0275mod=I.oAB({type:g}),g.\u0275inj=I.cJS({imports:[[t.ez,z.X,w.PV,b.y,E.W,a.i,x.Q,y.G,N.U,M.W,O.L]]}),g})()},2233:(X,W,r)=>{r.d(W,{P:()=>k});var t=r(5e3),b=r(325),E=r(1894),a=r(868),x=r(9808),y=r(647),N=r(4401);const M=["tabBarExtraContent"];function O(g,D){if(1&g&&t.GkF(0,5),2&g){const u=t.oxw();t.Q6J("ngTemplateOutlet",u.tabBarExtraContent||null)}}const z=function(){return{transform:"scale(0.75, 0.75) translate(0, -2px)"}};function w(g,D){if(1&g&&(t.TgZ(0,"a",7),t._UZ(1,"i",8),t._uU(2),t._UZ(3,"nz-badge",9),t.qZA()),2&g){const u=t.oxw().$implicit;t.Q6J("routerLink",u.routeName),t.xp6(1),t.Q6J("nzType",u.iconName),t.xp6(1),t.hij(" ",u.tabLabel," "),t.xp6(1),t.MGl("nzTitle","There are ",u.badgeCount," outstanding revisions."),t.Q6J("nzCount",u.badgeCount)("nzStyle",t.DdM(6,z))}}function I(g,D){1&g&&(t.TgZ(0,"nz-tab"),t.YNc(1,w,4,7,"a",6),t.qZA())}let k=(()=>{class g{constructor(u){this.router=u,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url)}getActivatedRouteIndex(u){var T;return null===(T=this.tabs)||void 0===T?void 0:T.findIndex(B=>u.includes(B.routeName))}}return g.\u0275fac=function(u){return new(u||g)(t.Y36(b.F0))},g.\u0275cmp=t.Xpm({type:g,selectors:[["cvc-tab-navigation"]],contentQueries:function(u,T,B){if(1&u&&t.Suo(B,M,5),2&u){let Y;t.iGM(Y=t.CRH())&&(T.tabBarExtraContent=Y.first)}},inputs:{entity:"entity",tabs:"tabs"},decls:6,vars:3,consts:[["id","section-tabs"],["nzSpan","24"],["nzLinkRouter","","nzType","card","nzSize","small",3,"nzSelectedIndex","nzTabBarExtraContent"],["extraTpl",""],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["nz-tab-link","",3,"routerLink",4,"nzTabLink"],["nz-tab-link","",3,"routerLink"],["nz-icon","",3,"nzType"],["nzStandalone","",3,"nzCount","nzTitle","nzStyle"]],template:function(u,T){if(1&u&&(t.TgZ(0,"nz-row",0),t.TgZ(1,"nz-col",1),t.TgZ(2,"nz-tabset",2),t.YNc(3,O,1,1,"ng-template",null,3,t.W1O),t.YNc(5,I,2,0,"nz-tab",4),t.qZA(),t.qZA(),t.qZA()),2&u){const B=t.MAs(4);t.xp6(2),t.Q6J("nzSelectedIndex",T.selectedTabIndex)("nzTabBarExtraContent",B),t.xp6(3),t.Q6J("ngForOf",T.tabs)}},directives:[E.SK,E.t3,a.xH,x.tP,x.sg,a.xw,a.Fx,a.Ao,b.yS,y.Ls,N.x7],styles:["[_nghost-%COMP%]{display:block}"]}),g})()},8762:(X,W,r)=>{r.d(W,{c:()=>O});var t=r(9808),b=r(868),E=r(1894),a=r(325),x=r(647),y=r(6949),N=r(4401),M=r(5e3);let O=(()=>{class z{}return z.\u0275fac=function(I){return new(I||z)},z.\u0275mod=M.oAB({type:z}),z.\u0275inj=M.cJS({imports:[[t.ez,a.Bz,b.we,E.Jb,x.PV,N.mS,y.WG]]}),z})()},4509:(X,W,r)=>{r.d(W,{w:()=>u});var t=r(9808),b=r(4182),E=r(7484),a=r(4546),x=r(7008),y=r(1825),N=r(4375),M=r(6042),O=r(4623),z=r(868),w=r(6949),I=r(8909),k=r(7525),g=r(4921),D=r(5e3);let u=(()=>{class T{}return T.\u0275fac=function(Y){return new(Y||T)},T.\u0275mod=D.oAB({type:T}),T.\u0275inj=D.cJS({imports:[[t.ez,b.UX,w.WG,M.sL,E.vh,z.we,a.U5,k.j,g.Gl,b.u5,x.B,y.A,N.R,I.m,O.K]]}),T})()},4921:(X,W,r)=>{r.d(W,{YW:()=>nt,Gl:()=>ct,O3:()=>S,jO:()=>H});var t=r(226),b=r(2845),E=r(9808),a=r(5e3),x=r(4182),y=r(647),N=r(8929),M=r(2916),O=r(6787),z=r(3753),w=r(655),I=r(1159),k=r(7429),g=r(1059),D=r(7545),u=r(6950),T=r(1721);const B=["items"];function Y(h,v){1&h&&a.GkF(0)}const ot=function(h){return{$implicit:h}};function at(h,v){if(1&h&&(a.ynx(0),a.YNc(1,Y,1,0,"ng-container",8),a.BQk()),2&h){const o=a.oxw().$implicit,d=a.oxw(2);a.xp6(1),a.Q6J("ngTemplateOutlet",d.suggestionTemplate)("ngTemplateOutletContext",a.VKq(2,ot,o))}}function V(h,v){if(1&h&&a._uU(0),2&h){const o=a.oxw().$implicit,d=a.oxw(2);a.Oqu(d.nzValueWith(o))}}function R(h,v){if(1&h){const o=a.EpF();a.TgZ(0,"li",4,5),a.NdJ("click",function(){const f=a.CHM(o).$implicit;return a.oxw(2).selectSuggestion(f)}),a.YNc(2,at,2,4,"ng-container",6),a.YNc(3,V,1,1,"ng-template",null,7,a.W1O),a.qZA()}if(2&h){const o=v.index,d=a.MAs(4),_=a.oxw(2);a.ekj("focus",o===_.activeIndex),a.xp6(2),a.Q6J("ngIf",_.suggestionTemplate)("ngIfElse",d)}}function tt(h,v){1&h&&(a.TgZ(0,"span"),a._UZ(1,"i",11),a.qZA())}function et(h,v){if(1&h&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&h){const o=a.oxw(3);a.xp6(1),a.Oqu(o.nzNotFoundContent)}}function rt(h,v){if(1&h&&(a.TgZ(0,"li",9),a.YNc(1,tt,2,0,"span",10),a.YNc(2,et,2,1,"span",10),a.qZA()),2&h){const o=a.oxw(2);a.xp6(1),a.Q6J("ngIf",o.nzLoading),a.xp6(1),a.Q6J("ngIf",!o.nzLoading)}}function j(h,v){if(1&h&&(a.TgZ(0,"ul",1),a.YNc(1,R,5,4,"li",2),a.YNc(2,rt,3,2,"li",3),a.qZA()),2&h){const o=a.oxw();a.xp6(1),a.Q6J("ngForOf",o.filteredSuggestions),a.xp6(1),a.Q6J("ngIf",0===o.filteredSuggestions.length)}}const P=["*"];let S=(()=>{class h{}return h.\u0275fac=function(o){return new(o||h)},h.\u0275dir=a.lG2({type:h,selectors:[["","nzMentionSuggestion",""]],exportAs:["nzMentionSuggestion"]}),h})();let q=(()=>{class h{constructor(){this.triggerChange$=new N.xQ}triggerChanged(){return this.triggerChange$.asObservable()}registerTrigger(o){this.trigger!==o&&(this.trigger=o,this.triggerChange$.next(o))}ngOnDestroy(){this.triggerChange$.complete()}}return h.\u0275fac=function(o){return new(o||h)},h.\u0275prov=a.Yz7({token:h,factory:h.\u0275fac}),h})();const lt={provide:x.JU,useExisting:(0,a.Gpc)(()=>H),multi:!0};let H=(()=>{class h{constructor(o,d){this.el=o,this.nzMentionService=d,this.onChange=()=>{},this.onTouched=()=>{},this.onFocusin=new a.vpe,this.onBlur=new a.vpe,this.onInput=new a.vpe,this.onKeydown=new a.vpe,this.onClick=new a.vpe}completeEvents(){this.onFocusin.complete(),this.onBlur.complete(),this.onInput.complete(),this.onKeydown.complete(),this.onClick.complete()}focus(o){this.el.nativeElement.focus(),this.el.nativeElement.setSelectionRange(o,o)}insertMention(o){const d=this.el.nativeElement.value,_=`${o.mention} `,f=[d.slice(0,o.startPos+1),_,d.slice(o.endPos,d.length)].join("");this.el.nativeElement.value=f,this.focus(o.startPos+_.length+1),this.onChange(f),this.value=f}writeValue(o){this.value=o,this.el.nativeElement.value="string"==typeof o?o:""}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}ngAfterViewInit(){this.nzMentionService.registerTrigger(this)}ngOnDestroy(){this.completeEvents()}}return h.\u0275fac=function(o){return new(o||h)(a.Y36(a.SBq),a.Y36(q))},h.\u0275dir=a.lG2({type:h,selectors:[["input","nzMentionTrigger",""],["textarea","nzMentionTrigger",""]],hostAttrs:["autocomplete","off"],hostBindings:function(o,d){1&o&&a.NdJ("focusin",function(){return d.onFocusin.emit()})("blur",function(){return d.onBlur.emit()})("input",function(f){return d.onInput.emit(f)})("keydown",function(f){return d.onKeydown.emit(f)})("click",function(f){return d.onClick.emit(f)})},exportAs:["nzMentionTrigger"],features:[a._Bn([lt])]}),h})(),nt=(()=>{class h{constructor(o,d,_,f,L,$){this.ngZone=o,this.ngDocument=d,this.cdr=_,this.overlay=f,this.viewContainerRef=L,this.nzMentionService=$,this.nzValueWith=Z=>Z,this.nzPrefix="@",this.nzLoading=!1,this.nzNotFoundContent="\u65e0\u5339\u914d\u7ed3\u679c\uff0c\u8f7b\u6572\u7a7a\u683c\u5b8c\u6210\u8f93\u5165",this.nzPlacement="bottom",this.nzSuggestions=[],this.nzOnSelect=new a.vpe,this.nzOnSearchChange=new a.vpe,this.isOpen=!1,this.filteredSuggestions=[],this.suggestionTemplate=null,this.activeIndex=-1,this.previousValue=null,this.cursorMention=null,this.overlayRef=null}set suggestionChild(o){o&&(this.suggestionTemplate=o)}get triggerNativeElement(){return this.trigger.el.nativeElement}get focusItemElement(){var o;const d=null===(o=this.items)||void 0===o?void 0:o.toArray();return d&&d[this.activeIndex]?d[this.activeIndex].nativeElement:null}ngOnInit(){this.nzMentionService.triggerChanged().subscribe(o=>{this.trigger=o,this.bindTriggerEvents(),this.closeDropdown(),this.overlayRef=null})}ngOnChanges(o){o.hasOwnProperty("nzSuggestions")&&this.isOpen&&(this.previousValue=null,this.activeIndex=-1,this.resetDropdown(!1))}ngAfterViewInit(){this.items.changes.pipe((0,g.O)(this.items),(0,D.w)(()=>{const o=this.items.toArray();return new M.y(d=>this.ngZone.runOutsideAngular(()=>(0,O.T)(...o.map(_=>(0,z.R)(_.nativeElement,"mousedown"))).subscribe(d)))})).subscribe(o=>{o.preventDefault()})}ngOnDestroy(){this.closeDropdown()}closeDropdown(){this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.overlayOutsideClickSubscription.unsubscribe(),this.isOpen=!1,this.cdr.markForCheck())}openDropdown(){this.attachOverlay(),this.isOpen=!0,this.cdr.markForCheck()}getMentions(){return this.trigger?(0,T.qR)(this.trigger.value,this.nzPrefix):[]}selectSuggestion(o){const d=this.nzValueWith(o);this.trigger.insertMention({mention:d,startPos:this.cursorMentionStart,endPos:this.cursorMentionEnd}),this.nzOnSelect.emit(o),this.closeDropdown(),this.activeIndex=-1}handleInput(o){const d=o.target;this.trigger.onChange(d.value),this.trigger.value=d.value,this.resetDropdown()}handleKeydown(o){const d=o.keyCode;if(this.isOpen&&d===I.K5&&-1!==this.activeIndex&&this.filteredSuggestions.length)this.selectSuggestion(this.filteredSuggestions[this.activeIndex]),o.preventDefault();else if(d===I.oh||d===I.SV)this.resetDropdown(),o.stopPropagation();else{if(this.isOpen&&(d===I.Mf||d===I.hY))return void this.closeDropdown();this.isOpen&&d===I.LH&&(this.setPreviousItemActive(),o.preventDefault(),o.stopPropagation()),this.isOpen&&d===I.JH&&(this.setNextItemActive(),o.preventDefault(),o.stopPropagation())}}handleClick(){this.resetDropdown()}bindTriggerEvents(){this.trigger.onInput.subscribe(o=>this.handleInput(o)),this.trigger.onKeydown.subscribe(o=>this.handleKeydown(o)),this.trigger.onClick.subscribe(()=>this.handleClick())}suggestionsFilter(o,d){const _=o.substring(1);if(this.previousValue===o&&o!==this.cursorMention[0])return;this.previousValue=o,d&&this.nzOnSearchChange.emit({value:this.cursorMention.substring(1),prefix:this.cursorMention[0]});const f=_.toLowerCase();this.filteredSuggestions=this.nzSuggestions.filter(L=>this.nzValueWith(L).toLowerCase().includes(f))}resetDropdown(o=!0){if(this.resetCursorMention(),"string"!=typeof this.cursorMention||!this.canOpen())return void this.closeDropdown();this.suggestionsFilter(this.cursorMention,o);const d=this.filteredSuggestions.indexOf(this.cursorMention.substring(1));this.activeIndex=d>=0?d:0,this.openDropdown()}setNextItemActive(){this.activeIndex=this.activeIndex+1<=this.filteredSuggestions.length-1?this.activeIndex+1:0,this.cdr.markForCheck(),this.scrollToFocusItem()}setPreviousItemActive(){this.activeIndex=this.activeIndex-1<0?this.filteredSuggestions.length-1:this.activeIndex-1,this.cdr.markForCheck(),this.scrollToFocusItem()}scrollToFocusItem(){this.focusItemElement&&this.focusItemElement.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}canOpen(){const o=this.triggerNativeElement;return!o.readOnly&&!o.disabled}resetCursorMention(){const o=this.triggerNativeElement.value.replace(/[\r\n]/g," ")||"",d=this.triggerNativeElement.selectionStart,_="string"==typeof this.nzPrefix?[this.nzPrefix]:this.nzPrefix;let f=_.length;for(;f>=0;){const L=o.lastIndexOf(_[f],d),$=o.indexOf(" ",d)>-1?o.indexOf(" ",d):o.length,Z=o.substring(L,$);if(!(L>0&&" "!==o[L-1]||L<0||Z.includes(_[f],1)||Z.includes(" ")))return this.cursorMention=Z,this.cursorMentionStart=L,void(this.cursorMentionEnd=$);this.cursorMention=null,this.cursorMentionStart=-1,this.cursorMentionEnd=-1,f--}}updatePositions(){const o=(0,T.Ly)(this.triggerNativeElement,this.cursorMentionStart),d=o.top-this.triggerNativeElement.getBoundingClientRect().height-this.triggerNativeElement.scrollTop+("bottom"===this.nzPlacement?o.height-6:-6);this.positionStrategy.withDefaultOffsetX(o.left-this.triggerNativeElement.scrollLeft).withDefaultOffsetY(d),"bottom"===this.nzPlacement&&this.positionStrategy.withPositions([...u.fG]),"top"===this.nzPlacement&&this.positionStrategy.withPositions([...u.A7]),this.positionStrategy.apply()}subscribeOverlayOutsideClick(){return(0,O.T)(this.overlayRef.outsidePointerEvents(),(0,z.R)(this.ngDocument,"touchend")).subscribe(o=>{var d;const _=o.target;this.isOpen&&_!==this.trigger.el.nativeElement&&!(null===(d=this.overlayRef)||void 0===d?void 0:d.overlayElement.contains(_))&&this.closeDropdown()})}attachOverlay(){this.overlayRef||(this.portal=new k.UE(this.suggestionsTemp,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick()),this.updatePositions()}getOverlayConfig(){return new b.X_({positionStrategy:this.getOverlayPosition(),scrollStrategy:this.overlay.scrollStrategies.reposition(),disposeOnNavigation:!0})}getOverlayPosition(){const o=[new b.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new b.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.trigger.el).withPositions(o).withFlexibleDimensions(!1).withPush(!1),this.positionStrategy}}return h.\u0275fac=function(o){return new(o||h)(a.Y36(a.R0b),a.Y36(E.K0,8),a.Y36(a.sBO),a.Y36(b.aV),a.Y36(a.s_b),a.Y36(q))},h.\u0275cmp=a.Xpm({type:h,selectors:[["nz-mention"]],contentQueries:function(o,d,_){if(1&o&&a.Suo(_,S,5,a.Rgc),2&o){let f;a.iGM(f=a.CRH())&&(d.suggestionChild=f.first)}},viewQuery:function(o,d){if(1&o&&(a.Gf(a.Rgc,5),a.Gf(B,5,a.SBq)),2&o){let _;a.iGM(_=a.CRH())&&(d.suggestionsTemp=_.first),a.iGM(_=a.CRH())&&(d.items=_)}},inputs:{nzValueWith:"nzValueWith",nzPrefix:"nzPrefix",nzLoading:"nzLoading",nzNotFoundContent:"nzNotFoundContent",nzPlacement:"nzPlacement",nzSuggestions:"nzSuggestions"},outputs:{nzOnSelect:"nzOnSelect",nzOnSearchChange:"nzOnSearchChange"},exportAs:["nzMention"],features:[a._Bn([q]),a.TTD],ngContentSelectors:P,decls:3,vars:0,consts:[["suggestions",""],[1,"ant-mention-dropdown"],["class","ant-mention-dropdown-item",3,"focus","click",4,"ngFor","ngForOf"],["class","ant-mention-dropdown-notfound ant-mention-dropdown-item",4,"ngIf"],[1,"ant-mention-dropdown-item",3,"click"],["items",""],[4,"ngIf","ngIfElse"],["defaultSuggestion",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-mention-dropdown-notfound","ant-mention-dropdown-item"],[4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(o,d){1&o&&(a.F$t(),a.Hsn(0),a.YNc(1,j,3,2,"ng-template",null,0,a.W1O))},directives:[E.sg,E.O5,E.tP,y.Ls],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,T.yF)()],h.prototype,"nzLoading",void 0),h})(),ct=(()=>{class h{}return h.\u0275fac=function(o){return new(o||h)},h.\u0275mod=a.oAB({type:h}),h.\u0275inj=a.cJS({imports:[[t.vT,E.ez,x.u5,b.U8,y.PV]]}),h})()},868:(X,W,r)=>{r.d(W,{xw:()=>pt,Ao:()=>gt,Fx:()=>mt,xH:()=>Ot,we:()=>jt});var t=r(5e3),b=r(969),E=r(647),a=r(6360),x=r(6987),y=r(5664),N=r(3191),M=r(1159),O=r(3753),z=r(2654),w=r(352),I=r(8139),k=r(8929),g=r(1086),D=r(6787),u=r(7625),T=r(7138),B=r(1059),Y=r(7224),ot=r(2198),at=r(6792),V=r(3677),R=r(9808),tt=r(4219),et=r(2321),rt=r(5577),j=r(226),P=r(655),S=r(1721),F=r(325),q=r(7144),lt=r(925),H=r(9439),nt=r(948);function vt(i,c){if(1&i&&(t.ynx(0),t._UZ(1,"i",1),t.BQk()),2&i){const e=c.$implicit;t.xp6(1),t.Q6J("nzType",e)}}function ct(i,c){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.tab.label," ")}}const h=function(){return{visible:!1}};function v(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"li",8),t.NdJ("click",function(){const l=t.CHM(e).$implicit;return t.oxw(2).onSelect(l)})("contextmenu",function(s){const m=t.CHM(e).$implicit;return t.oxw(2).onContextmenu(m,s)}),t.YNc(1,ct,2,1,"ng-container",9),t.qZA()}if(2&i){const e=c.$implicit;t.ekj("ant-tabs-dropdown-menu-item-disabled",e.disabled),t.Q6J("nzSelected",e.active)("nzDisabled",e.disabled),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.tab.label)("nzStringTemplateOutletContext",t.DdM(6,h))}}function o(i,c){if(1&i&&(t.TgZ(0,"ul",6),t.YNc(1,v,2,7,"li",7),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.items)}}function d(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().addClicked.emit()}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("addIcon",e.addIcon)}}const _=function(){return{minWidth:"46px"}},f=["navWarp"],L=["navList"];function $(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().addClicked.emit()}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("addIcon",e.addIcon)}}function Z(i,c){}function Pt(i,c){if(1&i&&(t.TgZ(0,"div",9),t.YNc(1,Z,0,0,"ng-template",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.extraTemplate)}}const At=["*"],St=["nz-tab-body",""];function Nt(i,c){}function Bt(i,c){if(1&i&&(t.ynx(0),t.YNc(1,Nt,0,0,"ng-template",1),t.BQk()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function Rt(i,c){if(1&i&&(t.ynx(0),t._UZ(1,"i",1),t.BQk()),2&i){const e=c.$implicit;t.xp6(1),t.Q6J("nzType",e)}}const Lt=["contentTemplate"];function Wt(i,c){1&i&&t.Hsn(0)}function wt(i,c){1&i&&t.Hsn(0,1)}const kt=[[["","nz-tab-link",""]],"*"],Ft=["[nz-tab-link]","*"];function Ut(i,c){if(1&i&&(t.ynx(0),t._uU(1),t.BQk()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.label)}}function Ht(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(s){t.CHM(e);const l=t.oxw().index;return t.oxw(2).onClose(l,s)}),t.qZA()}if(2&i){const e=t.oxw().$implicit;t.Q6J("closeIcon",e.nzCloseIcon)}}const Kt=function(){return{visible:!0}};function Yt(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(s){const l=t.CHM(e),m=l.$implicit,p=l.index;return t.oxw(2).clickNavItem(m,p,s)})("contextmenu",function(s){const m=t.CHM(e).$implicit;return t.oxw(2).contextmenuNavItem(m,s)}),t.TgZ(1,"div",7),t.YNc(2,Ut,2,1,"ng-container",8),t.YNc(3,Ht,1,1,"button",9),t.qZA(),t.qZA()}if(2&i){const e=c.$implicit,n=c.index,s=t.oxw(2);t.Udp("margin-right","horizontal"===s.position?s.nzTabBarGutter:null,"px")("margin-bottom","vertical"===s.position?s.nzTabBarGutter:null,"px"),t.ekj("ant-tabs-tab-active",s.nzSelectedIndex===n)("ant-tabs-tab-disabled",e.nzDisabled),t.xp6(1),t.Q6J("disabled",e.nzDisabled)("tab",e)("active",s.nzSelectedIndex===n),t.uIk("tabIndex",s.getTabIndex(e,n))("aria-disabled",e.nzDisabled)("aria-selected",s.nzSelectedIndex===n&&!s.nzHideAll)("aria-controls",s.getTabContentId(n)),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.label)("nzStringTemplateOutletContext",t.DdM(18,Kt)),t.xp6(1),t.Q6J("ngIf",e.nzClosable&&s.closable&&!e.nzDisabled)}}function Zt(i,c){if(1&i){const e=t.EpF();t.TgZ(0,"nz-tabs-nav",4),t.NdJ("tabScroll",function(s){return t.CHM(e),t.oxw().nzTabListScroll.emit(s)})("selectFocusedIndex",function(s){return t.CHM(e),t.oxw().setSelectedIndex(s)})("addClicked",function(){return t.CHM(e),t.oxw().onAdd()}),t.YNc(1,Yt,4,19,"div",5),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("ngStyle",e.nzTabBarStyle)("selectedIndex",e.nzSelectedIndex||0)("inkBarAnimated",e.inkBarAnimated)("addable",e.addable)("addIcon",e.nzAddIcon)("hideBar",e.nzHideAll)("position",e.position)("extraTemplate",e.nzTabBarExtraContent),t.xp6(1),t.Q6J("ngForOf",e.tabs)}}function Qt(i,c){if(1&i&&t._UZ(0,"div",11),2&i){const e=c.$implicit,n=c.index,s=t.oxw();t.Q6J("active",s.nzSelectedIndex===n&&!s.nzHideAll)("content",e.content)("forceRender",e.nzForceRender)("tabPaneAnimated",s.tabPaneAnimated)}}let it=(()=>{class i{constructor(e){this.elementRef=e,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetWidth)||0}getElementHeight(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetHeight)||0}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(e,n){1&e&&t.YNc(0,vt,2,1,"ng-container",0),2&e&&t.Q6J("nzStringTemplateOutlet",n.addIcon)},directives:[b.f,E.Ls],encapsulation:2}),i})(),dt=(()=>{class i{constructor(e,n,s){this.elementRef=e,this.ngZone=n,this.animationMode=s,this.position="horizontal",this.animated=!0}get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}alignToElement(e){this.ngZone.runOutsideAngular(()=>{(0,x.e)(()=>this.setStyles(e))})}setStyles(e){const n=this.elementRef.nativeElement;"horizontal"===this.position?(n.style.top="",n.style.height="",n.style.left=this.getLeftPosition(e),n.style.width=this.getElementWidth(e)):(n.style.left="",n.style.width="",n.style.top=this.getTopPosition(e),n.style.height=this.getElementHeight(e))}getLeftPosition(e){return e?`${e.offsetLeft||0}px`:"0"}getElementWidth(e){return e?`${e.offsetWidth||0}px`:"0"}getTopPosition(e){return e?`${e.offsetTop||0}px`:"0"}getElementHeight(e){return e?`${e.offsetHeight||0}px`:"0"}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.Qb,8))},i.\u0275dir=t.lG2({type:i,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("ant-tabs-ink-bar-animated",n._animated)},inputs:{position:"position",animated:"animated"}}),i})(),ht=(()=>{class i{constructor(e){this.elementRef=e,this.disabled=!1,this.active=!1,this.el=e.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","nzTabNavItem",""]],inputs:{disabled:"disabled",tab:"tab",active:"active"}}),i})(),_t=(()=>{class i{constructor(e,n){this.cdr=e,this.elementRef=n,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new t.vpe,this.selected=new t.vpe,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(e){e.disabled||(e.tab.nzClick.emit(),this.selected.emit(e))}onContextmenu(e,n){e.disabled||e.tab.nzContextmenu.emit(n)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(e){e||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetWidth)||0}getElementHeight(){var e;return(null===(e=this.element)||void 0===e?void 0:e.offsetHeight)||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.sBO),t.Y36(t.SBq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("ant-tabs-nav-operations-hidden",0===n.items.length)},inputs:{items:"items",addable:"addable",addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement","nzVisibleChange","mouseenter"],["dropdownTrigger","nzDropdown"],["nz-icon","","nzType","ellipsis"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"nzSelected","nzDisabled","click","contextmenu"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"addIcon","click"]],template:function(e,n){if(1&e&&(t.TgZ(0,"button",0,1),t.NdJ("nzVisibleChange",function(l){return n.menuVisChange(l)})("mouseenter",function(){return n.showItems()}),t._UZ(2,"i",2),t.qZA(),t.TgZ(3,"nz-dropdown-menu",null,3),t.YNc(5,o,2,1,"ul",4),t.qZA(),t.YNc(6,d,1,1,"button",5)),2&e){const s=t.MAs(4);t.Q6J("nzDropdownMenu",s)("nzOverlayStyle",t.DdM(5,_))("nzMatchWidthElement",null),t.xp6(5),t.Q6J("ngIf",n.menuOpened),t.xp6(1),t.Q6J("ngIf",n.addable)}},directives:[V.RR,it,V.cm,E.Ls,R.O5,tt.wO,R.sg,tt.r9,b.f],encapsulation:2,changeDetection:0}),i})();const Tt=Math.pow(.995,20);let zt=(()=>{class i{constructor(e,n){this.ngZone=e,this.elementRef=n,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new t.vpe,this.tabScroll=new t.vpe,this.onTouchEnd=s=>{if(!this.touchPosition)return;const l=this.lastOffset,m=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,l){const p=l.x/m,C=l.y/m,U=Math.abs(p),Q=Math.abs(C);if(Math.max(U,Q)<.1)return;let K=p,J=C;this.motion=window.setInterval(()=>{Math.abs(K)<.01&&Math.abs(J)<.01?window.clearInterval(this.motion):(K*=Tt,J*=Tt,this.onOffset(20*K,20*J,s))},20)}},this.onTouchMove=s=>{if(!this.touchPosition)return;s.preventDefault();const{screenX:l,screenY:m}=s.touches[0],p=l-this.touchPosition.x,C=m-this.touchPosition.y;this.onOffset(p,C,s);const U=Date.now();this.lastTimeDiff=U-this.lastTimestamp,this.lastTimestamp=U,this.lastOffset={x:p,y:C},this.touchPosition={x:l,y:m}},this.onTouchStart=s=>{const{screenX:l,screenY:m}=s.touches[0];this.touchPosition={x:l,y:m},window.clearInterval(this.motion)},this.onWheel=s=>{const{deltaX:l,deltaY:m}=s;let p;const C=Math.abs(l),U=Math.abs(m);C===U?p="x"===this.lastWheelDirection?l:m:C>U?(p=l,this.lastWheelDirection="x"):(p=m,this.lastWheelDirection="y");const Q=Date.now(),K=Math.abs(p);(Q-this.lastWheelTimestamp>100||K-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-p,-p,s),(s.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=Q,this.lastMixedWheel=K}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const e=this.elementRef.nativeElement,n=(0,O.R)(e,"wheel"),s=(0,O.R)(e,"touchstart"),l=(0,O.R)(e,"touchmove"),m=(0,O.R)(e,"touchend"),p=new z.w;return p.add(this.subscribeWrap("wheel",n,this.onWheel)),p.add(this.subscribeWrap("touchstart",s,this.onTouchStart)),p.add(this.subscribeWrap("touchmove",l,this.onTouchMove)),p.add(this.subscribeWrap("touchend",m,this.onTouchEnd)),()=>{p.unsubscribe()}})}subscribeWrap(e,n,s){return n.subscribe(l=>{this.tabScroll.emit({type:e,event:l}),l.defaultPrevented||s(l)})}onOffset(e,n,s){this.ngZone.run(()=>{this.offsetChange.emit({x:e,y:n,event:s})})}ngOnDestroy(){this.unsubscribe()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.R0b),t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}}),i})();const $t="undefined"!=typeof requestAnimationFrame?w.Z:I.E;let ut=(()=>{class i{constructor(e,n,s,l,m){this.cdr=e,this.ngZone=n,this.viewportRuler=s,this.nzResizeObserver=l,this.dir=m,this.indexFocused=new t.vpe,this.selectFocusedIndex=new t.vpe,this.addClicked=new t.vpe,this.tabScroll=new t.vpe,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new k.xQ,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const n=(0,N.su)(e);this._selectedIndex!==n&&(this._selectedIndex=e,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(e))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(e){!this.isValidIndex(e)||this.focusIndex===e||!this.keyManager||this.keyManager.setActiveItem(e)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}ngAfterViewInit(){const e=this.dir?this.dir.change:(0,g.of)(null),n=this.viewportRuler.change(150),s=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new y.Em(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),(0,x.e)(s),(0,D.T)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe((0,u.R)(this.destroy$),(0,T.e)(16,$t)).subscribe(()=>{s()}),(0,D.T)(e,n,this.items.changes).pipe((0,u.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(s),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe((0,u.R)(this.destroy$)).subscribe(l=>{this.indexFocused.emit(l),this.setTabFocus(l),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(e){const n=this.items.toArray().findIndex(s=>s===e);-1!==n&&(this.keyManager.updateActiveItem(n),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(e)))}onOffsetChange(e){if("horizontal"===this.position){if(-1===this.lockAnimationTimeoutId&&(this.transformX>=0&&e.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&e.x<0))return;e.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+e.x),this.setTransform(this.transformX,0)}else{if(-1===this.lockAnimationTimeoutId&&(this.transformY>=0&&e.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&e.y<0))return;e.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+e.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(e){const n=this.navWarpRef.nativeElement.contains(e.target);if(!(0,M.Vb)(e)&&n)switch(e.keyCode){case M.oh:case M.LH:case M.SV:case M.JH:this.lockAnimation(),this.keyManager.onKeydown(e);break;case M.K5:case M.L_:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(e)}}isValidIndex(e){if(!this.items)return!0;const n=this.items?this.items.toArray()[e]:null;return!!n&&!n.disabled}scrollToTab(e){if(!this.items.find(s=>s===e))return;const n=this.items.toArray();if("horizontal"===this.position){let s=this.transformX;if("rtl"===this.getLayoutDirection()){const l=n[0].left+n[0].width-e.left-e.width;lthis.transformX+this.wrapperWidth&&(s=l+e.width-this.wrapperWidth)}else e.left<-this.transformX?s=-e.left:e.left+e.width>-this.transformX+this.wrapperWidth&&(s=-(e.left+e.width-this.wrapperWidth));this.transformX=s,this.transformY=0,this.setTransform(s,0)}else{let s=this.transformY;e.top<-this.transformY?s=-e.top:e.top+e.height>-this.transformY+this.wrapperHeight&&(s=-(e.top+e.height-this.wrapperHeight)),this.transformY=s,this.transformX=0,this.setTransform(0,s)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){-1===this.lockAnimationTimeoutId&&this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=-1},150)})}setTransform(e,n){this.navListRef.nativeElement.style.transform=`translate(${e}px, ${n}px)`}clampTransformX(e){const n=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(n,e),0):Math.min(Math.max(n,e),0)}clampTransformY(e){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,e),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){const e=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n&&this.inkBar.alignToElement(n.parentElement)}setPingStatus(){const e={top:!1,right:!1,bottom:!1,left:!1},n=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(e.right=this.transformX>0,e.left=this.transformX+this.wrapperWidth{const l=`ant-tabs-nav-wrap-ping-${s}`;e[s]?n.classList.add(l):n.classList.remove(l)})}setVisibleRange(){let e,n,s,l,m,p;const C=this.items.toArray(),U={width:0,height:0,left:0,top:0,right:0},Q=A=>{let G;return G="right"===n?C[0].left+C[0].width-C[A].left-C[A].width:(C[A]||U)[n],G};"horizontal"===this.position?(e="width",l=this.wrapperWidth,m=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),p=this.addButtonWidth,s=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidthl&&(K=l-p),!C.length)return this.hiddenItems=[],void this.cdr.markForCheck();const J=C.length;let xt=J;for(let A=0;As+K){xt=A-1;break}let yt=0;for(let A=J-1;A>=0;A-=1)if(Q(A){class i{constructor(){this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:12,hostBindings:function(e,n){2&e&&(t.uIk("tabindex",n.active?0:-1)("aria-hidden",!n.active),t.Udp("visibility",n.tabPaneAnimated?n.active?null:"hidden":null)("height",n.tabPaneAnimated?n.active?null:0:null)("overflow-y",n.tabPaneAnimated?n.active?null:"none":null)("display",n.tabPaneAnimated||n.active?null:"none"),t.ekj("ant-tabs-tabpane-active",n.active))},inputs:{content:"content",active:"active",tabPaneAnimated:"tabPaneAnimated",forceRender:"forceRender"},exportAs:["nzTabBody"],attrs:St,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(e,n){1&e&&t.YNc(0,Bt,2,1,"ng-container",0),2&e&&t.Q6J("ngIf",n.active||n.forceRender)},directives:[R.O5,R.tP],encapsulation:2,changeDetection:0}),i})(),Mt=(()=>{class i{constructor(){this.closeIcon="close"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(e,n){1&e&&t.YNc(0,Rt,2,1,"ng-container",0),2&e&&t.Q6J("nzStringTemplateOutlet",n.closeIcon)},directives:[b.f,E.Ls],encapsulation:2}),i})(),mt=(()=>{class i{constructor(e){this.templateRef=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.Rgc,1))},i.\u0275dir=t.lG2({type:i,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]}),i})(),gt=(()=>{class i{constructor(e,n,s){this.elementRef=e,this.routerLink=n,this.routerLinkWithHref=s}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(F.rH,10),t.Y36(F.yS,10))},i.\u0275dir=t.lG2({type:i,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]}),i})(),It=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275dir=t.lG2({type:i,selectors:[["","nz-tab",""]],exportAs:["nzTab"]}),i})();const Dt=new t.OlP("NZ_TAB_SET");let pt=(()=>{class i{constructor(e){this.closestTabSet=e,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new t.vpe,this.nzDeselect=new t.vpe,this.nzClick=new t.vpe,this.nzContextmenu=new t.vpe,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new k.xQ}get content(){return this.template||this.contentTemplate}get label(){var e;return this.nzTitle||(null===(e=this.nzTabLinkTemplateDirective)||void 0===e?void 0:e.templateRef)}ngOnChanges(e){const{nzTitle:n,nzDisabled:s,nzForceRender:l}=e;(n||s||l)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(Dt))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tab"]],contentQueries:function(e,n,s){if(1&e&&(t.Suo(s,mt,5),t.Suo(s,It,5,t.Rgc),t.Suo(s,gt,5)),2&e){let l;t.iGM(l=t.CRH())&&(n.nzTabLinkTemplateDirective=l.first),t.iGM(l=t.CRH())&&(n.template=l.first),t.iGM(l=t.CRH())&&(n.linkDirective=l.first)}},viewQuery:function(e,n){if(1&e&&t.Gf(Lt,7),2&e){let s;t.iGM(s=t.CRH())&&(n.contentTemplate=s.first)}},inputs:{nzTitle:"nzTitle",nzClosable:"nzClosable",nzCloseIcon:"nzCloseIcon",nzDisabled:"nzDisabled",nzForceRender:"nzForceRender"},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[t.TTD],ngContentSelectors:Ft,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(e,n){1&e&&(t.F$t(kt),t.YNc(0,Wt,1,0,"ng-template",null,0,t.W1O),t.YNc(2,wt,1,0,"ng-template",null,1,t.W1O))},encapsulation:2,changeDetection:0}),(0,P.gn)([(0,S.yF)()],i.prototype,"nzClosable",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzDisabled",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzForceRender",void 0),i})();class Gt{}let Vt=0,Ot=(()=>{class i{constructor(e,n,s,l){this.nzConfigService=e,this.cdr=n,this.directionality=s,this.router=l,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new t.vpe(!0),this.nzSelectedIndexChange=new t.vpe,this.nzTabListScroll=new t.vpe,this.nzClose=new t.vpe,this.nzAdd=new t.vpe,this.allTabs=new t.n_E,this.tabs=new t.n_E,this.dir="ltr",this.destroy$=new k.xQ,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=z.w.EMPTY,this.tabsSubscription=z.w.EMPTY,this.canDeactivateSubscription=z.w.EMPTY,this.tabSetId=Vt++}get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(e){this.indexToSelect=(0,N.su)(e,null)}get position(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}get addable(){return"editable-card"===this.nzType&&!this.nzHideAdd}get closable(){return"editable-card"===this.nzType}get line(){return"line"===this.nzType}get inkBarAnimated(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return"horizontal"===this.position&&this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane)}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,u.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){Promise.resolve().then(()=>{this.setUpRouter()}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){const n=this.tabs.toArray();for(let s=0;s{this.tabs.forEach((s,l)=>s.isActive=l===e),n||this.nzSelectedIndexChange.emit(e)})}this.tabs.forEach((n,s)=>{n.position=s-e,null!=this.selectedIndex&&0===n.position&&!n.origin&&(n.origin=e-this.selectedIndex)}),this.selectedIndex!==e&&(this.selectedIndex=e,this.cdr.markForCheck())}onClose(e,n){n.preventDefault(),n.stopPropagation(),this.nzClose.emit({index:e})}onAdd(){this.nzAdd.emit()}clampTabIndex(e){return Math.min(this.tabs.length-1,Math.max(e||0,0))}createChangeEvent(e){const n=new Gt;return n.index=e,this.tabs&&this.tabs.length&&(n.tab=this.tabs.toArray()[e],this.tabs.forEach((s,l)=>{l!==e&&s.nzDeselect.emit()}),n.tab.nzSelect.emit()),n}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=(0,D.T)(...this.tabs.map(e=>e.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe((0,B.O)(this.allTabs)).subscribe(e=>{this.tabs.reset(e.filter(n=>n.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(e,n){return"function"==typeof this.nzCanDeactivate?(0,S.lN)(this.nzCanDeactivate(e,n)).pipe((0,Y.P)(),(0,u.R)(this.destroy$)):(0,g.of)(!0)}clickNavItem(e,n,s){e.nzDisabled||(e.nzClick.emit(),this.isRouterLinkClickEvent(n,s)||this.setSelectedIndex(n))}isRouterLinkClickEvent(e,n){var s,l;const m=n.target;return!!this.nzLinkRouter&&!!(null===(l=null===(s=this.tabs.toArray()[e])||void 0===s?void 0:s.linkDirective)||void 0===l?void 0:l.elementRef.nativeElement.contains(m))}contextmenuNavItem(e,n){e.nzDisabled||e.nzContextmenu.emit(n)}setSelectedIndex(e){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,e).subscribe(n=>{n&&(this.nzSelectedIndex=e,this.tabNavBarRef.focusIndex=e,this.cdr.markForCheck())})}getTabIndex(e,n){return e.nzDisabled?null:this.selectedIndex===n?0:-1}getTabContentId(e){return`nz-tabs-${this.tabSetId}-tab-${e}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${nt.Bq} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe((0,u.R)(this.destroy$),(0,ot.h)(e=>e instanceof F.m2),(0,B.O)(!0),(0,at.g)(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const e=this.findShouldActiveTabIndex();e!==this.selectedIndex&&this.setSelectedIndex(e),this.nzHideAll=-1===e}}findShouldActiveTabIndex(){const e=this.tabs.toArray(),n=this.isLinkActive(this.router);return e.findIndex(s=>{const l=s.linkDirective;return!!l&&(n(l.routerLink)||n(l.routerLinkWithHref))})}isLinkActive(e){return n=>!!n&&e.isActive(n.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}getTabContentMarginValue(){return 100*-(this.nzSelectedIndex||0)}getTabContentMarginLeft(){return this.tabPaneAnimated&&"rtl"!==this.dir?`${this.getTabContentMarginValue()}%`:""}getTabContentMarginRight(){return this.tabPaneAnimated&&"rtl"===this.dir?`${this.getTabContentMarginValue()}%`:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(H.jY),t.Y36(t.sBO),t.Y36(j.Is,8),t.Y36(F.F0,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["nz-tabset"]],contentQueries:function(e,n,s){if(1&e&&t.Suo(s,pt,5),2&e){let l;t.iGM(l=t.CRH())&&(n.allTabs=l)}},viewQuery:function(e,n){if(1&e&&t.Gf(ut,5),2&e){let s;t.iGM(s=t.CRH())&&(n.tabNavBarRef=s.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(e,n){2&e&&t.ekj("ant-tabs-card","card"===n.nzType||"editable-card"===n.nzType)("ant-tabs-editable","editable-card"===n.nzType)("ant-tabs-editable-card","editable-card"===n.nzType)("ant-tabs-centered",n.nzCentered)("ant-tabs-rtl","rtl"===n.dir)("ant-tabs-top","top"===n.nzTabPosition)("ant-tabs-bottom","bottom"===n.nzTabPosition)("ant-tabs-left","left"===n.nzTabPosition)("ant-tabs-right","right"===n.nzTabPosition)("ant-tabs-default","default"===n.nzSize)("ant-tabs-small","small"===n.nzSize)("ant-tabs-large","large"===n.nzSize)},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:"nzHideAdd",nzCentered:"nzCentered",nzHideAll:"nzHideAll",nzLinkRouter:"nzLinkRouter",nzLinkExact:"nzLinkExact"},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],features:[t._Bn([{provide:Dt,useExisting:i}])],decls:4,vars:16,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated",4,"ngFor","ngForOf"],[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["nz-tab-close-button","",3,"closeIcon","click"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated"]],template:function(e,n){1&e&&(t.YNc(0,Zt,2,9,"nz-tabs-nav",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t.YNc(3,Qt,1,4,"div",3),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",n.tabs.length||n.addable),t.xp6(2),t.Udp("margin-left",n.getTabContentMarginLeft())("margin-right",n.getTabContentMarginRight()),t.ekj("ant-tabs-content-top","top"===n.nzTabPosition)("ant-tabs-content-bottom","bottom"===n.nzTabPosition)("ant-tabs-content-left","left"===n.nzTabPosition)("ant-tabs-content-right","right"===n.nzTabPosition)("ant-tabs-content-animated",n.tabPaneAnimated),t.xp6(1),t.Q6J("ngForOf",n.tabs))},directives:[ut,Mt,Et,R.O5,R.PC,R.sg,ht,y.kH,b.f],encapsulation:2}),(0,P.gn)([(0,H.oS)()],i.prototype,"nzType",void 0),(0,P.gn)([(0,H.oS)()],i.prototype,"nzSize",void 0),(0,P.gn)([(0,H.oS)()],i.prototype,"nzAnimated",void 0),(0,P.gn)([(0,H.oS)()],i.prototype,"nzTabBarGutter",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzHideAdd",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzCentered",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzHideAll",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzLinkRouter",void 0),(0,P.gn)([(0,S.yF)()],i.prototype,"nzLinkExact",void 0),i})(),jt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[j.vT,R.ez,q.Q8,E.PV,b.T,lt.ud,y.rt,et.ZD,V.b1]]}),i})()}}]); \ No newline at end of file diff --git a/server/public/5632.b8b7a0d1b028a7da.js b/server/public/5632.b8b7a0d1b028a7da.js deleted file mode 100644 index 62721c331..000000000 --- a/server/public/5632.b8b7a0d1b028a7da.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5632],{8616:(y,f,n)=>{n.d(f,{u:()=>t});var a=n(5e3),g=n(685),l=n(1912),u=n(3618),_=n(647);function p(i,h){1&i&&(a.TgZ(0,"span"),a._uU(1," You must be logged in to view this page. "),a.qZA())}function v(i,h){1&i&&a._UZ(0,"cvc-login-button")}function c(i,h){1&i&&(a.TgZ(0,"nz-typography",4),a._UZ(1,"i",5),a.qZA())}let t=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275cmp=a.Xpm({type:i,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(d,z){if(1&d&&(a.TgZ(0,"nz-empty",0),a.YNc(1,p,2,0,"ng-template",null,1,a.W1O),a.YNc(3,v,1,0,"ng-template",null,2,a.W1O),a.qZA(),a.YNc(5,c,2,0,"ng-template",null,3,a.W1O)),2&d){const I=a.MAs(2),M=a.MAs(4),C=a.MAs(6);a.Q6J("nzNotFoundImage",C)("nzNotFoundContent",I)("nzNotFoundFooter",M)}},directives:[g.p9,l.s,u.ZU,_.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),i})()},9386:(y,f,n)=>{n.d(f,{a:()=>v});var a=n(9808),g=n(1844),l=n(685),u=n(647),_=n(3618),p=n(5e3);let v=(()=>{class c{}return c.\u0275fac=function(i){return new(i||c)},c.\u0275mod=p.oAB({type:c}),c.\u0275inj=p.cJS({imports:[[a.ez,g.B,l.Xo,u.PV,_.ZJ]]}),c})()},8926:(y,f,n)=>{n.d(f,{A:()=>l});var a=n(5e3),g=n(2313);let l=(()=>{class u{constructor(p){this.sanitizer=p}transform(p,v){if(!v||""==v)return p;const c=new RegExp(v,"gi"),t=p.match(c);if(!t)return p;let i=p.replace(c,`${t[0]}`);return this.sanitizer.bypassSecurityTrustHtml(i)}}return u.\u0275fac=function(p){return new(p||u)(a.Y36(g.H7,16))},u.\u0275pipe=a.Yjl({name:"highlightTypeahead",type:u,pure:!0}),u})()},3077:(y,f,n)=>{function a(g){return void 0!==g}n.d(f,{$:()=>a})},7462:(y,f,n)=>{n.d(f,{o:()=>c});var a=n(9808),g=n(8776),l=n(5e3),u=n(1047),_=n(4182);const v={name:"cvc-textarea",component:(()=>{class t extends g.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{autosize:{minRows:2,maxRows:20}}}}}return t.\u0275fac=function(){let i;return function(d){return(i||(i=l.n5z(t)))(d||t)}}(),t.\u0275cmp=l.Xpm({type:t,selectors:[["cvc-textarea-base-type"]],features:[l.qOj],decls:1,vars:4,consts:[["nz-input","",3,"formControl","formlyAttributes","nzAutosize","placeholder"]],template:function(h,d){1&h&&l._UZ(0,"textarea",0),2&h&&l.Q6J("formControl",d.formControl)("formlyAttributes",d.field)("nzAutosize",d.to.autosize)("placeholder",d.to.placeholder)},directives:[u.Zp,_.Fj,u.rh,_.JJ,_.oH,g.VQ],styles:[""],changeDetection:0}),t})(),wrappers:["form-field"]};let c=(()=>{class t{}return t.\u0275fac=function(h){return new(h||t)},t.\u0275mod=l.oAB({type:t}),t.\u0275inj=l.cJS({imports:[[a.ez,_.u5,_.UX,g.X0.forChild({types:[v]}),u.o7]]}),t})()},4181:(y,f,n)=>{n.d(f,{O:()=>w});var a=n(9808),g=n(6123),l=n(8776),u=n(8929),_=n(591),p=n(373),v=n(4850),c=n(7625),t=n(5e3),i=n(712),h=n(9169),d=n(8054),z=n(4182),I=n(8664),M=n(822),C=n(6042),L=n(2643),S=n(2683),E=n(647),V=n(6949),U=n(8926);function B(o,m){if(1&o&&(t.TgZ(0,"nz-option",6),t._UZ(1,"span",7),t.ALo(2,"highlightTypeahead"),t.qZA()),2&o){const e=m.$implicit,s=t.oxw(2);t.Q6J("nzValue",e.variant),t.xp6(1),t.Q6J("innerHtml",t.xi3(2,2,e.label,s.to.searchString),t.oJD)}}function D(o,m){1&o&&t._uU(0," No variant found in CIViC that matches the string provided. ")}function Q(o,m){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"nz-select",3),t.NdJ("nzOnSearch",function(r){return t.CHM(e),t.oxw().to.onSearch(r)}),t.YNc(2,B,3,5,"nz-option",4),t.ALo(3,"ngrxPush"),t.qZA(),t.YNc(4,D,1,0,"ng-template",null,5,t.W1O),t.BQk()}if(2&o){const e=t.MAs(5),s=t.oxw(),r=t.MAs(4);t.xp6(1),t.Q6J("formControl",s.formControl)("formlyAttributes",s.field)("nzPlaceHolder",s.to.placeholder?s.to.placeholder:null)("nzDropdownRender",s.to.allowCreate?r:null)("nzNotFoundContent",e)("nzShowArrow",s.to.showArrow),t.xp6(1),t.Q6J("ngForOf",t.lcZ(3,7,s.variants$))}}function Z(o,m){if(1&o&&t._UZ(0,"cvc-variant-tag",8),2&o){const e=t.oxw();t.Q6J("variant",e.formControl.value)}}function J(o,m){if(1&o&&t._UZ(0,"cvc-form-errors-alert",12),2&o){const e=t.oxw(4);t.Q6J("errors",e.errorMessages)}}function F(o,m){if(1&o){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const r=t.oxw(4);return r.addVariant(r.to.searchString)}),t._UZ(1,"i",14),t._uU(2,"No Existing CIViC Variant\xa0"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5,"\xa0found. Create A New Variant? "),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("nzLoading",e.loading),t.xp6(4),t.Oqu(e.to.searchString)}}function R(o,m){if(1&o&&(t.ynx(0),t.YNc(1,J,1,1,"cvc-form-errors-alert",10),t.YNc(2,F,6,2,"button",11),t.BQk()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",0==e.errorMessages.length)}}function N(o,m){if(1&o&&(t.ynx(0),t.YNc(1,R,3,2,"ng-container",9),t.BQk()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",""!==e.to.searchString)}}function W(o,m){if(1&o&&(t.YNc(0,N,2,1,"ng-container",9),t.ALo(1,"ngrxPush")),2&o){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,1,e.displayAdd$))}}const Y={name:"variant-input",component:(()=>{class o extends l.fS{constructor(e,s,r){super(),this.variantTypeaheadQuery=e,this.networkErrorService=s,this.addVariantGQL=r,this.destroy$=new u.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new _.X(!1),this.addVariantMutator=new g.U(s),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(T,X,A)=>{var O,P;let x=null===(P=null===(O=null==A?void 0:A.parent)||void 0===O?void 0:O.parent)||void 0===P?void 0:P.model;if(x&&x.gene&&x.gene[0])return x.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,p.j)("data","variants","nodes"),(0,v.U)(e=>e.map(r=>({value:r.id,label:r.name,variant:r}))))}ngAfterViewInit(){this.to.onSearch=e=>{e.length{this.displayAdd$.next(0==s.data.variants.nodes.filter(r=>r.name.toUpperCase()==e.toUpperCase()).length)}))}}addVariant(e){if(e&&""!=e&&this.to.geneId){let s=this.addVariantMutator.mutate(this.addVariantGQL,{name:e,geneId:this.to.geneId},{},r=>{var T;null===(T=this.field.formControl)||void 0===T||T.setValue({id:r.addVariant.variant.id,name:r.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});s.submitSuccess$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{r&&(this.success=!0)}),s.submitError$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{r&&(this.errorMessages=r,this.success=!1)}),s.isSubmitting$.pipe((0,c.R)(this.destroy$)).subscribe(r=>{this.loading=r})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(i._eC),t.Y36(h.Y),t.Y36(i.LUc))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-input-type"]],features:[t.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(e,s){if(1&e&&(t.YNc(0,Q,6,9,"ng-container",0),t.YNc(1,Z,1,1,"ng-template",null,1,t.W1O),t.YNc(3,W,2,3,"ng-template",null,2,t.W1O)),2&e){const r=t.MAs(2);t.Q6J("ngIf",!(null!=s.formControl.value&&s.formControl.value.id))("ngIfElse",r)}},directives:[a.O5,d.Vq,z.JJ,z.oH,l.VQ,a.sg,d.Ip,I.I,M.V,C.ix,L.dQ,S.w,E.Ls],pipes:[V.fM,U.A],styles:[""],changeDetection:0}),o})()};var $=n(4867),H=n(7008),K=n(9444);let w=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[a.ez,z.UX,V.WG,l.X0.forChild({types:[Y]}),d.LV,C.sL,E.PV,$.Q,H.B,K.s]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/5787.6afd9133542c6e90.js b/server/public/5787.6afd9133542c6e90.js deleted file mode 100644 index 78528551f..000000000 --- a/server/public/5787.6afd9133542c6e90.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5787],{427:(N,g,i)=>{i.d(g,{J:()=>v});var a=i(5e3),p=i(685),e=i(9808),f=i(647);function C(c,_){if(1&c&&(a.TgZ(0,"span",5),a._uU(1),a.qZA()),2&c){const d=a.oxw(2);a.xp6(1),a.Oqu(d.notification)}}function m(c,_){1&c&&a._uU(0," Not specified ")}function z(c,_){if(1&c&&(a.YNc(0,C,2,1,"span",3),a.YNc(1,m,1,0,"ng-template",null,4,a.W1O)),2&c){const d=a.MAs(2),E=a.oxw();a.Q6J("ngIf",E.notification)("ngIfElse",d)}}function u(c,_){1&c&&a._UZ(0,"i",6)}let v=(()=>{class c{constructor(){}ngOnInit(){}}return c.\u0275fac=function(d){return new(d||c)},c.\u0275cmp=a.Xpm({type:c,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification"},decls:5,vars:2,consts:[[3,"nzNotFoundContent","nzNotFoundImage"],["notFound",""],["notFoundImg",""],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["defaultNotification",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(d,E){if(1&d&&(a._UZ(0,"nz-empty",0),a.YNc(1,z,3,2,"ng-template",null,1,a.W1O),a.YNc(3,u,1,0,"ng-template",null,2,a.W1O)),2&d){const k=a.MAs(2),y=a.MAs(4);a.Q6J("nzNotFoundContent",k)("nzNotFoundImage",y)}},directives:[p.p9,e.O5,f.Ls],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]}),c})()},8541:(N,g,i)=>{i.d(g,{o:()=>C});var a=i(9808),p=i(685),e=i(647),f=i(5e3);let C=(()=>{class m{}return m.\u0275fac=function(u){return new(u||m)},m.\u0275mod=f.oAB({type:m}),m.\u0275inj=f.cJS({imports:[[a.ez,p.Xo,e.PV]]}),m})()},6559:(N,g,i)=>{i.d(g,{H0:()=>D});var a=i(5e3),p=i(9808),e=i(226);let D=(()=>{class s{}return s.\u0275fac=function(n){return new(n||s)},s.\u0275mod=a.oAB({type:s}),s.\u0275inj=a.cJS({imports:[[e.vT,p.ez]]}),s})()},6462:(N,g,i)=>{i.d(g,{i:()=>l,m:()=>n});var a=i(655),p=i(1159),e=i(5e3),f=i(4182),C=i(8929),m=i(3753),z=i(7625),u=i(9439),v=i(1721),c=i(5664),_=i(226),d=i(2643),E=i(9808),k=i(647),y=i(969);const M=["switchElement"];function P(t,h){1&t&&e._UZ(0,"i",8)}function T(t,h){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const o=e.oxw(2);e.xp6(1),e.Oqu(o.nzCheckedChildren)}}function O(t,h){if(1&t&&(e.ynx(0),e.YNc(1,T,2,1,"ng-container",9),e.BQk()),2&t){const o=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",o.nzCheckedChildren)}}function x(t,h){if(1&t&&(e.ynx(0),e._uU(1),e.BQk()),2&t){const o=e.oxw(2);e.xp6(1),e.Oqu(o.nzUnCheckedChildren)}}function D(t,h){if(1&t&&e.YNc(0,x,2,1,"ng-container",9),2&t){const o=e.oxw();e.Q6J("nzStringTemplateOutlet",o.nzUnCheckedChildren)}}let l=(()=>{class t{constructor(o,r,S,w,A,I){this.nzConfigService=o,this.host=r,this.ngZone=S,this.cdr=w,this.focusMonitor=A,this.directionality=I,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new C.xQ}updateValue(o){this.isChecked!==o&&(this.isChecked=o,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,z.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.host.nativeElement,"click").pipe((0,z.R)(this.destroy$)).subscribe(o=>{o.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,m.R)(this.switchElement.nativeElement,"keydown").pipe((0,z.R)(this.destroy$)).subscribe(o=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:r}=o;r!==p.oh&&r!==p.SV&&r!==p.L_&&r!==p.K5||(o.preventDefault(),this.ngZone.run(()=>{r===p.oh?this.updateValue(!1):r===p.SV?this.updateValue(!0):(r===p.L_||r===p.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,z.R)(this.destroy$)).subscribe(o=>{o||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(o){this.isChecked=o,this.cdr.markForCheck()}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.nzDisabled=o,this.cdr.markForCheck()}}return t.\u0275fac=function(o){return new(o||t)(e.Y36(u.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(c.tE),e.Y36(_.Is,8))},t.\u0275cmp=e.Xpm({type:t,selectors:[["nz-switch"]],viewQuery:function(o,r){if(1&o&&e.Gf(M,7),2&o){let S;e.iGM(S=e.CRH())&&(r.switchElement=S.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[e._Bn([{provide:f.JU,useExisting:(0,e.Gpc)(()=>t),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(o,r){if(1&o&&(e.TgZ(0,"button",0,1),e.TgZ(2,"span",2),e.YNc(3,P,1,0,"i",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,O,2,1,"ng-container",5),e.YNc(6,D,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&o){const S=e.MAs(7);e.ekj("ant-switch-checked",r.isChecked)("ant-switch-loading",r.nzLoading)("ant-switch-disabled",r.nzDisabled)("ant-switch-small","small"===r.nzSize)("ant-switch-rtl","rtl"===r.dir),e.Q6J("disabled",r.nzDisabled)("nzWaveExtraNode",!0),e.xp6(3),e.Q6J("ngIf",r.nzLoading),e.xp6(2),e.Q6J("ngIf",r.isChecked)("ngIfElse",S)}},directives:[d.dQ,E.O5,k.Ls,y.f],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,v.yF)()],t.prototype,"nzLoading",void 0),(0,a.gn)([(0,v.yF)()],t.prototype,"nzDisabled",void 0),(0,a.gn)([(0,v.yF)()],t.prototype,"nzControl",void 0),(0,a.gn)([(0,u.oS)()],t.prototype,"nzSize",void 0),t})(),n=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[_.vT,E.ez,d.vG,k.PV,y.T]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/5839.fe88ba0e4fbacb4f.js b/server/public/5839.fe88ba0e4fbacb4f.js new file mode 100644 index 000000000..a6f337f0e --- /dev/null +++ b/server/public/5839.fe88ba0e4fbacb4f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5839],{6550:(N,T,n)=>{n.d(T,{l:()=>e});var t=n(5e3),d=n(8481),z=n(404),v=n(647);const g=["*"];let e=(()=>{class a{constructor(){}ngOnInit(){if(void 0===this.href)throw new Error("cvc-link-tag requires href string input, none supplied.")}}return a.\u0275fac=function(u){return new(u||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:g,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(u,h){1&u&&(t.F$t(),t.TgZ(0,"a",0),t.TgZ(1,"nz-tag",1),t._UZ(2,"i",2),t.Hsn(3),t.qZA(),t.qZA()),2&u&&(t.Q6J("href",h.href,t.LSH),t.xp6(1),t.Q6J("nzTooltipTitle",h.tooltip)("nzTooltipTrigger",h.tooltip?"hover":null),t.xp6(1),t.Q6J("nzType",h.iconName?h.iconName:"link"))},directives:[d.j,z.SY,v.Ls],styles:[""]}),a})()},3630:(N,T,n)=>{n.d(T,{X:()=>e});var t=n(9808),d=n(404),z=n(8481),v=n(647),g=n(5e3);let e=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=g.oAB({type:a}),a.\u0275inj=g.cJS({imports:[[t.ez,d.cg,z.X,v.PV]]}),a})()},8992:(N,T,n)=>{n.d(T,{I:()=>W});var t=n(325),d=n(8929),z=n(2198),v=n(7625),g=n(1059),e=n(5e3),a=n(2313);let b=(()=>{class s{constructor(i,m){this.title=i,this.meta=m}updateTitle(i){this.title.setTitle(i+=" | CIViC")}updateMetaTags(i){i.forEach(m=>this.meta.updateTag(m))}}return s.\u0275fac=function(i){return new(i||s)(e.LFG(a.Dx),e.LFG(a.h_))},s.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();var u=n(1894),h=n(9808),R=n(1758);function x(s,C){}function S(s,C){if(1&s&&(e.TgZ(0,"nz-col",5),e.YNc(1,x,0,0,"ng-template",6),e.qZA()),2&s){const i=e.oxw();e.Q6J("nzSpan",i.relationsTpl?5:14),e.xp6(1),e.Q6J("ngTemplateOutlet",i.actionsTpl)}}function L(s,C){}function U(s,C){if(1&s&&(e.TgZ(0,"nz-col",7),e.YNc(1,L,0,0,"ng-template",6),e.qZA()),2&s){const i=e.oxw();e.Q6J("nzSpan",i.actionsTpl?9:14),e.xp6(1),e.Q6J("ngTemplateOutlet",i.relationsTpl)}}const F=function(s,C){return{"has-relations":s,"has-actions":C}};let W=(()=>{class s{constructor(i,m,_){this.titleService=i,this.injector=m,this.cdr=_,this.destroy$=new d.xQ,this.segments=[],this._getRouteLabel=f=>"DISPLAYNAME"!==f?f:void 0===this.displayName?"[?DISPLAY NAME?]":this.displayName,this.getRouteLabel=f=>f}ngOnInit(){this.getRouteLabel=this._getRouteLabel,this.registerRouterChange()}registerRouterChange(){try{const i=this.injector.get(t.F0),m=this.injector.get(t.gz);i.events.pipe((0,z.h)(_=>_ instanceof t.m2),(0,v.R)(this.destroy$),(0,g.O)(!0)).subscribe(()=>{this.segments=this.getTitleSegments(m.root);let _="",f=this.segments.length,E=1;this.segments.forEach(O=>{_+=this._getRouteLabel(O.label),EB.path).filter(B=>B).join("/"),y=O?m+`/${O}`:m,A=E.snapshot.data.breadcrumb;return O&&A&&_.push({label:A,url:y}),this.getTitleSegments(E,y,_)}return _}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(i){return new(i||s)(e.Y36(b),e.Y36(e.zs3),e.Y36(e.sBO))},s.\u0275cmp=e.Xpm({type:s,selectors:[["cvc-section-navigation"]],inputs:{displayName:"displayName",relationsTpl:"relationsTpl",actionsTpl:"actionsTpl"},decls:5,vars:8,consts:[["id","nav-container",3,"ngClass"],["nzSpan","10","id","breadcrumbs"],[3,"nzAutoGenerate","nzRouteLabelFn"],["id","action-btns",3,"nzSpan",4,"ngIf"],["id","relations-summary",3,"nzSpan",4,"ngIf"],["id","action-btns",3,"nzSpan"],[3,"ngTemplateOutlet"],["id","relations-summary",3,"nzSpan"]],template:function(i,m){1&i&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e._UZ(2,"nz-breadcrumb",2),e.qZA(),e.YNc(3,S,2,2,"nz-col",3),e.YNc(4,U,2,2,"nz-col",4),e.qZA()),2&i&&(e.Q6J("ngClass",e.WLB(5,F,void 0!==m.relationsTpl,void 0!==m.actionsTpl)),e.xp6(2),e.Q6J("nzAutoGenerate",!0)("nzRouteLabelFn",m.getRouteLabel),e.xp6(1),e.Q6J("ngIf",m.actionsTpl),e.xp6(1),e.Q6J("ngIf",m.relationsTpl))},directives:[u.SK,h.mk,u.t3,R.Dg,h.O5,h.tP],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{display:block}#nav-container[_ngcontent-%COMP%]{margin-top:-12px;padding:4px 8px}#nav-container.has-relations[_ngcontent-%COMP%]{padding:8px}#nav-container.has-actions[_ngcontent-%COMP%]{padding:7px}#breadcrumbs[_ngcontent-%COMP%] .ant-breadcrumb a, #breadcrumbs[_ngcontent-%COMP%] .ant-breadcrumb-separator{color:#ffffffa6}#breadcrumbs[_ngcontent-%COMP%] .ant-breadcrumb a:hover{color:#40a9ff}#action-btns[_ngcontent-%COMP%], #relations-summary[_ngcontent-%COMP%]{text-align:right}#relations-summary[_ngcontent-%COMP%] .label{color:#ffffffa6}#relations-summary[_ngcontent-%COMP%] nz-space .tags>*:last-child nz-tag{margin-right:0}#relations-summary[_ngcontent-%COMP%] nz-space .ant-space-item:last-child{margin-right:0!important}"]}),s})()},5630:(N,T,n)=>{n.d(T,{D:()=>e});var t=n(9808),d=n(1894),z=n(1758),v=n(325),g=n(5e3);let e=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=g.oAB({type:a}),a.\u0275inj=g.cJS({imports:[[t.ez,v.Bz,d.Jb,z.lt]]}),a})()},1758:(N,T,n)=>{n.d(T,{Dg:()=>B,lt:()=>Q});var t=n(5e3),d=n(9808),z=n(3677),v=n(647),g=n(969),e=n(655),a=n(325),b=n(8929),u=n(7625),h=n(2198),R=n(1059),x=n(948),S=n(1721),L=n(226),U=n(2845),F=n(6950);function W(o,l){}function s(o,l){1&o&&t._UZ(0,"i",6)}function C(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"span",3),t.YNc(2,W,0,0,"ng-template",4),t.YNc(3,s,1,0,"i",5),t.qZA(),t.BQk()),2&o){const r=t.oxw(),c=t.MAs(2);t.xp6(1),t.Q6J("nzDropdownMenu",r.nzOverlay),t.xp6(1),t.Q6J("ngTemplateOutlet",c),t.xp6(1),t.Q6J("ngIf",!!r.nzOverlay)}}function i(o,l){1&o&&(t.TgZ(0,"span",7),t.Hsn(1),t.qZA())}function m(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const r=t.oxw(2);t.xp6(1),t.hij(" ",r.nzBreadCrumbComponent.nzSeparator," ")}}function _(o,l){if(1&o&&(t.TgZ(0,"span",8),t.YNc(1,m,2,1,"ng-container",9),t.qZA()),2&o){const r=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",r.nzBreadCrumbComponent.nzSeparator)}}const f=["*"];function E(o,l){if(1&o){const r=t.EpF();t.TgZ(0,"nz-breadcrumb-item"),t.TgZ(1,"a",2),t.NdJ("click",function(p){const M=t.CHM(r).$implicit;return t.oxw(2).navigate(M.url,p)}),t._uU(2),t.qZA(),t.qZA()}if(2&o){const r=l.$implicit;t.xp6(1),t.uIk("href",r.url,t.LSH),t.xp6(1),t.Oqu(r.label)}}function O(o,l){if(1&o&&(t.ynx(0),t.YNc(1,E,3,2,"nz-breadcrumb-item",1),t.BQk()),2&o){const r=t.oxw();t.xp6(1),t.Q6J("ngForOf",r.breadcrumbs)}}class y{}let A=(()=>{class o{constructor(r){this.nzBreadCrumbComponent=r}}return o.\u0275fac=function(r){return new(r||o)(t.Y36(y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],ngContentSelectors:f,decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["noMenuTpl",""],["class","ant-breadcrumb-separator",4,"ngIf"],["nz-dropdown","",1,"ant-breadcrumb-overlay-link",3,"nzDropdownMenu"],[3,"ngTemplateOutlet"],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","down"],[1,"ant-breadcrumb-link"],[1,"ant-breadcrumb-separator"],[4,"nzStringTemplateOutlet"]],template:function(r,c){if(1&r&&(t.F$t(),t.YNc(0,C,4,3,"ng-container",0),t.YNc(1,i,2,0,"ng-template",null,1,t.W1O),t.YNc(3,_,2,1,"span",2)),2&r){const p=t.MAs(2);t.Q6J("ngIf",!!c.nzOverlay)("ngIfElse",p),t.xp6(3),t.Q6J("ngIf",c.nzBreadCrumbComponent.nzSeparator)}},directives:[d.O5,z.cm,d.tP,v.Ls,g.f],encapsulation:2,changeDetection:0}),o})(),B=(()=>{class o{constructor(r,c,p,D,M){this.injector=r,this.cdr=c,this.elementRef=p,this.renderer=D,this.directionality=M,this.nzAutoGenerate=!1,this.nzSeparator="/",this.nzRouteLabel="breadcrumb",this.nzRouteLabelFn=P=>P,this.breadcrumbs=[],this.dir="ltr",this.destroy$=new b.xQ,D.addClass(p.nativeElement,"ant-breadcrumb")}ngOnInit(){var r;this.nzAutoGenerate&&this.registerRouterChange(),null===(r=this.directionality.change)||void 0===r||r.pipe((0,u.R)(this.destroy$)).subscribe(c=>{this.dir=c,this.prepareComponentForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareComponentForRtl()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}navigate(r,c){c.preventDefault(),this.injector.get(a.F0).navigateByUrl(r)}registerRouterChange(){try{const r=this.injector.get(a.F0),c=this.injector.get(a.gz);r.events.pipe((0,h.h)(p=>p instanceof a.m2),(0,u.R)(this.destroy$),(0,R.O)(!0)).subscribe(()=>{this.breadcrumbs=this.getBreadcrumbs(c.root),this.cdr.markForCheck()})}catch(r){throw new Error(`${x.Bq} You should import RouterModule if you want to use 'NzAutoGenerate'.`)}}getBreadcrumbs(r,c="",p=[]){const D=r.children;if(0===D.length)return p;for(const M of D)if(M.outlet===a.eC){const P=M.snapshot.url.map(I=>I.path).filter(I=>I).join("/"),K=P?`${c}/${P}`:c,Y=this.nzRouteLabelFn(M.snapshot.data[this.nzRouteLabel]);return P&&Y&&p.push({label:Y,params:M.snapshot.params,url:K}),this.getBreadcrumbs(M,K,p)}return p}prepareComponentForRtl(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl")}}return o.\u0275fac=function(r){return new(r||o)(t.Y36(t.zs3),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(L.Is,8))},o.\u0275cmp=t.Xpm({type:o,selectors:[["nz-breadcrumb"]],inputs:{nzAutoGenerate:"nzAutoGenerate",nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel",nzRouteLabelFn:"nzRouteLabelFn"},exportAs:["nzBreadcrumb"],features:[t._Bn([{provide:y,useExisting:o}])],ngContentSelectors:f,decls:2,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"click"]],template:function(r,c){1&r&&(t.F$t(),t.Hsn(0),t.YNc(1,O,2,1,"ng-container",0)),2&r&&(t.xp6(1),t.Q6J("ngIf",c.nzAutoGenerate&&c.breadcrumbs.length))},directives:[A,d.O5,d.sg],encapsulation:2,changeDetection:0}),(0,e.gn)([(0,S.yF)()],o.prototype,"nzAutoGenerate",void 0),o})(),Q=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[d.ez,g.T,U.U8,F.e4,z.b1,v.PV],L.vT]}),o})()}}]); \ No newline at end of file diff --git a/server/public/6029.1d7dafd8569c5ba1.js b/server/public/6029.1d7dafd8569c5ba1.js new file mode 100644 index 000000000..9988515c4 --- /dev/null +++ b/server/public/6029.1d7dafd8569c5ba1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6029],{8369:(J,_,t)=>{t.d(_,{W:()=>V});var a=t(9808),o=t(325),n=t(8481),d=t(3610),f=t(647),u=t(7484),z=t(3098),Z=t(3309),M=t(4867),T=t(6286),h=t(8018),P=t(6949),c=t(9444),x=t(1894),p=t(8144),g=t(3580),I=t(8625),G=t(7026),B=t(592),D=t(404),N=t(5e3);let F=(()=>{class y{}return y.\u0275fac=function(Y){return new(Y||y)},y.\u0275mod=N.oAB({type:y}),y.\u0275inj=N.cJS({imports:[[a.ez,o.Bz,P.WG,u.vh,z.q6,f.PV,x.Jb,p.zf,n.X,D.cg,Z.U,g.Q,M.Q,T.y,h.e,c.s,B.x,I.$L.forChild({formatter:{useClass:G.x,provide:I.KP}})]]}),y})(),V=(()=>{class y{}return y.\u0275fac=function(Y){return new(Y||y)},y.\u0275mod=N.oAB({type:y}),y.\u0275inj=N.cJS({imports:[[a.ez,o.Bz,n.X,d.$6,f.PV,F,c.s]]}),y})()},3580:(J,_,t)=>{t.d(_,{Q:()=>x});var a=t(9808),o=t(325),n=t(8481),d=t(3610),f=t(647),u=t(7484),z=t(3098),Z=t(3630),M=t(6949),T=t(3618),h=t(9444),P=t(5e3);let c=(()=>{class p{}return p.\u0275fac=function(I){return new(I||p)},p.\u0275mod=P.oAB({type:p}),p.\u0275inj=P.cJS({imports:[[a.ez,M.WG,u.vh,z.q6,f.PV,T.ZJ,h.s,Z.X]]}),p})(),x=(()=>{class p{}return p.\u0275fac=function(I){return new(I||p)},p.\u0275mod=P.oAB({type:p}),p.\u0275inj=P.cJS({imports:[[a.ez,o.Bz,n.X,d.$6,f.PV,h.s,c]]}),p})()},8018:(J,_,t)=>{t.d(_,{e:()=>p});var a=t(9808),o=t(325),n=t(8481),d=t(3610),f=t(647),u=t(7484),z=t(3098),Z=t(6949),M=t(3630),T=t(3618),h=t(9444),P=t(404),c=t(5e3);let x=(()=>{class g{}return g.\u0275fac=function(G){return new(G||g)},g.\u0275mod=c.oAB({type:g}),g.\u0275inj=c.cJS({imports:[[a.ez,o.Bz,Z.WG,u.vh,z.q6,f.PV,T.ZJ,n.X,P.cg,M.X,h.s]]}),g})(),p=(()=>{class g{}return g.\u0275fac=function(G){return new(G||g)},g.\u0275mod=c.oAB({type:g}),g.\u0275inj=c.cJS({imports:[[a.ez,o.Bz,n.X,d.$6,f.PV,h.s,x]]}),g})()},209:(J,_,t)=>{t.d(_,{i:()=>F});var a=t(9808),o=t(325),n=t(8481),d=t(3610),f=t(647),u=t(7484),z=t(3309),Z=t(4867),M=t(1894),T=t(3098),h=t(8018),P=t(3580),c=t(6286),x=t(6949),p=t(8144),g=t(9444),I=t(9779),G=t(592),B=t(3618),D=t(5e3);let N=(()=>{class V{}return V.\u0275fac=function(S){return new(S||V)},V.\u0275mod=D.oAB({type:V}),V.\u0275inj=D.cJS({imports:[[a.ez,o.Bz,x.WG,f.PV,u.vh,M.Jb,T.q6,n.X,p.zf,B.ZJ,g.s,h.e,P.Q,z.U,Z.Q,c.y,I.s,G.x]]}),V})(),F=(()=>{class V{}return V.\u0275fac=function(S){return new(S||V)},V.\u0275mod=D.oAB({type:V}),V.\u0275inj=D.cJS({imports:[[a.ez,o.Bz,n.X,d.$6,f.PV,N,g.s]]}),V})()},9476:(J,_,t)=>{t.d(_,{L:()=>x});var a=t(9808),o=t(325),n=t(8481),d=t(647),f=t(1894),u=t(3630),z=t(3098),Z=t(7484),M=t(6949),T=t(5473),h=t(5e3);let P=(()=>{class p{}return p.\u0275fac=function(I){return new(I||p)},p.\u0275mod=h.oAB({type:p}),p.\u0275inj=h.cJS({imports:[[a.ez,M.WG,Z.vh,f.Jb,z.q6,u.X,T.H]]}),p})();var c=t(3610);let x=(()=>{class p{}return p.\u0275fac=function(I){return new(I||p)},p.\u0275mod=h.oAB({type:p}),p.\u0275inj=h.cJS({imports:[[a.ez,o.Bz,n.X,d.PV,c.$6,P]]}),p})()},6286:(J,_,t)=>{t.d(_,{y:()=>P});var a=t(9808),o=t(325),n=t(8481),d=t(3610),f=t(647),u=t(6949),z=t(7484),Z=t(3630),M=t(3098),T=t(5e3);let h=(()=>{class c{}return c.\u0275fac=function(p){return new(p||c)},c.\u0275mod=T.oAB({type:c}),c.\u0275inj=T.cJS({imports:[[a.ez,u.WG,f.PV,z.vh,Z.X,M.q6]]}),c})(),P=(()=>{class c{}return c.\u0275fac=function(p){return new(p||c)},c.\u0275mod=T.oAB({type:c}),c.\u0275inj=T.cJS({imports:[[a.ez,o.Bz,n.X,d.$6,f.PV,h]]}),c})()},2166:(J,_,t)=>{t.d(_,{p:()=>Z});var a=t(5e3),o=t(1047),n=t(4182),d=t(9808),f=t(647);function u(M,T){if(1&M){const h=a.EpF();a.TgZ(0,"i",4),a.NdJ("click",function(){a.CHM(h);const c=a.oxw(2);return c.inputModel=void 0,c.onModelUpdated()}),a.qZA()}}function z(M,T){if(1&M&&a.YNc(0,u,1,0,"i",3),2&M){const h=a.oxw();a.Q6J("ngIf",h.inputModel)}}let Z=(()=>{class M{constructor(){this.inputModelChange=new a.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return M.\u0275fac=function(h){return new(h||M)},M.\u0275cmp=a.Xpm({type:M,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(h,P){if(1&h&&(a.TgZ(0,"nz-input-group",0),a.TgZ(1,"input",1),a.NdJ("ngModelChange",function(x){return P.inputModel=x})("ngModelChange",function(){return P.onModelUpdated()}),a.qZA(),a.qZA(),a.YNc(2,z,1,1,"ng-template",null,2,a.W1O)),2&h){const c=a.MAs(3);a.Q6J("nzSuffix",c),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,d.O5,f.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),M})()},4125:(J,_,t)=>{t.d(_,{k:()=>u});var a=t(9808),o=t(1047),n=t(4182),d=t(647),f=t(5e3);let u=(()=>{class z{}return z.\u0275fac=function(M){return new(M||z)},z.\u0275mod=f.oAB({type:z}),z.\u0275inj=f.cJS({imports:[[a.ez,n.u5,o.o7,d.PV]]}),z})()},592:(J,_,t)=>{t.d(_,{x:()=>f});var a=t(9808),o=t(8481),n=t(647),d=t(5e3);let f=(()=>{class u{}return u.\u0275fac=function(Z){return new(Z||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[[a.ez,o.X,n.PV]]}),u})()},6715:(J,_,t)=>{t.d(_,{$:()=>n});var a=t(5e3);const o=["*"];let n=(()=>{class d{constructor(){}ngOnInit(){}}return d.\u0275fac=function(u){return new(u||d)},d.\u0275cmp=a.Xpm({type:d,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(u,z){2&u&&a.ekj("xs","xs"===z.size||!z.size)("sm","sm"===z.size)},inputs:{size:"size"},ngContentSelectors:o,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(u,z){1&u&&(a.F$t(),a.TgZ(0,"div",0),a.Hsn(1),a.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),d})()},897:(J,_,t)=>{t.d(_,{$:()=>n});var a=t(9808),o=t(5e3);let n=(()=>{class d{}return d.\u0275fac=function(u){return new(u||d)},d.\u0275mod=o.oAB({type:d}),d.\u0275inj=o.cJS({imports:[[a.ez]]}),d})()},7946:(J,_,t)=>{t.d(_,{x:()=>M});var a=t(9808),o=t(897),n=t(8481),d=t(3610),f=t(8018),u=t(3580),z=t(9476),Z=t(5e3);let M=(()=>{class T{}return T.\u0275fac=function(P){return new(P||T)},T.\u0275mod=Z.oAB({type:T}),T.\u0275inj=Z.cJS({imports:[[a.ez,n.X,d.$6,o.$,f.e,u.Q,z.L]]}),T})()},112:(J,_,t)=>{t.d(_,{u:()=>b});var a=t(5e3),o=t(9808),n=t(325),d=t(8481),f=t(3610),u=t(4850),z=t(712),Z=t(7484),M=t(3098),T=t(8664),h=t(6906),P=t(6949);function c(l,A){if(1&l&&(a._UZ(0,"i",7),a._uU(1)),2&l){const v=a.oxw().ngIf;a.xp6(1),a.hij(" ",v.name," ")}}function x(l,A){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-variant-tag",10),a.qZA()),2&l){const v=A.$implicit;a.xp6(1),a.Q6J("variant",v.node)}}function p(l,A){if(1&l&&(a.TgZ(0,"nz-descriptions-item",8),a.YNc(1,x,2,1,"span",9),a.qZA()),2&l){const v=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",v.variants.edges)}}function g(l,A){if(1&l&&(a.TgZ(0,"span"),a._UZ(1,"cvc-source-tag",12),a.qZA()),2&l){const v=A.$implicit;a.xp6(1),a.Q6J("source",v)}}function I(l,A){if(1&l&&(a.TgZ(0,"nz-descriptions-item",11),a.YNc(1,g,2,1,"span",9),a.qZA()),2&l){const v=a.oxw().ngIf;a.xp6(1),a.Q6J("ngForOf",v.sources)}}function G(l,A){if(1&l&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,c,2,1,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,p,2,1,"nz-descriptions-item",5),a.YNc(7,I,2,1,"nz-descriptions-item",6),a.qZA(),a.qZA(),a.BQk()),2&l){const v=A.ngIf,U=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",U),a.xp6(3),a.hij(" ",v.description," "),a.xp6(1),a.Q6J("nzColumn",2),a.xp6(1),a.Q6J("ngIf",v.variants.edges.length>0),a.xp6(1),a.Q6J("ngIf",v.sources.length>0)}}let B=(()=>{class l{constructor(v){this.gql=v}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,u.U)(({data:v})=>v.variantGroup))}}return l.\u0275fac=function(v){return new(v||l)(a.Y36(z.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(v,U){1&v&&(a.TgZ(0,"div",0),a.YNc(1,G,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&v&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,U.variantGroup$)))},directives:[o.O5,Z.bd,M.R7,M.uj,o.sg,T.I,h.T],pipes:[P.fM],styles:["[_nghost-%COMP%]{display:block}"]}),l})();var D=t(647);function N(l,A){}function F(l,A){if(1&l&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,N,0,0,"ng-template",6),a.qZA(),a.BQk()),2&l){const v=a.oxw(),U=a.MAs(2);a.xp6(1),a.Q6J("routerLink",v.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",U)}}function V(l,A){}function y(l,A){if(1&l&&(a.TgZ(0,"nz-tag",9),a.YNc(1,V,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const v=a.MAs(2);a.oxw();const U=a.MAs(8);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",v),a.xp6(1),a.Q6J("ngTemplateOutlet",U)}}function S(l,A){if(1&l&&a._UZ(0,"cvc-variant-group-popover",11),2&l){const v=a.oxw(3);a.Q6J("variantGroupId",v.variantgroup.id)}}function Y(l,A){if(1&l&&a.YNc(0,S,1,1,"cvc-variant-group-popover",10),2&l){const v=a.oxw(2);a.Q6J("ngIf",v.enablePopover)}}function j(l,A){if(1&l&&(a.YNc(0,y,2,3,"nz-tag",7),a.YNc(1,Y,1,1,"ng-template",null,8,a.W1O)),2&l){const v=a.oxw(),U=a.MAs(4);a.Q6J("ngIf",v.enablePopover)("ngIfElse",U)}}function $(l,A){}function R(l,A){if(1&l&&(a.TgZ(0,"nz-tag"),a.YNc(1,$,0,0,"ng-template",6),a.qZA()),2&l){a.oxw();const v=a.MAs(8);a.xp6(1),a.Q6J("ngTemplateOutlet",v)}}function K(l,A){}function H(l,A){if(1&l&&a.YNc(0,K,0,0,"ng-template",6),2&l){a.oxw();const v=a.MAs(2);a.Q6J("ngTemplateOutlet",v)}}function X(l,A){if(1&l&&(a._UZ(0,"i",12),a._uU(1)),2&l){const v=a.oxw();a.xp6(1),a.hij(" ",v.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(v){return new(v||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(v,U){if(1&v&&(a.YNc(0,F,3,2,"ng-container",0),a.YNc(1,j,3,2,"ng-template",null,1,a.W1O),a.YNc(3,R,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&v){const w=a.MAs(6);a.Q6J("ngIf",U.linked)("ngIfElse",w)}},directives:[o.O5,n.yS,o.tP,d.j,f.lU,B,D.Ls],styles:[""]}),l})()},7677:(J,_,t)=>{t.d(_,{G:()=>c});var a=t(9808),o=t(325),n=t(3610),d=t(8481),f=t(647),u=t(9779),z=t(4867),Z=t(7484),M=t(3098),T=t(6949),h=t(5e3);let P=(()=>{class x{}return x.\u0275fac=function(g){return new(g||x)},x.\u0275mod=h.oAB({type:x}),x.\u0275inj=h.cJS({imports:[[a.ez,T.WG,Z.vh,M.q6,u.s,z.Q]]}),x})(),c=(()=>{class x{}return x.\u0275fac=function(g){return new(g||x)},x.\u0275mod=h.oAB({type:x}),x.\u0275inj=h.cJS({imports:[[a.ez,o.Bz,n.$6,d.X,f.PV,P]]}),x})()},8664:(J,_,t)=>{t.d(_,{I:()=>k});var a=t(6654),o=t(5e3),n=t(9808),d=t(325),f=t(8481),u=t(3610),z=t(4850),Z=t(712),M=t(7484),T=t(647),h=t(3193),P=t(3098),c=t(6550),x=t(1894),p=t(8144),g=t(6949);function I(i,O){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const s=o.oxw().ngIf;o.xp6(1),o.hij(" ",s.name," ")}}function G(i,O){if(1&i&&o._UZ(0,"cvc-gene-tag",14),2&i){const s=o.oxw().ngIf;o.Q6J("enablePopover",!1)("gene",s.gene)}}function B(i,O){if(1&i&&(o.TgZ(0,"nz-tag"),o._uU(1),o.qZA()),2&i){const s=O.$implicit;o.xp6(1),o.Oqu(s)}}function D(i,O){if(1&i&&(o.TgZ(0,"nz-descriptions-item",15),o.YNc(1,B,2,1,"nz-tag",16),o.qZA()),2&i){const s=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",s.variantAliases)}}function N(i,O){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 s=o.oxw().ngIf;o.xp6(1),o.MGl("href","https://reg.genome.network/allele/",s.alleleRegistryId,".html"),o.xp6(1),o.hij(" ",s.alleleRegistryId," ")}}function F(i,O){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 s=o.oxw().ngIf;o.MGl("routerLink","/variants/",s.id,"/flags"),o.xp6(3),o.hij(" Flags (",s.flags.totalCount,") ")}}function V(i,O){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 s=o.oxw().ngIf;o.MGl("routerLink","/variants/",s.id,"/revisions"),o.xp6(3),o.hij(" Revisions (",s.revisions.totalCount,") ")}}function y(i,O){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 s=o.oxw().ngIf;o.MGl("routerLink","/variants/",s.id,"/comments"),o.xp6(3),o.hij(" Comments (",s.comments.totalCount,") ")}}function S(i,O){if(1&i&&(o.ynx(0),o.TgZ(1,"nz-card",2),o.YNc(2,I,2,1,"ng-template",null,3,o.W1O),o.YNc(4,G,1,2,"ng-template",null,4,o.W1O),o.TgZ(6,"nz-descriptions",5),o.YNc(7,D,2,1,"nz-descriptions-item",6),o.YNc(8,N,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,F,4,2,"a",12),o.YNc(15,V,4,2,"a",12),o.YNc(16,y,4,2,"a",12),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&i){const s=O.ngIf,E=o.MAs(3),L=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",E)("nzExtra",L),o.xp6(5),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",s.variantAliases.length>0),o.xp6(1),o.Q6J("ngIf",s.alleleRegistryId),o.xp6(2),o.hij(" ",s.evidenceItems.totalCount," ")}}let Y=(()=>{class i{constructor(s){this.gql=s}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:s})=>s.variant))}}return i.\u0275fac=function(s){return new(s||i)(o.Y36(Z.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(s,E){1&s&&(o.TgZ(0,"div",0),o.YNc(1,S,17,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&s&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,E.variant$)))},directives:[n.O5,M.bd,T.Ls,h.H,P.R7,P.uj,n.sg,f.j,c.l,x.SK,x.t3,p.NU,p.$1,d.yS],pipes:[g.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 j(i,O){}function $(i,O){if(1&i&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,j,0,0,"ng-template",6),o.qZA(),o.BQk()),2&i){const s=o.oxw(),E=o.MAs(2);o.xp6(1),o.Q6J("routerLink",s.variant.link),o.xp6(1),o.Q6J("ngTemplateOutlet",E)}}function R(i,O){}function K(i,O){if(1&i){const s=o.EpF();o.TgZ(0,"nz-tag",9),o.NdJ("nzOnClose",function(L){return o.CHM(s),o.oxw(2).itemClosed(L)}),o.YNc(1,R,0,0,"ng-template",6),o.qZA()}if(2&i){o.oxw();const s=o.MAs(2),E=o.oxw(),L=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",E.onCloseClicked?0:.5)("nzPopoverContent",s)("nzMode",E.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",L)}}function H(i,O){if(1&i&&o._UZ(0,"cvc-variant-popover",11),2&i){const s=o.oxw(3);o.Q6J("variantId",s.variant.id)}}function X(i,O){if(1&i&&o.YNc(0,H,1,1,"cvc-variant-popover",10),2&i){const s=o.oxw(2);o.Q6J("ngIf",s.enablePopover)}}function b(i,O){if(1&i&&(o.YNc(0,K,2,4,"nz-tag",7),o.YNc(1,X,1,1,"ng-template",null,8,o.W1O)),2&i){const s=o.oxw(),E=o.MAs(4);o.Q6J("ngIf",s.enablePopover)("ngIfElse",E)}}function l(i,O){}function A(i,O){if(1&i){const s=o.EpF();o.TgZ(0,"nz-tag",12),o.NdJ("nzOnClose",function(L){return o.CHM(s),o.oxw().itemClosed(L)}),o.YNc(1,l,0,0,"ng-template",6),o.qZA()}if(2&i){const s=o.oxw(),E=o.MAs(8);o.Q6J("nzMode",s.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",E)}}function v(i,O){}function U(i,O){if(1&i&&o.YNc(0,v,0,0,"ng-template",6),2&i){o.oxw();const s=o.MAs(2);o.Q6J("ngTemplateOutlet",s)}}function w(i,O){if(1&i&&(o._UZ(0,"i",13),o._uU(1)),2&i){const s=o.oxw();o.xp6(1),o.hij(" ",s.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(s){return new(s||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(s,E){if(1&s&&(o.YNc(0,$,3,2,"ng-container",0),o.YNc(1,b,3,2,"ng-template",null,1,o.W1O),o.YNc(3,A,2,2,"ng-template",null,2,o.W1O),o.YNc(5,U,1,1,"ng-template",null,3,o.W1O),o.YNc(7,w,2,1,"ng-template",null,4,o.W1O)),2&s){const L=o.MAs(6);o.Q6J("ngIf",E.linked)("ngIfElse",L)}},directives:[n.O5,d.yS,n.tP,f.j,u.lU,Y,T.Ls],styles:[""]}),i})()},4867:(J,_,t)=>{t.d(_,{Q:()=>p});var a=t(9808),o=t(325),n=t(8481),d=t(647),f=t(3610),u=t(6949),z=t(7484),Z=t(1894),M=t(3098),T=t(8144),h=t(3309),P=t(3630),c=t(5e3);let x=(()=>{class g{}return g.\u0275fac=function(G){return new(G||g)},g.\u0275mod=c.oAB({type:g}),g.\u0275inj=c.cJS({imports:[[a.ez,o.Bz,u.WG,z.vh,Z.Jb,M.q6,n.X,d.PV,T.zf,h.U,P.X]]}),g})(),p=(()=>{class g{}return g.\u0275fac=function(G){return new(G||g)},g.\u0275mod=c.oAB({type:g}),g.\u0275inj=c.cJS({imports:[[a.ez,o.Bz,n.X,f.$6,d.PV,x]]}),g})()},3154:(J,_,t)=>{t.d(_,{_:()=>o});var a=t(712);function o(n){var d;switch(n.value){case"ascend":d=a.SrV.Asc;break;case"descend":d=a.SrV.Desc;break;default:return}return{column:n.key,direction:d}}},79:(J,_,t)=>{t.r(_),t.d(_,{VariantGroupsModule:()=>Zn});var a=t(9808),o=t(325),n=t(5e3),d=t(9350),f=t(8992),u=t(6949),z=t(6042),Z=t(2643),M=t(2683),T=t(647),h=t(1945),P=t(1894),c=t(3618),x=t(8144),p=t(712),g=t(3154),I=t(8929),G=t(4850),B=t(373),D=t(1059),N=t(2986),F=t(13),V=t(7484),y=t(1132),S=t(404),Y=t(2166),j=t(112);function $(e,C){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=C.$implicit,m=C.last;n.xp6(1),n.AsE(" ",r,"",m?"":", "," ")}}function R(e,C){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=C.$implicit,m=C.last;n.xp6(1),n.AsE(" ",r,"",m?"":", "," ")}}function K(e,C){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,$,2,2,"span",15),n.qZA(),n.qZA(),n.TgZ(6,"td"),n.TgZ(7,"p",18),n.YNc(8,R,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=C.$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,C){if(1&e){const r=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(r);const Q=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(Q.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,C){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,C){if(1&e&&(n.ynx(0),n.YNc(1,X,3,1,"tr",1),n.BQk()),2&e){const r=C.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.hasNextPage)}}const l=function(){return["descend","ascend",null]};function A(e,C){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(Q){return n.CHM(r),n.oxw().onSortChanged(Q)}),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(Q){return n.CHM(r),n.oxw().nameInput=Q}),n.qZA(),n.qZA(),n.TgZ(20,"th"),n.TgZ(21,"cvc-clearable-input-filter",13),n.NdJ("inputModelChange",function(Q){return n.CHM(r),n.oxw().variantNameInput=Q}),n.qZA(),n.qZA(),n.TgZ(22,"th"),n.TgZ(23,"cvc-clearable-input-filter",14),n.NdJ("inputModelChange",function(Q){return n.CHM(r),n.oxw().geneNameInput=Q}),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),m=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,20,m.variantGroups$))("nzLoading",n.lcZ(4,22,m.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",m.sortColumns.Name)("nzSortFn",!0),n.xp6(6),n.Q6J("nzColumnKey",m.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",n.DdM(24,l)),n.xp6(2),n.Q6J("nzColumnKey",m.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(25,l)),n.xp6(4),n.Q6J("inputModel",m.nameInput)("onInputChanged",m.textInputCallback),n.xp6(2),n.Q6J("inputModel",m.variantNameInput)("onInputChanged",m.textInputCallback),n.xp6(2),n.Q6J("inputModel",m.geneNameInput)("onInputChanged",m.textInputCallback),n.xp6(4),n.Q6J("ngForOf",r.data),n.xp6(1),n.Q6J("ngrxLet",m.pageInfo$)}}function v(e,C){}function U(e,C){if(1&e&&(n.ynx(0),n.YNc(1,v,0,0,"ng-template",25),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",r.cvcTitleTemplate)}}function w(e,C){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 k(e,C){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 i(e,C){if(1&e&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,k,2,1,"span",1),n._uU(3,") "),n.qZA()),2&e){const r=C.ngIf,m=n.oxw(2);n.xp6(1),n.AsE(" (",m.totalCount," total, showing ",m.visibleCount,""),n.xp6(1),n.Q6J("ngIf",m.totalCount&&r{class e{constructor(r){this.gql=r,this.debouncedQuery=new I.xQ,this.pageSize=25,this.sortColumns=p.FB1,this.visibleCount=this.pageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.pageSize}),this.data$=this.queryRef.valueChanges.pipe((0,G.U)(r=>({data:r.data,loading:r.loading,networkStatus:r.networkStatus}))),this.isLoading$=this.data$.pipe((0,B.j)("loading"),(0,D.O)(!0)),this.variantGroups$=this.data$.pipe((0,B.j)("data","browseVariantGroups","edges"),(0,G.U)(r=>r.map(m=>m.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,N.q)(1)).subscribe(r=>this.totalCount=r),this.filteredCount$.subscribe(r=>{rr&&(this.visibleCount=r))}),this.debouncedQuery.pipe((0,F.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 m;this.loadedPages=1,null===(m=this.queryRef)||void 0===m||m.refetch({sortBy:(0,g._)(r)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(r){var m;null===(m=this.queryRef)||void 0===m||m.fetchMore({variables:{first:this.pageSize,after:r}}),this.loadedPages+=1}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(p.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","nzSortDirections"],["nz-icon","","nzType","civic:variant"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["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,m){if(1&r&&(n.TgZ(0,"nz-card",0),n.YNc(1,A,29,26,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,s,7,6,"ng-template",null,2,n.W1O)),2&r){const Q=n.MAs(4);n.Q6J("nzTitle",Q),n.xp6(1),n.Q6J("ngIf",n.VKq(4,E,n.lcZ(2,2,m.data$)))}},directives:[V.bd,a.O5,y.N8,y.Om,y.$Z,y.Uo,y._C,y.qD,S.SY,M.w,T.Ls,Y.p,y.p0,a.sg,j.u,c.ZU,u.eJ,z.ix,Z.dQ,a.tP],pipes:[u.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function q(e,C){1&e&&(n.TgZ(0,"button",18),n._UZ(1,"i",19),n._uU(2," Submit New Variant Group "),n.qZA())}function tn(e,C){if(1&e&&(n.ynx(0),n.YNc(1,q,3,0,"button",17),n.BQk()),2&e){const r=C.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)}}function on(e,C){if(1&e&&n.YNc(0,tn,2,1,"ng-container",16),2&e){const r=n.oxw();n.Q6J("ngrxLet",r.viewer$)}}function an(e,C){1&e&&(n.TgZ(0,"a",20),n._UZ(1,"i",21),n._uU(2," View Variant Group Model Docs "),n.qZA())}function en(e,C){1&e&&(n.TgZ(0,"a",22),n._UZ(1,"i",21),n._uU(2," View Variant Group Curation Docs "),n.qZA())}const rn=[{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,m){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(d.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,m){if(1&r&&(n._UZ(0,"cvc-section-navigation",0),n.YNc(1,on,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,an,3,0,"a",10),n.YNc(16,en,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 Q=n.MAs(2);n.Q6J("actionsTpl",Q),n.xp6(11),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24)}},directives:[f.I,u.eJ,a.O5,z.ix,Z.dQ,o.rH,M.w,T.Ls,h.$O,h.u5,P.SK,P.t3,c.ZU,x.NU,x.$1,L],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(4184),t.e(8592),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(6724),t.e(55),t.e(9716),t.e(5291),t.e(2043),t.e(4355),t.e(392),t.e(4028),t.e(1750),t.e(8482)]).then(t.bind(t,8482)).then(e=>e.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(4184),t.e(8592),t.e(605)]).then(t.bind(t,605)).then(e=>e.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let ln=(()=>{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(rn)],o.Bz]}),e})();var sn=t(4182),cn=t(4546),pn=t(1047),gn=t(8054),nn=t(4125),dn=t(9444),vn=t(3309),un=t(4867),mn=t(3580),Cn=t(8018),fn=t(8369),zn=t(209),hn=t(897),Tn=t(7946),xn=t(7677);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,sn.u5,u.WG,z.sL,y.HQ,cn.U5,pn.o7,T.PV,c.ZJ,S.cg,gn.LV,T.PV,V.vh,c.ZJ,nn.k,dn.s,vn.U,un.Q,mn.Q,Cn.e,fn.W,zn.i,hn.$,Tn.x,nn.k,xn.G]]}),e})();var _n=t(5630);let Pn=(()=>{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,u.WG,z.sL,P.Jb,h.KJ,T.PV,c.ZJ,x.zf,Mn,_n.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,ln,Pn]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/605.0b7e1919acad6432.js b/server/public/605.0b7e1919acad6432.js deleted file mode 100644 index 5cab61dd2..000000000 --- a/server/public/605.0b7e1919acad6432.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[605],{605:(ft,v,r)=>{r.r(v),r.d(v,{VariantGroupsReviseModule:()=>mt});var p=r(9808),d=r(325),y=r(373),I=r(1059),R=r(4850),t=r(5e3),g=r(712),S=r(9350),T=r(8992),c=r(1945),x=r(647),l=r(1894),P=r(8616),G=r(6949);function Z(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function A(e,o){1&e&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"div",9),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function C(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",5),t.YNc(9,Z,2,0,"div",6),t.ALo(10,"ngrxPush"),t.YNc(11,A,3,0,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=o.ngIf,a=t.MAs(12),i=t.oxw();t.xp6(1),t.Q6J("displayName",n.name),t.xp6(5),t.hij(" ",n.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(10,4,i.isSignedIn$))("ngIfElse",a)}}let F=(()=>{class e{constructor(n,a,i){this.gql=n,this.route=a,this.viewerService=i,this.routeSub=this.route.params.subscribe(s=>{let b=this.gql.watch({variantGroupId:+s.variantGroupId}).valueChanges;this.loading$=b.pipe((0,y.j)("loading"),(0,I.O)(!0)),this.variantGroup$=b.pipe((0,y.j)("data","variantGroup"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,R.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.Qtd),t.Y36(d.gz),t.Y36(S.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variantgroup"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,a){1&n&&(t.YNc(0,C,13,6,"ng-container",0),t.ALo(1,"async")),2&n&&t.Q6J("ngIf",t.lcZ(1,1,a.variantGroup$))},directives:[p.O5,T.I,c.$O,c.u9,x.Ls,c.u5,d.lC,l.SK,l.t3,P.u],pipes:[p.Ov,G.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),e})();var u=r(4182),m=r(8776),z=r(2359),J=r(6042),f=r(4546),Q=r(7525),N=r(5109),Y=r(7008),$=r(4623),L=r(8979),U=r(8390),w=r(3773),j=r(7075),_=r(7462),V=r(4181),B=r(5472),E=r(4889);let D=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,u.UX,d.Bz,m.X0,f.U5,z.L,l.Jb,J.sL,Q.j,m.X0,_.o,V.O,U.N,L.N,$.K,Y.B,B.r,w.g,V.O,j.l,E.E,N.s]]}),e})(),W=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,D]]}),e})();var M=r(3077),X=r(6123),K=r(8929),h=r(7625),H=r(9169),k=r(822);function q(e,o){1&e&&t.GkF(0)}function tt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"formly-form",5),t.NdJ("modelChange",function(i){return t.CHM(n),t.oxw(2).formModel=i}),t.qZA()}if(2&e){const n=t.oxw(2);t.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)}}function et(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"form",2),t.NdJ("ngSubmit",function(){t.CHM(n);const i=t.oxw();return i.submitVariantGroup(i.formModel)}),t.YNc(1,q,1,0,"ng-container",3),t.YNc(2,tt,1,3,"formly-form",4),t.qZA()}if(2&e){const n=t.oxw(),a=t.MAs(2);t.Q6J("formGroup",n.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngIf",!n.success)}}function nt(e,o){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",7),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("errors",n.errorMessages)}}function rt(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",11),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4,"."),t.qZA())}function ot(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",8),t.YNc(2,rt,5,0,"ng-template",9,10,t.W1O),t.BQk()),2&e){const n=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",n)}}function at(e,o){if(1&e&&(t.YNc(0,nt,2,1,"nz-form-item",6),t.YNc(1,ot,4,1,"ng-container",6)),2&e){const n=t.oxw();t.Q6J("ngIf",n.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",n.success)}}let it=(()=>{class e{constructor(n,a,i){this.suggestRevisionGQL=n,this.revisableFieldsGQL=a,this.networkErrorService=i,this.destroy$=new K.xQ,this.formGroup=new u.cw({}),this.formOptions={},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new X.U(i),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Group Form"},fieldGroup:[{key:"name",type:"input",wrappers:["form-field"],templateOptions:{label:"Variant Group Name",required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Description",helpText:"A brief description of this new variant group.",placeholder:"No description provided",required:!0}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"Add any sources upon which your description depends.",addText:"Add a Source"},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variants",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variants",helpText:"Specify the variants that comprise this Variant Group.",addText:"Add a Variant "},fieldArray:{type:"variant-input",templateOptions:{hideLabel:!0,required:!0,allowCreate:!1}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Group Revision",submitSize:"large"}}]}]}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).subscribe(({data:{variantGroup:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var a;return{fields:Object.assign(Object.assign({},n),{variants:n.variants.nodes,organization:null===(a=this.formModel)||void 0===a?void 0:a.fields.organization})}}submitVariantGroup(n){let a=this.toSubmitInput(n);if(a){let i=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:a});i.submitSuccess$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),i.submitError$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,h.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toSubmitInput(n){var a;if(n)return{id:this.variantGroupId,organizationId:null===(a=n.fields.organization)||void 0===a?void 0:a.id,comment:n.fields.comment,fields:{description:n.fields.description,name:n.fields.name,sourceIds:n.fields.sources.map(i=>i.id).filter(M.$),variantIds:n.fields.variants.map(i=>i.id).filter(M.$)}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.aw3),t.Y36(g.ROj),t.Y36(H.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-group-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:1,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","modelChange",4,"ngIf"],[3,"form","fields","model","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Revision(s) Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,a){1&n&&(t.YNc(0,et,3,3,"form",0),t.YNc(1,at,2,2,"ng-template",null,1,t.W1O)),2&n&&t.Q6J("ngIf",a.formModel)},directives:[p.O5,u._Y,u.JL,f.Lr,u.sg,p.tP,m.T7,l.SK,f.Nx,k.V,z.r,d.yS],styles:[""]}),e})();function st(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"cvc-variant-group-revise-form",2),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("variantGroupId",n.variantGroupId)}}function pt(e,o){1&e&&t._uU(0,"Loading Variant Group...")}const dt=[{path:"",component:F,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class e{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(a=>{this.variantGroupId=+a.variantGroupId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(d.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-suggest-page"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariantGroup",""],[3,"variantGroupId"]],template:function(n,a){if(1&n&&(t.YNc(0,st,2,1,"ng-container",0),t.YNc(1,pt,1,0,"ng-template",null,1,t.W1O)),2&n){const i=t.MAs(2);t.Q6J("ngIf",a.variantGroupId)("ngIfElse",i)}},directives:[p.O5,it],styles:[""]}),e})(),data:{breadcrumb:"Suggest Revision"}}]}];let lt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[d.Bz.forChild(dt),W],d.Bz]}),e})();var O=r(8144),ut=r(3618),ct=r(5630),gt=r(9386);let mt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,lt,c.KJ,O.zf,x.PV,ut.ZJ,O.zf,ct.D,gt.a,G.WG,l.Jb]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/605.d98f2530a9774915.js b/server/public/605.d98f2530a9774915.js new file mode 100644 index 000000000..b75f6c2bb --- /dev/null +++ b/server/public/605.d98f2530a9774915.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[605],{8616:(J,I,e)=>{e.d(I,{u:()=>n});var s=e(5e3),v=e(685),y=e(1912),V=e(3618),M=e(647);function t(g,_){1&g&&(s.TgZ(0,"span"),s._uU(1," You must be logged in to view this page. "),s.qZA())}function x(g,_){1&g&&s._UZ(0,"cvc-login-button")}function f(g,_){1&g&&(s.TgZ(0,"nz-typography",4),s._UZ(1,"i",5),s.qZA())}let n=(()=>{class g{}return g.\u0275fac=function(h){return new(h||g)},g.\u0275cmp=s.Xpm({type:g,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(h,C){if(1&h&&(s.TgZ(0,"nz-empty",0),s.YNc(1,t,2,0,"ng-template",null,1,s.W1O),s.YNc(3,x,1,0,"ng-template",null,2,s.W1O),s.qZA(),s.YNc(5,f,2,0,"ng-template",null,3,s.W1O)),2&h){const G=s.MAs(2),R=s.MAs(4),A=s.MAs(6);s.Q6J("nzNotFoundImage",A)("nzNotFoundContent",G)("nzNotFoundFooter",R)}},directives:[v.p9,y.s,V.ZU,M.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),g})()},9386:(J,I,e)=>{e.d(I,{a:()=>x});var s=e(9808),v=e(1844),y=e(685),V=e(647),M=e(3618),t=e(5e3);let x=(()=>{class f{}return f.\u0275fac=function(g){return new(g||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[s.ez,v.B,y.Xo,V.PV,M.ZJ]]}),f})()},4181:(J,I,e)=>{e.d(I,{O:()=>q});var s=e(9808),v=e(6123),y=e(8776),V=e(8929),M=e(591),t=e(373),x=e(4850),f=e(7625),n=e(5e3),g=e(712),_=e(9169),h=e(8054),C=e(4182),G=e(8664),R=e(822),A=e(6042),Q=e(2643),N=e(2683),T=e(647),P=e(6949),E=e(8926);function Y(i,m){if(1&i&&(n.TgZ(0,"nz-option",6),n._UZ(1,"span",7),n.ALo(2,"highlightTypeahead"),n.qZA()),2&i){const a=m.$implicit,d=n.oxw(2);n.Q6J("nzValue",a.variant),n.xp6(1),n.Q6J("innerHtml",n.xi3(2,2,a.label,d.to.searchString),n.oJD)}}function L(i,m){1&i&&n._uU(0," No variant found in CIViC that matches the string provided. ")}function $(i,m){if(1&i){const a=n.EpF();n.ynx(0),n.TgZ(1,"nz-select",3),n.NdJ("nzOnSearch",function(p){return n.CHM(a),n.oxw().to.onSearch(p)}),n.YNc(2,Y,3,5,"nz-option",4),n.ALo(3,"ngrxPush"),n.qZA(),n.YNc(4,L,1,0,"ng-template",null,5,n.W1O),n.BQk()}if(2&i){const a=n.MAs(5),d=n.oxw(),p=n.MAs(4);n.xp6(1),n.Q6J("formControl",d.formControl)("formlyAttributes",d.field)("nzPlaceHolder",d.to.placeholder?d.to.placeholder:null)("nzDropdownRender",d.to.allowCreate?p:null)("nzNotFoundContent",a)("nzShowArrow",d.to.showArrow),n.xp6(1),n.Q6J("ngForOf",n.lcZ(3,7,d.variants$))}}function D(i,m){if(1&i&&n._UZ(0,"cvc-variant-tag",8),2&i){const a=n.oxw();n.Q6J("variant",a.formControl.value)}}function B(i,m){if(1&i&&n._UZ(0,"cvc-form-errors-alert",12),2&i){const a=n.oxw(4);n.Q6J("errors",a.errorMessages)}}function W(i,m){if(1&i){const a=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){n.CHM(a);const p=n.oxw(4);return p.addVariant(p.to.searchString)}),n._UZ(1,"i",14),n._uU(2,"No Existing CIViC Variant\xa0"),n.TgZ(3,"strong"),n._uU(4),n.qZA(),n._uU(5,"\xa0found. Create A New Variant? "),n.qZA()}if(2&i){const a=n.oxw(4);n.Q6J("nzLoading",a.loading),n.xp6(4),n.Oqu(a.to.searchString)}}function w(i,m){if(1&i&&(n.ynx(0),n.YNc(1,B,1,1,"cvc-form-errors-alert",10),n.YNc(2,W,6,2,"button",11),n.BQk()),2&i){const a=n.oxw(3);n.xp6(1),n.Q6J("ngIf",a.errorMessages.length>0),n.xp6(1),n.Q6J("ngIf",0==a.errorMessages.length)}}function j(i,m){if(1&i&&(n.ynx(0),n.YNc(1,w,3,2,"ng-container",9),n.BQk()),2&i){const a=n.oxw(2);n.xp6(1),n.Q6J("ngIf",""!==a.to.searchString)}}function K(i,m){if(1&i&&(n.YNc(0,j,2,1,"ng-container",9),n.ALo(1,"ngrxPush")),2&i){const a=n.oxw();n.Q6J("ngIf",n.lcZ(1,1,a.displayAdd$))}}const X={name:"variant-input",component:(()=>{class i extends y.fS{constructor(a,d,p){super(),this.variantTypeaheadQuery=a,this.networkErrorService=d,this.addVariantGQL=p,this.destroy$=new V.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new M.X(!1),this.addVariantMutator=new v.U(d),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(O,nt,Z)=>{var b,F;let S=null===(F=null===(b=null==Z?void 0:Z.parent)||void 0===b?void 0:b.parent)||void 0===F?void 0:F.model;if(S&&S.gene&&S.gene[0])return S.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,t.j)("data","variants","nodes"),(0,x.U)(a=>a.map(p=>({value:p.id,label:p.name,variant:p}))))}ngAfterViewInit(){this.to.onSearch=a=>{a.length{this.displayAdd$.next(0==d.data.variants.nodes.filter(p=>p.name.toUpperCase()==a.toUpperCase()).length)}))}}addVariant(a){if(a&&""!=a&&this.to.geneId){let d=this.addVariantMutator.mutate(this.addVariantGQL,{name:a,geneId:this.to.geneId},{},p=>{var O;null===(O=this.field.formControl)||void 0===O||O.setValue({id:p.addVariant.variant.id,name:p.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});d.submitSuccess$.pipe((0,f.R)(this.destroy$)).subscribe(p=>{p&&(this.success=!0)}),d.submitError$.pipe((0,f.R)(this.destroy$)).subscribe(p=>{p&&(this.errorMessages=p,this.success=!1)}),d.isSubmitting$.pipe((0,f.R)(this.destroy$)).subscribe(p=>{this.loading=p})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return i.\u0275fac=function(a){return new(a||i)(n.Y36(g._eC),n.Y36(_.Y),n.Y36(g.LUc))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cvc-variant-input-type"]],features:[n.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(a,d){if(1&a&&(n.YNc(0,$,6,9,"ng-container",0),n.YNc(1,D,1,1,"ng-template",null,1,n.W1O),n.YNc(3,K,2,3,"ng-template",null,2,n.W1O)),2&a){const p=n.MAs(2);n.Q6J("ngIf",!(null!=d.formControl.value&&d.formControl.value.id))("ngIfElse",p)}},directives:[s.O5,h.Vq,C.JJ,C.oH,y.VQ,s.sg,h.Ip,G.I,R.V,A.ix,Q.dQ,N.w,T.Ls],pipes:[P.fM,E.A],styles:[""],changeDetection:0}),i})()};var U=e(4867),H=e(7008),k=e(9444);let q=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[s.ez,C.UX,P.WG,y.X0.forChild({types:[X]}),h.LV,A.sL,T.PV,U.Q,H.B,k.s]]}),i})()},605:(J,I,e)=>{e.r(I),e.d(I,{VariantGroupsReviseModule:()=>ft});var s=e(9808),v=e(325),y=e(373),V=e(1059),M=e(4850),t=e(5e3),x=e(712),f=e(9350),n=e(8992),g=e(1945),_=e(647),h=e(1894),C=e(8616),G=e(6949);function R(o,l){1&o&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function A(o,l){1&o&&(t.TgZ(0,"nz-row",8),t.TgZ(1,"div",9),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}function Q(o,l){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2),t.TgZ(3,"nz-page-header-title",3),t._uU(4," REVISE "),t._UZ(5,"i",4),t._uU(6),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",5),t.YNc(9,R,2,0,"div",6),t.ALo(10,"ngrxPush"),t.YNc(11,A,3,0,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&o){const r=l.ngIf,c=t.MAs(12),u=t.oxw();t.xp6(1),t.Q6J("displayName",r.name),t.xp6(5),t.hij(" ",r.name," "),t.xp6(3),t.Q6J("ngIf",t.lcZ(10,4,u.isSignedIn$))("ngIfElse",c)}}let N=(()=>{class o{constructor(r,c,u){this.gql=r,this.route=c,this.viewerService=u,this.routeSub=this.route.params.subscribe(z=>{let ot=this.gql.watch({variantGroupId:+z.variantGroupId}).valueChanges;this.loading$=ot.pipe((0,y.j)("loading"),(0,V.O)(!0)),this.variantGroup$=ot.pipe((0,y.j)("data","variantGroup"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,M.U)(r=>r.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(r){return new(r||o)(t.Y36(x.Qtd),t.Y36(v.gz),t.Y36(f.a))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-groups-revise-view"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variantgroup"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,c){1&r&&(t.YNc(0,Q,13,6,"ng-container",0),t.ALo(1,"async")),2&r&&t.Q6J("ngIf",t.lcZ(1,1,c.variantGroup$))},directives:[s.O5,n.I,g.$O,g.u9,_.Ls,g.u5,v.lC,h.SK,h.t3,C.u],pipes:[s.Ov,G.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),o})();var T=e(4182),P=e(8776),E=e(2359),Y=e(6042),L=e(4546),$=e(7525),D=e(5109),B=e(7008),W=e(4623),w=e(8979),j=e(8390),K=e(3773),tt=e(3022),X=e(7462),U=e(4181),H=e(5472),k=e(4889);let q=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[s.ez,T.UX,v.Bz,P.X0,L.U5,E.L,h.Jb,Y.sL,$.j,P.X0,X.o,U.O,j.N,w.N,W.K,B.B,H.r,K.g,U.O,tt.e,k.E,D.s]]}),o})(),i=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[s.ez,q]]}),o})();var m=e(3077),a=e(6123),d=e(8929),p=e(7625),O=e(9169),nt=e(822);function Z(o,l){1&o&&t.GkF(0)}function b(o,l){if(1&o){const r=t.EpF();t.TgZ(0,"formly-form",5),t.NdJ("modelChange",function(u){return t.CHM(r),t.oxw(2).formModel=u}),t.qZA()}if(2&o){const r=t.oxw(2);t.Q6J("form",r.formGroup)("fields",r.formFields)("model",r.formModel)}}function F(o,l){if(1&o){const r=t.EpF();t.TgZ(0,"form",2),t.NdJ("ngSubmit",function(){t.CHM(r);const u=t.oxw();return u.submitVariantGroup(u.formModel)}),t.YNc(1,Z,1,0,"ng-container",3),t.YNc(2,b,1,3,"formly-form",4),t.qZA()}if(2&o){const r=t.oxw(),c=t.MAs(2);t.Q6J("formGroup",r.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",c),t.xp6(1),t.Q6J("ngIf",!r.success)}}function S(o,l){if(1&o&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",7),t.qZA()),2&o){const r=t.oxw(2);t.xp6(1),t.Q6J("errors",r.errorMessages)}}function rt(o,l){1&o&&(t.TgZ(0,"p"),t._uU(1,"View it on the "),t.TgZ(2,"a",11),t._uU(3,"Revisions Page"),t.qZA(),t._uU(4,"."),t.qZA())}function at(o,l){if(1&o&&(t.ynx(0),t._UZ(1,"nz-alert",8),t.YNc(2,rt,5,0,"ng-template",9,10,t.W1O),t.BQk()),2&o){const r=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",r)}}function it(o,l){if(1&o&&(t.YNc(0,S,2,1,"nz-form-item",6),t.YNc(1,at,4,1,"ng-container",6)),2&o){const r=t.oxw();t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",r.success)}}let st=(()=>{class o{constructor(r,c,u){this.suggestRevisionGQL=r,this.revisableFieldsGQL=c,this.networkErrorService=u,this.destroy$=new d.xQ,this.formGroup=new T.cw({}),this.formOptions={},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new a.U(u),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Group Form"},fieldGroup:[{key:"name",type:"input",wrappers:["form-field"],templateOptions:{label:"Variant Group Name",required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Description",helpText:"A brief description of this new variant group.",placeholder:"No description provided",required:!0}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"Add any sources upon which your description depends.",addText:"Add a Source"},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variants",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variants",helpText:"Specify the variants that comprise this Variant Group.",addText:"Add a Variant "},fieldArray:{type:"variant-input",templateOptions:{hideLabel:!0,required:!0,allowCreate:!1}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Group Revision",submitSize:"large"}}]}]}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).subscribe(({data:{variantGroup:r}})=>{r&&(this.formModel=this.toFormModel(r))},r=>{console.error("Error retrieving evidenceItem."),console.error(r)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const r=this.formGroup.get("fields.comment");r&&r.markAsUntouched()})}toFormModel(r){var c;return{fields:Object.assign(Object.assign({},r),{variants:r.variants.nodes,organization:null===(c=this.formModel)||void 0===c?void 0:c.fields.organization})}}submitVariantGroup(r){let c=this.toSubmitInput(r);if(c){let u=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:c});u.submitSuccess$.pipe((0,p.R)(this.destroy$)).subscribe(z=>{z&&(this.success=!0)}),u.submitError$.pipe((0,p.R)(this.destroy$)).subscribe(z=>{z&&(this.errorMessages=z,this.success=!1)}),u.isSubmitting$.pipe((0,p.R)(this.destroy$)).subscribe(z=>{this.loading=z})}}toSubmitInput(r){var c;if(r)return{id:this.variantGroupId,organizationId:null===(c=r.fields.organization)||void 0===c?void 0:c.id,comment:r.fields.comment,fields:{description:r.fields.description,name:r.fields.name,sourceIds:r.fields.sources.map(u=>u.id).filter(m.$),variantIds:r.fields.variants.map(u=>u.id).filter(m.$)}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(r){return new(r||o)(t.Y36(x.aw3),t.Y36(x.ROj),t.Y36(O.Y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-group-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:1,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","modelChange",4,"ngIf"],[3,"form","fields","model","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Revision(s) Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(r,c){1&r&&(t.YNc(0,F,3,3,"form",0),t.YNc(1,it,2,2,"ng-template",null,1,t.W1O)),2&r&&t.Q6J("ngIf",c.formModel)},directives:[s.O5,T._Y,T.JL,L.Lr,T.sg,s.tP,P.T7,h.SK,L.Nx,nt.V,E.r,v.yS],styles:[""]}),o})();function pt(o,l){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-variant-group-revise-form",2),t.BQk()),2&o){const r=t.oxw();t.xp6(1),t.Q6J("variantGroupId",r.variantGroupId)}}function lt(o,l){1&o&&t._uU(0,"Loading Variant Group...")}const ct=[{path:"",component:N,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class o{constructor(r){this.route=r,this.routeParams$=this.route.params.subscribe(c=>{this.variantGroupId=+c.variantGroupId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return o.\u0275fac=function(r){return new(r||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-groups-suggest-page"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariantGroup",""],[3,"variantGroupId"]],template:function(r,c){if(1&r&&(t.YNc(0,pt,2,1,"ng-container",0),t.YNc(1,lt,1,0,"ng-template",null,1,t.W1O)),2&r){const u=t.MAs(2);t.Q6J("ngIf",c.variantGroupId)("ngIfElse",u)}},directives:[s.O5,st],styles:[""]}),o})(),data:{breadcrumb:"Suggest Revision"}}]}];let dt=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[v.Bz.forChild(ct),i],v.Bz]}),o})();var et=e(8144),gt=e(3618),ut=e(5630),mt=e(9386);let ft=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[s.ez,dt,g.KJ,et.zf,_.PV,gt.ZJ,et.zf,ut.D,mt.a,G.WG,h.Jb]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/6104.8b0d7d3bb56d76af.js b/server/public/6104.8b0d7d3bb56d76af.js new file mode 100644 index 000000000..87bd25b44 --- /dev/null +++ b/server/public/6104.8b0d7d3bb56d76af.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6104],{3580:(S,y,e)=>{e.d(y,{Q:()=>_});var l=e(9808),t=e(325),m=e(8481),d=e(3610),v=e(647),u=e(7484),f=e(3098),n=e(3630),O=e(6949),z=e(3618),T=e(9444),x=e(5e3);let M=(()=>{class g{}return g.\u0275fac=function(C){return new(C||g)},g.\u0275mod=x.oAB({type:g}),g.\u0275inj=x.cJS({imports:[[l.ez,O.WG,u.vh,f.q6,v.PV,z.ZJ,T.s,n.X]]}),g})(),_=(()=>{class g{}return g.\u0275fac=function(C){return new(C||g)},g.\u0275mod=x.oAB({type:g}),g.\u0275inj=x.cJS({imports:[[l.ez,t.Bz,m.X,d.$6,v.PV,T.s,M]]}),g})()},8018:(S,y,e)=>{e.d(y,{e:()=>g});var l=e(9808),t=e(325),m=e(8481),d=e(3610),v=e(647),u=e(7484),f=e(3098),n=e(6949),O=e(3630),z=e(3618),T=e(9444),x=e(404),M=e(5e3);let _=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=M.oAB({type:c}),c.\u0275inj=M.cJS({imports:[[l.ez,t.Bz,n.WG,u.vh,f.q6,v.PV,z.ZJ,m.X,x.cg,O.X,T.s]]}),c})(),g=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=M.oAB({type:c}),c.\u0275inj=M.cJS({imports:[[l.ez,t.Bz,m.X,d.$6,v.PV,T.s,_]]}),c})()},9476:(S,y,e)=>{e.d(y,{L:()=>_});var l=e(9808),t=e(325),m=e(8481),d=e(647),v=e(1894),u=e(3630),f=e(3098),n=e(7484),O=e(6949),z=e(5473),T=e(5e3);let x=(()=>{class g{}return g.\u0275fac=function(C){return new(C||g)},g.\u0275mod=T.oAB({type:g}),g.\u0275inj=T.cJS({imports:[[l.ez,O.WG,n.vh,v.Jb,f.q6,u.X,z.H]]}),g})();var M=e(3610);let _=(()=>{class g{}return g.\u0275fac=function(C){return new(C||g)},g.\u0275mod=T.oAB({type:g}),g.\u0275inj=T.cJS({imports:[[l.ez,t.Bz,m.X,d.PV,M.$6,x]]}),g})()},6715:(S,y,e)=>{e.d(y,{$:()=>m});var l=e(5e3);const t=["*"];let m=(()=>{class d{constructor(){}ngOnInit(){}}return d.\u0275fac=function(u){return new(u||d)},d.\u0275cmp=l.Xpm({type:d,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(u,f){2&u&&l.ekj("xs","xs"===f.size||!f.size)("sm","sm"===f.size)},inputs:{size:"size"},ngContentSelectors:t,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(u,f){1&u&&(l.F$t(),l.TgZ(0,"div",0),l.Hsn(1),l.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),d})()},897:(S,y,e)=>{e.d(y,{$:()=>m});var l=e(9808),t=e(5e3);let m=(()=>{class d{}return d.\u0275fac=function(u){return new(u||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({imports:[[l.ez]]}),d})()},7946:(S,y,e)=>{e.d(y,{x:()=>O});var l=e(9808),t=e(897),m=e(8481),d=e(3610),v=e(8018),u=e(3580),f=e(9476),n=e(5e3);let O=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=n.oAB({type:z}),z.\u0275inj=n.cJS({imports:[[l.ez,m.X,d.$6,t.$,v.e,u.Q,f.L]]}),z})()},8664:(S,y,e)=>{e.d(y,{I:()=>q});var l=e(6654),t=e(5e3),m=e(9808),d=e(325),v=e(8481),u=e(3610),f=e(4850),n=e(712),O=e(7484),z=e(647),T=e(3193),x=e(3098),M=e(6550),_=e(1894),g=e(8144),c=e(6949);function C(i,h){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const r=t.oxw().ngIf;t.xp6(1),t.hij(" ",r.name," ")}}function Z(i,h){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const r=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",r.gene)}}function E(i,h){if(1&i&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&i){const r=h.$implicit;t.xp6(1),t.Oqu(r)}}function Q(i,h){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,E,2,1,"nz-tag",16),t.qZA()),2&i){const r=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",r.variantAliases)}}function L(i,h){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 r=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",r.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",r.alleleRegistryId," ")}}function D(i,h){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/flags"),t.xp6(3),t.hij(" Flags (",r.flags.totalCount,") ")}}function Y(i,h){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",r.revisions.totalCount,") ")}}function J(i,h){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/comments"),t.xp6(3),t.hij(" Comments (",r.comments.totalCount,") ")}}function N(i,h){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,C,2,1,"ng-template",null,3,t.W1O),t.YNc(4,Z,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,Q,2,1,"nz-descriptions-item",6),t.YNc(8,L,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,Y,4,2,"a",12),t.YNc(16,J,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const r=h.ngIf,P=t.MAs(3),A=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",P)("nzExtra",A),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",r.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",r.alleleRegistryId),t.xp6(2),t.hij(" ",r.evidenceItems.totalCount," ")}}let U=(()=>{class i{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,f.U)(({data:r})=>r.variant))}}return i.\u0275fac=function(r){return new(r||i)(t.Y36(n.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(r,P){1&r&&(t.TgZ(0,"div",0),t.YNc(1,N,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,P.variant$)))},directives:[m.O5,O.bd,z.Ls,T.H,x.R7,x.uj,m.sg,v.j,M.l,_.SK,_.t3,g.NU,g.$1,d.yS],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}"]}),i})();function B(i,h){}function V(i,h){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,B,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const r=t.oxw(),P=t.MAs(2);t.xp6(1),t.Q6J("routerLink",r.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",P)}}function j(i,h){}function R(i,h){if(1&i){const r=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(A){return t.CHM(r),t.oxw(2).itemClosed(A)}),t.YNc(1,j,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const r=t.MAs(2),P=t.oxw(),A=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",P.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",P.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",A)}}function F(i,h){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const r=t.oxw(3);t.Q6J("variantId",r.variant.id)}}function W(i,h){if(1&i&&t.YNc(0,F,1,1,"cvc-variant-popover",10),2&i){const r=t.oxw(2);t.Q6J("ngIf",r.enablePopover)}}function $(i,h){if(1&i&&(t.YNc(0,R,2,4,"nz-tag",7),t.YNc(1,W,1,1,"ng-template",null,8,t.W1O)),2&i){const r=t.oxw(),P=t.MAs(4);t.Q6J("ngIf",r.enablePopover)("ngIfElse",P)}}function H(i,h){}function K(i,h){if(1&i){const r=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(A){return t.CHM(r),t.oxw().itemClosed(A)}),t.YNc(1,H,0,0,"ng-template",6),t.qZA()}if(2&i){const r=t.oxw(),P=t.MAs(8);t.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",P)}}function X(i,h){}function G(i,h){if(1&i&&t.YNc(0,X,0,0,"ng-template",6),2&i){t.oxw();const r=t.MAs(2);t.Q6J("ngTemplateOutlet",r)}}function w(i,h){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const r=t.oxw();t.xp6(1),t.hij(" ",r.variant.name,"\n")}}let q=(()=>{class i extends l.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(r){return new(r||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(r,P){if(1&r&&(t.YNc(0,V,3,2,"ng-container",0),t.YNc(1,$,3,2,"ng-template",null,1,t.W1O),t.YNc(3,K,2,2,"ng-template",null,2,t.W1O),t.YNc(5,G,1,1,"ng-template",null,3,t.W1O),t.YNc(7,w,2,1,"ng-template",null,4,t.W1O)),2&r){const A=t.MAs(6);t.Q6J("ngIf",P.linked)("ngIfElse",A)}},directives:[m.O5,d.yS,m.tP,v.j,u.lU,U,z.Ls],styles:[""]}),i})()},4867:(S,y,e)=>{e.d(y,{Q:()=>g});var l=e(9808),t=e(325),m=e(8481),d=e(647),v=e(3610),u=e(6949),f=e(7484),n=e(1894),O=e(3098),z=e(8144),T=e(3309),x=e(3630),M=e(5e3);let _=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=M.oAB({type:c}),c.\u0275inj=M.cJS({imports:[[l.ez,t.Bz,u.WG,f.vh,n.Jb,O.q6,m.X,d.PV,z.zf,T.U,x.X]]}),c})(),g=(()=>{class c{}return c.\u0275fac=function(Z){return new(Z||c)},c.\u0275mod=M.oAB({type:c}),c.\u0275inj=M.cJS({imports:[[l.ez,t.Bz,m.X,v.$6,d.PV,_]]}),c})()},3154:(S,y,e)=>{e.d(y,{_:()=>t});var l=e(712);function t(m){var d;switch(m.value){case"ascend":d=l.SrV.Asc;break;case"descend":d=l.SrV.Desc;break;default:return}return{column:m.key,direction:d}}},1076:(S,y,e)=>{e.r(y),e.d(y,{PhenotypesModule:()=>yn});var l=e(9808),t=e(325),m=e(3630),d=e(5630),v=e(6949),u=e(647),f=e(1945),n=e(5e3);let O=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[l.ez,t.Bz,v.WG,f.KJ,u.PV,m.X,d.D]]}),o})();var z=e(8144),T=e(767),x=e(9441);let M=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[l.ez,z.zf,T.Q,x.s]]}),o})();var _=e(1132),g=e(4125),c=e(6286),C=e(6042),Z=e(3618),E=e(7484),Q=e(404);let L=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[l.ez,v.WG,_.HQ,C.sL,u.PV,Z.ZJ,E.vh,Q.cg,g.k,c.y,m.X]]}),o})();var D=e(1894);let Y=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[l.ez,f.KJ,u.PV,D.Jb,C.sL,z.zf,Z.ZJ,d.D,L]]}),o})();var J=e(373),N=e(1059),U=e(712),B=e(8992),V=e(6550);function j(o,p){if(1&o&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2),n.TgZ(3,"nz-page-header-title"),n._UZ(4,"i",3),n._uU(5),n.qZA(),n.TgZ(6,"nz-page-header-extra"),n.TgZ(7,"cvc-link-tag",4),n._uU(8),n.qZA(),n.qZA(),n.TgZ(9,"nz-page-header-content"),n.TgZ(10,"div",5),n._UZ(11,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&o){const a=p.ngIf;n.xp6(1),n.Q6J("displayName",a.name),n.xp6(4),n.hij(" ",a.name," "),n.xp6(2),n.Q6J("href",a.url),n.xp6(1),n.hij(" ",a.hpoId," ")}}let R=(()=>{class o{constructor(a,s){this.route=a,this.gql=s,this.routeSub=this.route.params.subscribe(b=>{this.phenotypeId=+b.phenotypeId,this.queryRef=this.gql.watch({phenotypeId:this.phenotypeId});let I=this.queryRef.valueChanges;this.loading$=I.pipe((0,J.j)("loading"),(0,N.O)(!0)),this.phenotype$=I.pipe((0,J.j)("data","phenotype"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(t.gz),n.Y36(U.WGV))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-phenotypes-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","civic:phenotype"],["tooltip","View in the HPO",3,"href"],[1,"content"]],template:function(a,s){1&a&&(n.YNc(0,j,12,4,"ng-container",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,s.phenotype$))},directives:[l.O5,B.I,f.$O,f.u9,u.Ls,f.Jp,V.l,f.u5,t.lC],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}"]}),o})();var F=e(2683),W=e(3154),$=e(8929),H=e(4850),K=e(2986),X=e(13),G=e(2166),w=e(7956),q=e(2643);function i(o,p){if(1&o&&(n.TgZ(0,"cvc-link-tag",17),n._uU(1),n.qZA()),2&o){const a=n.oxw().$implicit;n.Q6J("href",a.url),n.xp6(1),n.hij(" ",a.hpoId," ")}}function h(o,p){1&o&&n._uU(0,"--")}function r(o,p){if(1&o&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-phenotype-tag",14),n.qZA(),n.TgZ(3,"td"),n.YNc(4,i,2,2,"cvc-link-tag",15),n.YNc(5,h,1,0,"ng-template",null,16,n.W1O),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.qZA()),2&o){const a=p.$implicit,s=n.MAs(6);n.xp6(2),n.Q6J("phenotype",a),n.xp6(2),n.Q6J("ngIf",a.hpoId)("ngIfElse",s),n.xp6(4),n.hij(" ",a.evidenceCount," "),n.xp6(2),n.hij(" ",a.assertionCount," ")}}function P(o,p){if(1&o){const a=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(a);const b=n.oxw(2).ngrxLet;return n.oxw().loadMore(b.endCursor)}),n._uU(1),n.qZA()}if(2&o){const a=n.oxw(3);n.xp6(1),n.hij("Load ",a.initialPageSize," More")}}function A(o,p){if(1&o&&(n.TgZ(0,"tr"),n.TgZ(1,"td",19),n.YNc(2,P,2,1,"button",20),n.qZA(),n.qZA()),2&o){const a=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",a.hasNextPage)}}function k(o,p){if(1&o&&(n.ynx(0),n.YNc(1,A,3,1,"tr",18),n.BQk()),2&o){const a=p.ngrxLet;n.xp6(1),n.Q6J("ngIf",a.hasNextPage)}}function tn(o,p){}function en(o,p){if(1&o&&(n.ynx(0),n.YNc(1,tn,0,0,"ng-template",25),n.BQk()),2&o){const a=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function on(o,p){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const a=n.oxw(2);n.xp6(1),n.hij(" ",a.cvcTitle," ")}}function an(o,p){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const a=n.oxw().ngIf;n.xp6(1),n.hij(" of ",a," filtered")}}function rn(o,p){if(1&o&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,an,2,1,"span",18),n._uU(3,") "),n.qZA()),2&o){const a=p.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&a{class o{constructor(a){this.gql=a,this.initialPageSize=25,this.debouncedQuery=new $.xQ,this.sortColumns=U.lYz,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize});let a=this.queryRef.valueChanges;this.phenotypes$=a.pipe((0,J.j)("data","phenotypes","edges"),(0,H.U)(s=>s.map(b=>b.node))),this.isLoading$=a.pipe((0,J.j)("loading"),(0,N.O)(!0)),this.filteredCount$=a.pipe((0,J.j)("data","phenotypes","filteredCount")),this.filteredCount$.pipe((0,K.q)(1)).subscribe(s=>this.totalCount=s),this.filteredCount$.subscribe(s=>{ss&&(this.visibleCount=s))}),this.pageInfo$=a.pipe((0,J.j)("data","phenotypes","pageInfo")),this.debouncedQuery.pipe((0,X.b)(500)).subscribe(s=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}onModelChanged(){this.debouncedQuery.next()}onSortChanged(a){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,W._)(a)})}refresh(){var a;this.loadedPages=1,null===(a=this.queryRef)||void 0===a||a.refetch({name:this.hpoNameFilter,hpoId:this.hpoIdFilter})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(a){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{after:a}}),this.loadedPages+=1}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(U.B97))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-phenotypes-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:27,vars:27,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["phenotypesTable",""],[3,"nzSortOrderChange"],["nzWidth","40%",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:assertion"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search HPO ID",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"phenotype"],["tooltip","View in the HPO",3,"href",4,"ngIf","ngIfElse"],["noHpo",""],["tooltip","View in the HPO",3,"href"],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:phenotype"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(a,s){if(1&a&&(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 s.onSortChanged(I)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",4),n._uU(10," HPO ID "),n.qZA(),n.TgZ(11,"th",5),n._UZ(12,"i",6),n.qZA(),n.TgZ(13,"th",7),n._UZ(14,"i",8),n.qZA(),n.qZA(),n.TgZ(15,"tr"),n.TgZ(16,"th"),n.TgZ(17,"cvc-clearable-input-filter",9),n.NdJ("inputModelChange",function(I){return s.hpoNameFilter=I}),n.qZA(),n.qZA(),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",10),n.NdJ("inputModelChange",function(I){return s.hpoIdFilter=I}),n.qZA(),n.qZA(),n._UZ(20,"th"),n._UZ(21,"th"),n.qZA(),n.qZA(),n.TgZ(22,"tbody"),n.YNc(23,r,11,5,"tr",11),n.YNc(24,k,2,1,"ng-container",12),n.qZA(),n.qZA(),n.qZA(),n.YNc(25,pn,7,6,"ng-template",null,13,n.W1O)),2&a){const b=n.MAs(2),I=n.MAs(26);n.Q6J("nzTitle",I),n.xp6(1),n.Q6J("nzData",n.lcZ(3,21,s.phenotypes$))("nzLoading",n.lcZ(4,23,s.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.HpoId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(25,nn)),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",n.DdM(26,nn)),n.xp6(4),n.Q6J("inputModel",s.hpoNameFilter)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.hpoIdFilter)("onInputChanged",s.textInputCallback),n.xp6(4),n.Q6J("ngForOf",b.data),n.xp6(1),n.Q6J("ngrxLet",s.pageInfo$)}},directives:[E.bd,_.N8,_.Om,_.$Z,_.Uo,_._C,_.qD,_.qn,Q.SY,F.w,u.Ls,G.p,_.p0,l.sg,w.i,l.O5,V.l,v.eJ,C.ix,q.dQ,l.tP,Z.ZU],pipes:[v.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),o})();function ln(o,p){1&o&&(n.TgZ(0,"a",14),n._UZ(1,"i",15),n._uU(2," View Associated Phenotype Docs "),n.qZA())}function gn(o,p){1&o&&(n.TgZ(0,"a",16),n._UZ(1,"i",15),n._uU(2," View Phenotype Curation Docs "),n.qZA())}let dn=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["phenotypes-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:phenotype"],["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/associated_phenotype.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html#curating-associated-phenotypes","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Associated Phenotypes"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/associated_phenotype.html#curating-associated-phenotypes","target","_blank","nzSize","small","nzBlock",""]],template:function(a,s){1&a&&(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,"Associated Phenotypes"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"Phenotypes are symptoms or abnormalities that are encountered in human disease, optionally associated with Evidence Items and known to the Human Phenotype Ontology database."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,ln,3,0,"a",8),n.YNc(14,gn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n.TgZ(17,"div",12),n._UZ(18,"cvc-phenotypes-table",13),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&a&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[B.I,f.$O,f.u5,D.SK,D.t3,u.Ls,F.w,Z.ZU,z.NU,z.$1,C.ix,cn],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var hn=e(3756),mn=e(8965);function vn(o,p){if(1&o&&n._UZ(0,"cvc-assertions-table",4),2&o){const a=n.oxw(2);n.Q6J("phenotypeId",a.phenotypeId)}}function un(o,p){if(1&o&&n._UZ(0,"cvc-evidence-table",5),2&o){const a=n.oxw(2);n.Q6J("phenotypeId",a.phenotypeId)}}function fn(o,p){1&o&&(n.TgZ(0,"nz-space",1),n.YNc(1,vn,1,1,"cvc-assertions-table",2),n.YNc(2,un,1,1,"cvc-evidence-table",3),n.qZA())}const zn=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-phenotypes"]],decls:1,vars:0,template:function(a,s){1&a&&n._UZ(0,"router-outlet")},directives:[t.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})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:dn,data:{breadcrumb:"Home"}},{path:":phenotypeId",component:R,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class o{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(s=>{this.phenotypeId=+s.phenotypeId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(t.gz))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-phenotypes-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Phenotype Assertions",3,"phenotypeId",4,"nzSpaceItem"],["cvcTitle","Phenotype Evidence",3,"phenotypeId",4,"nzSpaceItem"],["cvcTitle","Phenotype Assertions",3,"phenotypeId"],["cvcTitle","Phenotype Evidence",3,"phenotypeId"]],template:function(a,s){1&a&&n.YNc(0,fn,3,0,"nz-space",0),2&a&&n.Q6J("ngIf",s.phenotypeId)},directives:[l.O5,z.NU,z.$1,hn.x,mn.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})(),data:{breadcrumb:"Summary"}}]}]}];let Cn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[t.Bz.forChild(zn)],t.Bz]}),o})(),yn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[l.ez,t.Bz,Cn,Y,O,M]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/6315.856b0cbb6373b47c.js b/server/public/6315.856b0cbb6373b47c.js new file mode 100644 index 000000000..bd8392e0b --- /dev/null +++ b/server/public/6315.856b0cbb6373b47c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6315],{8369:(V,I,n)=>{n.d(I,{W:()=>z});var o=n(9808),e=n(325),t=n(8481),u=n(3610),v=n(647),x=n(7484),C=n(3098),S=n(3309),A=n(4867),P=n(6286),O=n(8018),U=n(6949),T=n(9444),y=n(1894),h=n(8144),m=n(3580),D=n(8625),L=n(7026),Y=n(592),Q=n(404),W=n(5e3);let Z=(()=>{class d{}return d.\u0275fac=function(w){return new(w||d)},d.\u0275mod=W.oAB({type:d}),d.\u0275inj=W.cJS({imports:[[o.ez,e.Bz,U.WG,x.vh,C.q6,v.PV,y.Jb,h.zf,t.X,Q.cg,S.U,m.Q,A.Q,P.y,O.e,T.s,Y.x,D.$L.forChild({formatter:{useClass:L.x,provide:D.KP}})]]}),d})(),z=(()=>{class d{}return d.\u0275fac=function(w){return new(w||d)},d.\u0275mod=W.oAB({type:d}),d.\u0275inj=W.cJS({imports:[[o.ez,e.Bz,t.X,u.$6,v.PV,Z,T.s]]}),d})()},3580:(V,I,n)=>{n.d(I,{Q:()=>y});var o=n(9808),e=n(325),t=n(8481),u=n(3610),v=n(647),x=n(7484),C=n(3098),S=n(3630),A=n(6949),P=n(3618),O=n(9444),U=n(5e3);let T=(()=>{class h{}return h.\u0275fac=function(D){return new(D||h)},h.\u0275mod=U.oAB({type:h}),h.\u0275inj=U.cJS({imports:[[o.ez,A.WG,x.vh,C.q6,v.PV,P.ZJ,O.s,S.X]]}),h})(),y=(()=>{class h{}return h.\u0275fac=function(D){return new(D||h)},h.\u0275mod=U.oAB({type:h}),h.\u0275inj=U.cJS({imports:[[o.ez,e.Bz,t.X,u.$6,v.PV,O.s,T]]}),h})()},8018:(V,I,n)=>{n.d(I,{e:()=>h});var o=n(9808),e=n(325),t=n(8481),u=n(3610),v=n(647),x=n(7484),C=n(3098),S=n(6949),A=n(3630),P=n(3618),O=n(9444),U=n(404),T=n(5e3);let y=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=T.oAB({type:m}),m.\u0275inj=T.cJS({imports:[[o.ez,e.Bz,S.WG,x.vh,C.q6,v.PV,P.ZJ,t.X,U.cg,A.X,O.s]]}),m})(),h=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=T.oAB({type:m}),m.\u0275inj=T.cJS({imports:[[o.ez,e.Bz,t.X,u.$6,v.PV,O.s,y]]}),m})()},209:(V,I,n)=>{n.d(I,{i:()=>Z});var o=n(9808),e=n(325),t=n(8481),u=n(3610),v=n(647),x=n(7484),C=n(3309),S=n(4867),A=n(1894),P=n(3098),O=n(8018),U=n(3580),T=n(6286),y=n(6949),h=n(8144),m=n(9444),D=n(9779),L=n(592),Y=n(3618),Q=n(5e3);let W=(()=>{class z{}return z.\u0275fac=function(k){return new(k||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[o.ez,e.Bz,y.WG,v.PV,x.vh,A.Jb,P.q6,t.X,h.zf,Y.ZJ,m.s,O.e,U.Q,C.U,S.Q,T.y,D.s,L.x]]}),z})(),Z=(()=>{class z{}return z.\u0275fac=function(k){return new(k||z)},z.\u0275mod=Q.oAB({type:z}),z.\u0275inj=Q.cJS({imports:[[o.ez,e.Bz,t.X,u.$6,v.PV,W,m.s]]}),z})()},5749:(V,I,n)=>{n.d(I,{m:()=>it});var o=n(5e3),e=n(9808),t=n(325),u=n(8481),v=n(3610),x=n(4850),C=n(712),S=n(7484),A=n(7881),P=n(1894),O=n(3098),U=n(6550),T=n(6949);const y=function(p,M){return{displayName:p,profileImagePath:M}};function h(p,M){if(1&p&&(o._UZ(0,"cvc-user-avatar",12),o.TgZ(1,"span",13),o._uU(2),o.qZA()),2&p){const f=o.oxw().ngIf;o.Q6J("user",o.WLB(2,y,f.name,f.profileImagePath)),o.xp6(2),o.Oqu(f.name)}}function m(p,M){if(1&p&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&p){const f=M.ngIf;o.xp6(1),o.Oqu(f)}}function D(p,M){if(1&p&&(o.ynx(0),o.TgZ(1,"cvc-link-tag",14),o._uU(2),o.qZA(),o.BQk()),2&p){const f=o.oxw().ngIf;o.xp6(1),o.Q6J("href",f.url),o.xp6(1),o.hij(" ",f.name," ")}}function L(p,M){if(1&p&&(o.ynx(0),o.TgZ(1,"nz-card",4),o.YNc(2,h,3,5,"ng-template",null,5,o.W1O),o.TgZ(4,"nz-row"),o.TgZ(5,"nz-col",6),o.TgZ(6,"div",7),o.TgZ(7,"p",8),o.YNc(8,m,2,1,"span",9),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(9,"nz-descriptions",10),o.TgZ(10,"nz-descriptions-item",11),o.YNc(11,D,3,2,"ng-container",9),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&p){const f=M.ngIf,B=o.MAs(3);o.oxw();const $=o.MAs(4),l=o.MAs(6);o.xp6(1),o.Q6J("nzTitle",B),o.xp6(7),o.Q6J("ngIf",f.description)("ngIfElse",$),o.xp6(1),o.Q6J("nzColumn",2),o.xp6(2),o.Q6J("ngIf",f.url)("ngIfElse",l)}}function Y(p,M){1&p&&o._uU(0," Organization has not provided a description.\n")}function Q(p,M){1&p&&o._uU(0," --\n")}let W=(()=>{class p{constructor(f){this.gql=f}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,x.U)(({data:f})=>f.organization))}}return p.\u0275fac=function(f){return new(f||p)(o.Y36(C.X5f))},p.\u0275cmp=o.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(f,B){1&f&&(o.TgZ(0,"div",0),o.YNc(1,L,12,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA(),o.YNc(3,Y,1,0,"ng-template",null,2,o.W1O),o.YNc(5,Q,1,0,"ng-template",null,3,o.W1O)),2&f&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,B.org$)))},directives:[e.O5,S.bd,A.L,P.SK,P.t3,O.R7,O.uj,U.l],pipes:[T.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 Z=n(647);function z(p,M){}function d(p,M){if(1&p&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,z,0,0,"ng-template",6),o.qZA(),o.BQk()),2&p){const f=o.oxw(),B=o.MAs(2);o.xp6(1),o.MGl("routerLink","/organizations/",f.org.id,""),o.xp6(1),o.Q6J("ngTemplateOutlet",B)}}function k(p,M){}function w(p,M){if(1&p&&o._UZ(0,"cvc-organization-popover",10),2&p){const f=o.oxw(3);o.Q6J("orgId",f.org.id)}}function K(p,M){if(1&p&&o.YNc(0,w,1,1,"cvc-organization-popover",9),2&p){const f=o.oxw(2);o.Q6J("ngIf",f.enablePopover)}}function b(p,M){if(1&p&&(o.TgZ(0,"nz-tag",7),o.YNc(1,k,0,0,"ng-template",6),o.qZA(),o.YNc(2,K,1,1,"ng-template",null,8,o.W1O)),2&p){const f=o.MAs(3);o.oxw();const B=o.MAs(8);o.Q6J("nzPopoverContent",f),o.xp6(1),o.Q6J("ngTemplateOutlet",B)}}function q(p,M){}function tt(p,M){if(1&p&&(o.TgZ(0,"nz-tag"),o.YNc(1,q,0,0,"ng-template",6),o.qZA()),2&p){o.oxw();const f=o.MAs(8);o.xp6(1),o.Q6J("ngTemplateOutlet",f)}}function nt(p,M){}function et(p,M){if(1&p&&o.YNc(0,nt,0,0,"ng-template",6),2&p){o.oxw();const f=o.MAs(2);o.Q6J("ngTemplateOutlet",f)}}function ot(p,M){if(1&p&&(o._UZ(0,"i",11),o._uU(1)),2&p){const f=o.oxw();o.xp6(1),o.hij(" ",f.org.name,"\n")}}let it=(()=>{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(f){return new(f||p)},p.\u0275cmp=o.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(f,B){if(1&f&&(o.YNc(0,d,3,2,"ng-container",0),o.YNc(1,b,4,2,"ng-template",null,1,o.W1O),o.YNc(3,tt,2,1,"ng-template",null,2,o.W1O),o.YNc(5,et,1,1,"ng-template",null,3,o.W1O),o.YNc(7,ot,2,1,"ng-template",null,4,o.W1O)),2&f){const $=o.MAs(6);o.Q6J("ngIf",B.linked)("ngIfElse",$)}},directives:[e.O5,t.yS,e.tP,u.j,v.lU,W,Z.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),p})()},9476:(V,I,n)=>{n.d(I,{L:()=>y});var o=n(9808),e=n(325),t=n(8481),u=n(647),v=n(1894),x=n(3630),C=n(3098),S=n(7484),A=n(6949),P=n(5473),O=n(5e3);let U=(()=>{class h{}return h.\u0275fac=function(D){return new(D||h)},h.\u0275mod=O.oAB({type:h}),h.\u0275inj=O.cJS({imports:[[o.ez,A.WG,S.vh,v.Jb,C.q6,x.X,P.H]]}),h})();var T=n(3610);let y=(()=>{class h{}return h.\u0275fac=function(D){return new(D||h)},h.\u0275mod=O.oAB({type:h}),h.\u0275inj=O.cJS({imports:[[o.ez,e.Bz,t.X,u.PV,T.$6,U]]}),h})()},6286:(V,I,n)=>{n.d(I,{y:()=>U});var o=n(9808),e=n(325),t=n(8481),u=n(3610),v=n(647),x=n(6949),C=n(7484),S=n(3630),A=n(3098),P=n(5e3);let O=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=P.oAB({type:T}),T.\u0275inj=P.cJS({imports:[[o.ez,x.WG,v.PV,C.vh,S.X,A.q6]]}),T})(),U=(()=>{class T{}return T.\u0275fac=function(h){return new(h||T)},T.\u0275mod=P.oAB({type:T}),T.\u0275inj=P.cJS({imports:[[o.ez,e.Bz,t.X,u.$6,v.PV,O]]}),T})()},6550:(V,I,n)=>{n.d(I,{l:()=>x});var o=n(5e3),e=n(8481),t=n(404),u=n(647);const v=["*"];let x=(()=>{class C{constructor(){}ngOnInit(){if(void 0===this.href)throw new Error("cvc-link-tag requires href string input, none supplied.")}}return C.\u0275fac=function(A){return new(A||C)},C.\u0275cmp=o.Xpm({type:C,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:v,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(A,P){1&A&&(o.F$t(),o.TgZ(0,"a",0),o.TgZ(1,"nz-tag",1),o._UZ(2,"i",2),o.Hsn(3),o.qZA(),o.qZA()),2&A&&(o.Q6J("href",P.href,o.LSH),o.xp6(1),o.Q6J("nzTooltipTitle",P.tooltip)("nzTooltipTrigger",P.tooltip?"hover":null),o.xp6(1),o.Q6J("nzType",P.iconName?P.iconName:"link"))},directives:[e.j,t.SY,u.Ls],styles:[""]}),C})()},3630:(V,I,n)=>{n.d(I,{X:()=>x});var o=n(9808),e=n(404),t=n(8481),u=n(647),v=n(5e3);let x=(()=>{class C{}return C.\u0275fac=function(A){return new(A||C)},C.\u0275mod=v.oAB({type:C}),C.\u0275inj=v.cJS({imports:[[o.ez,e.cg,t.X,u.PV]]}),C})()},592:(V,I,n)=>{n.d(I,{x:()=>v});var o=n(9808),e=n(8481),t=n(647),u=n(5e3);let v=(()=>{class x{}return x.\u0275fac=function(S){return new(S||x)},x.\u0275mod=u.oAB({type:x}),x.\u0275inj=u.cJS({imports:[[o.ez,e.X,t.PV]]}),x})()},6715:(V,I,n)=>{n.d(I,{$:()=>t});var o=n(5e3);const e=["*"];let t=(()=>{class u{constructor(){}ngOnInit(){}}return u.\u0275fac=function(x){return new(x||u)},u.\u0275cmp=o.Xpm({type:u,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(x,C){2&x&&o.ekj("xs","xs"===C.size||!C.size)("sm","sm"===C.size)},inputs:{size:"size"},ngContentSelectors:e,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(x,C){1&x&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),u})()},897:(V,I,n)=>{n.d(I,{$:()=>t});var o=n(9808),e=n(5e3);let t=(()=>{class u{}return u.\u0275fac=function(x){return new(x||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[[o.ez]]}),u})()},7677:(V,I,n)=>{n.d(I,{G:()=>T});var o=n(9808),e=n(325),t=n(3610),u=n(8481),v=n(647),x=n(9779),C=n(4867),S=n(7484),A=n(3098),P=n(6949),O=n(5e3);let U=(()=>{class y{}return y.\u0275fac=function(m){return new(m||y)},y.\u0275mod=O.oAB({type:y}),y.\u0275inj=O.cJS({imports:[[o.ez,P.WG,S.vh,A.q6,x.s,C.Q]]}),y})(),T=(()=>{class y{}return y.\u0275fac=function(m){return new(m||y)},y.\u0275mod=O.oAB({type:y}),y.\u0275inj=O.cJS({imports:[[o.ez,e.Bz,t.$6,u.X,v.PV,U]]}),y})()},8664:(V,I,n)=>{n.d(I,{I:()=>$});var o=n(6654),e=n(5e3),t=n(9808),u=n(325),v=n(8481),x=n(3610),C=n(4850),S=n(712),A=n(7484),P=n(647),O=n(3193),U=n(3098),T=n(6550),y=n(1894),h=n(8144),m=n(6949);function D(l,N){if(1&l&&(e._UZ(0,"i",13),e._uU(1)),2&l){const g=e.oxw().ngIf;e.xp6(1),e.hij(" ",g.name," ")}}function L(l,N){if(1&l&&e._UZ(0,"cvc-gene-tag",14),2&l){const g=e.oxw().ngIf;e.Q6J("enablePopover",!1)("gene",g.gene)}}function Y(l,N){if(1&l&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&l){const g=N.$implicit;e.xp6(1),e.Oqu(g)}}function Q(l,N){if(1&l&&(e.TgZ(0,"nz-descriptions-item",15),e.YNc(1,Y,2,1,"nz-tag",16),e.qZA()),2&l){const g=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",g.variantAliases)}}function W(l,N){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 g=e.oxw().ngIf;e.xp6(1),e.MGl("href","https://reg.genome.network/allele/",g.alleleRegistryId,".html"),e.xp6(1),e.hij(" ",g.alleleRegistryId," ")}}function Z(l,N){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 g=e.oxw().ngIf;e.MGl("routerLink","/variants/",g.id,"/flags"),e.xp6(3),e.hij(" Flags (",g.flags.totalCount,") ")}}function z(l,N){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 g=e.oxw().ngIf;e.MGl("routerLink","/variants/",g.id,"/revisions"),e.xp6(3),e.hij(" Revisions (",g.revisions.totalCount,") ")}}function d(l,N){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 g=e.oxw().ngIf;e.MGl("routerLink","/variants/",g.id,"/comments"),e.xp6(3),e.hij(" Comments (",g.comments.totalCount,") ")}}function k(l,N){if(1&l&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,D,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,Q,2,1,"nz-descriptions-item",6),e.YNc(8,W,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,Z,4,2,"a",12),e.YNc(15,z,4,2,"a",12),e.YNc(16,d,4,2,"a",12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&l){const g=N.ngIf,J=e.MAs(3),F=e.MAs(5);e.xp6(1),e.Q6J("nzTitle",J)("nzExtra",F),e.xp6(5),e.Q6J("nzColumn",2),e.xp6(1),e.Q6J("ngIf",g.variantAliases.length>0),e.xp6(1),e.Q6J("ngIf",g.alleleRegistryId),e.xp6(2),e.hij(" ",g.evidenceItems.totalCount," ")}}let w=(()=>{class l{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,C.U)(({data:g})=>g.variant))}}return l.\u0275fac=function(g){return new(g||l)(e.Y36(S.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(g,J){1&g&&(e.TgZ(0,"div",0),e.YNc(1,k,17,6,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&g&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,J.variant$)))},directives:[t.O5,A.bd,P.Ls,O.H,U.R7,U.uj,t.sg,v.j,T.l,y.SK,y.t3,h.NU,h.$1,u.yS],pipes:[m.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,N){}function b(l,N){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 g=e.oxw(),J=e.MAs(2);e.xp6(1),e.Q6J("routerLink",g.variant.link),e.xp6(1),e.Q6J("ngTemplateOutlet",J)}}function q(l,N){}function tt(l,N){if(1&l){const g=e.EpF();e.TgZ(0,"nz-tag",9),e.NdJ("nzOnClose",function(F){return e.CHM(g),e.oxw(2).itemClosed(F)}),e.YNc(1,q,0,0,"ng-template",6),e.qZA()}if(2&l){e.oxw();const g=e.MAs(2),J=e.oxw(),F=e.MAs(8);e.Q6J("nzPopoverMouseEnterDelay",J.onCloseClicked?0:.5)("nzPopoverContent",g)("nzMode",J.onCloseClicked?"closeable":"default"),e.xp6(1),e.Q6J("ngTemplateOutlet",F)}}function nt(l,N){if(1&l&&e._UZ(0,"cvc-variant-popover",11),2&l){const g=e.oxw(3);e.Q6J("variantId",g.variant.id)}}function et(l,N){if(1&l&&e.YNc(0,nt,1,1,"cvc-variant-popover",10),2&l){const g=e.oxw(2);e.Q6J("ngIf",g.enablePopover)}}function ot(l,N){if(1&l&&(e.YNc(0,tt,2,4,"nz-tag",7),e.YNc(1,et,1,1,"ng-template",null,8,e.W1O)),2&l){const g=e.oxw(),J=e.MAs(4);e.Q6J("ngIf",g.enablePopover)("ngIfElse",J)}}function it(l,N){}function p(l,N){if(1&l){const g=e.EpF();e.TgZ(0,"nz-tag",12),e.NdJ("nzOnClose",function(F){return e.CHM(g),e.oxw().itemClosed(F)}),e.YNc(1,it,0,0,"ng-template",6),e.qZA()}if(2&l){const g=e.oxw(),J=e.MAs(8);e.Q6J("nzMode",g.onCloseClicked?"closeable":"default"),e.xp6(1),e.Q6J("ngTemplateOutlet",J)}}function M(l,N){}function f(l,N){if(1&l&&e.YNc(0,M,0,0,"ng-template",6),2&l){e.oxw();const g=e.MAs(2);e.Q6J("ngTemplateOutlet",g)}}function B(l,N){if(1&l&&(e._UZ(0,"i",13),e._uU(1)),2&l){const g=e.oxw();e.xp6(1),e.hij(" ",g.variant.name,"\n")}}let $=(()=>{class l extends o.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(g){return new(g||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(g,J){if(1&g&&(e.YNc(0,b,3,2,"ng-container",0),e.YNc(1,ot,3,2,"ng-template",null,1,e.W1O),e.YNc(3,p,2,2,"ng-template",null,2,e.W1O),e.YNc(5,f,1,1,"ng-template",null,3,e.W1O),e.YNc(7,B,2,1,"ng-template",null,4,e.W1O)),2&g){const F=e.MAs(6);e.Q6J("ngIf",J.linked)("ngIfElse",F)}},directives:[t.O5,u.yS,t.tP,v.j,x.lU,w,P.Ls],styles:[""]}),l})()},4867:(V,I,n)=>{n.d(I,{Q:()=>h});var o=n(9808),e=n(325),t=n(8481),u=n(647),v=n(3610),x=n(6949),C=n(7484),S=n(1894),A=n(3098),P=n(8144),O=n(3309),U=n(3630),T=n(5e3);let y=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=T.oAB({type:m}),m.\u0275inj=T.cJS({imports:[[o.ez,e.Bz,x.WG,C.vh,S.Jb,A.q6,t.X,u.PV,P.zf,O.U,U.X]]}),m})(),h=(()=>{class m{}return m.\u0275fac=function(L){return new(L||m)},m.\u0275mod=T.oAB({type:m}),m.\u0275inj=T.cJS({imports:[[o.ez,e.Bz,t.X,v.$6,u.PV,y]]}),m})()},4340:(V,I,n)=>{n.r(I),n.d(I,{WelcomeModule:()=>bt});var o=n(325),e=n(712),t=n(5e3),u=n(8144),v=n(1894),x=n(226),C=n(925),S=n(9808),A=n(655),P=n(1159),O=n(8929),U=n(3753),T=n(7625),y=n(9439),h=n(1721),m=n(4090);const D=["slickList"],L=["slickTrack"];function Y(s,a){}const Q=function(s){return{$implicit:s}};function W(s,a){if(1&s){const i=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const _=t.CHM(i).index;return t.oxw(2).onLiClick(_)}),t.YNc(1,Y,0,0,"ng-template",10),t.qZA()}if(2&s){const i=a.index,r=t.oxw(2),c=t.MAs(8);t.ekj("slick-active",i===r.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzDotRender||c)("ngTemplateOutletContext",t.VKq(4,Q,i))}}function Z(s,a){if(1&s&&(t.TgZ(0,"ul",7),t.YNc(1,W,2,6,"li",8),t.qZA()),2&s){const i=t.oxw();t.ekj("slick-dots-top","top"===i.nzDotPosition)("slick-dots-bottom","bottom"===i.nzDotPosition)("slick-dots-left","left"===i.nzDotPosition)("slick-dots-right","right"===i.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",i.carouselContents)}}function z(s,a){if(1&s&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&s){const i=a.$implicit;t.xp6(1),t.Oqu(i+1)}}const d=["*"];let k=(()=>{class s{constructor(i,r){this.renderer=r,this._active=!1,this.el=i.nativeElement,this.renderer.addClass(i.nativeElement,"slick-slide")}set isActive(i){this._active=i,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(i){return new(i||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,i,r,c,_){this.cdr=i,this.renderer=r,this.platform=c,this.options=_,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 i=this.carouselComponent;if(this.slickListEl=i.slickListEl,this.slickTrackEl=i.slickTrackEl,this.contents=(null==a?void 0:a.toArray())||[],this.length=this.contents.length,this.platform.isBrowser){const r=i.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,i){const r=this.maxIndex+1;return{from:(a+r)%r,to:(i+r)%r}}}class K extends w{withCarouselContents(a){super.withCarouselContents(a),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((i,r)=>{this.renderer.setStyle(i.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(i.el,"position","relative"),this.renderer.setStyle(i.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(i.el,"left",-this.unitWidth*r+"px"),this.renderer.setStyle(i.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(a,i){const{to:r}=this.getFromToInBoundary(a,i),c=new O.xQ;return this.contents.forEach((_,R)=>{this.renderer.setStyle(_.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 b extends w{constructor(a,i,r,c,_){super(a,i,r,c,_),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,i){const{to:r}=this.getFromToInBoundary(a,i),c=new O.xQ;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(a,i):this.horizontalTransform(a,i),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(_=>{this.renderer.setStyle(_.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 i=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(i===this.maxIndex?this.prepareVerticalContext(!0):0===i&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-i*this.unitHeight+a.x}px, 0)`)):(!this.isDragging&&this.length>2&&(i===this.maxIndex?this.prepareHorizontalContext(!0):0===i&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-i*this.unitWidth+a.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(a,i){const{from:r,to:c}=this.getFromToInBoundary(a,i);this.length>2&&i!==c?(this.prepareVerticalContext(c2&&i!==c?(this.prepareHorizontalContext(c{class s{constructor(i,r,c,_,R,H,G,lt,ct,gt){this.nzConfigService=r,this.ngZone=c,this.renderer=_,this.cdr=R,this.platform=H,this.resizeService=G,this.nzDragService=lt,this.directionality=ct,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 O.xQ,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=X=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-X:X)},this.pointerDown=X=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(X).subscribe(E=>{var pt;this.pointerDelta=E,this.isDragging=!0,null===(pt=this.strategy)||void 0===pt||pt.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const E=this.pointerDelta?this.pointerDelta.x:0;Math.abs(E)>this.gestureRect.width/3?this.goTo(E>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(i.nativeElement,"ant-carousel"),this.el=i.nativeElement}set nzDotPosition(i){this._dotPosition=i,this.vertical="left"===i||"right"===i}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,T.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,U.R)(this.slickListEl,"keydown").pipe((0,T.R)(this.destroy$)).subscribe(i=>{const{keyCode:r}=i;r!==P.oh&&r!==P.SV||(i.preventDefault(),this.ngZone.run(()=>{r===P.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,T.R)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(i){const{nzEffect:r,nzDotPosition:c}=i;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(i){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting){const r=this.carouselContents.length,c=this.activeIndex,_=(i+r)%r;this.isTransiting=!0,this.nzBeforeChange.emit({from:c,to:_}),this.strategy.switch(this.activeIndex,i).subscribe(()=>{this.scheduleNextTransition(),this.nzAfterChange.emit(i),this.isTransiting=!1}),this.markContentActive(_),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const i=this.customStrategies?this.customStrategies.find(r=>r.name===this.nzEffect):null;this.strategy=i?new i.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new b(this,this.cdr,this.renderer,this.platform):new K(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(i){this.activeIndex=i,this.carouselContents&&this.carouselContents.forEach((r,c)=>{r.isActive="rtl"===this.dir?i===this.carouselContents.length-1-c:i===c}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return s.\u0275fac=function(i){return new(i||s)(t.Y36(t.SBq),t.Y36(y.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(C.t4),t.Y36(m.rI),t.Y36(m.Ml),t.Y36(x.Is,8),t.Y36(q,8))},s.\u0275cmp=t.Xpm({type:s,selectors:[["nz-carousel"]],contentQueries:function(i,r,c){if(1&i&&t.Suo(c,k,4),2&i){let _;t.iGM(_=t.CRH())&&(r.carouselContents=_)}},viewQuery:function(i,r){if(1&i&&(t.Gf(D,7),t.Gf(L,7)),2&i){let c;t.iGM(c=t.CRH())&&(r.slickList=c.first),t.iGM(c=t.CRH())&&(r.slickTrack=c.first)}},hostVars:4,hostBindings:function(i,r){2&i&&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:d,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(i,r){1&i&&(t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1,2),t.NdJ("mousedown",function(_){return r.pointerDown(_)})("touchstart",function(_){return r.pointerDown(_)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.qZA(),t.YNc(6,Z,2,9,"ul",5),t.qZA(),t.YNc(7,z,2,1,"ng-template",null,6,t.W1O)),2&i&&(t.ekj("slick-vertical","left"===r.nzDotPosition||"right"===r.nzDotPosition),t.xp6(6),t.Q6J("ngIf",r.nzDots))},directives:[S.O5,S.sg,S.tP],encapsulation:2,changeDetection:0}),(0,A.gn)([(0,y.oS)()],s.prototype,"nzEffect",void 0),(0,A.gn)([(0,y.oS)(),(0,h.yF)()],s.prototype,"nzEnableSwipe",void 0),(0,A.gn)([(0,y.oS)(),(0,h.yF)()],s.prototype,"nzDots",void 0),(0,A.gn)([(0,y.oS)(),(0,h.yF)()],s.prototype,"nzAutoPlay",void 0),(0,A.gn)([(0,y.oS)(),(0,h.Rn)()],s.prototype,"nzAutoPlaySpeed",void 0),(0,A.gn)([(0,h.Rn)()],s.prototype,"nzTransitionSpeed",void 0),(0,A.gn)([(0,y.oS)()],s.prototype,"nzDotPosition",null),s})(),et=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[x.vT,S.ez,C.ud]]}),s})();var p=n(4850),M=n(7484),f=n(3868),B=n(4182),$=n(5249),l=n(2683),N=n(647),g=n(6949);function J(s,a){if(1&s){const i=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(c){return t.CHM(i),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 i=t.oxw();t.Q6J("ngModel",i.statsType)}}function F(s,a){1&s&&t._UZ(0,"i",30)}function at(s,a){1&s&&t._UZ(0,"i",31)}function ut(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 xt(s,a){1&s&&t._UZ(0,"i",39)}function _t(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,F,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,at,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,ut,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,xt,1,0,"ng-template",null,29,t.W1O),t.qZA(),t.qZA(),t.BQk()),2&s){const i=a.ngIf,r=t.MAs(7),c=t.MAs(13),_=t.MAs(19),R=t.MAs(25),H=t.MAs(31),G=t.MAs(38),lt=t.MAs(44),ct=t.MAs(50),gt=t.MAs(55),X=t.MAs(60),E=t.oxw();t.xp6(4),t.Q6J("nzTitle",E.statsType+" Assertions")("nzValue",t.lcZ(5,30,i.assertions[E.statsTypes[E.statsType]]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",E.statsType+" Evidence")("nzValue",t.lcZ(11,32,i.evidenceItems[E.statsTypes[E.statsType]]))("nzPrefix",c),t.xp6(6),t.Q6J("nzTitle",E.statsType+" Genes")("nzValue",t.lcZ(17,34,i.genes[E.statsTypes[E.statsType]]))("nzPrefix",_),t.xp6(6),t.Q6J("nzTitle",E.statsType+" Variants")("nzValue",t.lcZ(23,36,i.variants[E.statsTypes[E.statsType]]))("nzPrefix",R),t.xp6(6),t.Q6J("nzTitle",E.statsType+" Contributors")("nzValue",t.lcZ(29,38,i.users[E.statsTypes[E.statsType]]))("nzPrefix",H),t.xp6(7),t.Q6J("nzTitle",E.statsType+" Diseases")("nzValue",t.lcZ(36,40,i.diseases[E.statsTypes[E.statsType]]))("nzPrefix",G),t.xp6(6),t.Q6J("nzTitle",E.statsType+" Drugs")("nzValue",t.lcZ(42,42,i.drugs[E.statsTypes[E.statsType]]))("nzPrefix",lt),t.xp6(6),t.Q6J("nzTitle",E.statsType+" Sources")("nzValue",t.lcZ(48,44,i.sources[E.statsTypes[E.statsType]]))("nzPrefix",ct),t.xp6(5),t.Q6J("nzTitle",E.statsType+" Revisions")("nzValue",t.lcZ(53,46,i.revisions[E.statsTypes[E.statsType]]))("nzPrefix",gt),t.xp6(5),t.Q6J("nzTitle",E.statsType+" Comments")("nzValue",t.lcZ(58,48,i.comments[E.statsTypes[E.statsType]]))("nzPrefix",X)}}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 i=t.oxw();t.xp6(2),t.Q6J("nzTitle",i.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",i.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",i.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",i.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",i.statsType+" Comments")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",i.statsType+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",i.statsType+" Publications")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",i.statsType+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",i.statsType+" Contributors")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",i.statsType+" Comments")("nzValue","--")}}let Zt=(()=>{class s{constructor(i){this.statsGql=i,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)(i=>i.loading)),this.stats$=this.response$.pipe((0,p.U)(i=>i.data.timepointStats))}}return s.\u0275fac=function(i){return new(i||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(i,r){if(1&i&&(t.TgZ(0,"nz-card",0),t.YNc(1,J,9,1,"ng-template",null,1,t.W1O),t.YNc(3,_t,61,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,St,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&i){const c=t.MAs(2),_=t.MAs(6);t.Q6J("nzExtra",c),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",_)}},directives:[M.bd,f.Dg,B.JJ,B.On,f.Of,f.Bq,S.O5,v.SK,v.t3,o.yS,$.my,l.w,N.Ls],pipes:[g.fM,S.JJ],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),s})();var j=n(3762),rt=n(3618),At=n(2340),Pt=n(3227),st=n(6042),Mt=n(2643),dt=n(685);function Et(s,a){if(1&s&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",9),t.BQk()),2&s){const i=t.oxw().ngIf,r=t.oxw(3);t.xp6(1),t.Q6J("events",i)("tagDisplay",r.tagDisplay)}}function It(s,a){1&s&&(t.ynx(0),t.TgZ(1,"button",10),t._uU(2,"See Full Activity Feed "),t.qZA(),t.BQk())}function Ot(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,It,3,0,"ng-container",7),t.ALo(5,"ngrxPush"),t.qZA(),t.qZA(),t.BQk()),2&s){const i=a.ngIf,r=t.oxw(3),c=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",i.length)("ngIfElse",c),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,r.pageInfo$))}}function Nt(s,a){if(1&s&&(t.TgZ(0,"nz-card",6),t.YNc(1,Ot,6,6,"ng-container",7),t.ALo(2,"ngrxPush"),t.qZA()),2&s){const i=t.oxw(2);t.Q6J("nzTitle",void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,i.events$))}}function kt(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,Nt,3,4,"nz-card",5),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&s&&(t.xp6(1),t.Q6J("nzGutter",16))}function Dt(s,a){1&s&&t._UZ(0,"nz-empty",11)}let Ut=(()=>{class s{constructor(i){this.gql=i,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:i})=>i.events.pageInfo)),this.events$=this.results$.pipe((0,p.U)(({data:i})=>i.events.edges.map(r=>r.node))),this.unfilteredCount$=this.results$.pipe((0,p.U)(({data:i})=>i.events.unfilteredCount))}}return s.\u0275fac=function(i){return new(i||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(i,r){if(1&i&&(t.YNc(0,kt,5,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,Dt,1,0,"ng-template",null,1,t.W1O)),2&i){const c=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,r.unfilteredCount$))("ngIfElse",c)}},directives:[S.O5,v.SK,v.t3,u.NU,u.$1,M.bd,Pt.r,st.ix,Mt.dQ,l.w,o.rH,dt.p9],pipes:[g.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 Lt(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 Jt(s,a){1&s&&(t.TgZ(0,"nz-row"),t.TgZ(1,"nz-col",3),t.TgZ(2,"nz-space",0),t.YNc(3,Lt,24,0,"nz-carousel",4),t.qZA(),t.qZA(),t.qZA()),2&s&&(t.xp6(1),t.Q6J("nzSpan",24))}function Bt(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 Vt(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 Wt(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 wt=[{path:"",component:(()=>{class s{constructor(){this.feedMode=e.wJ2.Unscoped}ngOnInit(){}}return s.\u0275fac=function(i){return new(i||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(i,r){1&i&&(t.TgZ(0,"nz-space",0),t.YNc(1,Jt,4,1,"nz-row",1),t.YNc(2,Bt,3,2,"nz-row",2),t.YNc(3,Vt,45,4,"nz-row",2),t.YNc(4,Wt,10,2,"nz-row",2),t.qZA())},directives:[u.NU,u.$1,v.SK,v.t3,nt,k,Zt,M.bd,j.n_,j.AA,j.yi,j.IO,rt.ZU,j.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 Qt=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[o.Bz.forChild(wt)],o.Bz]}),s})();var ht=n(5109),Ft=n(6559);let Yt=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[S.ez,B.u5,o.Bz,g.WG,$.A2,v.Jb,M.vh,f.aF,st.sL,Ft.H0,rt.ZJ,N.PV,ht.s]]}),s})();var $t=n(4546),Rt=n(6462),jt=n(8054),Ht=n(3884),mt=n(9444),Gt=n(1150),Xt=n(6699);let Kt=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[S.ez,B.u5,g.WG,o.Bz,st.sL,M.vh,N.PV,$t.U5,jt.LV,Rt.m,v.Jb,u.zf,dt.Xo,Xt.Rt,Ht.m,mt.s,Gt.N,mt.s]]}),s})(),bt=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[[S.ez,B.u5,g.WG,st.sL,v.Jb,et,M.vh,j.Ph,f.aF,u.zf,$.A2,rt.ZJ,Qt,Yt,Kt,ht.s]]}),s})()},6559:(V,I,n)=>{n.d(I,{H0:()=>W});var o=n(5e3),e=n(9808),t=n(226);let W=(()=>{class Z{}return Z.\u0275fac=function(d){return new(d||Z)},Z.\u0275mod=o.oAB({type:Z}),Z.\u0275inj=o.cJS({imports:[[t.vT,e.ez]]}),Z})()}}]); \ No newline at end of file diff --git a/server/public/6519.1d5c16c3070e7e7b.js b/server/public/6519.1d5c16c3070e7e7b.js deleted file mode 100644 index 1cae441e8..000000000 --- a/server/public/6519.1d5c16c3070e7e7b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6519],{7946:(J,Z,a)=>{a.d(Z,{x:()=>v});var p=a(9808),t=a(897),m=a(8481),C=a(3610),n=a(8018),P=a(3580),I=a(9476),h=a(5e3);let v=(()=>{class _{}return _.\u0275fac=function(b){return new(b||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[[p.ez,m.X,C.$6,t.$,n.e,P.Q,I.L]]}),_})()},8664:(J,Z,a)=>{a.d(Z,{I:()=>k});var p=a(6654),t=a(5e3),m=a(9808),C=a(325),n=a(8481),P=a(3610),I=a(4850),h=a(712),v=a(7484),_=a(647),T=a(3193),b=a(3098),O=a(6550),A=a(1894),S=a(8144),g=a(6949);function z(o,s){if(1&o&&(t._UZ(0,"i",13),t._uU(1)),2&o){const l=t.oxw().ngIf;t.xp6(1),t.hij(" ",l.name," ")}}function M(o,s){if(1&o&&t._UZ(0,"cvc-gene-tag",14),2&o){const l=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",l.gene)}}function N(o,s){1&o&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function D(o,s){if(1&o&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,N,2,0,"span",1),t.qZA()),2&o){const l=s.$implicit,d=s.last;t.xp6(1),t.hij(" ",l,""),t.xp6(1),t.Q6J("ngIf",!d)}}function E(o,s){if(1&o&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,D,3,2,"span",16),t.qZA()),2&o){const l=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",l.variantAliases)}}function V(o,s){if(1&o&&(t.TgZ(0,"nz-descriptions-item",17),t.TgZ(1,"cvc-link-tag",18),t._uU(2),t.qZA(),t.qZA()),2&o){const l=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",l.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",l.alleleRegistryId," ")}}function F(o,s){if(1&o&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",20),t._UZ(2,"i",21),t._uU(3),t.qZA(),t.qZA()),2&o){const l=t.oxw().ngIf;t.MGl("routerLink","/variants/",l.id,"/flags"),t.xp6(3),t.hij(" Flags (",l.flags.totalCount,") ")}}function U(o,s){if(1&o&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",22),t._UZ(2,"i",23),t._uU(3),t.qZA(),t.qZA()),2&o){const l=t.oxw().ngIf;t.MGl("routerLink","/variants/",l.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",l.revisions.totalCount,") ")}}function x(o,s){if(1&o&&(t.TgZ(0,"a",19),t.TgZ(1,"nz-tag",24),t._UZ(2,"i",25),t._uU(3),t.qZA(),t.qZA()),2&o){const l=t.oxw().ngIf;t.MGl("routerLink","/variants/",l.id,"/comments"),t.xp6(3),t.hij(" Comments (",l.comments.totalCount,") ")}}function Q(o,s){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,z,2,1,"ng-template",null,3,t.W1O),t.YNc(4,M,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,E,2,1,"nz-descriptions-item",6),t.YNc(8,V,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,F,4,2,"a",12),t.YNc(15,U,4,2,"a",12),t.YNc(16,x,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&o){const l=s.ngIf,d=t.MAs(3),y=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",d)("nzExtra",y),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",l.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",l.alleleRegistryId),t.xp6(2),t.hij(" ",l.evidenceItems.totalCount," ")}}let Y=(()=>{class o{constructor(l){this.gql=l}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,I.U)(({data:l})=>l.variant))}}return o.\u0275fac=function(l){return new(l||o)(t.Y36(h.ZYZ))},o.\u0275cmp=t.Xpm({type:o,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(l,d){1&l&&(t.TgZ(0,"div",0),t.YNc(1,Q,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&l&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,d.variant$)))},directives:[m.O5,v.bd,_.Ls,T.H,b.R7,b.uj,m.sg,O.l,A.SK,A.t3,S.NU,S.$1,C.yS,n.j],pipes:[g.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}"]}),o})();function L(o,s){}function j(o,s){if(1&o&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,L,0,0,"ng-template",6),t.qZA(),t.BQk()),2&o){const l=t.oxw(),d=t.MAs(2);t.xp6(1),t.Q6J("routerLink",l.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",d)}}function B(o,s){}function R(o,s){if(1&o){const l=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(y){return t.CHM(l),t.oxw(2).itemClosed(y)}),t.YNc(1,B,0,0,"ng-template",6),t.qZA()}if(2&o){t.oxw();const l=t.MAs(2),d=t.oxw(),y=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",d.onCloseClicked?0:.5)("nzPopoverContent",l)("nzMode",d.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",y)}}function w(o,s){if(1&o&&t._UZ(0,"cvc-variant-popover",11),2&o){const l=t.oxw(3);t.Q6J("variantId",l.variant.id)}}function W(o,s){if(1&o&&t.YNc(0,w,1,1,"cvc-variant-popover",10),2&o){const l=t.oxw(2);t.Q6J("ngIf",l.enablePopover)}}function $(o,s){if(1&o&&(t.YNc(0,R,2,4,"nz-tag",7),t.YNc(1,W,1,1,"ng-template",null,8,t.W1O)),2&o){const l=t.oxw(),d=t.MAs(4);t.Q6J("ngIf",l.enablePopover)("ngIfElse",d)}}function K(o,s){}function H(o,s){if(1&o){const l=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(y){return t.CHM(l),t.oxw().itemClosed(y)}),t.YNc(1,K,0,0,"ng-template",6),t.qZA()}if(2&o){const l=t.oxw(),d=t.MAs(8);t.Q6J("nzMode",l.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",d)}}function X(o,s){}function q(o,s){if(1&o&&t.YNc(0,X,0,0,"ng-template",6),2&o){t.oxw();const l=t.MAs(2);t.Q6J("ngTemplateOutlet",l)}}function G(o,s){if(1&o&&(t._UZ(0,"i",13),t._uU(1)),2&o){const l=t.oxw();t.xp6(1),t.hij(" ",l.variant.name,"\n")}}let k=(()=>{class o extends p.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 o.\u0275fac=function(l){return new(l||o)},o.\u0275cmp=t.Xpm({type:o,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(l,d){if(1&l&&(t.YNc(0,j,3,2,"ng-container",0),t.YNc(1,$,3,2,"ng-template",null,1,t.W1O),t.YNc(3,H,2,2,"ng-template",null,2,t.W1O),t.YNc(5,q,1,1,"ng-template",null,3,t.W1O),t.YNc(7,G,2,1,"ng-template",null,4,t.W1O)),2&l){const y=t.MAs(6);t.Q6J("ngIf",d.linked)("ngIfElse",y)}},directives:[m.O5,C.yS,m.tP,n.j,P.lU,Y,_.Ls],styles:[""]}),o})()},4867:(J,Z,a)=>{a.d(Z,{Q:()=>S});var p=a(9808),t=a(325),m=a(8481),C=a(647),n=a(3610),P=a(6949),I=a(7484),h=a(1894),v=a(3098),_=a(8144),T=a(3309),b=a(3630),O=a(5e3);let A=(()=>{class g{}return g.\u0275fac=function(M){return new(M||g)},g.\u0275mod=O.oAB({type:g}),g.\u0275inj=O.cJS({imports:[[p.ez,t.Bz,P.WG,I.vh,h.Jb,v.q6,m.X,C.PV,_.zf,T.U,b.X]]}),g})(),S=(()=>{class g{}return g.\u0275fac=function(M){return new(M||g)},g.\u0275mod=O.oAB({type:g}),g.\u0275inj=O.cJS({imports:[[p.ez,t.Bz,m.X,n.$6,C.PV,A]]}),g})()},3154:(J,Z,a)=>{a.d(Z,{_:()=>t});var p=a(712);function t(m){var C;switch(m.value){case"ascend":C=p.SrV.Asc;break;case"descend":C=p.SrV.Desc;break;default:return}return{column:m.key,direction:C}}},1838:(J,Z,a)=>{a.r(Z),a.d(Z,{ClinicalTrialsModule:()=>_n});var p=a(9808),t=a(325),m=a(373),C=a(1059),n=a(5e3),P=a(712),I=a(8992),h=a(1945),v=a(647),_=a(6550),T=a(6949);function b(e,r){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2),n.TgZ(3,"nz-page-header-title"),n._UZ(4,"i",3),n._uU(5),n.qZA(),n.TgZ(6,"nz-page-header-extra"),n.TgZ(7,"cvc-link-tag",4),n._uU(8),n.qZA(),n.qZA(),n.TgZ(9,"nz-page-header-content"),n.TgZ(10,"div",5),n._uU(11),n._UZ(12,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const i=r.ngIf;n.xp6(1),n.Q6J("displayName",i.nctId),n.xp6(4),n.hij(" ",i.name," "),n.xp6(2),n.Q6J("href",i.url),n.xp6(1),n.hij(" ",i.nctId," "),n.xp6(3),n.hij(" ",i.description," ")}}let O=(()=>{class e{constructor(i,c){this.route=i,this.gql=c,this.routeSub=this.route.params.subscribe(u=>{this.clinicalTrialId=+u.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let f=this.queryRef.valueChanges;this.loading$=f.pipe((0,m.j)("loading"),(0,C.O)(!0)),this.clinicalTrial$=f.pipe((0,m.j)("data","clinicalTrial"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(t.gz),n.Y36(P.cMj))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-clinical-trials-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","audit"],["tooltip","View on clinicaltrials.gov",3,"href"],[1,"content"]],template:function(i,c){1&i&&(n.YNc(0,b,13,5,"ng-container",0),n.ALo(1,"ngrxPush")),2&i&&n.Q6J("ngIf",n.lcZ(1,1,c.clinicalTrial$))},directives:[p.O5,I.I,h.$O,h.u9,v.Ls,h.Jp,_.l,h.u5,t.lC],pipes:[T.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 A=a(1894),S=a(2683),g=a(3618),z=a(8144),M=a(6042),N=a(3154),D=a(8929),E=a(4850),V=a(2986),F=a(13),U=a(7484),x=a(1132),Q=a(404),Y=a(2166),L=a(4049),j=a(2643);function B(e,r){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-clinical-trial-tag",15),n.qZA(),n.TgZ(3,"td"),n._uU(4),n.qZA(),n.TgZ(5,"td"),n._uU(6),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.qZA()),2&e){const i=r.$implicit;n.xp6(2),n.Q6J("clinicalTrial",i),n.xp6(2),n.hij(" ",i.name," "),n.xp6(2),n.hij(" ",i.sourceCount," "),n.xp6(2),n.hij(" ",i.evidenceCount," ")}}function R(e,r){if(1&e){const i=n.EpF();n.TgZ(0,"button",19),n.NdJ("click",function(){n.CHM(i);const u=n.oxw(2).ngrxLet;return n.oxw().loadMore(u.endCursor)}),n._uU(1),n.qZA()}if(2&e){const i=n.oxw(3);n.xp6(1),n.hij("Load ",i.initialPageSize," More")}}function w(e,r){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td",17),n.YNc(2,R,2,1,"button",18),n.qZA(),n.qZA()),2&e){const i=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",i.hasNextPage)}}function W(e,r){if(1&e&&(n.ynx(0),n.YNc(1,w,3,1,"tr",16),n.BQk()),2&e){const i=r.ngrxLet;n.xp6(1),n.Q6J("ngIf",i.hasNextPage)}}function $(e,r){}function K(e,r){if(1&e&&(n.ynx(0),n.YNc(1,$,0,0,"ng-template",23),n.BQk()),2&e){const i=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",i.cvcTitleTemplate)}}function H(e,r){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const i=n.oxw(2);n.xp6(1),n.hij(" ",i.cvcTitle," ")}}function X(e,r){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const i=n.oxw().ngIf;n.xp6(1),n.hij(" of ",i," filtered")}}function q(e,r){if(1&e&&(n.TgZ(0,"span",24),n._uU(1),n.YNc(2,X,2,1,"span",16),n._uU(3,") "),n.qZA()),2&e){const i=r.ngIf,c=n.oxw(2);n.xp6(1),n.AsE(" (",c.totalCount," total, showing ",c.visibleCount,""),n.xp6(1),n.Q6J("ngIf",c.totalCount&&i{class e{constructor(i){this.gql=i,this.initialPageSize=25,this.debouncedQuery=new D.xQ,this.visibleCount=this.initialPageSize,this.sortColumns=P.E8d,this.loadedPages=1,this.queryRef=this.gql.watch({first:this.initialPageSize});let c=this.queryRef.valueChanges;this.clinicalTrials$=c.pipe((0,m.j)("data","clinicalTrials","edges"),(0,E.U)(u=>u.map(f=>f.node))),this.isLoading$=c.pipe((0,m.j)("loading"),(0,C.O)(!0)),this.filteredCount$=c.pipe((0,m.j)("data","clinicalTrials","filteredCount")),this.filteredCount$.pipe((0,V.q)(1)).subscribe(u=>this.totalCount=u),this.filteredCount$.subscribe(u=>{uu&&(this.visibleCount=u))}),this.pageInfo$=c.pipe((0,m.j)("data","clinicalTrials","pageInfo")),this.debouncedQuery.pipe((0,F.b)(500)).subscribe(u=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}onModelChanged(){this.debouncedQuery.next()}onSortChanged(i){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,N._)(i)})}refresh(){this.loadedPages=1,this.queryRef.refetch({name:this.nameFilter,nctId:this.nctIdFilter})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(i){this.queryRef.fetchMore({variables:{after:i}}),this.loadedPages+=1}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(P.P_b))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-clinical-trials-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:27,vars:27,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["clinicalTrialsTable",""],[3,"nzSortOrderChange"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],["nzWidth","65%",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Source Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:source"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["placeholderText","Search NCT ID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"clinicalTrial"],[4,"ngIf"],["colspan","4"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","audit"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(i,c){if(1&i&&(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(f){return c.onSortChanged(f)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," NCT ID "),n.qZA(),n.TgZ(9,"th",5),n._uU(10," Name "),n.qZA(),n.TgZ(11,"th",6),n._UZ(12,"i",7),n.qZA(),n.TgZ(13,"th",8),n._UZ(14,"i",9),n.qZA(),n.qZA(),n.TgZ(15,"tr"),n.TgZ(16,"th"),n.TgZ(17,"cvc-clearable-input-filter",10),n.NdJ("inputModelChange",function(f){return c.nctIdFilter=f}),n.qZA(),n.qZA(),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",11),n.NdJ("inputModelChange",function(f){return c.nameFilter=f}),n.qZA(),n.qZA(),n._UZ(20,"th"),n._UZ(21,"th"),n.qZA(),n.qZA(),n.TgZ(22,"tbody"),n.YNc(23,B,9,4,"tr",12),n.YNc(24,W,2,1,"ng-container",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(25,k,7,6,"ng-template",null,14,n.W1O)),2&i){const u=n.MAs(2),f=n.MAs(26);n.Q6J("nzTitle",f),n.xp6(1),n.Q6J("nzData",n.lcZ(3,21,c.clinicalTrials$))("nzLoading",n.lcZ(4,23,c.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",c.sortColumns.NctId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",c.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",c.sortColumns.SourceCount)("nzSortFn",!0)("nzSortDirections",n.DdM(25,o)),n.xp6(2),n.Q6J("nzColumnKey",c.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(26,o)),n.xp6(4),n.Q6J("inputModel",c.nctIdFilter)("onInputChanged",c.textInputCallback),n.xp6(2),n.Q6J("inputModel",c.nameFilter)("onInputChanged",c.textInputCallback),n.xp6(4),n.Q6J("ngForOf",u.data),n.xp6(1),n.Q6J("ngrxLet",c.pageInfo$)}},directives:[U.bd,x.N8,x.Om,x.$Z,x.Uo,x._C,x.qD,x.qn,Q.SY,S.w,v.Ls,Y.p,x.p0,p.sg,L.G,T.eJ,p.O5,M.ix,j.dQ,p.tP,g.ZU],pipes:[T.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function l(e,r){1&e&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Clinical Trial Docs "),n.qZA())}let d=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["clinical-trials-home"]],decls:18,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","audit"],["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/clinical_trial.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Clinical Trials"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/clinical_trial.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(i,c){1&i&&(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,"Clinical Trials"),n.qZA(),n.TgZ(9,"p",5),n._uU(10," CIViC automatically associates a Clinical Trial to an Evidence Item if its associated Source's PubMed record provides a clinical trial ID. This ID is not directly curatable. "),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,l,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-clinical-trials-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&i&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(6),n.Q6J("nzSpan",24))},directives:[I.I,h.$O,h.u5,A.SK,A.t3,v.Ls,S.w,g.ZU,z.NU,z.$1,M.ix,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}"]}),e})();var y=a(3575),nn=a(8965);function en(e,r){if(1&e&&n._UZ(0,"cvc-sources-table",4),2&e){const i=n.oxw(2);n.Q6J("clinicalTrialId",i.clinicalTrialId)}}function an(e,r){if(1&e&&n._UZ(0,"cvc-evidence-table",5),2&e){const i=n.oxw(2);n.Q6J("clinicalTrialId",i.clinicalTrialId)}}function on(e,r){1&e&&(n.TgZ(0,"nz-space",1),n.YNc(1,en,1,1,"cvc-sources-table",2),n.YNc(2,an,1,1,"cvc-evidence-table",3),n.qZA())}const ln=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-clinical-trials"]],decls:1,vars:0,template:function(i,c){1&i&&n._UZ(0,"router-outlet")},directives:[t.lC],styles:[""]}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:d,data:{breadcrumb:"Home"}},{path:":clinicalTrialId",component:O,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(i){this.route=i,this.routeSub=this.route.params.subscribe(c=>{this.clinicalTrialId=+c.clinicalTrialId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(t.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-clinical-trials-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Clinical Trial Sources",3,"clinicalTrialId",4,"nzSpaceItem"],["cvcTitle","Clinical Trial Evidence",3,"clinicalTrialId",4,"nzSpaceItem"],["cvcTitle","Clinical Trial Sources",3,"clinicalTrialId"],["cvcTitle","Clinical Trial Evidence",3,"clinicalTrialId"]],template:function(i,c){1&i&&n.YNc(0,on,3,0,"nz-space",0),2&i&&n.Q6J("ngIf",c.clinicalTrialId)},directives:[p.O5,z.NU,z.$1,y.d,nn.a],styles:["[_nghost-%COMP%]{display:block}"]}),e})(),data:{breadcrumb:"Summary"}}]}]}];let rn=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.Bz.forChild(ln)],t.Bz]}),e})();var cn=a(4125),sn=a(5453);let pn=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[p.ez,T.WG,x.HQ,M.sL,U.vh,v.PV,g.ZJ,Q.cg,cn.k,sn.N]]}),e})();var tn=a(5630);let gn=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[p.ez,T.WG,A.Jb,h.KJ,v.PV,M.sL,g.ZJ,z.zf,pn,tn.D]]}),e})();var dn=a(3630);let mn=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[p.ez,t.Bz,T.WG,h.KJ,v.PV,dn.X,tn.D]]}),e})();var un=a(767),hn=a(7279);let Cn=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[p.ez,z.zf,un.Q,hn.h]]}),e})(),_n=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[p.ez,rn,gn,mn,Cn]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/6724.28fb476550103940.js b/server/public/6724.28fb476550103940.js new file mode 100644 index 000000000..9c8599984 --- /dev/null +++ b/server/public/6724.28fb476550103940.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6724],{2322:(f,T,t)=>{t.d(T,{C:()=>p});var o=t(9808),n=t(7484),u=t(3762),d=t(1894),C=t(8144),z=t(8481),E=t(9444),P=t(5e3);let p=(()=>{class v{}return v.\u0275fac=function(m){return new(m||v)},v.\u0275mod=P.oAB({type:v}),v.\u0275inj=P.cJS({imports:[[o.ez,n.vh,u.Ph,d.Jb,z.X,C.zf,E.s]]}),v})()},7488:(f,T,t)=>{t.d(T,{y:()=>h});var o=t(9808),n=t(8481),u=t(647),d=t(325),C=t(9444),z=t(6949),E=t(7345),P=t(8369),p=t(209),v=t(4867),a=t(8625),m=t(7484),i=t(1894),l=t(3309),O=t(7026),D=t(7677),U=t(592),x=t(8144),A=t(3098),_=t(2322),c=t(5e3);let s=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({imports:[[o.ez,z.WG,m.vh,i.Jb,u.PV,x.zf,A.q6,l.U,E.W,P.W,p.i,v.Q,D.G,U.x,_.C,a.$L.forChild({formatter:{useClass:O.x,provide:a.KP}})]]}),e})();var M=t(3610);let h=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({imports:[[o.ez,d.Bz,C.s,s,n.X,u.PV,M.$6]]}),e})()},6265:(f,T,t)=>{t.d(T,{q:()=>h});var o=t(4850),n=t(5e3),u=t(712),d=t(9808),C=t(7484),z=t(7881),E=t(1894),P=t(3098),p=t(6715),v=t(5749),a=t(5737),m=t(6949);const i=["additionalMetadata"];function l(e,g){if(1&e&&(n._UZ(0,"cvc-user-avatar",14),n.TgZ(1,"span",15),n._uU(2),n.qZA()),2&e){const r=n.oxw().ngIf;n.Q6J("user",r),n.xp6(2),n.Oqu(r.displayName)}}function O(e,g){if(1&e&&(n._UZ(0,"i",16),n._uU(1),n.ALo(2,"titlecase")),2&e){const r=n.oxw().ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,1,r.role)," ")}}function D(e,g){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const r=g.ngIf;n.xp6(1),n.Oqu(r)}}function U(e,g){if(1&e&&n._UZ(0,"cvc-organization-tag",18),2&e){const r=g.$implicit;n.Q6J("enablePopover",!1)("org",r)}}function x(e,g){if(1&e&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,U,1,2,"cvc-organization-tag",17),n.qZA()),2&e){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.organizations)}}function A(e,g){1&e&&n._UZ(0,"nz-divider")}const _=function(e){return{$implicit:e}};function c(e,g){if(1&e&&(n.ynx(0),n._UZ(1,"nz-card",4),n.YNc(2,l,3,2,"ng-template",null,5,n.W1O),n.YNc(4,O,3,3,"ng-template",null,6,n.W1O),n.TgZ(6,"nz-row"),n.TgZ(7,"nz-col",7),n.TgZ(8,"div",8),n.TgZ(9,"p",9),n.YNc(10,D,2,1,"span",10),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"nz-row"),n.TgZ(12,"nz-col",7),n.TgZ(13,"nz-descriptions",11),n.TgZ(14,"nz-descriptions-item",12),n.YNc(15,x,2,1,"cvc-tag-list",10),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(16,"nz-row"),n.YNc(17,A,1,0,"nz-divider",1),n.GkF(18,13),n.qZA(),n.BQk()),2&e){const r=g.ngIf,I=n.MAs(3),B=n.MAs(5),R=n.oxw(),W=n.MAs(4),y=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",I)("nzExtra",B),n.xp6(9),n.Q6J("ngIf",r.bio)("ngIfElse",W),n.xp6(3),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",r.organizations.length>0)("ngIfElse",y),n.xp6(2),n.Q6J("ngIf",R.metadataTemplateRef),n.xp6(1),n.Q6J("ngTemplateOutlet",R.metadataTemplateRef||null)("ngTemplateOutletContext",n.VKq(10,_,r))}}function s(e,g){1&e&&n._uU(0," User has not provided a biography.\n")}function M(e,g){1&e&&(n.TgZ(0,"span",19),n._uU(1,"--"),n.qZA())}let h=(()=>{class e{constructor(r){this.gql=r}ngOnInit(){if(null==this.userId)throw new Error("Must pass an id into user hovercard");this.user$=this.gql.watch({userId:this.userId}).valueChanges.pipe((0,o.U)(({data:r})=>r.user))}}return e.\u0275fac=function(r){return new(r||e)(n.Y36(u.cEv))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-user-popover"]],contentQueries:function(r,I,B){if(1&r&&n.Suo(B,i,5),2&r){let R;n.iGM(R=n.CRH())&&(I.metadataTemplateRef=R.first)}},inputs:{userId:"userId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noBio",""],["noOrganizations",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["cardExtra",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Organizations"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],["nz-icon","","nzType","civic-admin"],[3,"enablePopover","org",4,"ngFor","ngForOf"],[3,"enablePopover","org"],["nz-typography","","nzStyle","secondary"]],template:function(r,I){1&r&&(n.TgZ(0,"div",0),n.YNc(1,c,19,12,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,s,1,0,"ng-template",null,2,n.W1O),n.YNc(5,M,2,0,"ng-template",null,3,n.W1O)),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,I.user$)))},directives:[d.O5,C.bd,z.L,E.SK,E.t3,P.R7,P.uj,p.$,d.sg,v.m,a.g,d.tP],pipes:[m.fM,d.rS],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}.display-name[_ngcontent-%COMP%]{margin-left:8px;font-weight:400}"]}),e})()},6081:(f,T,t)=>{t.d(T,{J:()=>m});var o=t(9808),n=t(3630),u=t(3098),d=t(7484),C=t(6949),z=t(897),E=t(9476),P=t(5473),p=t(5737),v=t(1894),a=t(5e3);let m=(()=>{class i{}return i.\u0275fac=function(O){return new(O||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({imports:[[o.ez,C.WG,v.Jb,d.vh,u.q6,p.S,n.X,z.$,E.L,P.H]]}),i})()},125:(f,T,t)=>{t.d(T,{I:()=>A});var o=t(5e3),n=t(9808),u=t(325),d=t(8481),C=t(3610),z=t(6265),E=t(647);function P(_,c){}function p(_,c){if(1&_&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,P,0,0,"ng-template",6),o.qZA(),o.BQk()),2&_){const s=o.oxw(),M=o.MAs(2);o.xp6(1),o.MGl("routerLink","/users/",s.user.id,""),o.xp6(1),o.Q6J("ngTemplateOutlet",M)}}function v(_,c){}function a(_,c){if(1&_&&(o.TgZ(0,"nz-tag",9),o.YNc(1,v,0,0,"ng-template",6),o.qZA()),2&_){o.oxw();const s=o.MAs(2);o.oxw();const M=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",s),o.xp6(1),o.Q6J("ngTemplateOutlet",M)}}function m(_,c){if(1&_&&o._UZ(0,"cvc-user-popover",10),2&_){const s=o.oxw(2);o.Q6J("userId",s.user.id)}}function i(_,c){if(1&_&&(o.YNc(0,a,2,3,"nz-tag",7),o.YNc(1,m,1,1,"ng-template",null,8,o.W1O)),2&_){const s=o.oxw(),M=o.MAs(4);o.Q6J("ngIf",s.enablePopover)("ngIfElse",M)}}function l(_,c){}function O(_,c){if(1&_&&(o.TgZ(0,"nz-tag"),o.YNc(1,l,0,0,"ng-template",6),o.qZA()),2&_){o.oxw();const s=o.MAs(8);o.xp6(1),o.Q6J("ngTemplateOutlet",s)}}function D(_,c){}function U(_,c){if(1&_&&o.YNc(0,D,0,0,"ng-template",6),2&_){o.oxw();const s=o.MAs(2);o.Q6J("ngTemplateOutlet",s)}}function x(_,c){if(1&_&&(o._UZ(0,"i",11),o._uU(1)),2&_){const s=o.oxw();o.Q6J("nzType",s.icon),o.xp6(1),o.hij(" ",s.user.displayName,"\n")}}let A=(()=>{class _{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.user)throw new Error("cvc-user-tag component requires valid user input.");switch(this.user.role){case"ADMIN":this.icon="civic-admin";break;case"EDITOR":this.icon="civic-editor";break;default:this.icon="civic-curator"}}}return _.\u0275fac=function(s){return new(s||_)},_.\u0275cmp=o.Xpm({type:_,selectors:[["cvc-user-tag"]],inputs:{user:"user",linked:"linked",enablePopover:"enablePopover"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","topCenter",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["userPopover",""],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","topCenter",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"userId"],["nz-icon","","nzTheme","twotone","nzTwotoneColor","#A0D8F5",3,"nzType"]],template:function(s,M){if(1&s&&(o.YNc(0,p,3,2,"ng-container",0),o.YNc(1,i,3,2,"ng-template",null,1,o.W1O),o.YNc(3,O,2,1,"ng-template",null,2,o.W1O),o.YNc(5,U,1,1,"ng-template",null,3,o.W1O),o.YNc(7,x,2,2,"ng-template",null,4,o.W1O)),2&s){const h=o.MAs(6);o.Q6J("ngIf",M.linked)("ngIfElse",h)}},directives:[n.O5,u.yS,n.tP,d.j,C.lU,z.q,E.Ls],styles:[""]}),_})()},7345:(f,T,t)=>{t.d(T,{W:()=>P});var o=t(9808),n=t(325),u=t(3610),d=t(8481),C=t(647),z=t(6081),E=t(5e3);let P=(()=>{class p{}return p.\u0275fac=function(a){return new(a||p)},p.\u0275mod=E.oAB({type:p}),p.\u0275inj=E.cJS({imports:[[o.ez,n.Bz,z.J,u.$6,d.X,C.PV]]}),p})()},5737:(f,T,t)=>{t.d(T,{g:()=>p,S:()=>v});var o=t(655),n=t(5e3),u=t(1721),d=t(9808),C=t(969),z=t(226);function E(a,m){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const i=n.oxw(2);n.xp6(1),n.Oqu(i.nzText)}}function P(a,m){if(1&a&&(n.TgZ(0,"span",1),n.YNc(1,E,2,1,"ng-container",2),n.qZA()),2&a){const i=n.oxw();n.xp6(1),n.Q6J("nzStringTemplateOutlet",i.nzText)}}let p=(()=>{class a{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(i,l){2&i&&n.ekj("ant-divider-horizontal","horizontal"===l.nzType)("ant-divider-vertical","vertical"===l.nzType)("ant-divider-with-text",l.nzText)("ant-divider-plain",l.nzPlain)("ant-divider-with-text-left",l.nzText&&"left"===l.nzOrientation)("ant-divider-with-text-right",l.nzText&&"right"===l.nzOrientation)("ant-divider-with-text-center",l.nzText&&"center"===l.nzOrientation)("ant-divider-dashed",l.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(i,l){1&i&&n.YNc(0,P,2,1,"span",0),2&i&&n.Q6J("ngIf",l.nzText)},directives:[d.O5,C.f],encapsulation:2,changeDetection:0}),(0,o.gn)([(0,u.yF)()],a.prototype,"nzDashed",void 0),(0,o.gn)([(0,u.yF)()],a.prototype,"nzPlain",void 0),a})(),v=(()=>{class a{}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[z.vT,d.ez,C.T]]}),a})()}}]); \ No newline at end of file diff --git a/server/public/681.d79a1e74bccada70.js b/server/public/681.d79a1e74bccada70.js new file mode 100644 index 000000000..7f070b4b4 --- /dev/null +++ b/server/public/681.d79a1e74bccada70.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[681],{3580:(O,v,t)=>{t.d(v,{Q:()=>z});var o=t(9808),_=t(325),n=t(8481),p=t(3610),m=t(647),u=t(7484),d=t(3098),Z=t(3630),x=t(6949),C=t(3618),f=t(9444),T=t(5e3);let r=(()=>{class i{}return i.\u0275fac=function(h){return new(h||i)},i.\u0275mod=T.oAB({type:i}),i.\u0275inj=T.cJS({imports:[[o.ez,x.WG,u.vh,d.q6,m.PV,C.ZJ,f.s,Z.X]]}),i})(),z=(()=>{class i{}return i.\u0275fac=function(h){return new(h||i)},i.\u0275mod=T.oAB({type:i}),i.\u0275inj=T.cJS({imports:[[o.ez,_.Bz,n.X,p.$6,m.PV,f.s,r]]}),i})()},8018:(O,v,t)=>{t.d(v,{e:()=>i});var o=t(9808),_=t(325),n=t(8481),p=t(3610),m=t(647),u=t(7484),d=t(3098),Z=t(6949),x=t(3630),C=t(3618),f=t(9444),T=t(404),r=t(5e3);let z=(()=>{class c{}return c.\u0275fac=function(y){return new(y||c)},c.\u0275mod=r.oAB({type:c}),c.\u0275inj=r.cJS({imports:[[o.ez,_.Bz,Z.WG,u.vh,d.q6,m.PV,C.ZJ,n.X,T.cg,x.X,f.s]]}),c})(),i=(()=>{class c{}return c.\u0275fac=function(y){return new(y||c)},c.\u0275mod=r.oAB({type:c}),c.\u0275inj=r.cJS({imports:[[o.ez,_.Bz,n.X,p.$6,m.PV,f.s,z]]}),c})()},9476:(O,v,t)=>{t.d(v,{L:()=>z});var o=t(9808),_=t(325),n=t(8481),p=t(647),m=t(1894),u=t(3630),d=t(3098),Z=t(7484),x=t(6949),C=t(5473),f=t(5e3);let T=(()=>{class i{}return i.\u0275fac=function(h){return new(h||i)},i.\u0275mod=f.oAB({type:i}),i.\u0275inj=f.cJS({imports:[[o.ez,x.WG,Z.vh,m.Jb,d.q6,u.X,C.H]]}),i})();var r=t(3610);let z=(()=>{class i{}return i.\u0275fac=function(h){return new(h||i)},i.\u0275mod=f.oAB({type:i}),i.\u0275inj=f.cJS({imports:[[o.ez,_.Bz,n.X,p.PV,r.$6,T]]}),i})()},3220:(O,v,t)=>{t.d(v,{l:()=>T});var o=t(5e3),_=t(6715),n=t(9808),p=t(8481),m=t(3610);const u=function(r){return{"matched-tag":r}};function d(r,z){if(1&r&&(o.TgZ(0,"div",2),o.TgZ(1,"nz-tag"),o._uU(2),o.qZA(),o.qZA()),2&r){const i=z.$implicit,c=o.oxw();o.Q6J("ngClass",o.VKq(2,u,c.matchingText&&i.toLowerCase().includes(c.matchingText))),o.xp6(2),o.Oqu(i)}}function Z(r,z){if(1&r&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&r){const i=o.oxw(2);o.xp6(1),o.hij("",i.matchedHiddenCount," of ")}}function x(r,z){if(1&r){const i=o.EpF();o.TgZ(0,"nz-tag",5),o.NdJ("click",function(){return o.CHM(i),o.oxw().onOverflowClicked()}),o._uU(1," +"),o.YNc(2,Z,2,1,"span",6),o._uU(3),o.qZA()}if(2&r){const i=o.oxw(),c=o.MAs(5);o.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",c),o.xp6(2),o.Q6J("ngIf",i.matchedHiddenCount>0),o.xp6(1),o.hij("",i.hiddenCount," more ")}}function C(r,z){if(1&r&&(o.TgZ(0,"div",2),o.TgZ(1,"nz-tag"),o._uU(2),o.qZA(),o.qZA()),2&r){const i=z.$implicit,c=o.oxw(2);o.Q6J("ngClass",o.VKq(2,u,c.matchingText&&i.toLowerCase().includes(c.matchingText))),o.xp6(2),o.Oqu(i)}}function f(r,z){if(1&r&&(o.TgZ(0,"cvc-tag-list",0),o.YNc(1,C,3,4,"div",1),o.qZA()),2&r){const i=o.oxw();o.xp6(1),o.Q6J("ngForOf",i.hiddenTags)}}let T=(()=>{class r{constructor(){this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnInit(){this.calculateDisplayedTags()}calculateDisplayedTags(){var i,c,h,y;if(this.displayedTags=null===(i=this.tags)||void 0===i?void 0:i.slice(0,this.maxDisplayCount),this.hiddenTags=null===(c=this.tags)||void 0===c?void 0:c.slice(this.maxDisplayCount),this.hiddenCount=null===(h=this.hiddenTags)||void 0===h?void 0:h.length,this.matchingText=null===(y=this.matchingText)||void 0===y?void 0:y.toLowerCase(),this.matchingText&&this.hiddenTags){let D=this.matchingText;this.hiddenTags.forEach(I=>{I.toLowerCase().includes(D)&&(this.matchedHiddenCount+=1)})}}onOverflowClicked(){var i;this.maxDisplayCount=(null===(i=this.tags)||void 0===i?void 0:i.length)||0,this.calculateDisplayedTags()}}return r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=o.Xpm({type:r,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(i,c){1&i&&(o.TgZ(0,"cvc-tag-list",0),o.YNc(1,d,3,4,"div",1),o.TgZ(2,"div",2),o.YNc(3,x,4,4,"nz-tag",3),o.qZA(),o.YNc(4,f,2,1,"ng-template",null,4,o.W1O),o.qZA()),2&i&&(o.xp6(1),o.Q6J("ngForOf",c.displayedTags),o.xp6(1),o.Q6J("ngClass",o.VKq(3,u,c.matchedHiddenCount>0)),o.xp6(1),o.Q6J("ngIf",c.hiddenCount&&c.hiddenCount>0))},directives:[_.$,n.sg,n.mk,p.j,n.O5,m.lU],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}"]}),r})()},3968:(O,v,t)=>{t.d(v,{T:()=>u});var o=t(9808),_=t(897),n=t(8481),p=t(3610),m=t(5e3);let u=(()=>{class d{}return d.\u0275fac=function(x){return new(x||d)},d.\u0275mod=m.oAB({type:d}),d.\u0275inj=m.cJS({imports:[[o.ez,n.X,p.$6,_.$]]}),d})()},6715:(O,v,t)=>{t.d(v,{$:()=>n});var o=t(5e3);const _=["*"];let n=(()=>{class p{constructor(){}ngOnInit(){}}return p.\u0275fac=function(u){return new(u||p)},p.\u0275cmp=o.Xpm({type:p,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(u,d){2&u&&o.ekj("xs","xs"===d.size||!d.size)("sm","sm"===d.size)},inputs:{size:"size"},ngContentSelectors:_,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(u,d){1&u&&(o.F$t(),o.TgZ(0,"div",0),o.Hsn(1),o.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),p})()},897:(O,v,t)=>{t.d(v,{$:()=>n});var o=t(9808),_=t(5e3);let n=(()=>{class p{}return p.\u0275fac=function(u){return new(u||p)},p.\u0275mod=_.oAB({type:p}),p.\u0275inj=_.cJS({imports:[[o.ez]]}),p})()},7946:(O,v,t)=>{t.d(v,{x:()=>x});var o=t(9808),_=t(897),n=t(8481),p=t(3610),m=t(8018),u=t(3580),d=t(9476),Z=t(5e3);let x=(()=>{class C{}return C.\u0275fac=function(T){return new(T||C)},C.\u0275mod=Z.oAB({type:C}),C.\u0275inj=Z.cJS({imports:[[o.ez,n.X,p.$6,_.$,m.e,u.Q,d.L]]}),C})()},3154:(O,v,t)=>{t.d(v,{_:()=>_});var o=t(712);function _(n){var p;switch(n.value){case"ascend":p=o.SrV.Asc;break;case"descend":p=o.SrV.Desc;break;default:return}return{column:n.key,direction:p}}},681:(O,v,t)=>{t.r(v),t.d(v,{GenesModule:()=>xn});var o=t(9808),_=t(325),n=t(5e3);let p=(()=>{class e{constructor(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-genes"]],decls:1,vars:0,template:function(a,s){1&a&&n._UZ(0,"router-outlet")},directives:[_.lC],styles:[""]}),e})();var m=t(1945),u=t(1894),d=t(1132),Z=t(4546),x=t(1047),C=t(647),f=t(3618),T=t(4182),r=t(6949),z=t(3309),i=t(7946),c=t(3968),h=t(6042),y=t(7484),D=t(404);let I=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[o.ez,T.u5,r.WG,d.HQ,Z.U5,x.o7,C.PV,f.ZJ,y.vh,h.sL,D.cg,z.U,i.x,c.T]]}),e})();var B=t(5630),E=t(8144);let L=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[o.ez,B.D,I,h.sL,C.PV,E.zf,f.ZJ,m.KJ,u.Jb]]}),e})();var F=t(8992),U=t(2683),N=t(8929),J=t(4850),A=t(373),S=t(1059),b=t(2986),W=t(13),Q=t(712),R=t(3154),H=t(3193),K=t(3220),$=t(392),Y=t(2643);function j(e,l){if(1&e){const a=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(a);const g=n.oxw(3);return g.nameInput=void 0,g.onModelUpdated(void 0)}),n.qZA()}}function V(e,l){if(1&e&&n.YNc(0,j,1,0,"i",27),2&e){const a=n.oxw(2);n.Q6J("ngIf",a.nameInput)}}function w(e,l){if(1&e){const a=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(a);const g=n.oxw(3);return g.aliasInput=void 0,g.onModelUpdated(void 0)}),n.qZA()}}function X(e,l){if(1&e&&n.YNc(0,w,1,0,"i",27),2&e){const a=n.oxw(2);n.Q6J("ngIf",a.aliasInput)}}function q(e,l){if(1&e){const a=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(a);const g=n.oxw(3);return g.diseaseInput=void 0,g.onModelUpdated(void 0)}),n.qZA()}}function k(e,l){if(1&e&&n.YNc(0,q,1,0,"i",27),2&e){const a=n.oxw(2);n.Q6J("ngIf",a.diseaseInput)}}function nn(e,l){if(1&e){const a=n.EpF();n.TgZ(0,"i",28),n.NdJ("click",function(){n.CHM(a);const g=n.oxw(3);return g.drugInput=void 0,g.onModelUpdated(void 0)}),n.qZA()}}function tn(e,l){if(1&e&&n.YNc(0,nn,1,0,"i",27),2&e){const a=n.oxw(2);n.Q6J("ngIf",a.drugInput)}}function en(e,l){if(1&e&&(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&e){const a=l.$implicit,s=n.oxw(2);n.xp6(2),n.Q6J("gene",a),n.xp6(2),n.Q6J("tags",a.geneAliases)("matchingText",s.aliasInput),n.xp6(2),n.Q6J("tags",a.diseases)("matchingText",s.diseaseInput),n.xp6(2),n.Q6J("tags",a.drugs)("matchingText",s.drugInput),n.xp6(2),n.Oqu(a.variantCount),n.xp6(2),n.Oqu(a.evidenceItemCount),n.xp6(2),n.Oqu(a.assertionCount)}}function on(e,l){if(1&e){const a=n.EpF();n.TgZ(0,"button",36),n.NdJ("click",function(){n.CHM(a);const g=n.oxw(2).ngrxLet;return n.oxw(2).loadMore(g.endCursor)}),n._uU(1),n.qZA()}if(2&e){const a=n.oxw(4);n.xp6(1),n.hij("Load ",a.fetchMorePageSize," More")}}function an(e,l){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td",34),n.YNc(2,on,2,1,"button",35),n.qZA(),n.qZA()),2&e){const a=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",a.hasNextPage)}}function sn(e,l){if(1&e&&(n.ynx(0),n.YNc(1,an,3,1,"tr",1),n.BQk()),2&e){const a=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",a.hasNextPage)}}const G=function(){return["descend","ascend",null]};function ln(e,l){if(1&e){const a=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(g){return n.CHM(a),n.oxw().onSortChanged(g)}),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(g){return n.CHM(a),n.oxw().nameInput=g})("ngModelChange",function(g){return n.CHM(a),n.oxw().onModelUpdated(g)}),n.qZA(),n.qZA(),n.YNc(25,V,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(g){return n.CHM(a),n.oxw().aliasInput=g})("ngModelChange",function(g){return n.CHM(a),n.oxw().onModelUpdated(g)}),n.qZA(),n.qZA(),n.YNc(30,X,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(g){return n.CHM(a),n.oxw().diseaseInput=g})("ngModelChange",function(g){return n.CHM(a),n.oxw().onModelUpdated(g)}),n.qZA(),n.qZA(),n.YNc(35,k,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(g){return n.CHM(a),n.oxw().drugInput=g})("ngModelChange",function(g){return n.CHM(a),n.oxw().onModelUpdated(g)}),n.qZA(),n.qZA(),n.YNc(40,tn,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,en,15,10,"tr",25),n.YNc(47,sn,2,1,"ng-container",26),n.qZA(),n.qZA(),n.BQk()}if(2&e){const a=n.MAs(2),s=n.MAs(26),g=n.MAs(31),M=n.MAs(36),Mn=n.MAs(41),P=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,25,P.genes$))("nzLoading",n.lcZ(4,27,P.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",P.sortColumns.EntrezSymbol)("nzSortFn",!0),n.xp6(8),n.Q6J("nzColumnKey",P.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",n.DdM(29,G)),n.xp6(2),n.Q6J("nzColumnKey",P.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(30,G)),n.xp6(2),n.Q6J("nzColumnKey",P.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",n.DdM(31,G)),n.xp6(4),n.Q6J("nzSuffix",s),n.xp6(1),n.Q6J("ngModel",P.nameInput),n.xp6(4),n.Q6J("nzSuffix",g),n.xp6(1),n.Q6J("ngModel",P.aliasInput),n.xp6(4),n.Q6J("nzSuffix",M),n.xp6(1),n.Q6J("ngModel",P.diseaseInput),n.xp6(4),n.Q6J("nzSuffix",Mn),n.xp6(1),n.Q6J("ngModel",P.drugInput),n.xp6(7),n.Q6J("ngForOf",a.data),n.xp6(1),n.Q6J("ngrxLet",P.pageInfo$)}}function cn(e,l){1&e&&n._UZ(0,"i",37)}function rn(e,l){}function gn(e,l){if(1&e&&(n.ynx(0),n.YNc(1,rn,0,0,"ng-template",41),n.BQk()),2&e){const a=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function dn(e,l){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const a=n.oxw(2);n.xp6(1),n.hij(" ",a.cvcTitle," ")}}function pn(e,l){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const a=n.oxw().ngIf;n.xp6(1),n.hij(" of ",a," filtered")}}function un(e,l){if(1&e&&(n.TgZ(0,"span",42),n._uU(1),n.YNc(2,pn,2,1,"span",1),n._uU(3,") "),n.qZA()),2&e){const a=l.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&a{class e{constructor(a){this.query=a,this.debouncedQuery=new N.xQ,this.sortColumns=Q.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,J.U)(a=>({data:a.data,loading:a.loading,networkStatus:a.networkStatus}))),this.isLoading$=this.data$.pipe((0,A.j)("loading"),(0,S.O)(!0)),this.genes$=this.data$.pipe((0,A.j)("data","browseGenes","edges"),(0,J.U)(a=>a.map(s=>s.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,b.q)(1)).subscribe(a=>this.totalCount=a),this.filteredCount$.subscribe(a=>{aa&&(this.visibleCount=a))}),this.pageCount$=this.data$.pipe((0,A.j)("data","browseGenes","pageCount"),(0,S.O)(0)),this.debouncedQuery.pipe((0,W.b)(500)).subscribe(a=>{var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({entrezSymbol:this.nameInput,geneAlias:this.aliasInput,diseaseName:this.diseaseInput,drugName:this.drugInput})})}loadMore(a){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{first:this.fetchMorePageSize,after:a}}),this.loadedPages+=1}onSortChanged(a){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch(Object.assign(Object.assign({},this.initialQueryArgs),{sortBy:(0,R._)(a)}))}onModelUpdated(a){this.debouncedQuery.next()}}return e.\u0275fac=function(a){return new(a||e)(n.Y36(Q.q8c))},e.\u0275cmp=n.Xpm({type:e,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","nzSortDirections"],["nz-icon","","nzType","civic:variant"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["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(a,s){if(1&a&&(n.TgZ(0,"nz-card",0),n.YNc(1,ln,48,32,"ng-container",1),n.ALo(2,"ngrxPush"),n.YNc(3,cn,1,0,"ng-template",null,2,n.W1O),n.qZA(),n.YNc(5,_n,7,6,"ng-template",null,3,n.W1O)),2&a){const g=n.MAs(6);n.Q6J("nzTitle",g),n.xp6(1),n.Q6J("ngIf",n.VKq(4,hn,n.lcZ(2,2,s.data$)))}},directives:[y.bd,o.O5,d.N8,d.Om,d.$Z,d.Uo,d._C,d.qD,d.qn,D.SY,C.Ls,U.w,x.gB,x.ke,x.Zp,T.Fj,T.JJ,T.On,d.p0,o.sg,H.H,K.l,$.T,r.eJ,h.ix,Y.dQ,o.tP,f.ZU],pipes:[r.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function Cn(e,l){1&e&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Gene Model Docs "),n.qZA())}function fn(e,l){1&e&&(n.TgZ(0,"a",15),n._UZ(1,"i",14),n._uU(2," View Gene Curation Docs "),n.qZA())}const Tn=[{path:"",component:p,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=n.Xpm({type:e,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(a,s){1&a&&(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,Cn,3,0,"a",8),n.YNc(14,fn,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&a&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[F.I,m.$O,m.u5,u.SK,u.t3,U.w,C.Ls,f.ZU,E.NU,E.$1,h.ix,vn],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:":geneId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(6256),t.e(9001),t.e(2826),t.e(6724),t.e(55),t.e(9716),t.e(5291),t.e(2043),t.e(4355),t.e(4028),t.e(7259)]).then(t.bind(t,8252)).then(e=>e.GenesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(6256),t.e(4184),t.e(8533),t.e(7893)]).then(t.bind(t,3887)).then(e=>e.GenesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let zn=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[_.Bz.forChild(Tn),L],_.Bz]}),e})(),xn=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[o.ez,zn]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/681.fd75ff06f6af80e6.js b/server/public/681.fd75ff06f6af80e6.js deleted file mode 100644 index 13feb5a9c..000000000 --- a/server/public/681.fd75ff06f6af80e6.js +++ /dev/null @@ -1 +0,0 @@ -"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 M(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,M,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 Z(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,Z,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),M=o(5e3);let x=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=M.oAB({type:_}),_.\u0275inj=M.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:()=>zn});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),M=o(4546),x=o(1047),_=o(647),Z=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,M.U5,x.o7,_.PV,Z.ZJ,y.vh,z.sL,I.cg,f.U,c.x,d.T]]}),t})();var Q=o(5630),G=o(8144);let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,Q.D,E,z.sL,_.PV,G.zf,Z.ZJ,v.KJ,m.Jb]]}),t})();var w=o(8992),D=o(2683),L=o(8929),b=o(4850),A=o(373),J=o(1059),B=o(2986),F=o(13),S=o(712),R=o(3154),W=o(3193),H=o(3220),K=o(392),Y=o(2643);function $(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 j(t,s){if(1&t&&n.YNc(0,$,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.nameInput)}}function V(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 q(t,s){if(1&t&&n.YNc(0,V,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.aliasInput)}}function X(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 k(t,s){if(1&t&&n.YNc(0,X,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.diseaseInput)}}function nn(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 tn(t,s){if(1&t&&n.YNc(0,nn,1,0,"i",27),2&t){const e=n.oxw(2);n.Q6J("ngIf",e.drugInput)}}function en(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 on(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 an(t,s){if(1&t&&(n.TgZ(0,"tr"),n.TgZ(1,"td",34),n.YNc(2,on,2,1,"button",35),n.qZA(),n.qZA()),2&t){const e=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",e.hasNextPage)}}function sn(t,s){if(1&t&&(n.ynx(0),n.YNc(1,an,3,1,"tr",1),n.BQk()),2&t){const e=s.ngrxLet;n.xp6(1),n.Q6J("ngIf",e.hasNextPage)}}const U=function(){return["descend","ascend",null]};function ln(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,j,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,q,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,k,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,tn,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,en,15,10,"tr",25),n.YNc(47,sn,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),Mn=n.MAs(41),C=n.oxw();n.xp6(1),n.Q6J("nzData",n.lcZ(3,25,C.genes$))("nzLoading",n.lcZ(4,27,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)("nzSortDirections",n.DdM(29,U)),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(30,U)),n.xp6(2),n.Q6J("nzColumnKey",C.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",n.DdM(31,U)),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",Mn),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 cn(t,s){1&t&&n._UZ(0,"i",37)}function gn(t,s){}function rn(t,s){if(1&t&&(n.ynx(0),n.YNc(1,gn,0,0,"ng-template",41),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function dn(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 pn(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 _n(t,s){if(1&t&&(n.TgZ(0,"span",42),n._uU(1),n.YNc(2,pn,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 L.xQ,this.sortColumns=S.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,B.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,F.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,R._)(e)}))}onModelUpdated(e){this.debouncedQuery.next()}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(S.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","nzSortDirections"],["nz-icon","","nzType","civic:variant"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["nzWidth","3%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["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,ln,48,32,"ng-container",1),n.ALo(2,"ngrxPush"),n.YNc(3,cn,1,0,"ng-template",null,2,n.W1O),n.qZA(),n.YNc(5,hn,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,mn,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,D.w,x.gB,x.ke,x.Zp,P.Fj,P.JJ,P.On,r.p0,a.sg,W.H,H.l,K.T,g.eJ,z.ix,Y.dQ,a.tP,Z.ZU],pipes:[g.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),t})();function Cn(t,s){1&t&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Gene Model Docs "),n.qZA())}function Tn(t,s){1&t&&(n.TgZ(0,"a",15),n._UZ(1,"i",14),n._uU(2," View Gene Curation Docs "),n.qZA())}const vn=[{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,Cn,3,0,"a",8),n.YNc(14,Tn,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:[w.I,v.$O,v.u5,m.SK,m.t3,D.w,_.Ls,Z.ZU,G.NU,G.$1,z.ix,fn],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 xn=(()=>{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(vn),N],u.Bz]}),t})(),zn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[a.ez,xn]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/6875.9a3f371a86467784.js b/server/public/6875.9a3f371a86467784.js deleted file mode 100644 index c9ee08a4f..000000000 --- a/server/public/6875.9a3f371a86467784.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6875],{6789:(k,B,r)=>{r.d(B,{_:()=>A});var T=r(9808),b=r(7484),e=r(5109),x=r(5482),E=r(6949),I=r(19),t=r(8776),Z=r(647),v=r(404),M=r(5e3);let N=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=M.oAB({type:a}),a.\u0275inj=M.cJS({imports:[[T.ez,E.WG,t.X0,I.j,x.cD,Z.PV,v.cg,e.s]]}),a})(),A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=M.oAB({type:a}),a.\u0275inj=M.cJS({imports:[[T.ez,E.WG,t.X0,b.vh,I.j,x.cD,Z.PV,v.cg,N,e.s]]}),a})()},4889:(k,B,r)=>{r.d(B,{E:()=>A});var T=r(9808),b=r(4182),e=r(325),x=r(8776),E=r(304),I=r(6042),t=r(5e3),Z=r(2643),v=r(2683);const N={name:"cancel-button",component:(()=>{class a extends x.fS{constructor(){super(...arguments),this.redirectPath="/"}ngOnInit(){var S,C;(null===(S=this.field.templateOptions)||void 0===S?void 0:S.redirectPath)&&(this.redirectPath=null===(C=this.field.templateOptions)||void 0===C?void 0:C.redirectPath)}}return a.\u0275fac=function(){let z;return function(C){return(z||(z=t.n5z(a)))(C||a)}}(),a.\u0275cmp=t.Xpm({type:a,selectors:[["cvc-cancel-button"]],features:[t.qOj],decls:2,vars:1,consts:[["nz-button","","type","button","nzType","default","nzSize","large",1,"cancel-button",3,"routerLink"]],template:function(S,C){1&S&&(t.TgZ(0,"button",0),t._uU(1,"Cancel"),t.qZA()),2&S&&t.Q6J("routerLink",C.redirectPath)},directives:[I.ix,Z.dQ,v.w,e.rH],styles:[".cancel-button[_ngcontent-%COMP%]{float:left}"]}),a})()};let A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=t.oAB({type:a}),a.\u0275inj=t.cJS({imports:[[T.ez,b.u5,b.UX,I.sL,e.Bz,E.F,x.X0.forChild({types:[N]})]]}),a})()},8979:(k,B,r)=>{r.d(B,{N:()=>N});var T=r(9808),b=r(8776),e=r(5e3),x=r(6042),E=r(2643),I=r(2683);const Z={name:"cvc-multi-field-add-btn",component:(()=>{class A extends b.fS{constructor(){super()}}return A.\u0275fac=function(z){return new(z||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["cvc-multi-field-add-btn-type"]],features:[e.qOj],decls:2,vars:2,consts:[["type","submit","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"disabled"]],template:function(z,S){1&z&&(e.TgZ(0,"button",0),e._uU(1),e.qZA()),2&z&&(e.Q6J("disabled",S.to.disabled),e.xp6(1),e.Oqu(S.to.label))},directives:[x.ix,E.dQ,I.w],styles:[""],encapsulation:2,changeDetection:0}),A})()};var v=r(9139),M=r(4546);let N=(()=>{class A{}return A.\u0275fac=function(z){return new(z||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[T.ez,v.u,b.X0.forChild({types:[Z]}),M.U5,x.sL]]}),A})()},8390:(k,B,r)=>{r.d(B,{N:()=>F});var T=r(9808),b=r(4182),e=r(8776),x=r(4546),E=r(1047),I=r(647),t=r(5e3),Z=r(1894),v=r(8481),M=r(2683),N=r(6042),A=r(2643);function a(l,p){if(1&l){const d=t.EpF();t.TgZ(0,"nz-form-item"),t.TgZ(1,"nz-form-control",3),t.TgZ(2,"nz-tag",4),t.NdJ("click",function(Y){return t.CHM(d),t.oxw().addField(Y)}),t._UZ(3,"i",5),t._uU(4),t.qZA(),t.qZA(),t.qZA()}if(2&l){const d=t.oxw();t.xp6(1),t.Q6J("nzValidateStatus",d.errorState),t.xp6(3),t.hij(" ",d.to.addText," ")}}function z(l,p){if(1&l){const d=t.EpF();t.TgZ(0,"nz-tag",4),t.NdJ("click",function(Y){return t.CHM(d),t.oxw(4).addField(Y)}),t._UZ(1,"i",5),t._uU(2),t.qZA()}if(2&l){const d=t.oxw(4);t.xp6(2),t.hij(" ",d.to.addText," ")}}function S(l,p){if(1&l&&(t.TgZ(0,"div",11),t.YNc(1,z,3,1,"nz-tag",12),t.qZA()),2&l){const d=t.oxw(2).$implicit,w=t.oxw();t.xp6(1),t.Q6J("ngIf",0==w.to.maxCount||w.to.maxCount>d.model.length)}}function C(l,p){if(1&l){const d=t.EpF();t.ynx(0),t.TgZ(1,"nz-tag",8),t.TgZ(2,"i",9),t.NdJ("click",function(){t.CHM(d);const Y=t.oxw().index;return t.oxw().remove(Y)}),t.qZA(),t.qZA(),t.YNc(3,S,2,1,"div",10),t.BQk()}if(2&l){const d=t.oxw().last;t.xp6(3),t.Q6J("ngIf",d)}}function j(l,p){if(1&l){const d=t.EpF();t.ynx(0),t.TgZ(1,"div",13),t.TgZ(2,"button",14),t.NdJ("click",function(){t.CHM(d);const Y=t.oxw().index;return t.oxw().remove(Y)}),t._UZ(3,"i",15),t.qZA(),t.qZA(),t.BQk()}}function V(l,p){if(1&l&&(t.TgZ(0,"nz-form-item"),t.TgZ(1,"div",6),t.TgZ(2,"div",0),t._UZ(3,"formly-field",7),t.qZA(),t.YNc(4,C,4,1,"ng-container",1),t.YNc(5,j,4,0,"ng-container",1),t.qZA(),t.qZA()),2&l){const d=p.$implicit,w=p.index;t.xp6(2),t.Q6J("ngClass",d.model[w]?"selected-field-col":"default-field-col"),t.xp6(1),t.Q6J("field",d),t.xp6(1),t.Q6J("ngIf",d.model[w]),t.xp6(1),t.Q6J("ngIf",!d.model[w])}}const L=function(l){return{hidden:l}},K={name:"multi-field",component:(()=>{class l extends e.hv{constructor(){super(),this.defaultOptions={templateOptions:{maxCount:0}}}get errorState(){return this.showError?"error":""}addField(d){d&&d.preventDefault(),this.add()}ngOnInit(){this.to.add=this.add.bind(this),this.to.remove=this.remove.bind(this)}}return l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-multi-field-type"]],features:[t.qOj],decls:3,vars:5,consts:[[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzValidateStatus"],["nzNoAnimation","",1,"editable-tag",3,"click"],["nz-icon","","nzType","plus"],["ngClass","field-display"],[3,"field"],[1,"close-tag"],["nz-icon","","nzType","close",3,"click"],["class","field-add-btn",4,"ngIf"],[1,"field-add-btn"],["class","editable-tag","nzNoAnimation","",3,"click",4,"ngIf"],[1,"field-cancel-btn"],["nz-button","","nzBlock","","nzType","default","nzSize","small","nzDanger","",3,"click"],["nz-icon","","nzType","close"]],template:function(d,w){1&d&&(t.TgZ(0,"div",0),t.YNc(1,a,5,2,"nz-form-item",1),t.YNc(2,V,6,4,"nz-form-item",2),t.qZA()),2&d&&(t.Q6J("ngClass",t.VKq(3,L,!0===w.to.hidden)),t.xp6(1),t.Q6J("ngIf",0===(null==w.field.fieldGroup?null:w.field.fieldGroup.length)),t.xp6(1),t.Q6J("ngForOf",w.field.fieldGroup))},directives:[T.mk,T.O5,Z.SK,x.Nx,Z.t3,x.Fd,v.j,I.Ls,M.w,T.sg,e.cw,N.ix,A.dQ],styles:["[_nghost-%COMP%]{display:block}nz-form-item[_ngcontent-%COMP%]{margin-bottom:.25em}nz-form-item[_ngcontent-%COMP%]:last-child{margin-bottom:16px}.hidden[_ngcontent-%COMP%]{display:none}.editable-tag[_ngcontent-%COMP%]{background:#ffffff;border-style:dashed;cursor:pointer}.field-display[_ngcontent-%COMP%]{margin-top:.5em;display:inline-block} > nz-form-item[_ngcontent-%COMP%]{margin-bottom:0}.selected-field-col[_ngcontent-%COMP%]{display:inline-block}.default-field-col[_ngcontent-%COMP%]{display:inline-block;width:calc(100% - (2*(10px + 1em)))}.field-add-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em}.close-tag[_ngcontent-%COMP%]{margin-left:-9px;cursor:pointer}.field-cancel-btn[_ngcontent-%COMP%]{display:inline-block;margin-left:1em;width:calc(20px + 1em)}"]}),l})()};function U(l,p){if(1&l&&t._UZ(0,"formly-validation-message",3),2&l){const d=t.oxw();t.Q6J("field",d.field)}}const s={name:"cvc-field-errors",component:(()=>{class l extends e.n2{get errorState(){return this.showError?"error":""}}return l.\u0275fac=function(){let p;return function(w){return(p||(p=t.n5z(l)))(w||l)}}(),l.\u0275cmp=t.Xpm({type:l,selectors:[["cvc-field-errors-wrapper"]],features:[t.qOj],decls:7,vars:3,consts:[[3,"nzValidateStatus","nzErrorTip"],["fieldComponent",""],["errorTpl",""],[3,"field"]],template:function(d,w){if(1&d&&(t.TgZ(0,"nz-form-control",0),t.TgZ(1,"p"),t._uU(2),t.qZA(),t.GkF(3,null,1),t.YNc(5,U,1,1,"ng-template",null,2,t.W1O),t.qZA()),2&d){const Y=t.MAs(6);t.Q6J("nzValidateStatus",w.errorState)("nzErrorTip",Y),t.xp6(2),t.hij("errorState: ",w.errorState,"")}},directives:[Z.t3,x.Fd,e.u_],encapsulation:2,changeDetection:0}),l})()};let i=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[T.ez,b.UX,x.U5,e.X0.forChild({wrappers:[s]})]]}),l})();var g=r(5109);let F=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=t.oAB({type:l}),l.\u0275inj=t.cJS({imports:[[T.ez,b.u5,e.X0.forChild({types:[K]}),b.UX,i,x.U5,E.o7,I.PV,N.sL,g.s,v.X]]}),l})()},3773:(k,B,r)=>{r.d(B,{g:()=>pe});var T=r(9808),b=r(8776),e=r(5e3),x=r(4182),E=r(712),I=r(6530),t=r(444);const Z={sourceType:void 0,citationId:void 0};let v=(()=>{class o{constructor(){this.sourceSelected=new e.vpe,this.model=Z,this.form=new x.cw({}),this.options={},this.fields=[{key:"id"},{key:"citation",defaultValue:""},{key:"sourceType",type:"select",className:"source-type-field",defaultValue:E.yic.Pubmed,templateOptions:{required:!0,placeholder:"Select Type",options:(0,t.o6)(E.yic).map((n,u)=>({value:n,label:(0,I.c)(n)}))}},{key:"citationId",className:"citation-id-field",type:"source-selector-typeahead",templateOptions:{maxLength:10,required:!0,triggerParentSubmit:()=>{this.onSubmit()}},expressionProperties:{"templateOptions.disabled":"!model.sourceType","templateOptions.placeholder":'!model.sourceType ? "Select source type before searching" : "Search " + model.sourceType + " sources"',"templateOptions.sourceType":"model.sourceType","templateOptions.sourceTypeKey":n=>{if(n.sourceType)return(0,t.o6)(E.yic).getKeyOrThrow(n.sourceType)}}},{type:"cvc-multi-field-add-btn",className:"add-button",templateOptions:{label:"Add Source"},expressionProperties:{"templateOptions.disabled":"!model.citationId"}}]}ngOnInit(){}onSubmit(){console.log("source-select form submitted."),this.sourceSelected.emit(this.model)}ngOnDestroy(){console.log("source-selector onDestroy called.")}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector"]],outputs:{sourceSelected:"sourceSelected"},decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup","ngSubmit"],[1,"formly-form",3,"model","fields","options","form","modelChange"]],template:function(n,u){1&n&&(e.TgZ(0,"form",0),e.NdJ("ngSubmit",function(){return u.onSubmit()}),e.TgZ(1,"formly-form",1),e.NdJ("modelChange",function(Q){return u.model=Q}),e.qZA(),e.qZA()),2&n&&(e.Q6J("formGroup",u.form),e.xp6(1),e.Q6J("model",u.model)("fields",u.fields)("options",u.options)("form",u.form))},directives:[x._Y,x.JL,x.sg,b.T7],styles:[":host{display:block}cvc-source-input .formly-form{width:100%}cvc-source-input .source-type-field{display:inline-block;width:10em}cvc-source-input .citation-id-field{display:inline-block;margin-left:.5em;width:calc(100% - 19em)}cvc-source-input .add-button{display:inline-block;margin-left:.5em;width:8em}\n"],encapsulation:2}),o})();var M=r(6906);function N(o,m){if(1&o){const n=e.EpF();e.ynx(0),e.TgZ(1,"cvc-source-selector",2),e.NdJ("sourceSelected",function(_){return e.CHM(n),e.oxw().onSourceSelected(_)}),e.qZA(),e.BQk()}}function A(o,m){if(1&o&&e._UZ(0,"cvc-source-tag",3),2&o){const n=e.oxw();e.Q6J("source",n.formControl.value)}}const z={name:"source-input",component:(()=>{class o extends b.fS{constructor(){super()}onSourceSelected(n){console.log(n),this.formControl.setValue(n)}}return o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["sourceListItem",""],[3,"sourceSelected"],[3,"source"]],template:function(n,u){if(1&n&&(e.YNc(0,N,2,0,"ng-container",0),e.YNc(1,A,1,1,"ng-template",null,1,e.W1O)),2&n){const _=e.MAs(2);e.Q6J("ngIf",!(null!=u.formControl.value&&u.formControl.value.id))("ngIfElse",_)}},directives:[T.O5,v,M.T],styles:[""],changeDetection:0}),o})()};var S=r(9139),C=r(6042),j=r(8054),V=r(537),L=r(8144),$=r(2359),K=r(1894),U=r(4546),W=r(822),s=r(2643),i=r(2683);function g(o,m){if(1&o&&e._UZ(0,"nz-alert",6),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function F(o,m){if(1&o&&(e._uU(0," Found citation: "),e.TgZ(1,"em"),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function l(o,m){1&o&&(e.ynx(0),e.YNc(1,g,1,1,"nz-alert",4),e.YNc(2,F,3,1,"ng-template",null,5,e.W1O),e.BQk())}function p(o,m){if(1&o&&e._UZ(0,"nz-alert",9),2&o){e.oxw();const n=e.MAs(3);e.Q6J("nzMessage",n)}}function d(o,m){if(1&o&&(e._uU(0," '"),e.TgZ(1,"em"),e._uU(2),e.qZA(),e._uU(3,"' created. ")),2&o){const n=e.oxw(3);e.xp6(2),e.Oqu(n.foundCitation)}}function w(o,m){1&o&&(e.ynx(0),e.YNc(1,p,1,1,"nz-alert",7),e.YNc(2,d,4,1,"ng-template",null,8,e.W1O),e.BQk())}function Y(o,m){if(1&o&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",10),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.Q6J("errors",n.createErrors)}}function D(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(_){return e.CHM(n),e.oxw(3).onCreateSourceStub(_)}),e._uU(1," Create\xa0'"),e.TgZ(2,"em"),e._uU(3),e.qZA(),e._uU(4,"'\xa0 CIViC Source "),e.qZA()}if(2&o){const n=e.oxw(3);e.Q6J("nzLoading",n.isCreating),e.xp6(3),e.Oqu(n.foundCitation)}}function ne(o,m){1&o&&(e.ynx(0),e.YNc(1,D,5,2,"button",11),e.BQk())}function oe(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(_){return e.CHM(n),e.oxw(3).onAcceptSource(_)}),e._uU(1," Add Source to List "),e.qZA()}}function re(o,m){1&o&&(e.ynx(0),e.YNc(1,oe,2,0,"button",13),e.BQk())}function y(o,m){if(1&o&&(e.ynx(0),e.TgZ(1,"nz-space",2),e.YNc(2,l,4,0,"ng-container",3),e.YNc(3,w,4,0,"ng-container",3),e.YNc(4,Y,2,1,"nz-form-item",3),e.YNc(5,ne,2,0,"ng-container",3),e.YNc(6,re,2,0,"ng-container",3),e.qZA(),e.BQk()),2&o){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",!1===n.createSuccess&&0===n.createErrors.length),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess),e.xp6(1),e.Q6J("ngIf",n.createErrors.length>0),e.xp6(1),e.Q6J("ngIf",!1===n.createSuccess),e.xp6(1),e.Q6J("ngIf",!0===n.createSuccess)}}function h(o,m){if(1&o&&(e.TgZ(0,"span",16),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&o){const n=e.oxw(3);e.xp6(2),e.hij(" Source not known to CIViC, fetch citation from ",n.sourceTypeKey,"? ")}}function c(o,m){1&o&&(e.ynx(0),e.YNc(1,h,3,1,"span",15),e.BQk())}function f(o,m){if(1&o&&e._uU(0),2&o){const n=e.oxw(4);e.AsE(" Citation not found for ",n.sourceTypeKey,": ",n.citationId,". ")}}function O(o,m){if(1&o&&(e.TgZ(0,"span"),e._UZ(1,"nz-alert",19),e.YNc(2,f,1,2,"ng-template",null,20,e.W1O),e.qZA()),2&o){const n=e.MAs(3);e.xp6(1),e.Q6J("nzMessage",n)}}function P(o,m){1&o&&(e.ynx(0),e.YNc(1,O,4,1,"span",18),e.BQk())}function J(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(_){return e.CHM(n),e.oxw(2).onExistenceQuery(_)}),e._uU(1," Fetch Citation for\xa0"),e.TgZ(2,"strong"),e._uU(3),e.qZA(),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("nzLoading",n.isChecking),e.xp6(3),e.AsE("",n.sourceTypeKey," ",n.citationId,"")}}function X(o,m){if(1&o&&(e.TgZ(0,"nz-space",2),e.YNc(1,c,2,0,"ng-container",3),e.YNc(2,P,2,0,"ng-container",3),e.YNc(3,J,4,3,"button",11),e.qZA()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.showPrompt),e.xp6(1),e.Q6J("ngIf",n.existenceFail)}}let G=(()=>{class o{constructor(n,u,_){this.existenceCheckQuery=n,this.createSourceStubQuery=u,this.changeDetectorRef=_,this.modelUpdate=new e.vpe,this.citationIdChange=new e.vpe,this.sourceTypeChange=new e.vpe,this.showPrompt=!0,this.isChecking=!1,this.existenceFail=!1,this.existenceError=[],this.foundCitation=void 0,this.isCreating=!1,this.createSuccess=!1,this.createErrors=[]}set sourceType(n){this._sourceType=n,this.sourceTypeKey=(0,t.o6)(E.yic).getKeyOrThrow(n)}get sourceType(){return this._sourceType}onExistenceQuery(n){n&&n.preventDefault(),this.isChecking=!0,this.foundCitation=void 0,this.existenceCheckQuery.fetch({sourceType:this.sourceType,citationId:+this.citationId}).pipe((0,V.x)(()=>{this.isChecking=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:{remoteCitation:u}})=>{null!==u?this.foundCitation=u:(this.showPrompt=!1,this.existenceFail=!0)},error:u=>{this.showPrompt=!1,this.existenceError=u.graphQLErrors.map(_=>_.message)},complete:()=>{this.existenceError=[]}})}onCreateSourceStub(n){n&&n.preventDefault(),this.isCreating=!0,this.createSuccess=!1,this.createSourceStubQuery.mutate({input:{citationId:+this.citationId,sourceType:this.sourceType}}).pipe((0,V.x)(()=>{this.isCreating=!1,this.changeDetectorRef.detectChanges()})).subscribe({next:({data:u})=>{var _;console.log(u);const Q=null===(_=null==u?void 0:u.addRemoteCitation)||void 0===_?void 0:_.newSource;this.sourceStub=Q,this.createSuccess=!0},error:u=>{this.showPrompt=!1,this.createSuccess=!1,this.createErrors=u.graphQLErrors.map(_=>_.message)},complete:()=>{this.createErrors=[]}})}onAcceptSource(n){n&&n.preventDefault(),console.log("source accepted");const u=Object.assign(Object.assign({},this.model),{id:this.sourceStub.id,citation:this.foundCitation,citationId:this.citationId});this.modelUpdate.emit(u)}ngAfterContentInit(){console.log("model")}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(E.fpJ),e.Y36(E.JQ3),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-loader"]],inputs:{model:"model",citationId:"citationId",sourceType:"sourceType"},outputs:{modelUpdate:"modelUpdate",citationIdChange:"citationIdChange",sourceTypeChange:"sourceTypeChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fetchCitation",""],["nzDirection","vertical"],[4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["foundCitationMsg",""],["nzType","info","nzShowIcon","",3,"nzMessage"],["nzType","success","nzShowIcon","",3,"nzMessage",4,"nzSpaceItem"],["createdMsg",""],["nzType","success","nzShowIcon","",3,"nzMessage"],[3,"errors"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"nzLoading","click"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click",4,"nzSpaceItem"],["type","submit","nz-button","","nzBlock","","nzType","primary","nzSize","default",3,"click"],["nz-typography","",4,"nzSpaceItem"],["nz-typography",""],["nz-icon","","nzType","info-circle","nzTheme","twotone"],[4,"nzSpaceItem"],["nzType","warning","nzShowIcon","",3,"nzMessage"],["existenceFail",""]],template:function(n,u){if(1&n&&(e.YNc(0,y,7,5,"ng-container",0),e.YNc(1,X,4,2,"ng-template",null,1,e.W1O)),2&n){const _=e.MAs(2);e.Q6J("ngIf",u.foundCitation)("ngIfElse",_)}},directives:[T.O5,L.NU,L.$1,$.r,K.SK,U.Nx,W.V,C.ix,s.dQ,i.w],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-space-item[_ngcontent-%COMP%]:last-child{margin-bottom:0}"]}),o})();function H(o,m){if(1&o&&(e.TgZ(0,"nz-option",4),e._uU(1),e.qZA()),2&o){const n=m.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value),e.xp6(1),e.AsE(" ",n.source.citation," (",n.source.citationId,") ")}}function R(o,m){if(1&o&&(e.TgZ(0,"div",5),e._uU(1," Citation: "),e.TgZ(2,"span",6),e._uU(3),e.qZA(),e.qZA()),2&o){const n=e.oxw();e.xp6(3),e.hij(" ",n.model.citation," ")}}function te(o,m){if(1&o&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&o){const n=e.oxw(2);e.xp6(1),e.hij(" Enter a ",n.to.sourceTypeKey," citation ID to search CIViC sources ")}}function q(o,m){if(1&o){const n=e.EpF();e.TgZ(0,"cvc-source-loader",10),e.NdJ("modelUpdate",function(_){return e.CHM(n),e.oxw(2).onModelUpdated(_)})("sourceTypeChange",function(_){return e.CHM(n),e.oxw(2).model.sourceType=_})("citationIdChange",function(_){return e.CHM(n),e.oxw(2).to.fieldValue=_}),e.qZA()}if(2&o){const n=e.oxw(2);e.Q6J("model",n.model)("sourceType",n.model.sourceType)("citationId",n.to.fieldValue)}}function ee(o,m){if(1&o&&(e.ynx(0,7),e.YNc(1,te,2,1,"div",8),e.YNc(2,q,1,3,"cvc-source-loader",9),e.BQk()),2&o){const n=e.oxw();e.Q6J("ngSwitch",n.to.fieldLength>0&&n.to.fieldLength>=n.to.minLengthSearch),e.xp6(1),e.Q6J("ngSwitchCase",!1),e.xp6(1),e.Q6J("ngSwitchCase",!0)}}const se={name:"source-selector-typeahead",component:(()=>{class o extends b.fS{constructor(n,u){super(),this.sourceTypeaheadQuery=n,this.changeDetectorRef=u,this.selectedValue=null,this.nzFilterOption=()=>!0,this.defaultOptions={templateOptions:{placeholder:"Search",sourceType:void 0,showArrow:!1,onSearch:()=>{},filterOption:()=>{},modelChange:()=>{},triggerParentSubmit:()=>{},minLengthSearch:1,fieldLength:0,fieldValue:"",optionList:[]}}}ngAfterViewInit(){this.to.filterOption=()=>!0,this.to.modelChange=n=>{if(this.to.optionList.length>0){const{source:u}=this.to.optionList.find(_=>_.value===+n);u?this.form.patchValue({citation:u.citation,id:u.id}):console.error("Could not find selected citation in list?")}},this.to.onSearch=n=>{this.to.fieldValue=n,this.to.fieldLength=n.length,!(n.lengththis.to.maxLength)&&this.sourceTypeaheadQuery.fetch({sourceType:this.to.sourceType,partialCitationId:+n},{fetchPolicy:"network-only"}).subscribe(({data:{sourceTypeahead:u}})=>{this.to.optionList=u.map(_=>({value:_.citationId,label:_.citationId,source:_})),this.changeDetectorRef.detectChanges()})}}onModelUpdated(n){this.form.patchValue(n),this.changeDetectorRef.detectChanges(),this.to.triggerParentSubmit()}}return o.\u0275fac=function(n){return new(n||o)(e.Y36(E.k2T),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["cvc-source-selector-typeahead-type"]],features:[e.qOj],decls:5,vars:8,consts:[["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","ngModelChange","nzOnSearch"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["class","ant-form-item-explain",4,"ngIf"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue"],[1,"ant-form-item-explain"],[1,"source-citation"],[3,"ngSwitch"],["class","ant-form-item-explain",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange",4,"ngSwitchCase"],[3,"model","sourceType","citationId","modelUpdate","sourceTypeChange","citationIdChange"]],template:function(n,u){if(1&n&&(e.TgZ(0,"nz-select",0),e.NdJ("ngModelChange",function(Q){return u.to.modelChange(Q)})("nzOnSearch",function(Q){return u.to.onSearch(Q)}),e.YNc(1,H,2,4,"nz-option",1),e.qZA(),e.YNc(2,R,4,1,"div",2),e.YNc(3,ee,3,3,"ng-template",null,3,e.W1O)),2&n){const _=e.MAs(4);e.Q6J("formControl",u.formControl)("formlyAttributes",u.field)("nzPlaceHolder",u.to.placeholder?u.to.placeholder:null)("nzNotFoundContent",_)("nzShowArrow",u.to.showArrow)("nzFilterOption",u.to.filterOption),e.xp6(1),e.Q6J("ngForOf",u.to.optionList),e.xp6(1),e.Q6J("ngIf",u.model.citation.length>0)}},directives:[j.Vq,x.JJ,x.oH,b.VQ,T.sg,j.Ip,T.O5,T.RF,T.n9,G],styles:["[_nghost-%COMP%]{display:block}.loading-icon[_ngcontent-%COMP%]{margin-right:8px}.source-citation[_ngcontent-%COMP%]{font-style:oblique}"],changeDetection:0}),o})(),wrappers:["form-field"]};var ce=r(7008);let ie=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,L.zf,$.L,U.U5,ce.B,C.sL]]}),o})(),le=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,x.UX,b.X0.forChild({types:[se]}),j.LV,ie]]}),o})();var ae=r(8979);let ue=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,x.UX,b.X0,S.u,C.sL,ie,le,ae.N]]}),o})();var de=r(9779);let pe=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[T.ez,b.X0.forChild({types:[z]}),ue,de.s]]}),o})()},7075:(k,B,r)=>{r.d(B,{l:()=>S});var T=r(9808),b=r(8776),e=r(5e3),x=r(9180),E=r(8227),I=r(6042),t=r(2643),Z=r(1793),v=r(2683);const N={name:"org-submit-button",component:(()=>{class C extends b.fS{constructor(){super(),this._selectedOrg=void 0,this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}get selectedOrg(){return this._selectedOrg}set selectedOrg(V){this._selectedOrg=V,this.formControl.setValue(V)}}return C.\u0275fac=function(V){return new(V||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["cvc-submit-button-type"]],features:[e.qOj],decls:5,vars:4,consts:[[3,"selectedOrg","nzSize","selectedOrgChange"],["orgButton",""],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary",3,"disabled","click"]],template:function(V,L){if(1&V){const $=e.EpF();e.TgZ(0,"cvc-form-buttons"),e.TgZ(1,"cvc-org-selector-btn-group",0,1),e.NdJ("selectedOrgChange",function(U){return L.selectedOrg=U}),e.TgZ(3,"button",2),e.NdJ("click",function(){return e.CHM($),e.MAs(2).refreshViewer()}),e._uU(4),e.qZA(),e.qZA(),e.qZA()}2&V&&(e.xp6(1),e.Q6J("selectedOrg",L.selectedOrg)("nzSize",L.to.submitSize),e.xp6(2),e.Q6J("disabled",!L.form.valid),e.xp6(1),e.hij(" ",L.to.submitLabel," "))},directives:[x.Z,E.q,I.ix,t.dQ,Z.m,v.w],styles:[""],changeDetection:0}),C})()};var A=r(4375),a=r(1825),z=r(4182);let S=(()=>{class C{}return C.\u0275fac=function(V){return new(V||C)},C.\u0275mod=e.oAB({type:C}),C.\u0275inj=e.cJS({imports:[[T.ez,z.UX,b.X0.forChild({types:[N]}),I.sL,A.R,a.A]]}),C})()},5472:(k,B,r)=>{r.d(B,{r:()=>A});var T=r(9808),b=r(6949),e=r(8776),x=r(7484),E=r(5482),I=r(1894),t=r(5109),Z=r(6789),v=r(5e3);const N={wrappers:[{name:"form-container",component:(()=>{class a extends e.n2{}return a.\u0275fac=function(){let z;return function(C){return(z||(z=v.n5z(a)))(C||a)}}(),a.\u0275cmp=v.Xpm({type:a,selectors:[["cvc-form-container-wrapper"]],features:[v.qOj],decls:5,vars:1,consts:[["nzSpan","24"],["nzSize","default",3,"nzTitle"],["fieldComponent",""]],template:function(S,C){1&S&&(v.TgZ(0,"nz-row"),v.TgZ(1,"nz-col",0),v.TgZ(2,"nz-card",1),v.GkF(3,null,2),v.qZA(),v.qZA(),v.qZA()),2&S&&(v.xp6(2),v.Q6J("nzTitle",C.to.label))},directives:[I.SK,I.t3,x.bd],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),a})()}]};let A=(()=>{class a{}return a.\u0275fac=function(S){return new(S||a)},a.\u0275mod=v.oAB({type:a}),a.\u0275inj=v.cJS({imports:[[T.ez,b.WG,e.X0.forChild(N),I.Jb,x.vh,E.cD,Z._,t.s]]}),a})()},444:(k,B,r)=>{function T(s){return s!==String(parseFloat(s))}r.d(B,{o6:()=>W});var E=Object.getOwnPropertyNames?function b(s){return Object.getOwnPropertyNames(s).filter(function(i){return s.propertyIsEnumerable(i)&&T(i)})}:Object.keys?function e(s){return Object.keys(s).filter(T)}:function x(s){var i=[];for(var g in s)s.hasOwnProperty(g)&&s.propertyIsEnumerable(g)&&T(g)&&i.push(g);return i},I=function(){function s(i){this.enumObj=i,this.keysList=Object.freeze(E(i));for(var g=this.keysList.length,F=new Array(g),l=new Map,p=0;p=g.length,value:g.keysList[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype.values=function(){var i,g=this,F=0;return(i={next:function(){var p={done:F>=g.length,value:g.valuesList[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype.entries=function(){var i,g=this,F=0;return(i={next:function(){var p={done:F>=g.length,value:g[F]};return++F,p}})[Symbol.iterator]=function(){return this},i},s.prototype[Symbol.iterator]=function(){return this.entries()},s.prototype.forEach=function(i,g){for(var F=this.length,l=0;l{r.d(B,{$:()=>oe,j:()=>re});var T=r(655),b=r(9808),e=r(5e3),x=r(2654),E=r(839),I=r(8929),t=r(6787),Z=r(3753),v=r(3489),M=r(353);const N={leading:!0,trailing:!1};class C{constructor(h,c,f,O){this.duration=h,this.scheduler=c,this.leading=f,this.trailing=O}call(h,c){return c.subscribe(new j(h,this.duration,this.scheduler,this.leading,this.trailing))}}class j extends v.L{constructor(h,c,f,O,P){super(h),this.duration=c,this.scheduler=f,this.leading=O,this.trailing=P,this._hasTrailingValue=!1,this._trailingValue=null}_next(h){this.throttled?this.trailing&&(this._trailingValue=h,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(V,this.duration,{subscriber:this})),this.leading?this.destination.next(h):this.trailing&&(this._trailingValue=h,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const h=this.throttled;h&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),h.unsubscribe(),this.remove(h),this.throttled=null)}}function V(y){const{subscriber:h}=y;h.clearThrottle()}var L=r(7625),$=r(4850),K=r(9439),U=r(1721),W=r(4090),s=r(925),i=r(5577),g=r(226);const F=["fixedEl"],l=["*"];var p=(()=>{return(y=p||(p={})).resize="resize",y.scroll="scroll",y.touchstart="touchstart",y.touchmove="touchmove",y.touchend="touchend",y.pageshow="pageshow",y.load="LOAD",p;var y})();function w(y){return function d(y){return"undefined"!=typeof window&&y===window}(y)?{top:0,left:0,bottom:0}:y.getBoundingClientRect()}const D="ant-affix";let oe=(()=>{class y{constructor(c,f,O,P,J,X,G,H,R,te){this.nzConfigService=O,this.scrollSrv=P,this.ngZone=J,this.platform=X,this.renderer=G,this.nzResizeObserver=H,this.cdr=R,this.directionality=te,this._nzModuleName="affix",this.nzChange=new e.vpe,this.dir="ltr",this.positionChangeSubscription=x.w.EMPTY,this.offsetChanged$=new E.t(1),this.destroy$=new I.xQ,this.placeholderNode=c.nativeElement,this.document=f}get target(){const c=this.nzTarget;return("string"==typeof c?this.document.querySelector(c):c)||window}ngOnInit(){var c;null===(c=this.directionality.change)||void 0===c||c.pipe((0,L.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.registerListeners(),this.updatePosition({}),this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(c){const{nzOffsetBottom:f,nzOffsetTop:O,nzTarget:P}=c;(f||O)&&this.offsetChanged$.next(),P&&this.registerListeners()}ngAfterViewInit(){this.registerListeners()}ngOnDestroy(){this.removeListeners()}registerListeners(){if(!this.platform.isBrowser)return;this.removeListeners();const c=this.target===window?this.document.body:this.target;this.positionChangeSubscription=this.ngZone.runOutsideAngular(()=>(0,t.T)(...Object.keys(p).map(f=>(0,Z.R)(this.target,f)),this.offsetChanged$.pipe((0,$.U)(()=>({}))),this.nzResizeObserver.observe(c)).pipe(function S(y,h=M.P,c=N){return f=>f.lift(new C(y,h,c.leading,c.trailing))}(20,void 0,{trailing:!0}),(0,L.R)(this.destroy$)).subscribe(f=>this.updatePosition(f))),this.timeout=setTimeout(()=>this.updatePosition({}))}removeListeners(){clearTimeout(this.timeout),this.positionChangeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}getOffset(c,f){const O=c.getBoundingClientRect(),P=w(f),J=this.scrollSrv.getScroll(f,!0),X=this.scrollSrv.getScroll(f,!1),G=this.document.body;return{top:O.top-P.top+J-(G.clientTop||0),left:O.left-P.left+X-(G.clientLeft||0),width:O.width,height:O.height}}setAffixStyle(c,f){const O=this.affixStyle,P=this.target===window;if("scroll"===c.type&&O&&f&&P||(0,U.wU)(O,f))return;const J=!!f,X=this.fixedEl.nativeElement;this.renderer.setStyle(X,"cssText",(0,U.GM)(f)),this.affixStyle=f,J?X.classList.add(D):X.classList.remove(D),this.updateRtlClass(),(f&&!O||!f&&O)&&this.nzChange.emit(J)}setPlaceholderStyle(c){(0,U.wU)(c,this.placeholderStyle)||(this.renderer.setStyle(this.placeholderNode,"cssText",(0,U.GM)(c)),this.placeholderStyle=c)}syncPlaceholderStyle(c){if(!this.affixStyle)return;this.renderer.setStyle(this.placeholderNode,"cssText",""),this.placeholderStyle=void 0;const f={width:this.placeholderNode.offsetWidth,height:this.fixedEl.nativeElement.offsetHeight};this.setAffixStyle(c,Object.assign(Object.assign({},this.affixStyle),f)),this.setPlaceholderStyle(f)}updatePosition(c){if(!this.platform.isBrowser)return;const f=this.target;let O=this.nzOffsetTop;const P=this.scrollSrv.getScroll(f,!0),J=this.getOffset(this.placeholderNode,f),X=this.fixedEl.nativeElement,G={width:X.offsetWidth,height:X.offsetHeight},H={top:!1,bottom:!1};"number"!=typeof O&&"number"!=typeof this.nzOffsetBottom?(H.top=!0,O=0):(H.top="number"==typeof O,H.bottom="number"==typeof this.nzOffsetBottom);const R=w(f),te=f.innerHeight||f.clientHeight;if(P>=J.top-O&&H.top){const q=J.width;this.setAffixStyle(c,{position:"fixed",top:R.top+O,left:R.left+J.left,width:q}),this.setPlaceholderStyle({width:q,height:G.height})}else if(P<=J.top+G.height+this.nzOffsetBottom-te&&H.bottom){const q=f===window?0:window.innerHeight-R.bottom,ee=J.width;this.setAffixStyle(c,{position:"fixed",bottom:q+this.nzOffsetBottom,left:R.left+J.left,width:ee}),this.setPlaceholderStyle({width:ee,height:J.height})}else c.type===p.resize&&this.affixStyle&&"fixed"===this.affixStyle.position&&this.placeholderNode.offsetWidth?this.setAffixStyle(c,Object.assign(Object.assign({},this.affixStyle),{width:this.placeholderNode.offsetWidth})):this.setAffixStyle(c),this.setPlaceholderStyle();"resize"===c.type&&this.syncPlaceholderStyle(c)}updateRtlClass(){const c=this.fixedEl.nativeElement;"rtl"===this.dir&&c.classList.contains(D)?c.classList.add(`${D}-rtl`):c.classList.remove(`${D}-rtl`)}}return y.\u0275fac=function(c){return new(c||y)(e.Y36(e.SBq),e.Y36(b.K0),e.Y36(K.jY),e.Y36(W.MF),e.Y36(e.R0b),e.Y36(s.t4),e.Y36(e.Qsj),e.Y36(i.D3),e.Y36(e.sBO),e.Y36(g.Is,8))},y.\u0275cmp=e.Xpm({type:y,selectors:[["nz-affix"]],viewQuery:function(c,f){if(1&c&&e.Gf(F,7),2&c){let O;e.iGM(O=e.CRH())&&(f.fixedEl=O.first)}},inputs:{nzTarget:"nzTarget",nzOffsetTop:"nzOffsetTop",nzOffsetBottom:"nzOffsetBottom"},outputs:{nzChange:"nzChange"},exportAs:["nzAffix"],features:[e.TTD],ngContentSelectors:l,decls:3,vars:0,consts:[["fixedEl",""]],template:function(c,f){1&c&&(e.F$t(),e.TgZ(0,"div",null,0),e.Hsn(2),e.qZA())},encapsulation:2,changeDetection:0}),(0,T.gn)([(0,K.oS)(),(0,U.Rn)(void 0)],y.prototype,"nzOffsetTop",void 0),(0,T.gn)([(0,K.oS)(),(0,U.Rn)(void 0)],y.prototype,"nzOffsetBottom",void 0),y})(),re=(()=>{class y{}return y.\u0275fac=function(c){return new(c||y)},y.\u0275mod=e.oAB({type:y}),y.\u0275inj=e.cJS({imports:[[g.vT,b.ez,s.ud]]}),y})()}}]); \ No newline at end of file diff --git a/server/public/7012.25a2cf60fc1238c7.js b/server/public/7012.2a1cc8debc733727.js similarity index 91% rename from server/public/7012.25a2cf60fc1238c7.js rename to server/public/7012.2a1cc8debc733727.js index a3d771c7d..db1ab39e3 100644 --- a/server/public/7012.25a2cf60fc1238c7.js +++ b/server/public/7012.2a1cc8debc733727.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7012],{7012:(Re,C,a)=>{a.r(C),a.d(C,{VariantsReviseModule:()=>ze});var p=a(9808),d=a(325),m=a(373),R=a(1059),A=a(4850),e=a(5e3),u=a(712),P=a(9350),F=a(8992),f=a(1945),y=a(647),g=a(1894),Z=a(8616),v=a(6949);function N(n,r){1&n&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function B(n,r){1&n&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function J(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,N,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,B,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&n){const t=r.ngIf,o=e.MAs(14),i=e.oxw();e.xp6(1),e.Q6J("displayName",t.name),e.xp6(5),e.hij(" ",t.name," "),e.xp6(2),e.hij(" ",t.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,i.isSignedIn$))("ngIfElse",o)}}let D=(()=>{class n{constructor(t,o,i){this.gql=t,this.route=o,this.viewerService=i,this.routeSub=this.route.params.subscribe(s=>{let T=this.gql.watch({variantId:+s.variantId}).valueChanges;this.loading$=T.pipe((0,m.j)("loading"),(0,R.O)(!0)),this.variant$=T.pipe((0,m.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,m.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,m.j)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,m.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,A.U)(t=>t.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.iJT),e.Y36(d.gz),e.Y36(P.a))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variant"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(t,o){1&t&&(e.YNc(0,J,15,7,"ng-container",0),e.ALo(1,"async")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,o.variant$))},directives:[p.O5,F.I,f.$O,f.u9,y.Ls,f.yG,f.u5,d.lC,g.SK,g.t3,Z.u],pipes:[p.Ov,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 E=a(3773),w=a(8390),G=a(4375),Q=a(7008),_=a(1825),h=a(8776),O=a(6042),V=a(2359),x=a(4546),c=a(4182),I=a(5109),$=a(6501),U=a(7484),Y=a(5482),j=a(6462),L=a(7075),X=a(9911),H=a(4623),W=a(9990),k=a(7462),K=a(4889),S=a(7525),q=a(5472),z=a(1047),M=a(8481);function ee(n,r){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"input",2),e.NdJ("keydown.enter",function(i){return e.CHM(t),e.oxw().onEnter(i)}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("formControl",t.formControl)("formlyAttributes",t.field)}}function te(n,r){if(1&n&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formControl.value)}}const ne={name:"tag-input",component:(()=>{class n extends h.fS{constructor(){super(),this.defaultOptions={templateOptions:{placeholder:"Enter value"},modelOptions:{updateOn:"blur"}}}onEnter(t){this.formControl.setValue(t.target.value)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-tag-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["tagItem",""],["nz-input","",3,"formControl","formlyAttributes","keydown.enter"]],template:function(t,o){if(1&t&&(e.YNc(0,ee,2,2,"ng-container",0),e.YNc(1,te,2,1,"ng-template",null,1,e.W1O)),2&t){const i=e.MAs(2);e.Q6J("ngIf",!o.formControl.value)("ngIfElse",i)}},directives:[p.O5,z.Zp,c.Fj,c.JJ,c.oH,h.VQ,M.j],styles:[""],changeDetection:0}),n})()};let ae=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,c.UX,v.WG,h.X0.forChild({types:[ne]}),M.X,z.o7]]}),n})();var ie=a(7338);let re=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,d.Bz,v.WG,c.UX,h.X0,I.s,O.sL,U.vh,Y.cD,x.U5,V.L,g.Jb,y.PV,O.sL,j.m,S.j,L.l,_.A,q.r,Q.B,G.R,X.G,H.K,w.N,E.g,$.r,W.M,k.o,K.E,ae,ie.z,I.s]]}),n})(),oe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,re]]}),n})();var se=a(8929),b=a(7625),l=a(6738),le=a(444);function pe(n){switch(n){case"GRCH37":return"GRCh37 (hg19)";case"GRCH38":return"GRCh38 (hg38)";case"NCBI36":return"NCBI36 (hg18)";default:return n}}var ce=a(6123),de=a(9169),me=a(822);function ue(n,r){1&n&&e.GkF(0)}function fe(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(i){return e.CHM(t),e.oxw(2).formModel=i}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("form",t.formGroup)("fields",t.formFields)("model",t.formModel)("options",t.formOptions)}}function ge(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(t);const i=e.oxw();return i.submitRevision(i.formModel)}),e.YNc(1,ue,1,0,"ng-container",4),e.YNc(2,fe,1,4,"formly-form",5),e.qZA()}if(2&n){const t=e.oxw(),o=e.MAs(3);e.Q6J("formGroup",t.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(1),e.Q6J("ngIf",!t.success)}}function he(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("errors",t.errorMessages)}}function ve(n,r){1&n&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function ye(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,ve,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&n){const t=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",t)}}function xe(n,r){if(1&n&&(e.YNc(0,he,3,1,"ng-container",7),e.YNc(1,ye,4,1,"ng-container",7)),2&n){const t=e.oxw();e.Q6J("ngIf",t.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",t.success)}}let be=(()=>{class n{constructor(t,o,i){this.suggestRevisionGQL=t,this.networkErrorService=o,this.revisableFieldsGQL=i,this.success=!1,this.errorMessages=[],this.loading=!1,this.formGroup=new c.cw({}),this.formOptions={},this.suggestRevisionMutator=new ce.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Variant Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"name",type:"input",templateOptions:{label:"Name",helpText:'Enter the name of the Variant according to the Variant Curation SOP',required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Variant Description",placeholder:"Enter a description for this variant.",helpText:'Provide a summary of the clinical relevance of this Variant. The Variant Summary should be a synthesis of the existing Evidence Statements for this variant. Basic information on recurrence rates and biological/functional impact of the Variant may be included, but the focus should be on the clinical impact (i.e. predictive, prognostic, diagnostic, or predisposing relevance). By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal).',required:!1}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Description Sources",addText:"Add a Source",helpText:"Add any Sources used as references for this Variant's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!1}}},{key:"variantAliases",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Aliases",addText:"Add an Alias",helpText:"List any aliases commonly used to refer to this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Add Alias",minLength:3}}},{key:"hgvsDescriptions",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"HGVS Descriptions",addText:"Add an HGVS Description",helpText:"Please specify any HGVS descriptions for this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Enter an HGVS string"}}},{key:"clinvarStatus",type:"select",templateOptions:{label:"Do Clinvar IDs exist for this variant?",placeholder:"Select Clinvar ID status",helpText:"Specify if Clinvar IDs exist, or if they are not applicable for this variant.",options:[{value:l.li.NotApplicable,label:"Clinvar IDs not applicable for this variant"},{value:l.li.NoneFound,label:"Clinvar IDs do not exist for this variant"},{value:l.li.Found,label:"Clinvar IDs were found for this variant"}]}},{key:"clinvarIds",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"ClinVar IDs",addText:"Add a ClinVar ID",helpText:"Specify any corresponding ClinVar identifiers for this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Enter a ClinVar ID"}},validators:{validation:["clinvar"]},hideExpression:(s,T,Me)=>Me.form.value.clinvarStatus!==l.li.Found},{key:"variantTypes",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Types",addText:"Add a Variant Type",helpText:'Add one or more variant types from the Sequence Ontology (e.g., missense, loss-of-function). Be specific as possible, avoid the addition of root concepts, and use the sequence_variant tree of the sequence ontology.'},fieldArray:{type:"variant-type-input",templateOptions:{required:!1}}},{template:"

Primary Coordinates

"},{key:"referenceBuild",type:"select",defaultValue:u.JDX.Grch37,templateOptions:{label:"Reference Build",required:!1,helpText:"Specify the human genome reference sequence from which these coordinates are obtained.",options:(0,le.o6)(u.JDX).map(s=>({value:s,label:pe(s)}))}},{key:"ensemblVersion",type:"cvc-ensembl-input"},{key:"referenceBases",type:"input",defaultValue:void 0,templateOptions:{label:"Reference Bases",helpText:"The nucleotide(s) of the reference genome affected by the variant. Only used for SNVs and Indels (otherwise leave blank).",required:!1},validators:{validation:["nucleotide"]}},{key:"variantBases",type:"input",defaultValue:void 0,templateOptions:{label:"Variant Bases",helpText:"The nucleotide(s) of the variant allele. Only used for SNVs and Indels (otherwise leave blank).",required:!1},validators:{validation:["nucleotide"]}},{key:"primaryCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",helpText:"Specify the chromosome in which this variant occurs (e.g. 17).",required:!1,options:l.aP}},{key:"primaryCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build.",required:!1},validators:{validation:["integer"]}},{key:"primaryCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build.",required:!1},validators:{validation:["integer"]}},{key:"primaryCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{template:"

Secondary Coordinates

"},{key:"secondaryCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",required:!1,options:l.aP,helpText:"If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner."}},{key:"secondaryCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this 3-prime partner fusion variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"secondaryCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this 3-prime partner fusion variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"secondaryCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision to this variant.",helpText:"Please enter a comment describing your revision to this variant.",required:!1,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new se.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).subscribe(({data:{variant:t}})=>{t&&(this.formModel=this.toFormModel(t))},t=>{console.error("Error retrieving variant."),console.error(t)},()=>{this.formGroup.markAllAsTouched();const t=this.formGroup.get("fields.comment");t&&t.markAsUntouched()})}getClinvarStatus(t){return"NONE FOUND"===t[0]?l.li.NoneFound:"N/A"===t[0]?l.li.NotApplicable:l.li.Found}getClinvarIds(t){return"NONE FOUND"===t[0]||"N/A"===t[0]?[]:t}toFormModel(t){var o,i;return{fields:Object.assign(Object.assign({},t),{clinvarStatus:this.getClinvarStatus(t.clinvarIds),clinvarIds:this.getClinvarIds(t.clinvarIds),referenceBases:t.referenceBases,variantBases:t.variantBases,comment:null===(o=this.formModel)||void 0===o?void 0:o.fields.comment,organization:null===(i=this.formModel)||void 0===i?void 0:i.fields.organization})}}submitRevision(t){let o=this.toRevisionInput(t);if(o){let i=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:o});i.submitSuccess$.pipe((0,b.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),i.submitError$.pipe((0,b.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,b.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toRevisionInput(t){var o;if(t){const i=t.fields;return Object.assign(Object.assign({id:i.id},t),{fields:{name:i.name,geneId:i.gene.id,ensemblVersion:l.uP(i.ensemblVersion),description:l.xt(i.description),clinvarIds:l.Zg(i.clinvarIds,i.clinvarStatus),primaryCoordinates:l._$(i.primaryCoordinates),secondaryCoordinates:l._$(i.secondaryCoordinates),referenceBases:l.xt(i.referenceBases),variantBases:l.xt(i.variantBases),referenceBuild:l.dh(i.referenceBuild),hgvsDescriptions:i.hgvsDescriptions,sourceIds:t.fields.sources.map(s=>+s.id),variantTypeIds:t.fields.variantTypes.map(s=>+s.id),aliases:t.fields.variantAliases},comment:""==i.comment?void 0:i.comment,organizationId:null===(o=t.fields.organization)||void 0===o?void 0:o.id})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.Xft),e.Y36(de.Y),e.Y36(u.nnL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variant-revise-form"]],inputs:{variantId:"variantId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(t,o){1&t&&(e.TgZ(0,"nz-spin",0),e.YNc(1,ge,3,3,"form",1),e.qZA(),e.YNc(2,xe,2,2,"ng-template",null,2,e.W1O)),2&t&&(e.Q6J("nzSpinning",o.loading),e.xp6(1),e.Q6J("ngIf",o.formModel))},directives:[S.W,p.O5,c._Y,c.JL,x.Lr,c.sg,p.tP,h.T7,g.SK,x.Nx,me.V,V.r,d.yS],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}"]}),n})();function Te(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-variant-revise-form",2),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("variantId",t.variantId)}}function Ce(n,r){1&n&&e._uU(0,"Loading Variant...")}const Oe=[{path:"",component:D,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class n{constructor(t){this.route=t,this.routeParams$=this.route.params.subscribe(o=>{this.variantId=+o.variantId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variants-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariant",""],[3,"variantId"]],template:function(t,o){if(1&t&&(e.YNc(0,Te,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&t){const i=e.MAs(2);e.Q6J("ngIf",o.variantId)("ngIfElse",i)}},directives:[p.O5,be],styles:[""]}),n})(),data:{breadcrumb:"Suggest Revision"}}]}];let Ve=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.Bz.forChild(Oe),oe],d.Bz]}),n})();var Ie=a(5630),Se=a(9386);let ze=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,Ve,f.KJ,y.PV,Ie.D,Se.a,v.WG,g.Jb]]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7012],{7012:(Re,C,a)=>{a.r(C),a.d(C,{VariantsReviseModule:()=>ze});var p=a(9808),d=a(325),m=a(373),R=a(1059),A=a(4850),e=a(5e3),u=a(712),P=a(9350),F=a(8992),f=a(1945),y=a(647),g=a(1894),Z=a(8616),v=a(6949);function N(n,r){1&n&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function B(n,r){1&n&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function J(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,N,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,B,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&n){const t=r.ngIf,o=e.MAs(14),i=e.oxw();e.xp6(1),e.Q6J("displayName",t.name),e.xp6(5),e.hij(" ",t.name," "),e.xp6(2),e.hij(" ",t.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,i.isSignedIn$))("ngIfElse",o)}}let D=(()=>{class n{constructor(t,o,i){this.gql=t,this.route=o,this.viewerService=i,this.routeSub=this.route.params.subscribe(s=>{let T=this.gql.watch({variantId:+s.variantId}).valueChanges;this.loading$=T.pipe((0,m.j)("loading"),(0,R.O)(!0)),this.variant$=T.pipe((0,m.j)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,m.j)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,m.j)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,m.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,A.U)(t=>t.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.iJT),e.Y36(d.gz),e.Y36(P.a))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:variant"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(t,o){1&t&&(e.YNc(0,J,15,7,"ng-container",0),e.ALo(1,"async")),2&t&&e.Q6J("ngIf",e.lcZ(1,1,o.variant$))},directives:[p.O5,F.I,f.$O,f.u9,y.Ls,f.yG,f.u5,d.lC,g.SK,g.t3,Z.u],pipes:[p.Ov,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 E=a(3773),w=a(8390),G=a(4375),Q=a(7008),_=a(1825),h=a(8776),O=a(6042),V=a(2359),x=a(4546),c=a(4182),I=a(5109),$=a(6501),U=a(7484),Y=a(5482),j=a(6462),L=a(4623),X=a(9990),H=a(7462),W=a(4889),S=a(7525),k=a(5472),z=a(1047),M=a(8481);function K(n,r){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"input",2),e.NdJ("keydown.enter",function(i){return e.CHM(t),e.oxw().onEnter(i)}),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("formControl",t.formControl)("formlyAttributes",t.field)}}function q(n,r){if(1&n&&(e.TgZ(0,"nz-tag"),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.formControl.value)}}const ee={name:"tag-input",component:(()=>{class n extends h.fS{constructor(){super(),this.defaultOptions={templateOptions:{placeholder:"Enter value"},modelOptions:{updateOn:"blur"}}}onEnter(t){this.formControl.setValue(t.target.value)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-tag-input-type"]],features:[e.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["tagItem",""],["nz-input","",3,"formControl","formlyAttributes","keydown.enter"]],template:function(t,o){if(1&t&&(e.YNc(0,K,2,2,"ng-container",0),e.YNc(1,q,2,1,"ng-template",null,1,e.W1O)),2&t){const i=e.MAs(2);e.Q6J("ngIf",!o.formControl.value)("ngIfElse",i)}},directives:[p.O5,z.Zp,c.Fj,c.JJ,c.oH,h.VQ,M.j],styles:[""],changeDetection:0}),n})()};let te=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,c.UX,v.WG,h.X0.forChild({types:[ee]}),M.X,z.o7]]}),n})();var ne=a(7338),ae=a(3022),ie=a(9911);let re=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,d.Bz,v.WG,c.UX,h.X0,I.s,O.sL,U.vh,Y.cD,x.U5,V.L,g.Jb,y.PV,O.sL,j.m,S.j,ae.e,_.A,k.r,Q.B,G.R,ie.G,L.K,w.N,E.g,$.r,X.M,H.o,W.E,te,ne.z,I.s]]}),n})(),oe=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,re]]}),n})();var se=a(8929),b=a(7625),l=a(6738),le=a(444);function pe(n){switch(n){case"GRCH37":return"GRCh37 (hg19)";case"GRCH38":return"GRCh38 (hg38)";case"NCBI36":return"NCBI36 (hg18)";default:return n}}var ce=a(6123),de=a(9169),me=a(822);function ue(n,r){1&n&&e.GkF(0)}function fe(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(i){return e.CHM(t),e.oxw(2).formModel=i}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("form",t.formGroup)("fields",t.formFields)("model",t.formModel)("options",t.formOptions)}}function ge(n,r){if(1&n){const t=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(t);const i=e.oxw();return i.submitRevision(i.formModel)}),e.YNc(1,ue,1,0,"ng-container",4),e.YNc(2,fe,1,4,"formly-form",5),e.qZA()}if(2&n){const t=e.oxw(),o=e.MAs(3);e.Q6J("formGroup",t.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",o),e.xp6(1),e.Q6J("ngIf",!t.success)}}function he(n,r){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("errors",t.errorMessages)}}function ve(n,r){1&n&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function ye(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,ve,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&n){const t=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",t)}}function xe(n,r){if(1&n&&(e.YNc(0,he,3,1,"ng-container",7),e.YNc(1,ye,4,1,"ng-container",7)),2&n){const t=e.oxw();e.Q6J("ngIf",t.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",t.success)}}let be=(()=>{class n{constructor(t,o,i){this.suggestRevisionGQL=t,this.networkErrorService=o,this.revisableFieldsGQL=i,this.success=!1,this.errorMessages=[],this.loading=!1,this.formGroup=new c.cw({}),this.formOptions={},this.suggestRevisionMutator=new ce.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Variant Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"name",type:"input",templateOptions:{label:"Name",helpText:'Enter the name of the Variant according to the Variant Curation SOP',required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Variant Description",placeholder:"Enter a description for this variant.",helpText:'Provide a summary of the clinical relevance of this Variant. The Variant Summary should be a synthesis of the existing Evidence Statements for this variant. Basic information on recurrence rates and biological/functional impact of the Variant may be included, but the focus should be on the clinical impact (i.e. predictive, prognostic, diagnostic, or predisposing relevance). By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal).',required:!1}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Description Sources",addText:"Add a Source",helpText:"Add any Sources used as references for this Variant's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!1}}},{key:"variantAliases",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Aliases",addText:"Add an Alias",helpText:"List any aliases commonly used to refer to this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Add Alias",minLength:3}}},{key:"hgvsDescriptions",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"HGVS Descriptions",addText:"Add an HGVS Description",helpText:"Please specify any HGVS descriptions for this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Enter an HGVS string"}}},{key:"clinvarStatus",type:"select",templateOptions:{label:"Do Clinvar IDs exist for this variant?",placeholder:"Select Clinvar ID status",helpText:"Specify if Clinvar IDs exist, or if they are not applicable for this variant.",options:[{value:l.li.NotApplicable,label:"Clinvar IDs not applicable for this variant"},{value:l.li.NoneFound,label:"Clinvar IDs do not exist for this variant"},{value:l.li.Found,label:"Clinvar IDs were found for this variant"}]}},{key:"clinvarIds",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"ClinVar IDs",addText:"Add a ClinVar ID",helpText:"Specify any corresponding ClinVar identifiers for this variant."},fieldArray:{type:"tag-input",templateOptions:{required:!1,placeholder:"Enter a ClinVar ID"}},validators:{validation:["clinvar"]},hideExpression:(s,T,Me)=>Me.form.value.clinvarStatus!==l.li.Found},{key:"variantTypes",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant Types",addText:"Add a Variant Type",helpText:'Add one or more variant types from the Sequence Ontology (e.g., missense, loss-of-function). Be specific as possible, avoid the addition of root concepts, and use the sequence_variant tree of the sequence ontology.'},fieldArray:{type:"variant-type-input",templateOptions:{required:!1}}},{template:"

Primary Coordinates

"},{key:"referenceBuild",type:"select",defaultValue:u.JDX.Grch37,templateOptions:{label:"Reference Build",required:!1,helpText:"Specify the human genome reference sequence from which these coordinates are obtained.",options:(0,le.o6)(u.JDX).map(s=>({value:s,label:pe(s)}))}},{key:"ensemblVersion",type:"cvc-ensembl-input"},{key:"referenceBases",type:"input",defaultValue:void 0,templateOptions:{label:"Reference Bases",helpText:"The nucleotide(s) of the reference genome affected by the variant. Only used for SNVs and Indels (otherwise leave blank).",required:!1},validators:{validation:["nucleotide"]}},{key:"variantBases",type:"input",defaultValue:void 0,templateOptions:{label:"Variant Bases",helpText:"The nucleotide(s) of the variant allele. Only used for SNVs and Indels (otherwise leave blank).",required:!1},validators:{validation:["nucleotide"]}},{key:"primaryCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",helpText:"Specify the chromosome in which this variant occurs (e.g. 17).",required:!1,options:l.aP}},{key:"primaryCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build.",required:!1},validators:{validation:["integer"]}},{key:"primaryCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build.",required:!1},validators:{validation:["integer"]}},{key:"primaryCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{template:"

Secondary Coordinates

"},{key:"secondaryCoordinates.chromosome",type:"select",defaultValue:void 0,templateOptions:{label:"Chromosome",required:!1,options:l.aP,helpText:"If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner."}},{key:"secondaryCoordinates.start",type:"input",templateOptions:{label:"Start",helpText:"Enter the left/first coordinate of this 3-prime partner fusion variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"secondaryCoordinates.stop",type:"input",templateOptions:{label:"Stop",helpText:"Provide the right/second coordinate of this 3-prime partner fusion variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build."},validators:{validation:["integer"]}},{key:"secondaryCoordinates.representativeTranscript",type:"input",templateOptions:{label:"Representative Transcript",helpText:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision to this variant.",helpText:"Please enter a comment describing your revision to this variant.",required:!1,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Variant Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new se.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).subscribe(({data:{variant:t}})=>{t&&(this.formModel=this.toFormModel(t))},t=>{console.error("Error retrieving variant."),console.error(t)},()=>{this.formGroup.markAllAsTouched();const t=this.formGroup.get("fields.comment");t&&t.markAsUntouched()})}getClinvarStatus(t){return"NONE FOUND"===t[0]?l.li.NoneFound:"N/A"===t[0]?l.li.NotApplicable:l.li.Found}getClinvarIds(t){return"NONE FOUND"===t[0]||"N/A"===t[0]?[]:t}toFormModel(t){var o,i;return{fields:Object.assign(Object.assign({},t),{clinvarStatus:this.getClinvarStatus(t.clinvarIds),clinvarIds:this.getClinvarIds(t.clinvarIds),referenceBases:t.referenceBases,variantBases:t.variantBases,comment:null===(o=this.formModel)||void 0===o?void 0:o.fields.comment,organization:null===(i=this.formModel)||void 0===i?void 0:i.fields.organization})}}submitRevision(t){let o=this.toRevisionInput(t);if(o){let i=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:o});i.submitSuccess$.pipe((0,b.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),i.submitError$.pipe((0,b.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,b.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toRevisionInput(t){var o;if(t){const i=t.fields;return Object.assign(Object.assign({id:i.id},t),{fields:{name:i.name,geneId:i.gene.id,ensemblVersion:l.uP(i.ensemblVersion),description:l.xt(i.description),clinvarIds:l.Zg(i.clinvarIds,i.clinvarStatus),primaryCoordinates:l._$(i.primaryCoordinates),secondaryCoordinates:l._$(i.secondaryCoordinates),referenceBases:l.xt(i.referenceBases),variantBases:l.xt(i.variantBases),referenceBuild:l.dh(i.referenceBuild),hgvsDescriptions:i.hgvsDescriptions,sourceIds:t.fields.sources.map(s=>+s.id),variantTypeIds:t.fields.variantTypes.map(s=>+s.id),aliases:t.fields.variantAliases},comment:""==i.comment?void 0:i.comment,organizationId:null===(o=t.fields.organization)||void 0===o?void 0:o.id})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(u.Xft),e.Y36(de.Y),e.Y36(u.nnL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variant-revise-form"]],inputs:{variantId:"variantId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(t,o){1&t&&(e.TgZ(0,"nz-spin",0),e.YNc(1,ge,3,3,"form",1),e.qZA(),e.YNc(2,xe,2,2,"ng-template",null,2,e.W1O)),2&t&&(e.Q6J("nzSpinning",o.loading),e.xp6(1),e.Q6J("ngIf",o.formModel))},directives:[S.W,p.O5,c._Y,c.JL,x.Lr,c.sg,p.tP,h.T7,g.SK,x.Nx,me.V,V.r,d.yS],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}"]}),n})();function Te(n,r){if(1&n&&(e.ynx(0),e._UZ(1,"cvc-variant-revise-form",2),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("variantId",t.variantId)}}function Ce(n,r){1&n&&e._uU(0,"Loading Variant...")}const Oe=[{path:"",component:D,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class n{constructor(t){this.route=t,this.routeParams$=this.route.params.subscribe(o=>{this.variantId=+o.variantId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(d.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-variants-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingVariant",""],[3,"variantId"]],template:function(t,o){if(1&t&&(e.YNc(0,Te,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&t){const i=e.MAs(2);e.Q6J("ngIf",o.variantId)("ngIfElse",i)}},directives:[p.O5,be],styles:[""]}),n})(),data:{breadcrumb:"Suggest Revision"}}]}];let Ve=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[d.Bz.forChild(Oe),oe],d.Bz]}),n})();var Ie=a(5630),Se=a(9386);let ze=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,Ve,f.KJ,y.PV,Ie.D,Se.a,v.WG,g.Jb]]}),n})()}}]); \ No newline at end of file diff --git a/server/public/7064.584260498fd7f7a1.js b/server/public/7064.584260498fd7f7a1.js deleted file mode 100644 index e31747011..000000000 --- a/server/public/7064.584260498fd7f7a1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7064],{5577:(_e,K,d)=>{d.d(K,{D3:()=>$,y7:()=>Q});var w=d(5e3),A=d(3191),l=d(2916),f=d(8929);let e=(()=>{class b{create(m){return"undefined"==typeof ResizeObserver?null:new ResizeObserver(m)}}return b.\u0275fac=function(m){return new(m||b)},b.\u0275prov=w.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})(),$=(()=>{class b{constructor(m){this.nzResizeObserverFactory=m,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((m,N)=>this.cleanupObserver(N))}observe(m){const N=(0,A.fI)(m);return new l.y(P=>{const W=this.observeElement(N).subscribe(P);return()=>{W.unsubscribe(),this.unobserveElement(N)}})}observeElement(m){if(this.observedElements.has(m))this.observedElements.get(m).count++;else{const N=new f.xQ,P=this.nzResizeObserverFactory.create(E=>N.next(E));P&&P.observe(m),this.observedElements.set(m,{observer:P,stream:N,count:1})}return this.observedElements.get(m).stream}unobserveElement(m){this.observedElements.has(m)&&(this.observedElements.get(m).count--,this.observedElements.get(m).count||this.cleanupObserver(m))}cleanupObserver(m){if(this.observedElements.has(m)){const{observer:N,stream:P}=this.observedElements.get(m);N&&N.disconnect(),P.complete(),this.observedElements.delete(m)}}}return b.\u0275fac=function(m){return new(m||b)(w.LFG(e))},b.\u0275prov=w.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})(),Q=(()=>{class b{}return b.\u0275fac=function(m){return new(m||b)},b.\u0275mod=w.oAB({type:b}),b.\u0275inj=w.cJS({providers:[e]}),b})()},1945:(_e,K,d)=>{d.d(K,{$O:()=>re,u5:()=>te,Jp:()=>ie,KJ:()=>ce,yG:()=>ee,ZJ:()=>ne,u9:()=>U});var w=d(226),A=d(9808),l=d(5e3),f=d(969),e=d(647),$=d(655),q=d(8929),Q=d(7625),b=d(4850),F=d(9439),m=d(948),N=d(5577);function P(r,_){if(1&r&&(l.ynx(0),l._UZ(1,"i",9),l.BQk()),2&r){const h=_.$implicit,S=l.oxw(2);l.xp6(1),l.Q6J("nzType",h||S.getBackIcon())}}function E(r,_){if(1&r){const h=l.EpF();l.TgZ(0,"div",6),l.NdJ("click",function(){return l.CHM(h),l.oxw().onBack()}),l.TgZ(1,"div",7),l.YNc(2,P,2,1,"ng-container",8),l.qZA(),l.qZA()}if(2&r){const h=l.oxw();l.xp6(2),l.Q6J("nzStringTemplateOutlet",h.nzBackIcon)}}function W(r,_){if(1&r&&(l.ynx(0),l._uU(1),l.BQk()),2&r){const h=l.oxw(2);l.xp6(1),l.Oqu(h.nzTitle)}}function v(r,_){if(1&r&&(l.TgZ(0,"span",10),l.YNc(1,W,2,1,"ng-container",8),l.qZA()),2&r){const h=l.oxw();l.xp6(1),l.Q6J("nzStringTemplateOutlet",h.nzTitle)}}function y(r,_){1&r&&l.Hsn(0,6,["*ngIf","!nzTitle"])}function D(r,_){if(1&r&&(l.ynx(0),l._uU(1),l.BQk()),2&r){const h=l.oxw(2);l.xp6(1),l.Oqu(h.nzSubtitle)}}function p(r,_){if(1&r&&(l.TgZ(0,"span",11),l.YNc(1,D,2,1,"ng-container",8),l.qZA()),2&r){const h=l.oxw();l.xp6(1),l.Q6J("nzStringTemplateOutlet",h.nzSubtitle)}}function O(r,_){1&r&&l.Hsn(0,7,["*ngIf","!nzSubtitle"])}const J=[[["nz-breadcrumb","nz-page-header-breadcrumb",""]],[["nz-avatar","nz-page-header-avatar",""]],[["nz-page-header-tags"],["","nz-page-header-tags",""]],[["nz-page-header-extra"],["","nz-page-header-extra",""]],[["nz-page-header-content"],["","nz-page-header-content",""]],[["nz-page-header-footer"],["","nz-page-header-footer",""]],[["nz-page-header-title"],["","nz-page-header-title",""]],[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]]],x=["nz-breadcrumb[nz-page-header-breadcrumb]","nz-avatar[nz-page-header-avatar]","nz-page-header-tags, [nz-page-header-tags]","nz-page-header-extra, [nz-page-header-extra]","nz-page-header-content, [nz-page-header-content]","nz-page-header-footer, [nz-page-header-footer]","nz-page-header-title, [nz-page-header-title]","nz-page-header-subtitle, [nz-page-header-subtitle]"];let U=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=l.lG2({type:r,selectors:[["nz-page-header-title"],["","nz-page-header-title",""]],hostAttrs:[1,"ant-page-header-heading-title"],exportAs:["nzPageHeaderTitle"]}),r})(),ee=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=l.lG2({type:r,selectors:[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]],hostAttrs:[1,"ant-page-header-heading-sub-title"],exportAs:["nzPageHeaderSubtitle"]}),r})(),te=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=l.lG2({type:r,selectors:[["nz-page-header-content"],["","nz-page-header-content",""]],hostAttrs:[1,"ant-page-header-content"],exportAs:["nzPageHeaderContent"]}),r})(),ne=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=l.lG2({type:r,selectors:[["nz-page-header-tags"],["","nz-page-header-tags",""]],hostAttrs:[1,"ant-page-header-heading-tags"],exportAs:["nzPageHeaderTags"]}),r})(),ie=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=l.lG2({type:r,selectors:[["nz-page-header-extra"],["","nz-page-header-extra",""]],hostAttrs:[1,"ant-page-header-heading-extra"],exportAs:["nzPageHeaderExtra"]}),r})(),oe=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=l.lG2({type:r,selectors:[["nz-page-header-footer"],["","nz-page-header-footer",""]],hostAttrs:[1,"ant-page-header-footer"],exportAs:["nzPageHeaderFooter"]}),r})(),ae=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=l.lG2({type:r,selectors:[["nz-breadcrumb","nz-page-header-breadcrumb",""]],exportAs:["nzPageHeaderBreadcrumb"]}),r})(),re=(()=>{class r{constructor(h,S,L,Y,de,he){this.location=h,this.nzConfigService=S,this.elementRef=L,this.nzResizeObserver=Y,this.cdr=de,this.directionality=he,this._nzModuleName="pageHeader",this.nzBackIcon=null,this.nzGhost=!0,this.nzBack=new l.vpe,this.compact=!1,this.destroy$=new q.xQ,this.dir="ltr"}ngOnInit(){var h;null===(h=this.directionality.change)||void 0===h||h.pipe((0,Q.R)(this.destroy$)).subscribe(S=>{this.dir=S,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,b.U)(([h])=>h.contentRect.width),(0,Q.R)(this.destroy$)).subscribe(h=>{this.compact=h<768,this.cdr.markForCheck()})}onBack(){if(this.nzBack.observers.length)this.nzBack.emit();else{if(!this.location)throw new Error(`${m.Bq} you should import 'RouterModule' or register 'Location' if you want to use 'nzBack' default event!`);this.location.back()}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getBackIcon(){return"rtl"===this.dir?"arrow-right":"arrow-left"}}return r.\u0275fac=function(h){return new(h||r)(l.Y36(A.Ye,8),l.Y36(F.jY),l.Y36(l.SBq),l.Y36(N.D3),l.Y36(l.sBO),l.Y36(w.Is,8))},r.\u0275cmp=l.Xpm({type:r,selectors:[["nz-page-header"]],contentQueries:function(h,S,L){if(1&h&&(l.Suo(L,oe,5),l.Suo(L,ae,5)),2&h){let Y;l.iGM(Y=l.CRH())&&(S.nzPageHeaderFooter=Y.first),l.iGM(Y=l.CRH())&&(S.nzPageHeaderBreadcrumb=Y.first)}},hostAttrs:[1,"ant-page-header"],hostVars:10,hostBindings:function(h,S){2&h&&l.ekj("has-footer",S.nzPageHeaderFooter)("ant-page-header-ghost",S.nzGhost)("has-breadcrumb",S.nzPageHeaderBreadcrumb)("ant-page-header-compact",S.compact)("ant-page-header-rtl","rtl"===S.dir)},inputs:{nzBackIcon:"nzBackIcon",nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzGhost:"nzGhost"},outputs:{nzBack:"nzBack"},exportAs:["nzPageHeader"],ngContentSelectors:x,decls:13,vars:5,consts:[[1,"ant-page-header-heading"],[1,"ant-page-header-heading-left"],["class","ant-page-header-back",3,"click",4,"ngIf"],["class","ant-page-header-heading-title",4,"ngIf"],[4,"ngIf"],["class","ant-page-header-heading-sub-title",4,"ngIf"],[1,"ant-page-header-back",3,"click"],["role","button","tabindex","0",1,"ant-page-header-back-button"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"],[1,"ant-page-header-heading-title"],[1,"ant-page-header-heading-sub-title"]],template:function(h,S){1&h&&(l.F$t(J),l.Hsn(0),l.TgZ(1,"div",0),l.TgZ(2,"div",1),l.YNc(3,E,3,1,"div",2),l.Hsn(4,1),l.YNc(5,v,2,1,"span",3),l.YNc(6,y,1,0,"ng-content",4),l.YNc(7,p,2,1,"span",5),l.YNc(8,O,1,0,"ng-content",4),l.Hsn(9,2),l.qZA(),l.Hsn(10,3),l.qZA(),l.Hsn(11,4),l.Hsn(12,5)),2&h&&(l.xp6(3),l.Q6J("ngIf",null!==S.nzBackIcon),l.xp6(2),l.Q6J("ngIf",S.nzTitle),l.xp6(1),l.Q6J("ngIf",!S.nzTitle),l.xp6(1),l.Q6J("ngIf",S.nzSubtitle),l.xp6(1),l.Q6J("ngIf",!S.nzSubtitle))},directives:[A.O5,f.f,e.Ls],encapsulation:2,changeDetection:0}),(0,$.gn)([(0,F.oS)()],r.prototype,"nzGhost",void 0),r})(),ce=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275mod=l.oAB({type:r}),r.\u0275inj=l.cJS({imports:[[w.vT,A.ez,f.T,e.PV]]}),r})()},1132:(_e,K,d)=>{d.d(K,{UX:()=>fn,qn:()=>we,Uo:()=>un,N8:()=>vn,HQ:()=>Tn,zu:()=>ke,p0:()=>Fe,qD:()=>De,_C:()=>Pe,Om:()=>bn,$Z:()=>$e});var w=d(226),A=d(925),l=d(2321),f=d(9808),e=d(5e3),$=d(4182),q=d(6042),Q=d(5577),b=d(6114),F=d(969),m=d(3677),N=d(685),P=d(4170),E=d(647),W=d(4219),v=d(655),y=d(8929),D=d(839),p=d(7625),O=d(9439),J=d(4090),x=d(1721),U=d(8054);const ee=["nz-pagination-item",""];function te(i,o){if(1&i&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&i){const t=e.oxw().page;e.xp6(1),e.Oqu(t)}}function ne(i,o){1&i&&e._UZ(0,"i",9)}function ie(i,o){1&i&&e._UZ(0,"i",10)}function oe(i,o){if(1&i&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,ne,1,0,"i",7),e.YNc(3,ie,1,0,"i",8),e.BQk(),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("disabled",t.disabled),e.xp6(1),e.Q6J("ngSwitch",t.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function ae(i,o){1&i&&e._UZ(0,"i",10)}function se(i,o){1&i&&e._UZ(0,"i",9)}function le(i,o){if(1&i&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,ae,1,0,"i",11),e.YNc(3,se,1,0,"i",12),e.BQk(),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("disabled",t.disabled),e.xp6(1),e.Q6J("ngSwitch",t.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function re(i,o){1&i&&e._UZ(0,"i",20)}function Ce(i,o){1&i&&e._UZ(0,"i",21)}function ce(i,o){if(1&i&&(e.ynx(0,2),e.YNc(1,re,1,0,"i",18),e.YNc(2,Ce,1,0,"i",19),e.BQk()),2&i){const t=e.oxw(4);e.Q6J("ngSwitch",t.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function r(i,o){1&i&&e._UZ(0,"i",21)}function _(i,o){1&i&&e._UZ(0,"i",20)}function h(i,o){if(1&i&&(e.ynx(0,2),e.YNc(1,r,1,0,"i",22),e.YNc(2,_,1,0,"i",23),e.BQk()),2&i){const t=e.oxw(4);e.Q6J("ngSwitch",t.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function S(i,o){if(1&i&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,ce,3,2,"ng-container",16),e.YNc(3,h,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA(),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",t),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function L(i,o){if(1&i&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,S,6,3,"div",14),e.qZA(),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",t)}}function Y(i,o){1&i&&(e.ynx(0,2),e.YNc(1,te,2,1,"a",3),e.YNc(2,oe,4,3,"button",4),e.YNc(3,le,4,3,"button",4),e.YNc(4,L,3,1,"ng-container",5),e.BQk()),2&i&&(e.Q6J("ngSwitch",o.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function de(i,o){}const he=function(i,o){return{$implicit:i,page:o}},xe=["containerTemplate"];function Ee(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().prePage()}),e.qZA(),e.TgZ(1,"li",2),e.TgZ(2,"input",3),e.NdJ("keydown.enter",function(a){return e.CHM(t),e.oxw().jumpToPageViaInput(a)}),e.qZA(),e.TgZ(3,"span",4),e._uU(4,"/"),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"li",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().nextPage()}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.isFirstIndex)("direction",t.dir)("itemRender",t.itemRender),e.uIk("title",t.locale.prev_page),e.xp6(1),e.uIk("title",t.pageIndex+"/"+t.lastIndex),e.xp6(1),e.Q6J("disabled",t.disabled)("value",t.pageIndex),e.xp6(3),e.hij(" ",t.lastIndex," "),e.xp6(1),e.Q6J("disabled",t.isLastIndex)("direction",t.dir)("itemRender",t.itemRender),e.uIk("title",null==t.locale?null:t.locale.next_page)}}const Be=["nz-pagination-options",""];function Ae(i,o){if(1&i&&e._UZ(0,"nz-option",4),2&i){const t=o.$implicit;e.Q6J("nzLabel",t.label)("nzValue",t.value)}}function Qe(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().onPageSizeChange(a)}),e.YNc(1,Ae,1,2,"nz-option",3),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("nzDisabled",t.disabled)("nzSize",t.nzSize)("ngModel",t.pageSize),e.xp6(1),e.Q6J("ngForOf",t.listOfPageSizeOption)("ngForTrackBy",t.trackByOption)}}function Je(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(a){return e.CHM(t),e.oxw().jumpToPageViaInput(a)}),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.hij(" ",t.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",t.disabled),e.xp6(1),e.hij(" ",t.locale.page," ")}}function Ye(i,o){}const He=function(i,o){return{$implicit:i,range:o}};function Ze(i,o){if(1&i&&(e.TgZ(0,"li",4),e.YNc(1,Ye,0,0,"ng-template",5),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",t.showTotal)("ngTemplateOutletContext",e.WLB(2,He,t.total,t.ranges))}}function We(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(a){return e.CHM(t),e.oxw(2).jumpPage(a)})("diffIndex",function(a){return e.CHM(t),e.oxw(2).jumpDiff(a)}),e.qZA()}if(2&i){const t=o.$implicit,n=e.oxw(2);e.Q6J("locale",n.locale)("type",t.type)("index",t.index)("disabled",!!t.disabled)("itemRender",n.itemRender)("active",n.pageIndex===t.index)("direction",n.dir)}}function Le(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",7),e.NdJ("pageIndexChange",function(a){return e.CHM(t),e.oxw(2).onPageIndexChange(a)})("pageSizeChange",function(a){return e.CHM(t),e.oxw(2).onPageSizeChange(a)}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("total",t.total)("locale",t.locale)("disabled",t.disabled)("nzSize",t.nzSize)("showSizeChanger",t.showSizeChanger)("showQuickJumper",t.showQuickJumper)("pageIndex",t.pageIndex)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)}}function Ve(i,o){if(1&i&&(e.YNc(0,Ze,2,5,"li",1),e.YNc(1,We,1,7,"li",2),e.YNc(2,Le,1,9,"div",3)),2&i){const t=e.oxw();e.Q6J("ngIf",t.showTotal),e.xp6(1),e.Q6J("ngForOf",t.listOfPageItem)("ngForTrackBy",t.trackByPageItem),e.xp6(1),e.Q6J("ngIf",t.showQuickJumper||t.showSizeChanger)}}function Ue(i,o){}function je(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Ue,0,0,"ng-template",6),e.BQk()),2&i){e.oxw(2);const t=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",t.template)}}function Xe(i,o){if(1&i&&(e.ynx(0),e.YNc(1,je,2,1,"ng-container",5),e.BQk()),2&i){const t=e.oxw(),n=e.MAs(4);e.xp6(1),e.Q6J("ngIf",t.nzSimple)("ngIfElse",n.template)}}let ve=(()=>{class i{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(t){var n,a,s,c;const{locale:g,index:z,type:C}=t;(g||z||C)&&(this.title={page:`${this.index}`,next:null===(n=this.locale)||void 0===n?void 0:n.next_page,prev:null===(a=this.locale)||void 0===a?void 0:a.prev_page,prev_5:null===(s=this.locale)||void 0===s?void 0:s.prev_5,next_5:null===(c=this.locale)||void 0===c?void 0:c.next_5}[this.type])}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(t,n){1&t&&e.NdJ("click",function(){return n.clickItem()}),2&t&&(e.uIk("title",n.title),e.ekj("ant-pagination-prev","prev"===n.type)("ant-pagination-next","next"===n.type)("ant-pagination-item","page"===n.type)("ant-pagination-jump-prev","prev_5"===n.type)("ant-pagination-jump-prev-custom-icon","prev_5"===n.type)("ant-pagination-jump-next","next_5"===n.type)("ant-pagination-jump-next-custom-icon","next_5"===n.type)("ant-pagination-disabled",n.disabled)("ant-pagination-item-active",n.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:ee,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(t,n){if(1&t&&(e.YNc(0,Y,5,4,"ng-template",null,0,e.W1O),e.YNc(2,de,0,0,"ng-template",1)),2&t){const a=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",n.itemRender||a)("ngTemplateOutletContext",e.WLB(2,he,n.type,n.index))}},directives:[f.RF,f.n9,E.Ls,f.ED,f.tP],encapsulation:2,changeDetection:0}),i})(),Ge=(()=>{class i{constructor(t,n,a,s){this.cdr=t,this.renderer=n,this.elementRef=a,this.directionality=s,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new y.xQ,n.removeChild(n.parentNode(a.nativeElement),a.nativeElement)}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(t){const n=t.target,a=(0,x.He)(n.value,this.pageIndex);this.onPageIndexChange(a),n.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(t){this.pageIndexChange.next(t)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(t){const{pageIndex:n,total:a,pageSize:s}=t;(n||a||s)&&this.updateBindingValue()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(w.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-pagination-simple"]],viewQuery:function(t,n){if(1&t&&e.Gf(xe,7),2&t){let a;e.iGM(a=e.CRH())&&(n.template=a.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(t,n){1&t&&e.YNc(0,Ee,7,12,"ng-template",null,0,e.W1O)},directives:[ve],encapsulation:2,changeDetection:0}),i})(),Ke=(()=>{class i{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(t){this.pageSize!==t&&this.pageSizeChange.next(t)}jumpToPageViaInput(t){const n=t.target,a=Math.floor((0,x.He)(n.value,this.pageIndex));this.pageIndexChange.next(a),n.value=""}trackByOption(t,n){return n.value}ngOnChanges(t){const{pageSize:n,pageSizeOptions:a,locale:s}=t;(n||a||s)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(c=>({value:c,label:`${c} ${this.locale.items_per_page}`})))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["div","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:Be,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(t,n){1&t&&(e.YNc(0,Qe,2,5,"nz-select",0),e.YNc(1,Je,4,3,"div",1)),2&t&&(e.Q6J("ngIf",n.showSizeChanger),e.xp6(1),e.Q6J("ngIf",n.showQuickJumper))},directives:[U.Vq,U.Ip,f.O5,$.JJ,$.On,f.sg],encapsulation:2,changeDetection:0}),i})(),qe=(()=>{class i{constructor(t,n,a,s){this.cdr=t,this.renderer=n,this.elementRef=a,this.directionality=s,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new y.xQ,n.removeChild(n.parentNode(a.nativeElement),a.nativeElement)}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(t){this.onPageIndexChange(t)}jumpDiff(t){this.jumpPage(this.pageIndex+t)}trackByPageItem(t,n){return`${n.type}-${n.index}`}onPageIndexChange(t){this.pageIndexChange.next(t)}onPageSizeChange(t){this.pageSizeChange.next(t)}getLastIndex(t,n){return Math.ceil(t/n)}buildIndexes(){const t=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,t)}getListOfPageItem(t,n){const s=(c,g)=>{const z=[];for(let C=c;C<=g;C++)z.push({index:C,type:"page"});return z};return c=n<=9?s(1,n):((g,z)=>{let C=[];const T={type:"prev_5"},u={type:"next_5"},k=s(1,1),Z=s(n,n);return C=g<5?[...s(2,4===g?6:5),u]:g{class i{constructor(t,n,a,s,c){this.i18n=t,this.cdr=n,this.breakpointService=a,this.nzConfigService=s,this.directionality=c,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new y.xQ,this.total$=new D.t(1)}validatePageIndex(t,n){return t>n?n:t<1?1:t}onPageIndexChange(t){const n=this.getLastIndex(this.nzTotal,this.nzPageSize),a=this.validatePageIndex(t,n);a!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=a,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(t){this.nzPageSize=t,this.nzPageSizeChange.emit(t);const n=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>n&&this.onPageIndexChange(n)}onTotalChange(t){const n=this.getLastIndex(t,this.nzPageSize);this.nzPageIndex>n&&Promise.resolve().then(()=>{this.onPageIndexChange(n),this.cdr.markForCheck()})}getLastIndex(t,n){return Math.ceil(t/n)}ngOnInit(){var t;this.i18n.localeChange.pipe((0,p.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.onTotalChange(n)}),this.breakpointService.subscribe(J.WV).pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.nzResponsive&&(this.size=n===J.G_.xs?"small":"default",this.cdr.markForCheck())}),null===(t=this.directionality.change)||void 0===t||t.pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(t){const{nzHideOnSinglePage:n,nzTotal:a,nzPageSize:s,nzSize:c}=t;a&&this.total$.next(this.nzTotal),(n||a||s)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),c&&(this.size=c.currentValue)}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(P.wi),e.Y36(e.sBO),e.Y36(J.r3),e.Y36(O.jY),e.Y36(w.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(t,n){2&t&&e.ekj("ant-pagination-simple",n.nzSimple)("ant-pagination-disabled",n.nzDisabled)("mini",!n.nzSimple&&"small"===n.size)("ant-pagination-rtl","rtl"===n.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(t,n){1&t&&(e.YNc(0,Xe,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(s){return n.onPageIndexChange(s)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(s){return n.onPageIndexChange(s)})("pageSizeChange",function(s){return n.onPageSizeChange(s)}),e.qZA()),2&t&&(e.Q6J("ngIf",n.showPagination),e.xp6(1),e.Q6J("disabled",n.nzDisabled)("itemRender",n.nzItemRender)("locale",n.locale)("pageSize",n.nzPageSize)("total",n.nzTotal)("pageIndex",n.nzPageIndex),e.xp6(2),e.Q6J("nzSize",n.size)("itemRender",n.nzItemRender)("showTotal",n.nzShowTotal)("disabled",n.nzDisabled)("locale",n.locale)("showSizeChanger",n.nzShowSizeChanger)("showQuickJumper",n.nzShowQuickJumper)("total",n.nzTotal)("pageIndex",n.nzPageIndex)("pageSize",n.nzPageSize)("pageSizeOptions",n.nzPageSizeOptions))},directives:[Ge,qe,f.O5,f.tP],encapsulation:2,changeDetection:0}),(0,v.gn)([(0,O.oS)()],i.prototype,"nzSize",void 0),(0,v.gn)([(0,O.oS)()],i.prototype,"nzPageSizeOptions",void 0),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzShowSizeChanger",void 0),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzShowQuickJumper",void 0),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzSimple",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzDisabled",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzResponsive",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzHideOnSinglePage",void 0),(0,v.gn)([(0,x.Rn)()],i.prototype,"nzTotal",void 0),(0,v.gn)([(0,x.Rn)()],i.prototype,"nzPageIndex",void 0),(0,v.gn)([(0,x.Rn)()],i.prototype,"nzPageSize",void 0),i})(),nt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[w.vT,f.ez,$.u5,U.LV,P.YI,E.PV]]}),i})();var be=d(3868),Te=d(7525),Se=d(3753),M=d(591),B=d(3426),j=d(6787),pe=d(8896),it=d(1086),I=d(4850),H=d(1059),R=d(7545),ye=d(13),ge=d(6792),ze=d(2198),ue=d(5778),ot=d(1307),fe=d(1709),Oe=d(2683),at=d(2643);const X=["*"];function st(i,o){}function lt(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"label",15),e.NdJ("ngModelChange",function(){e.CHM(t);const a=e.oxw().$implicit;return e.oxw(2).check(a)}),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.Q6J("ngModel",t.checked)}}function rt(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"label",16),e.NdJ("ngModelChange",function(){e.CHM(t);const a=e.oxw().$implicit;return e.oxw(2).check(a)}),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.Q6J("ngModel",t.checked)}}function ct(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const s=e.CHM(t).$implicit;return e.oxw(2).check(s)}),e.YNc(1,lt,1,1,"label",13),e.YNc(2,rt,1,1,"label",14),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()}if(2&i){const t=o.$implicit,n=e.oxw(2);e.Q6J("nzSelected",t.checked),e.xp6(1),e.Q6J("ngIf",!n.filterMultiple),e.xp6(1),e.Q6J("ngIf",n.filterMultiple),e.xp6(2),e.Oqu(t.text)}}function dt(i,o){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-filter-trigger",3),e.NdJ("nzVisibleChange",function(a){return e.CHM(t),e.oxw().onVisibleChange(a)}),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"nz-dropdown-menu",null,5),e.TgZ(5,"div",6),e.TgZ(6,"ul",7),e.YNc(7,ct,5,4,"li",8),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(t),e.oxw().reset()}),e._uU(10),e.qZA(),e.TgZ(11,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().confirm()}),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&i){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("nzVisible",n.isVisible)("nzActive",n.isChecked)("nzDropdownMenu",t),e.xp6(6),e.Q6J("ngForOf",n.listOfParsedFilter)("ngForTrackBy",n.trackByValue),e.xp6(2),e.Q6J("disabled",!n.isChecked),e.xp6(1),e.hij(" ",n.locale.filterReset," "),e.xp6(2),e.Oqu(n.locale.filterConfirm)}}function pt(i,o){}function gt(i,o){if(1&i&&e._UZ(0,"i",6),2&i){const t=e.oxw();e.ekj("active","ascend"===t.sortOrder)}}function zt(i,o){if(1&i&&e._UZ(0,"i",7),2&i){const t=e.oxw();e.ekj("active","descend"===t.sortOrder)}}const ut=["nzColumnKey",""];function ft(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"nz-table-filter",5),e.NdJ("filterChange",function(a){return e.CHM(t),e.oxw().onFilterValueChange(a)}),e.qZA()}if(2&i){const t=e.oxw(),n=e.MAs(2),a=e.MAs(4);e.Q6J("contentTemplate",n)("extraTemplate",a)("customFilter",t.nzCustomFilter)("filterMultiple",t.nzFilterMultiple)("listOfFilter",t.nzFilters)}}function mt(i,o){}function _t(i,o){if(1&i&&e.YNc(0,mt,0,0,"ng-template",6),2&i){const t=e.oxw(),n=e.MAs(6),a=e.MAs(8);e.Q6J("ngTemplateOutlet",t.nzShowSort?n:a)}}function Ct(i,o){1&i&&(e.Hsn(0),e.Hsn(1,1))}function xt(i,o){if(1&i&&e._UZ(0,"nz-table-sorters",7),2&i){const t=e.oxw(),n=e.MAs(8);e.Q6J("sortOrder",t.sortOrder)("sortDirections",t.sortDirections)("contentTemplate",n)}}function vt(i,o){1&i&&e.Hsn(0,2)}const bt=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],Tt=["[nz-th-extra]","nz-filter-trigger","*"],St=["nz-table-content",""];function yt(i,o){if(1&i&&e._UZ(0,"col"),2&i){const t=o.$implicit;e.Udp("width",t)("min-width",t)}}function Ot(i,o){}function Nt(i,o){if(1&i&&(e.TgZ(0,"thead",3),e.YNc(1,Ot,0,0,"ng-template",2),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",t.theadTemplate)}}function wt(i,o){}const Ne=["tdElement"],Dt=["nz-table-fixed-row",""];function Pt(i,o){}function It(i,o){if(1&i&&(e.TgZ(0,"div",4),e.ALo(1,"async"),e.YNc(2,Pt,0,0,"ng-template",5),e.qZA()),2&i){const t=e.oxw(),n=e.MAs(5);e.Udp("width",e.lcZ(1,3,t.hostWidth$),"px"),e.xp6(2),e.Q6J("ngTemplateOutlet",n)}}function Ft(i,o){1&i&&e.Hsn(0)}const Mt=["nz-table-measure-row",""];function kt(i,o){1&i&&e._UZ(0,"td",1,2)}function Rt(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"tr",3),e.NdJ("listOfAutoWidth",function(a){return e.CHM(t),e.oxw(2).onListOfAutoWidthChange(a)}),e.qZA()}if(2&i){const t=e.oxw().ngIf;e.Q6J("listOfMeasureColumn",t)}}function $t(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Rt,1,1,"tr",2),e.BQk()),2&i){const t=o.ngIf,n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.isInsideTable&&t.length)}}function Et(i,o){if(1&i&&(e.TgZ(0,"tr",4),e._UZ(1,"nz-embed-empty",5),e.ALo(2,"async"),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("specificContent",e.lcZ(2,1,t.noResult$))}}const Bt=["tableHeaderElement"],At=["tableBodyElement"];function Qt(i,o){if(1&i&&(e.TgZ(0,"div",7,8),e._UZ(2,"table",9),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("ngStyle",t.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",t.scrollX)("listOfColWidth",t.listOfColWidth)("contentTemplate",t.contentTemplate)}}function Jt(i,o){}const Yt=function(i,o){return{$implicit:i,index:o}};function Ht(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Jt,0,0,"ng-template",13),e.BQk()),2&i){const t=o.$implicit,n=o.index,a=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",a.virtualTemplate)("ngTemplateOutletContext",e.WLB(2,Yt,t,n))}}function Zt(i,o){if(1&i&&(e.TgZ(0,"cdk-virtual-scroll-viewport",10,8),e.TgZ(2,"table",11),e.TgZ(3,"tbody"),e.YNc(4,Ht,2,5,"ng-container",12),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw(2);e.Udp("height",t.data.length?t.scrollY:t.noDateVirtualHeight),e.Q6J("itemSize",t.virtualItemSize)("maxBufferPx",t.virtualMaxBufferPx)("minBufferPx",t.virtualMinBufferPx),e.xp6(2),e.Q6J("scrollX",t.scrollX)("listOfColWidth",t.listOfColWidth),e.xp6(2),e.Q6J("cdkVirtualForOf",t.data)("cdkVirtualForTrackBy",t.virtualForTrackBy)}}function Wt(i,o){if(1&i&&(e.ynx(0),e.TgZ(1,"div",2,3),e._UZ(3,"table",4),e.qZA(),e.YNc(4,Qt,3,4,"div",5),e.YNc(5,Zt,5,9,"cdk-virtual-scroll-viewport",6),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngStyle",t.headerStyleMap),e.xp6(2),e.Q6J("scrollX",t.scrollX)("listOfColWidth",t.listOfColWidth)("theadTemplate",t.theadTemplate),e.xp6(1),e.Q6J("ngIf",!t.virtualTemplate),e.xp6(1),e.Q6J("ngIf",t.virtualTemplate)}}function Lt(i,o){if(1&i&&(e.TgZ(0,"div",14,8),e._UZ(2,"table",15),e.qZA()),2&i){const t=e.oxw();e.Q6J("ngStyle",t.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",t.scrollX)("listOfColWidth",t.listOfColWidth)("theadTemplate",t.theadTemplate)("contentTemplate",t.contentTemplate)}}function Vt(i,o){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t.title)}}function Ut(i,o){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t.footer)}}function jt(i,o){}function Xt(i,o){if(1&i&&(e.ynx(0),e.YNc(1,jt,0,0,"ng-template",10),e.BQk()),2&i){e.oxw();const t=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function Gt(i,o){if(1&i&&e._UZ(0,"nz-table-title-footer",11),2&i){const t=e.oxw();e.Q6J("title",t.nzTitle)}}function Kt(i,o){if(1&i&&e._UZ(0,"nz-table-inner-scroll",12),2&i){const t=e.oxw(),n=e.MAs(13),a=e.MAs(3);e.Q6J("data",t.data)("scrollX",t.scrollX)("scrollY",t.scrollY)("contentTemplate",n)("listOfColWidth",t.listOfAutoColWidth)("theadTemplate",t.theadTemplate)("verticalScrollBarWidth",t.verticalScrollBarWidth)("virtualTemplate",t.nzVirtualScrollDirective?t.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",t.nzVirtualItemSize)("virtualMaxBufferPx",t.nzVirtualMaxBufferPx)("virtualMinBufferPx",t.nzVirtualMinBufferPx)("tableMainElement",a)("virtualForTrackBy",t.nzVirtualForTrackBy)}}function qt(i,o){if(1&i&&e._UZ(0,"nz-table-inner-default",13),2&i){const t=e.oxw(),n=e.MAs(13);e.Q6J("tableLayout",t.nzTableLayout)("listOfColWidth",t.listOfManualColWidth)("theadTemplate",t.theadTemplate)("contentTemplate",n)}}function en(i,o){if(1&i&&e._UZ(0,"nz-table-title-footer",14),2&i){const t=e.oxw();e.Q6J("footer",t.nzFooter)}}function tn(i,o){}function nn(i,o){if(1&i&&(e.ynx(0),e.YNc(1,tn,0,0,"ng-template",10),e.BQk()),2&i){e.oxw();const t=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function on(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"nz-pagination",16),e.NdJ("nzPageSizeChange",function(a){return e.CHM(t),e.oxw(2).onPageSizeChange(a)})("nzPageIndexChange",function(a){return e.CHM(t),e.oxw(2).onPageIndexChange(a)}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("hidden",!t.showPagination)("nzShowSizeChanger",t.nzShowSizeChanger)("nzPageSizeOptions",t.nzPageSizeOptions)("nzItemRender",t.nzItemRender)("nzShowQuickJumper",t.nzShowQuickJumper)("nzHideOnSinglePage",t.nzHideOnSinglePage)("nzShowTotal",t.nzShowTotal)("nzSize","small"===t.nzPaginationType?"small":"default"===t.nzSize?"default":"small")("nzPageSize",t.nzPageSize)("nzTotal",t.nzTotal)("nzSimple",t.nzSimple)("nzPageIndex",t.nzPageIndex)}}function an(i,o){if(1&i&&e.YNc(0,on,1,12,"nz-pagination",15),2&i){const t=e.oxw();e.Q6J("ngIf",t.nzShowPagination&&t.data.length)}}function sn(i,o){1&i&&e.Hsn(0)}const ln=["contentTemplate"];function rn(i,o){1&i&&e.Hsn(0)}function cn(i,o){}function dn(i,o){if(1&i&&(e.ynx(0),e.YNc(1,cn,0,0,"ng-template",2),e.BQk()),2&i){e.oxw();const t=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}let pn=(()=>{class i{constructor(t,n,a,s){this.nzConfigService=t,this.ngZone=n,this.cdr=a,this.destroy$=s,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new e.vpe}onVisibleChange(t){this.nzVisible=t,this.nzVisibleChange.next(t)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Se.R)(this.nzDropdown.nativeElement,"click").pipe((0,p.R)(this.destroy$)).subscribe(t=>{t.stopPropagation()})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(O.jY),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(J.kn))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-filter-trigger"]],viewQuery:function(t,n){if(1&t&&e.Gf(m.cm,7,e.SBq),2&t){let a;e.iGM(a=e.CRH())&&(n.nzDropdown=a.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[e._Bn([J.kn])],ngContentSelectors:X,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(t,n){1&t&&(e.F$t(),e.TgZ(0,"span",0),e.NdJ("nzVisibleChange",function(s){return n.onVisibleChange(s)}),e.Hsn(1),e.qZA()),2&t&&(e.ekj("active",n.nzActive)("ant-table-filter-open",n.nzVisible),e.Q6J("nzBackdrop",n.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",n.nzDropdownMenu)("nzVisible",n.nzVisible))},directives:[m.cm],encapsulation:2,changeDetection:0}),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzBackdrop",void 0),i})(),gn=(()=>{class i{constructor(t,n){this.cdr=t,this.i18n=n,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new e.vpe,this.destroy$=new y.xQ,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}trackByValue(t,n){return n.value}check(t){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(n=>n===t?Object.assign(Object.assign({},n),{checked:!t.checked}):n),t.checked=!t.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(n=>Object.assign(Object.assign({},n),{checked:n===t})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(t){this.isVisible=t,t?this.listOfChecked=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value):this.emitFilterData()}emitFilterData(){const t=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value);(0,x.cO)(this.listOfChecked,t)||this.filterChange.emit(this.filterMultiple?t:t.length>0?t[0]:null)}parseListOfFilter(t,n){return t.map(a=>({text:a.text,value:a.value,checked:!n&&!!a.byDefault}))}getCheckedStatus(t){return t.some(n=>n.checked)}ngOnInit(){this.i18n.localeChange.pipe((0,p.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(t){const{listOfFilter:n}=t;n&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.sBO),e.Y36(P.wi))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[e.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"span",0),e.YNc(1,st,0,0,"ng-template",1),e.qZA(),e.YNc(2,dt,13,8,"ng-container",2)),2&t&&(e.xp6(1),e.Q6J("ngTemplateOutlet",n.contentTemplate),e.xp6(1),e.Q6J("ngIf",!n.customFilter)("ngIfElse",n.extraTemplate))},directives:[pn,m.RR,be.Of,b.Ie,q.ix,f.tP,f.O5,Oe.w,E.Ls,W.wO,f.sg,W.r9,$.JJ,$.On,at.dQ],encapsulation:2,changeDetection:0}),i})(),zn=(()=>{class i{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(t){const{sortDirections:n}=t;n&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[e.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(t,n){1&t&&(e.TgZ(0,"span",0),e.YNc(1,pt,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"span",2),e.TgZ(3,"span",3),e.YNc(4,gt,1,2,"i",4),e.YNc(5,zt,1,2,"i",5),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngTemplateOutlet",n.contentTemplate),e.xp6(1),e.ekj("ant-table-column-sorter-full",n.isDown&&n.isUp),e.xp6(2),e.Q6J("ngIf",n.isUp),e.xp6(1),e.Q6J("ngIf",n.isDown))},directives:[f.tP,f.O5,Oe.w,E.Ls],encapsulation:2,changeDetection:0}),i})(),we=(()=>{class i{constructor(t,n){this.renderer=t,this.elementRef=n,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new y.xQ,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(t){this.renderer.setStyle(this.elementRef.nativeElement,"left",t)}setAutoRightWidth(t){this.renderer.setStyle(this.elementRef.nativeElement,"right",t)}setIsFirstRight(t){this.setFixClass(t,"ant-table-cell-fix-right-first")}setIsLastLeft(t){this.setFixClass(t,"ant-table-cell-fix-left-last")}setFixClass(t,n){this.renderer.removeClass(this.elementRef.nativeElement,n),t&&this.renderer.addClass(this.elementRef.nativeElement,n)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const t=n=>"string"==typeof n&&""!==n?n:null;this.setAutoLeftWidth(t(this.nzLeft)),this.setAutoRightWidth(t(this.nzRight)),this.changes$.next()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Qsj),e.Y36(e.SBq))},i.\u0275dir=e.lG2({type:i,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(t,n){2&t&&(e.Udp("position",n.isFixed?"sticky":null),e.ekj("ant-table-cell-fix-right",n.isFixedRight)("ant-table-cell-fix-left",n.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[e.TTD]}),i})(),V=(()=>{class i{constructor(){this.theadTemplate$=new D.t(1),this.hasFixLeft$=new D.t(1),this.hasFixRight$=new D.t(1),this.hostWidth$=new D.t(1),this.columnCount$=new D.t(1),this.showEmpty$=new D.t(1),this.noResult$=new D.t(1),this.listOfThWidthConfigPx$=new M.X([]),this.tableWidthConfigPx$=new M.X([]),this.manualWidthConfigPx$=(0,B.aj)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,I.U)(([t,n])=>t.length?t:n)),this.listOfAutoWidthPx$=new D.t(1),this.listOfListOfThWidthPx$=(0,j.T)(this.manualWidthConfigPx$,(0,B.aj)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,I.U)(([t,n])=>t.length===n.length?t.map((a,s)=>"0px"===a?n[s]||null:n[s]||a):n))),this.listOfMeasureColumn$=new D.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,I.U)(t=>t.map(n=>parseInt(n,10)))),this.enableAutoMeasure$=new D.t(1)}setTheadTemplate(t){this.theadTemplate$.next(t)}setHasFixLeft(t){this.hasFixLeft$.next(t)}setHasFixRight(t){this.hasFixRight$.next(t)}setTableWidthConfig(t){this.tableWidthConfigPx$.next(t)}setListOfTh(t){let n=0;t.forEach(s=>{n+=s.colspan&&+s.colspan||s.colSpan&&+s.colSpan||1});const a=t.map(s=>s.nzWidth);this.columnCount$.next(n),this.listOfThWidthConfigPx$.next(a)}setListOfMeasureColumn(t){const n=[];t.forEach(a=>{const s=a.colspan&&+a.colspan||a.colSpan&&+a.colSpan||1;for(let c=0;c`${n}px`))}setShowEmpty(t){this.showEmpty$.next(t)}setNoResult(t){this.noResult$.next(t)}setScroll(t,n){const a=!(!t&&!n);a||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(a)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),un=(()=>{class i{constructor(t){this.isInsideTable=!1,this.isInsideTable=!!t}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(V,8))},i.\u0275dir=e.lG2({type:i,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("ant-table-cell",n.isInsideTable)}}),i})(),De=(()=>{class i{constructor(t){this.cdr=t,this.manualClickOrder$=new y.xQ,this.calcOperatorChange$=new y.xQ,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new y.xQ,this.destroy$=new y.xQ,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new e.vpe,this.nzSortOrderChange=new e.vpe,this.nzFilterChange=new e.vpe}getNextSortDirection(t,n){const a=t.indexOf(n);return a===t.length-1?t[0]:t[a+1]}emitNextSortValue(){if(this.nzShowSort){const t=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(t),this.manualClickOrder$.next(this)}}setSortOrder(t){this.sortOrderChange$.next(t)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(t){this.nzFilterChange.emit(t),this.nzFilterValue=t,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe((0,p.R)(this.destroy$)).subscribe(t=>{this.sortOrder!==t&&(this.sortOrder=t,this.nzSortOrderChange.emit(t)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(t){const{nzSortDirections:n,nzFilters:a,nzSortOrder:s,nzSortFn:c,nzFilterFn:g,nzSortPriority:z,nzFilterMultiple:C,nzShowSort:T,nzShowFilter:u}=t;n&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),s&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),T&&(this.isNzShowSortChanged=!0),u&&(this.isNzShowFilterChanged=!0);const k=Z=>Z&&Z.firstChange&&void 0!==Z.currentValue;if((k(s)||k(c))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),k(a)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(a||C)&&this.nzShowFilter){const Z=this.nzFilters.filter(G=>G.byDefault).map(G=>G.value);this.nzFilterValue=this.nzFilterMultiple?Z:Z[0]||null}(c||g||z||a)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.sBO))},i.\u0275cmp=e.Xpm({type:i,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(t,n){1&t&&e.NdJ("click",function(){return n.emitNextSortValue()}),2&t&&e.ekj("ant-table-column-has-sorters",n.nzShowSort)("ant-table-column-sort","descend"===n.sortOrder||"ascend"===n.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[e.TTD],attrs:ut,ngContentSelectors:Tt,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(t,n){if(1&t&&(e.F$t(bt),e.YNc(0,ft,1,5,"nz-table-filter",0),e.YNc(1,_t,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Ct,2,0,"ng-template",null,2,e.W1O),e.YNc(5,xt,1,3,"ng-template",null,3,e.W1O),e.YNc(7,vt,1,0,"ng-template",null,4,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",n.nzShowFilter||n.nzCustomFilter)("ngIfElse",a)}},directives:[gn,zn,f.O5,f.tP],encapsulation:2,changeDetection:0}),(0,v.gn)([(0,x.yF)()],i.prototype,"nzShowSort",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzShowFilter",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzCustomFilter",void 0),i})(),Pe=(()=>{class i{constructor(t,n){this.renderer=t,this.elementRef=n,this.changes$=new y.xQ,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(t){const{nzWidth:n,colspan:a,rowspan:s,colSpan:c,rowSpan:g}=t;if(a||c){const z=this.colspan||this.colSpan;(0,x.kK)(z)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${z}`)}if(s||g){const z=this.rowspan||this.rowSpan;(0,x.kK)(z)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${z}`)}(n||a)&&this.changes$.next()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Qsj),e.Y36(e.SBq))},i.\u0275dir=e.lG2({type:i,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[e.TTD]}),i})(),fn=(()=>{class i{constructor(){this.nzAlign=null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=e.lG2({type:i,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(t,n){2&t&&e.Udp("text-align",n.nzAlign)},inputs:{nzAlign:"nzAlign"}}),i})(),Ie=(()=>{class i{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(t,n){2&t&&(e.Udp("table-layout",n.tableLayout)("width",n.scrollX)("min-width",n.scrollX?"100%":null),e.ekj("ant-table-fixed",n.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:St,ngContentSelectors:X,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(t,n){1&t&&(e.F$t(),e.YNc(0,yt,1,4,"col",0),e.YNc(1,Nt,2,1,"thead",1),e.YNc(2,wt,0,0,"ng-template",2),e.Hsn(3)),2&t&&(e.Q6J("ngForOf",n.listOfColWidth),e.xp6(1),e.Q6J("ngIf",n.theadTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",n.contentTemplate))},directives:[f.sg,f.O5,f.tP],encapsulation:2,changeDetection:0}),i})(),mn=(()=>{class i{constructor(t,n){this.nzTableStyleService=t,this.renderer=n,this.hostWidth$=new M.X(null),this.enableAutoMeasure$=new M.X(!1),this.destroy$=new y.xQ}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:t,hostWidth$:n}=this.nzTableStyleService;t.pipe((0,p.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),n.pipe((0,p.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,p.R)(this.destroy$)).subscribe(t=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${t}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(V),e.Y36(e.Qsj))},i.\u0275cmp=e.Xpm({type:i,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(t,n){if(1&t&&e.Gf(Ne,7),2&t){let a;e.iGM(a=e.CRH())&&(n.tdElement=a.first)}},attrs:Dt,ngContentSelectors:X,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(1&t&&(e.F$t(),e.TgZ(0,"td",0,1),e.YNc(2,It,3,5,"div",2),e.ALo(3,"async"),e.qZA(),e.YNc(4,Ft,1,0,"ng-template",null,3,e.W1O)),2&t){const a=e.MAs(5);e.xp6(2),e.Q6J("ngIf",e.lcZ(3,2,n.enableAutoMeasure$))("ngIfElse",a)}},directives:[f.O5,f.tP],pipes:[f.Ov],encapsulation:2,changeDetection:0}),i})(),_n=(()=>{class i{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"table",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("contentTemplate",n.contentTemplate)("tableLayout",n.tableLayout)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate))},directives:[Ie],encapsulation:2,changeDetection:0}),i})(),Cn=(()=>{class i{constructor(t,n){this.nzResizeObserver=t,this.ngZone=n,this.listOfMeasureColumn=[],this.listOfAutoWidth=new e.vpe,this.destroy$=new y.xQ}trackByFunc(t,n){return n}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,H.O)(this.listOfTdElement)).pipe((0,R.w)(t=>(0,B.aj)(t.toArray().map(n=>this.nzResizeObserver.observe(n).pipe((0,I.U)(([a])=>{const{width:s}=a.target.getBoundingClientRect();return Math.floor(s)}))))),(0,ye.b)(16),(0,p.R)(this.destroy$)).subscribe(t=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(t)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(Q.D3),e.Y36(e.R0b))},i.\u0275cmp=e.Xpm({type:i,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(t,n){if(1&t&&e.Gf(Ne,5),2&t){let a;e.iGM(a=e.CRH())&&(n.listOfTdElement=a)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Mt,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(t,n){1&t&&e.YNc(0,kt,2,0,"td",0),2&t&&e.Q6J("ngForOf",n.listOfMeasureColumn)("ngForTrackBy",n.trackByFunc)},directives:[f.sg],encapsulation:2,changeDetection:0}),i})(),Fe=(()=>{class i{constructor(t){if(this.nzTableStyleService=t,this.isInsideTable=!1,this.showEmpty$=new M.X(!1),this.noResult$=new M.X(void 0),this.listOfMeasureColumn$=new M.X([]),this.destroy$=new y.xQ,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:n,noResult$:a,listOfMeasureColumn$:s}=this.nzTableStyleService;a.pipe((0,p.R)(this.destroy$)).subscribe(this.noResult$),s.pipe((0,p.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),n.pipe((0,p.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(t){this.nzTableStyleService.setListOfAutoWidth(t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(V,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["tbody"]],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("ant-table-tbody",n.isInsideTable)},ngContentSelectors:X,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(t,n){1&t&&(e.F$t(),e.YNc(0,$t,2,1,"ng-container",0),e.ALo(1,"async"),e.Hsn(2),e.YNc(3,Et,3,3,"tr",1),e.ALo(4,"async")),2&t&&(e.Q6J("ngIf",e.lcZ(1,2,n.listOfMeasureColumn$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,4,n.showEmpty$)))},directives:[Cn,mn,N.gB,f.O5],pipes:[f.Ov],encapsulation:2,changeDetection:0}),i})(),Me=(()=>{class i{constructor(t,n,a,s){this.renderer=t,this.ngZone=n,this.platform=a,this.resizeService=s,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=c=>c,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new y.xQ,this.scroll$=new y.xQ,this.destroy$=new y.xQ}setScrollPositionClassName(t=!1){const{scrollWidth:n,scrollLeft:a,clientWidth:s}=this.tableBodyElement.nativeElement,c="ant-table-ping-left",g="ant-table-ping-right";n===s&&0!==n||t?(this.renderer.removeClass(this.tableMainElement,c),this.renderer.removeClass(this.tableMainElement,g)):0===a?(this.renderer.removeClass(this.tableMainElement,c),this.renderer.addClass(this.tableMainElement,g)):n===a+s?(this.renderer.removeClass(this.tableMainElement,g),this.renderer.addClass(this.tableMainElement,c)):(this.renderer.addClass(this.tableMainElement,c),this.renderer.addClass(this.tableMainElement,g))}ngOnChanges(t){const{scrollX:n,scrollY:a,data:s}=t;if(n||a){const c=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&c?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}s&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const t=this.scroll$.pipe((0,H.O)(null),(0,ge.g)(0),(0,R.w)(()=>(0,Se.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,H.O)(!0))),(0,p.R)(this.destroy$)),n=this.resizeService.subscribe().pipe((0,p.R)(this.destroy$)),a=this.data$.pipe((0,p.R)(this.destroy$));(0,j.T)(t,n,a,this.scroll$).pipe((0,H.O)(!0),(0,ge.g)(0),(0,p.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),t.pipe((0,ze.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(A.t4),e.Y36(J.rI))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-inner-scroll"]],viewQuery:function(t,n){if(1&t&&(e.Gf(Bt,5,e.SBq),e.Gf(At,5,e.SBq),e.Gf(l.N7,5,l.N7)),2&t){let a;e.iGM(a=e.CRH())&&(n.tableHeaderElement=a.first),e.iGM(a=e.CRH())&&(n.tableBodyElement=a.first),e.iGM(a=e.CRH())&&(n.cdkVirtualScrollViewport=a.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(t,n){1&t&&(e.YNc(0,Wt,6,6,"ng-container",0),e.YNc(1,Lt,3,5,"div",1)),2&t&&(e.Q6J("ngIf",n.scrollY),e.xp6(1),e.Q6J("ngIf",!n.scrollY))},directives:[Ie,l.N7,Fe,f.O5,f.PC,l.xd,l.x0,f.tP],encapsulation:2,changeDetection:0}),i})(),ke=(()=>{class i{constructor(t){this.templateRef=t}static ngTemplateContextGuard(t,n){return!0}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Rgc))},i.\u0275dir=e.lG2({type:i,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),i})(),me=(()=>{class i{constructor(){this.destroy$=new y.xQ,this.pageIndex$=new M.X(1),this.frontPagination$=new M.X(!0),this.pageSize$=new M.X(10),this.listOfData$=new M.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,ue.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,ue.x)()),this.listOfCalcOperator$=new M.X([]),this.queryParams$=(0,B.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,ye.b)(0),(0,ot.T)(1),(0,I.U)(([t,n,a])=>({pageIndex:t,pageSize:n,sort:a.filter(s=>s.sortFn).map(s=>({key:s.key,value:s.sortOrder})),filter:a.filter(s=>s.filterFn).map(s=>({key:s.key,value:s.filterValue}))}))),this.listOfDataAfterCalc$=(0,B.aj)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,I.U)(([t,n])=>{let a=[...t];const s=n.filter(g=>{const{filterValue:z,filterFn:C}=g;return!(null==z||Array.isArray(z)&&0===z.length)&&"function"==typeof C});for(const g of s){const{filterFn:z,filterValue:C}=g;a=a.filter(T=>z(C,T))}const c=n.filter(g=>null!==g.sortOrder&&"function"==typeof g.sortFn).sort((g,z)=>+z.sortPriority-+g.sortPriority);return n.length&&a.sort((g,z)=>{for(const C of c){const{sortFn:T,sortOrder:u}=C;if(T&&u){const k=T(g,z,u);if(0!==k)return"ascend"===u?k:-k}}return 0}),a})),this.listOfFrontEndCurrentPageData$=(0,B.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,p.R)(this.destroy$),(0,ze.h)(t=>{const[n,a,s]=t;return n<=(Math.ceil(s.length/a)||1)}),(0,I.U)(([t,n,a])=>a.slice((t-1)*n,t*n))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,R.w)(t=>t?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,R.w)(t=>t?this.listOfDataAfterCalc$:this.listOfData$),(0,I.U)(t=>t.length),(0,ue.x)())}updatePageSize(t){this.pageSize$.next(t)}updateFrontPagination(t){this.frontPagination$.next(t)}updatePageIndex(t){this.pageIndex$.next(t)}updateListOfData(t){this.listOfData$.next(t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),xn=(()=>{class i{constructor(){this.title=null,this.footer=null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(t,n){2&t&&e.ekj("ant-table-title",null!==n.title)("ant-table-footer",null!==n.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(t,n){1&t&&(e.YNc(0,Vt,2,1,"ng-container",0),e.YNc(1,Ut,2,1,"ng-container",0)),2&t&&(e.Q6J("nzStringTemplateOutlet",n.title),e.xp6(1),e.Q6J("nzStringTemplateOutlet",n.footer))},directives:[F.f],encapsulation:2,changeDetection:0}),i})(),vn=(()=>{class i{constructor(t,n,a,s,c,g,z){this.elementRef=t,this.nzResizeObserver=n,this.nzConfigService=a,this.cdr=s,this.nzTableStyleService=c,this.nzTableDataService=g,this.directionality=z,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=C=>C,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new y.xQ,this.templateMode$=new M.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,p.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(t){this.nzTableDataService.updatePageSize(t)}onPageIndexChange(t){this.nzTableDataService.updatePageIndex(t)}ngOnInit(){var t;const{pageIndexDistinct$:n,pageSizeDistinct$:a,listOfCurrentPageData$:s,total$:c,queryParams$:g}=this.nzTableDataService,{theadTemplate$:z,hasFixLeft$:C,hasFixRight$:T}=this.nzTableStyleService;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),g.pipe((0,p.R)(this.destroy$)).subscribe(this.nzQueryParams),n.pipe((0,p.R)(this.destroy$)).subscribe(u=>{u!==this.nzPageIndex&&(this.nzPageIndex=u,this.nzPageIndexChange.next(u))}),a.pipe((0,p.R)(this.destroy$)).subscribe(u=>{u!==this.nzPageSize&&(this.nzPageSize=u,this.nzPageSizeChange.next(u))}),c.pipe((0,p.R)(this.destroy$),(0,ze.h)(()=>this.nzFrontPagination)).subscribe(u=>{u!==this.nzTotal&&(this.nzTotal=u,this.cdr.markForCheck())}),s.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.data=u,this.nzCurrentPageDataChange.next(u),this.cdr.markForCheck()}),z.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.theadTemplate=u,this.cdr.markForCheck()}),C.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.hasFixLeft=u,this.cdr.markForCheck()}),T.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.hasFixRight=u,this.cdr.markForCheck()}),(0,B.aj)([c,this.templateMode$]).pipe((0,I.U)(([u,k])=>0===u&&!k),(0,p.R)(this.destroy$)).subscribe(u=>{this.nzTableStyleService.setShowEmpty(u)}),this.verticalScrollBarWidth=(0,x.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.listOfAutoColWidth=u,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.listOfManualColWidth=u,this.cdr.markForCheck()})}ngOnChanges(t){const{nzScroll:n,nzPageIndex:a,nzPageSize:s,nzFrontPagination:c,nzData:g,nzWidthConfig:z,nzNoResult:C,nzTemplateMode:T}=t;a&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),s&&this.nzTableDataService.updatePageSize(this.nzPageSize),g&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),c&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),n&&this.setScrollOnChanges(),z&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),T&&this.templateMode$.next(this.nzTemplateMode),C&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,I.U)(([t])=>{const{width:n}=t.target.getBoundingClientRect();return Math.floor(n-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,p.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.SBq),e.Y36(Q.D3),e.Y36(O.jY),e.Y36(e.sBO),e.Y36(V),e.Y36(me),e.Y36(w.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table"]],contentQueries:function(t,n,a){if(1&t&&e.Suo(a,ke,5),2&t){let s;e.iGM(s=e.CRH())&&(n.nzVirtualScrollDirective=s.first)}},viewQuery:function(t,n){if(1&t&&e.Gf(Me,5),2&t){let a;e.iGM(a=e.CRH())&&(n.nzTableInnerScrollComponent=a.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("ant-table-wrapper-rtl","rtl"===n.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[e._Bn([V,me]),e.TTD],ngContentSelectors:X,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(t,n){if(1&t&&(e.F$t(),e.TgZ(0,"nz-spin",0),e.YNc(1,Xt,2,1,"ng-container",1),e.TgZ(2,"div",2,3),e.YNc(4,Gt,1,1,"nz-table-title-footer",4),e.YNc(5,Kt,1,13,"nz-table-inner-scroll",5),e.YNc(6,qt,1,4,"ng-template",null,6,e.W1O),e.YNc(8,en,1,1,"nz-table-title-footer",7),e.qZA(),e.YNc(9,nn,2,1,"ng-container",1),e.qZA(),e.YNc(10,an,1,1,"ng-template",null,8,e.W1O),e.YNc(12,sn,1,0,"ng-template",null,9,e.W1O)),2&t){const a=e.MAs(7);e.Q6J("nzDelay",n.nzLoadingDelay)("nzSpinning",n.nzLoading)("nzIndicator",n.nzLoadingIndicator),e.xp6(1),e.Q6J("ngIf","both"===n.nzPaginationPosition||"top"===n.nzPaginationPosition),e.xp6(1),e.ekj("ant-table-rtl","rtl"===n.dir)("ant-table-fixed-header",n.nzData.length&&n.scrollY)("ant-table-fixed-column",n.scrollX)("ant-table-has-fix-left",n.hasFixLeft)("ant-table-has-fix-right",n.hasFixRight)("ant-table-bordered",n.nzBordered)("nz-table-out-bordered",n.nzOuterBordered&&!n.nzBordered)("ant-table-middle","middle"===n.nzSize)("ant-table-small","small"===n.nzSize),e.xp6(2),e.Q6J("ngIf",n.nzTitle),e.xp6(1),e.Q6J("ngIf",n.scrollY||n.scrollX)("ngIfElse",a),e.xp6(3),e.Q6J("ngIf",n.nzFooter),e.xp6(1),e.Q6J("ngIf","both"===n.nzPaginationPosition||"bottom"===n.nzPaginationPosition)}},directives:[Te.W,xn,Me,_n,tt,f.O5,f.tP],encapsulation:2,changeDetection:0}),(0,v.gn)([(0,x.yF)()],i.prototype,"nzFrontPagination",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzTemplateMode",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzShowPagination",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzLoading",void 0),(0,v.gn)([(0,x.yF)()],i.prototype,"nzOuterBordered",void 0),(0,v.gn)([(0,O.oS)()],i.prototype,"nzLoadingIndicator",void 0),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzBordered",void 0),(0,v.gn)([(0,O.oS)()],i.prototype,"nzSize",void 0),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzShowSizeChanger",void 0),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzHideOnSinglePage",void 0),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzShowQuickJumper",void 0),(0,v.gn)([(0,O.oS)(),(0,x.yF)()],i.prototype,"nzSimple",void 0),i})(),$e=(()=>{class i{constructor(t){this.nzTableStyleService=t,this.destroy$=new y.xQ,this.listOfFixedColumns$=new D.t(1),this.listOfColumns$=new D.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,R.w)(n=>(0,j.T)(this.listOfFixedColumns$,...n.map(a=>a.changes$)).pipe((0,fe.zg)(()=>this.listOfFixedColumns$))),(0,p.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,I.U)(n=>n.filter(a=>!1!==a.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,I.U)(n=>n.filter(a=>!1!==a.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,R.w)(n=>(0,j.T)(this.listOfColumns$,...n.map(a=>a.changes$)).pipe((0,fe.zg)(()=>this.listOfColumns$))),(0,p.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!t}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,H.O)(this.listOfCellFixedDirective),(0,p.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,H.O)(this.listOfNzThDirective),(0,p.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(t=>{t.forEach(n=>n.setIsLastLeft(n===t[t.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(t=>{t.forEach(n=>n.setIsFirstRight(n===t[0]))}),(0,B.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,p.R)(this.destroy$)).subscribe(([t,n])=>{n.forEach((a,s)=>{if(a.isAutoLeft){const g=n.slice(0,s).reduce((C,T)=>C+(T.colspan||T.colSpan||1),0),z=t.slice(0,g).reduce((C,T)=>C+T,0);a.setAutoLeftWidth(`${z}px`)}})}),(0,B.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,p.R)(this.destroy$)).subscribe(([t,n])=>{n.forEach((a,s)=>{const c=n[n.length-s-1];if(c.isAutoRight){const z=n.slice(n.length-s,n.length).reduce((T,u)=>T+(u.colspan||u.colSpan||1),0),C=t.slice(t.length-z,t.length).reduce((T,u)=>T+u,0);c.setAutoRightWidth(`${C}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(V,8))},i.\u0275dir=e.lG2({type:i,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(t,n,a){if(1&t&&(e.Suo(a,Pe,4),e.Suo(a,we,4)),2&t){let s;e.iGM(s=e.CRH())&&(n.listOfNzThDirective=s),e.iGM(s=e.CRH())&&(n.listOfCellFixedDirective=s)}},hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("ant-table-row",n.isInsideTable)}}),i})(),bn=(()=>{class i{constructor(t,n,a,s){this.elementRef=t,this.renderer=n,this.nzTableStyleService=a,this.nzTableDataService=s,this.destroy$=new y.xQ,this.isInsideTable=!1,this.nzSortOrderChange=new e.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const t=this.listOfNzTrDirective.changes.pipe((0,H.O)(this.listOfNzTrDirective),(0,I.U)(c=>c&&c.first)),n=t.pipe((0,R.w)(c=>c?c.listOfColumnsChanges$:pe.E),(0,p.R)(this.destroy$));n.subscribe(c=>this.nzTableStyleService.setListOfTh(c)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,R.w)(c=>c?n:(0,it.of)([]))).pipe((0,p.R)(this.destroy$)).subscribe(c=>this.nzTableStyleService.setListOfMeasureColumn(c));const a=t.pipe((0,R.w)(c=>c?c.listOfFixedLeftColumnChanges$:pe.E),(0,p.R)(this.destroy$)),s=t.pipe((0,R.w)(c=>c?c.listOfFixedRightColumnChanges$:pe.E),(0,p.R)(this.destroy$));a.subscribe(c=>{this.nzTableStyleService.setHasFixLeft(0!==c.length)}),s.subscribe(c=>{this.nzTableStyleService.setHasFixRight(0!==c.length)})}if(this.nzTableDataService){const t=this.listOfNzThAddOnComponent.changes.pipe((0,H.O)(this.listOfNzThAddOnComponent));t.pipe((0,R.w)(()=>(0,j.T)(...this.listOfNzThAddOnComponent.map(s=>s.manualClickOrder$))),(0,p.R)(this.destroy$)).subscribe(s=>{this.nzSortOrderChange.emit({key:s.nzColumnKey,value:s.sortOrder}),s.nzSortFn&&!1===s.nzSortPriority&&this.listOfNzThAddOnComponent.filter(g=>g!==s).forEach(g=>g.clearSortOrder())}),t.pipe((0,R.w)(s=>(0,j.T)(t,...s.map(c=>c.calcOperatorChange$)).pipe((0,fe.zg)(()=>t))),(0,I.U)(s=>s.filter(c=>!!c.nzSortFn||!!c.nzFilterFn).map(c=>{const{nzSortFn:g,sortOrder:z,nzFilterFn:C,nzFilterValue:T,nzSortPriority:u,nzColumnKey:k}=c;return{key:k,sortFn:g,sortPriority:u,sortOrder:z,filterFn:C,filterValue:T}})),(0,ge.g)(0),(0,p.R)(this.destroy$)).subscribe(s=>{this.nzTableDataService.listOfCalcOperator$.next(s)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(V,8),e.Y36(me,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(t,n,a){if(1&t&&(e.Suo(a,$e,5),e.Suo(a,De,5)),2&t){let s;e.iGM(s=e.CRH())&&(n.listOfNzTrDirective=s),e.iGM(s=e.CRH())&&(n.listOfNzThAddOnComponent=s)}},viewQuery:function(t,n){if(1&t&&e.Gf(ln,7),2&t){let a;e.iGM(a=e.CRH())&&(n.templateRef=a.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:X,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(t,n){1&t&&(e.F$t(),e.YNc(0,rn,1,0,"ng-template",null,0,e.W1O),e.YNc(2,dn,2,1,"ng-container",1)),2&t&&(e.xp6(2),e.Q6J("ngIf",!n.isInsideTable))},directives:[f.O5,f.tP],encapsulation:2,changeDetection:0}),i})(),Tn=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[w.vT,W.ip,$.u5,F.T,be.aF,b.Wr,m.b1,q.sL,f.ez,A.ud,nt,Q.y7,Te.j,P.YI,E.PV,N.Xo,l.Cl]]}),i})()}}]); \ No newline at end of file diff --git a/server/public/7064.7606e873f17e97fe.js b/server/public/7064.7606e873f17e97fe.js new file mode 100644 index 000000000..0d25d4847 --- /dev/null +++ b/server/public/7064.7606e873f17e97fe.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7064],{1945:(Re,ae,d)=>{d.d(ae,{$O:()=>re,u5:()=>ee,Jp:()=>ne,KJ:()=>ce,yG:()=>K,ZJ:()=>te,u9:()=>Z});var D=d(226),Q=d(9808),s=d(5e3),f=d(969),e=d(647),F=d(655),X=d(8929),H=d(7625),G=d(4850),U=d(9439),J=d(948),q=d(5577);function Y(r,m){if(1&r&&(s.ynx(0),s._UZ(1,"i",9),s.BQk()),2&r){const h=m.$implicit,S=s.oxw(2);s.xp6(1),s.Q6J("nzType",h||S.getBackIcon())}}function B(r,m){if(1&r){const h=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){return s.CHM(h),s.oxw().onBack()}),s.TgZ(1,"div",7),s.YNc(2,Y,2,1,"ng-container",8),s.qZA(),s.qZA()}if(2&r){const h=s.oxw();s.xp6(2),s.Q6J("nzStringTemplateOutlet",h.nzBackIcon)}}function j(r,m){if(1&r&&(s.ynx(0),s._uU(1),s.BQk()),2&r){const h=s.oxw(2);s.xp6(1),s.Oqu(h.nzTitle)}}function x(r,m){if(1&r&&(s.TgZ(0,"span",10),s.YNc(1,j,2,1,"ng-container",8),s.qZA()),2&r){const h=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",h.nzTitle)}}function v(r,m){1&r&&s.Hsn(0,6,["*ngIf","!nzTitle"])}function y(r,m){if(1&r&&(s.ynx(0),s._uU(1),s.BQk()),2&r){const h=s.oxw(2);s.xp6(1),s.Oqu(h.nzSubtitle)}}function p(r,m){if(1&r&&(s.TgZ(0,"span",11),s.YNc(1,y,2,1,"ng-container",8),s.qZA()),2&r){const h=s.oxw();s.xp6(1),s.Q6J("nzStringTemplateOutlet",h.nzSubtitle)}}function b(r,m){1&r&&s.Hsn(0,7,["*ngIf","!nzSubtitle"])}const M=[[["nz-breadcrumb","nz-page-header-breadcrumb",""]],[["nz-avatar","nz-page-header-avatar",""]],[["nz-page-header-tags"],["","nz-page-header-tags",""]],[["nz-page-header-extra"],["","nz-page-header-extra",""]],[["nz-page-header-content"],["","nz-page-header-content",""]],[["nz-page-header-footer"],["","nz-page-header-footer",""]],[["nz-page-header-title"],["","nz-page-header-title",""]],[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]]],C=["nz-breadcrumb[nz-page-header-breadcrumb]","nz-avatar[nz-page-header-avatar]","nz-page-header-tags, [nz-page-header-tags]","nz-page-header-extra, [nz-page-header-extra]","nz-page-header-content, [nz-page-header-content]","nz-page-header-footer, [nz-page-header-footer]","nz-page-header-title, [nz-page-header-title]","nz-page-header-subtitle, [nz-page-header-subtitle]"];let Z=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=s.lG2({type:r,selectors:[["nz-page-header-title"],["","nz-page-header-title",""]],hostAttrs:[1,"ant-page-header-heading-title"],exportAs:["nzPageHeaderTitle"]}),r})(),K=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=s.lG2({type:r,selectors:[["nz-page-header-subtitle"],["","nz-page-header-subtitle",""]],hostAttrs:[1,"ant-page-header-heading-sub-title"],exportAs:["nzPageHeaderSubtitle"]}),r})(),ee=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=s.lG2({type:r,selectors:[["nz-page-header-content"],["","nz-page-header-content",""]],hostAttrs:[1,"ant-page-header-content"],exportAs:["nzPageHeaderContent"]}),r})(),te=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=s.lG2({type:r,selectors:[["nz-page-header-tags"],["","nz-page-header-tags",""]],hostAttrs:[1,"ant-page-header-heading-tags"],exportAs:["nzPageHeaderTags"]}),r})(),ne=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=s.lG2({type:r,selectors:[["nz-page-header-extra"],["","nz-page-header-extra",""]],hostAttrs:[1,"ant-page-header-heading-extra"],exportAs:["nzPageHeaderExtra"]}),r})(),ie=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=s.lG2({type:r,selectors:[["nz-page-header-footer"],["","nz-page-header-footer",""]],hostAttrs:[1,"ant-page-header-footer"],exportAs:["nzPageHeaderFooter"]}),r})(),oe=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275dir=s.lG2({type:r,selectors:[["nz-breadcrumb","nz-page-header-breadcrumb",""]],exportAs:["nzPageHeaderBreadcrumb"]}),r})(),re=(()=>{class r{constructor(h,S,A,k,de,he){this.location=h,this.nzConfigService=S,this.elementRef=A,this.nzResizeObserver=k,this.cdr=de,this.directionality=he,this._nzModuleName="pageHeader",this.nzBackIcon=null,this.nzGhost=!0,this.nzBack=new s.vpe,this.compact=!1,this.destroy$=new X.xQ,this.dir="ltr"}ngOnInit(){var h;null===(h=this.directionality.change)||void 0===h||h.pipe((0,H.R)(this.destroy$)).subscribe(S=>{this.dir=S,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,G.U)(([h])=>h.contentRect.width),(0,H.R)(this.destroy$)).subscribe(h=>{this.compact=h<768,this.cdr.markForCheck()})}onBack(){if(this.nzBack.observers.length)this.nzBack.emit();else{if(!this.location)throw new Error(`${J.Bq} you should import 'RouterModule' or register 'Location' if you want to use 'nzBack' default event!`);this.location.back()}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getBackIcon(){return"rtl"===this.dir?"arrow-right":"arrow-left"}}return r.\u0275fac=function(h){return new(h||r)(s.Y36(Q.Ye,8),s.Y36(U.jY),s.Y36(s.SBq),s.Y36(q.D3),s.Y36(s.sBO),s.Y36(D.Is,8))},r.\u0275cmp=s.Xpm({type:r,selectors:[["nz-page-header"]],contentQueries:function(h,S,A){if(1&h&&(s.Suo(A,ie,5),s.Suo(A,oe,5)),2&h){let k;s.iGM(k=s.CRH())&&(S.nzPageHeaderFooter=k.first),s.iGM(k=s.CRH())&&(S.nzPageHeaderBreadcrumb=k.first)}},hostAttrs:[1,"ant-page-header"],hostVars:10,hostBindings:function(h,S){2&h&&s.ekj("has-footer",S.nzPageHeaderFooter)("ant-page-header-ghost",S.nzGhost)("has-breadcrumb",S.nzPageHeaderBreadcrumb)("ant-page-header-compact",S.compact)("ant-page-header-rtl","rtl"===S.dir)},inputs:{nzBackIcon:"nzBackIcon",nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzGhost:"nzGhost"},outputs:{nzBack:"nzBack"},exportAs:["nzPageHeader"],ngContentSelectors:C,decls:13,vars:5,consts:[[1,"ant-page-header-heading"],[1,"ant-page-header-heading-left"],["class","ant-page-header-back",3,"click",4,"ngIf"],["class","ant-page-header-heading-title",4,"ngIf"],[4,"ngIf"],["class","ant-page-header-heading-sub-title",4,"ngIf"],[1,"ant-page-header-back",3,"click"],["role","button","tabindex","0",1,"ant-page-header-back-button"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"],[1,"ant-page-header-heading-title"],[1,"ant-page-header-heading-sub-title"]],template:function(h,S){1&h&&(s.F$t(M),s.Hsn(0),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s.YNc(3,B,3,1,"div",2),s.Hsn(4,1),s.YNc(5,x,2,1,"span",3),s.YNc(6,v,1,0,"ng-content",4),s.YNc(7,p,2,1,"span",5),s.YNc(8,b,1,0,"ng-content",4),s.Hsn(9,2),s.qZA(),s.Hsn(10,3),s.qZA(),s.Hsn(11,4),s.Hsn(12,5)),2&h&&(s.xp6(3),s.Q6J("ngIf",null!==S.nzBackIcon),s.xp6(2),s.Q6J("ngIf",S.nzTitle),s.xp6(1),s.Q6J("ngIf",!S.nzTitle),s.xp6(1),s.Q6J("ngIf",S.nzSubtitle),s.xp6(1),s.Q6J("ngIf",!S.nzSubtitle))},directives:[Q.O5,f.f,e.Ls],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,U.oS)()],r.prototype,"nzGhost",void 0),r})(),ce=(()=>{class r{}return r.\u0275fac=function(h){return new(h||r)},r.\u0275mod=s.oAB({type:r}),r.\u0275inj=s.cJS({imports:[[D.vT,Q.ez,f.T,e.PV]]}),r})()},1132:(Re,ae,d)=>{d.d(ae,{UX:()=>fn,qn:()=>Ne,Uo:()=>un,N8:()=>Tn,HQ:()=>vn,zu:()=>Me,p0:()=>Ie,qD:()=>Oe,_C:()=>Pe,Om:()=>Sn,$Z:()=>$e});var D=d(226),Q=d(925),s=d(2321),f=d(9808),e=d(5e3),F=d(4182),X=d(6042),H=d(5577),G=d(6114),U=d(969),J=d(3677),q=d(685),Y=d(4170),B=d(647),j=d(4219),x=d(655),v=d(8929),y=d(839),p=d(7625),b=d(9439),M=d(4090),C=d(1721),Z=d(8054);const K=["nz-pagination-item",""];function ee(i,o){if(1&i&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&i){const t=e.oxw().page;e.xp6(1),e.Oqu(t)}}function te(i,o){1&i&&e._UZ(0,"i",9)}function ne(i,o){1&i&&e._UZ(0,"i",10)}function ie(i,o){if(1&i&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,te,1,0,"i",7),e.YNc(3,ne,1,0,"i",8),e.BQk(),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("disabled",t.disabled),e.xp6(1),e.Q6J("ngSwitch",t.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function oe(i,o){1&i&&e._UZ(0,"i",10)}function le(i,o){1&i&&e._UZ(0,"i",9)}function se(i,o){if(1&i&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,oe,1,0,"i",11),e.YNc(3,le,1,0,"i",12),e.BQk(),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("disabled",t.disabled),e.xp6(1),e.Q6J("ngSwitch",t.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function re(i,o){1&i&&e._UZ(0,"i",20)}function _e(i,o){1&i&&e._UZ(0,"i",21)}function ce(i,o){if(1&i&&(e.ynx(0,2),e.YNc(1,re,1,0,"i",18),e.YNc(2,_e,1,0,"i",19),e.BQk()),2&i){const t=e.oxw(4);e.Q6J("ngSwitch",t.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function r(i,o){1&i&&e._UZ(0,"i",21)}function m(i,o){1&i&&e._UZ(0,"i",20)}function h(i,o){if(1&i&&(e.ynx(0,2),e.YNc(1,r,1,0,"i",22),e.YNc(2,m,1,0,"i",23),e.BQk()),2&i){const t=e.oxw(4);e.Q6J("ngSwitch",t.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function S(i,o){if(1&i&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,ce,3,2,"ng-container",16),e.YNc(3,h,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA(),e.qZA()),2&i){const t=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",t),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function A(i,o){if(1&i&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,S,6,3,"div",14),e.qZA(),e.BQk()),2&i){const t=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",t)}}function k(i,o){1&i&&(e.ynx(0,2),e.YNc(1,ee,2,1,"a",3),e.YNc(2,ie,4,3,"button",4),e.YNc(3,se,4,3,"button",4),e.YNc(4,A,3,1,"ng-container",5),e.BQk()),2&i&&(e.Q6J("ngSwitch",o.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function de(i,o){}const he=function(i,o){return{$implicit:i,page:o}},Ce=["containerTemplate"];function Be(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){return e.CHM(t),e.oxw().prePage()}),e.qZA(),e.TgZ(1,"li",2),e.TgZ(2,"input",3),e.NdJ("keydown.enter",function(a){return e.CHM(t),e.oxw().jumpToPageViaInput(a)}),e.qZA(),e.TgZ(3,"span",4),e._uU(4,"/"),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"li",5),e.NdJ("click",function(){return e.CHM(t),e.oxw().nextPage()}),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("disabled",t.isFirstIndex)("direction",t.dir)("itemRender",t.itemRender),e.uIk("title",t.locale.prev_page),e.xp6(1),e.uIk("title",t.pageIndex+"/"+t.lastIndex),e.xp6(1),e.Q6J("disabled",t.disabled)("value",t.pageIndex),e.xp6(3),e.hij(" ",t.lastIndex," "),e.xp6(1),e.Q6J("disabled",t.isLastIndex)("direction",t.dir)("itemRender",t.itemRender),e.uIk("title",null==t.locale?null:t.locale.next_page)}}const Ae=["nz-pagination-options",""];function Ee(i,o){if(1&i&&e._UZ(0,"nz-option",4),2&i){const t=o.$implicit;e.Q6J("nzLabel",t.label)("nzValue",t.value)}}function Qe(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(a){return e.CHM(t),e.oxw().onPageSizeChange(a)}),e.YNc(1,Ee,1,2,"nz-option",3),e.qZA()}if(2&i){const t=e.oxw();e.Q6J("nzDisabled",t.disabled)("nzSize",t.nzSize)("ngModel",t.pageSize),e.xp6(1),e.Q6J("ngForOf",t.listOfPageSizeOption)("ngForTrackBy",t.trackByOption)}}function He(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(a){return e.CHM(t),e.oxw().jumpToPageViaInput(a)}),e.qZA(),e._uU(3),e.qZA()}if(2&i){const t=e.oxw();e.xp6(1),e.hij(" ",t.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",t.disabled),e.xp6(1),e.hij(" ",t.locale.page," ")}}function Je(i,o){}const Ye=function(i,o){return{$implicit:i,range:o}};function Ze(i,o){if(1&i&&(e.TgZ(0,"li",4),e.YNc(1,Je,0,0,"ng-template",5),e.qZA()),2&i){const t=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",t.showTotal)("ngTemplateOutletContext",e.WLB(2,Ye,t.total,t.ranges))}}function We(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(a){return e.CHM(t),e.oxw(2).jumpPage(a)})("diffIndex",function(a){return e.CHM(t),e.oxw(2).jumpDiff(a)}),e.qZA()}if(2&i){const t=o.$implicit,n=e.oxw(2);e.Q6J("locale",n.locale)("type",t.type)("index",t.index)("disabled",!!t.disabled)("itemRender",n.itemRender)("active",n.pageIndex===t.index)("direction",n.dir)}}function Le(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"div",7),e.NdJ("pageIndexChange",function(a){return e.CHM(t),e.oxw(2).onPageIndexChange(a)})("pageSizeChange",function(a){return e.CHM(t),e.oxw(2).onPageSizeChange(a)}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("total",t.total)("locale",t.locale)("disabled",t.disabled)("nzSize",t.nzSize)("showSizeChanger",t.showSizeChanger)("showQuickJumper",t.showQuickJumper)("pageIndex",t.pageIndex)("pageSize",t.pageSize)("pageSizeOptions",t.pageSizeOptions)}}function Ve(i,o){if(1&i&&(e.YNc(0,Ze,2,5,"li",1),e.YNc(1,We,1,7,"li",2),e.YNc(2,Le,1,9,"div",3)),2&i){const t=e.oxw();e.Q6J("ngIf",t.showTotal),e.xp6(1),e.Q6J("ngForOf",t.listOfPageItem)("ngForTrackBy",t.trackByPageItem),e.xp6(1),e.Q6J("ngIf",t.showQuickJumper||t.showSizeChanger)}}function Ue(i,o){}function je(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Ue,0,0,"ng-template",6),e.BQk()),2&i){e.oxw(2);const t=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",t.template)}}function Xe(i,o){if(1&i&&(e.ynx(0),e.YNc(1,je,2,1,"ng-container",5),e.BQk()),2&i){const t=e.oxw(),n=e.MAs(4);e.xp6(1),e.Q6J("ngIf",t.nzSimple)("ngIfElse",n.template)}}let xe=(()=>{class i{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(t){var n,a,l,c;const{locale:g,index:z,type:_}=t;(g||z||_)&&(this.title={page:`${this.index}`,next:null===(n=this.locale)||void 0===n?void 0:n.next_page,prev:null===(a=this.locale)||void 0===a?void 0:a.prev_page,prev_5:null===(l=this.locale)||void 0===l?void 0:l.prev_5,next_5:null===(c=this.locale)||void 0===c?void 0:c.next_5}[this.type])}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(t,n){1&t&&e.NdJ("click",function(){return n.clickItem()}),2&t&&(e.uIk("title",n.title),e.ekj("ant-pagination-prev","prev"===n.type)("ant-pagination-next","next"===n.type)("ant-pagination-item","page"===n.type)("ant-pagination-jump-prev","prev_5"===n.type)("ant-pagination-jump-prev-custom-icon","prev_5"===n.type)("ant-pagination-jump-next","next_5"===n.type)("ant-pagination-jump-next-custom-icon","next_5"===n.type)("ant-pagination-disabled",n.disabled)("ant-pagination-item-active",n.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:K,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(t,n){if(1&t&&(e.YNc(0,k,5,4,"ng-template",null,0,e.W1O),e.YNc(2,de,0,0,"ng-template",1)),2&t){const a=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",n.itemRender||a)("ngTemplateOutletContext",e.WLB(2,he,n.type,n.index))}},directives:[f.RF,f.n9,B.Ls,f.ED,f.tP],encapsulation:2,changeDetection:0}),i})(),Ge=(()=>{class i{constructor(t,n,a,l){this.cdr=t,this.renderer=n,this.elementRef=a,this.directionality=l,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new v.xQ,n.removeChild(n.parentNode(a.nativeElement),a.nativeElement)}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(t){const n=t.target,a=(0,C.He)(n.value,this.pageIndex);this.onPageIndexChange(a),n.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(t){this.pageIndexChange.next(t)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(t){const{pageIndex:n,total:a,pageSize:l}=t;(n||a||l)&&this.updateBindingValue()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(D.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-pagination-simple"]],viewQuery:function(t,n){if(1&t&&e.Gf(Ce,7),2&t){let a;e.iGM(a=e.CRH())&&(n.template=a.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(t,n){1&t&&e.YNc(0,Be,7,12,"ng-template",null,0,e.W1O)},directives:[xe],encapsulation:2,changeDetection:0}),i})(),qe=(()=>{class i{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(t){this.pageSize!==t&&this.pageSizeChange.next(t)}jumpToPageViaInput(t){const n=t.target,a=Math.floor((0,C.He)(n.value,this.pageIndex));this.pageIndexChange.next(a),n.value=""}trackByOption(t,n){return n.value}ngOnChanges(t){const{pageSize:n,pageSizeOptions:a,locale:l}=t;(n||a||l)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(c=>({value:c,label:`${c} ${this.locale.items_per_page}`})))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["div","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:Ae,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(t,n){1&t&&(e.YNc(0,Qe,2,5,"nz-select",0),e.YNc(1,He,4,3,"div",1)),2&t&&(e.Q6J("ngIf",n.showSizeChanger),e.xp6(1),e.Q6J("ngIf",n.showQuickJumper))},directives:[Z.Vq,Z.Ip,f.O5,F.JJ,F.On,f.sg],encapsulation:2,changeDetection:0}),i})(),Ke=(()=>{class i{constructor(t,n,a,l){this.cdr=t,this.renderer=n,this.elementRef=a,this.directionality=l,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new v.xQ,n.removeChild(n.parentNode(a.nativeElement),a.nativeElement)}ngOnInit(){var t;null===(t=this.directionality.change)||void 0===t||t.pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(t){this.onPageIndexChange(t)}jumpDiff(t){this.jumpPage(this.pageIndex+t)}trackByPageItem(t,n){return`${n.type}-${n.index}`}onPageIndexChange(t){this.pageIndexChange.next(t)}onPageSizeChange(t){this.pageSizeChange.next(t)}getLastIndex(t,n){return Math.ceil(t/n)}buildIndexes(){const t=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,t)}getListOfPageItem(t,n){const l=(c,g)=>{const z=[];for(let _=c;_<=g;_++)z.push({index:_,type:"page"});return z};return c=n<=9?l(1,n):((g,z)=>{let _=[];const T={type:"prev_5"},u={type:"next_5"},O=l(1,1),R=l(n,n);return _=g<5?[...l(2,4===g?6:5),u]:g{class i{constructor(t,n,a,l,c){this.i18n=t,this.cdr=n,this.breakpointService=a,this.nzConfigService=l,this.directionality=c,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new v.xQ,this.total$=new y.t(1)}validatePageIndex(t,n){return t>n?n:t<1?1:t}onPageIndexChange(t){const n=this.getLastIndex(this.nzTotal,this.nzPageSize),a=this.validatePageIndex(t,n);a!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=a,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(t){this.nzPageSize=t,this.nzPageSizeChange.emit(t);const n=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>n&&this.onPageIndexChange(n)}onTotalChange(t){const n=this.getLastIndex(t,this.nzPageSize);this.nzPageIndex>n&&Promise.resolve().then(()=>{this.onPageIndexChange(n),this.cdr.markForCheck()})}getLastIndex(t,n){return Math.ceil(t/n)}ngOnInit(){var t;this.i18n.localeChange.pipe((0,p.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.onTotalChange(n)}),this.breakpointService.subscribe(M.WV).pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.nzResponsive&&(this.size=n===M.G_.xs?"small":"default",this.cdr.markForCheck())}),null===(t=this.directionality.change)||void 0===t||t.pipe((0,p.R)(this.destroy$)).subscribe(n=>{this.dir=n,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(t){const{nzHideOnSinglePage:n,nzTotal:a,nzPageSize:l,nzSize:c}=t;a&&this.total$.next(this.nzTotal),(n||a||l)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),c&&(this.size=c.currentValue)}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(Y.wi),e.Y36(e.sBO),e.Y36(M.r3),e.Y36(b.jY),e.Y36(D.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(t,n){2&t&&e.ekj("ant-pagination-simple",n.nzSimple)("ant-pagination-disabled",n.nzDisabled)("mini",!n.nzSimple&&"small"===n.size)("ant-pagination-rtl","rtl"===n.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(t,n){1&t&&(e.YNc(0,Xe,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(l){return n.onPageIndexChange(l)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(l){return n.onPageIndexChange(l)})("pageSizeChange",function(l){return n.onPageSizeChange(l)}),e.qZA()),2&t&&(e.Q6J("ngIf",n.showPagination),e.xp6(1),e.Q6J("disabled",n.nzDisabled)("itemRender",n.nzItemRender)("locale",n.locale)("pageSize",n.nzPageSize)("total",n.nzTotal)("pageIndex",n.nzPageIndex),e.xp6(2),e.Q6J("nzSize",n.size)("itemRender",n.nzItemRender)("showTotal",n.nzShowTotal)("disabled",n.nzDisabled)("locale",n.locale)("showSizeChanger",n.nzShowSizeChanger)("showQuickJumper",n.nzShowQuickJumper)("total",n.nzTotal)("pageIndex",n.nzPageIndex)("pageSize",n.nzPageSize)("pageSizeOptions",n.nzPageSizeOptions))},directives:[Ge,Ke,f.O5,f.tP],encapsulation:2,changeDetection:0}),(0,x.gn)([(0,b.oS)()],i.prototype,"nzSize",void 0),(0,x.gn)([(0,b.oS)()],i.prototype,"nzPageSizeOptions",void 0),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzShowSizeChanger",void 0),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzShowQuickJumper",void 0),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzSimple",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzDisabled",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzResponsive",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzHideOnSinglePage",void 0),(0,x.gn)([(0,C.Rn)()],i.prototype,"nzTotal",void 0),(0,x.gn)([(0,C.Rn)()],i.prototype,"nzPageIndex",void 0),(0,x.gn)([(0,C.Rn)()],i.prototype,"nzPageSize",void 0),i})(),nt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[D.vT,f.ez,F.u5,Z.LV,Y.YI,B.PV]]}),i})();var Te=d(3868),Se=d(7525),ve=d(3753),N=d(591),I=d(3426),W=d(6787),pe=d(8896),it=d(1086),w=d(4850),$=d(1059),P=d(7545),be=d(13),ge=d(6792),ze=d(2198),ue=d(5778),ot=d(1307),fe=d(1709),ye=d(2683),at=d(2643);const L=["*"];function lt(i,o){}function st(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"label",15),e.NdJ("ngModelChange",function(){e.CHM(t);const a=e.oxw().$implicit;return e.oxw(2).check(a)}),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.Q6J("ngModel",t.checked)}}function rt(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"label",16),e.NdJ("ngModelChange",function(){e.CHM(t);const a=e.oxw().$implicit;return e.oxw(2).check(a)}),e.qZA()}if(2&i){const t=e.oxw().$implicit;e.Q6J("ngModel",t.checked)}}function ct(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const l=e.CHM(t).$implicit;return e.oxw(2).check(l)}),e.YNc(1,st,1,1,"label",13),e.YNc(2,rt,1,1,"label",14),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()}if(2&i){const t=o.$implicit,n=e.oxw(2);e.Q6J("nzSelected",t.checked),e.xp6(1),e.Q6J("ngIf",!n.filterMultiple),e.xp6(1),e.Q6J("ngIf",n.filterMultiple),e.xp6(2),e.Oqu(t.text)}}function dt(i,o){if(1&i){const t=e.EpF();e.ynx(0),e.TgZ(1,"nz-filter-trigger",3),e.NdJ("nzVisibleChange",function(a){return e.CHM(t),e.oxw().onVisibleChange(a)}),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"nz-dropdown-menu",null,5),e.TgZ(5,"div",6),e.TgZ(6,"ul",7),e.YNc(7,ct,5,4,"li",8),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(t),e.oxw().reset()}),e._uU(10),e.qZA(),e.TgZ(11,"button",11),e.NdJ("click",function(){return e.CHM(t),e.oxw().confirm()}),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&i){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("nzVisible",n.isVisible)("nzActive",n.isChecked)("nzDropdownMenu",t),e.xp6(6),e.Q6J("ngForOf",n.listOfParsedFilter)("ngForTrackBy",n.trackByValue),e.xp6(2),e.Q6J("disabled",!n.isChecked),e.xp6(1),e.hij(" ",n.locale.filterReset," "),e.xp6(2),e.Oqu(n.locale.filterConfirm)}}function pt(i,o){}function gt(i,o){if(1&i&&e._UZ(0,"i",6),2&i){const t=e.oxw();e.ekj("active","ascend"===t.sortOrder)}}function zt(i,o){if(1&i&&e._UZ(0,"i",7),2&i){const t=e.oxw();e.ekj("active","descend"===t.sortOrder)}}const ut=["nzColumnKey",""];function ft(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"nz-table-filter",5),e.NdJ("filterChange",function(a){return e.CHM(t),e.oxw().onFilterValueChange(a)}),e.qZA()}if(2&i){const t=e.oxw(),n=e.MAs(2),a=e.MAs(4);e.Q6J("contentTemplate",n)("extraTemplate",a)("customFilter",t.nzCustomFilter)("filterMultiple",t.nzFilterMultiple)("listOfFilter",t.nzFilters)}}function mt(i,o){}function _t(i,o){if(1&i&&e.YNc(0,mt,0,0,"ng-template",6),2&i){const t=e.oxw(),n=e.MAs(6),a=e.MAs(8);e.Q6J("ngTemplateOutlet",t.nzShowSort?n:a)}}function Ct(i,o){1&i&&(e.Hsn(0),e.Hsn(1,1))}function xt(i,o){if(1&i&&e._UZ(0,"nz-table-sorters",7),2&i){const t=e.oxw(),n=e.MAs(8);e.Q6J("sortOrder",t.sortOrder)("sortDirections",t.sortDirections)("contentTemplate",n)}}function Tt(i,o){1&i&&e.Hsn(0,2)}const St=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],vt=["[nz-th-extra]","nz-filter-trigger","*"],bt=["nz-table-content",""];function yt(i,o){if(1&i&&e._UZ(0,"col"),2&i){const t=o.$implicit;e.Udp("width",t)("min-width",t)}}function wt(i,o){}function Nt(i,o){if(1&i&&(e.TgZ(0,"thead",3),e.YNc(1,wt,0,0,"ng-template",2),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",t.theadTemplate)}}function Ot(i,o){}const we=["tdElement"],Pt=["nz-table-fixed-row",""];function Dt(i,o){}function It(i,o){if(1&i&&(e.TgZ(0,"div",4),e.ALo(1,"async"),e.YNc(2,Dt,0,0,"ng-template",5),e.qZA()),2&i){const t=e.oxw(),n=e.MAs(5);e.Udp("width",e.lcZ(1,3,t.hostWidth$),"px"),e.xp6(2),e.Q6J("ngTemplateOutlet",n)}}function Ft(i,o){1&i&&e.Hsn(0)}const Mt=["nz-table-measure-row",""];function kt(i,o){1&i&&e._UZ(0,"td",1,2)}function $t(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"tr",3),e.NdJ("listOfAutoWidth",function(a){return e.CHM(t),e.oxw(2).onListOfAutoWidthChange(a)}),e.qZA()}if(2&i){const t=e.oxw().ngIf;e.Q6J("listOfMeasureColumn",t)}}function Rt(i,o){if(1&i&&(e.ynx(0),e.YNc(1,$t,1,1,"tr",2),e.BQk()),2&i){const t=o.ngIf,n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.isInsideTable&&t.length)}}function Bt(i,o){if(1&i&&(e.TgZ(0,"tr",4),e._UZ(1,"nz-embed-empty",5),e.ALo(2,"async"),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("specificContent",e.lcZ(2,1,t.noResult$))}}const At=["tableHeaderElement"],Et=["tableBodyElement"];function Qt(i,o){if(1&i&&(e.TgZ(0,"div",7,8),e._UZ(2,"table",9),e.qZA()),2&i){const t=e.oxw(2);e.Q6J("ngStyle",t.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",t.scrollX)("listOfColWidth",t.listOfColWidth)("contentTemplate",t.contentTemplate)}}function Ht(i,o){}const Jt=function(i,o){return{$implicit:i,index:o}};function Yt(i,o){if(1&i&&(e.ynx(0),e.YNc(1,Ht,0,0,"ng-template",13),e.BQk()),2&i){const t=o.$implicit,n=o.index,a=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",a.virtualTemplate)("ngTemplateOutletContext",e.WLB(2,Jt,t,n))}}function Zt(i,o){if(1&i&&(e.TgZ(0,"cdk-virtual-scroll-viewport",10,8),e.TgZ(2,"table",11),e.TgZ(3,"tbody"),e.YNc(4,Yt,2,5,"ng-container",12),e.qZA(),e.qZA(),e.qZA()),2&i){const t=e.oxw(2);e.Udp("height",t.data.length?t.scrollY:t.noDateVirtualHeight),e.Q6J("itemSize",t.virtualItemSize)("maxBufferPx",t.virtualMaxBufferPx)("minBufferPx",t.virtualMinBufferPx),e.xp6(2),e.Q6J("scrollX",t.scrollX)("listOfColWidth",t.listOfColWidth),e.xp6(2),e.Q6J("cdkVirtualForOf",t.data)("cdkVirtualForTrackBy",t.virtualForTrackBy)}}function Wt(i,o){if(1&i&&(e.ynx(0),e.TgZ(1,"div",2,3),e._UZ(3,"table",4),e.qZA(),e.YNc(4,Qt,3,4,"div",5),e.YNc(5,Zt,5,9,"cdk-virtual-scroll-viewport",6),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("ngStyle",t.headerStyleMap),e.xp6(2),e.Q6J("scrollX",t.scrollX)("listOfColWidth",t.listOfColWidth)("theadTemplate",t.theadTemplate),e.xp6(1),e.Q6J("ngIf",!t.virtualTemplate),e.xp6(1),e.Q6J("ngIf",t.virtualTemplate)}}function Lt(i,o){if(1&i&&(e.TgZ(0,"div",14,8),e._UZ(2,"table",15),e.qZA()),2&i){const t=e.oxw();e.Q6J("ngStyle",t.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",t.scrollX)("listOfColWidth",t.listOfColWidth)("theadTemplate",t.theadTemplate)("contentTemplate",t.contentTemplate)}}function Vt(i,o){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t.title)}}function Ut(i,o){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw();e.xp6(1),e.Oqu(t.footer)}}function jt(i,o){}function Xt(i,o){if(1&i&&(e.ynx(0),e.YNc(1,jt,0,0,"ng-template",10),e.BQk()),2&i){e.oxw();const t=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function Gt(i,o){if(1&i&&e._UZ(0,"nz-table-title-footer",11),2&i){const t=e.oxw();e.Q6J("title",t.nzTitle)}}function qt(i,o){if(1&i&&e._UZ(0,"nz-table-inner-scroll",12),2&i){const t=e.oxw(),n=e.MAs(13),a=e.MAs(3);e.Q6J("data",t.data)("scrollX",t.scrollX)("scrollY",t.scrollY)("contentTemplate",n)("listOfColWidth",t.listOfAutoColWidth)("theadTemplate",t.theadTemplate)("verticalScrollBarWidth",t.verticalScrollBarWidth)("virtualTemplate",t.nzVirtualScrollDirective?t.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",t.nzVirtualItemSize)("virtualMaxBufferPx",t.nzVirtualMaxBufferPx)("virtualMinBufferPx",t.nzVirtualMinBufferPx)("tableMainElement",a)("virtualForTrackBy",t.nzVirtualForTrackBy)}}function Kt(i,o){if(1&i&&e._UZ(0,"nz-table-inner-default",13),2&i){const t=e.oxw(),n=e.MAs(13);e.Q6J("tableLayout",t.nzTableLayout)("listOfColWidth",t.listOfManualColWidth)("theadTemplate",t.theadTemplate)("contentTemplate",n)}}function en(i,o){if(1&i&&e._UZ(0,"nz-table-title-footer",14),2&i){const t=e.oxw();e.Q6J("footer",t.nzFooter)}}function tn(i,o){}function nn(i,o){if(1&i&&(e.ynx(0),e.YNc(1,tn,0,0,"ng-template",10),e.BQk()),2&i){e.oxw();const t=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}function on(i,o){if(1&i){const t=e.EpF();e.TgZ(0,"nz-pagination",16),e.NdJ("nzPageSizeChange",function(a){return e.CHM(t),e.oxw(2).onPageSizeChange(a)})("nzPageIndexChange",function(a){return e.CHM(t),e.oxw(2).onPageIndexChange(a)}),e.qZA()}if(2&i){const t=e.oxw(2);e.Q6J("hidden",!t.showPagination)("nzShowSizeChanger",t.nzShowSizeChanger)("nzPageSizeOptions",t.nzPageSizeOptions)("nzItemRender",t.nzItemRender)("nzShowQuickJumper",t.nzShowQuickJumper)("nzHideOnSinglePage",t.nzHideOnSinglePage)("nzShowTotal",t.nzShowTotal)("nzSize","small"===t.nzPaginationType?"small":"default"===t.nzSize?"default":"small")("nzPageSize",t.nzPageSize)("nzTotal",t.nzTotal)("nzSimple",t.nzSimple)("nzPageIndex",t.nzPageIndex)}}function an(i,o){if(1&i&&e.YNc(0,on,1,12,"nz-pagination",15),2&i){const t=e.oxw();e.Q6J("ngIf",t.nzShowPagination&&t.data.length)}}function ln(i,o){1&i&&e.Hsn(0)}const sn=["contentTemplate"];function rn(i,o){1&i&&e.Hsn(0)}function cn(i,o){}function dn(i,o){if(1&i&&(e.ynx(0),e.YNc(1,cn,0,0,"ng-template",2),e.BQk()),2&i){e.oxw();const t=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",t)}}let pn=(()=>{class i{constructor(t,n,a,l){this.nzConfigService=t,this.ngZone=n,this.cdr=a,this.destroy$=l,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new e.vpe}onVisibleChange(t){this.nzVisible=t,this.nzVisibleChange.next(t)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,ve.R)(this.nzDropdown.nativeElement,"click").pipe((0,p.R)(this.destroy$)).subscribe(t=>{t.stopPropagation()})})}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(b.jY),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(M.kn))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-filter-trigger"]],viewQuery:function(t,n){if(1&t&&e.Gf(J.cm,7,e.SBq),2&t){let a;e.iGM(a=e.CRH())&&(n.nzDropdown=a.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[e._Bn([M.kn])],ngContentSelectors:L,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(t,n){1&t&&(e.F$t(),e.TgZ(0,"span",0),e.NdJ("nzVisibleChange",function(l){return n.onVisibleChange(l)}),e.Hsn(1),e.qZA()),2&t&&(e.ekj("active",n.nzActive)("ant-table-filter-open",n.nzVisible),e.Q6J("nzBackdrop",n.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",n.nzDropdownMenu)("nzVisible",n.nzVisible))},directives:[J.cm],encapsulation:2,changeDetection:0}),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzBackdrop",void 0),i})(),gn=(()=>{class i{constructor(t,n){this.cdr=t,this.i18n=n,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new e.vpe,this.destroy$=new v.xQ,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}trackByValue(t,n){return n.value}check(t){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(n=>n===t?Object.assign(Object.assign({},n),{checked:!t.checked}):n),t.checked=!t.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(n=>Object.assign(Object.assign({},n),{checked:n===t})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(t){this.isVisible=t,t?this.listOfChecked=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value):this.emitFilterData()}emitFilterData(){const t=this.listOfParsedFilter.filter(n=>n.checked).map(n=>n.value);(0,C.cO)(this.listOfChecked,t)||this.filterChange.emit(this.filterMultiple?t:t.length>0?t[0]:null)}parseListOfFilter(t,n){return t.map(a=>({text:a.text,value:a.value,checked:!n&&!!a.byDefault}))}getCheckedStatus(t){return t.some(n=>n.checked)}ngOnInit(){this.i18n.localeChange.pipe((0,p.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(t){const{listOfFilter:n}=t;n&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.sBO),e.Y36(Y.wi))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[e.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(e.TgZ(0,"span",0),e.YNc(1,lt,0,0,"ng-template",1),e.qZA(),e.YNc(2,dt,13,8,"ng-container",2)),2&t&&(e.xp6(1),e.Q6J("ngTemplateOutlet",n.contentTemplate),e.xp6(1),e.Q6J("ngIf",!n.customFilter)("ngIfElse",n.extraTemplate))},directives:[pn,J.RR,Te.Of,G.Ie,X.ix,f.tP,f.O5,ye.w,B.Ls,j.wO,f.sg,j.r9,F.JJ,F.On,at.dQ],encapsulation:2,changeDetection:0}),i})(),zn=(()=>{class i{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(t){const{sortDirections:n}=t;n&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[e.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(t,n){1&t&&(e.TgZ(0,"span",0),e.YNc(1,pt,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"span",2),e.TgZ(3,"span",3),e.YNc(4,gt,1,2,"i",4),e.YNc(5,zt,1,2,"i",5),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngTemplateOutlet",n.contentTemplate),e.xp6(1),e.ekj("ant-table-column-sorter-full",n.isDown&&n.isUp),e.xp6(2),e.Q6J("ngIf",n.isUp),e.xp6(1),e.Q6J("ngIf",n.isDown))},directives:[f.tP,f.O5,ye.w,B.Ls],encapsulation:2,changeDetection:0}),i})(),Ne=(()=>{class i{constructor(t,n){this.renderer=t,this.elementRef=n,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new v.xQ,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(t){this.renderer.setStyle(this.elementRef.nativeElement,"left",t)}setAutoRightWidth(t){this.renderer.setStyle(this.elementRef.nativeElement,"right",t)}setIsFirstRight(t){this.setFixClass(t,"ant-table-cell-fix-right-first")}setIsLastLeft(t){this.setFixClass(t,"ant-table-cell-fix-left-last")}setFixClass(t,n){this.renderer.removeClass(this.elementRef.nativeElement,n),t&&this.renderer.addClass(this.elementRef.nativeElement,n)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const t=n=>"string"==typeof n&&""!==n?n:null;this.setAutoLeftWidth(t(this.nzLeft)),this.setAutoRightWidth(t(this.nzRight)),this.changes$.next()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Qsj),e.Y36(e.SBq))},i.\u0275dir=e.lG2({type:i,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(t,n){2&t&&(e.Udp("position",n.isFixed?"sticky":null),e.ekj("ant-table-cell-fix-right",n.isFixedRight)("ant-table-cell-fix-left",n.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[e.TTD]}),i})(),E=(()=>{class i{constructor(){this.theadTemplate$=new y.t(1),this.hasFixLeft$=new y.t(1),this.hasFixRight$=new y.t(1),this.hostWidth$=new y.t(1),this.columnCount$=new y.t(1),this.showEmpty$=new y.t(1),this.noResult$=new y.t(1),this.listOfThWidthConfigPx$=new N.X([]),this.tableWidthConfigPx$=new N.X([]),this.manualWidthConfigPx$=(0,I.aj)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,w.U)(([t,n])=>t.length?t:n)),this.listOfAutoWidthPx$=new y.t(1),this.listOfListOfThWidthPx$=(0,W.T)(this.manualWidthConfigPx$,(0,I.aj)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,w.U)(([t,n])=>t.length===n.length?t.map((a,l)=>"0px"===a?n[l]||null:n[l]||a):n))),this.listOfMeasureColumn$=new y.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,w.U)(t=>t.map(n=>parseInt(n,10)))),this.enableAutoMeasure$=new y.t(1)}setTheadTemplate(t){this.theadTemplate$.next(t)}setHasFixLeft(t){this.hasFixLeft$.next(t)}setHasFixRight(t){this.hasFixRight$.next(t)}setTableWidthConfig(t){this.tableWidthConfigPx$.next(t)}setListOfTh(t){let n=0;t.forEach(l=>{n+=l.colspan&&+l.colspan||l.colSpan&&+l.colSpan||1});const a=t.map(l=>l.nzWidth);this.columnCount$.next(n),this.listOfThWidthConfigPx$.next(a)}setListOfMeasureColumn(t){const n=[];t.forEach(a=>{const l=a.colspan&&+a.colspan||a.colSpan&&+a.colSpan||1;for(let c=0;c`${n}px`))}setShowEmpty(t){this.showEmpty$.next(t)}setNoResult(t){this.noResult$.next(t)}setScroll(t,n){const a=!(!t&&!n);a||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(a)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),un=(()=>{class i{constructor(t){this.isInsideTable=!1,this.isInsideTable=!!t}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E,8))},i.\u0275dir=e.lG2({type:i,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("ant-table-cell",n.isInsideTable)}}),i})(),Oe=(()=>{class i{constructor(t){this.cdr=t,this.manualClickOrder$=new v.xQ,this.calcOperatorChange$=new v.xQ,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new v.xQ,this.destroy$=new v.xQ,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new e.vpe,this.nzSortOrderChange=new e.vpe,this.nzFilterChange=new e.vpe}getNextSortDirection(t,n){const a=t.indexOf(n);return a===t.length-1?t[0]:t[a+1]}emitNextSortValue(){if(this.nzShowSort){const t=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(t),this.manualClickOrder$.next(this)}}setSortOrder(t){this.sortOrderChange$.next(t)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(t){this.nzFilterChange.emit(t),this.nzFilterValue=t,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe((0,p.R)(this.destroy$)).subscribe(t=>{this.sortOrder!==t&&(this.sortOrder=t,this.nzSortOrderChange.emit(t)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(t){const{nzSortDirections:n,nzFilters:a,nzSortOrder:l,nzSortFn:c,nzFilterFn:g,nzSortPriority:z,nzFilterMultiple:_,nzShowSort:T,nzShowFilter:u}=t;n&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),l&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),T&&(this.isNzShowSortChanged=!0),u&&(this.isNzShowFilterChanged=!0);const O=R=>R&&R.firstChange&&void 0!==R.currentValue;if((O(l)||O(c))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),O(a)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(a||_)&&this.nzShowFilter){const R=this.nzFilters.filter(V=>V.byDefault).map(V=>V.value);this.nzFilterValue=this.nzFilterMultiple?R:R[0]||null}(c||g||z||a)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.sBO))},i.\u0275cmp=e.Xpm({type:i,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(t,n){1&t&&e.NdJ("click",function(){return n.emitNextSortValue()}),2&t&&e.ekj("ant-table-column-has-sorters",n.nzShowSort)("ant-table-column-sort","descend"===n.sortOrder||"ascend"===n.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[e.TTD],attrs:ut,ngContentSelectors:vt,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(t,n){if(1&t&&(e.F$t(St),e.YNc(0,ft,1,5,"nz-table-filter",0),e.YNc(1,_t,1,1,"ng-template",null,1,e.W1O),e.YNc(3,Ct,2,0,"ng-template",null,2,e.W1O),e.YNc(5,xt,1,3,"ng-template",null,3,e.W1O),e.YNc(7,Tt,1,0,"ng-template",null,4,e.W1O)),2&t){const a=e.MAs(2);e.Q6J("ngIf",n.nzShowFilter||n.nzCustomFilter)("ngIfElse",a)}},directives:[gn,zn,f.O5,f.tP],encapsulation:2,changeDetection:0}),(0,x.gn)([(0,C.yF)()],i.prototype,"nzShowSort",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzShowFilter",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzCustomFilter",void 0),i})(),Pe=(()=>{class i{constructor(t,n){this.renderer=t,this.elementRef=n,this.changes$=new v.xQ,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(t){const{nzWidth:n,colspan:a,rowspan:l,colSpan:c,rowSpan:g}=t;if(a||c){const z=this.colspan||this.colSpan;(0,C.kK)(z)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${z}`)}if(l||g){const z=this.rowspan||this.rowSpan;(0,C.kK)(z)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${z}`)}(n||a)&&this.changes$.next()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Qsj),e.Y36(e.SBq))},i.\u0275dir=e.lG2({type:i,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[e.TTD]}),i})(),fn=(()=>{class i{constructor(){this.nzAlign=null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=e.lG2({type:i,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(t,n){2&t&&e.Udp("text-align",n.nzAlign)},inputs:{nzAlign:"nzAlign"}}),i})(),De=(()=>{class i{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(t,n){2&t&&(e.Udp("table-layout",n.tableLayout)("width",n.scrollX)("min-width",n.scrollX?"100%":null),e.ekj("ant-table-fixed",n.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:bt,ngContentSelectors:L,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(t,n){1&t&&(e.F$t(),e.YNc(0,yt,1,4,"col",0),e.YNc(1,Nt,2,1,"thead",1),e.YNc(2,Ot,0,0,"ng-template",2),e.Hsn(3)),2&t&&(e.Q6J("ngForOf",n.listOfColWidth),e.xp6(1),e.Q6J("ngIf",n.theadTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",n.contentTemplate))},directives:[f.sg,f.O5,f.tP],encapsulation:2,changeDetection:0}),i})(),mn=(()=>{class i{constructor(t,n){this.nzTableStyleService=t,this.renderer=n,this.hostWidth$=new N.X(null),this.enableAutoMeasure$=new N.X(!1),this.destroy$=new v.xQ}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:t,hostWidth$:n}=this.nzTableStyleService;t.pipe((0,p.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),n.pipe((0,p.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,p.R)(this.destroy$)).subscribe(t=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${t}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E),e.Y36(e.Qsj))},i.\u0275cmp=e.Xpm({type:i,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(t,n){if(1&t&&e.Gf(we,7),2&t){let a;e.iGM(a=e.CRH())&&(n.tdElement=a.first)}},attrs:Pt,ngContentSelectors:L,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(1&t&&(e.F$t(),e.TgZ(0,"td",0,1),e.YNc(2,It,3,5,"div",2),e.ALo(3,"async"),e.qZA(),e.YNc(4,Ft,1,0,"ng-template",null,3,e.W1O)),2&t){const a=e.MAs(5);e.xp6(2),e.Q6J("ngIf",e.lcZ(3,2,n.enableAutoMeasure$))("ngIfElse",a)}},directives:[f.O5,f.tP],pipes:[f.Ov],encapsulation:2,changeDetection:0}),i})(),_n=(()=>{class i{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"table",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("contentTemplate",n.contentTemplate)("tableLayout",n.tableLayout)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate))},directives:[De],encapsulation:2,changeDetection:0}),i})(),Cn=(()=>{class i{constructor(t,n){this.nzResizeObserver=t,this.ngZone=n,this.listOfMeasureColumn=[],this.listOfAutoWidth=new e.vpe,this.destroy$=new v.xQ}trackByFunc(t,n){return n}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,$.O)(this.listOfTdElement)).pipe((0,P.w)(t=>(0,I.aj)(t.toArray().map(n=>this.nzResizeObserver.observe(n).pipe((0,w.U)(([a])=>{const{width:l}=a.target.getBoundingClientRect();return Math.floor(l)}))))),(0,be.b)(16),(0,p.R)(this.destroy$)).subscribe(t=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(t)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(H.D3),e.Y36(e.R0b))},i.\u0275cmp=e.Xpm({type:i,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(t,n){if(1&t&&e.Gf(we,5),2&t){let a;e.iGM(a=e.CRH())&&(n.listOfTdElement=a)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Mt,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(t,n){1&t&&e.YNc(0,kt,2,0,"td",0),2&t&&e.Q6J("ngForOf",n.listOfMeasureColumn)("ngForTrackBy",n.trackByFunc)},directives:[f.sg],encapsulation:2,changeDetection:0}),i})(),Ie=(()=>{class i{constructor(t){if(this.nzTableStyleService=t,this.isInsideTable=!1,this.showEmpty$=new N.X(!1),this.noResult$=new N.X(void 0),this.listOfMeasureColumn$=new N.X([]),this.destroy$=new v.xQ,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:n,noResult$:a,listOfMeasureColumn$:l}=this.nzTableStyleService;a.pipe((0,p.R)(this.destroy$)).subscribe(this.noResult$),l.pipe((0,p.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),n.pipe((0,p.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(t){this.nzTableStyleService.setListOfAutoWidth(t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["tbody"]],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("ant-table-tbody",n.isInsideTable)},ngContentSelectors:L,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(t,n){1&t&&(e.F$t(),e.YNc(0,Rt,2,1,"ng-container",0),e.ALo(1,"async"),e.Hsn(2),e.YNc(3,Bt,3,3,"tr",1),e.ALo(4,"async")),2&t&&(e.Q6J("ngIf",e.lcZ(1,2,n.listOfMeasureColumn$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,4,n.showEmpty$)))},directives:[Cn,mn,q.gB,f.O5],pipes:[f.Ov],encapsulation:2,changeDetection:0}),i})(),Fe=(()=>{class i{constructor(t,n,a,l){this.renderer=t,this.ngZone=n,this.platform=a,this.resizeService=l,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=c=>c,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new v.xQ,this.scroll$=new v.xQ,this.destroy$=new v.xQ}setScrollPositionClassName(t=!1){const{scrollWidth:n,scrollLeft:a,clientWidth:l}=this.tableBodyElement.nativeElement,c="ant-table-ping-left",g="ant-table-ping-right";n===l&&0!==n||t?(this.renderer.removeClass(this.tableMainElement,c),this.renderer.removeClass(this.tableMainElement,g)):0===a?(this.renderer.removeClass(this.tableMainElement,c),this.renderer.addClass(this.tableMainElement,g)):n===a+l?(this.renderer.removeClass(this.tableMainElement,g),this.renderer.addClass(this.tableMainElement,c)):(this.renderer.addClass(this.tableMainElement,c),this.renderer.addClass(this.tableMainElement,g))}ngOnChanges(t){const{scrollX:n,scrollY:a,data:l}=t;if(n||a){const c=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&c?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}l&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const t=this.scroll$.pipe((0,$.O)(null),(0,ge.g)(0),(0,P.w)(()=>(0,ve.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,$.O)(!0))),(0,p.R)(this.destroy$)),n=this.resizeService.subscribe().pipe((0,p.R)(this.destroy$)),a=this.data$.pipe((0,p.R)(this.destroy$));(0,W.T)(t,n,a,this.scroll$).pipe((0,$.O)(!0),(0,ge.g)(0),(0,p.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),t.pipe((0,ze.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(Q.t4),e.Y36(M.rI))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-inner-scroll"]],viewQuery:function(t,n){if(1&t&&(e.Gf(At,5,e.SBq),e.Gf(Et,5,e.SBq),e.Gf(s.N7,5,s.N7)),2&t){let a;e.iGM(a=e.CRH())&&(n.tableHeaderElement=a.first),e.iGM(a=e.CRH())&&(n.tableBodyElement=a.first),e.iGM(a=e.CRH())&&(n.cdkVirtualScrollViewport=a.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(t,n){1&t&&(e.YNc(0,Wt,6,6,"ng-container",0),e.YNc(1,Lt,3,5,"div",1)),2&t&&(e.Q6J("ngIf",n.scrollY),e.xp6(1),e.Q6J("ngIf",!n.scrollY))},directives:[De,s.N7,Ie,f.O5,f.PC,s.xd,s.x0,f.tP],encapsulation:2,changeDetection:0}),i})(),Me=(()=>{class i{constructor(t){this.templateRef=t}static ngTemplateContextGuard(t,n){return!0}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.Rgc))},i.\u0275dir=e.lG2({type:i,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),i})(),me=(()=>{class i{constructor(){this.destroy$=new v.xQ,this.pageIndex$=new N.X(1),this.frontPagination$=new N.X(!0),this.pageSize$=new N.X(10),this.listOfData$=new N.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,ue.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,ue.x)()),this.listOfCalcOperator$=new N.X([]),this.queryParams$=(0,I.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,be.b)(0),(0,ot.T)(1),(0,w.U)(([t,n,a])=>({pageIndex:t,pageSize:n,sort:a.filter(l=>l.sortFn).map(l=>({key:l.key,value:l.sortOrder})),filter:a.filter(l=>l.filterFn).map(l=>({key:l.key,value:l.filterValue}))}))),this.listOfDataAfterCalc$=(0,I.aj)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,w.U)(([t,n])=>{let a=[...t];const l=n.filter(g=>{const{filterValue:z,filterFn:_}=g;return!(null==z||Array.isArray(z)&&0===z.length)&&"function"==typeof _});for(const g of l){const{filterFn:z,filterValue:_}=g;a=a.filter(T=>z(_,T))}const c=n.filter(g=>null!==g.sortOrder&&"function"==typeof g.sortFn).sort((g,z)=>+z.sortPriority-+g.sortPriority);return n.length&&a.sort((g,z)=>{for(const _ of c){const{sortFn:T,sortOrder:u}=_;if(T&&u){const O=T(g,z,u);if(0!==O)return"ascend"===u?O:-O}}return 0}),a})),this.listOfFrontEndCurrentPageData$=(0,I.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,p.R)(this.destroy$),(0,ze.h)(t=>{const[n,a,l]=t;return n<=(Math.ceil(l.length/a)||1)}),(0,w.U)(([t,n,a])=>a.slice((t-1)*n,t*n))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,P.w)(t=>t?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,P.w)(t=>t?this.listOfDataAfterCalc$:this.listOfData$),(0,w.U)(t=>t.length),(0,ue.x)())}updatePageSize(t){this.pageSize$.next(t)}updateFrontPagination(t){this.frontPagination$.next(t)}updatePageIndex(t){this.pageIndex$.next(t)}updateListOfData(t){this.listOfData$.next(t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),xn=(()=>{class i{constructor(){this.title=null,this.footer=null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(t,n){2&t&&e.ekj("ant-table-title",null!==n.title)("ant-table-footer",null!==n.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(t,n){1&t&&(e.YNc(0,Vt,2,1,"ng-container",0),e.YNc(1,Ut,2,1,"ng-container",0)),2&t&&(e.Q6J("nzStringTemplateOutlet",n.title),e.xp6(1),e.Q6J("nzStringTemplateOutlet",n.footer))},directives:[U.f],encapsulation:2,changeDetection:0}),i})(),Tn=(()=>{class i{constructor(t,n,a,l,c,g,z){this.elementRef=t,this.nzResizeObserver=n,this.nzConfigService=a,this.cdr=l,this.nzTableStyleService=c,this.nzTableDataService=g,this.directionality=z,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=_=>_,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new v.xQ,this.templateMode$=new N.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,p.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(t){this.nzTableDataService.updatePageSize(t)}onPageIndexChange(t){this.nzTableDataService.updatePageIndex(t)}ngOnInit(){var t;const{pageIndexDistinct$:n,pageSizeDistinct$:a,listOfCurrentPageData$:l,total$:c,queryParams$:g}=this.nzTableDataService,{theadTemplate$:z,hasFixLeft$:_,hasFixRight$:T}=this.nzTableStyleService;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),g.pipe((0,p.R)(this.destroy$)).subscribe(this.nzQueryParams),n.pipe((0,p.R)(this.destroy$)).subscribe(u=>{u!==this.nzPageIndex&&(this.nzPageIndex=u,this.nzPageIndexChange.next(u))}),a.pipe((0,p.R)(this.destroy$)).subscribe(u=>{u!==this.nzPageSize&&(this.nzPageSize=u,this.nzPageSizeChange.next(u))}),c.pipe((0,p.R)(this.destroy$),(0,ze.h)(()=>this.nzFrontPagination)).subscribe(u=>{u!==this.nzTotal&&(this.nzTotal=u,this.cdr.markForCheck())}),l.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.data=u,this.nzCurrentPageDataChange.next(u),this.cdr.markForCheck()}),z.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.theadTemplate=u,this.cdr.markForCheck()}),_.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.hasFixLeft=u,this.cdr.markForCheck()}),T.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.hasFixRight=u,this.cdr.markForCheck()}),(0,I.aj)([c,this.templateMode$]).pipe((0,w.U)(([u,O])=>0===u&&!O),(0,p.R)(this.destroy$)).subscribe(u=>{this.nzTableStyleService.setShowEmpty(u)}),this.verticalScrollBarWidth=(0,C.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.listOfAutoColWidth=u,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,p.R)(this.destroy$)).subscribe(u=>{this.listOfManualColWidth=u,this.cdr.markForCheck()})}ngOnChanges(t){const{nzScroll:n,nzPageIndex:a,nzPageSize:l,nzFrontPagination:c,nzData:g,nzWidthConfig:z,nzNoResult:_,nzTemplateMode:T}=t;a&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),l&&this.nzTableDataService.updatePageSize(this.nzPageSize),g&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),c&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),n&&this.setScrollOnChanges(),z&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),T&&this.templateMode$.next(this.nzTemplateMode),_&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,w.U)(([t])=>{const{width:n}=t.target.getBoundingClientRect();return Math.floor(n-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,p.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.SBq),e.Y36(H.D3),e.Y36(b.jY),e.Y36(e.sBO),e.Y36(E),e.Y36(me),e.Y36(D.Is,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["nz-table"]],contentQueries:function(t,n,a){if(1&t&&e.Suo(a,Me,5),2&t){let l;e.iGM(l=e.CRH())&&(n.nzVirtualScrollDirective=l.first)}},viewQuery:function(t,n){if(1&t&&e.Gf(Fe,5),2&t){let a;e.iGM(a=e.CRH())&&(n.nzTableInnerScrollComponent=a.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("ant-table-wrapper-rtl","rtl"===n.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[e._Bn([E,me]),e.TTD],ngContentSelectors:L,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(t,n){if(1&t&&(e.F$t(),e.TgZ(0,"nz-spin",0),e.YNc(1,Xt,2,1,"ng-container",1),e.TgZ(2,"div",2,3),e.YNc(4,Gt,1,1,"nz-table-title-footer",4),e.YNc(5,qt,1,13,"nz-table-inner-scroll",5),e.YNc(6,Kt,1,4,"ng-template",null,6,e.W1O),e.YNc(8,en,1,1,"nz-table-title-footer",7),e.qZA(),e.YNc(9,nn,2,1,"ng-container",1),e.qZA(),e.YNc(10,an,1,1,"ng-template",null,8,e.W1O),e.YNc(12,ln,1,0,"ng-template",null,9,e.W1O)),2&t){const a=e.MAs(7);e.Q6J("nzDelay",n.nzLoadingDelay)("nzSpinning",n.nzLoading)("nzIndicator",n.nzLoadingIndicator),e.xp6(1),e.Q6J("ngIf","both"===n.nzPaginationPosition||"top"===n.nzPaginationPosition),e.xp6(1),e.ekj("ant-table-rtl","rtl"===n.dir)("ant-table-fixed-header",n.nzData.length&&n.scrollY)("ant-table-fixed-column",n.scrollX)("ant-table-has-fix-left",n.hasFixLeft)("ant-table-has-fix-right",n.hasFixRight)("ant-table-bordered",n.nzBordered)("nz-table-out-bordered",n.nzOuterBordered&&!n.nzBordered)("ant-table-middle","middle"===n.nzSize)("ant-table-small","small"===n.nzSize),e.xp6(2),e.Q6J("ngIf",n.nzTitle),e.xp6(1),e.Q6J("ngIf",n.scrollY||n.scrollX)("ngIfElse",a),e.xp6(3),e.Q6J("ngIf",n.nzFooter),e.xp6(1),e.Q6J("ngIf","both"===n.nzPaginationPosition||"bottom"===n.nzPaginationPosition)}},directives:[Se.W,xn,Fe,_n,tt,f.O5,f.tP],encapsulation:2,changeDetection:0}),(0,x.gn)([(0,C.yF)()],i.prototype,"nzFrontPagination",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzTemplateMode",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzShowPagination",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzLoading",void 0),(0,x.gn)([(0,C.yF)()],i.prototype,"nzOuterBordered",void 0),(0,x.gn)([(0,b.oS)()],i.prototype,"nzLoadingIndicator",void 0),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzBordered",void 0),(0,x.gn)([(0,b.oS)()],i.prototype,"nzSize",void 0),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzShowSizeChanger",void 0),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzHideOnSinglePage",void 0),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzShowQuickJumper",void 0),(0,x.gn)([(0,b.oS)(),(0,C.yF)()],i.prototype,"nzSimple",void 0),i})(),$e=(()=>{class i{constructor(t){this.nzTableStyleService=t,this.destroy$=new v.xQ,this.listOfFixedColumns$=new y.t(1),this.listOfColumns$=new y.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,P.w)(n=>(0,W.T)(this.listOfFixedColumns$,...n.map(a=>a.changes$)).pipe((0,fe.zg)(()=>this.listOfFixedColumns$))),(0,p.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,w.U)(n=>n.filter(a=>!1!==a.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,w.U)(n=>n.filter(a=>!1!==a.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,P.w)(n=>(0,W.T)(this.listOfColumns$,...n.map(a=>a.changes$)).pipe((0,fe.zg)(()=>this.listOfColumns$))),(0,p.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!t}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,$.O)(this.listOfCellFixedDirective),(0,p.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,$.O)(this.listOfNzThDirective),(0,p.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(t=>{t.forEach(n=>n.setIsLastLeft(n===t[t.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(t=>{t.forEach(n=>n.setIsFirstRight(n===t[0]))}),(0,I.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,p.R)(this.destroy$)).subscribe(([t,n])=>{n.forEach((a,l)=>{if(a.isAutoLeft){const g=n.slice(0,l).reduce((_,T)=>_+(T.colspan||T.colSpan||1),0),z=t.slice(0,g).reduce((_,T)=>_+T,0);a.setAutoLeftWidth(`${z}px`)}})}),(0,I.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,p.R)(this.destroy$)).subscribe(([t,n])=>{n.forEach((a,l)=>{const c=n[n.length-l-1];if(c.isAutoRight){const z=n.slice(n.length-l,n.length).reduce((T,u)=>T+(u.colspan||u.colSpan||1),0),_=t.slice(t.length-z,t.length).reduce((T,u)=>T+u,0);c.setAutoRightWidth(`${_}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(E,8))},i.\u0275dir=e.lG2({type:i,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(t,n,a){if(1&t&&(e.Suo(a,Pe,4),e.Suo(a,Ne,4)),2&t){let l;e.iGM(l=e.CRH())&&(n.listOfNzThDirective=l),e.iGM(l=e.CRH())&&(n.listOfCellFixedDirective=l)}},hostVars:2,hostBindings:function(t,n){2&t&&e.ekj("ant-table-row",n.isInsideTable)}}),i})(),Sn=(()=>{class i{constructor(t,n,a,l){this.elementRef=t,this.renderer=n,this.nzTableStyleService=a,this.nzTableDataService=l,this.destroy$=new v.xQ,this.isInsideTable=!1,this.nzSortOrderChange=new e.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const t=this.listOfNzTrDirective.changes.pipe((0,$.O)(this.listOfNzTrDirective),(0,w.U)(c=>c&&c.first)),n=t.pipe((0,P.w)(c=>c?c.listOfColumnsChanges$:pe.E),(0,p.R)(this.destroy$));n.subscribe(c=>this.nzTableStyleService.setListOfTh(c)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,P.w)(c=>c?n:(0,it.of)([]))).pipe((0,p.R)(this.destroy$)).subscribe(c=>this.nzTableStyleService.setListOfMeasureColumn(c));const a=t.pipe((0,P.w)(c=>c?c.listOfFixedLeftColumnChanges$:pe.E),(0,p.R)(this.destroy$)),l=t.pipe((0,P.w)(c=>c?c.listOfFixedRightColumnChanges$:pe.E),(0,p.R)(this.destroy$));a.subscribe(c=>{this.nzTableStyleService.setHasFixLeft(0!==c.length)}),l.subscribe(c=>{this.nzTableStyleService.setHasFixRight(0!==c.length)})}if(this.nzTableDataService){const t=this.listOfNzThAddOnComponent.changes.pipe((0,$.O)(this.listOfNzThAddOnComponent));t.pipe((0,P.w)(()=>(0,W.T)(...this.listOfNzThAddOnComponent.map(l=>l.manualClickOrder$))),(0,p.R)(this.destroy$)).subscribe(l=>{this.nzSortOrderChange.emit({key:l.nzColumnKey,value:l.sortOrder}),l.nzSortFn&&!1===l.nzSortPriority&&this.listOfNzThAddOnComponent.filter(g=>g!==l).forEach(g=>g.clearSortOrder())}),t.pipe((0,P.w)(l=>(0,W.T)(t,...l.map(c=>c.calcOperatorChange$)).pipe((0,fe.zg)(()=>t))),(0,w.U)(l=>l.filter(c=>!!c.nzSortFn||!!c.nzFilterFn).map(c=>{const{nzSortFn:g,sortOrder:z,nzFilterFn:_,nzFilterValue:T,nzSortPriority:u,nzColumnKey:O}=c;return{key:O,sortFn:g,sortPriority:u,sortOrder:z,filterFn:_,filterValue:T}})),(0,ge.g)(0),(0,p.R)(this.destroy$)).subscribe(l=>{this.nzTableDataService.listOfCalcOperator$.next(l)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(E,8),e.Y36(me,8))},i.\u0275cmp=e.Xpm({type:i,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(t,n,a){if(1&t&&(e.Suo(a,$e,5),e.Suo(a,Oe,5)),2&t){let l;e.iGM(l=e.CRH())&&(n.listOfNzTrDirective=l),e.iGM(l=e.CRH())&&(n.listOfNzThAddOnComponent=l)}},viewQuery:function(t,n){if(1&t&&e.Gf(sn,7),2&t){let a;e.iGM(a=e.CRH())&&(n.templateRef=a.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:L,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(t,n){1&t&&(e.F$t(),e.YNc(0,rn,1,0,"ng-template",null,0,e.W1O),e.YNc(2,dn,2,1,"ng-container",1)),2&t&&(e.xp6(2),e.Q6J("ngIf",!n.isInsideTable))},directives:[f.O5,f.tP],encapsulation:2,changeDetection:0}),i})(),vn=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[D.vT,j.ip,F.u5,U.T,Te.aF,G.Wr,J.b1,X.sL,f.ez,Q.ud,nt,H.y7,Se.j,Y.YI,B.PV,q.Xo,s.Cl]]}),i})()}}]); \ No newline at end of file diff --git a/server/public/7259.3d0ae570e3bb4dac.js b/server/public/7259.3d0ae570e3bb4dac.js deleted file mode 100644 index b341227c4..000000000 --- a/server/public/7259.3d0ae570e3bb4dac.js +++ /dev/null @@ -1 +0,0 @@ -"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/7259.563c8b9535549ea4.js b/server/public/7259.563c8b9535549ea4.js new file mode 100644 index 000000000..e13cce131 --- /dev/null +++ b/server/public/7259.563c8b9535549ea4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7259],{8369:($,J,a)=>{a.d(J,{W:()=>A});var i=a(9808),o=a(325),h=a(8481),M=a(3610),x=a(647),f=a(7484),y=a(3098),I=a(3309),T=a(4867),G=a(6286),n=a(8018),N=a(6949),m=a(9444),u=a(1894),P=a(8144),z=a(3580),b=a(8625),S=a(7026),D=a(592),E=a(404),Y=a(5e3);let j=(()=>{class Z{}return Z.\u0275fac=function(L){return new(L||Z)},Z.\u0275mod=Y.oAB({type:Z}),Z.\u0275inj=Y.cJS({imports:[[i.ez,o.Bz,N.WG,f.vh,y.q6,x.PV,u.Jb,P.zf,h.X,E.cg,I.U,z.Q,T.Q,G.y,n.e,m.s,D.x,b.$L.forChild({formatter:{useClass:S.x,provide:b.KP}})]]}),Z})(),A=(()=>{class Z{}return Z.\u0275fac=function(L){return new(L||Z)},Z.\u0275mod=Y.oAB({type:Z}),Z.\u0275inj=Y.cJS({imports:[[i.ez,o.Bz,h.X,M.$6,x.PV,j,m.s]]}),Z})()},209:($,J,a)=>{a.d(J,{i:()=>j});var i=a(9808),o=a(325),h=a(8481),M=a(3610),x=a(647),f=a(7484),y=a(3309),I=a(4867),T=a(1894),G=a(3098),n=a(8018),N=a(3580),m=a(6286),u=a(6949),P=a(8144),z=a(9444),b=a(9779),S=a(592),D=a(3618),E=a(5e3);let Y=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=E.oAB({type:A}),A.\u0275inj=E.cJS({imports:[[i.ez,o.Bz,u.WG,x.PV,f.vh,T.Jb,G.q6,h.X,P.zf,D.ZJ,z.s,n.e,N.Q,y.U,I.Q,m.y,b.s,S.x]]}),A})(),j=(()=>{class A{}return A.\u0275fac=function(w){return new(w||A)},A.\u0275mod=E.oAB({type:A}),A.\u0275inj=E.cJS({imports:[[i.ez,o.Bz,h.X,M.$6,x.PV,Y,z.s]]}),A})()},6286:($,J,a)=>{a.d(J,{y:()=>N});var i=a(9808),o=a(325),h=a(8481),M=a(3610),x=a(647),f=a(6949),y=a(7484),I=a(3630),T=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,f.WG,x.PV,y.vh,I.X,T.q6]]}),m})(),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,o.Bz,h.X,M.$6,x.PV,n]]}),m})()},592:($,J,a)=>{a.d(J,{x:()=>x});var i=a(9808),o=a(8481),h=a(647),M=a(5e3);let x=(()=>{class f{}return f.\u0275fac=function(I){return new(I||f)},f.\u0275mod=M.oAB({type:f}),f.\u0275inj=M.cJS({imports:[[i.ez,o.X,h.PV]]}),f})()},112:($,J,a)=>{a.d(J,{u:()=>en});var i=a(5e3),o=a(9808),h=a(325),M=a(8481),x=a(3610),f=a(4850),y=a(712),I=a(7484),T=a(3098),G=a(8664),n=a(6906),N=a(6949);function m(l,v){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 u(l,v){if(1&l&&(i.TgZ(0,"span"),i._UZ(1,"cvc-variant-tag",10),i.qZA()),2&l){const p=v.$implicit;i.xp6(1),i.Q6J("variant",p.node)}}function P(l,v){if(1&l&&(i.TgZ(0,"nz-descriptions-item",8),i.YNc(1,u,2,1,"span",9),i.qZA()),2&l){const p=i.oxw().ngIf;i.xp6(1),i.Q6J("ngForOf",p.variants.edges)}}function z(l,v){if(1&l&&(i.TgZ(0,"span"),i._UZ(1,"cvc-source-tag",12),i.qZA()),2&l){const p=v.$implicit;i.xp6(1),i.Q6J("source",p)}}function b(l,v){if(1&l&&(i.TgZ(0,"nz-descriptions-item",11),i.YNc(1,z,2,1,"span",9),i.qZA()),2&l){const p=i.oxw().ngIf;i.xp6(1),i.Q6J("ngForOf",p.sources)}}function S(l,v){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=v.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 D=(()=>{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)(i.Y36(y.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,T.R7,T.uj,o.sg,G.I,n.T],pipes:[N.fM],styles:["[_nghost-%COMP%]{display:block}"]}),l})();var E=a(647);function Y(l,v){}function j(l,v){if(1&l&&(i.ynx(0),i.TgZ(1,"a",5),i.YNc(2,Y,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 A(l,v){}function Z(l,v){if(1&l&&(i.TgZ(0,"nz-tag",9),i.YNc(1,A,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,v){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 L(l,v){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,v){if(1&l&&(i.YNc(0,Z,2,3,"nz-tag",7),i.YNc(1,L,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,v){}function O(l,v){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,v){}function nn(l,v){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,v){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,O,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,h.yS,o.tP,M.j,x.lU,D,E.Ls],styles:[""]}),l})()},7677:($,J,a)=>{a.d(J,{G:()=>m});var i=a(9808),o=a(325),h=a(3610),M=a(8481),x=a(647),f=a(9779),y=a(4867),I=a(7484),T=a(3098),G=a(6949),n=a(5e3);let N=(()=>{class u{}return u.\u0275fac=function(z){return new(z||u)},u.\u0275mod=n.oAB({type:u}),u.\u0275inj=n.cJS({imports:[[i.ez,G.WG,I.vh,T.q6,f.s,y.Q]]}),u})(),m=(()=>{class u{}return u.\u0275fac=function(z){return new(z||u)},u.\u0275mod=n.oAB({type:u}),u.\u0275inj=n.cJS({imports:[[i.ez,o.Bz,h.$6,M.X,x.PV,N]]}),u})()},8664:($,J,a)=>{a.d(J,{I:()=>cn});var i=a(6654),o=a(5e3),h=a(9808),M=a(325),x=a(8481),f=a(3610),y=a(4850),I=a(712),T=a(7484),G=a(647),n=a(3193),N=a(3098),m=a(6550),u=a(1894),P=a(8144),z=a(6949);function b(c,_){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,_){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 D(c,_){if(1&c&&(o.TgZ(0,"nz-tag"),o._uU(1),o.qZA()),2&c){const g=_.$implicit;o.xp6(1),o.Oqu(g)}}function E(c,_){if(1&c&&(o.TgZ(0,"nz-descriptions-item",15),o.YNc(1,D,2,1,"nz-tag",16),o.qZA()),2&c){const g=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",g.variantAliases)}}function Y(c,_){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 j(c,_){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 A(c,_){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 Z(c,_){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 w(c,_){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,E,2,1,"nz-descriptions-item",6),o.YNc(8,Y,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,j,4,2,"a",12),o.YNc(15,A,4,2,"a",12),o.YNc(16,Z,4,2,"a",12),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&c){const g=_.ngIf,Q=o.MAs(3),F=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",Q)("nzExtra",F),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 L=(()=>{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,y.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,Q){1&g&&(o.TgZ(0,"div",0),o.YNc(1,w,17,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&g&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,Q.variant$)))},directives:[h.O5,T.bd,G.Ls,n.H,N.R7,N.uj,h.sg,x.j,m.l,u.SK,u.t3,P.NU,P.$1,M.yS],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}"]}),c})();function K(c,_){}function q(c,_){if(1&c&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,K,0,0,"ng-template",6),o.qZA(),o.BQk()),2&c){const g=o.oxw(),Q=o.MAs(2);o.xp6(1),o.Q6J("routerLink",g.variant.link),o.xp6(1),o.Q6J("ngTemplateOutlet",Q)}}function O(c,_){}function k(c,_){if(1&c){const g=o.EpF();o.TgZ(0,"nz-tag",9),o.NdJ("nzOnClose",function(F){return o.CHM(g),o.oxw(2).itemClosed(F)}),o.YNc(1,O,0,0,"ng-template",6),o.qZA()}if(2&c){o.oxw();const g=o.MAs(2),Q=o.oxw(),F=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",Q.onCloseClicked?0:.5)("nzPopoverContent",g)("nzMode",Q.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",F)}}function nn(c,_){if(1&c&&o._UZ(0,"cvc-variant-popover",11),2&c){const g=o.oxw(3);o.Q6J("variantId",g.variant.id)}}function tn(c,_){if(1&c&&o.YNc(0,nn,1,1,"cvc-variant-popover",10),2&c){const g=o.oxw(2);o.Q6J("ngIf",g.enablePopover)}}function en(c,_){if(1&c&&(o.YNc(0,k,2,4,"nz-tag",7),o.YNc(1,tn,1,1,"ng-template",null,8,o.W1O)),2&c){const g=o.oxw(),Q=o.MAs(4);o.Q6J("ngIf",g.enablePopover)("ngIfElse",Q)}}function l(c,_){}function v(c,_){if(1&c){const g=o.EpF();o.TgZ(0,"nz-tag",12),o.NdJ("nzOnClose",function(F){return o.CHM(g),o.oxw().itemClosed(F)}),o.YNc(1,l,0,0,"ng-template",6),o.qZA()}if(2&c){const g=o.oxw(),Q=o.MAs(8);o.Q6J("nzMode",g.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",Q)}}function p(c,_){}function U(c,_){if(1&c&&o.YNc(0,p,0,0,"ng-template",6),2&c){o.oxw();const g=o.MAs(2);o.Q6J("ngTemplateOutlet",g)}}function on(c,_){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 cn=(()=>{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,Q){if(1&g&&(o.YNc(0,q,3,2,"ng-container",0),o.YNc(1,en,3,2,"ng-template",null,1,o.W1O),o.YNc(3,v,2,2,"ng-template",null,2,o.W1O),o.YNc(5,U,1,1,"ng-template",null,3,o.W1O),o.YNc(7,on,2,1,"ng-template",null,4,o.W1O)),2&g){const F=o.MAs(6);o.Q6J("ngIf",Q.linked)("ngIfElse",F)}},directives:[h.O5,M.yS,h.tP,x.j,f.lU,L,G.Ls],styles:[""]}),c})()},4867:($,J,a)=>{a.d(J,{Q:()=>P});var i=a(9808),o=a(325),h=a(8481),M=a(647),x=a(3610),f=a(6949),y=a(7484),I=a(1894),T=a(3098),G=a(8144),n=a(3309),N=a(3630),m=a(5e3);let u=(()=>{class z{}return z.\u0275fac=function(S){return new(S||z)},z.\u0275mod=m.oAB({type:z}),z.\u0275inj=m.cJS({imports:[[i.ez,o.Bz,f.WG,y.vh,I.Jb,T.q6,h.X,M.PV,G.zf,n.U,N.X]]}),z})(),P=(()=>{class z{}return z.\u0275fac=function(S){return new(S||z)},z.\u0275mod=m.oAB({type:z}),z.\u0275inj=m.cJS({imports:[[i.ez,o.Bz,h.X,x.$6,M.PV,u]]}),z})()},8252:($,J,a)=>{a.r(J),a.d(J,{GenesDetailModule:()=>Ut});var i=a(9808),o=a(5630),h=a(1945),M=a(647),x=a(8144),f=a(6949),y=a(3618),I=a(6042),T=a(325),G=a(2278),n=a(5e3);let N=(()=>{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),u=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(T.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:[u.D],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var z=a(8929),b=a(591),S=a(373),D=a(1059),E=a(7625),Y=a(9350),j=a(8992),A=a(5623),Z=a(8168),w=a(2683),L=a(2643),K=a(9077),q=a(2233),O=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 v(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,v,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 c(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 _=function(t){return{flagged:t}};function g(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,c,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,_,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 Q=(()=>{class t{constructor(e,s,d){this.gql=e,this.viewerService=s,this.route=d,this.destroy$=new z.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=C=>"curator"==C.role,this.filterEditors=C=>"editor"==C.role||"admin"==C.role,this.tabs$=new b.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(C=>{let X=this.gql.watch({geneId:+C.geneId}).valueChanges;this.loading$=X.pipe((0,S.j)("loading"),(0,D.O)(!0)),this.gene$=X.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,E.R)(this.destroy$)).subscribe({next:V=>{this.tabs$.next(this.defaultTabs.map(H=>"Revisions"===H.tabLabel?Object.assign({badgeCount:V},H):H))}}),this.subscribable={id:+C.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(Y.a),n.Y36(T.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,g,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,A.o,h.$O,h.u9,Z.Y,i.mk,w.w,M.Ls,h.yG,f.eJ,h.Jp,x.NU,x.$1,I.ix,L.dQ,T.Od,T.rH,K.Q,h.u5,q.P,O.t3,k.N,T.lC],pipes:[i.Ov,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}"]}),t})();var F=a(5291);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,F.t]]}),t})();var hn=a(2011);let xn=(()=>{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(T.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:[hn.o],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var R=a(7484),Tn=a(6559),Cn=a(4271);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,O.Jb,R.vh,x.zf,Tn.H0,Cn.M]]}),t})();var Zn=a(7036);let Mn=(()=>{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(T.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:[Zn.L],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var An=a(3762),gn=a(8481),In=a(1150),Pn=a(6699),Sn=a(6059),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,f.WG,O.Jb,An.Ph,R.vh,x.zf,gn.X,y.ZJ,Pn.Rt,In.N,Sn.i,Gn.A]]}),t})();var Qn=a(1365);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(T.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),W=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,W.u5,f.WG,I.sL,O.Jb,R.vh,an.U5,rn.o7,mn.LV,y.ZJ,bn.Q,un.$]]}),t})();var dn=a(868),B=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,R.vh,dn.we,B.HQ,O.Jb,B.HQ,y.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,f.WG,O.Jb,pn.q6,y.ZJ,x.zf,gn.X,On.o,un.$,Nn.X,Un.s,En.x,Fn.W,wn,Yn]]}),t})();var sn=a(4850),Dn=a(427),vn=a(6715),jn=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||[],C=[];let X;return Object.keys(d).forEach(function(V){Array.isArray(d[V])||(d[V]=[d[V]]),d[V].forEach(function(H,zn){X=s[V]+d[V][zn].id,null===s[V]&&(X=null),C.push({name:d[V][zn].name,link:X,src:V})})}),e.pathway=C,e.pathwayList=C.map(V=>V.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(V=>V.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,R.bd,R._i,dn.xH,dn.xw,i.RF,i.n9,O.SK,O.t3,y.ZU,B.N8,B.Om,B.$Z,B.Uo,B._C,B.p0,B.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),C=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,C.pageInfo$))}}let vt=(()=>{class t{constructor(e){this.gql=e,this.statusFilter=m.qP7.WithAcceptedOrSubmitted,this.sortBy=m.d4o.Name,this.debouncedQuery=new z.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,R.bd,w.w,y.ZU,W._Y,W.JL,W.F,an.Lr,O.SK,an.Nx,O.t3,an.iK,an.Fd,rn.gB,rn.ke,rn.Zp,W.Fj,W.JJ,W.On,mn.Vq,mn.Ip,vn.$,i.sg,at.I,I.ix,L.dQ],pipes:[f.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){if(1&t&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&t){const e=r.$implicit;n.xp6(1),n.Oqu(e)}}function yt(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions-item",24),n.YNc(1,Ct,2,1,"nz-tag",25),n.qZA()),2&t){const e=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",e.geneAliases)}}function Zt(t,r){1&t&&(n.TgZ(0,"span",20),n._uU(1,"None specified"),n.qZA())}function Mt(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions",21),n.YNc(1,yt,2,1,"nz-descriptions-item",22),n.YNc(2,Zt,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 At(t,r){if(1&t&&(n.TgZ(0,"nz-descriptions",21),n.TgZ(1,"nz-descriptions-item",26),n.TgZ(2,"cvc-tag-list"),n.TgZ(3,"cvc-link-tag",27),n._uU(4," DGIdb "),n.qZA(),n.TgZ(5,"cvc-link-tag",27),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 It(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,Mt,4,3,"nz-descriptions",7),n.YNc(5,At,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 Pt(t,r){if(1&t&&(n.TgZ(0,"nz-row",3),n.TgZ(1,"nz-col",28),n._UZ(2,"cvc-variant-menu",29),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 St(t,r){1&t&&(n.TgZ(0,"nz-space",1),n.YNc(1,It,9,4,"nz-row",2),n.YNc(2,Pt,3,4,"nz-row",2),n.qZA())}const Gt=[{path:"",component:Q,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(C=>{this.viewer$=this.viewerService.viewer$;let V=this.gql.watch({geneId:+C.geneId}).valueChanges;this.subscribableEntity={id:+C.geneId,entityType:m.o71.Gene},this.gene$=V.pipe((0,S.j)("data","gene")),this.loading$=V.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(Y.a),n.Y36(T.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"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"nzSpan"],[3,"geneId","geneName"]],template:function(e,s){1&e&&(n.YNc(0,St,3,0,"nz-space",0),n.ALo(1,"ngrxPush")),2&e&&n.Q6J("ngIf",n.lcZ(1,1,s.gene$))},directives:[i.O5,x.NU,x.$1,O.SK,O.t3,pn.R7,pn.uj,y.ZU,Dn.J,vn.$,i.sg,jn.T,gn.j,Bn.l,et,vt],pipes:[f.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:Mn,data:{breadcrumb:"Summary"}},{path:"events",component:xn,data:{breadcrumb:"Events"}}]}];let Jt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[T.Bz.forChild(Gt),Ln,N,Jn,yn,ln],T.Bz]}),t})();var Qt=a(4682),Vt=a(8762),Ot=a(5750),Nt=a(4609);let Ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[i.ez,Jt,f.WG,I.sL,M.PV,h.KJ,x.zf,y.ZJ,O.Jb,Vt.c,Qt.m,Ot.Z,o.D,Nt.g,F.t]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/727.5a1e80c4ce38da78.js b/server/public/727.5a1e80c4ce38da78.js new file mode 100644 index 000000000..3f738b557 --- /dev/null +++ b/server/public/727.5a1e80c4ce38da78.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[727],{8369:(X,J,o)=>{o.d(J,{W:()=>G});var t=o(9808),d=o(325),n=o(8481),I=o(3610),h=o(647),O=o(7484),Q=o(3098),C=o(3309),b=o(4867),Z=o(6286),Y=o(8018),T=o(6949),w=o(9444),A=o(1894),L=o(8144),N=o(3580),_=o(8625),z=o(7026),m=o(592),v=o(404),M=o(5e3);let U=(()=>{class x{}return x.\u0275fac=function(D){return new(D||x)},x.\u0275mod=M.oAB({type:x}),x.\u0275inj=M.cJS({imports:[[t.ez,d.Bz,T.WG,O.vh,Q.q6,h.PV,A.Jb,L.zf,n.X,v.cg,C.U,N.Q,b.Q,Z.y,Y.e,w.s,m.x,_.$L.forChild({formatter:{useClass:z.x,provide:_.KP}})]]}),x})(),G=(()=>{class x{}return x.\u0275fac=function(D){return new(D||x)},x.\u0275mod=M.oAB({type:x}),x.\u0275inj=M.cJS({imports:[[t.ez,d.Bz,n.X,I.$6,h.PV,U,w.s]]}),x})()},5749:(X,J,o)=>{o.d(J,{m:()=>s});var t=o(5e3),d=o(9808),n=o(325),I=o(8481),h=o(3610),O=o(4850),Q=o(712),C=o(7484),b=o(7881),Z=o(1894),Y=o(3098),T=o(6550),w=o(6949);const A=function(i,r){return{displayName:i,profileImagePath:r}};function L(i,r){if(1&i&&(t._UZ(0,"cvc-user-avatar",12),t.TgZ(1,"span",13),t._uU(2),t.qZA()),2&i){const g=t.oxw().ngIf;t.Q6J("user",t.WLB(2,A,g.name,g.profileImagePath)),t.xp6(2),t.Oqu(g.name)}}function N(i,r){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const g=r.ngIf;t.xp6(1),t.Oqu(g)}}function _(i,r){if(1&i&&(t.ynx(0),t.TgZ(1,"cvc-link-tag",14),t._uU(2),t.qZA(),t.BQk()),2&i){const g=t.oxw().ngIf;t.xp6(1),t.Q6J("href",g.url),t.xp6(1),t.hij(" ",g.name," ")}}function z(i,r){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",4),t.YNc(2,L,3,5,"ng-template",null,5,t.W1O),t.TgZ(4,"nz-row"),t.TgZ(5,"nz-col",6),t.TgZ(6,"div",7),t.TgZ(7,"p",8),t.YNc(8,N,2,1,"span",9),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-descriptions",10),t.TgZ(10,"nz-descriptions-item",11),t.YNc(11,_,3,2,"ng-container",9),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const g=r.ngIf,P=t.MAs(3);t.oxw();const K=t.MAs(4),k=t.MAs(6);t.xp6(1),t.Q6J("nzTitle",P),t.xp6(7),t.Q6J("ngIf",g.description)("ngIfElse",K),t.xp6(1),t.Q6J("nzColumn",2),t.xp6(2),t.Q6J("ngIf",g.url)("ngIfElse",k)}}function m(i,r){1&i&&t._uU(0," Organization has not provided a description.\n")}function v(i,r){1&i&&t._uU(0," --\n")}let M=(()=>{class i{constructor(g){this.gql=g}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,O.U)(({data:g})=>g.organization))}}return i.\u0275fac=function(g){return new(g||i)(t.Y36(Q.X5f))},i.\u0275cmp=t.Xpm({type:i,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(g,P){1&g&&(t.TgZ(0,"div",0),t.YNc(1,z,12,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA(),t.YNc(3,m,1,0,"ng-template",null,2,t.W1O),t.YNc(5,v,1,0,"ng-template",null,3,t.W1O)),2&g&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,P.org$)))},directives:[d.O5,C.bd,b.L,Z.SK,Z.t3,Y.R7,Y.uj,T.l],pipes:[w.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})();var U=o(647);function G(i,r){}function x(i,r){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,G,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const g=t.oxw(),P=t.MAs(2);t.xp6(1),t.MGl("routerLink","/organizations/",g.org.id,""),t.xp6(1),t.Q6J("ngTemplateOutlet",P)}}function E(i,r){}function D(i,r){if(1&i&&t._UZ(0,"cvc-organization-popover",10),2&i){const g=t.oxw(3);t.Q6J("orgId",g.org.id)}}function W(i,r){if(1&i&&t.YNc(0,D,1,1,"cvc-organization-popover",9),2&i){const g=t.oxw(2);t.Q6J("ngIf",g.enablePopover)}}function j(i,r){if(1&i&&(t.TgZ(0,"nz-tag",7),t.YNc(1,E,0,0,"ng-template",6),t.qZA(),t.YNc(2,W,1,1,"ng-template",null,8,t.W1O)),2&i){const g=t.MAs(3);t.oxw();const P=t.MAs(8);t.Q6J("nzPopoverContent",g),t.xp6(1),t.Q6J("ngTemplateOutlet",P)}}function $(i,r){}function H(i,r){if(1&i&&(t.TgZ(0,"nz-tag"),t.YNc(1,$,0,0,"ng-template",6),t.qZA()),2&i){t.oxw();const g=t.MAs(8);t.xp6(1),t.Q6J("ngTemplateOutlet",g)}}function F(i,r){}function R(i,r){if(1&i&&t.YNc(0,F,0,0,"ng-template",6),2&i){t.oxw();const g=t.MAs(2);t.Q6J("ngTemplateOutlet",g)}}function V(i,r){if(1&i&&(t._UZ(0,"i",11),t._uU(1)),2&i){const g=t.oxw();t.xp6(1),t.hij(" ",g.org.name,"\n")}}let s=(()=>{class i{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 i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=t.Xpm({type:i,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(g,P){if(1&g&&(t.YNc(0,x,3,2,"ng-container",0),t.YNc(1,j,4,2,"ng-template",null,1,t.W1O),t.YNc(3,H,2,1,"ng-template",null,2,t.W1O),t.YNc(5,R,1,1,"ng-template",null,3,t.W1O),t.YNc(7,V,2,1,"ng-template",null,4,t.W1O)),2&g){const K=t.MAs(6);t.Q6J("ngIf",P.linked)("ngIfElse",K)}},directives:[d.O5,n.yS,d.tP,I.j,h.lU,M,U.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),i})()},3579:(X,J,o)=>{o.d(J,{p:()=>et});var t=o(5e3),d=o(325),n=o(9808),I=o(8481),h=o(3610),O=o(373),Q=o(712),C=o(7484),b=o(8144),Z=o(647),Y=o(4590),T=o(3193),w=o(2826),A=o(9001),L=o(8664),N=o(112),_=o(3098),z=o(125),m=o(6949),v=o(8625);function M(p,f){if(1&p&&(t.TgZ(0,"span"),t._UZ(1,"i",13),t._uU(2),t.qZA()),2&p){const l=t.oxw(2).ngIf;t.xp6(2),t.hij(" RID",l.id," ")}}function U(p,f){if(1&p&&t._UZ(0,"cvc-status-tag",14),2&p){const l=t.oxw(2).ngIf;t.Q6J("status",l.status)}}function G(p,f){1&p&&(t.TgZ(0,"nz-space",10),t.YNc(1,M,3,1,"span",11),t.YNc(2,U,1,1,"cvc-status-tag",12),t.qZA())}function x(p,f){if(1&p&&t._UZ(0,"cvc-gene-tag",22),2&p){const l=t.oxw(2).ngIf;t.Q6J("enablePopover",!1)("gene",l.subject)}}function E(p,f){if(1&p&&t._UZ(0,"cvc-assertion-tag",23),2&p){const l=t.oxw(2).ngIf;t.Q6J("enablePopover",!1)("assertion",l.subject)}}function D(p,f){if(1&p&&t._UZ(0,"cvc-evidence-tag",24),2&p){const l=t.oxw(2).ngIf;t.Q6J("enablePopover",!1)("evidence",l.subject)}}function W(p,f){if(1&p&&t._UZ(0,"cvc-variant-tag",25),2&p){const l=t.oxw(2).ngIf;t.Q6J("enablePopover",!1)("variant",l.subject)}}function j(p,f){if(1&p&&t._UZ(0,"cvc-variant-group-tag",26),2&p){const l=t.oxw(2).ngIf;t.Q6J("variantgroup",l.subject)}}function $(p,f){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&p){const l=t.oxw(2).ngIf;t.xp6(1),t.Oqu(l.subject.name)}}function H(p,f){if(1&p&&(t.ynx(0,15),t.YNc(1,x,1,2,"cvc-gene-tag",16),t.YNc(2,E,1,2,"cvc-assertion-tag",17),t.YNc(3,D,1,2,"cvc-evidence-tag",18),t.YNc(4,W,1,2,"cvc-variant-tag",19),t.YNc(5,j,1,1,"cvc-variant-group-tag",20),t.YNc(6,$,2,1,"span",21),t.BQk()),2&p){const l=t.oxw().ngIf;t.Q6J("ngSwitch",l.subject.__typename),t.xp6(1),t.Q6J("ngSwitchCase","Gene"),t.xp6(1),t.Q6J("ngSwitchCase","Assertion"),t.xp6(1),t.Q6J("ngSwitchCase","EvidenceItem"),t.xp6(1),t.Q6J("ngSwitchCase","Variant"),t.xp6(1),t.Q6J("ngSwitchCase","VariantGroup")}}function F(p,f){if(1&p&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,G,3,0,"ng-template",null,3,t.W1O),t.YNc(4,H,7,6,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.TgZ(7,"nz-descriptions-item",6),t._UZ(8,"cvc-user-tag",7),t.qZA(),t.TgZ(9,"nz-descriptions-item",8),t._uU(10),t.qZA(),t.TgZ(11,"nz-descriptions-item",9),t._uU(12),t.ALo(13,"timeago"),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&p){const l=f.ngIf,B=t.MAs(3),tt=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",B)("nzExtra",tt),t.xp6(5),t.Q6J("nzColumn",1),t.xp6(2),t.Q6J("enablePopover",!1)("user",l.revisor),t.xp6(2),t.hij(" ",l.linkoutData.name," "),t.xp6(2),t.hij(" ",t.lcZ(13,7,l.createdAt)," ")}}let R=(()=>{class p{constructor(l){this.gql=l}ngOnInit(){if(null==this.revisionId)throw new Error("cvc-revision-popover requires valid revisionId input.");this.revision$=this.gql.watch({revisionId:this.revisionId}).valueChanges.pipe((0,O.j)("data","revision"))}}return p.\u0275fac=function(l){return new(l||p)(t.Y36(Q.otH))},p.\u0275cmp=t.Xpm({type:p,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["subject",""],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Revisor"],[3,"enablePopover","user"],["nzTitle","Field"],["nzTitle","Revision Date"],[1,"revision-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzType","civic:revision"],[3,"status"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"variantgroup",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"variantgroup"]],template:function(l,B){1&l&&(t.TgZ(0,"div",0),t.YNc(1,F,14,9,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&l&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,B.revision$)))},directives:[n.O5,C.bd,b.NU,b.$1,Z.Ls,Y.h,n.RF,n.n9,T.H,w.w,A.O,L.I,N.u,n.ED,_.R7,_.uj,z.I],pipes:[m.fM,v.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}.revision-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),p})();function V(p,f){}function s(p,f){}function i(p,f){if(1&p&&(t.TgZ(0,"nz-tag",7),t.YNc(1,s,0,0,"ng-template",1),t.qZA()),2&p){t.oxw();const l=t.MAs(2);t.oxw();const B=t.MAs(7);t.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l),t.xp6(1),t.Q6J("ngTemplateOutlet",B)}}function r(p,f){if(1&p&&t._UZ(0,"cvc-revision-popover",8),2&p){const l=t.oxw(2);t.Q6J("revisionId",l.revision.id)}}function g(p,f){if(1&p&&(t.YNc(0,i,2,3,"nz-tag",5),t.YNc(1,r,1,1,"ng-template",null,6,t.W1O)),2&p){const l=t.oxw(),B=t.MAs(5);t.Q6J("ngIf",l.enablePopover)("ngIfElse",B)}}function P(p,f){}function K(p,f){if(1&p&&(t.TgZ(0,"nz-tag"),t.YNc(1,P,0,0,"ng-template",1),t.qZA()),2&p){t.oxw();const l=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",l)}}function k(p,f){if(1&p&&(t._UZ(0,"i",9),t._uU(1)),2&p){const l=t.oxw();t.xp6(1),t.hij(" ",l.revision.name,"\n")}}let et=(()=>{class p{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}}return p.\u0275fac=function(l){return new(l||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",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"],["revisionPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(l,B){if(1&l&&(t.TgZ(0,"a",0),t.YNc(1,V,0,0,"ng-template",1),t.qZA(),t.YNc(2,g,3,2,"ng-template",null,2,t.W1O),t.YNc(4,K,2,1,"ng-template",null,3,t.W1O),t.YNc(6,k,2,1,"ng-template",null,4,t.W1O)),2&l){const tt=t.MAs(3);t.Q6J("routerLink",B.revision.link),t.xp6(1),t.Q6J("ngTemplateOutlet",tt)}},directives:[d.yS,n.tP,n.O5,I.j,h.lU,R,Z.Ls],styles:[""]}),p})()},8747:(X,J,o)=>{o.d(J,{l:()=>N});var t=o(5e3),d=o(9808),n=o(7484),I=o(3762),h=o(6042),O=o(2643),Q=o(2683),C=o(647);const b=["itemTemplate"],Z=function(_){return{$implicit:_}};function Y(_,z){if(1&_){const m=t.EpF();t.TgZ(0,"nz-list-item",5),t.NdJ("click",function(){t.CHM(m);const M=t.oxw().$implicit;return t.oxw(2).onParticipantSelected(M)}),t.GkF(1,6),t.qZA()}if(2&_){const m=t.oxw().$implicit,v=t.oxw(2);t.ekj("selected-participant",m.id==(null==v.selectedItem?null:v.selectedItem.id)),t.xp6(1),t.Q6J("ngTemplateOutlet",v.itemTemplateRef||null)("ngTemplateOutletContext",t.VKq(4,Z,m))}}function T(_,z){if(1&_&&(t.ynx(0),t.YNc(1,Y,2,6,"nz-list-item",4),t.BQk()),2&_){const m=z.index,v=t.oxw(2);t.xp6(1),t.Q6J("ngIf",m+1<=v.defaultListSize)}}function w(_,z){if(1&_){const m=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(m),t.oxw(2).onExpandClicked()}),t._UZ(1,"i",8),t._uU(2," Expand "),t.qZA()}}function A(_,z){if(1&_){const m=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(m),t.oxw(2).onCollapseClicked()}),t._UZ(1,"i",9),t._uU(2," Collapse "),t.qZA()}}function L(_,z){if(1&_&&(t.ynx(0),t.TgZ(1,"nz-card",1),t.TgZ(2,"nz-list"),t.YNc(3,T,2,1,"ng-container",2),t.qZA(),t.YNc(4,w,3,0,"button",3),t.YNc(5,A,3,0,"button",3),t.qZA(),t.BQk()),2&_){const m=t.oxw();t.xp6(1),t.Q6J("nzTitle",m.listTitle),t.xp6(2),t.Q6J("ngForOf",m.participantList),t.xp6(1),t.Q6J("ngIf",m.participantList.length>m.defaultListSize),t.xp6(1),t.Q6J("ngIf",m.isExpanded)}}let N=(()=>{class _{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new t.vpe,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(m){var v;this.selectedItem=m.id==(null===(v=this.selectedItem)||void 0===v?void 0:v.id)?void 0:m,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 _.\u0275fac=function(m){return new(m||_)},_.\u0275cmp=t.Xpm({type:_,selectors:[["cvc-participant-list"]],contentQueries:function(m,v,M){if(1&m&&t.Suo(M,b,5),2&m){let U;t.iGM(U=t.CRH())&&(v.itemTemplateRef=U.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(m,v){1&m&&t.YNc(0,L,6,4,"ng-container",0),2&m&&t.Q6J("ngIf",v.participantList&&v.participantList.length>0)},directives:[d.O5,n.bd,I.n_,d.sg,I.AA,d.tP,h.ix,O.dQ,Q.w,C.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}"]}),_})()},1150:(X,J,o)=>{o.d(J,{N:()=>Q});var t=o(9808),d=o(7484),n=o(3762),I=o(647),h=o(6042),O=o(5e3);let Q=(()=>{class C{}return C.\u0275fac=function(Z){return new(Z||C)},C.\u0275mod=O.oAB({type:C}),C.\u0275inj=O.cJS({imports:[[t.ez,d.vh,n.Ph,I.PV,h.sL]]}),C})()},112:(X,J,o)=>{o.d(J,{u:()=>V});var t=o(5e3),d=o(9808),n=o(325),I=o(8481),h=o(3610),O=o(4850),Q=o(712),C=o(7484),b=o(3098),Z=o(8664),Y=o(6906),T=o(6949);function w(s,i){if(1&s&&(t._UZ(0,"i",7),t._uU(1)),2&s){const r=t.oxw().ngIf;t.xp6(1),t.hij(" ",r.name," ")}}function A(s,i){if(1&s&&(t.TgZ(0,"span"),t._UZ(1,"cvc-variant-tag",10),t.qZA()),2&s){const r=i.$implicit;t.xp6(1),t.Q6J("variant",r.node)}}function L(s,i){if(1&s&&(t.TgZ(0,"nz-descriptions-item",8),t.YNc(1,A,2,1,"span",9),t.qZA()),2&s){const r=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",r.variants.edges)}}function N(s,i){if(1&s&&(t.TgZ(0,"span"),t._UZ(1,"cvc-source-tag",12),t.qZA()),2&s){const r=i.$implicit;t.xp6(1),t.Q6J("source",r)}}function _(s,i){if(1&s&&(t.TgZ(0,"nz-descriptions-item",11),t.YNc(1,N,2,1,"span",9),t.qZA()),2&s){const r=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",r.sources)}}function z(s,i){if(1&s&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,w,2,1,"ng-template",null,3,t.W1O),t._uU(4),t.TgZ(5,"nz-descriptions",4),t.YNc(6,L,2,1,"nz-descriptions-item",5),t.YNc(7,_,2,1,"nz-descriptions-item",6),t.qZA(),t.qZA(),t.BQk()),2&s){const r=i.ngIf,g=t.MAs(3);t.xp6(1),t.Q6J("nzTitle",g),t.xp6(3),t.hij(" ",r.description," "),t.xp6(1),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",r.variants.edges.length>0),t.xp6(1),t.Q6J("ngIf",r.sources.length>0)}}let m=(()=>{class s{constructor(r){this.gql=r}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,O.U)(({data:r})=>r.variantGroup))}}return s.\u0275fac=function(r){return new(r||s)(t.Y36(Q.Zo2))},s.\u0275cmp=t.Xpm({type:s,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(r,g){1&r&&(t.TgZ(0,"div",0),t.YNc(1,z,8,5,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,g.variantGroup$)))},directives:[d.O5,C.bd,b.R7,b.uj,d.sg,Z.I,Y.T],pipes:[T.fM],styles:["[_nghost-%COMP%]{display:block}"]}),s})();var v=o(647);function M(s,i){}function U(s,i){if(1&s&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,M,0,0,"ng-template",6),t.qZA(),t.BQk()),2&s){const r=t.oxw(),g=t.MAs(2);t.xp6(1),t.Q6J("routerLink",r.variantgroup.link),t.xp6(1),t.Q6J("ngTemplateOutlet",g)}}function G(s,i){}function x(s,i){if(1&s&&(t.TgZ(0,"nz-tag",9),t.YNc(1,G,0,0,"ng-template",6),t.qZA()),2&s){t.oxw();const r=t.MAs(2);t.oxw();const g=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",r),t.xp6(1),t.Q6J("ngTemplateOutlet",g)}}function E(s,i){if(1&s&&t._UZ(0,"cvc-variant-group-popover",11),2&s){const r=t.oxw(3);t.Q6J("variantGroupId",r.variantgroup.id)}}function D(s,i){if(1&s&&t.YNc(0,E,1,1,"cvc-variant-group-popover",10),2&s){const r=t.oxw(2);t.Q6J("ngIf",r.enablePopover)}}function W(s,i){if(1&s&&(t.YNc(0,x,2,3,"nz-tag",7),t.YNc(1,D,1,1,"ng-template",null,8,t.W1O)),2&s){const r=t.oxw(),g=t.MAs(4);t.Q6J("ngIf",r.enablePopover)("ngIfElse",g)}}function j(s,i){}function $(s,i){if(1&s&&(t.TgZ(0,"nz-tag"),t.YNc(1,j,0,0,"ng-template",6),t.qZA()),2&s){t.oxw();const r=t.MAs(8);t.xp6(1),t.Q6J("ngTemplateOutlet",r)}}function H(s,i){}function F(s,i){if(1&s&&t.YNc(0,H,0,0,"ng-template",6),2&s){t.oxw();const r=t.MAs(2);t.Q6J("ngTemplateOutlet",r)}}function R(s,i){if(1&s&&(t._UZ(0,"i",12),t._uU(1)),2&s){const r=t.oxw();t.xp6(1),t.hij(" ",r.variantgroup.name,"\n")}}let V=(()=>{class s{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 s.\u0275fac=function(r){return new(r||s)},s.\u0275cmp=t.Xpm({type:s,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(r,g){if(1&r&&(t.YNc(0,U,3,2,"ng-container",0),t.YNc(1,W,3,2,"ng-template",null,1,t.W1O),t.YNc(3,$,2,1,"ng-template",null,2,t.W1O),t.YNc(5,F,1,1,"ng-template",null,3,t.W1O),t.YNc(7,R,2,1,"ng-template",null,4,t.W1O)),2&r){const P=t.MAs(6);t.Q6J("ngIf",g.linked)("ngIfElse",P)}},directives:[d.O5,n.yS,d.tP,I.j,h.lU,m,v.Ls],styles:[""]}),s})()},359:(X,J,o)=>{o.r(J),o.d(J,{SourcesModule:()=>cn});var t=o(9808),d=o(325),n=o(5e3),I=o(8992),h=o(1945),O=o(4182),Q=o(6123),C=o(7625),b=o(8929),Z=o(712),Y=o(9169),T=o(8144),w=o(7484),A=o(3618),L=o(7525),N=o(4546),_=o(8776),z=o(1894),m=o(822),v=o(2359);function M(e,c){1&e&&(n.TgZ(0,"nz-card"),n.TgZ(1,"nz-typography"),n._uU(2," If you have a source publication that you believe to contain research relevant to CIViC's curation efforts, the community would appreciate your input! Please specify as many details as you can using the form below (only the Pubmed ID and Comment are required). Your suggested source will be placed in the "),n.TgZ(3,"a",3),n._uU(4,"source curation queue"),n.qZA(),n._uU(5,", and you will be given a suggestion credit if your suggestion results in a new Evidence Item added to the CIViC database. "),n.qZA(),n.qZA())}function U(e,c){1&e&&n.GkF(0)}function G(e,c){if(1&e){const a=n.EpF();n.TgZ(0,"formly-form",9),n.NdJ("modelChange",function(y){return n.CHM(a),n.oxw(2).formModel=y}),n.qZA()}if(2&e){const a=n.oxw(2);n.Q6J("form",a.formGroup)("fields",a.formFields)("model",a.formModel)("options",a.formOptions)}}function x(e,c){if(1&e&&(n.TgZ(0,"nz-form-item"),n._UZ(1,"cvc-form-errors-alert",11),n.qZA()),2&e){const a=n.oxw(3);n.xp6(1),n.Q6J("errors",a.errorMessages)}}function E(e,c){1&e&&(n.TgZ(0,"p"),n._uU(1," Thank You! Your source will now appear in the "),n.TgZ(2,"a",3),n._uU(3," Source Suggestion curation queue."),n.qZA(),n.qZA())}function D(e,c){if(1&e&&(n.ynx(0),n._UZ(1,"nz-alert",12),n.YNc(2,E,4,0,"ng-template",13,14,n.W1O),n.BQk()),2&e){const a=n.MAs(3);n.xp6(1),n.Q6J("nzDescription",a)}}function W(e,c){if(1&e&&(n.YNc(0,x,2,1,"nz-form-item",10),n.YNc(1,D,4,1,"ng-container",10)),2&e){const a=n.oxw(2);n.Q6J("ngIf",a.errorMessages.length>0),n.xp6(1),n.Q6J("ngIf",a.success)}}function j(e,c){if(1&e){const a=n.EpF();n.TgZ(0,"nz-spin",4),n.TgZ(1,"form",5),n.NdJ("ngSubmit",function(){n.CHM(a);const y=n.oxw();return y.submitSourceSuggestion(y.formModel)}),n.YNc(2,U,1,0,"ng-container",6),n.YNc(3,G,1,4,"formly-form",7),n.qZA(),n.YNc(4,W,2,2,"ng-template",null,8,n.W1O),n.qZA()}if(2&e){const a=n.MAs(5),u=n.oxw();n.Q6J("nzSpinning",u.loading),n.xp6(1),n.Q6J("formGroup",u.formGroup),n.xp6(1),n.Q6J("ngTemplateOutlet",a),n.xp6(1),n.Q6J("ngIf",!u.success)}}let $=(()=>{class e{constructor(a,u){this.suggestSourceGQL=a,this.errService=u,this.destroy$=new b.xQ,this.formGroup=new O.cw({}),this.formOptions={},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestSourceMutator=new Q.U(u),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Source Form"},fieldGroup:[{key:"gene",type:"gene-array",templateOptions:{maxCount:1}},{key:"variant",type:"variant-array",templateOptions:{maxCount:1}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{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",required:!0,maxCount:1},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this Source Suggestion. 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"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Source Suggestion",submitSize:"large"}}]}]}submitSourceSuggestion(a){console.log(a);let u=this.toSubmitInput(a);if(u){let y=this.suggestSourceMutator.mutate(this.suggestSourceGQL,{input:u},{},S=>{this.newId=S.suggestSource.sourceSuggestion.id});y.submitSuccess$.pipe((0,C.R)(this.destroy$)).subscribe(S=>{S&&(this.success=!0)}),y.submitError$.pipe((0,C.R)(this.destroy$)).subscribe(S=>{S&&(this.errorMessages=S,this.success=!1)}),y.isSubmitting$.pipe((0,C.R)(this.destroy$)).subscribe(S=>{this.loading=S})}}toSubmitInput(a){var u,y,S,q;if(a){const nt=a.fields;return{variantId:null===(u=nt.variant[0])||void 0===u?void 0:u.id,geneId:null===(y=nt.gene[0])||void 0===y?void 0:y.id,sourceId:nt.source[0].id,diseaseId:null===(S=nt.disease[0])||void 0===S?void 0:S.id,comment:nt.comment,organizationId:null===(q=null==a?void 0:a.fields.organization)||void 0===q?void 0:q.id}}}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)(n.Y36(Z.SWk),n.Y36(Y.Y))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-source-submit-form"]],decls:3,vars:0,consts:[["nzDirection","vertical"],[4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["routerLink","/curation/queues/pending-sources"],["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","Source Suggestion Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""]],template:function(a,u){1&a&&(n.TgZ(0,"nz-space",0),n.YNc(1,M,6,0,"nz-card",1),n.YNc(2,j,6,4,"nz-spin",2),n.qZA())},directives:[T.NU,T.$1,w.bd,A.ZU,d.yS,L.W,O._Y,O.JL,N.Lr,O.sg,t.tP,t.O5,_.T7,z.SK,N.Nx,m.V,v.r],styles:[""]}),e})(),H=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-source-add-page"]],decls:10,vars:0,consts:[["displayName","New"],[1,"site-page-header"],["nz-icon","","nzType","civic:assertion"],[1,"content"]],template:function(a,u){1&a&&(n._UZ(0,"cvc-section-navigation",0),n.TgZ(1,"nz-page-header",1),n.TgZ(2,"nz-page-header-title"),n._UZ(3,"i",2),n._uU(4," Add a Source Suggestion "),n.qZA(),n.TgZ(5,"nz-page-header-subtitle"),n._uU(6," Submit a promising source for curation "),n.qZA(),n.TgZ(7,"nz-page-header-content"),n.TgZ(8,"div",3),n._UZ(9,"cvc-source-submit-form"),n.qZA(),n.qZA(),n.qZA())},directives:[I.I,h.$O,h.u9,h.yG,h.u5,$],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 F=o(373),R=o(1059),V=o(9350),s=o(6949),i=o(6042),r=o(2643),g=o(2683),P=o(647),K=o(6550),k=o(2233);function et(e,c){1&e&&(n.TgZ(0,"button",10),n._UZ(1,"i",11),n._uU(2," Suggest a New Source "),n.qZA())}function p(e,c){if(1&e&&(n.ynx(0),n.YNc(1,et,3,0,"button",9),n.BQk()),2&e){const a=c.ngrxLet;n.xp6(1),n.Q6J("ngIf",a.signedIn)}}function f(e,c){if(1&e&&n.YNc(0,p,2,1,"ng-container",8),2&e){const a=n.oxw(2);n.Q6J("ngrxLet",a.viewer$)}}function l(e,c){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.YNc(2,f,1,1,"ng-template",null,2,n.W1O),n.TgZ(4,"nz-page-header",3),n.TgZ(5,"nz-page-header-title"),n._UZ(6,"i",4),n._uU(7),n.qZA(),n.TgZ(8,"nz-page-header-extra"),n.TgZ(9,"cvc-link-tag",5),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-page-header-content"),n._UZ(12,"cvc-tab-navigation",6),n.TgZ(13,"div",7),n._UZ(14,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const a=c.ngIf,u=n.MAs(3),y=n.oxw();n.xp6(1),n.Q6J("displayName",a.citation)("actionsTpl",u),n.xp6(6),n.hij(" ",a.citation," "),n.xp6(2),n.Q6J("href",a.sourceUrl)("tooltip","View on "+a.displayType),n.xp6(1),n.hij(" ",a.displayType+": "+a.citationId," "),n.xp6(2),n.Q6J("tabs",y.tabs)}}let B=(()=>{class e{constructor(a,u,y){this.viewerService=a,this.route=u,this.gql=y,this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(S=>{this.sourceId=+S.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let q=this.queryRef.valueChanges;this.loading$=q.pipe((0,F.j)("loading"),(0,R.O)(!0)),this.source$=q.pipe((0,F.j)("data","source"))}),this.tabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"}]}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(a){return new(a||e)(n.Y36(V.a),n.Y36(d.gz),n.Y36(Z.Bk6))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-sources-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","actionsTpl"],["sourcesActions",""],[1,"site-page-header"],["nz-icon","","nzType","civic:source"],[3,"href","tooltip"],[3,"tabs"],[1,"content"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"]],template:function(a,u){1&a&&(n.YNc(0,l,15,7,"ng-container",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,u.source$))},directives:[t.O5,I.I,s.eJ,i.ix,r.dQ,d.rH,g.w,P.Ls,h.$O,h.u9,h.Jp,K.l,h.u5,k.P,d.lC],pipes:[s.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),e})();var tt=o(3575);function it(e,c){1&e&&(n.TgZ(0,"button",18),n._UZ(1,"i",19),n._uU(2," Suggest a New Source "),n.qZA())}function rt(e,c){if(1&e&&(n.ynx(0),n.YNc(1,it,3,0,"button",17),n.BQk()),2&e){const a=c.ngrxLet;n.xp6(1),n.Q6J("ngIf",a.signedIn)}}function ct(e,c){if(1&e&&n.YNc(0,rt,2,1,"ng-container",16),2&e){const a=n.oxw();n.Q6J("ngrxLet",a.viewer$)}}function st(e,c){1&e&&(n.TgZ(0,"a",20),n._UZ(1,"i",21),n._uU(2," View Source Docs "),n.qZA())}function pt(e,c){1&e&&(n.TgZ(0,"a",22),n._UZ(1,"i",21),n._uU(2," View Source Curation Docs "),n.qZA())}let gt=(()=>{class e{constructor(a){this.viewerService=a,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)(n.Y36(V.a))},e.\u0275cmp=n.Xpm({type:e,selectors:[["sources-home"]],decls:21,vars:3,consts:[[3,"actionsTpl"],["sourcesActions",""],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:source"],["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/source.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse Sources"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock",""]],template:function(a,u){if(1&a&&(n._UZ(0,"cvc-section-navigation",0),n.YNc(1,ct,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,"Sources"),n.qZA(),n.TgZ(11,"p",7),n._uU(12," Each Evidence Item is associated with a Source which supports the Item's clinical claims. CIViC accepts publications known to PubMed or abstracts published through the American Society of Clinical Oncology. "),n.qZA(),n.qZA(),n.TgZ(13,"nz-col",8),n.TgZ(14,"nz-space",9),n.YNc(15,st,3,0,"a",10),n.YNc(16,pt,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-sources-table",15),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&a){const y=n.MAs(2);n.Q6J("actionsTpl",y),n.xp6(11),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24)}},directives:[I.I,s.eJ,t.O5,i.ix,r.dQ,d.rH,g.w,P.Ls,h.$O,h.u5,z.SK,z.t3,A.ZU,T.NU,T.$1,tt.d],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 ot=o(3098),lt=o(4049),ut=o(8965),mt=o(9814);function dt(e,c){if(1&e&&(n.TgZ(0,"h2"),n._uU(1),n.qZA()),2&e){const a=n.oxw().ngIf;n.xp6(1),n.Oqu(a.title)}}function _t(e,c){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const a=n.oxw(3).ngIf;n.xp6(1),n.hij(" ",a.pmcId," ")}}function vt(e,c){}function ft(e,c){if(1&e&&(n.TgZ(0,"nz-descriptions-item",26),n.YNc(1,vt,0,0,"ng-template",27),n.qZA()),2&e){n.oxw(3);const a=n.MAs(9);n.xp6(1),n.Q6J("ngTemplateOutlet",a)}}function ht(e,c){if(1&e&&(n.TgZ(0,"nz-descriptions-item",26),n._UZ(1,"cvc-clinical-trial-tag",28),n.qZA()),2&e){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("clinicalTrial",a.clinicalTrials[0])}}function zt(e,c){if(1&e&&n._UZ(0,"cvc-clinical-trial-tag",28),2&e){const a=n.oxw().$implicit;n.Q6J("clinicalTrial",a)}}function xt(e,c){1&e&&(n.ynx(0),n.TgZ(1,"nz-space"),n.YNc(2,zt,1,1,"cvc-clinical-trial-tag",31),n.qZA(),n.BQk())}function Ct(e,c){if(1&e&&(n.TgZ(0,"nz-descriptions-item",29),n.YNc(1,xt,3,0,"ng-container",30),n.qZA()),2&e){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngForOf",a.clinicalTrials)}}function Tt(e,c){if(1&e&&(n.ynx(0,22),n.YNc(1,ft,2,1,"ng-template",23),n.YNc(2,ht,2,1,"ng-template",24),n.YNc(3,Ct,2,1,"ng-template",25),n.BQk()),2&e){const a=n.oxw(3).ngIf;n.Q6J("ngPlural",a.clinicalTrials.length)}}function yt(e,c){if(1&e&&(n.TgZ(0,"nz-descriptions",15),n.TgZ(1,"nz-descriptions-item",16),n._uU(2),n.qZA(),n.TgZ(3,"nz-descriptions-item",17),n._uU(4),n.qZA(),n.TgZ(5,"nz-descriptions-item",18),n._uU(6),n.qZA(),n.TgZ(7,"nz-descriptions-item",19),n.YNc(8,_t,2,1,"ng-container",20),n.qZA(),n.YNc(9,Tt,4,1,"ng-container",21),n.qZA()),2&e){n.oxw();const a=n.MAs(9),u=n.oxw().ngIf;n.Q6J("nzColumn",1),n.xp6(2),n.Oqu(u.publicationDate),n.xp6(1),n.MGl("nzTitle","",u.displayType," ID"),n.xp6(1),n.Oqu(u.citationId),n.xp6(2),n.Oqu(u.fullJournalTitle),n.xp6(2),n.Q6J("ngIf",u.pmcId)("ngIfElse",a),n.xp6(1),n.Q6J("ngIf",u.clinicalTrials)}}function Pt(e,c){1&e&&(n.TgZ(0,"span",32),n._uU(1," Not available "),n.qZA())}function St(e,c){if(1&e&&(n.TgZ(0,"nz-descriptions",33),n.TgZ(1,"nz-descriptions-item",34),n._uU(2),n.qZA(),n.qZA()),2&e){const a=n.oxw(2).ngIf;n.Q6J("nzColumn",1),n.xp6(2),n.hij(" ",a.authorString," ")}}function Ot(e,c){if(1&e&&(n.TgZ(0,"nz-row",7),n.TgZ(1,"nz-col",8),n.TgZ(2,"nz-descriptions",9),n.TgZ(3,"nz-descriptions-item",10),n._uU(4),n.qZA(),n.qZA(),n.qZA(),n.TgZ(5,"nz-col",8),n.TgZ(6,"nz-space",11),n.YNc(7,yt,10,8,"nz-descriptions",12),n.YNc(8,Pt,2,0,"ng-template",null,13,n.W1O),n.YNc(10,St,3,2,"nz-descriptions",14),n.qZA(),n.qZA(),n.qZA()),2&e){const a=n.oxw().ngIf;n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",12),n.xp6(3),n.Oqu(a.abstract),n.xp6(1),n.Q6J("nzSpan",12)}}function Zt(e,c){if(1&e&&n._UZ(0,"cvc-evidence-table",35),2&e){n.oxw();const a=n.MAs(5),u=n.oxw();n.Q6J("sourceId",u.sourceId)("cvcTitleTemplate",a)}}function Mt(e,c){if(1&e&&(n._uU(0," Evidence for "),n.TgZ(1,"i"),n._uU(2),n.qZA()),2&e){const a=n.oxw().ngIf;n.xp6(2),n.Oqu(a.title)}}function It(e,c){if(1&e&&n._UZ(0,"cvc-source-suggestions-table",35),2&e){n.oxw();const a=n.MAs(8),u=n.oxw();n.Q6J("sourceId",u.sourceId)("cvcTitleTemplate",a)}}function At(e,c){if(1&e&&(n._uU(0," Source Suggestions for "),n.TgZ(1,"i"),n._uU(2),n.qZA()),2&e){const a=n.oxw().ngIf;n.xp6(2),n.Oqu(a.title)}}function bt(e,c){1&e&&(n.TgZ(0,"nz-space",1),n.YNc(1,dt,2,1,"h2",2),n.YNc(2,Ot,11,4,"nz-row",3),n.YNc(3,Zt,1,2,"cvc-evidence-table",4),n.YNc(4,Mt,3,1,"ng-template",null,5,n.W1O),n.YNc(6,It,1,2,"cvc-source-suggestions-table",4),n.YNc(7,At,3,1,"ng-template",null,6,n.W1O),n.qZA())}let Jt=(()=>{class e{constructor(a,u){this.route=a,this.gql=u,this.routeSub=this.route.params.subscribe(y=>{this.sourceId=+y.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let S=this.queryRef.valueChanges;this.loading$=S.pipe((0,F.j)("loading"),(0,R.O)(!0)),this.source$=S.pipe((0,F.j)("data","source"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(a){return new(a||e)(n.Y36(d.gz),n.Y36(Z.g0X))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-sources-summary"]],decls:2,vars:3,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[3,"sourceId","cvcTitleTemplate",4,"nzSpaceItem"],["evidenceCardTitle",""],["sourceSuggestionCardTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzLayout","vertical"],["nzTitle","Abstract"],["nzDirection","vertical"],["nzBordered","",3,"nzColumn",4,"nzSpaceItem"],["notAvailable",""],["nzBordered","","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],["nzBordered","",3,"nzColumn"],["nzTitle","Published"],[3,"nzTitle"],["nzTitle","Journal"],["nzTitle","PMC ID"],[4,"ngIf","ngIfElse"],[3,"ngPlural",4,"ngIf"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],["nzTitle","Clinicial Trial"],[3,"ngTemplateOutlet"],[3,"clinicalTrial"],["nzTitle","Clinicial Trials"],[4,"ngFor","ngForOf"],[3,"clinicalTrial",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],["nzBordered","","nzLayout","vertical",3,"nzColumn"],["nzTitle","Authors"],[3,"sourceId","cvcTitleTemplate"]],template:function(a,u){1&a&&(n.YNc(0,bt,9,0,"nz-space",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,u.source$))},directives:[t.O5,T.NU,T.$1,z.SK,z.t3,ot.R7,ot.uj,t.iq,t.zE,t.tP,lt.G,t.sg,A.ZU,ut.a,mt.O],pipes:[s.fM],styles:[""]}),e})(),Qt=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["app-sources"]],decls:1,vars:0,template:function(a,u){1&a&&n._UZ(0,"router-outlet")},directives:[d.lC],styles:[""]}),e})();var wt=o(3801);const Nt=[{path:"",component:Qt,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:gt,data:{breadcrumb:"Home"}},{path:"add",data:{breadcrumb:"Submit a Source Suggestion"},component:H},{path:":sourceId",component:B,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Jt,data:{breadcrumb:"Summary"}},{path:"comments",component:(()=>{class e{constructor(a){this.route=a,this.commentable={id:+this.route.snapshot.params.sourceId,entityType:Z.OfU.Source}}}return e.\u0275fac=function(a){return new(a||e)(n.Y36(d.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-sources-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,u){1&a&&n._UZ(0,"cvc-comment-list",0),2&a&&n.Q6J("commentable",u.commentable)},directives:[wt.D],styles:["[_nghost-%COMP%]{display:block}"]}),e})(),data:{breadcrumb:"Comments"}}]}]}];let Ut=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[d.Bz.forChild(Nt)],d.Bz]}),e})();var Yt=o(7279),at=o(5630);let Lt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ez,d.Bz,s.WG,h.KJ,P.PV,z.Jb,i.sL,A.ZJ,T.zf,at.D,Yt.h]]}),e})();var Et=o(3630),Dt=o(8762);let Bt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ez,d.Bz,s.WG,h.KJ,i.sL,P.PV,at.D,Et.X,Dt.c]]}),e})();var Ft=o(5453),Gt=o(767),Rt=o(2832);let Vt=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ez,s.WG,z.Jb,T.zf,z.Jb,T.zf,A.ZJ,P.PV,ot.q6,Gt.Q,Rt.W,Ft.N]]}),e})();var Wt=o(5109),jt=o(7008),$t=o(4889),Ht=o(4623),Kt=o(3416),Xt=o(1605),qt=o(1270),kt=o(3022),tn=o(5926),nn=o(5472);let en=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ez,d.Bz,O.UX,_.X0,L.j,N.U5,v.L,nn.r,jt.B,Xt.e,tn.J,Kt.g,qt.i,Ht.K,kt.e,$t.E,A.ZJ,w.vh,T.zf,d.Bz,Wt.s]]}),e})(),on=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ez,h.KJ,at.D,en]]}),e})();var an=o(2278);let rn=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ez,an.l]]}),e})(),cn=(()=>{class e{}return e.\u0275fac=function(a){return new(a||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.ez,d.Bz,Ut,Lt,Bt,Vt,on,rn]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/7559.f5b2e5993b711209.js b/server/public/7559.f5b2e5993b711209.js deleted file mode 100644 index 3fec2ea70..000000000 --- a/server/public/7559.f5b2e5993b711209.js +++ /dev/null @@ -1 +0,0 @@ -"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/7893.02d718d842625d7f.js b/server/public/7893.02d718d842625d7f.js new file mode 100644 index 000000000..efce2688f --- /dev/null +++ b/server/public/7893.02d718d842625d7f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7893],{3887:(L,S,o)=>{o.r(S),o.d(S,{GenesReviseModule:()=>Me});var d=o(9808),m=o(325),x=o(5630),h=o(1945),C=o(647),u=o(373),b=o(1059),M=o(4850),e=o(5e3),z=o(712),_=o(9350),N=o(8992),f=o(1894),O=o(8616),v=o(6949);function T(t,l){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function I(t,l){1&t&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function A(t,l){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,T,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,I,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=l.ngIf,r=e.MAs(14),c=e.oxw();e.xp6(1),e.Q6J("displayName",n.name),e.xp6(5),e.hij(" ",n.name," "),e.xp6(2),e.hij(" ",n.officialName," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,c.isSignedIn$))("ngIfElse",r)}}let E=(()=>{class t{constructor(n,r,c){this.gql=n,this.route=r,this.viewerService=c,this.routeSub=this.route.params.subscribe(g=>{let F=this.gql.watch({geneId:+g.geneId}).valueChanges;this.loading$=F.pipe((0,u.j)("loading"),(0,b.O)(!0)),this.gene$=F.pipe((0,u.j)("data","gene")),this.commentsTotal$=this.gene$.pipe((0,u.j)("comments","totalCount")),this.flagsTotal$=this.gene$.pipe((0,u.j)("flags","totalCount")),this.revisionsTotal$=this.gene$.pipe((0,u.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,M.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(z.TNk),e.Y36(m.gz),e.Y36(_.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["genes-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:gene"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,r){1&n&&(e.YNc(0,A,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,r.gene$))},directives:[d.O5,N.I,h.$O,h.u9,C.Ls,h.yG,h.u5,m.lC,f.SK,f.t3,O.u],pipes:[d.Ov,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}"]}),t})();var G=o(8144),P=o(6559),a=o(4182),s=o(4546),i=o(2359),p=o(8776),y=o(1825),B=o(7008),Z=o(4375),J=o(6042),U=o(8390),j=o(3773),R=o(5109),$=o(4623),Q=o(7462),Y=o(4889),w=o(7525),V=o(5472),W=o(7338),D=o(7484),K=o(5482),H=o(6462),X=o(9990),q=o(3022),ee=o(9911),te=o(6501),ne=o(7695);let oe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,m.Bz,v.WG,a.UX,p.X0,R.s,J.sL,D.vh,K.cD,s.U5,i.L,f.Jb,C.PV,H.m,w.j,q.e,y.A,V.r,B.B,Z.R,ee.G,$.K,U.N,j.g,te.r,X.M,Q.o,Y.E,W.z,R.s,ne.C]]}),t})(),ie=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,v.WG,D.vh,f.Jb,G.zf,P.H0,h.KJ,oe,x.D]]}),t})();var ae=o(8929),k=o(7625),se=o(6738),re=o(6123),le=o(9169),ce=o(822);function pe(t,l){1&t&&e.GkF(0)}function ge(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(c){return e.CHM(n),e.oxw(2).formModel=c}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function de(t,l){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const c=e.oxw();return c.submitRevision(c.formModel)}),e.YNc(1,pe,1,0,"ng-container",4),e.YNc(2,ge,1,4,"formly-form",5),e.qZA()}if(2&t){const n=e.oxw(),r=e.MAs(3);e.Q6J("formGroup",n.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",r),e.xp6(1),e.Q6J("ngIf",!n.success)}}function me(t,l){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function he(t,l){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function fe(t,l){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,he,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function ue(t,l){if(1&t&&(e.YNc(0,me,3,1,"ng-container",7),e.YNc(1,fe,4,1,"ng-container",7)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let ze=(()=>{class t{constructor(n,r,c){this.suggestRevisionGQL=n,this.networkErrorService=r,this.revisableFieldsGQL=c,this.destroy$=new ae.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.formGroup=new a.cw({}),this.formOptions={},this.suggestRevisionMutator=new re.U(r),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Gene Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"description",type:"cvc-textarea",templateOptions:{label:"Gene Description",helpText:'User-defined summary of the clinical relevance of this Gene. By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal)

Should include:

  • relevance to appropriate cancer(s)
  • treatment(s) related specifically to variants affecting this Gene

May include relevant mechanistic information such as:

  • pathway interactions
  • functional alterations caused by variants in this Gene (i.e., activating, loss-of-function, etc.)
  • normal functions key to its oncogenic properties.
  • ',placeholder:"Enter a description for this gene.",required:!1}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Gene Description Sources",addText:"Add a Source",helpText:"Add any Sources used as references for this Gene's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Gene Revision",submitSize:"large"}}]}]}ngOnInit(){console.log(this.geneId)}ngAfterViewInit(){this.revisableFieldsGQL.fetch({geneId:this.geneId},{fetchPolicy:"network-only"}).subscribe(({data:{gene:n}})=>{console.log("gene"),n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving gene."),console.error(n)},()=>{console.log("complete"),this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var r,c;return{fields:Object.assign(Object.assign({},n),{comment:null===(r=this.formModel)||void 0===r?void 0:r.fields.comment,organization:null===(c=this.formModel)||void 0===c?void 0:c.fields.organization})}}submitRevision(n){let r=this.toRevisionInput(n);if(r){let c=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:r});c.submitSuccess$.pipe((0,k.R)(this.destroy$)).subscribe(g=>{g&&(this.success=!0)}),c.submitError$.pipe((0,k.R)(this.destroy$)).subscribe(g=>{g&&(this.errorMessages=g,this.success=!1)}),c.isSubmitting$.pipe((0,k.R)(this.destroy$)).subscribe(g=>{this.loading=g})}}toRevisionInput(n){var r;if(n){const c=n.fields;return{id:c.id,comment:c.comment,organizationId:null===(r=c.organization)||void 0===r?void 0:r.id,fields:{description:(0,se.xt)(n.fields.description),sourceIds:n.fields.sources.map(g=>+g.id)}}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(z.D9L),e.Y36(le.Y),e.Y36(z.FOU))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-gene-revise-form"]],inputs:{geneId:"geneId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,r){1&n&&(e.TgZ(0,"nz-spin",0),e.YNc(1,de,3,3,"form",1),e.qZA(),e.YNc(2,ue,2,2,"ng-template",null,2,e.W1O)),2&n&&(e.Q6J("nzSpinning",r.loading),e.xp6(1),e.Q6J("ngIf",r.formModel))},directives:[w.W,d.O5,a._Y,a.JL,s.Lr,a.sg,d.tP,p.T7,f.SK,s.Nx,ce.V,i.r,m.yS],styles:["[_nghost-%COMP%]{display:block}"]}),t})();function ve(t,l){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-gene-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("geneId",n.geneId)}}function ye(t,l){1&t&&e._uU(0,"Loading Gene...")}const Se=[{path:"",component:E,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(r=>{this.geneId=+r.geneId})}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-genes-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingGene",""],[3,"geneId"]],template:function(n,r){if(1&n&&(e.YNc(0,ve,2,1,"ng-container",0),e.YNc(1,ye,1,0,"ng-template",null,1,e.W1O)),2&n){const c=e.MAs(2);e.Q6J("ngIf",r.geneId)("ngIfElse",c)}},directives:[d.O5,ze],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let xe=(()=>{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(Se),ie]]}),t})();var Ce=o(9386);let Me=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,xe,m.Bz,x.D,h.KJ,C.PV,v.WG,f.Jb,Ce.a]]}),t})()},6559:(L,S,o)=>{o.d(S,{H0:()=>P});var d=o(5e3),m=o(9808),x=o(226);let P=(()=>{class a{}return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=d.oAB({type:a}),a.\u0275inj=d.cJS({imports:[[x.vT,m.ez]]}),a})()}}]); \ No newline at end of file diff --git a/server/public/7893.09cc89d441456629.js b/server/public/7893.09cc89d441456629.js deleted file mode 100644 index 12f92fa79..000000000 --- a/server/public/7893.09cc89d441456629.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7893],{7695:(D,M,o)=>{o.d(M,{C:()=>a});var m=o(9808),f=o(6949),x=o(8776),u=o(7484),y=o(5482),v=o(1894),N=o(5109),I=o(6789),e=o(5e3),_=o(19),O=o(647),A=o(404);function C(i,p){1&i&&e._UZ(0,"div",9),2&i&&e.Q6J("innerHtml",p.ngIf,e.oJD)}function b(i,p){1&i&&(e.TgZ(0,"div",10),e._uU(1,"Help not available for this field."),e.qZA())}function S(i,p){if(1&i&&(e.TgZ(0,"nz-collapse-panel",6),e.YNc(1,C,1,1,"div",7),e.YNc(2,b,2,0,"ng-template",null,8,e.W1O),e.qZA()),2&i){const g=p.ngIf,z=e.MAs(3),T=e.oxw().$implicit,Z=e.MAs(3);e.Q6J("nzHeader",g)("nzActive",T.templateOptions.hasFocus)("nzExtra",Z),e.xp6(1),e.Q6J("ngIf",null==T.templateOptions?null:T.templateOptions.helpText)("ngIfElse",z)}}function k(i,p){if(1&i&&e._UZ(0,"formly-validation-message",14),2&i){const g=e.oxw(4).$implicit;e.Q6J("field",g)}}function E(i,p){if(1&i&&(e.ynx(0),e._UZ(1,"i",12),e.YNc(2,k,1,1,"ng-template",null,13,e.W1O),e.BQk()),2&i){const g=e.MAs(3);e.xp6(1),e.Q6J("nzTooltipTitle",g)}}function F(i,p){if(1&i&&(e.ynx(0),e.YNc(1,E,4,1,"ng-container",11),e.BQk()),2&i){const g=p.ngIf;e.xp6(1),e.Q6J("ngIf","INVALID"===g)}}function G(i,p){if(1&i&&(e.YNc(0,F,2,1,"ng-container",11),e.ALo(1,"ngrxPush")),2&i){const g=e.oxw().$implicit;e.Q6J("ngIf",e.lcZ(1,1,g.formControl.statusChanges))}}function R(i,p){if(1&i&&(e.ynx(0),e.YNc(1,S,4,5,"nz-collapse-panel",4),e.YNc(2,G,2,3,"ng-template",null,5,e.W1O),e.BQk()),2&i){const g=p.$implicit;e.xp6(1),e.Q6J("ngIf",null==g.templateOptions?null:g.templateOptions.label)}}let P=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(g){return new(g||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-form-info-card"]],inputs:{fieldGroup:"fieldGroup",affixTo:"affixTo"},decls:4,vars:4,consts:[[3,"nzOffsetTop","nzTarget"],["nzTitle","Form Assistant","nzSize","default",1,"form-helper-card"],[3,"nzBordered"],[4,"ngFor","ngForOf"],[3,"nzHeader","nzActive","nzExtra",4,"ngIf"],["fieldStatus",""],[3,"nzHeader","nzActive","nzExtra"],["class","help-text",3,"innerHtml",4,"ngIf","ngIfElse"],["noHelpText",""],[1,"help-text",3,"innerHtml"],[1,"help-text"],[4,"ngIf"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","#f5222d","nz-tooltip","","nzTooltipColor","red",3,"nzTooltipTitle"],["errorTooltip",""],[3,"field"]],template:function(g,z){1&g&&(e.TgZ(0,"nz-affix",0),e.TgZ(1,"nz-card",1),e.TgZ(2,"nz-collapse",2),e.YNc(3,R,4,1,"ng-container",3),e.qZA(),e.qZA(),e.qZA()),2&g&&(e.Q6J("nzOffsetTop",0)("nzTarget",z.affixTo),e.xp6(2),e.Q6J("nzBordered",!1),e.xp6(1),e.Q6J("ngForOf",z.fieldGroup))},directives:[_.$,u.bd,y.yH,m.sg,m.O5,y.Zv,O.Ls,A.SY,x.u_],pipes:[f.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}.help-text[_ngcontent-%COMP%]{padding:6px 8px;border:1px solid #EFEFEF;background:white;border-radius:6px}"]}),i})();const s={name:"form-info",component:(()=>{class i extends x.n2{}return i.\u0275fac=function(){let p;return function(z){return(p||(p=e.n5z(i)))(z||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-form-info-wrapper"]],features:[e.qOj],decls:9,vars:5,consts:[["nzGutter","16"],[3,"nzSpan"],["nzSize","default",3,"nzTitle"],["fieldComponent",""],["infoCardContainer",""],[3,"fieldGroup","affixTo"]],template:function(g,z){if(1&g&&(e.TgZ(0,"nz-row",0),e.TgZ(1,"nz-col",1),e.TgZ(2,"nz-card",2),e.GkF(3,null,3),e.qZA(),e.qZA(),e.TgZ(5,"nz-col",1),e.TgZ(6,"div",null,4),e._UZ(8,"cvc-form-info-card",5),e.qZA(),e.qZA(),e.qZA()),2&g){const T=e.MAs(7);e.xp6(1),e.Q6J("nzSpan",16),e.xp6(1),e.Q6J("nzTitle",z.to.label),e.xp6(3),e.Q6J("nzSpan",8),e.xp6(3),e.Q6J("fieldGroup",z.field.fieldGroup)("affixTo",T)}},directives:[v.SK,v.t3,u.bd,P],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),i})()};let a=(()=>{class i{}return i.\u0275fac=function(g){return new(g||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[m.ez,f.WG,x.X0.forChild({wrappers:[s]}),v.Jb,u.vh,y.cD,I._,N.s]]}),i})()},3887:(D,M,o)=>{o.r(M),o.d(M,{GenesReviseModule:()=>Se});var m=o(9808),f=o(325),x=o(5630),u=o(1945),y=o(647),v=o(373),N=o(1059),I=o(4850),e=o(5e3),_=o(712),O=o(9350),A=o(8992),C=o(1894),b=o(8616),S=o(6949);function k(t,c){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function E(t,c){1&t&&(e.TgZ(0,"nz-row",8),e.TgZ(1,"div",9),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function F(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.TgZ(2,"nz-page-header",2),e.TgZ(3,"nz-page-header-title",3),e._uU(4," REVISE "),e._UZ(5,"i",4),e._uU(6),e.qZA(),e.TgZ(7,"nz-page-header-subtitle"),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",5),e.YNc(11,k,2,0,"div",6),e.ALo(12,"ngrxPush"),e.YNc(13,E,3,0,"ng-template",null,7,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=c.ngIf,l=e.MAs(14),d=e.oxw();e.xp6(1),e.Q6J("displayName",n.name),e.xp6(5),e.hij(" ",n.name," "),e.xp6(2),e.hij(" ",n.officialName," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,d.isSignedIn$))("ngIfElse",l)}}let G=(()=>{class t{constructor(n,l,d){this.gql=n,this.route=l,this.viewerService=d,this.routeSub=this.route.params.subscribe(h=>{let Q=this.gql.watch({geneId:+h.geneId}).valueChanges;this.loading$=Q.pipe((0,v.j)("loading"),(0,N.O)(!0)),this.gene$=Q.pipe((0,v.j)("data","gene")),this.commentsTotal$=this.gene$.pipe((0,v.j)("comments","totalCount")),this.flagsTotal$=this.gene$.pipe((0,v.j)("flags","totalCount")),this.revisionsTotal$=this.gene$.pipe((0,v.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,I.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(_.TNk),e.Y36(f.gz),e.Y36(O.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["genes-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:gene"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,l){1&n&&(e.YNc(0,F,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,l.gene$))},directives:[m.O5,A.I,u.$O,u.u9,y.Ls,u.yG,u.u5,f.lC,C.SK,C.t3,b.u],pipes:[m.Ov,S.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var R=o(8144),P=o(6559),r=o(4182),s=o(4546),a=o(2359),i=o(8776),p=o(1825),g=o(7008),z=o(4375),T=o(6042),Z=o(8390),U=o(3773),J=o(5109),j=o(4623),Y=o(7462),$=o(4889),L=o(7525),W=o(5472),V=o(7338),B=o(7484),H=o(5482),K=o(6462),X=o(9990),q=o(7075),ee=o(9911),te=o(6501),ne=o(7695);let oe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,f.Bz,S.WG,r.UX,i.X0,J.s,T.sL,B.vh,H.cD,s.U5,a.L,C.Jb,y.PV,K.m,L.j,q.l,p.A,W.r,g.B,z.R,ee.G,j.K,Z.N,U.g,te.r,X.M,Y.o,$.E,V.z,J.s,ne.C]]}),t})(),ie=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,S.WG,B.vh,C.Jb,R.zf,P.H0,u.KJ,oe,x.D]]}),t})();var ae=o(8929),w=o(7625),re=o(6738),se=o(6123),le=o(9169),ce=o(822);function pe(t,c){1&t&&e.GkF(0)}function ge(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(d){return e.CHM(n),e.oxw(2).formModel=d}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function de(t,c){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const d=e.oxw();return d.submitRevision(d.formModel)}),e.YNc(1,pe,1,0,"ng-container",4),e.YNc(2,ge,1,4,"formly-form",5),e.qZA()}if(2&t){const n=e.oxw(),l=e.MAs(3);e.Q6J("formGroup",n.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",l),e.xp6(1),e.Q6J("ngIf",!n.success)}}function me(t,c){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function fe(t,c){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function he(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,fe,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function ue(t,c){if(1&t&&(e.YNc(0,me,3,1,"ng-container",7),e.YNc(1,he,4,1,"ng-container",7)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let ze=(()=>{class t{constructor(n,l,d){this.suggestRevisionGQL=n,this.networkErrorService=l,this.revisableFieldsGQL=d,this.destroy$=new ae.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.formGroup=new r.cw({}),this.formOptions={},this.suggestRevisionMutator=new se.U(l),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Gene Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"description",type:"cvc-textarea",templateOptions:{label:"Gene Description",helpText:'User-defined summary of the clinical relevance of this Gene. By submitting content to CIViC you agree to release it to the public domain as described by the Creative Commons Public Domain Dedication (CC0 1.0 Universal)

    Should include:

    • relevance to appropriate cancer(s)
    • treatment(s) related specifically to variants affecting this Gene

    May include relevant mechanistic information such as:

    • pathway interactions
    • functional alterations caused by variants in this Gene (i.e., activating, loss-of-function, etc.)
    • normal functions key to its oncogenic properties.
    • ',placeholder:"Enter a description for this gene.",required:!1}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Gene Description Sources",addText:"Add a Source",helpText:"Add any Sources used as references for this Gene's Description above."},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Gene Revision",submitSize:"large"}}]}]}ngOnInit(){console.log(this.geneId)}ngAfterViewInit(){this.revisableFieldsGQL.fetch({geneId:this.geneId},{fetchPolicy:"network-only"}).subscribe(({data:{gene:n}})=>{console.log("gene"),n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving gene."),console.error(n)},()=>{console.log("complete"),this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var l,d;return{fields:Object.assign(Object.assign({},n),{comment:null===(l=this.formModel)||void 0===l?void 0:l.fields.comment,organization:null===(d=this.formModel)||void 0===d?void 0:d.fields.organization})}}submitRevision(n){let l=this.toRevisionInput(n);if(l){let d=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:l});d.submitSuccess$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{h&&(this.success=!0)}),d.submitError$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{h&&(this.errorMessages=h,this.success=!1)}),d.isSubmitting$.pipe((0,w.R)(this.destroy$)).subscribe(h=>{this.loading=h})}}toRevisionInput(n){var l;if(n){const d=n.fields;return{id:d.id,comment:d.comment,organizationId:null===(l=d.organization)||void 0===l?void 0:l.id,fields:{description:(0,re.xt)(n.fields.description),sourceIds:n.fields.sources.map(h=>+h.id)}}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(_.D9L),e.Y36(le.Y),e.Y36(_.FOU))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-gene-revise-form"]],inputs:{geneId:"geneId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,l){1&n&&(e.TgZ(0,"nz-spin",0),e.YNc(1,de,3,3,"form",1),e.qZA(),e.YNc(2,ue,2,2,"ng-template",null,2,e.W1O)),2&n&&(e.Q6J("nzSpinning",l.loading),e.xp6(1),e.Q6J("ngIf",l.formModel))},directives:[L.W,m.O5,r._Y,r.JL,s.Lr,r.sg,m.tP,i.T7,C.SK,s.Nx,ce.V,a.r,f.yS],styles:["[_nghost-%COMP%]{display:block}"]}),t})();function ve(t,c){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-gene-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("geneId",n.geneId)}}function Ce(t,c){1&t&&e._uU(0,"Loading Gene...")}const xe=[{path:"",component:G,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(l=>{this.geneId=+l.geneId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-genes-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingGene",""],[3,"geneId"]],template:function(n,l){if(1&n&&(e.YNc(0,ve,2,1,"ng-container",0),e.YNc(1,Ce,1,0,"ng-template",null,1,e.W1O)),2&n){const d=e.MAs(2);e.Q6J("ngIf",l.geneId)("ngIfElse",d)}},directives:[m.O5,ze],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let ye=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[f.Bz.forChild(xe),ie]]}),t})();var _e=o(9386);let Se=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[m.ez,ye,f.Bz,x.D,u.KJ,y.PV,S.WG,C.Jb,_e.a]]}),t})()},6559:(D,M,o)=>{o.d(M,{H0:()=>P});var m=o(5e3),f=o(9808),x=o(226);let P=(()=>{class r{}return r.\u0275fac=function(a){return new(a||r)},r.\u0275mod=m.oAB({type:r}),r.\u0275inj=m.cJS({imports:[[x.vT,f.ez]]}),r})()}}]); \ No newline at end of file diff --git a/server/public/79.3d646ddc99c4c619.js b/server/public/79.3d646ddc99c4c619.js deleted file mode 100644 index 43fdb4d85..000000000 --- a/server/public/79.3d646ddc99c4c619.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[79],{8369:(S,y,t)=>{t.d(y,{W:()=>F});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 L=(()=>{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})(),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,n.X,_.$6,M.PV,L,d.s]]}),m})()},209:(S,y,t)=>{t.d(y,{i:()=>F});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 L=(()=>{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})(),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,n.X,_.$6,M.PV,L,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 L(l,x){}function F(l,x){if(1&l&&(a.ynx(0),a.TgZ(1,"a",5),a.YNc(2,L,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,F,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 L(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 F(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,L,2,1,"nz-descriptions-item",6),o.YNc(8,F,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),D=o.MAs(5);o.xp6(1),o.Q6J("nzTitle",O)("nzExtra",D),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(D){return o.CHM(c),o.oxw(2).itemClosed(D)}),o.YNc(1,K,0,0,"ng-template",6),o.qZA()}if(2&i){o.oxw();const c=o.MAs(2),O=o.oxw(),D=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",O.onCloseClicked?0:.5)("nzPopoverContent",c)("nzMode",O.onCloseClicked?"closeable":"default"),o.xp6(1),o.Q6J("ngTemplateOutlet",D)}}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(D){return o.CHM(c),o.oxw().itemClosed(D)}),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 D=o.MAs(6);o.Q6J("ngIf",O.linked)("ngIfElse",D)}},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:()=>Pn});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),L=t(2986),F=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)}}const l=function(){return["descend","ascend",null]};function x(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,20,s.variantGroups$))("nzLoading",n.lcZ(4,22,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)("nzSortDirections",n.DdM(24,l)),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(25,l)),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 p(e,g){}function E(e,g){if(1&e&&(n.ynx(0),n.YNc(1,p,0,0,"ng-template",25),n.BQk()),2&e){const r=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",r.cvcTitleTemplate)}}function w(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 q(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 k(e,g){if(1&e&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,q,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,L.q)(1)).subscribe(r=>this.totalCount=r),this.filteredCount$.subscribe(r=>{rr&&(this.visibleCount=r))}),this.debouncedQuery.pipe((0,F.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","nzSortDirections"],["nz-icon","","nzType","civic:variant"],["nzWidth","10%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["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,x,29,26,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,z,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,c,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 D(e,g){1&e&&(n.TgZ(0,"button",18),n._UZ(1,"i",19),n._uU(2," Submit New Variant Group "),n.qZA())}function nn(e,g){if(1&e&&(n.ynx(0),n.YNc(1,D,3,0,"button",17),n.BQk()),2&e){const r=g.ngrxLet;n.xp6(1),n.Q6J("ngIf",r.signedIn)}}function on(e,g){if(1&e&&n.YNc(0,nn,2,1,"ng-container",16),2&e){const r=n.oxw();n.Q6J("ngrxLet",r.viewer$)}}function an(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 en(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 rn=[{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,on,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,an,3,0,"a",10),n.YNc(16,en,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,O],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 ln=(()=>{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(rn)],o.Bz]}),e})();var cn=t(4182),pn=t(4546),sn=t(1047),gn=t(8054),tn=t(4125),dn=t(9444),vn=t(3309),un=t(4867),mn=t(3580),fn=t(8018),Cn=t(8369),zn=t(209),hn=t(897),Tn=t(7946),_n=t(7677);let xn=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[a.ez,cn.u5,f.WG,h.sL,V.HQ,pn.U5,sn.o7,v.PV,d.ZJ,Q.cg,gn.LV,v.PV,m.vh,d.ZJ,tn.k,dn.s,vn.U,un.Q,mn.Q,fn.e,Cn.W,zn.i,hn.$,Tn.x,tn.k,_n.G]]}),e})();var Mn=t(5630);let 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,o.Bz,f.WG,h.sL,P.Jb,T.KJ,v.PV,d.ZJ,u.zf,xn,Mn.D]]}),e})(),Pn=(()=>{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,Zn]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/8369.1028ace99d0611b6.js b/server/public/8369.1028ace99d0611b6.js new file mode 100644 index 000000000..2d81564c1 --- /dev/null +++ b/server/public/8369.1028ace99d0611b6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8369],{3580:(b,C,e)=>{e.d(C,{Q:()=>P});var p=e(9808),t=e(325),m=e(8481),g=e(3610),n=e(647),v=e(7484),x=e(3098),h=e(3630),y=e(6949),_=e(3618),T=e(9444),f=e(5e3);let M=(()=>{class d{}return d.\u0275fac=function(z){return new(z||d)},d.\u0275mod=f.oAB({type:d}),d.\u0275inj=f.cJS({imports:[[p.ez,y.WG,v.vh,x.q6,n.PV,_.ZJ,T.s,h.X]]}),d})(),P=(()=>{class d{}return d.\u0275fac=function(z){return new(z||d)},d.\u0275mod=f.oAB({type:d}),d.\u0275inj=f.cJS({imports:[[p.ez,t.Bz,m.X,g.$6,n.PV,T.s,M]]}),d})()},8018:(b,C,e)=>{e.d(C,{e:()=>d});var p=e(9808),t=e(325),m=e(8481),g=e(3610),n=e(647),v=e(7484),x=e(3098),h=e(6949),y=e(3630),_=e(3618),T=e(9444),f=e(404),M=e(5e3);let P=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=M.oAB({type:l}),l.\u0275inj=M.cJS({imports:[[p.ez,t.Bz,h.WG,v.vh,x.q6,n.PV,_.ZJ,m.X,f.cg,y.X,T.s]]}),l})(),d=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=M.oAB({type:l}),l.\u0275inj=M.cJS({imports:[[p.ez,t.Bz,m.X,g.$6,n.PV,T.s,P]]}),l})()},9476:(b,C,e)=>{e.d(C,{L:()=>P});var p=e(9808),t=e(325),m=e(8481),g=e(647),n=e(1894),v=e(3630),x=e(3098),h=e(7484),y=e(6949),_=e(5473),T=e(5e3);let f=(()=>{class d{}return d.\u0275fac=function(z){return new(z||d)},d.\u0275mod=T.oAB({type:d}),d.\u0275inj=T.cJS({imports:[[p.ez,y.WG,h.vh,n.Jb,x.q6,v.X,_.H]]}),d})();var M=e(3610);let P=(()=>{class d{}return d.\u0275fac=function(z){return new(z||d)},d.\u0275mod=T.oAB({type:d}),d.\u0275inj=T.cJS({imports:[[p.ez,t.Bz,m.X,g.PV,M.$6,f]]}),d})()},6715:(b,C,e)=>{e.d(C,{$:()=>m});var p=e(5e3);const t=["*"];let m=(()=>{class g{constructor(){}ngOnInit(){}}return g.\u0275fac=function(v){return new(v||g)},g.\u0275cmp=p.Xpm({type:g,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(v,x){2&v&&p.ekj("xs","xs"===x.size||!x.size)("sm","sm"===x.size)},inputs:{size:"size"},ngContentSelectors:t,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(v,x){1&v&&(p.F$t(),p.TgZ(0,"div",0),p.Hsn(1),p.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),g})()},897:(b,C,e)=>{e.d(C,{$:()=>m});var p=e(9808),t=e(5e3);let m=(()=>{class g{}return g.\u0275fac=function(v){return new(v||g)},g.\u0275mod=t.oAB({type:g}),g.\u0275inj=t.cJS({imports:[[p.ez]]}),g})()},7946:(b,C,e)=>{e.d(C,{x:()=>y});var p=e(9808),t=e(897),m=e(8481),g=e(3610),n=e(8018),v=e(3580),x=e(9476),h=e(5e3);let y=(()=>{class _{}return _.\u0275fac=function(f){return new(f||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[[p.ez,m.X,g.$6,t.$,n.e,v.Q,x.L]]}),_})()},8664:(b,C,e)=>{e.d(C,{I:()=>k});var p=e(6654),t=e(5e3),m=e(9808),g=e(325),n=e(8481),v=e(3610),x=e(4850),h=e(712),y=e(7484),_=e(647),T=e(3193),f=e(3098),M=e(6550),P=e(1894),d=e(8144),l=e(6949);function z(i,u){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const s=t.oxw().ngIf;t.xp6(1),t.hij(" ",s.name," ")}}function O(i,u){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const s=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",s.gene)}}function U(i,u){if(1&i&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&i){const s=u.$implicit;t.xp6(1),t.Oqu(s)}}function S(i,u){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,U,2,1,"nz-tag",16),t.qZA()),2&i){const s=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",s.variantAliases)}}function Q(i,u){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 s=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",s.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",s.alleleRegistryId," ")}}function L(i,u){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 s=t.oxw().ngIf;t.MGl("routerLink","/variants/",s.id,"/flags"),t.xp6(3),t.hij(" Flags (",s.flags.totalCount,") ")}}function F(i,u){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 s=t.oxw().ngIf;t.MGl("routerLink","/variants/",s.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",s.revisions.totalCount,") ")}}function N(i,u){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 s=t.oxw().ngIf;t.MGl("routerLink","/variants/",s.id,"/comments"),t.xp6(3),t.hij(" Comments (",s.comments.totalCount,") ")}}function Y(i,u){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,O,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,S,2,1,"nz-descriptions-item",6),t.YNc(8,Q,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,L,4,2,"a",12),t.YNc(15,F,4,2,"a",12),t.YNc(16,N,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const s=u.ngIf,Z=t.MAs(3),A=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",Z)("nzExtra",A),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",s.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",s.alleleRegistryId),t.xp6(2),t.hij(" ",s.evidenceItems.totalCount," ")}}let j=(()=>{class i{constructor(s){this.gql=s}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:s})=>s.variant))}}return i.\u0275fac=function(s){return new(s||i)(t.Y36(h.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(s,Z){1&s&&(t.TgZ(0,"div",0),t.YNc(1,Y,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,Z.variant$)))},directives:[m.O5,y.bd,_.Ls,T.H,f.R7,f.uj,m.sg,n.j,M.l,P.SK,P.t3,d.NU,d.$1,g.yS],pipes:[l.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 E(i,u){}function I(i,u){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,E,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const s=t.oxw(),Z=t.MAs(2);t.xp6(1),t.Q6J("routerLink",s.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",Z)}}function V(i,u){}function $(i,u){if(1&i){const s=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(A){return t.CHM(s),t.oxw(2).itemClosed(A)}),t.YNc(1,V,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const s=t.MAs(2),Z=t.oxw(),A=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",Z.onCloseClicked?0:.5)("nzPopoverContent",s)("nzMode",Z.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",A)}}function W(i,u){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const s=t.oxw(3);t.Q6J("variantId",s.variant.id)}}function R(i,u){if(1&i&&t.YNc(0,W,1,1,"cvc-variant-popover",10),2&i){const s=t.oxw(2);t.Q6J("ngIf",s.enablePopover)}}function K(i,u){if(1&i&&(t.YNc(0,$,2,4,"nz-tag",7),t.YNc(1,R,1,1,"ng-template",null,8,t.W1O)),2&i){const s=t.oxw(),Z=t.MAs(4);t.Q6J("ngIf",s.enablePopover)("ngIfElse",Z)}}function X(i,u){}function H(i,u){if(1&i){const s=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(A){return t.CHM(s),t.oxw().itemClosed(A)}),t.YNc(1,X,0,0,"ng-template",6),t.qZA()}if(2&i){const s=t.oxw(),Z=t.MAs(8);t.Q6J("nzMode",s.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",Z)}}function w(i,u){}function G(i,u){if(1&i&&t.YNc(0,w,0,0,"ng-template",6),2&i){t.oxw();const s=t.MAs(2);t.Q6J("ngTemplateOutlet",s)}}function q(i,u){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const s=t.oxw();t.xp6(1),t.hij(" ",s.variant.name,"\n")}}let k=(()=>{class i extends p.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(s){return new(s||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(s,Z){if(1&s&&(t.YNc(0,I,3,2,"ng-container",0),t.YNc(1,K,3,2,"ng-template",null,1,t.W1O),t.YNc(3,H,2,2,"ng-template",null,2,t.W1O),t.YNc(5,G,1,1,"ng-template",null,3,t.W1O),t.YNc(7,q,2,1,"ng-template",null,4,t.W1O)),2&s){const A=t.MAs(6);t.Q6J("ngIf",Z.linked)("ngIfElse",A)}},directives:[m.O5,g.yS,m.tP,n.j,v.lU,j,_.Ls],styles:[""]}),i})()},4867:(b,C,e)=>{e.d(C,{Q:()=>d});var p=e(9808),t=e(325),m=e(8481),g=e(647),n=e(3610),v=e(6949),x=e(7484),h=e(1894),y=e(3098),_=e(8144),T=e(3309),f=e(3630),M=e(5e3);let P=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=M.oAB({type:l}),l.\u0275inj=M.cJS({imports:[[p.ez,t.Bz,v.WG,x.vh,h.Jb,y.q6,m.X,g.PV,_.zf,T.U,f.X]]}),l})(),d=(()=>{class l{}return l.\u0275fac=function(O){return new(O||l)},l.\u0275mod=M.oAB({type:l}),l.\u0275inj=M.cJS({imports:[[p.ez,t.Bz,m.X,n.$6,g.PV,P]]}),l})()},3154:(b,C,e)=>{e.d(C,{_:()=>t});var p=e(712);function t(m){var g;switch(m.value){case"ascend":g=p.SrV.Asc;break;case"descend":g=p.SrV.Desc;break;default:return}return{column:m.key,direction:g}}},233:(b,C,e)=>{e.r(C),e.d(C,{DiseasesModule:()=>Zn});var p=e(9808),t=e(325),m=e(373),g=e(1059),n=e(5e3),v=e(712),x=e(8992),h=e(1945),y=e(647),_=e(6550),T=e(3098),f=e(6949);function M(o,r){if(1&o&&(n.TgZ(0,"nz-page-header-extra"),n.TgZ(1,"cvc-link-tag",7),n._uU(2),n.qZA(),n.qZA()),2&o){const a=n.oxw().ngIf;n.xp6(1),n.Q6J("href",a.diseaseUrl),n.xp6(1),n.hij(" ","DOID:"+a.doid," ")}}function P(o,r){if(1&o&&(n.TgZ(0,"nz-descriptions-item",8),n._uU(1),n.qZA()),2&o){const a=n.oxw().ngIf;n.xp6(1),n.hij(" ",a.diseaseAliases.join(", ")," ")}}function d(o,r){if(1&o&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2),n.TgZ(3,"nz-page-header-title"),n._UZ(4,"i",3),n._uU(5),n.qZA(),n.YNc(6,M,3,2,"nz-page-header-extra",0),n.TgZ(7,"nz-page-header-content"),n.TgZ(8,"div",4),n.TgZ(9,"nz-descriptions",5),n.YNc(10,P,2,1,"nz-descriptions-item",6),n.qZA(),n._UZ(11,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&o){const a=r.ngIf;n.xp6(1),n.Q6J("displayName",a.name),n.xp6(4),n.hij(" ",a.name," "),n.xp6(1),n.Q6J("ngIf",a.doid),n.xp6(3),n.Q6J("nzColumn",1),n.xp6(1),n.Q6J("ngIf",a.diseaseAliases.length>0)}}let l=(()=>{class o{constructor(a,c){this.route=a,this.gql=c,this.routeSub=this.route.params.subscribe(J=>{this.diseaseId=+J.diseaseId,this.queryRef=this.gql.watch({diseaseId:this.diseaseId});let D=this.queryRef.valueChanges;this.loading$=D.pipe((0,m.j)("loading"),(0,g.O)(!0)),this.disease$=D.pipe((0,m.j)("data","disease"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(t.gz),n.Y36(v.wg3))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-diseases-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","civic:disease"],[1,"content"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["tooltip","View on disease-ontology.org",3,"href"],["nzTitle","Aliases","nzSpan","2"]],template:function(a,c){1&a&&(n.YNc(0,d,12,5,"ng-container",0),n.ALo(1,"ngrxPush")),2&a&&n.Q6J("ngIf",n.lcZ(1,1,c.disease$))},directives:[p.O5,x.I,h.$O,h.u9,y.Ls,h.Jp,_.l,h.u5,T.R7,T.uj,t.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}"]}),o})();var z=e(1894),O=e(2683),U=e(3618),S=e(8144),Q=e(6042),L=e(3154),F=e(8929),N=e(4850),Y=e(2986),j=e(13),E=e(7484),I=e(1132),V=e(404),$=e(2166),W=e(4022),R=e(2643);function K(o,r){if(1&o&&(n.TgZ(0,"cvc-link-tag",24),n._uU(1),n.qZA()),2&o){const a=n.oxw().$implicit;n.Q6J("href",a.diseaseUrl),n.xp6(1),n.hij(" ","DOID:"+a.doid," ")}}function X(o,r){1&o&&n._uU(0," -- ")}function H(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const a=r.$implicit,c=r.last;n.xp6(1),n.AsE(" ",a,"",c?"":", "," ")}}function w(o,r){if(1&o&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-disease-tag",20),n.qZA(),n.TgZ(3,"td"),n.YNc(4,K,2,2,"cvc-link-tag",21),n.YNc(5,X,1,0,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(7,"td"),n.TgZ(8,"p",23),n.YNc(9,H,2,2,"span",17),n.qZA(),n.qZA(),n.TgZ(10,"td"),n._uU(11),n.qZA(),n.TgZ(12,"td"),n._uU(13),n.qZA(),n.TgZ(14,"td"),n._uU(15),n.qZA(),n.TgZ(16,"td"),n._uU(17),n.qZA(),n.qZA()),2&o){const a=r.$implicit,c=n.MAs(6);n.xp6(2),n.Q6J("disease",a),n.xp6(2),n.Q6J("ngIf",a.doid)("ngIfElse",c),n.xp6(5),n.Q6J("ngForOf",a.geneNames),n.xp6(2),n.hij(" ",a.geneCount," "),n.xp6(2),n.hij(" ",a.variantCount," "),n.xp6(2),n.hij(" ",a.evidenceItemCount," "),n.xp6(2),n.hij(" ",a.assertionCount," ")}}function G(o,r){if(1&o){const a=n.EpF();n.TgZ(0,"button",28),n.NdJ("click",function(){n.CHM(a);const J=n.oxw(2).ngrxLet;return n.oxw().loadMore(J.endCursor)}),n._uU(1),n.qZA()}if(2&o){const a=n.oxw(3);n.xp6(1),n.hij("Load ",a.initialPageSize," More")}}function q(o,r){if(1&o&&(n.TgZ(0,"tr"),n.TgZ(1,"td",26),n.YNc(2,G,2,1,"button",27),n.qZA(),n.qZA()),2&o){const a=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",a.hasNextPage)}}function k(o,r){if(1&o&&(n.ynx(0),n.YNc(1,q,3,1,"tr",25),n.BQk()),2&o){const a=r.ngrxLet;n.xp6(1),n.Q6J("ngIf",a.hasNextPage)}}function i(o,r){}function u(o,r){if(1&o&&(n.ynx(0),n.YNc(1,i,0,0,"ng-template",32),n.BQk()),2&o){const a=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function s(o,r){if(1&o&&(n.ynx(0),n._uU(1),n.BQk()),2&o){const a=n.oxw(2);n.xp6(1),n.hij(" ",a.cvcTitle," ")}}function Z(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const a=n.oxw().ngIf;n.xp6(1),n.hij(" of ",a," filtered")}}function A(o,r){if(1&o&&(n.TgZ(0,"span",33),n._uU(1),n.YNc(2,Z,2,1,"span",25),n._uU(3,") "),n.qZA()),2&o){const a=r.ngIf,c=n.oxw(2);n.xp6(1),n.AsE(" (",c.totalCount," total, showing ",c.visibleCount,""),n.xp6(1),n.Q6J("ngIf",c.totalCount&&a{class o{constructor(a){this.gql=a,this.debouncedQuery=new F.xQ,this.initialPageSize=25,this.sortColumns=v.R8w,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.data$=this.queryRef.valueChanges.pipe((0,N.U)(a=>({data:a.data,loading:a.loading,networkStatus:a.networkStatus}))),this.isLoading$=this.data$.pipe((0,m.j)("loading"),(0,g.O)(!0)),this.diseases$=this.data$.pipe((0,m.j)("data","browseDiseases","edges"),(0,N.U)(a=>a.map(c=>c.node))),this.pageInfo$=this.data$.pipe((0,m.j)("data","browseDiseases","pageInfo")),this.filteredCount$=this.data$.pipe((0,m.j)("data","browseDiseases","filteredCount")),this.data$.pipe((0,m.j)("data","browseDiseases","totalCount")).pipe((0,Y.q)(1)).subscribe(a=>this.totalCount=a),this.filteredCount$.subscribe(a=>{aa&&(this.visibleCount=a))}),this.debouncedQuery.pipe((0,j.b)(500)).subscribe(a=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}refresh(){var a;this.loadedPages=1,null===(a=this.queryRef)||void 0===a||a.refetch({name:this.nameInput,geneNames:this.geneNameInput,doid:this.doidInput})}onSortChanged(a){var c;this.loadedPages=1,null===(c=this.queryRef)||void 0===c||c.refetch({sortBy:(0,L._)(a)})}onModelChanged(){this.debouncedQuery.next()}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(a){var c;null===(c=this.queryRef)||void 0===c||c.fetchMore({variables:{first:this.initialPageSize,after:a}}),this.loadedPages+=1}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(v.Tq1))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-diseases-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:37,vars:37,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["diseasesTable",""],[3,"nzSortOrderChange"],["nzWidth","20%",3,"nzColumnKey","nzSortFn"],["nzWidth","30%"],["nzWidth","8%","nz-tooltip","","nzTooltipTitle","Gene Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:gene"],["nzWidth","8%","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:variant"],["nzWidth","8%","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["nzWidth","8%","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:assertion"],["placeholderText","Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","DOID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Gene Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"disease"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["noDoid",""],["nz-typography",""],["tooltip","View on disease-ontology.org",3,"href"],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:disease"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(a,c){if(1&a&&(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(D){return c.onSortChanged(D)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",4),n._uU(10," DOID "),n.qZA(),n.TgZ(11,"th",5),n._uU(12," Genes "),n.qZA(),n.TgZ(13,"th",6),n._UZ(14,"i",7),n.qZA(),n.TgZ(15,"th",8),n._UZ(16,"i",9),n.qZA(),n.TgZ(17,"th",10),n._UZ(18,"i",11),n.qZA(),n.TgZ(19,"th",12),n._UZ(20,"i",13),n.qZA(),n.qZA(),n.TgZ(21,"tr"),n.TgZ(22,"th"),n.TgZ(23,"cvc-clearable-input-filter",14),n.NdJ("inputModelChange",function(D){return c.nameInput=D}),n.qZA(),n.qZA(),n.TgZ(24,"th"),n.TgZ(25,"cvc-clearable-input-filter",15),n.NdJ("inputModelChange",function(D){return c.doidInput=D}),n.qZA(),n.qZA(),n.TgZ(26,"th"),n.TgZ(27,"cvc-clearable-input-filter",16),n.NdJ("inputModelChange",function(D){return c.geneNameInput=D}),n.qZA(),n.qZA(),n._UZ(28,"th"),n._UZ(29,"th"),n._UZ(30,"th"),n._UZ(31,"th"),n.qZA(),n.qZA(),n.TgZ(32,"tbody"),n.YNc(33,w,18,8,"tr",17),n.YNc(34,k,2,1,"ng-container",18),n.qZA(),n.qZA(),n.qZA(),n.YNc(35,on,7,6,"ng-template",null,19,n.W1O)),2&a){const J=n.MAs(2),D=n.MAs(36);n.Q6J("nzTitle",D),n.xp6(1),n.Q6J("nzData",n.lcZ(3,29,c.diseases$))("nzLoading",n.lcZ(4,31,c.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",c.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",c.sortColumns.Doid)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",c.sortColumns.GeneCount)("nzSortFn",!0)("nzSortDirections",n.DdM(33,B)),n.xp6(2),n.Q6J("nzColumnKey",c.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",n.DdM(34,B)),n.xp6(2),n.Q6J("nzColumnKey",c.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(35,B)),n.xp6(2),n.Q6J("nzColumnKey",c.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",n.DdM(36,B)),n.xp6(4),n.Q6J("inputModel",c.nameInput)("onInputChanged",c.textInputCallback),n.xp6(2),n.Q6J("inputModel",c.doidInput)("onInputChanged",c.textInputCallback),n.xp6(2),n.Q6J("inputModel",c.geneNameInput)("onInputChanged",c.textInputCallback),n.xp6(6),n.Q6J("ngForOf",J.data),n.xp6(1),n.Q6J("ngrxLet",c.pageInfo$)}},directives:[E.bd,I.N8,I.Om,I.$Z,I.Uo,I._C,I.qD,V.SY,y.Ls,O.w,$.p,I.p0,p.sg,W.n,p.O5,_.l,U.ZU,f.eJ,Q.ix,R.dQ,p.tP],pipes:[f.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),o})();function sn(o,r){1&o&&(n.TgZ(0,"a",14),n._UZ(1,"i",15),n._uU(2," View Disease Attribute Docs "),n.qZA())}function rn(o,r){1&o&&(n.TgZ(0,"a",16),n._UZ(1,"i",15),n._uU(2," View Disease Curation Docs "),n.qZA())}let cn=(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["diseases-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:disease"],["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/disease.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html#curating-diseases","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Diseases"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/disease.html#curating-diseases","target","_blank","nzSize","small","nzBlock",""]],template:function(a,c){1&a&&(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,"Diseases"),n.qZA(),n.TgZ(9,"p",5),n._uU(10," All CIViC Evidence Items are associated with a Disease included in the Disease Ontology database. "),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,sn,3,0,"a",8),n.YNc(14,rn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n.TgZ(17,"div",12),n._UZ(18,"cvc-diseases-table",13),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&a&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[x.I,h.$O,h.u5,z.SK,z.t3,y.Ls,O.w,U.ZU,S.NU,S.$1,Q.ix,an],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})();var ln=e(3756),pn=e(8965);function dn(o,r){if(1&o&&n._UZ(0,"cvc-assertions-table",4),2&o){const a=n.oxw(2);n.Q6J("diseaseId",a.diseaseId)}}function gn(o,r){if(1&o&&n._UZ(0,"cvc-evidence-table",5),2&o){const a=n.oxw(2);n.Q6J("diseaseId",a.diseaseId)}}function mn(o,r){1&o&&(n.TgZ(0,"nz-space",1),n.YNc(1,dn,1,1,"cvc-assertions-table",2),n.YNc(2,gn,1,1,"cvc-evidence-table",3),n.qZA())}const un=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(a){return new(a||o)},o.\u0275cmp=n.Xpm({type:o,selectors:[["app-diseases"]],decls:1,vars:0,template:function(a,c){1&a&&n._UZ(0,"router-outlet")},directives:[t.lC],styles:[""]}),o})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:cn,data:{breadcrumb:"Home"}},{path:":diseaseId",component:l,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class o{constructor(a){this.route=a,this.routeSub=this.route.params.subscribe(c=>{this.diseaseId=+c.diseaseId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return o.\u0275fac=function(a){return new(a||o)(n.Y36(t.gz))},o.\u0275cmp=n.Xpm({type:o,selectors:[["cvc-diseases-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Disease Assertions",3,"diseaseId",4,"nzSpaceItem"],["cvcTitle","Disease Evidence",3,"diseaseId",4,"nzSpaceItem"],["cvcTitle","Disease Assertions",3,"diseaseId"],["cvcTitle","Disease Evidence",3,"diseaseId"]],template:function(a,c){1&a&&n.YNc(0,mn,3,0,"nz-space",0),2&a&&n.Q6J("ngIf",c.diseaseId)},directives:[p.O5,S.NU,S.$1,ln.x,pn.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})(),data:{breadcrumb:"Summary"}}]}]}];let vn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[t.Bz.forChild(un)],t.Bz]}),o})();var tn=e(5630),en=e(3630);let hn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[p.ez,t.Bz,f.WG,y.PV,U.ZJ,h.KJ,T.q6,S.zf,en.X,tn.D]]}),o})();var fn=e(767),zn=e(9441);let Cn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[p.ez,S.zf,fn.Q,zn.s]]}),o})();var _n=e(4125),Tn=e(3580);let xn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[p.ez,f.WG,y.PV,V.cg,I.HQ,Q.sL,E.vh,y.PV,U.ZJ,_n.k,en.X,Tn.Q]]}),o})(),yn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[p.ez,y.PV,h.KJ,z.Jb,Q.sL,U.ZJ,S.zf,tn.D,xn]]}),o})(),Zn=(()=>{class o{}return o.\u0275fac=function(a){return new(a||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[[p.ez,t.Bz,vn,yn,hn,Cn]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/8383.4d2ba45ed8971969.js b/server/public/8383.4d2ba45ed8971969.js new file mode 100644 index 000000000..020e5d4fe --- /dev/null +++ b/server/public/8383.4d2ba45ed8971969.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8383],{3580:(I,f,t)=>{t.d(f,{Q:()=>e});var d=t(9808),n=t(325),o=t(8481),g=t(3610),m=t(647),h=t(7484),u=t(3098),y=t(3630),O=t(6949),x=t(3618),C=t(9444),T=t(5e3);let P=(()=>{class l{}return l.\u0275fac=function(_){return new(_||l)},l.\u0275mod=T.oAB({type:l}),l.\u0275inj=T.cJS({imports:[[d.ez,O.WG,h.vh,u.q6,m.PV,x.ZJ,C.s,y.X]]}),l})(),e=(()=>{class l{}return l.\u0275fac=function(_){return new(_||l)},l.\u0275mod=T.oAB({type:l}),l.\u0275inj=T.cJS({imports:[[d.ez,n.Bz,o.X,g.$6,m.PV,C.s,P]]}),l})()},8018:(I,f,t)=>{t.d(f,{e:()=>l});var d=t(9808),n=t(325),o=t(8481),g=t(3610),m=t(647),h=t(7484),u=t(3098),y=t(6949),O=t(3630),x=t(3618),C=t(9444),T=t(404),P=t(5e3);let e=(()=>{class c{}return c.\u0275fac=function(D){return new(D||c)},c.\u0275mod=P.oAB({type:c}),c.\u0275inj=P.cJS({imports:[[d.ez,n.Bz,y.WG,h.vh,u.q6,m.PV,x.ZJ,o.X,T.cg,O.X,C.s]]}),c})(),l=(()=>{class c{}return c.\u0275fac=function(D){return new(D||c)},c.\u0275mod=P.oAB({type:c}),c.\u0275inj=P.cJS({imports:[[d.ez,n.Bz,o.X,g.$6,m.PV,C.s,e]]}),c})()},9476:(I,f,t)=>{t.d(f,{L:()=>e});var d=t(9808),n=t(325),o=t(8481),g=t(647),m=t(1894),h=t(3630),u=t(3098),y=t(7484),O=t(6949),x=t(5473),C=t(5e3);let T=(()=>{class l{}return l.\u0275fac=function(_){return new(_||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[[d.ez,O.WG,y.vh,m.Jb,u.q6,h.X,x.H]]}),l})();var P=t(3610);let e=(()=>{class l{}return l.\u0275fac=function(_){return new(_||l)},l.\u0275mod=C.oAB({type:l}),l.\u0275inj=C.cJS({imports:[[d.ez,n.Bz,o.X,g.PV,P.$6,T]]}),l})()},6715:(I,f,t)=>{t.d(f,{$:()=>o});var d=t(5e3);const n=["*"];let o=(()=>{class g{constructor(){}ngOnInit(){}}return g.\u0275fac=function(h){return new(h||g)},g.\u0275cmp=d.Xpm({type:g,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(h,u){2&h&&d.ekj("xs","xs"===u.size||!u.size)("sm","sm"===u.size)},inputs:{size:"size"},ngContentSelectors:n,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(h,u){1&h&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),g})()},897:(I,f,t)=>{t.d(f,{$:()=>o});var d=t(9808),n=t(5e3);let o=(()=>{class g{}return g.\u0275fac=function(h){return new(h||g)},g.\u0275mod=n.oAB({type:g}),g.\u0275inj=n.cJS({imports:[[d.ez]]}),g})()},7946:(I,f,t)=>{t.d(f,{x:()=>O});var d=t(9808),n=t(897),o=t(8481),g=t(3610),m=t(8018),h=t(3580),u=t(9476),y=t(5e3);let O=(()=>{class x{}return x.\u0275fac=function(T){return new(T||x)},x.\u0275mod=y.oAB({type:x}),x.\u0275inj=y.cJS({imports:[[d.ez,o.X,g.$6,n.$,m.e,h.Q,u.L]]}),x})()},8664:(I,f,t)=>{t.d(f,{I:()=>$});var d=t(6654),n=t(5e3),o=t(9808),g=t(325),m=t(8481),h=t(3610),u=t(4850),y=t(712),O=t(7484),x=t(647),C=t(3193),T=t(3098),P=t(6550),e=t(1894),l=t(8144),c=t(6949);function _(a,v){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,v){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,v){if(1&a&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&a){const r=v.$implicit;n.xp6(1),n.Oqu(r)}}function B(a,v){if(1&a&&(n.TgZ(0,"nz-descriptions-item",15),n.YNc(1,V,2,1,"nz-tag",16),n.qZA()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",r.variantAliases)}}function L(a,v){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 N(a,v){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,v){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 R(a,v){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 p(a,v){if(1&a&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,_,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,B,2,1,"nz-descriptions-item",6),n.YNc(8,L,3,2,"nz-descriptions-item",7),n.TgZ(9,"nz-descriptions-item",8),n._uU(10),n.qZA(),n.qZA(),n.TgZ(11,"nz-row",9),n.TgZ(12,"nz-col",10),n.TgZ(13,"nz-space",11),n.YNc(14,N,4,2,"a",12),n.YNc(15,J,4,2,"a",12),n.YNc(16,R,4,2,"a",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const r=v.ngIf,A=n.MAs(3),U=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",A)("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 Z=(()=>{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,u.U)(({data:r})=>r.variant))}}return a.\u0275fac=function(r){return new(r||a)(n.Y36(y.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,A){1&r&&(n.TgZ(0,"div",0),n.YNc(1,p,17,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,A.variant$)))},directives:[o.O5,O.bd,x.Ls,C.H,T.R7,T.uj,o.sg,m.j,P.l,e.SK,e.t3,l.NU,l.$1,g.yS],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 s(a,v){}function z(a,v){if(1&a&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,s,0,0,"ng-template",6),n.qZA(),n.BQk()),2&a){const r=n.oxw(),A=n.MAs(2);n.xp6(1),n.Q6J("routerLink",r.variant.link),n.xp6(1),n.Q6J("ngTemplateOutlet",A)}}function S(a,v){}function Q(a,v){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,S,0,0,"ng-template",6),n.qZA()}if(2&a){n.oxw();const r=n.MAs(2),A=n.oxw(),U=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",A.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",A.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",U)}}function W(a,v){if(1&a&&n._UZ(0,"cvc-variant-popover",11),2&a){const r=n.oxw(3);n.Q6J("variantId",r.variant.id)}}function i(a,v){if(1&a&&n.YNc(0,W,1,1,"cvc-variant-popover",10),2&a){const r=n.oxw(2);n.Q6J("ngIf",r.enablePopover)}}function E(a,v){if(1&a&&(n.YNc(0,Q,2,4,"nz-tag",7),n.YNc(1,i,1,1,"ng-template",null,8,n.W1O)),2&a){const r=n.oxw(),A=n.MAs(4);n.Q6J("ngIf",r.enablePopover)("ngIfElse",A)}}function M(a,v){}function Y(a,v){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,M,0,0,"ng-template",6),n.qZA()}if(2&a){const r=n.oxw(),A=n.MAs(8);n.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",A)}}function F(a,v){}function K(a,v){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,v){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 $=(()=>{class a 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 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,A){if(1&r&&(n.YNc(0,z,3,2,"ng-container",0),n.YNc(1,E,3,2,"ng-template",null,1,n.W1O),n.YNc(3,Y,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",A.linked)("ngIfElse",U)}},directives:[o.O5,g.yS,o.tP,m.j,h.lU,Z,x.Ls],styles:[""]}),a})()},4867:(I,f,t)=>{t.d(f,{Q:()=>l});var d=t(9808),n=t(325),o=t(8481),g=t(647),m=t(3610),h=t(6949),u=t(7484),y=t(1894),O=t(3098),x=t(8144),C=t(3309),T=t(3630),P=t(5e3);let e=(()=>{class c{}return c.\u0275fac=function(D){return new(D||c)},c.\u0275mod=P.oAB({type:c}),c.\u0275inj=P.cJS({imports:[[d.ez,n.Bz,h.WG,u.vh,y.Jb,O.q6,o.X,g.PV,x.zf,C.U,T.X]]}),c})(),l=(()=>{class c{}return c.\u0275fac=function(D){return new(D||c)},c.\u0275mod=P.oAB({type:c}),c.\u0275inj=P.cJS({imports:[[d.ez,n.Bz,o.X,m.$6,g.PV,e]]}),c})()},3154:(I,f,t)=>{t.d(f,{_:()=>n});var d=t(712);function n(o){var g;switch(o.value){case"ascend":g=d.SrV.Asc;break;case"descend":g=d.SrV.Desc;break;default:return}return{column:o.key,direction:g}}},7727:(I,f,t)=>{t.r(f),t.d(f,{EvidenceModule:()=>W});var d=t(9808),n=t(325),o=t(5630),g=t(1945),m=t(1894),h=t(647),u=t(767),y=t(3309),O=t(6949),x=t(6462),C=t(6042),T=t(8144),P=t(3618),e=t(5e3);let l=(()=>{class i{}return i.\u0275fac=function(M){return new(M||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[d.ez,n.Bz,O.WG,C.sL,x.m,g.KJ,m.Jb,h.PV,T.zf,P.ZJ,o.D,y.U,u.Q]]}),i})();var c=t(9350),_=t(8992),D=t(2643),V=t(2683),B=t(8965);function L(i,E){1&i&&(e.TgZ(0,"button",15),e._UZ(1,"i",16),e._uU(2," Submit New Evidence "),e.qZA())}function N(i,E){if(1&i&&(e.ynx(0),e.YNc(1,L,3,0,"button",14),e.BQk()),2&i){const M=E.ngrxLet;e.xp6(1),e.Q6J("ngIf",M.signedIn)}}function J(i,E){if(1&i&&e.YNc(0,N,2,1,"ng-container",13),2&i){const M=e.oxw();e.Q6J("ngrxLet",M.viewer$)}}function R(i,E){1&i&&(e.TgZ(0,"a",17),e._UZ(1,"i",18),e._uU(2," View Evidence Model Docs "),e.qZA())}function p(i,E){1&i&&(e.TgZ(0,"a",19),e._UZ(1,"i",18),e._uU(2," View Evidence Curation Docs "),e.qZA())}function Z(i,E){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 S=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(M){return new(M||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-evidence"]],decls:1,vars:0,template:function(M,Y){1&M&&e._UZ(0,"router-outlet")},directives:[n.lC],styles:[""]}),i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(M){this.viewerService=M,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}}return i.\u0275fac=function(M){return new(M||i)(e.Y36(c.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(M,Y){if(1&M&&(e._UZ(0,"cvc-section-navigation",0),e.YNc(1,J,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,R,3,0,"a",10),e.YNc(16,p,3,0,"a",11),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,Z,4,1,"nz-row",12),e.qZA(),e.qZA()),2&M){const F=e.MAs(2);e.Q6J("actionsTpl",F),e.xp6(11),e.Q6J("nzEllipsisRows",2),e.xp6(6),e.Q6J("ngIf",Y.tableView)}},directives:[_.I,O.eJ,d.O5,C.ix,D.dQ,n.rH,V.w,h.Ls,g.$O,g.u5,m.SK,m.t3,P.ZU,T.NU,T.$1,B.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(4184),t.e(2033),t.e(8829),t.e(8592),t.e(2868)]).then(t.bind(t,3308)).then(i=>i.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(2826),t.e(6724),t.e(55),t.e(9716),t.e(3883),t.e(5291),t.e(2043),t.e(4355),t.e(775),t.e(8592),t.e(2808)]).then(t.bind(t,9636)).then(i=>i.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(4184),t.e(2033),t.e(8829),t.e(8571)]).then(t.bind(t,8571)).then(i=>i.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let Q=(()=>{class i{}return i.\u0275fac=function(M){return new(M||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[n.Bz.forChild(S),l],n.Bz]}),i})(),W=(()=>{class i{}return i.\u0275fac=function(M){return new(M||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[d.ez,Q]]}),i})()},6462:(I,f,t)=>{t.d(f,{i:()=>J,m:()=>R});var d=t(655),n=t(1159),o=t(5e3),g=t(4182),m=t(8929),h=t(3753),u=t(7625),y=t(9439),O=t(1721),x=t(5664),C=t(226),T=t(2643),P=t(9808),e=t(647),l=t(969);const c=["switchElement"];function _(p,Z){1&p&&o._UZ(0,"i",8)}function D(p,Z){if(1&p&&(o.ynx(0),o._uU(1),o.BQk()),2&p){const s=o.oxw(2);o.xp6(1),o.Oqu(s.nzCheckedChildren)}}function V(p,Z){if(1&p&&(o.ynx(0),o.YNc(1,D,2,1,"ng-container",9),o.BQk()),2&p){const s=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",s.nzCheckedChildren)}}function B(p,Z){if(1&p&&(o.ynx(0),o._uU(1),o.BQk()),2&p){const s=o.oxw(2);o.xp6(1),o.Oqu(s.nzUnCheckedChildren)}}function L(p,Z){if(1&p&&o.YNc(0,B,2,1,"ng-container",9),2&p){const s=o.oxw();o.Q6J("nzStringTemplateOutlet",s.nzUnCheckedChildren)}}let J=(()=>{class p{constructor(s,z,S,Q,W,i){this.nzConfigService=s,this.host=z,this.ngZone=S,this.cdr=Q,this.focusMonitor=W,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 m.xQ}updateValue(s){this.isChecked!==s&&(this.isChecked=s,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,u.R)(this.destroy$)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,h.R)(this.host.nativeElement,"click").pipe((0,u.R)(this.destroy$)).subscribe(s=>{s.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,h.R)(this.switchElement.nativeElement,"keydown").pipe((0,u.R)(this.destroy$)).subscribe(s=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:z}=s;z!==n.oh&&z!==n.SV&&z!==n.L_&&z!==n.K5||(s.preventDefault(),this.ngZone.run(()=>{z===n.oh?this.updateValue(!1):z===n.SV?this.updateValue(!0):(z===n.L_||z===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,u.R)(this.destroy$)).subscribe(s=>{s||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(s){this.isChecked=s,this.cdr.markForCheck()}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.nzDisabled=s,this.cdr.markForCheck()}}return p.\u0275fac=function(s){return new(s||p)(o.Y36(y.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(x.tE),o.Y36(C.Is,8))},p.\u0275cmp=o.Xpm({type:p,selectors:[["nz-switch"]],viewQuery:function(s,z){if(1&s&&o.Gf(c,7),2&s){let S;o.iGM(S=o.CRH())&&(z.switchElement=S.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:g.JU,useExisting:(0,o.Gpc)(()=>p),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(s,z){if(1&s&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,_,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&s){const S=o.MAs(7);o.ekj("ant-switch-checked",z.isChecked)("ant-switch-loading",z.nzLoading)("ant-switch-disabled",z.nzDisabled)("ant-switch-small","small"===z.nzSize)("ant-switch-rtl","rtl"===z.dir),o.Q6J("disabled",z.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",z.nzLoading),o.xp6(2),o.Q6J("ngIf",z.isChecked)("ngIfElse",S)}},directives:[T.dQ,P.O5,e.Ls,l.f],encapsulation:2,changeDetection:0}),(0,d.gn)([(0,O.yF)()],p.prototype,"nzLoading",void 0),(0,d.gn)([(0,O.yF)()],p.prototype,"nzDisabled",void 0),(0,d.gn)([(0,O.yF)()],p.prototype,"nzControl",void 0),(0,d.gn)([(0,y.oS)()],p.prototype,"nzSize",void 0),p})(),R=(()=>{class p{}return p.\u0275fac=function(s){return new(s||p)},p.\u0275mod=o.oAB({type:p}),p.\u0275inj=o.cJS({imports:[[C.vT,P.ez,T.vG,e.PV,l.T]]}),p})()}}]); \ No newline at end of file diff --git a/server/public/8422.9ef4ed82da73f04e.js b/server/public/8422.9ef4ed82da73f04e.js deleted file mode 100644 index 02a4ac7dc..000000000 --- a/server/public/8422.9ef4ed82da73f04e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8422],{7946:(N,x,a)=>{a.d(x,{x:()=>f});var l=a(9808),t=a(897),d=a(8481),h=a(3610),n=a(8018),y=a(3580),D=a(9476),m=a(5e3);let f=(()=>{class _{}return _.\u0275fac=function(v){return new(v||_)},_.\u0275mod=m.oAB({type:_}),_.\u0275inj=m.cJS({imports:[[l.ez,d.X,h.$6,t.$,n.e,y.Q,D.L]]}),_})()},8664:(N,x,a)=>{a.d(x,{I:()=>nn});var l=a(6654),t=a(5e3),d=a(9808),h=a(325),n=a(8481),y=a(3610),D=a(4850),m=a(712),f=a(7484),_=a(647),M=a(3193),v=a(3098),b=a(6550),O=a(1894),S=a(8144),u=a(6949);function P(i,g){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const r=t.oxw().ngIf;t.xp6(1),t.hij(" ",r.name," ")}}function A(i,g){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const r=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",r.gene)}}function U(i,g){1&i&&(t.TgZ(0,"span"),t._uU(1,",\xa0"),t.qZA())}function I(i,g){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.YNc(2,U,2,0,"span",1),t.qZA()),2&i){const r=g.$implicit,p=g.last;t.xp6(1),t.hij(" ",r,""),t.xp6(1),t.Q6J("ngIf",!p)}}function J(i,g){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,I,3,2,"span",16),t.qZA()),2&i){const r=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",r.variantAliases)}}function Y(i,g){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 r=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",r.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",r.alleleRegistryId," ")}}function F(i,g){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/flags"),t.xp6(3),t.hij(" Flags (",r.flags.totalCount,") ")}}function L(i,g){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",r.revisions.totalCount,") ")}}function B(i,g){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/comments"),t.xp6(3),t.hij(" Comments (",r.comments.totalCount,") ")}}function j(i,g){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,P,2,1,"ng-template",null,3,t.W1O),t.YNc(4,A,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,J,2,1,"nz-descriptions-item",6),t.YNc(8,Y,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,F,4,2,"a",12),t.YNc(15,L,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 r=g.ngIf,p=t.MAs(3),C=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",p)("nzExtra",C),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",r.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",r.alleleRegistryId),t.xp6(2),t.hij(" ",r.evidenceItems.totalCount," ")}}let Q=(()=>{class i{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,D.U)(({data:r})=>r.variant))}}return i.\u0275fac=function(r){return new(r||i)(t.Y36(m.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(r,p){1&r&&(t.TgZ(0,"div",0),t.YNc(1,j,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,p.variant$)))},directives:[d.O5,f.bd,_.Ls,M.H,v.R7,v.uj,d.sg,b.l,O.SK,O.t3,S.NU,S.$1,h.yS,n.j],pipes:[u.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),i})();function z(i,g){}function E(i,g){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,z,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const r=t.oxw(),p=t.MAs(2);t.xp6(1),t.Q6J("routerLink",r.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",p)}}function w(i,g){}function R(i,g){if(1&i){const r=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(C){return t.CHM(r),t.oxw(2).itemClosed(C)}),t.YNc(1,w,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const r=t.MAs(2),p=t.oxw(),C=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",p.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",p.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",C)}}function $(i,g){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const r=t.oxw(3);t.Q6J("variantId",r.variant.id)}}function W(i,g){if(1&i&&t.YNc(0,$,1,1,"cvc-variant-popover",10),2&i){const r=t.oxw(2);t.Q6J("ngIf",r.enablePopover)}}function K(i,g){if(1&i&&(t.YNc(0,R,2,4,"nz-tag",7),t.YNc(1,W,1,1,"ng-template",null,8,t.W1O)),2&i){const r=t.oxw(),p=t.MAs(4);t.Q6J("ngIf",r.enablePopover)("ngIfElse",p)}}function q(i,g){}function H(i,g){if(1&i){const r=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(C){return t.CHM(r),t.oxw().itemClosed(C)}),t.YNc(1,q,0,0,"ng-template",6),t.qZA()}if(2&i){const r=t.oxw(),p=t.MAs(8);t.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",p)}}function X(i,g){}function G(i,g){if(1&i&&t.YNc(0,X,0,0,"ng-template",6),2&i){t.oxw();const r=t.MAs(2);t.Q6J("ngTemplateOutlet",r)}}function k(i,g){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const r=t.oxw();t.xp6(1),t.hij(" ",r.variant.name,"\n")}}let nn=(()=>{class i extends l.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(r){return new(r||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(r,p){if(1&r&&(t.YNc(0,E,3,2,"ng-container",0),t.YNc(1,K,3,2,"ng-template",null,1,t.W1O),t.YNc(3,H,2,2,"ng-template",null,2,t.W1O),t.YNc(5,G,1,1,"ng-template",null,3,t.W1O),t.YNc(7,k,2,1,"ng-template",null,4,t.W1O)),2&r){const C=t.MAs(6);t.Q6J("ngIf",p.linked)("ngIfElse",C)}},directives:[d.O5,h.yS,d.tP,n.j,y.lU,Q,_.Ls],styles:[""]}),i})()},4867:(N,x,a)=>{a.d(x,{Q:()=>S});var l=a(9808),t=a(325),d=a(8481),h=a(647),n=a(3610),y=a(6949),D=a(7484),m=a(1894),f=a(3098),_=a(8144),M=a(3309),v=a(3630),b=a(5e3);let O=(()=>{class u{}return u.\u0275fac=function(A){return new(A||u)},u.\u0275mod=b.oAB({type:u}),u.\u0275inj=b.cJS({imports:[[l.ez,t.Bz,y.WG,D.vh,m.Jb,f.q6,d.X,h.PV,_.zf,M.U,v.X]]}),u})(),S=(()=>{class u{}return u.\u0275fac=function(A){return new(A||u)},u.\u0275mod=b.oAB({type:u}),u.\u0275inj=b.cJS({imports:[[l.ez,t.Bz,d.X,n.$6,h.PV,O]]}),u})()},3154:(N,x,a)=>{a.d(x,{_:()=>t});var l=a(712);function t(d){var h;switch(d.value){case"ascend":h=l.SrV.Asc;break;case"descend":h=l.SrV.Desc;break;default:return}return{column:d.key,direction:h}}},1592:(N,x,a)=>{a.r(x),a.d(x,{DrugsModule:()=>Zn});var l=a(9808),t=a(325),d=a(373),h=a(1059),n=a(5e3),y=a(712),D=a(8992),m=a(1945),f=a(647),_=a(6550),M=a(3098),v=a(6949);function b(e,c){if(1&e&&(n.TgZ(0,"nz-page-header-extra"),n.TgZ(1,"cvc-link-tag",7),n._uU(2),n.qZA(),n.qZA()),2&e){const o=n.oxw().ngIf;n.xp6(1),n.Q6J("href",o.drugUrl),n.xp6(1),n.hij(" ",o.ncitId," ")}}function O(e,c){if(1&e&&(n.TgZ(0,"nz-descriptions-item",8),n._uU(1),n.qZA()),2&e){const o=n.oxw().ngIf;n.xp6(1),n.hij(" ",o.drugAliases.join(", ")," ")}}function S(e,c){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2),n.TgZ(3,"nz-page-header-title"),n._UZ(4,"i",3),n._uU(5),n.qZA(),n.YNc(6,b,3,2,"nz-page-header-extra",0),n.TgZ(7,"nz-page-header-content"),n.TgZ(8,"div",4),n.TgZ(9,"nz-descriptions",5),n.YNc(10,O,2,1,"nz-descriptions-item",6),n.qZA(),n._UZ(11,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const o=c.ngIf;n.xp6(1),n.Q6J("displayName",o.name),n.xp6(4),n.hij(" ",o.name," "),n.xp6(1),n.Q6J("ngIf",o.ncitId),n.xp6(3),n.Q6J("nzColumn",1),n.xp6(1),n.Q6J("ngIf",o.drugAliases.length>0)}}let u=(()=>{class e{constructor(o,s){this.route=o,this.gql=s,this.routeSub=this.route.params.subscribe(Z=>{this.drugId=+Z.drugId,this.queryRef=this.gql.watch({drugId:this.drugId});let T=this.queryRef.valueChanges;this.loading$=T.pipe((0,d.j)("loading"),(0,h.O)(!0)),this.drug$=T.pipe((0,d.j)("data","drug"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(t.gz),n.Y36(y.GB2))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-drugs-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","civic:intervention"],[1,"content"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["tooltip","View in the NCIthesaurus",3,"href"],["nzTitle","Aliases","nzSpan","2"]],template:function(o,s){1&o&&(n.YNc(0,S,12,5,"ng-container",0),n.ALo(1,"ngrxPush")),2&o&&n.Q6J("ngIf",n.lcZ(1,1,s.drug$))},directives:[l.O5,D.I,m.$O,m.u9,f.Ls,m.Jp,_.l,m.u5,M.R7,M.uj,t.lC],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}"]}),e})();var P=a(1894),A=a(2683),U=a(3618),I=a(8144),J=a(6042),Y=a(3154),F=a(8929),L=a(4850),B=a(2986),j=a(13),Q=a(7484),z=a(1132),E=a(404),w=a(2166),R=a(7469),$=a(2643);function W(e,c){if(1&e&&(n.TgZ(0,"cvc-link-tag",17),n._uU(1),n.qZA()),2&e){const o=n.oxw().$implicit;n.Q6J("href",o.drugUrl),n.xp6(1),n.hij(" ",o.ncitId," ")}}function K(e,c){1&e&&n._uU(0,"--")}function q(e,c){if(1&e&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-drug-tag",14),n.qZA(),n.TgZ(3,"td"),n.YNc(4,W,2,2,"cvc-link-tag",15),n.YNc(5,K,1,0,"ng-template",null,16,n.W1O),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.TgZ(9,"td"),n._uU(10),n.qZA(),n.qZA()),2&e){const o=c.$implicit,s=n.MAs(6);n.xp6(2),n.Q6J("drug",o),n.xp6(2),n.Q6J("ngIf",o.ncitId)("ngIfElse",s),n.xp6(4),n.hij(" ",o.evidenceCount," "),n.xp6(2),n.hij(" ",o.assertionCount," ")}}function H(e,c){if(1&e){const o=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(o);const Z=n.oxw(2).ngrxLet;return n.oxw().loadMore(Z.endCursor)}),n._uU(1),n.qZA()}if(2&e){const o=n.oxw(3);n.xp6(1),n.hij("Load ",o.initialPageSize," More")}}function X(e,c){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 o=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",o.hasNextPage)}}function G(e,c){if(1&e&&(n.ynx(0),n.YNc(1,X,3,1,"tr",18),n.BQk()),2&e){const o=c.ngrxLet;n.xp6(1),n.Q6J("ngIf",o.hasNextPage)}}function k(e,c){}function nn(e,c){if(1&e&&(n.ynx(0),n.YNc(1,k,0,0,"ng-template",25),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",o.cvcTitleTemplate)}}function i(e,c){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const o=n.oxw(2);n.xp6(1),n.hij(" ",o.cvcTitle," ")}}function g(e,c){if(1&e&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&e){const o=n.oxw().ngIf;n.xp6(1),n.hij(" of ",o," filtered")}}function r(e,c){if(1&e&&(n.TgZ(0,"span",26),n._uU(1),n.YNc(2,g,2,1,"span",18),n._uU(3,") "),n.qZA()),2&e){const o=c.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&o{class e{constructor(o){this.gql=o,this.truncateLongName=!1,this.initialPageSize=25,this.debouncedQuery=new F.xQ,this.sortColumns=y.kq9,this.visibleCount=this.initialPageSize,this.loadedPages=1}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize});let o=this.queryRef.valueChanges;this.drugs$=o.pipe((0,d.j)("data","drugs","edges"),(0,L.U)(s=>s.map(Z=>Z.node))),this.isLoading$=o.pipe((0,d.j)("loading"),(0,h.O)(!0)),this.filteredCount$=o.pipe((0,d.j)("data","drugs","filteredCount")),this.filteredCount$.pipe((0,B.q)(1)).subscribe(s=>this.totalCount=s),this.filteredCount$.subscribe(s=>{ss&&(this.visibleCount=s))}),this.pageInfo$=o.pipe((0,d.j)("data","drugs","pageInfo")),this.debouncedQuery.pipe((0,j.b)(500)).subscribe(s=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}onModelChanged(){this.debouncedQuery.next()}onSortChanged(o){var s;this.loadedPages=1,null===(s=this.queryRef)||void 0===s||s.refetch({sortBy:(0,Y._)(o)})}refresh(){var o;this.loadedPages=1,null===(o=this.queryRef)||void 0===o||o.refetch({name:this.nameFilter,ncitId:this.ncitIdFilter})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(o){var s;null===(s=this.queryRef)||void 0===s||s.fetchMore({variables:{after:o}}),this.loadedPages+=1}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(y.Ud2))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-drugs-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",truncateLongName:"truncateLongName"},decls:27,vars:27,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["drugsTable",""],[3,"nzSortOrderChange"],["nzWidth","40%",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nz-icon","","nzType","civic:evidence"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nz-icon","","nzType","civic:assertion"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search NCIt ID",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"drug"],["tooltip","View in the NCIthesaurus",3,"href",4,"ngIf","ngIfElse"],["noNcit",""],["tooltip","View in the NCIthesaurus",3,"href"],[4,"ngIf"],["colspan","7"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","civic:intervention"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(o,s){if(1&o&&(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(T){return s.onSortChanged(T)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," Name "),n.qZA(),n.TgZ(9,"th",4),n._uU(10," NCIt ID "),n.qZA(),n.TgZ(11,"th",5),n._UZ(12,"i",6),n.qZA(),n.TgZ(13,"th",7),n._UZ(14,"i",8),n.qZA(),n.qZA(),n.TgZ(15,"tr"),n.TgZ(16,"th"),n.TgZ(17,"cvc-clearable-input-filter",9),n.NdJ("inputModelChange",function(T){return s.nameFilter=T}),n.qZA(),n.qZA(),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",10),n.NdJ("inputModelChange",function(T){return s.ncitIdFilter=T}),n.qZA(),n.qZA(),n._UZ(20,"th"),n._UZ(21,"th"),n.qZA(),n.qZA(),n.TgZ(22,"tbody"),n.YNc(23,q,11,5,"tr",11),n.YNc(24,G,2,1,"ng-container",12),n.qZA(),n.qZA(),n.qZA(),n.YNc(25,C,7,6,"ng-template",null,13,n.W1O)),2&o){const Z=n.MAs(2),T=n.MAs(26);n.Q6J("nzTitle",T),n.xp6(1),n.Q6J("nzData",n.lcZ(3,21,s.drugs$))("nzLoading",n.lcZ(4,23,s.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.NcitId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortDirections",n.DdM(25,V))("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.AssertionCount)("nzSortDirections",n.DdM(26,V))("nzSortFn",!0),n.xp6(4),n.Q6J("inputModel",s.nameFilter)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.ncitIdFilter)("onInputChanged",s.textInputCallback),n.xp6(4),n.Q6J("ngForOf",Z.data),n.xp6(1),n.Q6J("ngrxLet",s.pageInfo$)}},directives:[Q.bd,z.N8,z.Om,z.$Z,z.Uo,z._C,z.qD,z.qn,E.SY,f.Ls,A.w,w.p,z.p0,l.sg,R.u,l.O5,_.l,v.eJ,J.ix,$.dQ,l.tP,U.ZU],pipes:[v.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),e})();function an(e,c){1&e&&(n.TgZ(0,"a",14),n._UZ(1,"i",15),n._uU(2," View Drug Attribute Docs "),n.qZA())}function rn(e,c){1&e&&(n.TgZ(0,"a",16),n._UZ(1,"i",15),n._uU(2," View Drug Curation Docs "),n.qZA())}let sn=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["drugs-home"]],decls:19,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic:intervention"],["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/drug.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/drug.html#curating-drugs","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Drugs"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/drug.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/drug.html#curating-drugs","target","_blank","nzSize","small","nzBlock",""]],template:function(o,s){1&o&&(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,"Drugs"),n.qZA(),n.TgZ(9,"p",5),n._uU(10,"CIViC Drugs are associated with Predictive Evidence Types, and describe the sensitivity, resistance or adverse response to treatment. Drugs may also be used to describe more general treatment types and regimes, such as FOLFOX or Radiation."),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,an,3,0,"a",8),n.YNc(14,rn,3,0,"a",9),n.qZA(),n.qZA(),n.qZA(),n.TgZ(15,"div",10),n.TgZ(16,"div",11),n.TgZ(17,"div",12),n._UZ(18,"cvc-drugs-table",13),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(7),n.Q6J("nzSpan",24))},directives:[D.I,m.$O,m.u5,P.SK,P.t3,f.Ls,A.w,U.ZU,I.NU,I.$1,J.ix,on],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 cn=a(3756),gn=a(8965);function ln(e,c){if(1&e&&n._UZ(0,"cvc-assertions-table",4),2&e){const o=n.oxw(2);n.Q6J("drugId",o.drugId)}}function pn(e,c){if(1&e&&n._UZ(0,"cvc-evidence-table",5),2&e){const o=n.oxw(2);n.Q6J("drugId",o.drugId)}}function dn(e,c){1&e&&(n.TgZ(0,"nz-space",1),n.YNc(1,ln,1,1,"cvc-assertions-table",2),n.YNc(2,pn,1,1,"cvc-evidence-table",3),n.qZA())}const un=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-drugs"]],decls:1,vars:0,template:function(o,s){1&o&&n._UZ(0,"router-outlet")},directives:[t.lC],styles:[""]}),e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:sn,data:{breadcrumb:"Home"}},{path:":drugId",component:u,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.drugId=+s.drugId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return e.\u0275fac=function(o){return new(o||e)(n.Y36(t.gz))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-drugs-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Drug Assertions",3,"drugId",4,"nzSpaceItem"],["cvcTitle","Drug Evidence",3,"drugId",4,"nzSpaceItem"],["cvcTitle","Drug Assertions",3,"drugId"],["cvcTitle","Drug Evidence",3,"drugId"]],template:function(o,s){1&o&&n.YNc(0,dn,3,0,"nz-space",0),2&o&&n.Q6J("ngIf",s.drugId)},directives:[l.O5,I.NU,I.$1,cn.x,gn.a],styles:["[_nghost-%COMP%]{display:block}"]}),e})(),data:{breadcrumb:"Summary"}}]}]}];let mn=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[t.Bz.forChild(un)],t.Bz]}),e})();var tn=a(5630),en=a(3630);let hn=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,t.Bz,v.WG,f.PV,m.KJ,I.zf,M.q6,en.X,tn.D]]}),e})();var _n=a(767),fn=a(9441);let vn=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,I.zf,_n.Q,fn.s]]}),e})();var zn=a(8018),Cn=a(4125);let Tn=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,v.WG,z.HQ,f.PV,J.sL,Q.vh,f.PV,U.ZJ,E.cg,zn.e,en.X,Cn.k]]}),e})(),xn=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,f.PV,m.KJ,P.Jb,U.ZJ,I.zf,J.sL,tn.D,Tn]]}),e})(),Zn=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[[l.ez,t.Bz,mn,xn,hn,vn]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/8482.97546a52cadedf70.js b/server/public/8482.c5c92b5b0a05c813.js similarity index 99% rename from server/public/8482.97546a52cadedf70.js rename to server/public/8482.c5c92b5b0a05c813.js index 1c6a5ebcc..9e7234603 100644 --- a/server/public/8482.97546a52cadedf70.js +++ b/server/public/8482.c5c92b5b0a05c813.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(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 +"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(1365);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/8486.0c1b874a6e4ef27e.js b/server/public/8486.0c1b874a6e4ef27e.js new file mode 100644 index 000000000..f662f540e --- /dev/null +++ b/server/public/8486.0c1b874a6e4ef27e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8486],{5749:(ee,N,a)=>{a.d(N,{m:()=>oe});var o=a(5e3),y=a(9808),n=a(325),v=a(8481),A=a(3610),T=a(4850),Z=a(712),O=a(7484),_=a(7881),e=a(1894),I=a(3098),S=a(6550),J=a(6949);const E=function(u,C){return{displayName:u,profileImagePath:C}};function w(u,C){if(1&u&&(o._UZ(0,"cvc-user-avatar",12),o.TgZ(1,"span",13),o._uU(2),o.qZA()),2&u){const m=o.oxw().ngIf;o.Q6J("user",o.WLB(2,E,m.name,m.profileImagePath)),o.xp6(2),o.Oqu(m.name)}}function F(u,C){if(1&u&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&u){const m=C.ngIf;o.xp6(1),o.Oqu(m)}}function R(u,C){if(1&u&&(o.ynx(0),o.TgZ(1,"cvc-link-tag",14),o._uU(2),o.qZA(),o.BQk()),2&u){const m=o.oxw().ngIf;o.xp6(1),o.Q6J("href",m.url),o.xp6(1),o.hij(" ",m.name," ")}}function K(u,C){if(1&u&&(o.ynx(0),o.TgZ(1,"nz-card",4),o.YNc(2,w,3,5,"ng-template",null,5,o.W1O),o.TgZ(4,"nz-row"),o.TgZ(5,"nz-col",6),o.TgZ(6,"div",7),o.TgZ(7,"p",8),o.YNc(8,F,2,1,"span",9),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.TgZ(9,"nz-descriptions",10),o.TgZ(10,"nz-descriptions-item",11),o.YNc(11,R,3,2,"ng-container",9),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&u){const m=C.ngIf,Q=o.MAs(3);o.oxw();const D=o.MAs(4),ne=o.MAs(6);o.xp6(1),o.Q6J("nzTitle",Q),o.xp6(7),o.Q6J("ngIf",m.description)("ngIfElse",D),o.xp6(1),o.Q6J("nzColumn",2),o.xp6(2),o.Q6J("ngIf",m.url)("ngIfElse",ne)}}function X(u,C){1&u&&o._uU(0," Organization has not provided a description.\n")}function q(u,C){1&u&&o._uU(0," --\n")}let b=(()=>{class u{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,T.U)(({data:m})=>m.organization))}}return u.\u0275fac=function(m){return new(m||u)(o.Y36(Z.X5f))},u.\u0275cmp=o.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(m,Q){1&m&&(o.TgZ(0,"div",0),o.YNc(1,K,12,6,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA(),o.YNc(3,X,1,0,"ng-template",null,2,o.W1O),o.YNc(5,q,1,0,"ng-template",null,3,o.W1O)),2&m&&(o.xp6(1),o.Q6J("ngIf",o.lcZ(2,1,Q.org$)))},directives:[y.O5,O.bd,_.L,e.SK,e.t3,I.R7,I.uj,S.l],pipes:[J.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 L=a(647);function H(u,C){}function V(u,C){if(1&u&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,H,0,0,"ng-template",6),o.qZA(),o.BQk()),2&u){const m=o.oxw(),Q=o.MAs(2);o.xp6(1),o.MGl("routerLink","/organizations/",m.org.id,""),o.xp6(1),o.Q6J("ngTemplateOutlet",Q)}}function $(u,C){}function z(u,C){if(1&u&&o._UZ(0,"cvc-organization-popover",10),2&u){const m=o.oxw(3);o.Q6J("orgId",m.org.id)}}function U(u,C){if(1&u&&o.YNc(0,z,1,1,"cvc-organization-popover",9),2&u){const m=o.oxw(2);o.Q6J("ngIf",m.enablePopover)}}function h(u,C){if(1&u&&(o.TgZ(0,"nz-tag",7),o.YNc(1,$,0,0,"ng-template",6),o.qZA(),o.YNc(2,U,1,1,"ng-template",null,8,o.W1O)),2&u){const m=o.MAs(3);o.oxw();const Q=o.MAs(8);o.Q6J("nzPopoverContent",m),o.xp6(1),o.Q6J("ngTemplateOutlet",Q)}}function x(u,C){}function j(u,C){if(1&u&&(o.TgZ(0,"nz-tag"),o.YNc(1,x,0,0,"ng-template",6),o.qZA()),2&u){o.oxw();const m=o.MAs(8);o.xp6(1),o.Q6J("ngTemplateOutlet",m)}}function W(u,C){}function G(u,C){if(1&u&&o.YNc(0,W,0,0,"ng-template",6),2&u){o.oxw();const m=o.MAs(2);o.Q6J("ngTemplateOutlet",m)}}function M(u,C){if(1&u&&(o._UZ(0,"i",11),o._uU(1)),2&u){const m=o.oxw();o.xp6(1),o.hij(" ",m.org.name,"\n")}}let oe=(()=>{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(m){return new(m||u)},u.\u0275cmp=o.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(m,Q){if(1&m&&(o.YNc(0,V,3,2,"ng-container",0),o.YNc(1,h,4,2,"ng-template",null,1,o.W1O),o.YNc(3,j,2,1,"ng-template",null,2,o.W1O),o.YNc(5,G,1,1,"ng-template",null,3,o.W1O),o.YNc(7,M,2,1,"ng-template",null,4,o.W1O)),2&m){const D=o.MAs(6);o.Q6J("ngIf",Q.linked)("ngIfElse",D)}},directives:[y.O5,n.yS,y.tP,v.j,A.lU,b,L.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),u})()},1243:(ee,N,a)=>{a.d(N,{I:()=>y});var o=a(5e3);let y=(()=>{class n{transform(A){if(A){let Z=A.toLowerCase().replace(/_/g," ").split(" ");for(var T=0;T{a.d(N,{j:()=>n});var o=a(712),y=a(5e3);let n=(()=>{class v{transform(T){switch(T){case"ASSERTION":case"Assertion":case o.o71.Assertion:return"civic:assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case o.o71.EvidenceItem:return"civic:evidence";case"GENE":case"Gene":case o.o71.Gene:return"civic:gene";case o.o71.Revision:case"REVISION":case"Revision":return"civic:revision";case o.o71.Variant:case"VARIANT":case"Variant":return"civic:variant";case o.o71.VariantGroup:case"VARIANT_GROUP":case"VariantGroup":return"civic:variant-group";default:return console.log("String No icon name found for "+T),"border-outer"}}}return v.\u0275fac=function(T){return new(T||v)},v.\u0275pipe=y.Yjl({name:"iconNameForSubscribableEntity",type:v,pure:!0}),v})()},8227:(ee,N,a)=>{a.d(N,{q:()=>$});var o=a(5e3),y=a(8929),n=a(4850),v=a(373),A=a(2868),T=a(7625),Z=a(1793),O=a(9350),_=a(9808),e=a(6042),I=a(2683),S=a(2643),J=a(3677),E=a(8144),w=a(6699),F=a(4219);function R(z,U){1&z&&o.Hsn(0)}function K(z,U){1&z&&o.GkF(0)}function X(z,U){if(1&z&&(o.ynx(0),o.YNc(1,K,1,0,"ng-container",5),o.BQk()),2&z){o.oxw(2);const h=o.MAs(1);o.xp6(1),o.Q6J("ngTemplateOutlet",h)}}function q(z,U){1&z&&o.GkF(0)}function b(z,U){if(1&z&&(o.ynx(0),o.TgZ(1,"nz-button-group",6),o.YNc(2,q,1,0,"ng-container",5),o.TgZ(3,"button",7),o.TgZ(4,"nz-space",8),o.TgZ(5,"span"),o._uU(6,"for"),o.qZA(),o._UZ(7,"nz-avatar",9),o._UZ(8,"i",10),o.qZA(),o.qZA(),o.qZA(),o.BQk()),2&z){o.oxw();const h=o.MAs(4),x=o.oxw(),j=o.MAs(1);o.xp6(1),o.Q6J("nzSize",x.nzSize),o.xp6(1),o.Q6J("ngTemplateOutlet",j),o.xp6(1),o.Q6J("nzType",x.buttonType)("nzDanger",x.nzDanger)("disabled",x.disabled)("nzDropdownMenu",h),o.xp6(1),o.Q6J("nzSize",4),o.xp6(3),o.Q6J("nzSrc",null==x.selectedOrg?null:x.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function L(z,U){if(1&z){const h=o.EpF();o.TgZ(0,"li",11),o.NdJ("click",function(){const W=o.CHM(h).$implicit;return o.oxw(2).selectOrg(W)}),o._UZ(1,"nz-avatar",12),o._uU(2),o.qZA()}if(2&z){const h=U.$implicit,x=o.oxw(2);o.Q6J("nzSelected",(null==x.selectedOrg?null:x.selectedOrg.id)===h.id),o.xp6(1),o.Q6J("nzSrc",null==h?null:h.profileImagePath)("nzSize",10)("nzShape","square"),o.xp6(1),o.hij(" ",h.name," ")}}function H(z,U){if(1&z&&(o.ynx(0),o.YNc(1,X,2,1,"ng-container",1),o.YNc(2,b,9,10,"ng-container",1),o.TgZ(3,"nz-dropdown-menu",null,2),o.TgZ(5,"ul",3),o.YNc(6,L,3,5,"li",4),o.qZA(),o.qZA(),o.BQk()),2&z){const h=U.ngIf;o.xp6(1),o.Q6J("ngIf",h.length<=1),o.xp6(1),o.Q6J("ngIf",h.length>1),o.xp6(4),o.Q6J("ngForOf",h)}}const V=["*"];let $=(()=>{class z{constructor(h){this.viewerService=h,this.selectedOrgChange=new o.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new y.xQ}get disabled(){return this.button.disabled}selectOrg(h){this.selectedOrg=h,this.selectedOrgChange.emit(h)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,n.U)(h=>h.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,v.j)("mostRecentOrg"),(0,A.b)(h=>{h&&(this.selectedOrg=h,this.selectedOrgChange.emit(h))})),this.mostRecentOrg$.pipe((0,T.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return z.\u0275fac=function(h){return new(h||z)(o.Y36(O.a))},z.\u0275cmp=o.Xpm({type:z,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(h,x,j){if(1&h&&o.Suo(j,Z.m,5),2&h){let W;o.iGM(W=o.CRH())&&(x.button=W.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:V,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(h,x){1&h&&(o.F$t(),o.YNc(0,R,1,0,"ng-template",null,0,o.W1O),o.YNc(2,H,7,3,"ng-container",1),o.ALo(3,"async")),2&h&&(o.xp6(2),o.Q6J("ngIf",o.lcZ(3,1,x.organizations$)))},directives:[_.O5,_.tP,e.fY,I.w,e.ix,S.dQ,J.wA,J.cm,E.NU,w.Dz,J.RR,F.wO,_.sg,F.r9],pipes:[_.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),z})()},6738:(ee,N,a)=>{function o(_){let e={value:void 0,unset:void 0};return _&&_.trim().length>0?e.value=_.trim():e.unset=!0,e}function y(_){let e={value:void 0,unset:void 0};return void 0!==_?e.value=_:e.unset=!0,e}a.d(N,{aP:()=>O,li:()=>n,Zg:()=>v,_$:()=>A,uP:()=>y,dh:()=>T,xt:()=>o});var n=(()=>{return(_=n||(n={}))[_.NotApplicable=0]="NotApplicable",_[_.NoneFound=1]="NoneFound",_[_.Found=2]="Found",n;var _})();function v(_,e){let I,S,J;return e==n.Found?(I=void 0,S=void 0,J=_):e==n.NoneFound?(S=!0,I=void 0,J=void 0):(I=!0,S=void 0,J=void 0),{ids:J?J.map(E=>+E):void 0,noneFound:S,notApplicable:I}}function A(_){return _?{chromosome:Z(_.chromosome),representativeTranscript:Z(_.representativeTranscript),start:_.start?+_.start:void 0,stop:_.stop?+_.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function T(_){let e={value:void 0,unset:void 0};return _?e.value=_:e.unset=!0,e}function Z(_){let e;return e=_&&_.length>0?_:void 0,e}const O=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7600:(ee,N,a)=>{a.r(N),a.d(N,{UsersDetailModule:()=>Sn});var o=a(9808),y=a(5630),n=a(1945),v=a(325),A=a(8762),T=a(8144),Z=a(5473),O=a(6042),_=a(647),e=a(5e3);let I=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[o.ez,O.sL,_.PV]]}),i})();var S=a(3098),J=a(9476),E=a(1894),w=a(9444),F=a(6949),R=a(7484),K=a(5249),X=a(5737),q=a(3640),b=a(4182),L=a(2359),H=a(4546),V=a(7008),$=a(3868),z=a(7525),U=a(8054);let h=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[o.ez,b.u5,H.U5,b.UX,F.WG,R.vh,L.L,$.aF,O.sL,z.j,U.LV,V.B]]}),i})();var x=a(330),j=a(5013),W=a(3756);let G=(()=>{class i{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(v.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(t,s){1&t&&e._UZ(0,"cvc-assertions-table",0),2&t&&e.Q6J("userId",s.userId)},directives:[W.x],styles:["[_nghost-%COMP%]{display:block}"]}),i})();var M=a(712),oe=a(2011);let u=(()=>{class i{constructor(t){this.route=t,this.mode=M.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(v.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(t,s){1&t&&e._UZ(0,"cvc-event-feed",0),2&t&&e.Q6J("userId",s.userId)("mode",s.mode)},directives:[oe.o],styles:["[_nghost-%COMP%]{display:block}"]}),i})();var C=a(8965);let m=(()=>{class i{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(v.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(t,s){1&t&&e._UZ(0,"cvc-evidence-table",0),2&t&&e.Q6J("userId",s.userId)},directives:[C.a],styles:["[_nghost-%COMP%]{display:block}"]}),i})();var Q=a(6123),D=a(4850),ne=a(1059),ie=a(9169),te=a(2683),ae=a(2643),ge=a(8747),ue=a(6114),re=a(2712),de=a(1897),_e=a(404),me=a(2937),fe=a(9058);function he(i,l){if(1&i&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e._uU(2),e.qZA()),2&i){const t=l.$implicit;e.xp6(1),e.Q6J("nzType",t.iconName),e.xp6(1),e.hij(" ",t.displayName," ")}}function ze(i,l){1&i&&(e._uU(0),e.ALo(1,"eventVerbiage")),2&i&&e.hij(" ",e.xi3(1,1,l.$implicit.id,"action-filter")," ")}function Re(i,l){if(1&i&&(e.TgZ(0,"nz-col"),e._UZ(1,"i",17),e.ALo(2,"iconNameForSubscribableEntity"),e._uU(3),e.qZA()),2&i){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 Be(i,l){if(1&i&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&i){const t=l.$implicit;e.xp6(1),e.hij(" ",t.displayName," ")}}function Ce(i,l){if(1&i&&(e.TgZ(0,"nz-col"),e._uU(1),e.qZA()),2&i){const t=l.$implicit;e.xp6(1),e.hij(" ",t.name," ")}}function ve(i,l){if(1&i){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&i){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(i,l){if(1&i&&e._UZ(0,"i",32),2&i){const t=e.oxw().$implicit;e.Q6J("nzType","SUBSCRIPTION"===t.key.type?"book":"notification")("nzTheme",t.key.seen?"outline":"twotone")}}function xe(i,l){if(1&i){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(i,l){if(1&i){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(i,l){if(1&i){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&i){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 se(i,l){1&i&&(e.TgZ(0,"button",37),e._UZ(1,"i",20),e.qZA())}function Ue(i,l){if(1&i){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,se,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 P=e.CHM(t).$implicit;return e.oxw(3).onNotificationCheckBoxClicked(P.key.id,c)}),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&i){const t=l.$implicit,s=e.MAs(3),c=e.MAs(10),g=e.MAs(14);e.xp6(1),e.Q6J("nzDot",s)("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 Me(i,l){if(1&i&&(e.TgZ(0,"nz-timeline"),e.YNc(1,Ue,16,8,"ng-container",22),e.ALo(2,"keyvalue"),e.qZA()),2&i){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,t))}}function ye(i,l){if(1&i){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(i,l){if(1&i&&(e.ynx(0),e.YNc(1,ye,3,0,"div",38),e.BQk()),2&i){const t=l.ngIf;e.xp6(1),e.Q6J("ngIf",t.hasNextPage)}}function Oe(i,l){if(1&i){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,Re,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,Be,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,Me,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&i){const t=l.ngIf,s=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",s),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 i{constructor(t,s,c,g,P){this.route=t,this.gql=s,this.networkErrorService=c,this.updateNotificationStatusMuation=g,this.unsubscribeMutation=P,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:M.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:M.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new Q.U(c),this.unsubscribeMutator=new Q.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,D.U)(({data:t})=>t.notifications.pageInfo)),this.notificationStateObservable$=this.results$.pipe((0,D.U)(({data:t})=>{let s=new Map;return t.notifications.edges.forEach(c=>{if(c.node){let g={checked:!1};s.set(c.node,g),this.notificationState.set(c.node,g)}}),s})),this.notificationSubjects$=this.results$.pipe((0,D.U)(({data:t})=>t.notifications.notificationSubjects.map(s=>{var c,g;return{id:`${null===(c=s.subject)||void 0===c?void 0:c.__typename}:${null===(g=s.subject)||void 0===g?void 0:g.id}`,subjectWithCount:s}}))),this.originatingUsers$=this.results$.pipe((0,D.U)(({data:t})=>t.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,D.U)(({data:t})=>t.notifications.eventTypes.map(s=>({id:s})))),this.organizations$=this.results$.pipe((0,D.U)(({data:t})=>t.notifications.organizations)),this.isLoading$=this.results$.pipe((0,D.U)(({loading:t})=>t),(0,ne.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 s;let c;if(void 0!==t){let g=null===(s=t.subjectWithCount.subject)||void 0===s?void 0:s.__typename;c={id:t.subjectWithCount.subject.id,entityType:M.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:M.NQC.Read}})}markAsUnread(t){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[t],newStatus:M.NQC.Unread}})}unsubscribe(t,s){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:t,entityType:M.o71[s]}]}})}onNotificationCheckBoxClicked(t,s){let c=Array.from(this.notificationState.keys()).find(g=>g.id===t);if(c){let g=this.notificationState.get(c);g&&(g.checked=s)}s?(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((s,c)=>{s.checked&&t.push(c.id)}),t}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,s)=>{t.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((t,s)=>{t.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:M.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:M.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let t=[];this.notificationState.forEach((s,c)=>{s.checked&&c.subscription&&t.push({id:c.subscription.subscribable.id,entityType:M.o71[c.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:t}}).submitSuccess$.subscribe(s=>{s&&this.queryRef.refetch()}),this.uncheckAll()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(v.gz),e.Y36(M.yqR),e.Y36(ie.Y),e.Y36(M.LiH),e.Y36(M.m$d))},i.\u0275cmp=e.Xpm({type:i,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,s){1&t&&(e.TgZ(0,"nz-spin",0),e.ALo(1,"ngrxPush"),e.YNc(2,Oe,39,22,"ng-container",1),e.ALo(3,"async"),e.qZA()),2&t&&(e.Q6J("nzSpinning",e.lcZ(1,2,s.isLoading$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(3,4,s.notificationStateObservable$)))},directives:[z.W,o.O5,E.SK,E.t3,O.fY,te.w,O.ix,ae.dQ,ge.l,_.Ls,R.bd,ue.Ie,b.JJ,b.On,re.PD,o.sg,re.Zv,de.t,_e.SY],pipes:[F.fM,o.Ov,me.R,fe.j,o.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%}"]}),i})();var Se=a(9814);let Pe=(()=>{class i{constructor(t){this.route=t,this.userId=+this.route.snapshot.params.userId}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(v.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(t,s){1&t&&e._UZ(0,"cvc-source-suggestions-table",0),2&t&&e.Q6J("submitterId",s.userId)},directives:[Se.O],styles:["[_nghost-%COMP%]{display:block}"]}),i})();var ce=a(373),le=a(591),Ne=a(9350),Je=a(8992),Ee=a(7881),pe=a(3618),Qe=a(520);let De=(()=>{class i{constructor(t){this.http=t,this.uploadComplete=new e.vpe}processProfileImage(t){if(t&&t[0]){let s=new FormData;s.append("image",t[0],t[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",s).subscribe(c=>this.uploadComplete.emit(!0),c=>this.uploadComplete.emit(!1))}}ngOnDestroy(){var t;null===(t=this.uploadSubscription)||void 0===t||t.unsubscribe()}}return i.\u0275fac=function(t){return new(t||i)(e.Y36(Qe.eN))},i.\u0275cmp=e.Xpm({type:i,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,s){if(1&t){const c=e.EpF();e.TgZ(0,"input",0,1),e.NdJ("change",function(){e.CHM(c);const P=e.MAs(1);return s.processProfileImage(P.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:[O.ix,te.w],styles:[""]}),i})();var ke=a(5749),Ye=a(7893),Fe=a(2233),B=a(6738),Le=a(8929),r=a(7625),d=a(822);function p(i,l){1&i&&e._UZ(0,"nz-alert",13)}function f(i,l){if(1&i&&(e.TgZ(0,"nz-form-item"),e._UZ(1,"cvc-form-errors-alert",14),e.qZA()),2&i){const t=e.oxw();e.xp6(1),e.Q6J("errors",t.errorMessages)}}function k(i,l){if(1&i&&e._UZ(0,"nz-option",15),2&i){const t=l.$implicit;e.Q6J("nzLabel",t.name)("nzValue",t.id)}}let Y=(()=>{class i{constructor(t,s,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 Q.U(c),this.countries$=s.fetch().pipe((0,D.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,B.xt)(this.name),areaOfExpertise:(0,B.uP)(this.areaOfExpertise),orcid:(0,B.xt)(this.orcid),url:(0,B.xt)(this.url),bio:(0,B.xt)(this.bio),countryId:(0,B.uP)(this.countryId),twitterHandle:(0,B.xt)(this.twitterHandle),facebookProfile:(0,B.xt)(this.facebookProfile),linkedinProfile:(0,B.xt)(this.linkedinProfile)},s=this.updateProfileMutator.mutate(this.updateProfileGql,{input:t});s.submitSuccess$.pipe((0,r.R)(this.destroy$)).subscribe(c=>{c&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),s.submitError$.pipe((0,r.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),s.isSubmitting$.pipe((0,r.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 i.\u0275fac=function(t){return new(t||i)(e.Y36(M.wbP),e.Y36(M.l4w),e.Y36(ie.Y))},i.\u0275cmp=e.Xpm({type:i,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,s){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 s.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 s.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 s.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 s.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 s.countryId=g}),e.YNc(24,k,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 s.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 s.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 s.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 s.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 s.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 s.linkedinProfile=g}),e.qZA(),e.qZA(),e.TgZ(53,"nz-form-item"),e.TgZ(54,"button",12),e.NdJ("click",function(){return s.updateProfile()}),e._uU(55," Update Profile "),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",s.success),e.xp6(1),e.Q6J("ngIf",s.errorMessages.length>0),e.xp6(1),e.Q6J("nzSpinning",s.loading),e.xp6(4),e.Q6J("ngModel",s.username),e.xp6(4),e.Q6J("ngModel",s.name),e.xp6(4),e.Q6J("ngModel",s.email),e.xp6(4),e.Q6J("ngModel",s.bio),e.xp6(4),e.Q6J("ngModel",s.countryId),e.xp6(1),e.Q6J("ngForOf",e.lcZ(25,16,s.countries$)),e.xp6(5),e.Q6J("ngModel",s.areaOfExpertise),e.xp6(7),e.Q6J("ngModel",s.orcid),e.xp6(4),e.Q6J("ngModel",s.url),e.xp6(4),e.Q6J("ngModel",s.twitterHandle),e.xp6(4),e.Q6J("ngModel",s.facebookProfile),e.xp6(4),e.Q6J("ngModel",s.linkedinProfile),e.xp6(2),e.Q6J("disabled",s.loading||!s.username||!s.email))},directives:[R.bd,o.O5,L.r,E.SK,H.Nx,d.V,z.W,E.t3,H.iK,b.Fj,b.JJ,b.On,U.Vq,o.sg,U.Ip,O.ix,ae.dQ,te.w],pipes:[F.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),i})();var qe=a(8785),$e=a(1243);function je(i,l){if(1&i){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 We(i,l){if(1&i){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 He(i,l){if(1&i){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(i,l){if(1&i&&(e.TgZ(0,"a",39),e._UZ(1,"i",40),e.qZA()),2&i){const t=e.oxw(2).ngIf;e.MGl("href","http://twitter.com/",t.twitterHandle,"",e.LSH)}}function Ge(i,l){1&i&&(e.ynx(0),e.YNc(1,Ve,2,1,"a",38),e.BQk())}function Ke(i,l){if(1&i&&(e.TgZ(0,"a",39),e._UZ(1,"i",41),e.qZA()),2&i){const t=e.oxw(2).ngIf;e.MGl("href","http://facebook.com/",t.facebookProfile,"",e.LSH)}}function Xe(i,l){1&i&&(e.ynx(0),e.YNc(1,Ke,2,1,"a",38),e.BQk())}function en(i,l){if(1&i&&(e.TgZ(0,"a",39),e._UZ(1,"i",42),e.qZA()),2&i){const t=e.oxw(2).ngIf;e.MGl("href","http://linkedin.com/in/",t.linkedinProfile,"",e.LSH)}}function nn(i,l){1&i&&(e.ynx(0),e.YNc(1,en,2,1,"a",38),e.BQk())}function tn(i,l){if(1&i&&(e.TgZ(0,"a",39),e.TgZ(1,"span"),e._uU(2,"ID"),e.qZA(),e.qZA()),2&i){const t=e.oxw(2).ngIf;e.MGl("href","https://orcid.org/",t.orcid,"",e.LSH)}}function on(i,l){1&i&&(e.ynx(0),e.YNc(1,tn,3,1,"a",38),e.BQk())}function an(i,l){if(1&i){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 rn(i,l){if(1&i&&(e.YNc(0,an,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&i){const t=e.oxw(2);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function sn(i,l){if(1&i&&(e.ynx(0),e._uU(1),e.ALo(2,"enumToTitle"),e.BQk()),2&i){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",e.lcZ(2,1,t.areaOfExpertise)," ")}}function cn(i,l){1&i&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function ln(i,l){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",null==t.country?null:t.country.name," ")}}function pn(i,l){1&i&&(e.ynx(0),e.TgZ(1,"span",44),e.TgZ(2,"i"),e._uU(3,"Unspecified"),e.qZA(),e.qZA(),e.BQk())}function gn(i,l){1&i&&e._UZ(0,"cvc-organization-tag",46),2&i&&e.Q6J("org",l.$implicit)}function un(i,l){if(1&i&&(e.ynx(0),e.YNc(1,gn,1,1,"cvc-organization-tag",45),e.BQk()),2&i){const t=e.oxw().ngIf;e.xp6(1),e.Q6J("ngForOf",t.organizations)}}function dn(i,l){1&i&&(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(i,l){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw().ngIf;e.xp6(1),e.hij(" ",t.bio," ")}}function mn(i,l){1&i&&(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(i,l){1&i&&e._uU(0," Editor Conflict of Interest Statement ")}function hn(i,l){if(1&i){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(i,l){if(1&i&&(e.YNc(0,hn,3,0,"ng-container",0),e.ALo(1,"ngrxPush")),2&i){const t=e.oxw(3);e.Q6J("ngIf",e.lcZ(1,1,t.ownProfile$))}}function Cn(i,l){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const t=e.oxw(3).ngIf;e.xp6(1),e.hij(" ",t.mostRecentConflictOfInterestStatement.coiStatement," ")}}function vn(i,l){1&i&&e._uU(0," I do not have any potential conflicts of interest. ")}function Tn(i,l){if(1&i&&(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&i){const t=e.MAs(13),s=e.oxw(2).ngIf;e.xp6(1),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.lcZ(3,9,s.mostRecentConflictOfInterestStatement.coiStatus)," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(6,11,s.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",1),e.xp6(1),e.hij(" ",e.xi3(9,14,s.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),e.xp6(2),e.Q6J("nzSpan",3),e.xp6(1),e.Q6J("ngIf",s.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",t)}}function xn(i,l){1&i&&(e.ynx(0),e.TgZ(1,"nz-descriptions-item",51),e._uU(2,"None on file."),e.qZA(),e.BQk()),2&i&&(e.xp6(1),e.Q6J("nzSpan",3))}function Zn(i,l){if(1&i&&(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&i){const t=e.MAs(2),s=e.MAs(4),c=e.oxw().ngIf;e.Q6J("nzTitle",t)("nzExtra",s)("nzColumn",3),e.xp6(5),e.Q6J("ngIf",c.mostRecentConflictOfInterestStatement),e.xp6(1),e.Q6J("ngIf",!c.mostRecentConflictOfInterestStatement)}}function bn(i,l){1&i&&(e.TgZ(0,"span"),e._uU(1,"Edit Profile"),e.qZA())}function Un(i,l){if(1&i){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&i){const t=e.oxw().ngIf;e.Q6J("user",t)}}function Mn(i,l){if(1&i){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,We,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,He,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,Xe,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,rn,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,sn,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&i){const t=l.ngIf,s=e.MAs(26),c=e.MAs(58),g=e.MAs(60),P=e.oxw();e.xp6(1),e.Q6J("displayName",t.displayName),e.xp6(3),e.Q6J("ngIf",P.uploadError),e.xp6(1),e.Q6J("ngIf",P.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,P.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",s),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,P.tabs$)),e.xp6(4),e.Q6J("nzVisible",P.updateProfileModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}}function yn(i,l){1&i&&(e.TgZ(0,"span"),e._uU(1,"Update your Conflict of Interest Statement"),e.qZA())}function An(i,l){if(1&i){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 On=[{path:"",component:(()=>{class i{constructor(t,s,c){this.gql=t,this.viewerService=s,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 P=this.queryRef.valueChanges;this.loading$=P.pipe((0,ce.j)("loading"),(0,ne.O)(!0)),this.user$=P.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 s;t?(null===(s=this.queryRef)||void 0===s||s.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 i.\u0275fac=function(t){return new(t||i)(e.Y36(M.sLD),e.Y36(Ne.a),e.Y36(v.gz))},i.\u0275cmp=e.Xpm({type:i,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,s){if(1&t&&(e.YNc(0,Mn,61,48,"ng-container",0),e.ALo(1,"ngrxPush"),e.TgZ(2,"nz-modal",1),e.NdJ("nzVisibleChange",function(g){return s.updateCoiModalVisible=g})("nzOnCancel",function(){return s.handleCoiModalCancel()}),e.YNc(3,yn,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,s.user$)),e.xp6(2),e.Q6J("nzVisible",s.updateCoiModalVisible)("nzContent",g)("nzTitle",c)("nzFooter",null)}},directives:[o.O5,Je.I,n.$O,n.u5,L.r,E.SK,E.t3,Ee.L,pe.ZU,De,T.NU,T.$1,_.Ls,te.w,R.bd,O.ix,S.R7,S.uj,o.sg,ke.m,Ye.z,Fe.P,v.lC,q.du,Y,qe.t],pipes:[F.fM,$e.I,o.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%}"]}),i})(),data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:m,data:{breadcrumb:"Evidence"}},{path:"assertions",component:G,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 i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[v.Bz.forChild(On)],v.Bz]}),i})(),Sn=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[o.ez,v.Bz,In,F.WG,L.L,E.Jb,n.KJ,T.zf,S.q6,R.vh,X.S,q.Qp,K.A2,_.PV,pe.ZJ,O.sL,x.e,h,w.s,y.D,A.c,Z.H,I,J.L,j.C]]}),i})()},3218:(ee,N,a)=>{a.r(N),a.d(N,{UsersModule:()=>Le});var o=a(9808),y=a(325),n=a(5e3),v=a(8992),A=a(1945),T=a(1894),Z=a(647),O=a(2683),_=a(3618),e=a(8144),I=a(6042),S=a(712),J=a(3154),E=a(8929),w=a(373),F=a(1059),R=a(4850),K=a(2986),X=a(13),q=a(7484),b=a(1132),L=a(404),H=a(2166),V=a(8054),$=a(4182),z=a(125),U=a(6715),h=a(5749),x=a(6949),j=a(2643),W=a(1243),G=a(8625);function M(r,d){if(1&r&&(n.ynx(0),n._uU(1),n.BQk()),2&r){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",p.name," ")}}function oe(r,d){1&r&&(n.TgZ(0,"i"),n._uU(1,"N/A"),n.qZA())}function u(r,d){if(1&r&&(n.TgZ(0,"span"),n._UZ(1,"cvc-organization-tag",25),n.qZA()),2&r){const p=d.$implicit;n.xp6(1),n.Q6J("org",p)}}function C(r,d){if(1&r&&(n.TgZ(0,"div"),n.TgZ(1,"cvc-tag-list"),n.YNc(2,u,2,1,"span",17),n.qZA(),n.qZA()),2&r){const p=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",p.organizations)}}function m(r,d){1&r&&(n.TgZ(0,"i"),n._uU(1,"--"),n.qZA())}function Q(r,d){if(1&r&&(n.ynx(0),n._uU(1),n.ALo(2,"timeago"),n.BQk()),2&r){const p=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,p.mostRecentActionTimestamp)," ")}}function D(r,d){1&r&&n._uU(0," -- ")}function ne(r,d){if(1&r&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-user-tag",20),n.qZA(),n.TgZ(3,"td"),n.YNc(4,M,2,1,"ng-container",21),n.YNc(5,oe,2,0,"ng-template",null,22,n.W1O),n.qZA(),n.TgZ(7,"td"),n.YNc(8,C,3,1,"div",21),n.YNc(9,m,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,Q,3,3,"ng-container",21),n.YNc(20,D,1,0,"ng-template",null,24,n.W1O),n.qZA(),n.qZA()),2&r){const p=d.$implicit,f=n.MAs(6),k=n.MAs(10),Y=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",k),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",Y)}}function ie(r,d){if(1&r){const p=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){n.CHM(p);const k=n.oxw(2).ngrxLet;return n.oxw().loadMore(k.endCursor)}),n._uU(1),n.qZA()}if(2&r){const p=n.oxw(3);n.xp6(1),n.hij("Load ",p.initialPageSize," More")}}function te(r,d){if(1&r&&(n.TgZ(0,"tr"),n.TgZ(1,"td",27),n.YNc(2,ie,2,1,"button",28),n.qZA(),n.qZA()),2&r){const p=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",p.hasNextPage)}}function ae(r,d){if(1&r&&(n.ynx(0),n.YNc(1,te,3,1,"tr",26),n.BQk()),2&r){const p=d.ngrxLet;n.xp6(1),n.Q6J("ngIf",p.hasNextPage)}}function ge(r,d){}function ue(r,d){if(1&r&&(n.ynx(0),n.YNc(1,ge,0,0,"ng-template",33),n.BQk()),2&r){const p=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",p.cvcTitleTemplate)}}function re(r,d){if(1&r&&(n.ynx(0),n._uU(1),n.BQk()),2&r){const p=n.oxw(2);n.xp6(1),n.hij(" ",p.cvcTitle," ")}}function de(r,d){if(1&r&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&r){const p=n.oxw().ngIf;n.xp6(1),n.hij(" of ",p," filtered")}}function _e(r,d){if(1&r&&(n.TgZ(0,"span",34),n._uU(1),n.YNc(2,de,2,1,"span",26),n._uU(3,") "),n.qZA()),2&r){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 r{constructor(p){this.gql=p,this.debouncedQuery=new E.xQ,this.initialPageSize=25,this.fetchMorePageSize=25,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.sortColumns=S.IRu}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:S.IRu.LastAction,direction:S.SrV.Desc}});let p=this.queryRef.valueChanges;this.isLoading$=p.pipe((0,w.j)("loading"),(0,F.O)(!0)),this.users$=p.pipe((0,w.j)("data","users","edges"),(0,R.U)(f=>f.map(k=>k.node))),this.filteredCount$=p.pipe((0,w.j)("data","users","totalCount")),this.filteredCount$.pipe((0,K.q)(1)).subscribe(f=>this.totalCount=f),this.filteredCount$.subscribe(f=>{ff&&(this.visibleCount=f))}),this.pageInfo$=p.pipe((0,w.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,J._)(p)})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(p){this.queryRef.fetchMore({variables:{first:this.fetchMorePageSize,after:p}}),this.loadedPages+=1}}return r.\u0275fac=function(p){return new(p||r)(n.Y36(S.tJ6))},r.\u0275cmp=n.Xpm({type:r,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(Y){return f.onSortChanged(Y)}),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(Y){return f.nameInput=Y}),n.qZA(),n.qZA(),n.TgZ(25,"th"),n.TgZ(26,"cvc-clearable-input-filter",12),n.NdJ("inputModelChange",function(Y){return f.orgNameInput=Y}),n.qZA(),n.qZA(),n.TgZ(27,"th"),n.TgZ(28,"nz-select",13),n.NdJ("ngModelChange",function(){return f.onModelChanged()})("ngModelChange",function(Y){return f.roleInput=Y}),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,ne,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 k=n.MAs(2),Y=n.MAs(39);n.Q6J("nzTitle",Y),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",k.data),n.xp6(1),n.Q6J("ngrxLet",f.pageInfo$)}},directives:[q.bd,b.N8,b.Om,b.$Z,b.Uo,b._C,b.qD,b.qn,L.SY,Z.Ls,O.w,H.p,V.Vq,$.JJ,$.On,V.Ip,b.p0,o.sg,z.I,o.O5,U.$,h.m,x.eJ,I.ix,j.dQ,o.tP,_.ZU],pipes:[x.fM,W.I,G.wr],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),r})();function ze(r,d){1&r&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Contributor Docs "),n.qZA())}const Ce=[{path:"",component:(()=>{class r{constructor(){}}return r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=n.Xpm({type:r,selectors:[["app-users"]],decls:1,vars:0,template:function(p,f){1&p&&n._UZ(0,"router-outlet")},directives:[y.lC],styles:[""]}),r})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=n.Xpm({type:r,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:[v.I,A.$O,A.u5,T.SK,T.t3,Z.Ls,O.w,_.ZU,e.NU,e.$1,I.ix,he],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),r})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,7600)).then(r=>r.UsersDetailModule)}]}]}];let ve=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[y.Bz.forChild(Ce)],y.Bz]}),r})();var Te=a(4125),xe=a(3630),Ze=a(7345),be=a(9476),se=a(9444),Ue=a(7026),Me=a(897);let ye=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[o.ez,$.u5,x.WG,Z.PV,I.sL,L.cg,b.HQ,V.LV,q.vh,_.ZJ,Me.$,Te.k,xe.X,Ze.W,se.s,G.$L.forChild({formatter:{useClass:Ue.x,provide:G.KP}}),be.L]]}),r})();var Ae=a(5630);let Oe=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[o.ez,A.KJ,Z.PV,T.Jb,I.sL,e.zf,_.ZJ,Ae.D,ye]]}),r})();var Ie=a(9441);let Se=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[o.ez,Z.PV,Ie.s]]}),r})();var Pe=a(7600),ce=a(5291);let le=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[o.ez,ce.t]]}),r})();var Ne=a(767);let Je=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[o.ez,Ne.Q]]}),r})();var Ee=a(2832);let pe=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[o.ez,Ee.W]]}),r})();var Qe=a(7525),De=a(1150),ke=a(6114),Ye=a(2712),Fe=a(3212);let B=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[o.ez,$.u5,x.WG,L.cg,Qe.j,T.Jb,I.sL,q.vh,Z.PV,ke.Wr,Ye.FT,Fe.E,se.s,De.N]]}),r})(),Le=(()=>{class r{}return r.\u0275fac=function(p){return new(p||r)},r.\u0275mod=n.oAB({type:r}),r.\u0275inj=n.cJS({imports:[[o.ez,y.Bz,x.WG,ve,Oe,Se,Pe.UsersDetailModule,le,Je,pe,B]]}),r})()}}]); \ No newline at end of file diff --git a/server/public/8533.7ecc98aa50eefef8.js b/server/public/8533.7ecc98aa50eefef8.js new file mode 100644 index 000000000..4c0424497 --- /dev/null +++ b/server/public/8533.7ecc98aa50eefef8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8533],{8616:(F,O,t)=>{t.d(O,{u:()=>i});var p=t(5e3),n=t(685),e=t(1912),C=t(3618),x=t(647);function r(l,c){1&l&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function T(l,c){1&l&&p._UZ(0,"cvc-login-button")}function y(l,c){1&l&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let i=(()=>{class l{}return l.\u0275fac=function(g){return new(g||l)},l.\u0275cmp=p.Xpm({type:l,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(g,d){if(1&g&&(p.TgZ(0,"nz-empty",0),p.YNc(1,r,2,0,"ng-template",null,1,p.W1O),p.YNc(3,T,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,y,2,0,"ng-template",null,3,p.W1O)),2&g){const M=p.MAs(2),o=p.MAs(4),D=p.MAs(6);p.Q6J("nzNotFoundImage",D)("nzNotFoundContent",M)("nzNotFoundFooter",o)}},directives:[n.p9,e.s,C.ZU,x.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),l})()},9386:(F,O,t)=>{t.d(O,{a:()=>T});var p=t(9808),n=t(1844),e=t(685),C=t(647),x=t(3618),r=t(5e3);let T=(()=>{class y{}return y.\u0275fac=function(l){return new(l||y)},y.\u0275mod=r.oAB({type:y}),y.\u0275inj=r.cJS({imports:[[p.ez,n.B,e.Xo,C.PV,x.ZJ]]}),y})()},7701:(F,O,t)=>{t.d(O,{j:()=>A});var p=t(6654),n=t(5e3),e=t(9808),C=t(325),x=t(8481),r=t(3610),T=t(4850),y=t(712),i=t(7484),l=t(647),c=t(6550),g=t(3098),d=t(6949);function M(s,z){if(1&s&&(n._UZ(0,"i",7),n._uU(1)),2&s){const v=n.oxw().ngIf;n.xp6(1),n.hij(" ",v.name," ")}}function o(s,z){if(1&s&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&s){const v=n.oxw(2).ngIf;n.Q6J("href",v.url),n.xp6(1),n.hij(" ",v.soid," ")}}function D(s,z){if(1&s&&n.YNc(0,o,2,2,"cvc-link-tag",8),2&s){const v=n.oxw().ngIf;n.Q6J("ngIf","N/A"!=v.soid)}}function L(s,z){if(1&s&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,M,2,1,"ng-template",null,3,n.W1O),n.YNc(4,D,1,1,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&s){const v=z.ngIf,V=n.MAs(3),U=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",V)("nzExtra",U),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",v.variantCount," ")}}let Z=(()=>{class s{constructor(v){this.gql=v}ngOnInit(){if(null==this.variantTypeId)throw new Error("cvc-variant-type-popover requires valid variantTypeId input.");this.variantType$=this.gql.watch({variantTypeId:this.variantTypeId}).valueChanges.pipe((0,T.U)(({data:v})=>v.variantTypePopover))}}return s.\u0275fac=function(v){return new(v||s)(n.Y36(y.tw_))},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-variant-type-popover"]],inputs:{variantTypeId:"variantTypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2"],["nz-icon","","nzType","civic-varianttype",1,"variant-type-tag-icon"],["tooltip","View on SequenceOntology.org",3,"href",4,"ngIf"],["tooltip","View on SequenceOntology.org",3,"href"]],template:function(v,V){1&v&&(n.TgZ(0,"div",0),n.YNc(1,L,9,4,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&v&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,V.variantType$)))},directives:[e.O5,i.bd,l.Ls,c.l,g.R7,g.uj],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}"]}),s})();function N(s,z){}function S(s,z){if(1&s&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,N,0,0,"ng-template",6),n.qZA(),n.BQk()),2&s){const v=n.oxw(),V=n.MAs(2);n.xp6(1),n.Q6J("routerLink",v.variantType.link),n.xp6(1),n.Q6J("ngTemplateOutlet",V)}}function h(s,z){}function P(s,z){if(1&s&&(n.TgZ(0,"nz-tag",9),n.YNc(1,h,0,0,"ng-template",6),n.qZA()),2&s){n.oxw();const v=n.MAs(2);n.oxw();const V=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",v),n.xp6(1),n.Q6J("ngTemplateOutlet",V)}}function f(s,z){if(1&s&&n._UZ(0,"cvc-variant-type-popover",10),2&s){const v=n.oxw(2);n.Q6J("variantTypeId",v.variantType.id)}}function E(s,z){if(1&s&&(n.YNc(0,P,2,3,"nz-tag",7),n.YNc(1,f,1,1,"ng-template",null,8,n.W1O)),2&s){const v=n.oxw(),V=n.MAs(6);n.Q6J("ngIf",v.enablePopover)("ngIfElse",V)}}function u(s,z){}function I(s,z){if(1&s&&n.YNc(0,u,0,0,"ng-template",6),2&s){n.oxw();const v=n.MAs(2);n.Q6J("ngTemplateOutlet",v)}}function a(s,z){}function m(s,z){if(1&s&&(n.TgZ(0,"nz-tag"),n.YNc(1,a,0,0,"ng-template",6),n.qZA()),2&s){n.oxw();const v=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",v)}}function _(s,z){if(1&s&&(n._UZ(0,"i",11),n._uU(1)),2&s){const v=n.oxw();n.xp6(1),n.hij(" ",v.variantType.name,"\n")}}let A=(()=>{class s extends p.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.variantType.id}ngOnInit(){if(void 0===this.variantType)throw new Error("cvc-variant-type-tag requires LinkableVariantType input, none supplied.")}}return s.\u0275fac=function(v){return new(v||s)},s.\u0275cmp=n.Xpm({type:s,selectors:[["cvc-variant-type-tag"]],inputs:{variantType:"variantType",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["noPopover",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf","ngIfElse"],["variantTypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"variantTypeId"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone","nzTwotoneColor","#33B358"]],template:function(v,V){if(1&v&&(n.YNc(0,S,3,2,"ng-container",0),n.YNc(1,E,3,2,"ng-template",null,1,n.W1O),n.YNc(3,I,1,1,"ng-template",null,2,n.W1O),n.YNc(5,m,2,1,"ng-template",null,3,n.W1O),n.YNc(7,_,2,1,"ng-template",null,4,n.W1O)),2&v){const U=n.MAs(4);n.Q6J("ngIf",V.linked)("ngIfElse",U)}},directives:[e.O5,C.yS,e.tP,x.j,r.lU,Z,l.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),s})()},8645:(F,O,t)=>{t.d(O,{M:()=>g});var p=t(9808),n=t(325),e=t(8481),C=t(7484),x=t(3630),r=t(3098),T=t(6949),y=t(647),i=t(5e3);let l=(()=>{class d{}return d.\u0275fac=function(o){return new(o||d)},d.\u0275mod=i.oAB({type:d}),d.\u0275inj=i.cJS({imports:[[p.ez,T.WG,y.PV,C.vh,r.q6,x.X]]}),d})();var c=t(3610);let g=(()=>{class d{}return d.\u0275fac=function(o){return new(o||d)},d.\u0275mod=i.oAB({type:d}),d.\u0275inj=i.cJS({imports:[[p.ez,n.Bz,y.PV,e.X,c.$6,l]]}),d})()},9990:(F,O,t)=>{t.d(O,{M:()=>l});var p=t(9808),n=t(8776),e=t(5e3),C=t(656),x=t(4182);const T={name:"ensembl-version",validation:(c,g)=>{if(null==c.value)return null;{let d=+c.value;return d<75||d>150?{"ensembl-version":!0}:null}}},y={name:"ensembl-version",message:(c,g)=>{var d;return`${null===(d=g.formControl)||void 0===d?void 0:d.value} is not a valid version of Ensembl. Must be an number between 75 and the latest version of Ensembl.`}},i={name:"cvc-ensembl-input",component:(()=>{class c extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{label:"Ensembl Version",helpText:"Enter a valid Ensembl database version (e.g. 75)."},validators:{validation:["ensembl-version"]}}}}return c.\u0275fac=function(){let g;return function(M){return(g||(g=e.n5z(c)))(M||c)}}(),c.\u0275cmp=e.Xpm({type:c,selectors:[["cvc-ensembl-input-type"]],features:[e.qOj],decls:1,vars:2,consts:[[3,"formControl","formlyAttributes"]],template:function(d,M){1&d&&e._UZ(0,"nz-input-number",0),2&d&&e.Q6J("formControl",M.formControl)("formlyAttributes",M.field)},directives:[C._,x.JJ,x.oH,n.VQ],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),c})(),wrappers:["form-field"]};let l=(()=>{class c{}return c.\u0275fac=function(d){return new(d||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[p.ez,x.u5,x.UX,n.X0.forChild({types:[i],validators:[T],validationMessages:[y]}),C.Z]]}),c})()},9911:(F,O,t)=>{t.d(O,{G:()=>y});var p=t(9808),n=t(8776),e=t(5e3),C=t(7484);const r={name:"variant-coordinates-card",component:(()=>{class i extends n.fS{constructor(){super(...arguments),this.defaultOptions={templateOptions:{isFusionVariant:!1}}}}return i.\u0275fac=function(){let l;return function(g){return(l||(l=e.n5z(i)))(g||i)}}(),i.\u0275cmp=e.Xpm({type:i,selectors:[["cvc-variant-coordinates-card-type"]],features:[e.qOj],decls:3,vars:1,consts:[[3,"nzTitle"],["fieldComponent",""]],template:function(c,g){1&c&&(e.TgZ(0,"nz-card",0),e.GkF(1,null,1),e.qZA()),2&c&&e.Q6J("nzTitle",g.to.label)},directives:[C.bd],styles:[""],changeDetection:0}),i})()};var T=t(4182);let y=(()=>{class i{}return i.\u0275fac=function(c){return new(c||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[p.ez,T.UX,n.X0.forChild({types:[r]}),C.vh]]}),i})()},6501:(F,O,t)=>{t.d(O,{r:()=>S});var p=t(9808),n=t(8776),e=t(8929),C=t(7625),x=t(373),r=t(5e3),T=t(712),y=t(8054),i=t(4182),l=t(6949),c=t(7701);function g(h,P){if(1&h&&(r.TgZ(0,"nz-option",6),r._uU(1),r.qZA()),2&h){const f=P.$implicit;r.hYB("nzLabel","",f.name," (",f.soid,")"),r.Q6J("nzValue",f),r.xp6(1),r.AsE(" ",f.name," (",f.soid,") ")}}function d(h,P){if(1&h&&(r.ynx(0),r.YNc(1,g,2,5,"nz-option",5),r.BQk()),2&h){const f=P.ngrxLet;r.xp6(1),r.Q6J("ngForOf",f)}}function M(h,P){1&h&&r._uU(0," No variant type found in CIViC that matches the string provided. ")}function o(h,P){if(1&h){const f=r.EpF();r.ynx(0),r.TgZ(1,"nz-select",2),r.NdJ("nzOnSearch",function(u){return r.CHM(f),r.oxw().to.onSearch(u)}),r.YNc(2,d,2,1,"ng-container",3),r.qZA(),r.YNc(3,M,1,0,"ng-template",null,4,r.W1O),r.BQk()}if(2&h){const f=r.MAs(4),E=r.oxw();r.xp6(1),r.Q6J("formControl",E.formControl)("formlyAttributes",E.field)("nzPlaceHolder",E.to.placeholder?E.to.placeholder:null)("nzNotFoundContent",f)("nzShowArrow",E.to.showArrow)("nzFilterOption",E.to.filterOption),r.xp6(1),r.Q6J("ngrxLet",E.variantTypes$)}}function D(h,P){if(1&h&&r._UZ(0,"cvc-variant-type-tag",7),2&h){const f=r.oxw();r.Q6J("variantType",f.formControl.value)}}const Z={name:"variant-type-input",component:(()=>{class h extends n.fS{constructor(f){super(),this.variantTypeTypeaheadQuery=f,this.destroy$=new e.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Variant Types",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.variantTypeTypeaheadQuery.watch({name:""}),this.variantTypes$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,x.j)("data","variantTypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=f=>{var E;this.to.fieldValue=f,this.to.fieldLength=f.length,!(f.lengththis.to.maxLength)&&(null===(E=this.queryRef)||void 0===E||E.refetch({name:f}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return h.\u0275fac=function(f){return new(f||h)(r.Y36(T.BnY))},h.\u0275cmp=r.Xpm({type:h,selectors:[["cvc-variant-type-input-type"]],features:[r.qOj],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"variantType"]],template:function(f,E){if(1&f&&(r.YNc(0,o,5,7,"ng-container",0),r.YNc(1,D,1,1,"ng-template",null,1,r.W1O)),2&f){const u=r.MAs(2);r.Q6J("ngIf",!(null!=E.formControl.value&&E.formControl.value.id))("ngIfElse",u)}},directives:[p.O5,y.Vq,i.JJ,i.oH,n.VQ,l.eJ,p.sg,y.Ip,c.j],styles:[""]}),h})()};var N=t(8645);let S=(()=>{class h{}return h.\u0275fac=function(f){return new(f||h)},h.\u0275mod=r.oAB({type:h}),h.\u0275inj=r.cJS({imports:[[p.ez,i.UX,n.X0.forChild({types:[Z]}),l.WG,y.LV,N.M]]}),h})()},6738:(F,O,t)=>{function p(i){let l={value:void 0,unset:void 0};return i&&i.trim().length>0?l.value=i.trim():l.unset=!0,l}function n(i){let l={value:void 0,unset:void 0};return void 0!==i?l.value=i:l.unset=!0,l}t.d(O,{aP:()=>y,li:()=>e,Zg:()=>C,_$:()=>x,uP:()=>n,dh:()=>r,xt:()=>p});var e=(()=>{return(i=e||(e={}))[i.NotApplicable=0]="NotApplicable",i[i.NoneFound=1]="NoneFound",i[i.Found=2]="Found",e;var i})();function C(i,l){let c,g,d;return l==e.Found?(c=void 0,g=void 0,d=i):l==e.NoneFound?(g=!0,c=void 0,d=void 0):(c=!0,g=void 0,d=void 0),{ids:d?d.map(M=>+M):void 0,noneFound:g,notApplicable:c}}function x(i){return i?{chromosome:T(i.chromosome),representativeTranscript:T(i.representativeTranscript),start:i.start?+i.start:void 0,stop:i.stop?+i.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function r(i){let l={value:void 0,unset:void 0};return i?l.value=i:l.unset=!0,l}function T(i){let l;return l=i&&i.length>0?i:void 0,l}const y=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},7338:(F,O,t)=>{t.d(O,{z:()=>I});var p=t(9808),n=t(9444),e=t(6949),C=t(8776),x=t(7484),r=t(5482),T=t(4546),y=t(1894),i=t(647),l=t(3610),c=t(8144),g=t(3618),d=t(5109),M=t(6789),o=t(5e3),D=t(2313);let L=(()=>{class a{constructor(_){this.sanitizer=_}transform(_){return this.sanitizer.bypassSecurityTrustHtml(_)}}return a.\u0275fac=function(_){return new(_||a)(o.Y36(D.H7,16))},a.\u0275pipe=o.Yjl({name:"sanitizeHtml",type:a,pure:!0}),a})();function Z(a,m){if(1&a&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&a){const _=o.oxw(2);o.xp6(1),o.Oqu(_.to.label)}}function N(a,m){if(1&a&&o._UZ(0,"i",11),2&a){o.oxw();const _=o.MAs(3);o.Q6J("nzPopoverContent",_)}}function S(a,m){if(1&a&&(o._UZ(0,"span",12),o.ALo(1,"sanitizeHtml")),2&a){const _=o.oxw(3);o.Q6J("innerHtml",o.lcZ(1,1,_.to.helpText),o.oJD)}}function h(a,m){1&a&&(o.ynx(0),o.YNc(1,N,1,1,"i",9),o.YNc(2,S,2,3,"ng-template",null,10,o.W1O),o.BQk())}function P(a,m){if(1&a&&(o.ynx(0),o.TgZ(1,"nz-form-label",7),o.TgZ(2,"nz-space"),o.YNc(3,Z,2,1,"span",8),o.YNc(4,h,4,0,"ng-container",1),o.qZA(),o.qZA(),o.BQk()),2&a){const _=o.oxw();o.xp6(1),o.Q6J("nzRequired",_.to.required&&!0!==_.to.hideRequiredMarker)("nzFor",_.id),o.xp6(3),o.Q6J("ngIf",_.to.helpText)}}const f=function(a){return{hidden:a}},u={wrappers:[{name:"form-field",component:(()=>{class a extends C.n2{get errorState(){return this.showError?"error":""}}return a.\u0275fac=function(){let m;return function(A){return(m||(m=o.n5z(a)))(A||a)}}(),a.\u0275cmp=o.Xpm({type:a,selectors:[["cvc-form-field-wrapper"]],features:[o.qOj],decls:10,vars:7,consts:[[3,"ngClass"],[4,"ngIf"],[3,"nzValidateStatus"],["fieldComponent",""],["nzType","danger"],[3,"field"],["nzType","secondary"],[3,"nzRequired","nzFor"],[4,"nzSpaceItem"],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent",4,"nzSpaceItem"],["help",""],["nz-icon","","nzType","question-circle","nzTheme","outline","nz-popover","",3,"nzPopoverContent"],[3,"innerHtml"]],template:function(_,A){1&_&&(o.TgZ(0,"div",0),o.TgZ(1,"nz-form-item"),o.YNc(2,P,5,3,"ng-container",1),o.TgZ(3,"nz-form-control",2),o.GkF(4,null,3),o.qZA(),o.TgZ(6,"nz-typography",4),o._UZ(7,"formly-validation-message",5),o.qZA(),o.TgZ(8,"nz-typography",6),o._uU(9),o.qZA(),o.qZA(),o.qZA()),2&_&&(o.Q6J("ngClass",o.VKq(5,f,!0===A.to.hidden)),o.xp6(2),o.Q6J("ngIf",A.to.label&&!0!==A.to.hideLabel),o.xp6(1),o.Q6J("nzValidateStatus",A.errorState),o.xp6(4),o.Q6J("field",A.field),o.xp6(2),o.hij(" ",A.to.optionText," "))},directives:[p.mk,y.SK,T.Nx,p.O5,y.t3,T.iK,c.NU,c.$1,i.Ls,l.lU,T.Fd,g.ZU,C.u_],pipes:[L],styles:[".hidden[_ngcontent-%COMP%]{display:none}"]}),a})()}]};let I=(()=>{class a{}return a.\u0275fac=function(_){return new(_||a)},a.\u0275mod=o.oAB({type:a}),a.\u0275inj=o.cJS({imports:[[p.ez,e.WG,C.X0.forChild(u),y.Jb,x.vh,r.cD,M._,d.s,T.U5,i.PV,c.zf,l.$6,n.s,g.ZJ]]}),a})()},6462:(F,O,t)=>{t.d(O,{i:()=>f,m:()=>E});var p=t(655),n=t(1159),e=t(5e3),C=t(4182),x=t(8929),r=t(3753),T=t(7625),y=t(9439),i=t(1721),l=t(5664),c=t(226),g=t(2643),d=t(9808),M=t(647),o=t(969);const D=["switchElement"];function L(u,I){1&u&&e._UZ(0,"i",8)}function Z(u,I){if(1&u&&(e.ynx(0),e._uU(1),e.BQk()),2&u){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzCheckedChildren)}}function N(u,I){if(1&u&&(e.ynx(0),e.YNc(1,Z,2,1,"ng-container",9),e.BQk()),2&u){const a=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",a.nzCheckedChildren)}}function S(u,I){if(1&u&&(e.ynx(0),e._uU(1),e.BQk()),2&u){const a=e.oxw(2);e.xp6(1),e.Oqu(a.nzUnCheckedChildren)}}function h(u,I){if(1&u&&e.YNc(0,S,2,1,"ng-container",9),2&u){const a=e.oxw();e.Q6J("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let f=(()=>{class u{constructor(a,m,_,A,s,z){this.nzConfigService=a,this.host=m,this.ngZone=_,this.cdr=A,this.focusMonitor=s,this.directionality=z,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new x.xQ}updateValue(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,T.R)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,r.R)(this.host.nativeElement,"click").pipe((0,T.R)(this.destroy$)).subscribe(a=>{a.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,r.R)(this.switchElement.nativeElement,"keydown").pipe((0,T.R)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:m}=a;m!==n.oh&&m!==n.SV&&m!==n.L_&&m!==n.K5||(a.preventDefault(),this.ngZone.run(()=>{m===n.oh?this.updateValue(!1):m===n.SV?this.updateValue(!0):(m===n.L_||m===n.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,T.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 u.\u0275fac=function(a){return new(a||u)(e.Y36(y.jY),e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(l.tE),e.Y36(c.Is,8))},u.\u0275cmp=e.Xpm({type:u,selectors:[["nz-switch"]],viewQuery:function(a,m){if(1&a&&e.Gf(D,7),2&a){let _;e.iGM(_=e.CRH())&&(m.switchElement=_.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[e._Bn([{provide:C.JU,useExisting:(0,e.Gpc)(()=>u),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,m){if(1&a&&(e.TgZ(0,"button",0,1),e.TgZ(2,"span",2),e.YNc(3,L,1,0,"i",3),e.qZA(),e.TgZ(4,"span",4),e.YNc(5,N,2,1,"ng-container",5),e.YNc(6,h,1,1,"ng-template",null,6,e.W1O),e.qZA(),e._UZ(8,"div",7),e.qZA()),2&a){const _=e.MAs(7);e.ekj("ant-switch-checked",m.isChecked)("ant-switch-loading",m.nzLoading)("ant-switch-disabled",m.nzDisabled)("ant-switch-small","small"===m.nzSize)("ant-switch-rtl","rtl"===m.dir),e.Q6J("disabled",m.nzDisabled)("nzWaveExtraNode",!0),e.xp6(3),e.Q6J("ngIf",m.nzLoading),e.xp6(2),e.Q6J("ngIf",m.isChecked)("ngIfElse",_)}},directives:[g.dQ,d.O5,M.Ls,o.f],encapsulation:2,changeDetection:0}),(0,p.gn)([(0,i.yF)()],u.prototype,"nzLoading",void 0),(0,p.gn)([(0,i.yF)()],u.prototype,"nzDisabled",void 0),(0,p.gn)([(0,i.yF)()],u.prototype,"nzControl",void 0),(0,p.gn)([(0,y.oS)()],u.prototype,"nzSize",void 0),u})(),E=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.oAB({type:u}),u.\u0275inj=e.cJS({imports:[[c.vT,d.ez,g.vG,M.PV,o.T]]}),u})()}}]); \ No newline at end of file diff --git a/server/public/8571.600728d2995f4bfc.js b/server/public/8571.db773ad23e0832c5.js similarity index 54% rename from server/public/8571.600728d2995f4bfc.js rename to server/public/8571.db773ad23e0832c5.js index af7481c2a..f975c8efa 100644 --- a/server/public/8571.600728d2995f4bfc.js +++ b/server/public/8571.db773ad23e0832c5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8571],{8571:(Ve,T,i)=>{i.r(T),i.d(T,{EvidenceReviseModule:()=>Ne});var d=i(9808),c=i(325),p=i(373),E=i(1059),Z=i(4850),e=i(5e3),f=i(712),C=i(9350),P=i(8992),m=i(8144),I=i(3618),A=i(3193),b=i(8664),u=i(1945),O=i(647),l=i(1894),F=i(8616),h=i(6949);function J(t,o){if(1&t&&(e.TgZ(0,"span",12),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(2),e.Oqu(n.name)}}function Q(t,o){if(1&t&&(e.TgZ(0,"span",13),e.TgZ(1,"a",14),e._UZ(2,"cvc-gene-tag",15),e.qZA(),e.TgZ(3,"a",14),e._UZ(4,"cvc-variant-tag",16),e.qZA(),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",n.gene.id,""),e.xp6(1),e.Q6J("gene",n.gene),e.xp6(1),e.MGl("routerLink","/variants/",n.variant.id,""),e.xp6(1),e.Q6J("variant",n.variant)}}function U(t,o){1&t&&(e.TgZ(0,"nz-space",9),e.YNc(1,J,4,1,"span",10),e.YNc(2,Q,5,4,"span",11),e.qZA())}function $(t,o){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function Y(t,o){1&t&&(e.TgZ(0,"nz-row",17),e.TgZ(1,"div",18),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function L(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,U,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-page-header",3),e.TgZ(5,"nz-page-header-title",4),e._uU(6," REVISE "),e._UZ(7,"i",5),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",6),e.YNc(11,$,2,0,"div",7),e.ALo(12,"ngrxPush"),e.YNc(13,Y,3,0,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=o.ngIf,r=e.MAs(3),s=e.MAs(14),a=e.oxw();e.xp6(1),e.Q6J("displayName",n.name)("relationsTpl",r),e.xp6(7),e.hij(" ",n.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,a.isSignedIn$))("ngIfElse",s)}}let N=(()=>{class t{constructor(n,r,s){this.gql=n,this.route=r,this.viewerService=s,this.routeSub=this.route.params.subscribe(a=>{let g=this.gql.watch({evidenceId:+a.evidenceId}).valueChanges;this.loading$=g.pipe((0,p.j)("loading"),(0,E.O)(!0)),this.evidence$=g.pipe((0,p.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,p.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,p.j)("flags","totalCount")),this.revisionsTotal$=this.evidence$.pipe((0,p.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.pHu),e.Y36(c.gz),e.Y36(C.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,r){1&n&&(e.YNc(0,L,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,r.evidence$))},directives:[d.O5,P.I,m.NU,m.$1,I.ZU,c.yS,A.H,b.I,u.$O,u.u9,O.Ls,u.u5,c.lC,l.SK,l.t3,F.u],pipes:[d.Ov,h.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var V=i(7484),j=i(6559),G=i(3773),B=i(8390),D=i(4375),W=i(7008),H=i(1825),M=i(8776),X=i(6042),R=i(2359),y=i(4546),K=i(5109),v=i(4182),w=i(5743),_=i(5452),k=i(5457),q=i(8006),ee=i(7075),te=i(7695),ne=i(7462),ie=i(3594),oe=i(3643),re=i(1135),S=i(7525),ae=i(2789),se=i(5932),de=i(3416),ce=i(2480),le=i(1830),ge=i(4581),pe=i(5926),me=i(5472),ve=i(4889),ue=i(7338);let fe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[],imports:[[d.ez,c.Bz,v.UX,K.s,y.U5,R.L,l.Jb,X.sL,S.j,M.X0,H.A,W.B,D.R,te.C,ee.l,B.N,G.g,_.C,w.W,k.$,q.I,ne.o,ie.q,oe.q,re.C,ae.o,se.A,de.g,ce.r,le.S,ge.e,pe.J,me.r,ue.z,ve.E]]}),t})(),he=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,h.WG,l.Jb,V.vh,j.H0,m.zf,fe]]}),t})();var x=i(6738),ye=i(8929),z=i(7625),xe=i(6123),ze=i(6064),Te=i(9169),Ie=i(822);function Oe(t,o){1&t&&e.GkF(0)}function Me(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(s){return e.CHM(n),e.oxw(2).formModel=s}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function Re(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const s=e.oxw();return s.submitRevision(s.formModel)}),e.YNc(1,Oe,1,0,"ng-container",4),e.YNc(2,Me,1,4,"formly-form",5),e.qZA()}if(2&t){const n=e.oxw(),r=e.MAs(3);e.Q6J("formGroup",n.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",r),e.xp6(1),e.Q6J("ngIf",!n.success)}}function Se(t,o){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function Ee(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function Ze(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,Ee,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function Ce(t,o){if(1&t&&(e.YNc(0,Se,3,1,"ng-container",7),e.YNc(1,Ze,4,1,"ng-container",7)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let Pe=(()=>{class t{constructor(n,r,s){this.suggestRevisionGQL=n,this.networkErrorService=r,this.revisableFieldsGQL=s,this.formGroup=new v.cw({}),this.formOptions={formState:new ze._},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new xe.U(r),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Evidence Item Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"variant",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant",addText:"Specify a Variant",maxCount:1,required:!0,helpText:"The most specific description of the variant that the underlying source allows."},fieldArray:{type:"variant-input",templateOptions:{required:!0,allowCreate:!1}}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1,required:!0},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance.",required:!0}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new ye.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).subscribe(({data:{evidenceItem:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var r,s;return{fields:Object.assign(Object.assign({},n),{variant:[n.variant],source:[n.source],drugs:n.drugs.length>0?n.drugs:[],disease:[n.disease],comment:null===(r=this.formModel)||void 0===r?void 0:r.fields.comment,drugInteractionType:n.drugInteractionType,organization:null===(s=this.formModel)||void 0===s?void 0:s.fields.organization,evidenceRating:n.evidenceRating})}}submitRevision(n){let r=this.toRevisionInput(n);if(r){let s=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:r});s.submitSuccess$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{a&&(this.success=!0)}),s.submitError$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{a&&(this.errorMessages=a,this.success=!1)}),s.isSubmitting$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{this.loading=a})}}toRevisionInput(n){var r,s;if(n){const a=n.fields;return{id:a.id,comment:a.comment,fields:{variantOrigin:a.variantOrigin,description:x.xt(a.description),variantId:a.variant[0].id,sourceId:a.source[0].id,evidenceType:a.evidenceType,evidenceDirection:a.evidenceDirection,clinicalSignificance:a.clinicalSignificance,diseaseId:x.uP(null===(r=a.disease[0])||void 0===r?void 0:r.id),evidenceLevel:a.evidenceLevel,phenotypeIds:a.phenotypes.map(g=>g.id),rating:a.evidenceRating,drugIds:a.drugs.map(g=>g.id),drugInteractionType:x.uP(a.drugInteractionType)},organizationId:null===(s=n.fields.organization)||void 0===s?void 0:s.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.Vj7),e.Y36(Te.Y),e.Y36(f.Q_P))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,r){1&n&&(e.TgZ(0,"nz-spin",0),e.YNc(1,Re,3,3,"form",1),e.qZA(),e.YNc(2,Ce,2,2,"ng-template",null,2,e.W1O)),2&n&&(e.Q6J("nzSpinning",r.loading),e.xp6(1),e.Q6J("ngIf",r.formModel))},directives:[S.W,d.O5,v._Y,v.JL,y.Lr,v.sg,d.tP,M.T7,l.SK,y.Nx,Ie.V,R.r,c.yS],styles:[""]}),t})();function Ae(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-evidence-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("evidenceId",n.evidenceId)}}function be(t,o){1&t&&e._uU(0,"Loading Evidence...")}const Fe=[{path:"",component:N,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(r=>{this.evidenceId=+r.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(c.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingEvidence",""],[3,"evidenceId"]],template:function(n,r){if(1&n&&(e.YNc(0,Ae,2,1,"ng-container",0),e.YNc(1,be,1,0,"ng-template",null,1,e.W1O)),2&n){const s=e.MAs(2);e.Q6J("ngIf",r.evidenceId)("ngIfElse",s)}},directives:[d.O5,Pe],styles:[""]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Je=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.Bz.forChild(Fe),he],c.Bz]}),t})();var Qe=i(5630),Ue=i(3309),$e=i(4867),Ye=i(4623),Le=i(9386);let Ne=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,Je,u.KJ,m.zf,O.PV,I.ZJ,m.zf,Ue.U,$e.Q,Qe.D,Ye.K,Le.a,h.WG,l.Jb]]}),t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8571],{8571:(Ve,T,i)=>{i.r(T),i.d(T,{EvidenceReviseModule:()=>Ne});var d=i(9808),c=i(325),p=i(373),E=i(1059),Z=i(4850),e=i(5e3),f=i(712),C=i(9350),P=i(8992),m=i(8144),I=i(3618),A=i(3193),b=i(8664),u=i(1945),O=i(647),l=i(1894),F=i(8616),h=i(6949);function J(t,o){if(1&t&&(e.TgZ(0,"span",12),e.TgZ(1,"strong"),e._uU(2),e.qZA(),e._uU(3," Parents:"),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(2),e.Oqu(n.name)}}function Q(t,o){if(1&t&&(e.TgZ(0,"span",13),e.TgZ(1,"a",14),e._UZ(2,"cvc-gene-tag",15),e.qZA(),e.TgZ(3,"a",14),e._UZ(4,"cvc-variant-tag",16),e.qZA(),e.qZA()),2&t){const n=e.oxw(2).ngIf;e.xp6(1),e.MGl("routerLink","/genes/",n.gene.id,""),e.xp6(1),e.Q6J("gene",n.gene),e.xp6(1),e.MGl("routerLink","/variants/",n.variant.id,""),e.xp6(1),e.Q6J("variant",n.variant)}}function U(t,o){1&t&&(e.TgZ(0,"nz-space",9),e.YNc(1,J,4,1,"span",10),e.YNc(2,Q,5,4,"span",11),e.qZA())}function $(t,o){1&t&&(e.TgZ(0,"div"),e._UZ(1,"router-outlet"),e.qZA())}function Y(t,o){1&t&&(e.TgZ(0,"nz-row",17),e.TgZ(1,"div",18),e._UZ(2,"cvc-login-prompt"),e.qZA(),e.qZA())}function L(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-section-navigation",1),e.YNc(2,U,3,0,"ng-template",null,2,e.W1O),e.TgZ(4,"nz-page-header",3),e.TgZ(5,"nz-page-header-title",4),e._uU(6," REVISE "),e._UZ(7,"i",5),e._uU(8),e.qZA(),e.TgZ(9,"nz-page-header-content"),e.TgZ(10,"div",6),e.YNc(11,$,2,0,"div",7),e.ALo(12,"ngrxPush"),e.YNc(13,Y,3,0,"ng-template",null,8,e.W1O),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&t){const n=o.ngIf,r=e.MAs(3),s=e.MAs(14),a=e.oxw();e.xp6(1),e.Q6J("displayName",n.name)("relationsTpl",r),e.xp6(7),e.hij(" ",n.name," "),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,5,a.isSignedIn$))("ngIfElse",s)}}let N=(()=>{class t{constructor(n,r,s){this.gql=n,this.route=r,this.viewerService=s,this.routeSub=this.route.params.subscribe(a=>{let g=this.gql.watch({evidenceId:+a.evidenceId}).valueChanges;this.loading$=g.pipe((0,p.j)("loading"),(0,E.O)(!0)),this.evidence$=g.pipe((0,p.j)("data","evidenceItem")),this.commentsTotal$=this.evidence$.pipe((0,p.j)("comments","totalCount")),this.flagsTotal$=this.evidence$.pipe((0,p.j)("flags","totalCount")),this.revisionsTotal$=this.evidence$.pipe((0,p.j)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,Z.U)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.pHu),e.Y36(c.gz),e.Y36(C.a))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName","relationsTpl"],["evidenceRelations",""],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzType","civic:evidence"],[1,"content"],[4,"ngIf","ngIfElse"],["notSignedIn",""],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"gene"],[3,"variant"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(n,r){1&n&&(e.YNc(0,L,15,7,"ng-container",0),e.ALo(1,"async")),2&n&&e.Q6J("ngIf",e.lcZ(1,1,r.evidence$))},directives:[d.O5,P.I,m.NU,m.$1,I.ZU,c.yS,A.H,b.I,u.$O,u.u9,O.Ls,u.u5,c.lC,l.SK,l.t3,F.u],pipes:[d.Ov,h.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),t})();var V=i(7484),j=i(6559),G=i(3773),B=i(8390),D=i(4375),W=i(7008),H=i(1825),M=i(8776),X=i(6042),R=i(2359),y=i(4546),K=i(5109),v=i(4182),w=i(5743),_=i(5452),k=i(5457),q=i(8006),ee=i(3022),te=i(7695),ne=i(7462),ie=i(3594),oe=i(3643),re=i(1135),S=i(7525),ae=i(2789),se=i(5932),de=i(3416),ce=i(2480),le=i(1830),ge=i(4581),pe=i(5926),me=i(5472),ve=i(4889),ue=i(7338);let fe=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[],imports:[[d.ez,c.Bz,v.UX,K.s,y.U5,R.L,l.Jb,X.sL,S.j,M.X0,H.A,W.B,D.R,te.C,ee.e,B.N,G.g,_.C,w.W,k.$,q.I,ne.o,ie.q,oe.q,re.C,ae.o,se.A,de.g,ce.r,le.S,ge.e,pe.J,me.r,ue.z,ve.E]]}),t})(),he=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,h.WG,l.Jb,V.vh,j.H0,m.zf,fe]]}),t})();var x=i(6738),ye=i(8929),z=i(7625),xe=i(6123),ze=i(6064),Te=i(9169),Ie=i(822);function Oe(t,o){1&t&&e.GkF(0)}function Me(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"formly-form",6),e.NdJ("modelChange",function(s){return e.CHM(n),e.oxw(2).formModel=s}),e.qZA()}if(2&t){const n=e.oxw(2);e.Q6J("form",n.formGroup)("fields",n.formFields)("model",n.formModel)("options",n.formOptions)}}function Re(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"form",3),e.NdJ("ngSubmit",function(){e.CHM(n);const s=e.oxw();return s.submitRevision(s.formModel)}),e.YNc(1,Oe,1,0,"ng-container",4),e.YNc(2,Me,1,4,"formly-form",5),e.qZA()}if(2&t){const n=e.oxw(),r=e.MAs(3);e.Q6J("formGroup",n.formGroup),e.xp6(1),e.Q6J("ngTemplateOutlet",r),e.xp6(1),e.Q6J("ngIf",!n.success)}}function Se(t,o){if(1&t&&(e.ynx(0),e.TgZ(1,"nz-form-item"),e._UZ(2,"cvc-form-errors-alert",8),e.qZA(),e.BQk()),2&t){const n=e.oxw(2);e.xp6(2),e.Q6J("errors",n.errorMessages)}}function Ee(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1,"View it on the "),e.TgZ(2,"a",12),e._uU(3,"Revisions Page"),e.qZA(),e._uU(4,"."),e.qZA())}function Ze(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"nz-alert",9),e.YNc(2,Ee,5,0,"ng-template",10,11,e.W1O),e.BQk()),2&t){const n=e.MAs(3);e.xp6(1),e.Q6J("nzDescription",n)}}function Ce(t,o){if(1&t&&(e.YNc(0,Se,3,1,"ng-container",7),e.YNc(1,Ze,4,1,"ng-container",7)),2&t){const n=e.oxw();e.Q6J("ngIf",n.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",n.success)}}let Pe=(()=>{class t{constructor(n,r,s){this.suggestRevisionGQL=n,this.networkErrorService=r,this.revisableFieldsGQL=s,this.formGroup=new v.cw({}),this.formOptions={formState:new ze._},this.success=!1,this.errorMessages=[],this.loading=!1,this.suggestRevisionMutator=new xe.U(r),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Suggest Evidence Item Revision Form"},fieldGroup:[{key:"id",type:"input",hide:!0},{key:"variant",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variant",addText:"Specify a Variant",maxCount:1,required:!0,helpText:"The most specific description of the variant that the underlying source allows. If you need to rename the Variant itself please submit a revision to the Variant instead."},fieldArray:{type:"variant-input",templateOptions:{required:!0,allowCreate:!1}}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Evidence Statement",helpText:'Your original description of evidence from published literature detailing the association or lack of association between a variant and its predictive, prognostic, diagnostic, predisposing, functional or oncogenic value. Data constituting personal or identifying information should not be entered (e.g. protected health information (PHI) as defined by HIPAA in the U.S. and/or comparable laws in your jurisdiction).',placeholder:"No description provided",required:!0}},{key:"source",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",addText:"Specify a Source",maxCount:1,required:!0},fieldArray:{type:"source-input",templateOptions:{required:!0}}},{key:"variantOrigin",type:"variant-origin-select",templateOptions:{required:!0}},{key:"evidenceType",type:"evidence-type-select",templateOptions:{required:!0}},{key:"clinicalSignificance",type:"clinical-significance-select",templateOptions:{required:!0}},{key:"disease",type:"disease-array",templateOptions:{maxCount:1}},{key:"evidenceLevel",type:"evidence-level-select",templateOptions:{required:!0}},{key:"evidenceDirection",type:"evidence-direction-select",templateOptions:{required:!0}},{key:"drugs",type:"drug-array"},{key:"drugInteractionType",type:"drug-interaction-select"},{key:"phenotypes",type:"phenotype-array"},{key:"evidenceRating",type:"rating-input",templateOptions:{label:"Rating",helpText:"Please rate your evidence on a scale of one to five stars. Use the star rating descriptions for guidance.",required:!0}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button",templateOptions:{redirectPath:"../.."}},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Submit Evidence Item Revision",submitSize:"large"}}]}]}ngOnInit(){this.destroy$=new ye.xQ}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).subscribe(({data:{evidenceItem:n}})=>{n&&(this.formModel=this.toFormModel(n))},n=>{console.error("Error retrieving evidenceItem."),console.error(n)},()=>{this.formOptions.updateInitialValue&&this.formOptions.updateInitialValue(),this.formGroup.markAllAsTouched();const n=this.formGroup.get("fields.comment");n&&n.markAsUntouched()})}toFormModel(n){var r,s;return{fields:Object.assign(Object.assign({},n),{variant:[n.variant],source:[n.source],drugs:n.drugs.length>0?n.drugs:[],disease:[n.disease],comment:null===(r=this.formModel)||void 0===r?void 0:r.fields.comment,drugInteractionType:n.drugInteractionType,organization:null===(s=this.formModel)||void 0===s?void 0:s.fields.organization,evidenceRating:n.evidenceRating})}}submitRevision(n){let r=this.toRevisionInput(n);if(r){let s=this.suggestRevisionMutator.mutate(this.suggestRevisionGQL,{input:r});s.submitSuccess$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{a&&(this.success=!0)}),s.submitError$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{a&&(this.errorMessages=a,this.success=!1)}),s.isSubmitting$.pipe((0,z.R)(this.destroy$)).subscribe(a=>{this.loading=a})}}toRevisionInput(n){var r,s;if(n){const a=n.fields;return{id:a.id,comment:a.comment,fields:{variantOrigin:a.variantOrigin,description:x.xt(a.description),variantId:a.variant[0].id,sourceId:a.source[0].id,evidenceType:a.evidenceType,evidenceDirection:a.evidenceDirection,clinicalSignificance:a.clinicalSignificance,diseaseId:x.uP(null===(r=a.disease[0])||void 0===r?void 0:r.id),evidenceLevel:a.evidenceLevel,phenotypeIds:a.phenotypes.map(g=>g.id),rating:a.evidenceRating,drugIds:a.drugs.map(g=>g.id),drugInteractionType:x.uP(a.drugInteractionType)},organizationId:null===(s=n.fields.organization)||void 0===s?void 0:s.id}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(f.Vj7),e.Y36(Te.Y),e.Y36(f.Q_P))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:4,vars:2,consts:[["nzTip","Submitting",3,"nzSpinning"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf"],["formMessages",""],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","options","modelChange",4,"ngIf"],[3,"form","fields","model","options","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Suggested Revision Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],["routerLink","../../revisions"]],template:function(n,r){1&n&&(e.TgZ(0,"nz-spin",0),e.YNc(1,Re,3,3,"form",1),e.qZA(),e.YNc(2,Ce,2,2,"ng-template",null,2,e.W1O)),2&n&&(e.Q6J("nzSpinning",r.loading),e.xp6(1),e.Q6J("ngIf",r.formModel))},directives:[S.W,d.O5,v._Y,v.JL,y.Lr,v.sg,d.tP,M.T7,l.SK,y.Nx,Ie.V,R.r,c.yS],styles:[""]}),t})();function Ae(t,o){if(1&t&&(e.ynx(0),e._UZ(1,"cvc-evidence-revise-form",2),e.BQk()),2&t){const n=e.oxw();e.xp6(1),e.Q6J("evidenceId",n.evidenceId)}}function be(t,o){1&t&&e._uU(0,"Loading Evidence...")}const Fe=[{path:"",component:N,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(r=>{this.evidenceId=+r.evidenceId})}ngOnDestroy(){this.routeParams$.unsubscribe()}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(c.gz))},t.\u0275cmp=e.Xpm({type:t,selectors:[["cvc-evidence-suggest"]],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingEvidence",""],[3,"evidenceId"]],template:function(n,r){if(1&n&&(e.YNc(0,Ae,2,1,"ng-container",0),e.YNc(1,be,1,0,"ng-template",null,1,e.W1O)),2&n){const s=e.MAs(2);e.Q6J("ngIf",r.evidenceId)("ngIfElse",s)}},directives:[d.O5,Pe],styles:[""]}),t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Je=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[c.Bz.forChild(Fe),he],c.Bz]}),t})();var Qe=i(5630),Ue=i(3309),$e=i(4867),Ye=i(4623),Le=i(9386);let Ne=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[[d.ez,Je,u.KJ,m.zf,O.PV,I.ZJ,m.zf,Ue.U,$e.Q,Qe.D,Ye.K,Le.a,h.WG,l.Jb]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/8829.8142f4f45cfadcb2.js b/server/public/8829.8142f4f45cfadcb2.js new file mode 100644 index 000000000..6d07ce3f1 --- /dev/null +++ b/server/public/8829.8142f4f45cfadcb2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8829],{8616:(b,A,t)=>{t.d(A,{u:()=>e});var p=t(5e3),y=t(685),n=t(1912),C=t(3618),v=t(647);function a(o,l){1&o&&(p.TgZ(0,"span"),p._uU(1," You must be logged in to view this page. "),p.qZA())}function O(o,l){1&o&&p._UZ(0,"cvc-login-button")}function f(o,l){1&o&&(p.TgZ(0,"nz-typography",4),p._UZ(1,"i",5),p.qZA())}let e=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=p.Xpm({type:o,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(i,u){if(1&i&&(p.TgZ(0,"nz-empty",0),p.YNc(1,a,2,0,"ng-template",null,1,p.W1O),p.YNc(3,O,1,0,"ng-template",null,2,p.W1O),p.qZA(),p.YNc(5,f,2,0,"ng-template",null,3,p.W1O)),2&i){const s=p.MAs(2),g=p.MAs(4),x=p.MAs(6);p.Q6J("nzNotFoundImage",x)("nzNotFoundContent",s)("nzNotFoundFooter",g)}},directives:[y.p9,n.s,C.ZU,v.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),o})()},9386:(b,A,t)=>{t.d(A,{a:()=>O});var p=t(9808),y=t(1844),n=t(685),C=t(647),v=t(3618),a=t(5e3);let O=(()=>{class f{}return f.\u0275fac=function(o){return new(o||f)},f.\u0275mod=a.oAB({type:f}),f.\u0275inj=a.cJS({imports:[[p.ez,y.B,n.Xo,C.PV,v.ZJ]]}),f})()},1135:(b,A,t)=>{t.d(A,{C:()=>u});var p=t(9808),y=t(4182),n=t(8776),C=t(3793),v=t(304),a=t(8054),O=t(915);const f={Evidence:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{NA:"Clinical Significance is not applicable."},FUNCTIONAL:{GAIN_OF_FUNCTION:"Sequence variant confers an increase in normal gene function",LOSS_OF_FUNCTION:"Sequence variant confers a diminished or abolished function",UNALTERED_FUNCTION:"Gene product of sequence variant is unchanged",NEOMORPHIC:"Sequence variant creates a novel function",DOMINANT_NEGATIVE:"Sequence variant abrogates function of wildtype allele gene product",UNKNOWN:"Sequence variant that cannot be precisely defined by the other listed categories"},ONCOGENIC:{NA:"Clinical Significance is not applicable."}},Assertion:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PATHOGENIC:"Very strong evidence the variant is pathogenic",LIKELY_PATHOGENIC:"Strong evidence (>90% certainty) the variant is pathogenic.",BENIGN:"Very strong evidence the variant is benign",LIKELY_BENIGN:"Not expected to have a major effect on disease",UNCERTAIN_SIGNIFICANCE:"Does not fullfill the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"}}},e={name:"clinical-significance-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Clinical Signficance",helpText:"The impact of the variant for predictive, prognostic, diagnostic, or functional evidence types. For predisposing and oncogenic evidence, impact is only applied at the assertion level and N/A should be selected here.",placeholder:"None specified",options:[]},validators:{validation:["cs-option"]},hooks:{onInit:s=>{var g;const x=s.templateOptions,N=null===(g=null==s?void 0:s.options)||void 0===g?void 0:g.formState;if(!N)return;const R=(null==s?void 0:s.form)?s.form.get("evidenceType"):null;!R||(x.options=N.getOptionsFromEnums(N.getSignificanceOptions(R.value)),x.vcSub=R.valueChanges.subscribe(V=>{x.options=N.getOptionsFromEnums(N.getSignificanceOptions(V)),s.formControl.updateValueAndValidity()}))},onDestroy:s=>{s.templateOptions.vcSub.unsubscribe()}},expressionProperties:{"templateOptions.optionText":(s,g,x)=>{if(g.entityName&&s.evidenceType&&s.clinicalSignificance)return f[g.entityName][s.evidenceType][s.clinicalSignificance]}}}},o={name:"cs-option",validation:(s,g,x)=>{var N,R,V;const w=null===(N=g.options)||void 0===N?void 0:N.formState,J=s.value;if(!J||!w)return null;const U=null===(V=null===(R=s.parent)||void 0===R?void 0:R.get("evidenceType"))||void 0===V?void 0:V.value;return U?w.isValidSignificanceOption(U,J)?null:{"cs-option":U}:null}},l={name:"cs-option",message:(s,g)=>{var x;const N=g.options.formState;return`'${(0,O.E)(null===(x=g.formControl)||void 0===x?void 0:x.value)}' is not a valid Clinical Significance for ${(0,O.E)(s)} ${N.pluralNames.get(N.entityName)}.`}};var i=t(5e3);let u=(()=>{class s{}return s.\u0275fac=function(x){return new(x||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[[p.ez,y.u5,y.UX,a.LV,v.F,C.F,n.X0.forChild({types:[e],validators:[o],validationMessages:[l]})]]}),s})()},5452:(b,A,t)=>{t.d(A,{C:()=>W});var p=t(9808),y=t(8776),n=t(7625),C=t(373),v=t(4850),a=t(8929),O=t(591),f=t(6123),e=t(5e3),o=t(712),l=t(9169),i=t(8054),u=t(4182),s=t(6949),g=t(8144),x=t(3618),N=t(7469),R=t(822),V=t(6042),w=t(2643),J=t(2683),U=t(8926);function I(h,P){if(1&h&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&h){const d=e.oxw().$implicit,T=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,d.label,T.to.searchString),e.oJD)}}function F(h,P){if(1&h&&(e.TgZ(0,"div"),e._UZ(1,"span",12),e.ALo(2,"highlightTypeahead"),e.qZA()),2&h){const d=e.oxw(2).$implicit,T=e.oxw(3);e.xp6(1),e.Q6J("innerHtml",e.xi3(2,1,d.drug.drugAliases.join(", "),T.to.searchString),e.oJD)}}function S(h,P){1&h&&(e.ynx(0),e.YNc(1,F,3,4,"div",11),e.BQk())}function D(h,P){if(1&h&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,I,2,4,"span",8),e.YNc(3,S,2,0,"ng-container",9),e.qZA(),e.qZA()),2&h){const d=P.$implicit;e.Q6J("nzLabel",d.tooltip)("nzValue",d.drug),e.xp6(3),e.Q6J("ngIf",d.drug.drugAliases.length>0)}}function $(h,P){if(1&h&&(e.ynx(0),e.YNc(1,D,4,3,"nz-option",6),e.BQk()),2&h){const d=P.ngrxLet;e.xp6(1),e.Q6J("ngForOf",d)}}function Q(h,P){1&h&&e._uU(0," No drug found in CIViC that matches the string provided. ")}function B(h,P){if(1&h){const d=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",3),e.NdJ("nzOnSearch",function(E){return e.CHM(d),e.oxw().to.onSearch(E)}),e.YNc(2,$,2,1,"ng-container",4),e.qZA(),e.YNc(3,Q,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&h){const d=e.MAs(4),T=e.oxw(),E=e.MAs(4);e.xp6(1),e.Q6J("formControl",T.formControl)("formlyAttributes",T.field)("nzPlaceHolder",T.to.placeholder?T.to.placeholder:null)("nzNotFoundContent",d)("nzDropdownRender",T.to.allowCreate?E:null)("nzShowArrow",T.to.showArrow)("nzFilterOption",T.to.filterOption),e.xp6(1),e.Q6J("ngrxLet",T.drugs$)}}function m(h,P){if(1&h&&e._UZ(0,"cvc-drug-tag",13),2&h){const d=e.oxw();e.Q6J("drug",d.formControl.value)}}function _(h,P){if(1&h&&e._UZ(0,"cvc-form-errors-alert",16),2&h){const d=e.oxw(4);e.Q6J("errors",d.errorMessages)}}function r(h,P){if(1&h){const d=e.EpF();e.TgZ(0,"button",17),e.NdJ("click",function(){e.CHM(d);const E=e.oxw(4);return E.addDrug(E.to.searchString)}),e._UZ(1,"i",18),e._uU(2,"No Existing CIViC Drug\xa0"),e.TgZ(3,"strong"),e._uU(4),e.qZA(),e._uU(5,"\xa0found. Create A New Drug? "),e.qZA()}if(2&h){const d=e.oxw(4);e.Q6J("nzLoading",d.loading),e.xp6(4),e.Oqu(d.to.searchString)}}function c(h,P){if(1&h&&(e.ynx(0),e.YNc(1,_,1,1,"cvc-form-errors-alert",14),e.YNc(2,r,6,2,"button",15),e.BQk()),2&h){const d=e.oxw(3);e.xp6(1),e.Q6J("ngIf",d.errorMessages.length>0),e.xp6(1),e.Q6J("ngIf",0==d.errorMessages.length)}}function z(h,P){if(1&h&&(e.ynx(0),e.YNc(1,c,3,2,"ng-container",9),e.BQk()),2&h){const d=e.oxw(2);e.xp6(1),e.Q6J("ngIf",""!==d.to.searchString&&d.to.searchString.length>=5)}}function M(h,P){if(1&h&&(e.YNc(0,z,2,1,"ng-container",9),e.ALo(1,"ngrxPush")),2&h){const d=e.oxw();e.Q6J("ngIf",e.lcZ(1,1,d.displayAdd$))}}const Z={name:"drug-input",component:(()=>{class h extends y.fS{constructor(d,T,E){super(),this.drugTypeaheadQuery=d,this.networkErrorService=T,this.addDrugGQL=E,this.destroy$=new a.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new O.X(!1),this.addDrugMutator=new f.U(T),this.defaultOptions={templateOptions:{placeholder:"Search Drugs",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],searchString:"",allowCreate:!0}}}ngOnInit(){this.queryRef=this.drugTypeaheadQuery.watch({name:"zzzzz"}),this.drugs$=this.queryRef.valueChanges.pipe((0,n.R)(this.destroy$),(0,C.j)("data","drugTypeahead"),(0,v.U)(d=>d.map(T=>{let E=T.ncitId?`${T.ncitId}`:"no NCIt ID",H=T.drugAliases.length>0?`Aliases: ${T.drugAliases.join(", ")}`:"";return{value:T.id,tooltip:`${T.name} (${E}) ${H}`,label:`${T.name} (${E})`,drug:T}})))}ngAfterViewInit(){this.to.onSearch=d=>{d.length{let E=0==T.data.drugTypeahead.filter(H=>H.name.toUpperCase()==d.toUpperCase()).length;this.displayAdd$.next(E)}))}}addDrug(d){if(d&&""!=d){let T=this.addDrugMutator.mutate(this.addDrugGQL,{name:d},{},E=>{var H;null===(H=this.field.formControl)||void 0===H||H.setValue({id:E.addDrug.drug.id,name:E.addDrug.drug.name}),this.to.searchString="",this.to.searchLength=0});T.submitSuccess$.pipe((0,n.R)(this.destroy$)).subscribe(E=>{E&&(this.success=!0)}),T.submitError$.pipe((0,n.R)(this.destroy$)).subscribe(E=>{E&&(this.errorMessages=E,this.success=!1)}),T.isSubmitting$.pipe((0,n.R)(this.destroy$)).subscribe(E=>{this.loading=E})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return h.\u0275fac=function(d){return new(d||h)(e.Y36(o.vRc),e.Y36(l.Y),e.Y36(o.T97))},h.\u0275cmp=e.Xpm({type:h,selectors:[["cvc-drug-input-type"]],features:[e.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["drugListItem",""],["addDrugTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzNotFoundContent","nzDropdownRender","nzShowArrow","nzFilterOption","nzOnSearch"],[4,"ngrxLet"],["sourceLoader",""],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzCustomContent","",3,"nzLabel","nzValue"],[3,"innerHtml",4,"nzSpaceItem"],[4,"ngIf"],[3,"innerHtml"],[4,"nzSpaceItem"],["nz-typography","","nzType","secondary",3,"innerHtml"],[3,"drug"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(d,T){if(1&d&&(e.YNc(0,B,5,8,"ng-container",0),e.YNc(1,m,1,1,"ng-template",null,1,e.W1O),e.YNc(3,M,2,3,"ng-template",null,2,e.W1O)),2&d){const E=e.MAs(2);e.Q6J("ngIf",!(null!=T.formControl.value&&T.formControl.value.id))("ngIfElse",E)}},directives:[p.O5,i.Vq,u.JJ,u.oH,y.VQ,s.eJ,p.sg,i.Ip,g.NU,g.$1,x.ZU,N.u,R.V,V.ix,w.dQ,J.w],pipes:[U.A,s.fM],styles:[""]}),h})()};var Y=t(8018),G=t(7008),j=t(1047),X=t(9444);let W=(()=>{class h{}return h.\u0275fac=function(d){return new(d||h)},h.\u0275mod=e.oAB({type:h}),h.\u0275inj=e.cJS({imports:[[p.ez,u.u5,u.UX,s.WG,y.X0.forChild({types:[Z]}),i.LV,g.zf,x.ZJ,V.sL,j.o7,Y.e,G.B,X.s]]}),h})()},4581:(b,A,t)=>{t.d(A,{e:()=>l});var p=t(9808),y=t(4182),n=t(3793),C=t(8776),v=t(712),a=t(444);const f={COMBINATION:"The drugs listed were used as part of a combination therapy approach",SEQUENTIAL:"The drugs listed were used at separate timepoints in the same treatment plan",SUBSTITUTES:"The drugs listed are often considered to be of the same family, or behave similarly in a treatment setting"},e={name:"drug-interaction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug Interaction Type",helpText:"Indicate whether the drugs specified above are substitutes, or are used in sequential or combination treatments.",required:!1,placeholder:"Not specified",options:(0,a.o6)(v.Zyn).map((i,u)=>({value:i,label:u}))},validation:{messages:{required:(i,u)=>"Evidence with more than one drug must specify an interaction type."}},hideExpression:(i,u,s)=>!(!i.drugs||i.drugs.length>1),expressionProperties:{"templateOptions.required":(i,u,s)=>!!i.drugs&&i.drugs.length>1,"templateOptions.optionText":(i,u,s)=>f[i.drugInteractionType]}}};var o=t(5e3);let l=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[[p.ez,y.UX,n.F,C.X0.forChild({types:[e]})]]}),i})()},2480:(b,A,t)=>{t.d(A,{r:()=>e});var p=t(9808),y=t(8776),n=t(5452),C=t(8390),v=t(915);const O={name:"drug-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Drug",helpText:"Please enter a drug name. If you are unable to locate the drug in the dropdown, please check the 'Could not find drug' checkbox below and enter the drug in the field that appears.",required:!1,addText:"Add a Drug"},fieldArray:{type:"drug-input",templateOptions:{required:!1},expressionProperties:{"templateOptions.allowCreate":(o,l,i)=>{var u,s;const g=null===(s=null===(u=null==i?void 0:i.parent)||void 0===u?void 0:u.templateOptions)||void 0===s?void 0:s.allowCreate;return void 0===g||g}}},defaultValue:[],validation:{messages:{required:(o,l)=>{const i=(null==l?void 0:l.form)?l.form.get("evidenceType"):null;return i?`${(0,v.E)(i.value)} Evidence requires at least one drug to be specified.`:"Drug is required."}}},hooks:{onInit:o=>{var l;const i=o.templateOptions,u=null===(l=null==o?void 0:o.options)||void 0===l?void 0:l.formState,s=(null==o?void 0:o.form)?o.form.get("evidenceType"):null;!s||(i.vcSub=s.valueChanges.subscribe(g=>{u.requiresDrug(g)?(i.hidden=!1,i.required=!0):(i.hidden=!0,i.required=!1,o.model.length>0&&(o.model.splice(1),i.remove(0)))}))},onDestroy:o=>{o.templateOptions.vcSub.unsubscribe()}}}};var f=t(5e3);let e=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=f.oAB({type:o}),o.\u0275inj=f.cJS({imports:[[p.ez,y.X0.forChild({types:[O]}),n.C,C.N]]}),o})()},5932:(b,A,t)=>{t.d(A,{A:()=>e});var p=t(9808),y=t(8776),n=t(915);const C={Evidence:{PREDICTIVE:{SUPPORTS:"The experiment or study supports this variant's response to a drug",DOES_NOT_SUPPORT:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The experiment or study supports this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{NA:"Evidence Direction is Not Applicable."},FUNCTIONAL:{SUPPORTS:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Evidence Direction is Not Applicable for Oncogenic Evidence Type."}},Assertion:{PREDICTIVE:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's response to a drug",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a drug"},DIAGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support a predisposing association between variant and outcome"},FUNCTIONAL:{SUPPORTS:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}}},v={name:"evidence-direction-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Direction",placeholder:"None specified",options:[]},expressionProperties:{"templateOptions.optionText":(o,l,i)=>{if(l.entityName&&o.evidenceType&&o.evidenceDirection)return C[l.entityName][o.evidenceType][o.evidenceDirection]}},validators:{validation:["ed-option"]},hooks:{onInit:o=>{var l;const i=o.templateOptions,u=null===(l=null==o?void 0:o.options)||void 0===l?void 0:l.formState;if(u){i.label=`${u.entityName} Direction`,i.helpText=`An indicator of whether the ${u.entityName} statement supports or refutes the clinical significance of an event. For predisposing and oncogenic ${u.pluralNames.get(u.entityName)}, directionality is only applied at the assertion level and N/A should be selected here.`;const s=(null==o?void 0:o.form)?o.form.get("evidenceType"):null;if(!s)return;i.options=u.getOptionsFromEnums(u.getDirectionOptions(s.value)),o.formControl.updateValueAndValidity(),i.vcSubscription=s.valueChanges.subscribe(g=>{i.options=u.getOptionsFromEnums(u.getDirectionOptions(s.value)),o.formControl.updateValueAndValidity()})}},onDestroy:o=>{o.templateOptions.vcSubscription.unsubscribe()}}}},a={name:"ed-option",validation:(o,l,i)=>{var u,s,g;const x=null===(u=l.options)||void 0===u?void 0:u.formState,N=o.value;if(!N||!x)return null;const R=null===(g=null===(s=o.parent)||void 0===s?void 0:s.get("evidenceType"))||void 0===g?void 0:g.value;return R?x.isValidDirectionOption(R,N)?null:{"ed-option":R}:null}},O={name:"ed-option",message:(o,l)=>{var i;return`'${(0,n.E)(null===(i=l.formControl)||void 0===i?void 0:i.value)}' is not a valid Clinical Significance for ${(0,n.E)(o)} Evidence.`}};var f=t(5e3);let e=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=f.oAB({type:o}),o.\u0275inj=f.cJS({imports:[[p.ez,y.X0.forChild({types:[v],validators:[a],validationMessages:[O]})]]}),o})()},2789:(b,A,t)=>{t.d(A,{o:()=>l});var p=t(9808),y=t(4182),n=t(8776),C=t(3793),v=t(712),a=t(444);const O=new Map([[v.Sx0.A,"A - Validated association"],[v.Sx0.B,"B - Clinical evidence"],[v.Sx0.C,"C - Case study"],[v.Sx0.D,"D - Preclinical evidence"],[v.Sx0.E,"E - Inferential association"]]),f=new Map([[v.Sx0.A,"Evidence shows consensus association in human medicine"],[v.Sx0.B,"Evidence supports association using clinical trial or other primary patient data"],[v.Sx0.C,"Evidence supports association using individual case reports from clinical journals"],[v.Sx0.D,"Evidence supports association using in vivo or in vitro models"],[v.Sx0.E,"Evidential association is inferential or indirect"]]),e={name:"evidence-level-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Evidence Level",placeholder:"None specified",helpText:"Type of study performed to produce the evidence statement",options:(0,a.o6)(v.Sx0).map(i=>({value:i,label:O.get(i)})),labels:O,descriptions:f},expressionProperties:{"templateOptions.optionText":(i,u,s)=>f.get(i.evidenceLevel)}}};var o=t(5e3);let l=(()=>{class i{}return i.\u0275fac=function(s){return new(s||i)},i.\u0275mod=o.oAB({type:i}),i.\u0275inj=o.cJS({imports:[[p.ez,y.UX,C.F,n.X0.forChild({types:[e]})]]}),i})()},3643:(b,A,t)=>{t.d(A,{q:()=>f});var p=t(9808),y=t(4182),n=t(3793),C=t(8776);const v={DIAGNOSTIC:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",PREDICTIVE:"Evidence pertains to a variant's effect on therapeutic response",PROGNOSTIC:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival",PREDISPOSING:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",ONCOGENIC:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",FUNCTIONAL:"Evidence pertains to a variant that alters biological function from the reference state"},a={name:"evidence-type-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Entity Type",placeholder:"Not specified",options:[]},hooks:{onInit:e=>{var o;const l=e.templateOptions,i=null===(o=null==e?void 0:e.options)||void 0===o?void 0:o.formState;i?(l.label=`${i.entityName} Type`,l.helpText=`Type of clinical outcome associated with the ${i.entityName} statement.`,l.options=i.getOptionsFromEnums(i.getTypeOptions())):console.warn("entity-type-select requires a formState to populate select options.")}},expressionProperties:{"templateOptions.optionText":(e,o,l)=>v[e.evidenceType]}}};var O=t(5e3);let f=(()=>{class e{}return e.\u0275fac=function(l){return new(l||e)},e.\u0275mod=O.oAB({type:e}),e.\u0275inj=O.cJS({imports:[[p.ez,y.UX,n.F,C.X0.forChild({types:[a]})]]}),e})()},5457:(b,A,t)=>{t.d(A,{$:()=>U});var p=t(9808),y=t(8776),n=t(8929),C=t(7625),v=t(373),a=t(5e3),O=t(712),f=t(8054),e=t(4182),o=t(6949),l=t(7956),i=t(8926);function u(I,F){if(1&I&&(a.TgZ(0,"nz-option",6),a._UZ(1,"span",7),a.ALo(2,"highlightTypeahead"),a._uU(3),a.qZA()),2&I){const S=F.$implicit,D=a.oxw(3);a.hYB("nzLabel","",S.name," (",S.hpoId,")"),a.Q6J("nzValue",S),a.xp6(1),a.Q6J("innerHtml",a.xi3(2,5,S.name,D.to.searchString),a.oJD),a.xp6(2),a.hij(" - (",S.hpoId,") ")}}function s(I,F){if(1&I&&(a.ynx(0),a.YNc(1,u,4,8,"nz-option",5),a.BQk()),2&I){const S=F.ngrxLet;a.xp6(1),a.Q6J("ngForOf",S)}}function g(I,F){1&I&&a._uU(0," No phenotype found in CIViC that matches the string provided. ")}function x(I,F){if(1&I){const S=a.EpF();a.ynx(0),a.TgZ(1,"nz-select",2),a.NdJ("nzOnSearch",function($){return a.CHM(S),a.oxw().to.onSearch($)}),a.YNc(2,s,2,1,"ng-container",3),a.qZA(),a.YNc(3,g,1,0,"ng-template",null,4,a.W1O),a.BQk()}if(2&I){const S=a.MAs(4),D=a.oxw();a.xp6(1),a.Q6J("formControl",D.formControl)("formlyAttributes",D.field)("nzPlaceHolder",D.to.placeholder?D.to.placeholder:null)("nzNotFoundContent",S)("nzShowArrow",D.to.showArrow)("nzFilterOption",D.to.filterOption),a.xp6(1),a.Q6J("ngrxLet",D.phenotypes$)}}function N(I,F){if(1&I&&a._UZ(0,"cvc-phenotype-tag",8),2&I){const S=a.oxw();a.Q6J("phenotype",S.formControl.value)}}const V={name:"phenotype-input",component:(()=>{class I extends y.fS{constructor(S){super(),this.phenotypeTypeaheadQuery=S,this.destroy$=new n.xQ,this.defaultOptions={templateOptions:{placeholder:"Search Phenotypes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}}}ngOnInit(){this.queryRef=this.phenotypeTypeaheadQuery.watch({name:""}),this.phenotypes$=this.queryRef.valueChanges.pipe((0,C.R)(this.destroy$),(0,v.j)("data","phenotypeTypeahead"))}ngAfterViewInit(){this.to.onSearch=S=>{var D;this.to.fieldValue=S,this.to.fieldLength=S.length,!(S.length{class I{}return I.\u0275fac=function(S){return new(S||I)},I.\u0275mod=a.oAB({type:I}),I.\u0275inj=a.cJS({imports:[[p.ez,e.UX,o.WG,y.X0.forChild({types:[V]}),f.LV,w.y,J.s]]}),I})()},1830:(b,A,t)=>{t.d(A,{S:()=>u});var p=t(9808),y=t(4182),n=t(8776),C=t(3793),v=t(304),a=t(8054),O=t(5457),f=t(8390),e=t(915);const l={name:"phenotype-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Phenotype",helpText:'Please provide any HPO phenotypes.',required:!1,addText:"Add a Phenotype"},fieldArray:{type:"phenotype-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:(s,g)=>{const x=(null==g?void 0:g.form)?g.form.get("evidenceType"):null;return x?`${(0,e.E)(x.value)} Evidence requires at least one phenotype to be specified.`:"Phenotype is required."}}}}};var i=t(5e3);let u=(()=>{class s{}return s.\u0275fac=function(x){return new(x||s)},s.\u0275mod=i.oAB({type:s}),s.\u0275inj=i.cJS({imports:[[p.ez,y.u5,y.UX,a.LV,v.F,C.F,n.X0.forChild({types:[l]}),O.$,f.N]]}),s})()},5743:(b,A,t)=>{t.d(A,{W:()=>B});var p=t(9808),y=t(8776),n=t(5e3),C=t(4182),v=t(655),a=t(1159),O=t(3753),f=t(7625),e=t(9439),o=t(4090),l=t(1721),i=t(226),u=t(647),s=t(404);const g=["nz-rate-item",""];function x(m,_){}function N(m,_){}function R(m,_){1&m&&n._UZ(0,"i",4)}const V=function(m){return{$implicit:m}},w=["ulElement"];function J(m,_){if(1&m){const r=n.EpF();n.TgZ(0,"li",3),n.TgZ(1,"div",4),n.NdJ("itemHover",function(z){const L=n.CHM(r).index;return n.oxw().onItemHover(L,z)})("itemClick",function(z){const L=n.CHM(r).index;return n.oxw().onItemClick(L,z)}),n.qZA(),n.qZA()}if(2&m){const r=_.index,c=n.oxw();n.Q6J("ngClass",c.starStyleArray[r]||"")("nzTooltipTitle",c.nzTooltips[r]),n.xp6(1),n.Q6J("allowHalf",c.nzAllowHalf)("character",c.nzCharacter)("index",r)}}let U=(()=>{class m{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new n.vpe,this.itemClick=new n.vpe}hoverRate(r){this.itemHover.next(r&&this.allowHalf)}clickRate(r){this.itemClick.next(r&&this.allowHalf)}}return m.\u0275fac=function(r){return new(r||m)},m.\u0275cmp=n.Xpm({type:m,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:"allowHalf"},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],attrs:g,decls:6,vars:8,consts:[[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["defaultCharacter",""],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(r,c){if(1&r&&(n.TgZ(0,"div",0),n.NdJ("mouseover",function(M){return c.hoverRate(!1),M.stopPropagation()})("click",function(){return c.clickRate(!1)}),n.YNc(1,x,0,0,"ng-template",1),n.qZA(),n.TgZ(2,"div",2),n.NdJ("mouseover",function(M){return c.hoverRate(!0),M.stopPropagation()})("click",function(){return c.clickRate(!0)}),n.YNc(3,N,0,0,"ng-template",1),n.qZA(),n.YNc(4,R,1,0,"ng-template",null,3,n.W1O)),2&r){const z=n.MAs(5);n.xp6(1),n.Q6J("ngTemplateOutlet",c.character||z)("ngTemplateOutletContext",n.VKq(4,V,c.index)),n.xp6(2),n.Q6J("ngTemplateOutlet",c.character||z)("ngTemplateOutletContext",n.VKq(6,V,c.index))}},directives:[p.tP,u.Ls],encapsulation:2,changeDetection:0}),(0,v.gn)([(0,l.yF)()],m.prototype,"allowHalf",void 0),m})();const I="rate";let F=(()=>{class m{constructor(r,c,z,M,L,Z){this.nzConfigService=r,this.ngZone=c,this.renderer=z,this.cdr=M,this.directionality=L,this.destroy$=Z,this._nzModuleName=I,this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new n.vpe,this.nzOnFocus=new n.vpe,this.nzOnHoverChange=new n.vpe,this.nzOnKeyDown=new n.vpe,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.onChange=()=>null,this.onTouched=()=>null}get nzValue(){return this._value}set nzValue(r){this._value!==r&&(this._value=r,this.hasHalf=!Number.isInteger(r),this.hoverValue=Math.ceil(r))}ngOnChanges(r){const{nzAutoFocus:c,nzCount:z,nzValue:M}=r;if(c&&!c.isFirstChange()){const L=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(L,"autofocus","autofocus"):this.renderer.removeAttribute(L,"autofocus")}z&&this.updateStarArray(),M&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,f.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,f.R)(this.destroy$)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,O.R)(this.ulElement.nativeElement,"focus").pipe((0,f.R)(this.destroy$)).subscribe(r=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(r))}),(0,O.R)(this.ulElement.nativeElement,"blur").pipe((0,f.R)(this.destroy$)).subscribe(r=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(r))})})}onItemClick(r,c){if(this.nzDisabled)return;this.hoverValue=r+1;const z=c?r+.5:r+1;this.nzValue===z?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=z,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(r,c){this.nzDisabled||this.hoverValue===r+1&&c===this.hasHalf||(this.hoverValue=r+1,this.hasHalf=c,this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle())}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(r){const c=this.nzValue;r.keyCode===a.SV&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),c!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(r),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((r,c)=>c),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(r=>{const c="ant-rate-star",z=r+1;return{[`${c}-full`]:zthis.hoverValue,[`${c}-focused`]:this.hasHalf&&z===this.hoverValue&&this.isFocused}})}writeValue(r){this.nzValue=r||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(r){this.nzDisabled=r}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}}return m.\u0275fac=function(r){return new(r||m)(n.Y36(e.jY),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(i.Is,8),n.Y36(o.kn))},m.\u0275cmp=n.Xpm({type:m,selectors:[["nz-rate"]],viewQuery:function(r,c){if(1&r&&n.Gf(w,7),2&r){let z;n.iGM(z=n.CRH())&&(c.ulElement=z.first)}},inputs:{nzAllowClear:"nzAllowClear",nzAllowHalf:"nzAllowHalf",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus",nzCharacter:"nzCharacter",nzCount:"nzCount",nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],features:[n._Bn([o.kn,{provide:C.JU,useExisting:(0,n.Gpc)(()=>m),multi:!0}]),n.TTD],decls:3,vars:7,consts:[[1,"ant-rate",3,"ngClass","tabindex","keydown","mouseleave"],["ulElement",""],["class","ant-rate-star","nz-tooltip","",3,"ngClass","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"allowHalf","character","index","itemHover","itemClick"]],template:function(r,c){1&r&&(n.TgZ(0,"ul",0,1),n.NdJ("keydown",function(M){return c.onKeyDown(M),M.preventDefault()})("mouseleave",function(M){return c.onRateLeave(),M.stopPropagation()}),n.YNc(2,J,2,5,"li",2),n.qZA()),2&r&&(n.ekj("ant-rate-disabled",c.nzDisabled)("ant-rate-rtl","rtl"===c.dir),n.Q6J("ngClass",c.classMap)("tabindex",c.nzDisabled?-1:1),n.xp6(2),n.Q6J("ngForOf",c.starArray))},directives:[U,p.mk,p.sg,s.SY],encapsulation:2,changeDetection:0}),(0,v.gn)([(0,e.oS)(),(0,l.yF)()],m.prototype,"nzAllowClear",void 0),(0,v.gn)([(0,e.oS)(),(0,l.yF)()],m.prototype,"nzAllowHalf",void 0),(0,v.gn)([(0,l.yF)()],m.prototype,"nzDisabled",void 0),(0,v.gn)([(0,l.yF)()],m.prototype,"nzAutoFocus",void 0),(0,v.gn)([(0,l.Rn)()],m.prototype,"nzCount",void 0),m})(),S=(()=>{class m{}return m.\u0275fac=function(r){return new(r||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[i.vT,p.ez,u.PV,s.cg]]}),m})();const D={1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims.",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing.",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning.",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning.",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods."},Q={name:"rating-input",component:(()=>{class m extends y.fS{constructor(){super(),this.defaultOptions={}}updateField(r){this.field.formControl.setValue(r);let c=this.field.templateOptions;c&&(c.optionText=D[r])}}return m.\u0275fac=function(r){return new(r||m)},m.\u0275cmp=n.Xpm({type:m,selectors:[["cvc-rating-input-type"]],features:[n.qOj],decls:2,vars:4,consts:[["type","hidden",3,"formControl","formlyAttributes"],[3,"ngModel","formlyAttributes","ngModelChange"]],template:function(r,c){1&r&&(n._UZ(0,"input",0),n.TgZ(1,"nz-rate",1),n.NdJ("ngModelChange",function(M){return c.updateField(M)}),n.qZA()),2&r&&(n.Q6J("formControl",c.formControl)("formlyAttributes",c.field),n.xp6(1),n.Q6J("ngModel",c.formControl.value)("formlyAttributes",c.field))},directives:[C.Fj,C.JJ,C.oH,y.VQ,F,C.On],styles:[""]}),m})(),wrappers:["form-field"]};let B=(()=>{class m{}return m.\u0275fac=function(r){return new(r||m)},m.\u0275mod=n.oAB({type:m}),m.\u0275inj=n.cJS({imports:[[p.ez,C.UX,C.u5,y.X0.forChild({types:[Q]}),S]]}),m})()},3594:(b,A,t)=>{t.d(A,{q:()=>o});var p=t(9808),y=t(915),n=t(712);const C={SOMATIC:"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring.",RARE_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item.",COMMON_GERMLINE:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item.",UNKNOWN:"The variant origin is uncertain based on the available evidence.",NA:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."},v={name:"variant-origin-select",extends:"select",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Variant Origin",placeholder:"None specified",helpText:"Origin of variant",options:[{value:n.huM.Somatic,label:(0,y.E)(n.huM.Somatic)},{value:n.huM.RareGermline,label:(0,y.E)(n.huM.RareGermline)},{value:n.huM.CommonGermline,label:(0,y.E)(n.huM.CommonGermline)},{value:n.huM.Unknown,label:(0,y.E)(n.huM.Unknown)},{value:n.huM.Na,label:(0,y.E)(n.huM.Na)}]},expressionProperties:{"templateOptions.optionText":(l,i,u)=>C[l.variantOrigin]}}};var a=t(4182),O=t(8776),f=t(3793),e=t(5e3);let o=(()=>{class l{}return l.\u0275fac=function(u){return new(u||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[p.ez,a.UX,f.F,O.X0.forChild({types:[v]})]]}),l})()},6738:(b,A,t)=>{function p(e){let o={value:void 0,unset:void 0};return e&&e.trim().length>0?o.value=e.trim():o.unset=!0,o}function y(e){let o={value:void 0,unset:void 0};return void 0!==e?o.value=e:o.unset=!0,o}t.d(A,{aP:()=>f,li:()=>n,Zg:()=>C,_$:()=>v,uP:()=>y,dh:()=>a,xt:()=>p});var n=(()=>{return(e=n||(n={}))[e.NotApplicable=0]="NotApplicable",e[e.NoneFound=1]="NoneFound",e[e.Found=2]="Found",n;var e})();function C(e,o){let l,i,u;return o==n.Found?(l=void 0,i=void 0,u=e):o==n.NoneFound?(i=!0,l=void 0,u=void 0):(l=!0,i=void 0,u=void 0),{ids:u?u.map(s=>+s):void 0,noneFound:i,notApplicable:l}}function v(e){return e?{chromosome:O(e.chromosome),representativeTranscript:O(e.representativeTranscript),start:e.start?+e.start:void 0,stop:e.stop?+e.stop:void 0}:{chromosome:void 0,representativeTranscript:void 0,start:void 0,stop:void 0}}function a(e){let o={value:void 0,unset:void 0};return e?o.value=e:o.unset=!0,o}function O(e){let o;return o=e&&e.length>0?e:void 0,o}const f=[{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"}]}}]); \ No newline at end of file diff --git a/server/public/885.038dbdc7f60cc99d.js b/server/public/885.038dbdc7f60cc99d.js deleted file mode 100644 index 7a91ae447..000000000 --- a/server/public/885.038dbdc7f60cc99d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[885],{885:(it,h,n)=>{n.r(h),n.d(h,{VariantGroupsAddModule:()=>ot});var p=n(9808),d=n(325),G=n(4850),t=n(5e3),V=n(9350),S=n(8992),u=n(1945),v=n(647),m=n(1894),M=n(8616),y=n(6949);function O(e,a){1&e&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function A(e,a){1&e&&(t.TgZ(0,"nz-row",7),t.TgZ(1,"div",8),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}let T=(()=>{class e{constructor(r){this.viewerService=r}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,G.U)(r=>r.signedIn))}}return e.\u0275fac=function(r){return new(r||e)(t.Y36(V.a))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-add-view"]],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(r,o){if(1&r&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1),t.TgZ(2,"nz-page-header-title",2),t._UZ(3,"i",3),t._uU(4," Add New Variant Group "),t.qZA(),t.TgZ(5,"nz-page-header-subtitle"),t._uU(6," Submit and review new Variant Groups "),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",4),t.YNc(9,O,2,0,"div",5),t.ALo(10,"ngrxPush"),t.YNc(11,A,3,0,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&r){const i=t.MAs(12);t.xp6(9),t.Q6J("ngIf",t.lcZ(10,2,o.isSignedIn$))("ngIfElse",i)}},directives:[S.I,u.$O,u.u9,v.Ls,u.yG,u.u5,p.O5,d.lC,m.SK,m.t3,M.u],pipes:[y.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),e})();var c=n(8776),Z=n(7462),b=n(4181),C=n(8390),P=n(8979),F=n(4623),l=n(4182),I=n(5109),g=n(4546),x=n(2359),w=n(6042),J=n(7525),N=n(7008),U=n(5472),L=n(3773),$=n(7075),Q=n(4889);let Y=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,l.UX,d.Bz,c.X0,g.U5,x.L,m.Jb,w.sL,J.j,c.X0,Z.o,b.O,C.N,P.N,F.K,N.B,U.r,L.g,b.O,$.l,Q.E,I.s]]}),e})(),B=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,Y]]}),e})();var z=n(3077),j=n(6123),R=n(8929),f=n(7625),X=n(712),D=n(9169),E=n(822);function K(e,a){1&e&&t.GkF(0)}function W(e,a){if(1&e){const r=t.EpF();t.TgZ(0,"formly-form",4),t.NdJ("modelChange",function(i){return t.CHM(r),t.oxw().formModel=i}),t.qZA()}if(2&e){const r=t.oxw();t.Q6J("form",r.formGroup)("fields",r.formFields)("model",r.formModel)}}function H(e,a){if(1&e&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",6),t.qZA()),2&e){const r=t.oxw(2);t.xp6(1),t.Q6J("errors",r.errorMessages)}}function _(e,a){if(1&e&&(t.TgZ(0,"p"),t._uU(1,"View "),t.TgZ(2,"a",10),t._uU(3,"its details"),t.qZA(),t._uU(4,"."),t.qZA()),2&e){const r=t.oxw(3);t.xp6(2),t.MGl("routerLink","/variant-groups/",r.newId,"/summary")}}function k(e,a){if(1&e&&(t.ynx(0),t._UZ(1,"nz-alert",7),t.YNc(2,_,5,1,"ng-template",8,9,t.W1O),t.BQk()),2&e){const r=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",r)}}function q(e,a){if(1&e&&(t.YNc(0,H,2,1,"nz-form-item",5),t.YNc(1,k,4,1,"ng-container",5)),2&e){const r=t.oxw();t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",r.success)}}let tt=(()=>{class e{constructor(r,o){this.submitVariantGroupGQL=r,this.networkErrorService=o,this.destroy$=new R.xQ,this.formGroup=new l.cw({}),this.success=!1,this.errorMessages=[],this.loading=!1,this.submitVariantGroupMutator=new j.U(o),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Group Form"},fieldGroup:[{key:"name",type:"input",wrappers:["form-field"],templateOptions:{label:"Variant Group Name",required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Description",helpText:"A brief description of this new variant group.",placeholder:"No description provided",required:!0}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"Add any sources upon which your description depends.",addText:"Add a Source"},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variants",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variants",required:!0,helpText:"Specify the variants that comprise this Variant Group.",addText:"Add a Variant "},fieldArray:{type:"variant-input",templateOptions:{hideLabel:!0,required:!0,allowCreate:!1}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Create Variant Group",submitSize:"large"}}]}]}submitVariantGroup(r){let o=this.toSubmitInput(r);if(o){let i=this.submitVariantGroupMutator.mutate(this.submitVariantGroupGQL,{input:o},{},s=>{this.newId=s.submitVariantGroup.variantGroup.id});i.submitSuccess$.pipe((0,f.R)(this.destroy$)).subscribe(s=>{s&&(this.success=!0)}),i.submitError$.pipe((0,f.R)(this.destroy$)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,f.R)(this.destroy$)).subscribe(s=>{this.loading=s})}}toSubmitInput(r){var o;if(r)return{description:r.fields.description,name:r.fields.name,organizationId:null===(o=r.fields.organization)||void 0===o?void 0:o.id,sourceIds:r.fields.sources?r.fields.sources.map(i=>i.id).filter(z.$):[],variantIds:r.fields.variants.map(i=>i.id).filter(z.$)}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(r){return new(r||e)(t.Y36(X.tji),t.Y36(D.Y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-group-submit-form"]],decls:5,vars:3,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Variant Group Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(r,o){if(1&r&&(t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return o.submitVariantGroup(o.formModel)}),t.YNc(1,K,1,0,"ng-container",1),t.YNc(2,W,1,3,"formly-form",2),t.qZA(),t.YNc(3,q,2,2,"ng-template",null,3,t.W1O)),2&r){const i=t.MAs(4);t.Q6J("formGroup",o.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngIf",!o.success)}},directives:[l._Y,l.JL,g.Lr,l.sg,p.tP,p.O5,c.T7,m.SK,g.Nx,E.V,x.r,d.yS],styles:[""]}),e})();const et=[{path:"",component:T,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["cvc-variant-groups-submit-page"]],decls:1,vars:0,template:function(r,o){1&r&&t._UZ(0,"cvc-variant-group-submit-form")},directives:[tt],styles:[""]}),e})(),data:{breadcrumb:"Submit New Variant Groups"}}]}];let rt=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[d.Bz.forChild(et),B],d.Bz]}),e})();var nt=n(9386),at=n(5630);let ot=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,rt,u.KJ,v.PV,at.D,nt.a,m.Jb,y.WG]]}),e})()}}]); \ No newline at end of file diff --git a/server/public/885.525cb55bc6565cb0.js b/server/public/885.525cb55bc6565cb0.js new file mode 100644 index 000000000..00593b4f4 --- /dev/null +++ b/server/public/885.525cb55bc6565cb0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[885],{8616:(D,V,e)=>{e.d(V,{u:()=>n});var s=e(5e3),h=e(685),x=e(1912),t=e(3618),M=e(647);function T(c,y){1&c&&(s.TgZ(0,"span"),s._uU(1," You must be logged in to view this page. "),s.qZA())}function v(c,y){1&c&&s._UZ(0,"cvc-login-button")}function g(c,y){1&c&&(s.TgZ(0,"nz-typography",4),s._UZ(1,"i",5),s.qZA())}let n=(()=>{class c{}return c.\u0275fac=function(_){return new(_||c)},c.\u0275cmp=s.Xpm({type:c,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["emptyImage",""],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(_,S){if(1&_&&(s.TgZ(0,"nz-empty",0),s.YNc(1,T,2,0,"ng-template",null,1,s.W1O),s.YNc(3,v,1,0,"ng-template",null,2,s.W1O),s.qZA(),s.YNc(5,g,2,0,"ng-template",null,3,s.W1O)),2&_){const P=s.MAs(2),C=s.MAs(4),I=s.MAs(6);s.Q6J("nzNotFoundImage",I)("nzNotFoundContent",P)("nzNotFoundFooter",C)}},directives:[h.p9,x.s,t.ZU,M.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),c})()},9386:(D,V,e)=>{e.d(V,{a:()=>v});var s=e(9808),h=e(1844),x=e(685),t=e(647),M=e(3618),T=e(5e3);let v=(()=>{class g{}return g.\u0275fac=function(c){return new(c||g)},g.\u0275mod=T.oAB({type:g}),g.\u0275inj=T.cJS({imports:[[s.ez,h.B,x.Xo,t.PV,M.ZJ]]}),g})()},4181:(D,V,e)=>{e.d(V,{O:()=>q});var s=e(9808),h=e(6123),x=e(8776),t=e(8929),M=e(591),T=e(373),v=e(4850),g=e(7625),n=e(5e3),c=e(712),y=e(9169),_=e(8054),S=e(4182),P=e(8664),C=e(822),I=e(6042),U=e(2643),$=e(2683),E=e(647),N=e(6949),O=e(8926);function Y(i,m){if(1&i&&(n.TgZ(0,"nz-option",6),n._UZ(1,"span",7),n.ALo(2,"highlightTypeahead"),n.qZA()),2&i){const a=m.$implicit,l=n.oxw(2);n.Q6J("nzValue",a.variant),n.xp6(1),n.Q6J("innerHtml",n.xi3(2,2,a.label,l.to.searchString),n.oJD)}}function G(i,m){1&i&&n._uU(0," No variant found in CIViC that matches the string provided. ")}function J(i,m){if(1&i){const a=n.EpF();n.ynx(0),n.TgZ(1,"nz-select",3),n.NdJ("nzOnSearch",function(p){return n.CHM(a),n.oxw().to.onSearch(p)}),n.YNc(2,Y,3,5,"nz-option",4),n.ALo(3,"ngrxPush"),n.qZA(),n.YNc(4,G,1,0,"ng-template",null,5,n.W1O),n.BQk()}if(2&i){const a=n.MAs(5),l=n.oxw(),p=n.MAs(4);n.xp6(1),n.Q6J("formControl",l.formControl)("formlyAttributes",l.field)("nzPlaceHolder",l.to.placeholder?l.to.placeholder:null)("nzDropdownRender",l.to.allowCreate?p:null)("nzNotFoundContent",a)("nzShowArrow",l.to.showArrow),n.xp6(1),n.Q6J("ngForOf",n.lcZ(3,7,l.variants$))}}function B(i,m){if(1&i&&n._UZ(0,"cvc-variant-tag",8),2&i){const a=n.oxw();n.Q6J("variant",a.formControl.value)}}function w(i,m){if(1&i&&n._UZ(0,"cvc-form-errors-alert",12),2&i){const a=n.oxw(4);n.Q6J("errors",a.errorMessages)}}function R(i,m){if(1&i){const a=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){n.CHM(a);const p=n.oxw(4);return p.addVariant(p.to.searchString)}),n._UZ(1,"i",14),n._uU(2,"No Existing CIViC Variant\xa0"),n.TgZ(3,"strong"),n._uU(4),n.qZA(),n._uU(5,"\xa0found. Create A New Variant? "),n.qZA()}if(2&i){const a=n.oxw(4);n.Q6J("nzLoading",a.loading),n.xp6(4),n.Oqu(a.to.searchString)}}function W(i,m){if(1&i&&(n.ynx(0),n.YNc(1,w,1,1,"cvc-form-errors-alert",10),n.YNc(2,R,6,2,"button",11),n.BQk()),2&i){const a=n.oxw(3);n.xp6(1),n.Q6J("ngIf",a.errorMessages.length>0),n.xp6(1),n.Q6J("ngIf",0==a.errorMessages.length)}}function K(i,m){if(1&i&&(n.ynx(0),n.YNc(1,W,3,2,"ng-container",9),n.BQk()),2&i){const a=n.oxw(2);n.xp6(1),n.Q6J("ngIf",""!==a.to.searchString)}}function j(i,m){if(1&i&&(n.YNc(0,K,2,1,"ng-container",9),n.ALo(1,"ngrxPush")),2&i){const a=n.oxw();n.Q6J("ngIf",n.lcZ(1,1,a.displayAdd$))}}const X={name:"variant-input",component:(()=>{class i extends x.fS{constructor(a,l,p){super(),this.variantTypeaheadQuery=a,this.networkErrorService=l,this.addVariantGQL=p,this.destroy$=new t.xQ,this.success=!1,this.errorMessages=[],this.loading=!1,this.displayAdd$=new M.X(!1),this.addVariantMutator=new h.U(l),this.defaultOptions={templateOptions:{placeholder:"Search Variants",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[],allowCreate:!0},expressionProperties:{"templateOptions.geneId":(A,nt,Z)=>{var L,F;let b=null===(F=null===(L=null==Z?void 0:Z.parent)||void 0===L?void 0:L.parent)||void 0===F?void 0:F.model;if(b&&b.gene&&b.gene[0])return b.gene[0].id}}}}ngOnInit(){this.queryRef=this.variantTypeaheadQuery.watch({name:"zzzz"}),this.variants$=this.queryRef.valueChanges.pipe((0,T.j)("data","variants","nodes"),(0,v.U)(a=>a.map(p=>({value:p.id,label:p.name,variant:p}))))}ngAfterViewInit(){this.to.onSearch=a=>{a.length{this.displayAdd$.next(0==l.data.variants.nodes.filter(p=>p.name.toUpperCase()==a.toUpperCase()).length)}))}}addVariant(a){if(a&&""!=a&&this.to.geneId){let l=this.addVariantMutator.mutate(this.addVariantGQL,{name:a,geneId:this.to.geneId},{},p=>{var A;null===(A=this.field.formControl)||void 0===A||A.setValue({id:p.addVariant.variant.id,name:p.addVariant.variant.name}),this.to.searchString="",this.to.searchLength=0});l.submitSuccess$.pipe((0,g.R)(this.destroy$)).subscribe(p=>{p&&(this.success=!0)}),l.submitError$.pipe((0,g.R)(this.destroy$)).subscribe(p=>{p&&(this.errorMessages=p,this.success=!1)}),l.isSubmitting$.pipe((0,g.R)(this.destroy$)).subscribe(p=>{this.loading=p})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.displayAdd$.complete()}}return i.\u0275fac=function(a){return new(a||i)(n.Y36(c._eC),n.Y36(y.Y),n.Y36(c.LUc))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cvc-variant-input-type"]],features:[n.qOj],decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["variantListItem",""],["addVariantTmpl",""],["nzShowSearch","","nzServerSearch","",3,"formControl","formlyAttributes","nzPlaceHolder","nzDropdownRender","nzNotFoundContent","nzShowArrow","nzOnSearch"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["sourceLoader",""],["nzCustomContent","",3,"nzValue"],[3,"innerHtml"],[3,"variant"],[4,"ngIf"],[3,"errors",4,"ngIf"],["nz-button","","nzSize","small",3,"nzLoading","click",4,"ngIf"],[3,"errors"],["nz-button","","nzSize","small",3,"nzLoading","click"],["nz-icon","","nzType","plus","nzTheme","outline"]],template:function(a,l){if(1&a&&(n.YNc(0,J,6,9,"ng-container",0),n.YNc(1,B,1,1,"ng-template",null,1,n.W1O),n.YNc(3,j,2,3,"ng-template",null,2,n.W1O)),2&a){const p=n.MAs(2);n.Q6J("ngIf",!(null!=l.formControl.value&&l.formControl.value.id))("ngIfElse",p)}},directives:[s.O5,_.Vq,S.JJ,S.oH,x.VQ,s.sg,_.Ip,P.I,C.V,I.ix,U.dQ,$.w,E.Ls],pipes:[N.fM,O.A],styles:[""],changeDetection:0}),i})()};var H=e(4867),Q=e(7008),k=e(9444);let q=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[s.ez,S.UX,N.WG,x.X0.forChild({types:[X]}),_.LV,I.sL,E.PV,H.Q,Q.B,k.s]]}),i})()},885:(D,V,e)=>{e.r(V),e.d(V,{VariantGroupsAddModule:()=>it});var s=e(9808),h=e(325),x=e(4850),t=e(5e3),M=e(9350),T=e(8992),v=e(1945),g=e(647),n=e(1894),c=e(8616),y=e(6949);function _(o,d){1&o&&(t.TgZ(0,"div"),t._UZ(1,"router-outlet"),t.qZA())}function S(o,d){1&o&&(t.TgZ(0,"nz-row",7),t.TgZ(1,"div",8),t._UZ(2,"cvc-login-prompt"),t.qZA(),t.qZA())}let P=(()=>{class o{constructor(r){this.viewerService=r}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,x.U)(r=>r.signedIn))}}return o.\u0275fac=function(r){return new(r||o)(t.Y36(M.a))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-groups-add-view"]],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(r,u){if(1&r&&(t._UZ(0,"cvc-section-navigation",0),t.TgZ(1,"nz-page-header",1),t.TgZ(2,"nz-page-header-title",2),t._UZ(3,"i",3),t._uU(4," Add New Variant Group "),t.qZA(),t.TgZ(5,"nz-page-header-subtitle"),t._uU(6," Submit and review new Variant Groups "),t.qZA(),t.TgZ(7,"nz-page-header-content"),t.TgZ(8,"div",4),t.YNc(9,_,2,0,"div",5),t.ALo(10,"ngrxPush"),t.YNc(11,S,3,0,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&r){const f=t.MAs(12);t.xp6(9),t.Q6J("ngIf",t.lcZ(10,2,u.isSignedIn$))("ngIfElse",f)}},directives:[T.I,v.$O,v.u9,g.Ls,v.yG,v.u5,s.O5,h.lC,n.SK,n.t3,c.u],pipes:[y.fM],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),o})();var C=e(8776),I=e(7462),U=e(4181),$=e(8390),E=e(8979),N=e(4623),O=e(4182),Y=e(5109),G=e(4546),J=e(2359),B=e(6042),w=e(7525),R=e(7008),W=e(5472),K=e(3773),j=e(3022),tt=e(4889);let X=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[s.ez,O.UX,h.Bz,C.X0,G.U5,J.L,n.Jb,B.sL,w.j,C.X0,I.o,U.O,$.N,E.N,N.K,R.B,W.r,K.g,U.O,j.e,tt.E,Y.s]]}),o})(),H=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[s.ez,X]]}),o})();var Q=e(3077),k=e(6123),q=e(8929),i=e(7625),m=e(712),a=e(9169),l=e(822);function p(o,d){1&o&&t.GkF(0)}function A(o,d){if(1&o){const r=t.EpF();t.TgZ(0,"formly-form",4),t.NdJ("modelChange",function(f){return t.CHM(r),t.oxw().formModel=f}),t.qZA()}if(2&o){const r=t.oxw();t.Q6J("form",r.formGroup)("fields",r.formFields)("model",r.formModel)}}function nt(o,d){if(1&o&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",6),t.qZA()),2&o){const r=t.oxw(2);t.xp6(1),t.Q6J("errors",r.errorMessages)}}function Z(o,d){if(1&o&&(t.TgZ(0,"p"),t._uU(1,"View "),t.TgZ(2,"a",10),t._uU(3,"its details"),t.qZA(),t._uU(4,"."),t.qZA()),2&o){const r=t.oxw(3);t.xp6(2),t.MGl("routerLink","/variant-groups/",r.newId,"/summary")}}function L(o,d){if(1&o&&(t.ynx(0),t._UZ(1,"nz-alert",7),t.YNc(2,Z,5,1,"ng-template",8,9,t.W1O),t.BQk()),2&o){const r=t.MAs(3);t.xp6(1),t.Q6J("nzDescription",r)}}function F(o,d){if(1&o&&(t.YNc(0,nt,2,1,"nz-form-item",5),t.YNc(1,L,4,1,"ng-container",5)),2&o){const r=t.oxw();t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("ngIf",r.success)}}let b=(()=>{class o{constructor(r,u){this.submitVariantGroupGQL=r,this.networkErrorService=u,this.destroy$=new q.xQ,this.formGroup=new O.cw({}),this.success=!1,this.errorMessages=[],this.loading=!1,this.submitVariantGroupMutator=new k.U(u),this.formFields=[{key:"fields",wrappers:["form-container"],templateOptions:{label:"Add Variant Group Form"},fieldGroup:[{key:"name",type:"input",wrappers:["form-field"],templateOptions:{label:"Variant Group Name",required:!0}},{key:"description",type:"cvc-textarea",templateOptions:{label:"Description",helpText:"A brief description of this new variant group.",placeholder:"No description provided",required:!0}},{key:"sources",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Source",helpText:"Add any sources upon which your description depends.",addText:"Add a Source"},fieldArray:{type:"source-input",templateOptions:{hideLabel:!0,required:!0}}},{key:"variants",type:"multi-field",wrappers:["form-field"],templateOptions:{label:"Variants",required:!0,helpText:"Specify the variants that comprise this Variant Group.",addText:"Add a Variant "},fieldArray:{type:"variant-input",templateOptions:{hideLabel:!0,required:!0,allowCreate:!1}}},{key:"comment",type:"comment-textarea",templateOptions:{label:"Comment",helpText:"Please provide any additional comments you wish to make about this evidence item. This comment will appear as the first comment in this item's comment thread.",placeholder:"Please enter a comment describing your revision.",required:!0,minLength:10}},{key:"cancel",type:"cancel-button"},{key:"organization",type:"org-submit-button",templateOptions:{submitLabel:"Create Variant Group",submitSize:"large"}}]}]}submitVariantGroup(r){let u=this.toSubmitInput(r);if(u){let f=this.submitVariantGroupMutator.mutate(this.submitVariantGroupGQL,{input:u},{},z=>{this.newId=z.submitVariantGroup.variantGroup.id});f.submitSuccess$.pipe((0,i.R)(this.destroy$)).subscribe(z=>{z&&(this.success=!0)}),f.submitError$.pipe((0,i.R)(this.destroy$)).subscribe(z=>{z&&(this.errorMessages=z,this.success=!1)}),f.isSubmitting$.pipe((0,i.R)(this.destroy$)).subscribe(z=>{this.loading=z})}}toSubmitInput(r){var u;if(r)return{description:r.fields.description,name:r.fields.name,organizationId:null===(u=r.fields.organization)||void 0===u?void 0:u.id,sourceIds:r.fields.sources?r.fields.sources.map(f=>f.id).filter(Q.$):[],variantIds:r.fields.variants.map(f=>f.id).filter(Q.$)}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(r){return new(r||o)(t.Y36(m.tji),t.Y36(a.Y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-group-submit-form"]],decls:5,vars:3,consts:[["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit"],[4,"ngTemplateOutlet"],[3,"form","fields","model","modelChange",4,"ngIf"],["formMessages",""],[3,"form","fields","model","modelChange"],[4,"ngIf"],[3,"errors"],["nzType","success","nzMessage","Variant Group Submitted","nzShowIcon","",3,"nzDescription"],["nzSize","small"],["successMessage",""],[3,"routerLink"]],template:function(r,u){if(1&r&&(t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return u.submitVariantGroup(u.formModel)}),t.YNc(1,p,1,0,"ng-container",1),t.YNc(2,A,1,3,"formly-form",2),t.qZA(),t.YNc(3,F,2,2,"ng-template",null,3,t.W1O)),2&r){const f=t.MAs(4);t.Q6J("formGroup",u.formGroup),t.xp6(1),t.Q6J("ngTemplateOutlet",f),t.xp6(1),t.Q6J("ngIf",!u.success)}},directives:[O._Y,O.JL,G.Lr,O.sg,s.tP,s.O5,C.T7,n.SK,G.Nx,l.V,J.r,h.yS],styles:[""]}),o})();const et=[{path:"",component:P,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-variant-groups-submit-page"]],decls:1,vars:0,template:function(r,u){1&r&&t._UZ(0,"cvc-variant-group-submit-form")},directives:[b],styles:[""]}),o})(),data:{breadcrumb:"Submit New Variant Groups"}}]}];let ot=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[h.Bz.forChild(et),H],h.Bz]}),o})();var rt=e(9386),at=e(5630);let it=(()=>{class o{}return o.\u0275fac=function(r){return new(r||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[s.ez,ot,v.KJ,g.PV,at.D,rt.a,n.Jb,y.WG]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/9001.daebebd640fff864.js b/server/public/9001.bb98352d0a59ac1d.js similarity index 57% rename from server/public/9001.daebebd640fff864.js rename to server/public/9001.bb98352d0a59ac1d.js index 81fd40f19..b641df513 100644 --- a/server/public/9001.daebebd640fff864.js +++ b/server/public/9001.bb98352d0a59ac1d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9001],{9001:(y,u,o)=>{o.d(u,{O:()=>sn});var c=o(6654),n=o(5e3),s=o(9808),r=o(325),T=o(8481),m=o(3610),z=o(4850),E=o(712),Z=o(7484),h=o(8144),x=o(647),l=o(4590),d=o(3193),v=o(8664),P=o(1894),A=o(3618),I=o(3098),M=o(6906),N=o(4022),S=o(7469),Q=o(7956),U=o(6949),Y=o(4110);function J(e,a){if(1&e&&(n.ynx(0),n._UZ(1,"i",28),n._uU(2),n.BQk()),2&e){const t=n.oxw(2).ngIf;n.xp6(2),n.hij(" ",t.name," ")}}function w(e,a){if(1&e&&n._UZ(0,"cvc-status-tag",29),2&e){const t=n.oxw(2).ngIf;n.Q6J("status",t.status)}}function D(e,a){1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,J,3,1,"ng-container",26),n.YNc(2,w,1,1,"cvc-status-tag",27),n.qZA())}function L(e,a){if(1&e&&(n._UZ(0,"cvc-gene-tag",30),n._UZ(1,"cvc-variant-tag",31)),2&e){const t=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",t.gene),n.xp6(1),n.Q6J("enablePopover",!1)("variant",t.variant)}}function j(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=a.ngIf;n.xp6(1),n.hij(" ",t," ")}}function R(e,a){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",32),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("enablePopover",!1)("disease",t.disease)("truncateLongName",!0)}}function i(e,a){1&e&&n._uU(0," N/A ")}function g(e,a){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"cvc-drug-tag",35),n.qZA()),2&e){const t=a.$implicit;n.xp6(1),n.Q6J("enablePopover",!1)("drug",t)("truncateLongName",!0)}}function p(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"titlecase"),n.BQk()),2&e){const t=n.oxw(2).ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,1,t.drugInteractionType)," ")}}function _(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",33),n.YNc(1,g,2,3,"span",34),n.YNc(2,p,3,3,"ng-container",1),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",t.drugs),n.xp6(1),n.Q6J("ngIf",t.drugs.length>1)}}function C(e,a){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"cvc-phenotype-tag",37),n.qZA()),2&e){const t=a.$implicit;n.xp6(1),n.Q6J("enablePopover",!1)("phenotype",t)}}function F(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",36),n.YNc(1,C,2,2,"span",34),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",t.phenotypes)}}function W(e,a){if(1&e&&(n.TgZ(0,"a",38),n.TgZ(1,"nz-tag",39),n._UZ(2,"i",40),n._uU(3),n.qZA(),n.qZA()),2&e){const t=n.oxw().ngIf;n.MGl("routerLink","/evidence/",t.id,"/flags"),n.xp6(3),n.hij(" Flags (",t.flags.totalCount,") ")}}function B(e,a){if(1&e&&(n.TgZ(0,"a",38),n.TgZ(1,"nz-tag",41),n._UZ(2,"i",42),n._uU(3),n.qZA(),n.qZA()),2&e){const t=n.oxw().ngIf;n.MGl("routerLink","/evidence/",t.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",t.revisions.totalCount,") ")}}function b(e,a){if(1&e&&(n.TgZ(0,"a",38),n.TgZ(1,"nz-tag",43),n._UZ(2,"i",44),n._uU(3),n.qZA(),n.qZA()),2&e){const t=n.oxw().ngIf;n.MGl("routerLink","/evidence/",t.id,"/comments"),n.xp6(3),n.hij(" Comments (",t.comments.totalCount,") ")}}function K(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",3),n.YNc(2,D,3,0,"ng-template",null,4,n.W1O),n.YNc(4,L,2,4,"ng-template",null,5,n.W1O),n.TgZ(6,"nz-row"),n.TgZ(7,"nz-col",6),n.TgZ(8,"div",7),n.TgZ(9,"p",8),n.YNc(10,j,2,1,"ng-container",9),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"nz-descriptions",10),n.TgZ(12,"nz-descriptions-item",11),n._UZ(13,"cvc-source-tag",12),n.qZA(),n.TgZ(14,"nz-descriptions-item",13),n._uU(15),n.qZA(),n.TgZ(16,"nz-descriptions-item",14),n._uU(17),n.ALo(18,"evidenceEnumDisplay"),n.qZA(),n.TgZ(19,"nz-descriptions-item",15),n._uU(20),n.ALo(21,"evidenceEnumDisplay"),n.qZA(),n.TgZ(22,"nz-descriptions-item",16),n._uU(23),n.ALo(24,"evidenceEnumDisplay"),n.qZA(),n.TgZ(25,"nz-descriptions-item",17),n._uU(26),n._UZ(27,"i",18),n.qZA(),n.TgZ(28,"nz-descriptions-item",19),n.YNc(29,R,2,3,"ng-container",9),n.YNc(30,i,1,0,"ng-template",null,20,n.W1O),n.qZA(),n.YNc(32,_,3,2,"nz-descriptions-item",21),n.YNc(33,F,2,1,"nz-descriptions-item",22),n.qZA(),n.TgZ(34,"nz-row",23),n.TgZ(35,"nz-col",6),n.TgZ(36,"nz-space",24),n.YNc(37,W,4,2,"a",25),n.YNc(38,B,4,2,"a",25),n.YNc(39,b,4,2,"a",25),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const t=a.ngIf,f=n.MAs(3),O=n.MAs(5),rn=n.MAs(31);n.oxw();const ln=n.MAs(4);n.xp6(1),n.Q6J("nzTitle",f)("nzExtra",O),n.xp6(8),n.Q6J("nzEllipsisRows",4),n.xp6(1),n.Q6J("ngIf",t.description)("ngIfElse",ln),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("source",t.source)("enablePopover",!1),n.xp6(2),n.hij(" ",t.evidenceLevel," "),n.xp6(2),n.hij(" ",n.lcZ(18,17,t.evidenceType)," "),n.xp6(3),n.hij(" ",n.lcZ(21,19,t.evidenceDirection)," "),n.xp6(3),n.hij(" ",n.lcZ(24,21,t.clinicalSignificance)," "),n.xp6(3),n.hij(" ",t.evidenceRating,""),n.xp6(3),n.Q6J("ngIf",t.disease)("ngIfElse",rn),n.xp6(3),n.Q6J("ngIf",t.drugs.length>0),n.xp6(1),n.Q6J("ngIf",t.phenotypes.length>0)}}function $(e,a){1&e&&n._uU(0," Evidence item has not been provided a description.\n")}let k=(()=>{class e{constructor(t){this.gql=t}ngOnInit(){if(null==this.evidenceId)throw new Error("cvc-evidence-popover requires valid evidenceId input.");this.evidence$=this.gql.watch({evidenceId:this.evidenceId}).valueChanges.pipe((0,z.U)(({data:t})=>t.evidenceItem))}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(E.Ybm))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-evidence-popover"]],inputs:{evidenceId:"evidenceId"},decls:5,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDescription",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["geneAndVariant",""],["nzSpan","24"],[1,"popover-text"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Source","nzSpan","2"],[3,"source","enablePopover"],["nzTitle","Level"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Rating"],["nz-icon","","nzType","star","nzTheme","fill"],["nzTitle","Disease"],["noDisease",""],["nzTitle","Drugs","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzType","civic:evidence"],[2,"font-weight","normal",3,"status"],[3,"enablePopover","gene"],[3,"enablePopover","variant"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Drugs","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","drug","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[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(t,f){1&t&&(n.TgZ(0,"div",0),n.YNc(1,K,40,23,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,$,1,0,"ng-template",null,2,n.W1O)),2&t&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,f.evidence$)))},directives:[s.O5,Z.bd,h.NU,h.$1,x.Ls,l.h,d.H,v.I,P.SK,P.t3,A.ZU,I.R7,I.uj,M.T,N.n,s.sg,S.u,Q.i,r.yS,T.j],pipes:[U.fM,Y.D,s.rS],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}"]}),e})();var q=o(9273);function H(e,a){}function X(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,H,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){const t=n.oxw(),f=n.MAs(2);n.xp6(1),n.Q6J("routerLink",t.evidence.link),n.xp6(1),n.Q6J("ngTemplateOutlet",f)}}function V(e,a){}function G(e,a){if(1&e&&n._UZ(0,"cvc-evidence-popover",10),2&e){const t=n.oxw(3);n.Q6J("evidenceId",t.evidence.id)}}function nn(e,a){if(1&e&&n.YNc(0,G,1,1,"cvc-evidence-popover",9),2&e){const t=n.oxw(2);n.Q6J("ngIf",t.enablePopover)}}function en(e,a){if(1&e&&(n.TgZ(0,"nz-tag",7),n.ALo(1,"colorNameForStatus"),n.YNc(2,V,0,0,"ng-template",6),n.qZA(),n.YNc(3,nn,1,1,"ng-template",null,8,n.W1O)),2&e){const t=n.MAs(4),f=n.oxw(),O=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",t)("nzColor",n.lcZ(1,4,f.evidence.status)),n.xp6(2),n.Q6J("ngTemplateOutlet",O)}}function tn(e,a){}function on(e,a){if(1&e&&(n.TgZ(0,"nz-tag",11),n.ALo(1,"colorNameForStatus"),n.YNc(2,tn,0,0,"ng-template",6),n.qZA()),2&e){const t=n.oxw(),f=n.MAs(8);n.Q6J("nzColor",n.lcZ(1,2,t.evidence.status)),n.xp6(2),n.Q6J("ngTemplateOutlet",f)}}function cn(e,a){}function pn(e,a){if(1&e&&n.YNc(0,cn,0,0,"ng-template",6),2&e){n.oxw();const t=n.MAs(2);n.Q6J("ngTemplateOutlet",t)}}function an(e,a){if(1&e&&(n._UZ(0,"i",12),n._uU(1)),2&e){const t=n.oxw();n.xp6(1),n.hij(" ",t.evidence.name,"\n")}}let sn=(()=>{class e extends c.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.evidence.id}ngOnInit(){if(void 0===this.evidence)throw new Error("cvc-evidence-tag requires LinkableEvidence input, none supplied.")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzColor"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"nzColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone","nzTwotoneColor","#F68F37"]],template:function(t,f){if(1&t&&(n.YNc(0,X,3,2,"ng-container",0),n.YNc(1,en,5,6,"ng-template",null,1,n.W1O),n.YNc(3,on,3,4,"ng-template",null,2,n.W1O),n.YNc(5,pn,1,1,"ng-template",null,3,n.W1O),n.YNc(7,an,2,1,"ng-template",null,4,n.W1O)),2&t){const O=n.MAs(6);n.Q6J("ngIf",f.linked)("ngIfElse",O)}},directives:[s.O5,r.yS,s.tP,T.j,m.lU,k,x.Ls],pipes:[q.Q],styles:["[_nghost-%COMP%]{display:inline-block}"]}),e})()},7956:(y,u,o)=>{o.d(u,{i:()=>R});var c=o(6654),n=o(5e3),s=o(9808),r=o(325),T=o(8481),m=o(3610),z=o(4850),E=o(712),Z=o(7484),h=o(647),x=o(6550),l=o(3098),d=o(6949);function v(i,g){if(1&i&&(n._UZ(0,"i",8),n._uU(1)),2&i){const p=n.oxw().ngIf;n.xp6(1),n.hij(" ",p.name," ")}}function P(i,g){if(1&i&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&i){const p=n.oxw().ngIf;n.Q6J("href",p.url),n.xp6(1),n.hij(" ",p.hpoId," ")}}function A(i,g){if(1&i&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,v,2,1,"ng-template",null,3,n.W1O),n.YNc(4,P,2,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.TgZ(9,"nz-descriptions-item",7),n._uU(10),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&i){const p=g.ngIf,_=n.MAs(3),C=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",_)("nzExtra",C),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",p.assertionCount," "),n.xp6(2),n.hij(" ",p.evidenceItemCount," ")}}let I=(()=>{class i{constructor(p){this.gql=p}ngOnInit(){if(null==this.phenotypeId)throw new Error("cvc-phenotype-popover requires valid phenotypeId input.");this.phenotype$=this.gql.watch({phenotypeId:this.phenotypeId}).valueChanges.pipe((0,z.U)(({data:p})=>p.phenotypePopover))}}return i.\u0275fac=function(p){return new(p||i)(n.Y36(E.OHm))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cvc-phenotype-popover"]],inputs:{phenotypeId:"phenotypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nz-icon","","nzType","civic-phenotype","nzTheme","twotone","nzTwotoneColor","#2A63B6"],["tooltip","View in the Human Phenotype Ontology",3,"href"]],template:function(p,_){1&p&&(n.TgZ(0,"div",0),n.YNc(1,A,11,5,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&p&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,_.phenotype$)))},directives:[s.O5,Z.bd,h.Ls,x.l,l.R7,l.uj],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 M(i,g){}function N(i,g){if(1&i&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,M,0,0,"ng-template",6),n.qZA(),n.BQk()),2&i){const p=n.oxw(),_=n.MAs(2);n.xp6(1),n.Q6J("routerLink",p.phenotype.link),n.xp6(1),n.Q6J("ngTemplateOutlet",_)}}function S(i,g){}function Q(i,g){if(1&i){const p=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(C){return n.CHM(p),n.oxw(2).itemClosed(C)}),n.YNc(1,S,0,0,"ng-template",6),n.qZA()}if(2&i){n.oxw();const p=n.MAs(2),_=n.oxw(),C=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",_.onCloseClicked?0:.5)("nzPopoverContent",p)("nzMode",_.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",C)}}function U(i,g){if(1&i&&n._UZ(0,"cvc-phenotype-popover",10),2&i){const p=n.oxw(2);n.Q6J("phenotypeId",p.phenotype.id)}}function Y(i,g){if(1&i&&(n.YNc(0,Q,2,4,"nz-tag",7),n.YNc(1,U,1,1,"ng-template",null,8,n.W1O)),2&i){const p=n.oxw(),_=n.MAs(4);n.Q6J("ngIf",p.enablePopover)("ngIfElse",_)}}function J(i,g){}function w(i,g){if(1&i){const p=n.EpF();n.TgZ(0,"nz-tag",11),n.NdJ("nzOnClose",function(C){return n.CHM(p),n.oxw().itemClosed(C)}),n.YNc(1,J,0,0,"ng-template",6),n.qZA()}if(2&i){const p=n.oxw(),_=n.MAs(8);n.Q6J("nzMode",p.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",_)}}function D(i,g){}function L(i,g){if(1&i&&n.YNc(0,D,0,0,"ng-template",6),2&i){n.oxw();const p=n.MAs(2);n.Q6J("ngTemplateOutlet",p)}}function j(i,g){if(1&i&&(n._UZ(0,"i",12),n._uU(1)),2&i){const p=n.oxw();n.xp6(1),n.hij(" ",p.phenotype.name,"\n")}}let R=(()=>{class i extends c.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.phenotype.id}ngOnInit(){if(super.ngOnInit(),void 0===this.phenotype)throw new Error("cvc-phenotype-tag requires LinkablePhenotype input, none supplied.")}}return i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["cvc-phenotype-tag"]],inputs:{phenotype:"phenotype",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["phenotypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"phenotypeId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-phenotype","nzTheme","twotone","nzTwotoneColor","#2A63B6"]],template:function(p,_){if(1&p&&(n.YNc(0,N,3,2,"ng-container",0),n.YNc(1,Y,3,2,"ng-template",null,1,n.W1O),n.YNc(3,w,2,2,"ng-template",null,2,n.W1O),n.YNc(5,L,1,1,"ng-template",null,3,n.W1O),n.YNc(7,j,2,1,"ng-template",null,4,n.W1O)),2&p){const C=n.MAs(6);n.Q6J("ngIf",_.linked)("ngIfElse",C)}},directives:[s.O5,r.yS,s.tP,T.j,m.lU,I,h.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),i})()},4590:(y,u,o)=>{o.d(u,{h:()=>x});var c=o(5e3),n=o(9808),s=o(8481),r=o(647);function T(l,d){1&l&&c._UZ(0,"i",7)}function m(l,d){1&l&&c._UZ(0,"i",8)}function z(l,d){1&l&&c._UZ(0,"i",9)}function E(l,d){1&l&&c._UZ(0,"i",10)}function Z(l,d){1&l&&c._UZ(0,"i",10)}function h(l,d){if(1&l&&(c.TgZ(0,"nz-tag",1),c.ynx(1,2),c.YNc(2,T,1,0,"i",3),c.YNc(3,m,1,0,"i",4),c.YNc(4,z,1,0,"i",5),c.YNc(5,E,1,0,"i",6),c.YNc(6,Z,1,0,"i",6),c.BQk(),c._uU(7),c.ALo(8,"titlecase"),c.qZA()),2&l){const v=c.oxw();c.Q6J("nzColor",v.tagStatus),c.xp6(1),c.Q6J("ngSwitch",v.tagStatus),c.xp6(1),c.Q6J("ngSwitchCase","success"),c.xp6(1),c.Q6J("ngSwitchCase","error"),c.xp6(1),c.Q6J("ngSwitchCase","warning"),c.xp6(1),c.Q6J("ngSwitchCase","processing"),c.xp6(1),c.Q6J("ngSwitchCase","default"),c.xp6(1),c.hij(" ",c.lcZ(8,8,v.status),"\n")}}let x=(()=>{class l{constructor(){this.statusColorMap={ACCEPTED:"success",REJECTED:"error",SUBMITTED:"warning",NEW:"processing",SUPERSEDED:"default",OPEN:"error",RESOLVED:"default"}}set status(v){this._status=v,v&&(this.tagStatus=this.statusColorMap[v])}get status(){return this._status}ngOnInit(){if(void 0===this.status)throw new Error("Must pass a valid EvidenceStatus or RevisionStatus to cvc-status-tag component")}}return l.\u0275fac=function(v){return new(v||l)},l.\u0275cmp=c.Xpm({type:l,selectors:[["cvc-status-tag"]],inputs:{status:"status"},decls:1,vars:1,consts:[[3,"nzColor",4,"ngIf"],[3,"nzColor"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","",4,"ngSwitchCase"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon",""]],template:function(v,P){1&v&&c.YNc(0,h,9,10,"nz-tag",0),2&v&&c.Q6J("ngIf",P.tagStatus)},directives:[n.O5,s.j,n.RF,n.n9,r.Ls],pipes:[n.rS],styles:[""]}),l})()},9273:(y,u,o)=>{o.d(u,{Q:()=>s});var c=o(712),n=o(5e3);let s=(()=>{class r{transform(m){switch(m){case c.RTy.Accepted:return"green";case c.RTy.Rejected:return"red";case c.RTy.Submitted:return"orange";default:return"default"}}}return r.\u0275fac=function(m){return new(m||r)},r.\u0275pipe=n.Yjl({name:"colorNameForStatus",type:r,pure:!0}),r})()},4110:(y,u,o)=>{o.d(u,{D:()=>s});var c=o(915),n=o(5e3);let s=(()=>{class r{transform(m,z="display-string"){return void 0===m?"":"display-string"===z?(0,c.E)(m):`civic-${m.replace(/_/g,"").toLowerCase()}`}}return r.\u0275fac=function(m){return new(m||r)},r.\u0275pipe=n.Yjl({name:"evidenceEnumDisplay",type:r,pure:!0}),r})()},915:(y,u,o)=>{function c(n){let s;if("NA"===n)s=["N/A"];else if("SENSITIVITYRESPONSE"===n)s=["Sensitivity","/","Response"];else{s=n.toLowerCase().replace(/_/g," ").split(" ");for(var r=0;rc})}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9001],{9001:(O,T,o)=>{o.d(T,{O:()=>sn});var i=o(6654),n=o(5e3),v=o(9808),l=o(325),f=o(8481),m=o(3610),z=o(4850),y=o(712),E=o(7484),h=o(8144),x=o(647),s=o(4590),d=o(3193),_=o(8664),P=o(1894),A=o(3618),I=o(3098),M=o(6906),N=o(4022),S=o(7469),Q=o(7956),U=o(6949),J=o(4110);function Y(e,a){if(1&e&&(n.ynx(0),n._UZ(1,"i",28),n._uU(2),n.BQk()),2&e){const t=n.oxw(2).ngIf;n.xp6(2),n.hij(" ",t.name," ")}}function w(e,a){if(1&e&&n._UZ(0,"cvc-status-tag",29),2&e){const t=n.oxw(2).ngIf;n.Q6J("status",t.status)}}function D(e,a){1&e&&(n.TgZ(0,"nz-space"),n.YNc(1,Y,3,1,"ng-container",26),n.YNc(2,w,1,1,"cvc-status-tag",27),n.qZA())}function L(e,a){if(1&e&&(n._UZ(0,"cvc-gene-tag",30),n._UZ(1,"cvc-variant-tag",31)),2&e){const t=n.oxw().ngIf;n.Q6J("enablePopover",!1)("gene",t.gene),n.xp6(1),n.Q6J("enablePopover",!1)("variant",t.variant)}}function j(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.BQk()),2&e){const t=a.ngIf;n.xp6(1),n.hij(" ",t," ")}}function F(e,a){if(1&e&&(n.ynx(0),n._UZ(1,"cvc-disease-tag",32),n.BQk()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("enablePopover",!1)("disease",t.disease)("truncateLongName",!0)}}function c(e,a){1&e&&n._uU(0," N/A ")}function r(e,a){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"cvc-drug-tag",35),n.qZA()),2&e){const t=a.$implicit;n.xp6(1),n.Q6J("enablePopover",!1)("drug",t)("truncateLongName",!0)}}function p(e,a){if(1&e&&(n.ynx(0),n._uU(1),n.ALo(2,"titlecase"),n.BQk()),2&e){const t=n.oxw(2).ngIf;n.xp6(1),n.hij(" ",n.lcZ(2,1,t.drugInteractionType)," ")}}function g(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",33),n.YNc(1,r,2,3,"span",34),n.YNc(2,p,3,3,"ng-container",1),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",t.drugs),n.xp6(1),n.Q6J("ngIf",t.drugs.length>1)}}function u(e,a){if(1&e&&(n.TgZ(0,"span"),n._UZ(1,"cvc-phenotype-tag",37),n.qZA()),2&e){const t=a.$implicit;n.xp6(1),n.Q6J("enablePopover",!1)("phenotype",t)}}function W(e,a){if(1&e&&(n.TgZ(0,"nz-descriptions-item",36),n.YNc(1,u,2,2,"span",34),n.qZA()),2&e){const t=n.oxw().ngIf;n.xp6(1),n.Q6J("ngForOf",t.phenotypes)}}function B(e,a){if(1&e&&(n.TgZ(0,"a",38),n.TgZ(1,"nz-tag",39),n._UZ(2,"i",40),n._uU(3),n.qZA(),n.qZA()),2&e){const t=n.oxw().ngIf;n.MGl("routerLink","/evidence/",t.id,"/flags"),n.xp6(3),n.hij(" Flags (",t.flags.totalCount,") ")}}function R(e,a){if(1&e&&(n.TgZ(0,"a",38),n.TgZ(1,"nz-tag",41),n._UZ(2,"i",42),n._uU(3),n.qZA(),n.qZA()),2&e){const t=n.oxw().ngIf;n.MGl("routerLink","/evidence/",t.id,"/revisions"),n.xp6(3),n.hij(" Revisions (",t.revisions.totalCount,") ")}}function b(e,a){if(1&e&&(n.TgZ(0,"a",38),n.TgZ(1,"nz-tag",43),n._UZ(2,"i",44),n._uU(3),n.qZA(),n.qZA()),2&e){const t=n.oxw().ngIf;n.MGl("routerLink","/evidence/",t.id,"/comments"),n.xp6(3),n.hij(" Comments (",t.comments.totalCount,") ")}}function K(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"nz-card",3),n.YNc(2,D,3,0,"ng-template",null,4,n.W1O),n.YNc(4,L,2,4,"ng-template",null,5,n.W1O),n.TgZ(6,"nz-row"),n.TgZ(7,"nz-col",6),n.TgZ(8,"div",7),n.TgZ(9,"p",8),n.YNc(10,j,2,1,"ng-container",9),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(11,"nz-descriptions",10),n.TgZ(12,"nz-descriptions-item",11),n._UZ(13,"cvc-source-tag",12),n.qZA(),n.TgZ(14,"nz-descriptions-item",13),n._uU(15),n.qZA(),n.TgZ(16,"nz-descriptions-item",14),n._uU(17),n.ALo(18,"evidenceEnumDisplay"),n.qZA(),n.TgZ(19,"nz-descriptions-item",15),n._uU(20),n.ALo(21,"evidenceEnumDisplay"),n.qZA(),n.TgZ(22,"nz-descriptions-item",16),n._uU(23),n.ALo(24,"evidenceEnumDisplay"),n.qZA(),n.TgZ(25,"nz-descriptions-item",17),n._uU(26),n._UZ(27,"i",18),n.qZA(),n.TgZ(28,"nz-descriptions-item",19),n.YNc(29,F,2,3,"ng-container",9),n.YNc(30,c,1,0,"ng-template",null,20,n.W1O),n.qZA(),n.YNc(32,g,3,2,"nz-descriptions-item",21),n.YNc(33,W,2,1,"nz-descriptions-item",22),n.qZA(),n.TgZ(34,"nz-row",23),n.TgZ(35,"nz-col",6),n.TgZ(36,"nz-space",24),n.YNc(37,B,4,2,"a",25),n.YNc(38,R,4,2,"a",25),n.YNc(39,b,4,2,"a",25),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&e){const t=a.ngIf,C=n.MAs(3),Z=n.MAs(5),rn=n.MAs(31);n.oxw();const ln=n.MAs(4);n.xp6(1),n.Q6J("nzTitle",C)("nzExtra",Z),n.xp6(8),n.Q6J("nzEllipsisRows",4),n.xp6(1),n.Q6J("ngIf",t.description)("ngIfElse",ln),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("source",t.source)("enablePopover",!1),n.xp6(2),n.hij(" ",t.evidenceLevel," "),n.xp6(2),n.hij(" ",n.lcZ(18,17,t.evidenceType)," "),n.xp6(3),n.hij(" ",n.lcZ(21,19,t.evidenceDirection)," "),n.xp6(3),n.hij(" ",n.lcZ(24,21,t.clinicalSignificance)," "),n.xp6(3),n.hij(" ",t.evidenceRating,""),n.xp6(3),n.Q6J("ngIf",t.disease)("ngIfElse",rn),n.xp6(3),n.Q6J("ngIf",t.drugs.length>0),n.xp6(1),n.Q6J("ngIf",t.phenotypes.length>0)}}function $(e,a){1&e&&n._uU(0," Evidence item has not been provided a description.\n")}let q=(()=>{class e{constructor(t){this.gql=t}ngOnInit(){if(null==this.evidenceId)throw new Error("cvc-evidence-popover requires valid evidenceId input.");this.evidence$=this.gql.watch({evidenceId:this.evidenceId}).valueChanges.pipe((0,z.U)(({data:t})=>t.evidenceItem))}}return e.\u0275fac=function(t){return new(t||e)(n.Y36(y.Ybm))},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-evidence-popover"]],inputs:{evidenceId:"evidenceId"},decls:5,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDescription",""],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["geneAndVariant",""],["nzSpan","24"],[1,"popover-text"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Source","nzSpan","2"],[3,"source","enablePopover"],["nzTitle","Level"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Rating"],["nz-icon","","nzType","star","nzTheme","fill"],["nzTitle","Disease"],["noDisease",""],["nzTitle","Drugs","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzType","civic:evidence"],[2,"font-weight","normal",3,"status"],[3,"enablePopover","gene"],[3,"enablePopover","variant"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Drugs","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","drug","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[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(t,C){1&t&&(n.TgZ(0,"div",0),n.YNc(1,K,40,23,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,$,1,0,"ng-template",null,2,n.W1O)),2&t&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,C.evidence$)))},directives:[v.O5,E.bd,h.NU,h.$1,x.Ls,s.h,d.H,_.I,P.SK,P.t3,A.ZU,I.R7,I.uj,M.T,N.n,v.sg,S.u,Q.i,l.yS,f.j],pipes:[U.fM,J.D,v.rS],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}"]}),e})();var k=o(9273);function H(e,a){}function X(e,a){if(1&e&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,H,0,0,"ng-template",6),n.qZA(),n.BQk()),2&e){const t=n.oxw(),C=n.MAs(2);n.xp6(1),n.Q6J("routerLink",t.evidence.link),n.xp6(1),n.Q6J("ngTemplateOutlet",C)}}function G(e,a){}function V(e,a){if(1&e&&n._UZ(0,"cvc-evidence-popover",10),2&e){const t=n.oxw(3);n.Q6J("evidenceId",t.evidence.id)}}function nn(e,a){if(1&e&&n.YNc(0,V,1,1,"cvc-evidence-popover",9),2&e){const t=n.oxw(2);n.Q6J("ngIf",t.enablePopover)}}function en(e,a){if(1&e&&(n.TgZ(0,"nz-tag",7),n.ALo(1,"colorNameForStatus"),n.YNc(2,G,0,0,"ng-template",6),n.qZA(),n.YNc(3,nn,1,1,"ng-template",null,8,n.W1O)),2&e){const t=n.MAs(4),C=n.oxw(),Z=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",t)("nzColor",n.lcZ(1,4,C.evidence.status)),n.xp6(2),n.Q6J("ngTemplateOutlet",Z)}}function tn(e,a){}function on(e,a){if(1&e&&(n.TgZ(0,"nz-tag",11),n.ALo(1,"colorNameForStatus"),n.YNc(2,tn,0,0,"ng-template",6),n.qZA()),2&e){const t=n.oxw(),C=n.MAs(8);n.Q6J("nzColor",n.lcZ(1,2,t.evidence.status)),n.xp6(2),n.Q6J("ngTemplateOutlet",C)}}function cn(e,a){}function pn(e,a){if(1&e&&n.YNc(0,cn,0,0,"ng-template",6),2&e){n.oxw();const t=n.MAs(2);n.Q6J("ngTemplateOutlet",t)}}function an(e,a){if(1&e&&(n._UZ(0,"i",12),n._uU(1)),2&e){const t=n.oxw();n.xp6(1),n.hij(" ",t.evidence.name,"\n")}}let sn=(()=>{class e extends i.a{constructor(){super(),this.linked=!0,this.enablePopover=!0}idFunction(){return this.evidence.id}ngOnInit(){if(void 0===this.evidence)throw new Error("cvc-evidence-tag requires LinkableEvidence input, none supplied.")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzColor"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"nzColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone","nzTwotoneColor","#F68F37"]],template:function(t,C){if(1&t&&(n.YNc(0,X,3,2,"ng-container",0),n.YNc(1,en,5,6,"ng-template",null,1,n.W1O),n.YNc(3,on,3,4,"ng-template",null,2,n.W1O),n.YNc(5,pn,1,1,"ng-template",null,3,n.W1O),n.YNc(7,an,2,1,"ng-template",null,4,n.W1O)),2&t){const Z=n.MAs(6);n.Q6J("ngIf",C.linked)("ngIfElse",Z)}},directives:[v.O5,l.yS,v.tP,f.j,m.lU,q,x.Ls],pipes:[k.Q],styles:["[_nghost-%COMP%]{display:inline-block}"]}),e})()},7956:(O,T,o)=>{o.d(T,{i:()=>F});var i=o(6654),n=o(5e3),v=o(9808),l=o(325),f=o(8481),m=o(3610),z=o(4850),y=o(712),E=o(7484),h=o(647),x=o(6550),s=o(3098),d=o(6949);function _(c,r){if(1&c&&(n._UZ(0,"i",8),n._uU(1)),2&c){const p=n.oxw().ngIf;n.xp6(1),n.hij(" ",p.name," ")}}function P(c,r){if(1&c&&(n.TgZ(0,"cvc-link-tag",9),n._uU(1),n.qZA()),2&c){const p=n.oxw().ngIf;n.Q6J("href",p.url),n.xp6(1),n.hij(" ",p.hpoId," ")}}function A(c,r){if(1&c&&(n.ynx(0),n.TgZ(1,"nz-card",2),n.YNc(2,_,2,1,"ng-template",null,3,n.W1O),n.YNc(4,P,2,2,"ng-template",null,4,n.W1O),n.TgZ(6,"nz-descriptions",5),n.TgZ(7,"nz-descriptions-item",6),n._uU(8),n.qZA(),n.TgZ(9,"nz-descriptions-item",7),n._uU(10),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&c){const p=r.ngIf,g=n.MAs(3),u=n.MAs(5);n.xp6(1),n.Q6J("nzTitle",g)("nzExtra",u),n.xp6(5),n.Q6J("nzColumn",2),n.xp6(2),n.hij(" ",p.assertionCount," "),n.xp6(2),n.hij(" ",p.evidenceItemCount," ")}}let I=(()=>{class c{constructor(p){this.gql=p}ngOnInit(){if(null==this.phenotypeId)throw new Error("cvc-phenotype-popover requires valid phenotypeId input.");this.phenotype$=this.gql.watch({phenotypeId:this.phenotypeId}).valueChanges.pipe((0,z.U)(({data:p})=>p.phenotypePopover))}}return c.\u0275fac=function(p){return new(p||c)(n.Y36(y.OHm))},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-phenotype-popover"]],inputs:{phenotypeId:"phenotypeId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["linkout",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nz-icon","","nzType","civic-phenotype","nzTheme","twotone","nzTwotoneColor","#2A63B6"],["tooltip","View in the Human Phenotype Ontology",3,"href"]],template:function(p,g){1&p&&(n.TgZ(0,"div",0),n.YNc(1,A,11,5,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA()),2&p&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,g.phenotype$)))},directives:[v.O5,E.bd,h.Ls,x.l,s.R7,s.uj],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}"]}),c})();function M(c,r){}function N(c,r){if(1&c&&(n.ynx(0),n.TgZ(1,"a",5),n.YNc(2,M,0,0,"ng-template",6),n.qZA(),n.BQk()),2&c){const p=n.oxw(),g=n.MAs(2);n.xp6(1),n.Q6J("routerLink",p.phenotype.link),n.xp6(1),n.Q6J("ngTemplateOutlet",g)}}function S(c,r){}function Q(c,r){if(1&c){const p=n.EpF();n.TgZ(0,"nz-tag",9),n.NdJ("nzOnClose",function(u){return n.CHM(p),n.oxw(2).itemClosed(u)}),n.YNc(1,S,0,0,"ng-template",6),n.qZA()}if(2&c){n.oxw();const p=n.MAs(2),g=n.oxw(),u=n.MAs(8);n.Q6J("nzPopoverMouseEnterDelay",g.onCloseClicked?0:.5)("nzPopoverContent",p)("nzMode",g.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function U(c,r){if(1&c&&n._UZ(0,"cvc-phenotype-popover",10),2&c){const p=n.oxw(2);n.Q6J("phenotypeId",p.phenotype.id)}}function J(c,r){if(1&c&&(n.YNc(0,Q,2,4,"nz-tag",7),n.YNc(1,U,1,1,"ng-template",null,8,n.W1O)),2&c){const p=n.oxw(),g=n.MAs(4);n.Q6J("ngIf",p.enablePopover)("ngIfElse",g)}}function Y(c,r){}function w(c,r){if(1&c){const p=n.EpF();n.TgZ(0,"nz-tag",11),n.NdJ("nzOnClose",function(u){return n.CHM(p),n.oxw().itemClosed(u)}),n.YNc(1,Y,0,0,"ng-template",6),n.qZA()}if(2&c){const p=n.oxw(),g=n.MAs(8);n.Q6J("nzMode",p.onCloseClicked?"closeable":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",g)}}function D(c,r){}function L(c,r){if(1&c&&n.YNc(0,D,0,0,"ng-template",6),2&c){n.oxw();const p=n.MAs(2);n.Q6J("ngTemplateOutlet",p)}}function j(c,r){if(1&c&&(n._UZ(0,"i",12),n._uU(1)),2&c){const p=n.oxw();n.xp6(1),n.hij(" ",p.phenotype.name,"\n")}}let F=(()=>{class c extends i.a{constructor(){super(),this.enablePopover=!0}idFunction(){return this.phenotype.id}ngOnInit(){if(super.ngOnInit(),void 0===this.phenotype)throw new Error("cvc-phenotype-tag requires LinkablePhenotype input, none supplied.")}}return c.\u0275fac=function(p){return new(p||c)},c.\u0275cmp=n.Xpm({type:c,selectors:[["cvc-phenotype-tag"]],inputs:{phenotype:"phenotype",enablePopover:"enablePopover"},features:[n.qOj],decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["phenotypePopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose"],[3,"phenotypeId"],[3,"nzMode","nzOnClose"],["nz-icon","","nzType","civic-phenotype","nzTheme","twotone","nzTwotoneColor","#2A63B6"]],template:function(p,g){if(1&p&&(n.YNc(0,N,3,2,"ng-container",0),n.YNc(1,J,3,2,"ng-template",null,1,n.W1O),n.YNc(3,w,2,2,"ng-template",null,2,n.W1O),n.YNc(5,L,1,1,"ng-template",null,3,n.W1O),n.YNc(7,j,2,1,"ng-template",null,4,n.W1O)),2&p){const u=n.MAs(6);n.Q6J("ngIf",g.linked)("ngIfElse",u)}},directives:[v.O5,l.yS,v.tP,f.j,m.lU,I,h.Ls],styles:["[_nghost-%COMP%]{display:block}"]}),c})()},4590:(O,T,o)=>{o.d(T,{h:()=>x});var i=o(5e3),n=o(9808),v=o(8481),l=o(647);function f(s,d){1&s&&i._UZ(0,"i",7)}function m(s,d){1&s&&i._UZ(0,"i",8)}function z(s,d){1&s&&i._UZ(0,"i",9)}function y(s,d){1&s&&i._UZ(0,"i",10)}function E(s,d){1&s&&i._UZ(0,"i",10)}function h(s,d){if(1&s&&(i.TgZ(0,"nz-tag",1),i.ynx(1,2),i.YNc(2,f,1,0,"i",3),i.YNc(3,m,1,0,"i",4),i.YNc(4,z,1,0,"i",5),i.YNc(5,y,1,0,"i",6),i.YNc(6,E,1,0,"i",6),i.BQk(),i._uU(7),i.ALo(8,"titlecase"),i.qZA()),2&s){const _=i.oxw();i.Q6J("nzColor",_.tagStatus),i.xp6(1),i.Q6J("ngSwitch",_.tagStatus),i.xp6(1),i.Q6J("ngSwitchCase","success"),i.xp6(1),i.Q6J("ngSwitchCase","error"),i.xp6(1),i.Q6J("ngSwitchCase","warning"),i.xp6(1),i.Q6J("ngSwitchCase","processing"),i.xp6(1),i.Q6J("ngSwitchCase","default"),i.xp6(1),i.hij(" ",i.lcZ(8,8,_.status),"\n")}}let x=(()=>{class s{constructor(){this.statusColorMap={ACCEPTED:"success",REJECTED:"error",SUBMITTED:"warning",NEW:"processing",SUPERSEDED:"default",OPEN:"error",RESOLVED:"default"}}set status(_){this._status=_,_&&(this.tagStatus=this.statusColorMap[_])}get status(){return this._status}ngOnInit(){if(void 0===this.status)throw new Error("Must pass a valid EvidenceStatus or RevisionStatus to cvc-status-tag component")}}return s.\u0275fac=function(_){return new(_||s)},s.\u0275cmp=i.Xpm({type:s,selectors:[["cvc-status-tag"]],inputs:{status:"status"},decls:1,vars:1,consts:[[3,"nzColor",4,"ngIf"],[3,"nzColor"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","",4,"ngSwitchCase"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon",""]],template:function(_,P){1&_&&i.YNc(0,h,9,10,"nz-tag",0),2&_&&i.Q6J("ngIf",P.tagStatus)},directives:[n.O5,v.j,n.RF,n.n9,l.Ls],pipes:[n.rS],styles:[""]}),s})()},9273:(O,T,o)=>{o.d(T,{Q:()=>v});var i=o(712),n=o(5e3);let v=(()=>{class l{transform(m){switch(m){case i.RTy.Accepted:return"green";case i.RTy.Rejected:return"red";case i.RTy.Submitted:return"orange";default:return"default"}}}return l.\u0275fac=function(m){return new(m||l)},l.\u0275pipe=n.Yjl({name:"colorNameForStatus",type:l,pure:!0}),l})()},4110:(O,T,o)=>{o.d(T,{D:()=>v});var i=o(915),n=o(5e3);let v=(()=>{class l{transform(m,z="display-string"){return void 0===m?"":"display-string"===z?(0,i.E)(m):`civic-${m.replace(/_/g,"").toLowerCase()}`}}return l.\u0275fac=function(m){return new(m||l)},l.\u0275pipe=n.Yjl({name:"evidenceEnumDisplay",type:l,pure:!0}),l})()}}]); \ No newline at end of file diff --git a/server/public/9020.d6f9f3844668aecf.js b/server/public/9020.d6f9f3844668aecf.js deleted file mode 100644 index f3c5785e7..000000000 --- a/server/public/9020.d6f9f3844668aecf.js +++ /dev/null @@ -1 +0,0 @@ -"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/9039.29f14b8e9cf1f2cc.js b/server/public/9039.29f14b8e9cf1f2cc.js new file mode 100644 index 000000000..36626218a --- /dev/null +++ b/server/public/9039.29f14b8e9cf1f2cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9039],{1243:(At,Y,d)=>{d.d(Y,{I:()=>z});var l=d(5e3);let z=(()=>{class R{transform(t){if(t){let E=t.toLowerCase().replace(/_/g," ").split(" ");for(var M=0;M{d.d(Y,{q:()=>mt});var l=d(5e3),z=d(8929),R=d(4850),C=d(373),t=d(2868),M=d(7625),E=d(1793),m=d(9350),N=d(9808),A=d(6042),U=d(2683),ot=d(2643),H=d(3677),F=d(8144),st=d(6699),q=d(4219);function ut(_,b){1&_&&l.Hsn(0)}function T(_,b){1&_&&l.GkF(0)}function f(_,b){if(1&_&&(l.ynx(0),l.YNc(1,T,1,0,"ng-container",5),l.BQk()),2&_){l.oxw(2);const p=l.MAs(1);l.xp6(1),l.Q6J("ngTemplateOutlet",p)}}function rt(_,b){1&_&&l.GkF(0)}function Q(_,b){if(1&_&&(l.ynx(0),l.TgZ(1,"nz-button-group",6),l.YNc(2,rt,1,0,"ng-container",5),l.TgZ(3,"button",7),l.TgZ(4,"nz-space",8),l.TgZ(5,"span"),l._uU(6,"for"),l.qZA(),l._UZ(7,"nz-avatar",9),l._UZ(8,"i",10),l.qZA(),l.qZA(),l.qZA(),l.BQk()),2&_){l.oxw();const p=l.MAs(4),v=l.oxw(),O=l.MAs(1);l.xp6(1),l.Q6J("nzSize",v.nzSize),l.xp6(1),l.Q6J("ngTemplateOutlet",O),l.xp6(1),l.Q6J("nzType",v.buttonType)("nzDanger",v.nzDanger)("disabled",v.disabled)("nzDropdownMenu",p),l.xp6(1),l.Q6J("nzSize",4),l.xp6(3),l.Q6J("nzSrc",null==v.selectedOrg?null:v.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function X(_,b){if(1&_){const p=l.EpF();l.TgZ(0,"li",11),l.NdJ("click",function(){const $=l.CHM(p).$implicit;return l.oxw(2).selectOrg($)}),l._UZ(1,"nz-avatar",12),l._uU(2),l.qZA()}if(2&_){const p=b.$implicit,v=l.oxw(2);l.Q6J("nzSelected",(null==v.selectedOrg?null:v.selectedOrg.id)===p.id),l.xp6(1),l.Q6J("nzSrc",null==p?null:p.profileImagePath)("nzSize",10)("nzShape","square"),l.xp6(1),l.hij(" ",p.name," ")}}function at(_,b){if(1&_&&(l.ynx(0),l.YNc(1,f,2,1,"ng-container",1),l.YNc(2,Q,9,10,"ng-container",1),l.TgZ(3,"nz-dropdown-menu",null,2),l.TgZ(5,"ul",3),l.YNc(6,X,3,5,"li",4),l.qZA(),l.qZA(),l.BQk()),2&_){const p=b.ngIf;l.xp6(1),l.Q6J("ngIf",p.length<=1),l.xp6(1),l.Q6J("ngIf",p.length>1),l.xp6(4),l.Q6J("ngForOf",p)}}const _t=["*"];let mt=(()=>{class _{constructor(p){this.viewerService=p,this.selectedOrgChange=new l.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new z.xQ}get disabled(){return this.button.disabled}selectOrg(p){this.selectedOrg=p,this.selectedOrgChange.emit(p)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,R.U)(p=>p.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,C.j)("mostRecentOrg"),(0,t.b)(p=>{p&&(this.selectedOrg=p,this.selectedOrgChange.emit(p))})),this.mostRecentOrg$.pipe((0,M.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(p){return new(p||_)(l.Y36(m.a))},_.\u0275cmp=l.Xpm({type:_,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(p,v,O){if(1&p&&l.Suo(O,E.m,5),2&p){let $;l.iGM($=l.CRH())&&(v.button=$.first)}},inputs:{selectedOrg:"selectedOrg",buttonType:"buttonType",nzDanger:"nzDanger",nzSize:"nzSize"},outputs:{selectedOrgChange:"selectedOrgChange"},ngContentSelectors:_t,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(p,v){1&p&&(l.F$t(),l.YNc(0,ut,1,0,"ng-template",null,0,l.W1O),l.YNc(2,at,7,3,"ng-container",1),l.ALo(3,"async")),2&p&&(l.xp6(2),l.Q6J("ngIf",l.lcZ(3,1,v.organizations$)))},directives:[N.O5,N.tP,A.fY,U.w,A.ix,ot.dQ,H.wA,H.cm,F.NU,st.Dz,H.RR,q.wO,N.sg,q.r9],pipes:[N.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),_})()},3073:(At,Y,d)=>{d.r(Y),d.d(Y,{OrganizationsModule:()=>Yi});var l=d(9808),z=d(6949),R=d(9441),C=d(647),t=d(5e3);let M=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,R.s,C.PV]]}),n})();var E=d(5630),m=d(8929),N=d(2198),A=d(2986),U=d(7625),ot=d(9439),H=d(1721),F=d(2845),st=d(7429),q=d(1159),ut=d(8076),T=d(925),f=d(3191),rt=d(5664),Q=d(2654),X=d(2916),at=d(353),_t=d(4241);function _(n){const{subscriber:i,counter:e,period:o}=n;i.next(e),this.schedule({subscriber:i,counter:e+1,period:o},o)}var b=d(352),p=d(6787),v=d(4850),O=d(1059),$=d(2868),Zt=d(7545),kt=d(2321),ft=d(226);function vt(n,i,e){for(let o in i)if(i.hasOwnProperty(o)){const s=i[o];s?n.setProperty(o,s,(null==e?void 0:e.has(o))?"important":""):n.removeProperty(o)}return n}function j(n,i){const e=i?"":"none";vt(n.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Lt(n,i,e){vt(n.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function ct(n,i){return i&&"none"!=i?n+" "+i:n}function Nt(n){const i=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*i}function zt(n,i){return n.getPropertyValue(i).split(",").map(o=>o.trim())}function Ct(n){const i=n.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function Dt(n,i,e){const{top:o,bottom:s,left:r,right:a}=n;return e>=o&&e<=s&&i>=r&&i<=a}function tt(n,i,e){n.top+=i,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function Ut(n,i,e,o){const{top:s,right:r,bottom:a,left:c,width:g,height:h}=n,u=g*i,D=h*i;return o>s-D&&oc-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Ct(e)})})}handleScroll(i){const e=(0,T.sA)(i),o=this.positions.get(e);if(!o)return null;const s=o.scrollPosition;let r,a;if(e===this._document){const h=this._viewportRuler.getViewportScrollPosition();r=h.top,a=h.left}else r=e.scrollTop,a=e.scrollLeft;const c=s.top-r,g=s.left-a;return this.positions.forEach((h,u)=>{h.clientRect&&e!==u&&e.contains(u)&&tt(h.clientRect,c,g)}),s.top=r,s.left=a,{top:c,left:g}}}function Qt(n){const i=n.cloneNode(!0),e=i.querySelectorAll("[id]"),o=n.nodeName.toLowerCase();i.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const g=this._handles.find(h=>c.target&&(c.target===h||h.contains(c.target)));g&&!this._disabledHandles.has(g)&&!this.disabled&&this._initializeDragSequence(g,c)}else this.disabled||this._initializeDragSequence(this._rootElement,c)},this._pointerMove=c=>{const g=this._getPointerPositionOnPage(c);if(!this._hasStartedDragging){if(Math.abs(g.x-this._pickupPositionOnPage.x)+Math.abs(g.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const it=Date.now()>=this._dragStartTime+this._getDragStartDelay(c),G=this._dropContainer;if(!it)return void this._endDragSequence(c);(!G||!G.isDragging()&&!G.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(g);if(this._hasMoved=!0,this._lastKnownPointerPosition=g,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,g);else{const u=this._activeTransform;u.x=h.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=h.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.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(i).withParent(e.parentDragRef||null),this._parentPositions=new Ft(o,r),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(i){const e=(0,f.Ig)(i);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(o=>j(o,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(o=>(0,f.fI)(o)),this._handles.forEach(o=>j(o,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(o=>{this._handles.indexOf(o)>-1&&e.add(o)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=(0,f.fI)(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Ht),e.addEventListener("touchstart",this._pointerDown,Yt)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?(0,f.fI)(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){var i,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(i=this._rootElement)||void 0===i||i.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(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),j(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),j(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var i,e;null===(i=this._preview)||void 0===i||i.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var i,e;null===(i=this._placeholder)||void 0===i||i.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){et(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const o=this._rootElement,s=o.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),c=this._getShadowRoot();s.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),Lt(o,!1,bt),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(i,e){this._parentDragRef&&e.stopPropagation();const o=this.isDragging(),s=et(e),r=!s&&0!==e.button,a=this._rootElement,c=(0,T.sA)(e),g=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=s?(0,rt.yG)(e):(0,rt.X6)(e);if(c&&c.draggable&&"mousedown"===e.type&&e.preventDefault(),o||r||g||h)return;if(this._handles.length){const S=a.style;this._rootElementTapHighlight=S.webkitTapHighlightColor||"",S.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(S=>this._updateOnScroll(S)),this._boundaryElement&&(this._boundaryRect=Ct(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(i,e);const D=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:D.x,y:D.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){Lt(this._rootElement,!0,bt),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(i),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:i,y:e},{x:o,y:s}){let r=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,i,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,s),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,o=i?i.template:null;let s;if(o&&i){const r=i.matchSize?this._rootElement.getBoundingClientRect():null,a=i.viewContainer.createEmbeddedView(o,i.context);a.detectChanges(),s=jt(a,this._document),this._previewRef=a,i.matchSize?Wt(s,r):s.style.transform=lt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const r=this._rootElement;s=Qt(r),Wt(s,r.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return vt(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},bt),j(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>s.classList.add(r)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function pe(n){const i=getComputedStyle(n),e=zt(i,"transition-property"),o=e.find(c=>"transform"===c||"all"===c);if(!o)return 0;const s=e.indexOf(o),r=zt(i,"transition-duration"),a=zt(i,"transition-delay");return Nt(r[s])+Nt(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(o=>{const s=a=>{var c;(!a||(0,T.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 i=this._placeholderTemplate,e=i?i.template:null;let o;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),o=jt(this._placeholderRef,this._document)):o=Qt(this._rootElement),o.classList.add("cdk-drag-placeholder"),o}_getPointerPositionInElement(i,e){const o=this._rootElement.getBoundingClientRect(),s=i===this._rootElement?null:i,r=s?s.getBoundingClientRect():o,a=et(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(i){const e=this._getViewportScrollPosition(),o=et(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,s=o.pageX-e.left,r=o.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const c=this._ownerSVGElement.createSVGPoint();return c.x=s,c.y=r,c.matrixTransform(a.inverse())}}return{x:s,y:r}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:o,y:s}=this.constrainPosition?this.constrainPosition(i,this):i;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(o=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,c=this._boundaryRect,g=this._previewRect,h=c.top+a,u=c.bottom-(g.height-a);o=$t(o,c.left+r,c.right-(g.width-r)),s=$t(s,h,u)}return{x:o,y:s}}_updatePointerDirectionDelta(i){const{x:e,y:o}=i,s=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),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 i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,j(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,Ht),i.removeEventListener("touchstart",this._pointerDown,Yt)}_applyRootElementTransform(i,e){const o=lt(i,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=ct(o,this._initialTransform)}_applyPreviewTransform(i,e){var o;const s=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,r=lt(i,e);this._preview.style.transform=ct(r,s)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const o=this._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,g=s.bottom-o.bottom;o.width>s.width?(r>0&&(i+=r),a>0&&(i-=a)):i=0,o.height>s.height?(c>0&&(e+=c),g>0&&(e-=g)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:et(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const o=(0,T.sA)(i);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&tt(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 i=this._parentPositions.positions.get(this._document);return i?i.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,T.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const o=this._previewContainer||"global";if("parent"===o)return i;if("global"===o){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,f.fI)(o)}}function lt(n,i){return`translate3d(${Math.round(n)}px, ${Math.round(i)}px, 0)`}function $t(n,i,e){return Math.max(i,Math.min(e,n))}function et(n){return"t"===n.type[0]}function jt(n,i){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const o=i.createElement("div");return e.forEach(s=>o.appendChild(s)),o}function Wt(n,i){n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.transform=lt(i.left,i.top)}function nt(n,i){return Math.max(0,Math.min(i,n))}class ve{constructor(i,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 m.xQ,this.entered=new m.xQ,this.exited=new m.xQ,this.dropped=new m.xQ,this.sorted=new m.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=Q.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new m.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function mt(n=0,i=at.P){return(!(0,_t.k)(n)||n<0)&&(n=0),(!i||"function"!=typeof i.schedule)&&(i=at.P),new X.y(e=>(e.add(i.schedule(_,n,{subscriber:e,counter:0,period:n})),e))}(0,b.Z).pipe((0,U.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,f.fI)(i),this._document=o,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new Ft(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(i,e,o,s){let r;this._draggingStarted(),null==s?(r=this.sortingDisabled?this._draggables.indexOf(i):-1,-1===r&&(r=this._getItemIndexFromPointerPosition(i,e,o))):r=s;const a=this._activeDraggables,c=a.indexOf(i),g=i.getPlaceholderElement();let h=a[r];if(h===i&&(h=a[r+1]),!h&&(null==r||-1===r||r-1&&a.splice(c,1),h&&!this._dragDropRegistry.isDragging(h)){const u=h.getRootElement();u.parentElement.insertBefore(g,u),a.splice(r,0,i)}else(0,f.fI)(this.element).appendChild(g),a.push(i);g.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,o,s,r,a,c){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:o,container:this,previousContainer:s,isPointerOverContainer:r,distance:a,dropPoint:c})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(o=>o._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===i.indexOf(s))?this._reset():this._cacheItems()),this}withDirection(i){return this._direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._orientation=i,this}withScrollableParents(i){const e=(0,f.fI)(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(o=>o.drag===i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,o,s){if(this.sortingDisabled||!this._clientRect||!Ut(this._clientRect,.05,e,o))return;const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(i,e,o,s);if(-1===a&&r.length>0)return;const c="horizontal"===this._orientation,g=r.findIndex(w=>w.drag===i),h=r[a],D=h.clientRect,S=g>a?1:-1,it=this._getItemOffsetPx(r[g].clientRect,D,S),G=this._getSiblingOffsetPx(g,r,S),K=r.slice();(function fe(n,i,e){const o=nt(i,n.length-1),s=nt(e,n.length-1);if(o===s)return;const r=n[o],a=s{if(K[Hi]===w)return;const ge=w.drag===i,Mt=ge?it:G,he=ge?i.getPlaceholderElement():w.drag.getRootElement();w.offset+=Mt,c?(he.style.transform=ct(`translate3d(${Math.round(w.offset)}px, 0, 0)`,w.initialTransform),tt(w.clientRect,0,Mt)):(he.style.transform=ct(`translate3d(0, ${Math.round(w.offset)}px, 0)`,w.initialTransform),tt(w.clientRect,Mt,0))}),this._previousSwap.overlaps=Dt(D,e,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=c?s.x:s.y}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let o,s=0,r=0;if(this._parentPositions.positions.forEach((a,c)=>{c===this._document||!a.clientRect||o||Ut(a.clientRect,.05,i,e)&&([s,r]=function ze(n,i,e,o){const s=qt(i,o),r=Xt(i,e);let a=0,c=0;if(s){const g=n.scrollTop;1===s?g>0&&(a=1):n.scrollHeight-g>n.clientHeight&&(a=2)}if(r){const g=n.scrollLeft;1===r?g>0&&(c=1):n.scrollWidth-g>n.clientWidth&&(c=2)}return[a,c]}(c,a.clientRect,i,e),(s||r)&&(o=c))}),!s&&!r){const{width:a,height:c}=this._viewportRuler.getViewportSize(),g={width:a,height:c,top:0,right:a,bottom:c,left:0};s=qt(g,e),r=Xt(g,i),o=window}o&&(s!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||o!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=r,this._scrollNode=o,(s||r)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=(0,f.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=(0,f.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_cacheItemPositions(){const i="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const o=e.getVisibleElement();return{drag:e,offset:0,initialTransform:o.style.transform||"",clientRect:Ct(o)}}).sort((e,o)=>i?e.clientRect.left-o.clientRect.left:e.clientRect.top-o.clientRect.top)}_reset(){this._isDragging=!1;const i=(0,f.fI)(this.element).style;i.scrollSnapType=i.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(i,e,o){const s="horizontal"===this._orientation,r=e[i].clientRect,a=e[i+-1*o];let c=r[s?"width":"height"]*o;if(a){const g=s?"left":"top",h=s?"right":"bottom";-1===o?c-=a.clientRect[g]-r[h]:c+=r[g]-a.clientRect[h]}return c}_getItemOffsetPx(i,e,o){const s="horizontal"===this._orientation;let r=s?e.left-i.left:e.top-i.top;return-1===o&&(r+=s?e.width-i.width:e.height-i.height),r}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const o=this._itemPositions,s="horizontal"===this._orientation;if(o[0].drag!==this._activeDraggables[0]){const a=o[o.length-1].clientRect;return s?i>=a.right:e>=a.bottom}{const a=o[0].clientRect;return s?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,o,s){const r="horizontal"===this._orientation,a=this._itemPositions.findIndex(({drag:c,clientRect:g})=>{if(c===i)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(g.left)&&e=Math.floor(g.top)&&os._canReceive(i,e,o))}_canReceive(i,e,o){if(!this._clientRect||!Dt(this._clientRect,e,o)||!this.enterPredicate(i,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,o);if(!s)return!1;const r=(0,f.fI)(this.element);return s===r||r.contains(s)}_startReceiving(i,e){const o=this._activeSiblings;!o.has(i)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(o.add(i),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&(this._itemPositions.forEach(({clientRect:o})=>{tt(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 i=(0,T.kV)((0,f.fI)(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function qt(n,i){const{top:e,bottom:o,height:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}function Xt(n,i){const{left:e,right:o,width:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}const dt=(0,T.i$)({passive:!1,capture:!0});let Ce=(()=>{class n{constructor(e,o){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new m.xQ,this.pointerUp=new m.xQ,this.scroll=new m.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,dt)})}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,dt)}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:dt}),s||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:dt}),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 X.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,p.T)(...o)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,o)=>{this._document.removeEventListener(o,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b),t.LFG(l.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const De={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let te=(()=>{class n{constructor(e,o,s,r){this._document=e,this._ngZone=o,this._viewportRuler=s,this._dragDropRegistry=r}createDrag(e,o=De){return new me(e,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ve(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(l.K0),t.LFG(t.R0b),t.LFG(kt.rL),t.LFG(Ce))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xt=new t.OlP("CDK_DRAG_PARENT"),be=new t.OlP("CDK_DRAG_CONFIG"),xe=new t.OlP("CdkDropList"),yt=new t.OlP("CdkDragHandle");let ye=(()=>{class n{constructor(e,o){this.element=e,this._stateChanges=new m.xQ,this._disabled=!1,this._parentDrag=o}get disabled(){return this._disabled}set disabled(e){this._disabled=(0,f.Ig)(e),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(xt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:yt,useExisting:n}])]}),n})();const Pe=new t.OlP("CdkDragPlaceholder"),Se=new t.OlP("CdkDragPreview");let Te=(()=>{class n{constructor(e,o,s,r,a,c,g,h,u,D,S){this.element=e,this.dropContainer=o,this._ngZone=r,this._viewContainerRef=a,this._dir=g,this._changeDetectorRef=u,this._selfHandle=D,this._parentDrag=S,this._destroyed=new m.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 X.y(it=>{const G=this._dragRef.moved.pipe((0,v.U)(K=>({source:this,pointerPosition:K.pointerPosition,event:K.event,delta:K.delta,distance:K.distance}))).subscribe(it);return()=>{G.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,n._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,f.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,A.q)(1),(0,U.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const o=e.rootElementSelector,s=e.freeDragPosition;o&&!o.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){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,f.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,f.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,A.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=n._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:g,rootElementSelector:h,previewContainer:u}=e;this.disabled=null!=g&&g,this.dragStartDelay=s||0,o&&(this.lockAxis=o),r&&(this.constrainPosition=r),a&&(this.previewClass=a),c&&(this.boundaryElement=c),h&&(this.rootElementSelector=h),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe((0,O.O)(this._handles),(0,$.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,Zt.w)(e=>(0,p.T)(...e.map(o=>o._stateChanges.pipe((0,O.O)(o))))),(0,U.R)(this._destroyed)).subscribe(e=>{const o=this._dragRef,s=e.element.nativeElement;e.disabled?o.disableHandle(s):o.enableHandle(s)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(xe,12),t.Y36(l.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(be,8),t.Y36(ft.Is,8),t.Y36(te),t.Y36(t.sBO),t.Y36(yt,10),t.Y36(xt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,o,s){if(1&e&&(t.Suo(s,Se,5),t.Suo(s,Pe,5),t.Suo(s,yt,5)),2&e){let r;t.iGM(r=t.CRH())&&(o._previewTemplate=r.first),t.iGM(r=t.CRH())&&(o._placeholderTemplate=r.first),t.iGM(r=t.CRH())&&(o._handles=r)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[t._Bn([{provide:xt,useExisting:n}]),t.TTD]}),n})(),Oe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[te],imports:[kt.ZD]}),n})();var Ie=d(2051);const Ee=["imgRef"];function Re(n,i){if(1&n){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&n){const e=i.$implicit,o=t.oxw();t.ekj("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===e.type),t.xp6(1),t.Q6J("nzType",e.icon)}}function Me(n,i){if(1&n&&t._UZ(0,"img",12,13),2&n){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 Ae(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Me,2,9,"img",11),t.BQk()),2&n){const e=i.index,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.index===e)}}function Ze(n,i){if(1&n){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&n){const e=t.oxw();t.xp6(1),t.ekj("ant-image-preview-switch-left-disabled",e.index<=0),t.xp6(2),t.ekj("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}class Pt{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}class Le{constructor(i,e,o){this.previewInstance=i,this.config=e,this.overlayRef=o,this.destroy$=new m.xQ,o.keydownEvents().pipe((0,N.h)(s=>this.config.nzKeyboard&&s.keyCode===q.hY&&!(0,q.Vb)(s))).subscribe(s=>{s.preventDefault(),this.close()}),o.detachments().subscribe(()=>{this.overlayRef.dispose()}),i.containerClick.pipe((0,A.q)(1),(0,U.R)(this.destroy$)).subscribe(()=>{this.close()}),i.closeClick.pipe((0,A.q)(1),(0,U.R)(this.destroy$)).subscribe(()=>{this.close()}),i.animationStateChanged.pipe((0,N.h)(s=>"done"===s.phaseName&&"leave"===s.toState),(0,A.q)(1)).subscribe(()=>{this.dispose()})}switchTo(i){this.previewInstance.switchTo(i)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.previewInstance.startLeaveAnimation()}dispose(){this.destroy$.next(),this.overlayRef.dispose()}}function ne(n,i,e){const o=n+i,s=(i-e)/2;let r=null;return i>e?(n>0&&(r=s),n<0&&oe)&&(r=n<0?s:-s),r}const ht={x:0,y:0};let Qe=(()=>{class n{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({},ht),this.containerClick=new t.vpe,this.closeClick=new t.vpe,this.destroy$=new m.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({},ht)}onZoomOut(){this.zoom>1&&(this.zoom-=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position=Object.assign({},ht))}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 Ue(n){const i=n.getBoundingClientRect(),e=document.documentElement;return{left:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:a,height:c}=function Fe(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),g=this.rotate%180!=0,u=function Ne(n){let i={};return n.width<=n.clientWidth&&n.height<=n.clientHeight&&(i={x:0,y:0}),(n.width>n.clientWidth||n.height>n.clientHeight)&&(i={x:ne(n.left,n.width,n.clientWidth),y:ne(n.top,n.height,n.clientHeight)}),i}({width:g?o:e,height:g?e:o,left:s,top:r,clientWidth:a,clientHeight:c});((0,H.DX)(u.x)||(0,H.DX)(u.y))&&(this.position=Object.assign(Object.assign({},this.position),u))}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({},ht)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(ot.jY),t.Y36(Pt),t.Y36(F.Iu))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-image-preview"]],viewQuery:function(e,o){if(1&e&&t.Gf(Ee,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,Re,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,Ae,2,1,"ng-container",7),t.qZA(),t.YNc(8,Ze,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:[l.sg,C.Ls,Te,l.O5,ye],encapsulation:2,data:{animation:[ut.MC]},changeDetection:0}),n})(),Je=(()=>{class n{constructor(e,o,s,r){this.overlay=e,this.injector=o,this.nzConfigService=s,this.directionality=r}preview(e,o){return this.display(e,o)}display(e,o){const s=Object.assign(Object.assign({},new Pt),null!=o?o:{}),r=this.createOverlay(s),a=this.attachPreviewComponent(r,s);a.setImages(e);const c=new Le(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:Pt,useValue:o}]}),r=new st.C5(Qe,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 n.\u0275fac=function(e){return new(e||n)(t.LFG(F.aV),t.LFG(t.zs3),t.LFG(ot.jY),t.LFG(ft.Is,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Be=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Je],imports:[[ft.vT,F.U8,st.eL,Oe,l.ez,C.PV,Ie.YS]]}),n})();var W=d(1945),Ge=d(8762),y=d(1894),x=d(8144),P=d(325),St=d(3630),ie=d(5249),J=d(7484),Ye=d(3762),wt=d(6699),B=d(3098),pt=d(5737),oe=d(9444),He=d(6286),$e=d(3384),je=d(8018),We=d(3580),Ve=d(5453);let Ke=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,wt.Rt]]}),n})();var k=d(3618),Tt=d(9476),qe=d(5013),Xe=d(897),se=d(6114),Ot=d(4182);let re=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,Ot.u5,J.vh,y.Jb,x.zf,k.ZJ,ie.A2,B.q6,pt.S,se.Wr,St.X,Ve.N,We.Q,je.e,$e.h,He.y,Ke,oe.s,Tt.L,qe.C,Xe.$]]}),n})(),tn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,P.Bz,z.WG,W.KJ,y.Jb,C.PV,x.zf,Be,J.vh,ie.A2,Ye.Ph,wt.Rt,B.q6,pt.S,St.X,Ge.c,E.D,re]]}),n})();var en=d(5291);let nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,en.t]]}),n})();var on=d(767);let sn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,on.Q]]}),n})(),rn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,z.WG,x.zf,y.Jb,re]]}),n})();var L=d(1132),an=d(4125),cn=d(7946),ae=d(8625),V=d(6042);let ln=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,z.WG,C.PV,L.HQ,V.sL,J.vh,C.PV,k.ZJ,an.k,Tt.L,cn.x,ae.$L]]}),n})(),dn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,W.KJ,C.PV,y.Jb,V.sL,x.zf,k.ZJ,E.D,ln]]}),n})();var gn=d(5473),hn=d(7345);let pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,J.vh,B.q6,k.ZJ,C.PV,x.zf,y.Jb,pt.S,gn.H,St.X,oe.s,Tt.L,hn.W]]}),n})(),un=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,z.WG,y.Jb,x.zf,V.sL,pn]]}),n})();var _n=d(3756);let mn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(P.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},directives:[_n.x],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var I=d(373),Z=d(712),It=d(9350),ce=d(8992);function fn(n,i){if(1&n&&t._UZ(0,"nz-avatar",2),2&n){const e=t.oxw();t.Q6J("nzSrc",e.organization.profileImagePath)("nzSize",e.size)}}function vn(n,i){if(1&n&&t._UZ(0,"nz-avatar",3),2&n){const e=t.oxw();t.Q6J("nzText",e.organization.name)("nzSize",e.size)}}let zn=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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,fn,1,2,"nz-avatar",0),t.YNc(1,vn,1,2,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",o.organization.profileImagePath)("ngIfElse",s)}},directives:[l.O5,wt.Dz],styles:["[_nghost-%COMP%]{display:inline-block}"]}),n})();var Cn=d(6550),Dn=d(6715),Et=d(5749),bn=d(7893);function xn(n,i){}function yn(n,i){if(1&n&&(t.TgZ(0,"nz-card",3),t.YNc(1,xn,0,0,"ng-template",4),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(4);t.Q6J("nzTitle",e.organization.name),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Pn(n,i){}function Sn(n,i){if(1&n&&t.YNc(0,Pn,0,0,"ng-template",4),2&n){t.oxw();const e=t.MAs(4);t.Q6J("ngTemplateOutlet",e)}}function wn(n,i){if(1&n&&(t.TgZ(0,"cvc-link-tag",20),t._uU(1," View Organization Website "),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("href",e.organization.url)}}function Tn(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",22),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("org",e)}}function On(n,i){if(1&n&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,Tn,2,1,"ng-container",21),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.organization.subGroups)}}function In(n,i){1&n&&(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 En(n,i){if(1&n){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&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngModel",e.includeSubStats)}}function Rn(n,i){if(1&n&&t.YNc(0,En,3,1,"ng-container",16),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.organization.subGroups.length>0)}}function Mn(n,i){if(1&n&&(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,wn,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,On,2,1,"cvc-tag-list",16),t.YNc(17,In,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,Rn,1,1,"ng-template",null,19,t.W1O),t.qZA(),t.qZA()),2&n){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 le=(()=>{class n{constructor(){this.inCard=!0,this.includeSubStats=!0}ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organization-card"]],inputs:{organization:"organization",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,yn,2,2,"nz-card",0),t.YNc(1,Sn,1,1,"ng-template",null,1,t.W1O),t.YNc(3,Mn,23,16,"ng-template",null,2,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",o.inCard)("ngIfElse",s)}},directives:[l.O5,J.bd,l.tP,y.SK,y.t3,zn,k.ZU,Cn.l,B.R7,B.uj,Dn.$,l.sg,Et.m,bn.z,se.Ie,Ot.JJ,Ot.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%}"]}),n})();var An=d(2233);function Zn(n,i){if(1&n&&(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&n){const e=i.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 kn=(()=>{class n{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,I.j)("loading"),(0,O.O)(!0)),this.organization$=a.pipe((0,I.j)("data","organization")),this.viewer$=this.viewerService.viewer$,this.tabs$=this.organization$.pipe((0,v.U)(c=>{const g=[{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&&g.splice(1,0,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}),g}))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.WOS),t.Y36(It.a),t.Y36(P.gz))},n.\u0275cmp=t.Xpm({type:n,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,Zn,10,6,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organization$))},directives:[l.O5,ce.I,W.$O,W.u5,le,An.P,P.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}.detail-content[_ngcontent-%COMP%]{margin-top:8px}.content[_ngcontent-%COMP%]{margin-bottom:8px}"]}),n})();var Ln=d(2011);let Nn=(()=>{class n{constructor(e){this.route=e,this.mode=Z.wJ2.Organization,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(P.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[["tagDisplay","hideOrg",3,"organizationId","mode"]],template:function(e,o){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("organizationId",o.organizationId)("mode",o.mode)},directives:[Ln.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var Un=d(8965);let Fn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(P.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},directives:[Un.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();function Qn(n,i){if(1&n&&t._UZ(0,"cvc-organization-card",4),2&n){const e=t.oxw().$implicit;t.Q6J("organization",e)}}function Jn(n,i){1&n&&(t.TgZ(0,"nz-space",2),t.YNc(1,Qn,1,1,"cvc-organization-card",3),t.qZA())}function Bn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Jn,2,0,"nz-space",1),t.BQk()),2&n){const e=i.ngIf;t.xp6(1),t.Q6J("ngForOf",e)}}let Gn=(()=>{class n{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,I.j)("loading"),(0,O.O)(!0)),this.organizations$=a.pipe((0,I.j)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.Lr0),t.Y36(It.a),t.Y36(P.gz))},n.\u0275cmp=t.Xpm({type:n,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,Bn,2,1,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organizations$))},directives:[l.O5,l.sg,x.NU,x.$1,le],pipes:[z.fM],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]}),n})();var Rt=d(2683),Yn=d(3154),Hn=d(13),$n=d(2166),jn=d(392),de=d(2643);function Wn(n,i){if(1&n&&(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&n){const e=i.$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 Vn(n,i){if(1&n){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&n){const e=t.oxw(3);t.xp6(1),t.hij("Load ",e.fetchMorePageSize," More")}}function Kn(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",12),t.YNc(2,Vn,2,1,"button",13),t.qZA(),t.qZA()),2&n){const e=t.oxw().ngrxLet;t.xp6(2),t.Q6J("ngIf",e.hasNextPage)}}function qn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Kn,3,1,"tr",11),t.BQk()),2&n){const e=i.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function Xn(n,i){}function ti(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Xn,0,0,"ng-template",18),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function ei(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function ni(n,i){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.hij(" of ",e," filtered")}}function ii(n,i){if(1&n&&(t.TgZ(0,"span",19),t._uU(1),t.YNc(2,ni,2,1,"span",11),t._uU(3,") "),t.qZA()),2&n){const e=i.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 n{constructor(e){this.gql=e,this.initialPageSize=25,this.debouncedQuery=new m.xQ,this.tableView=!0,this.visibleCount=this.initialPageSize,this.loadedPages=1,this.sortColumns=Z.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,I.j)("loading"),(0,O.O)(!0)),this.organizations$=e.pipe((0,I.j)("data","organizations","edges"),(0,v.U)(o=>o.map(s=>s.node))),this.filteredCount$=e.pipe((0,I.j)("data","organizations","totalCount")),this.filteredCount$.pipe((0,A.q)(1)).subscribe(o=>this.totalCount=o),this.filteredCount$.subscribe(o=>{oo&&(this.visibleCount=o))}),this.pageInfo$=e.pipe((0,I.j)("data","organizations","pageInfo")),this.debouncedQuery.pipe((0,Hn.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,Yn._)(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 n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.io))},n.\u0275cmp=t.Xpm({type:n,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,Wn,12,8,"tr",6),t.YNc(26,qn,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.YNc(27,si,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:[J.bd,L.N8,L.Om,L.$Z,L.Uo,L._C,L.qD,$n.p,L.p0,l.sg,Et.m,jn.T,z.eJ,l.O5,V.ix,de.dQ,Rt.w,C.Ls,l.tP,k.ZU],pipes:[z.fM,ae.wr],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),n})();function ai(n,i){1&n&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t._uU(2," View Organization Docs "),t.qZA())}let ci=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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,ai,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:[ce.I,W.$O,W.u5,y.SK,y.t3,C.Ls,Rt.w,k.ZU,x.NU,x.$1,V.ix,ri],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 li=d(7881),di=d(125),gi=d(1243);function hi(n,i){if(1&n&&t._UZ(0,"cvc-user-avatar",8),2&n){const e=t.oxw(2);t.Q6J("user",e.user)("size",32)}}function pi(n,i){if(1&n&&(t.TgZ(0,"a",13),t._UZ(1,"i",14),t.qZA()),2&n){const e=t.oxw(4);t.MGl("href","http://twitter.com/",e.user.twitterHandle,"",t.LSH)}}function ui(n,i){1&n&&(t.ynx(0),t.YNc(1,pi,2,1,"a",12),t.BQk())}function _i(n,i){if(1&n&&(t.TgZ(0,"a",13),t._UZ(1,"i",15),t.qZA()),2&n){const e=t.oxw(4);t.MGl("href","http://facebook.com/",e.user.facebookProfile,"",t.LSH)}}function mi(n,i){1&n&&(t.ynx(0),t.YNc(1,_i,2,1,"a",12),t.BQk())}function fi(n,i){if(1&n&&(t.TgZ(0,"a",13),t._UZ(1,"i",16),t.qZA()),2&n){const e=t.oxw(4);t.MGl("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.LSH)}}function vi(n,i){1&n&&(t.ynx(0),t.YNc(1,fi,2,1,"a",12),t.BQk())}function zi(n,i){if(1&n&&(t.TgZ(0,"a",13),t.TgZ(1,"span"),t._uU(2,"ID"),t.qZA(),t.qZA()),2&n){const e=t.oxw(4);t.MGl("href","https://orcid.org/",e.user.orcid,"",t.LSH)}}function Ci(n,i){1&n&&(t.ynx(0),t.YNc(1,zi,3,1,"a",12),t.BQk())}function Di(n,i){1&n&&t._UZ(0,"nz-divider",17)}function bi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-space",9),t.YNc(2,ui,2,0,"ng-container",10),t.YNc(3,mi,2,0,"ng-container",10),t.YNc(4,vi,2,0,"ng-container",10),t.YNc(5,Ci,2,0,"ng-container",10),t.qZA(),t.YNc(6,Di,1,0,"ng-template",null,11,t.W1O),t.BQk()),2&n){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 xi(n,i){1&n&&(t.ynx(0),t.TgZ(1,"nz-space",6),t.YNc(2,hi,1,2,"cvc-user-avatar",7),t.YNc(3,bi,8,5,"ng-container",2),t.qZA(),t.BQk())}function yi(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user.areaOfExpertise)," ")}}function Pi(n,i){if(1&n&&t._UZ(0,"cvc-organization-tag",25),2&n){const e=t.oxw().$implicit;t.Q6J("org",e)}}function Si(n,i){1&n&&(t.ynx(0),t.YNc(1,Pi,1,1,"cvc-organization-tag",24),t.BQk())}function wi(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",18),t.TgZ(1,"nz-descriptions-item",19),t.YNc(2,yi,3,3,"ng-container",20),t.qZA(),t.TgZ(3,"nz-descriptions-item",21),t.TgZ(4,"nz-space",22),t.YNc(5,Si,2,0,"ng-container",23),t.qZA(),t.qZA(),t.qZA()),2&n){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 Ti(n,i){1&n&&(t.TgZ(0,"span",26),t._uU(1,"Not provided"),t.qZA())}function Oi(n,i){if(1&n&&t._UZ(0,"cvc-user-tag",27),2&n){const e=t.oxw();t.Q6J("user",e.user)("enablePopover",!1)}}let Ii=(()=>{class n{ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case Z.i44.Admin:this.icon="civic-admin";break;case Z.i44.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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,xi,4,0,"ng-container",2),t.YNc(3,wi,6,5,"nz-descriptions",3),t.YNc(4,Ti,2,0,"ng-template",null,4,t.W1O),t.qZA(),t.qZA(),t.YNc(6,Oi,1,2,"ng-template",null,5,t.W1O)),2&e){const s=t.MAs(7);t.Q6J("nzTitle",s)}},directives:[J.bd,x.NU,x.$1,li.L,l.O5,C.Ls,pt.g,B.R7,B.uj,l.sg,Et.m,k.ZU,di.I],pipes:[gi.I],styles:[""]}),n})();function Ei(n,i){if(1&n&&(t.TgZ(0,"div",6),t._UZ(1,"cvc-user-card",7),t.qZA()),2&n){const e=i.$implicit;t.Q6J("nzSpan",6),t.xp6(1),t.Q6J("user",e)}}const Ri=function(){return[16,16]};function Mi(n,i){if(1&n&&(t.TgZ(0,"div",4),t.YNc(1,Ei,2,2,"div",5),t.qZA()),2&n){const e=t.oxw().ngIf;t.Q6J("nzGutter",t.DdM(2,Ri)),t.xp6(1),t.Q6J("ngForOf",e)}}function Ai(n,i){if(1&n){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&n){const e=t.oxw(5);t.xp6(1),t.hij("Load ",e.initialPageSize," More")}}function Zi(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ai,2,1,"button",10),t.BQk()),2&n){const e=t.oxw().ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function ki(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Zi,2,1,"ng-container",9),t.BQk()),2&n){const e=i.ngrxLet;t.xp6(1),t.Q6J("ngIf",e.hasNextPage)}}function Li(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ki,2,1,"ng-container",8),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngrxLet",e.pageInfo$)}}function Ni(n,i){1&n&&(t.TgZ(0,"nz-space",1),t.YNc(1,Mi,2,3,"div",2),t.YNc(2,Li,2,1,"ng-container",3),t.qZA())}let Ui=(()=>{class n{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,I.j)("loading"),(0,O.O)(!0)),this.members$=a.pipe((0,I.j)("data","users","edges"),(0,v.U)(c=>c.map(g=>g.node))),this.pageInfo$=a.pipe((0,I.j)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$}loadMore(e){this.queryRef.fetchMore({variables:{after:e}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Z.Del),t.Y36(It.a),t.Y36(P.gz))},n.\u0275cmp=t.Xpm({type:n,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,Ni,3,0,"nz-space",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.members$))},directives:[l.O5,x.NU,x.$1,y.SK,l.sg,y.t3,Ii,z.eJ,V.ix,de.dQ,Rt.w],pipes:[z.fM],styles:[""]}),n})();var Fi=d(9814);const Qi=[{path:"",component:(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-organizations"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},directives:[P.lC],styles:[""]}),n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:ci},{path:":organizationId",component:kn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Ui,data:{breadcrumb:"Members"}},{path:"groups",component:Gn,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:Fn,data:{breadcrumb:"Evidence"}},{path:"assertions",component:mn,data:{breadcrumb:"Assertions"}},{path:"activity",component:Nn,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class n{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(P.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(e,o){1&e&&t._UZ(0,"cvc-source-suggestions-table",0)},directives:[Fi.O],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let Ji=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[P.Bz.forChild(Qi)],P.Bz]}),n})();var Bi=d(2832);let Gi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,Bi.W]]}),n})(),Yi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[l.ez,z.WG,Ji,dn,sn,M,tn,nn,rn,un,Gi]]}),n})()}}]); \ No newline at end of file diff --git a/server/public/9286.39b29561f080cec3.js b/server/public/9286.39b29561f080cec3.js new file mode 100644 index 000000000..a8cd7642c --- /dev/null +++ b/server/public/9286.39b29561f080cec3.js @@ -0,0 +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(c,s){if(1&c&&(o._UZ(0,"i",7),o._uU(1)),2&c){const _=o.oxw().ngIf;o.xp6(1),o.hij(" ",_.name," ")}}function p(c,s){if(1&c&&(o.TgZ(0,"span"),o._UZ(1,"cvc-variant-tag",10),o.qZA()),2&c){const _=s.$implicit;o.xp6(1),o.Q6J("variant",_.node)}}function I(c,s){if(1&c&&(o.TgZ(0,"nz-descriptions-item",8),o.YNc(1,p,2,1,"span",9),o.qZA()),2&c){const _=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",_.variants.edges)}}function y(c,s){if(1&c&&(o.TgZ(0,"span"),o._UZ(1,"cvc-source-tag",12),o.qZA()),2&c){const _=s.$implicit;o.xp6(1),o.Q6J("source",_)}}function n(c,s){if(1&c&&(o.TgZ(0,"nz-descriptions-item",11),o.YNc(1,y,2,1,"span",9),o.qZA()),2&c){const _=o.oxw().ngIf;o.xp6(1),o.Q6J("ngForOf",_.sources)}}function q(c,s){if(1&c&&(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&c){const _=s.ngIf,m=o.MAs(3);o.xp6(1),o.Q6J("nzTitle",m),o.xp6(3),o.hij(" ",_.description," "),o.xp6(1),o.Q6J("nzColumn",2),o.xp6(1),o.Q6J("ngIf",_.variants.edges.length>0),o.xp6(1),o.Q6J("ngIf",_.sources.length>0)}}let N=(()=>{class c{constructor(_){this.gql=_}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:_})=>_.variantGroup))}}return c.\u0275fac=function(_){return new(_||c)(o.Y36(d.Zo2))},c.\u0275cmp=o.Xpm({type:c,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(_,m){1&_&&(o.TgZ(0,"div",0),o.YNc(1,q,8,5,"ng-container",1),o.ALo(2,"ngrxPush"),o.qZA()),2&_&&(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}"]}),c})();var U=r(647);function b(c,s){}function w(c,s){if(1&c&&(o.ynx(0),o.TgZ(1,"a",5),o.YNc(2,b,0,0,"ng-template",6),o.qZA(),o.BQk()),2&c){const _=o.oxw(),m=o.MAs(2);o.xp6(1),o.Q6J("routerLink",_.variantgroup.link),o.xp6(1),o.Q6J("ngTemplateOutlet",m)}}function P(c,s){}function Y(c,s){if(1&c&&(o.TgZ(0,"nz-tag",9),o.YNc(1,P,0,0,"ng-template",6),o.qZA()),2&c){o.oxw();const _=o.MAs(2);o.oxw();const m=o.MAs(8);o.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",_),o.xp6(1),o.Q6J("ngTemplateOutlet",m)}}function O(c,s){if(1&c&&o._UZ(0,"cvc-variant-group-popover",11),2&c){const _=o.oxw(3);o.Q6J("variantGroupId",_.variantgroup.id)}}function B(c,s){if(1&c&&o.YNc(0,O,1,1,"cvc-variant-group-popover",10),2&c){const _=o.oxw(2);o.Q6J("ngIf",_.enablePopover)}}function x(c,s){if(1&c&&(o.YNc(0,Y,2,3,"nz-tag",7),o.YNc(1,B,1,1,"ng-template",null,8,o.W1O)),2&c){const _=o.oxw(),m=o.MAs(4);o.Q6J("ngIf",_.enablePopover)("ngIfElse",m)}}function E(c,s){}function L(c,s){if(1&c&&(o.TgZ(0,"nz-tag"),o.YNc(1,E,0,0,"ng-template",6),o.qZA()),2&c){o.oxw();const _=o.MAs(8);o.xp6(1),o.Q6J("ngTemplateOutlet",_)}}function G(c,s){}function k(c,s){if(1&c&&o.YNc(0,G,0,0,"ng-template",6),2&c){o.oxw();const _=o.MAs(2);o.Q6J("ngTemplateOutlet",_)}}function j(c,s){if(1&c&&(o._UZ(0,"i",12),o._uU(1)),2&c){const _=o.oxw();o.xp6(1),o.hij(" ",_.variantgroup.name,"\n")}}let F=(()=>{class c{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 c.\u0275fac=function(_){return new(_||c)},c.\u0275cmp=o.Xpm({type:c,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(_,m){if(1&_&&(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&_){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:[""]}),c})()},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:()=>yi});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 c(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 _(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,_,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 sn(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 gn(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 pn(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,gn,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 ln(t,i){1&t&&(n.TgZ(0,"nz-space",20),n.YNc(1,m,2,1,"span",21),n.YNc(2,sn,2,1,"span",21),n.YNc(3,pn,2,1,"span",21),n.qZA())}function fn(t,i){if(1&t&&(n.TgZ(0,"nz-page-header-extra"),n.YNc(1,ln,4,0,"nz-space",19),n.qZA()),2&t){const a=n.oxw(2);n.xp6(1),n.Q6J("ngrxLet",a.viewer$)}}function mn(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 un=function(t){return{flagged:t}};function vn(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,c,2,1,"nz-page-header-subtitle",0),n.YNc(11,fn,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,mn,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,un,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 xn=(()=>{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:Ii=>{this.tabs$.next(this.defaultTabs.map(H=>"Revisions"===H.tabLabel?Object.assign({badgeCount:Ii},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,vn,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 dn=r(2278);let zn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,dn.l]]}),t})();var Tn=r(3801);let Zn=(()=>{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:[Tn.D],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var yn=r(4271),In=r(6559),V=r(7484);let hn=(()=>{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,In.H0,T.PV,yn.M]]}),t})();var Cn=r(7036);let An=(()=>{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:[Cn.L],styles:["[_nghost-%COMP%]{display:block}"]}),t})();var Qn=r(2914);let Vn=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,Qn.A]]}),t})();var Jn=r(1365);let Mn=(()=>{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:[Jn.a],styles:[""]}),t})();var Sn=r(897),qn=r(9779),$=r(3098),Nn=r(8645),X=r(3630),R=r(868),h=r(1132),K=r(9444);let Un=(()=>{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 bn=r(8541),nn=r(5291),wn=r(767),Pn=r(9441),tn=r(3618),Yn=r(7345),an=r(8481);let On=(()=>{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,an.X,K.s,wn.Q,Pn.s,Sn.$,Yn.W,qn.s,Nn.M,X.X,Un,bn.o,nn.t]]}),t})();var Bn=r(427),En=r(6715),Ln=r(6906),Gn=r(7701),en=r(6550),on=r(9714);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 jn(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 Fn(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 Dn(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function $n(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Dn,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 Rn(t,i){if(1&t&&(n.ynx(0),n.YNc(1,$n,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.snpeffSnpEffect)}}function Hn(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Wn(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Hn,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 Xn(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Wn,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.snpeffSnpImpact)}}function Kn(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,kn,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,jn,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,Fn,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,Rn,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,Xn,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 nt(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 tt(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 at(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function it(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,at,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 et(t,i){if(1&t&&(n.ynx(0),n.YNc(1,it,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarClinicalSignificance)}}function ot(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function rt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ot,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 ct(t,i){if(1&t&&(n.ynx(0),n.YNc(1,rt,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 st(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 gt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,st,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsGenomic)}}function pt(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function lt(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 ft(t,i){if(1&t&&(n.ynx(0),n.YNc(1,lt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsNonCoding)}}function mt(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function ut(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,mt,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 vt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ut,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.clinvarHgvsProtein)}}function xt(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,nt,3,2,"ng-container",18),n.TgZ(7,"strong",17),n._uU(8,"OMIM:"),n.qZA(),n._uU(9,"\xa0 "),n.YNc(10,tt,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,et,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,ct,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,gt,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,ft,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,vt,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 dt(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 rn=function(){return["."]};function zt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,dt,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,rn))("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 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," 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 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," 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 yt(t,i){1&t&&(n.ynx(0),n._UZ(1,"br"),n.BQk())}function It(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,yt,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 ht(t,i){if(1&t&&(n.ynx(0),n.YNc(1,It,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.eglHgvs)}}function Ct(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,ht,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 At(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,At,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 Vt(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.siftPrediction)}}function Jt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Mt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Jt,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,Mt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.siftScore)}}function qt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Nt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,qt,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,Nt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HdivPrediction)}}function bt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function wt(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 Pt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,wt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HdivScore)}}function Yt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Ot(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Yt,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 Bt(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.polyphen2HvarPrediction)}}function Et(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Lt(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 Gt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Lt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.polyphen2HvarScore)}}function kt(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,kt,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 Ft(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.mutationtasterPrediction)}}function Dt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function $t(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Dt,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,$t,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationtasterScore)}}function Ht(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function Wt(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Ht,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 Xt(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Wt,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationassessorPrediction)}}function Kt(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function na(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,Kt,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 ta(t,i){if(1&t&&(n.ynx(0),n.YNc(1,na,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.mutationassessorScore)}}function aa(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ia(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,aa,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 ea(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ia,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.fathmmPrediction)}}function oa(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ra(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,oa,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 ca(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ra,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 sa(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 ga(t,i){if(1&t&&(n.ynx(0),n.YNc(1,sa,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.proveanPrediction)}}function pa(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function la(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,pa,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 fa(t,i){if(1&t&&(n.ynx(0),n.YNc(1,la,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.proveanScore)}}function ma(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function ua(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,ma,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 va(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ua,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.caddConsequence)}}function xa(t,i){1&t&&(n.ynx(0),n._uU(1,", "),n.BQk())}function da(t,i){if(1&t&&(n.ynx(0),n._uU(1),n.YNc(2,xa,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 za(t,i){if(1&t&&(n.ynx(0),n.YNc(1,da,3,2,"ng-container",22),n.BQk()),2&t){const a=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",a.variantInfo.caddDetail)}}function Ta(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,Vt,2,1,"ng-container",18),n.qZA(),n.TgZ(25,"td"),n.YNc(26,St,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,Ut,2,1,"ng-container",18),n.qZA(),n.TgZ(32,"td"),n.YNc(33,Pt,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,Bt,2,1,"ng-container",18),n.qZA(),n.TgZ(39,"td"),n.YNc(40,Gt,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,Ft,2,1,"ng-container",18),n.qZA(),n.TgZ(55,"td"),n.YNc(56,Rt,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,Xt,2,1,"ng-container",18),n.qZA(),n.TgZ(62,"td"),n.YNc(63,ta,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,ea,2,1,"ng-container",18),n.qZA(),n.TgZ(69,"td"),n.YNc(70,ca,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,ga,2,1,"ng-container",18),n.qZA(),n.TgZ(76,"td"),n.YNc(77,fa,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,va,2,1,"ng-container",18),n._UZ(102,"br"),n._uU(103," Consequence Detail: "),n.YNc(104,za,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,rn))("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 Za(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,Kn,30,23,"ng-container",12),n.YNc(14,xt,36,32,"ng-container",12),n.YNc(15,zt,47,37,"ng-container",12),n.YNc(16,Tt,20,21,"ng-container",12),n.YNc(17,Zt,38,42,"ng-container",12),n.YNc(18,Ct,25,26,"ng-container",12),n.YNc(19,Ta,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 ya(t,i){1&t&&n._uU(0,"--")}let Ia=(()=>{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,Za,20,11,"ng-container",0),n.YNc(1,ya,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,en.l,o.sg,h.N8,h.Om,h.$Z,h.Uo,h._C,h.p0],pipes:[o.Ov,on.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 ha=r(8965),Ca=r(3756),cn=r(2011);function Aa(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 Qa(t,i){1&t&&n._UZ(0,"cvc-empty-revisable",23)}function Va(t,i){1&t&&n._UZ(0,"cvc-source-tag",25),2&t&&n.Q6J("source",i.$implicit)}function Ja(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-tag-list"),n.YNc(2,Va,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 Ma(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function Sa(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",15),n.TgZ(1,"nz-descriptions-item",16),n.YNc(2,Aa,2,2,"p",17),n.YNc(3,Qa,1,0,"ng-template",null,18,n.W1O),n.qZA(),n.TgZ(5,"nz-descriptions-item",19),n.YNc(6,Ja,3,1,"ng-container",20),n.YNc(7,Ma,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 qa(t,i){if(1&t&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&t){const a=i.$implicit;n.xp6(1),n.Oqu(a)}}function Na(t,i){if(1&t&&(n.ynx(0),n.YNc(1,qa,2,1,"nz-tag",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",33),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",31),n.YNc(2,Pa,3,1,"ng-container",20),n.YNc(3,Ya,2,0,"ng-template",null,32,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){if(1&t&&(n.TgZ(0,"nz-tag"),n._uU(1),n.qZA()),2&t){const a=i.$implicit;n.xp6(1),n.Oqu(a)}}function Ea(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Ba,2,1,"nz-tag",30),n.BQk()),2&t){const a=n.oxw(3).ngIf;n.xp6(1),n.Q6J("ngForOf",a.hgvsDescriptions)}}function La(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None specified"),n.qZA())}function Ga(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",27),n.TgZ(1,"nz-descriptions-item",31),n.YNc(2,Ea,2,1,"ng-container",20),n.YNc(3,La,2,0,"ng-template",null,34,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 ka(t,i){if(1&t&&(n.TgZ(0,"cvc-link-tag",44),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 ja(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None provided"),n.qZA())}function Fa(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",45),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 Da(t,i){if(1&t&&(n.TgZ(0,"cvc-tag-list"),n.YNc(1,Fa,3,2,"ng-container",30),n.qZA()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngForOf",a.clinvarIds)}}function $a(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Da,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 Ra(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"N/A"),n.qZA())}function Ha(t,i){1&t&&(n.TgZ(0,"span",26),n._uU(1,"None provided"),n.qZA())}function Wa(t,i){if(1&t&&(n.TgZ(0,"nz-descriptions",35),n.TgZ(1,"nz-descriptions-item",36),n.YNc(2,ka,2,2,"cvc-link-tag",37),n.YNc(3,ja,2,0,"ng-template",null,38,n.W1O),n.qZA(),n.TgZ(5,"nz-descriptions-item",39),n.TgZ(6,"span",40),n._uU(7),n.qZA(),n.qZA(),n.TgZ(8,"nz-descriptions-item",41),n.YNc(9,$a,2,2,"ng-container",20),n.YNc(10,Ra,2,0,"ng-template",null,42,n.W1O),n.YNc(12,Ha,2,0,"ng-template",null,43,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 Xa(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 Ka(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,Xa,7,8,"ng-container",51),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 ni(t,i){if(1&t&&(n.ynx(0),n.YNc(1,Ka,11,8,"nz-descriptions",52),n.BQk()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngIf",a.primaryCoordinates)}}function ti(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 ai(t,i){if(1&t&&(n.ynx(0),n.YNc(1,ti,10,6,"nz-descriptions",61),n.BQk()),2&t){const a=n.oxw(4).ngIf;n.xp6(1),n.Q6J("ngIf",a.secondaryCoordinates)}}function ii(t,i){if(1&t&&(n.ynx(0),n.TgZ(1,"nz-descriptions",48),n.TgZ(2,"nz-descriptions-item",49),n._uU(3),n.qZA(),n.TgZ(4,"nz-descriptions-item",50),n._uU(5),n.qZA(),n.qZA(),n.YNc(6,ni,2,1,"ng-container",51),n.YNc(7,ai,2,1,"ng-container",51),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 ei(t,i){1&t&&n._UZ(0,"cvc-empty-revisable",63)}function oi(t,i){if(1&t&&(n.TgZ(0,"nz-card",46),n.YNc(1,ii,8,5,"ng-container",20),n.YNc(2,ei,1,0,"ng-template",null,47,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 ri(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 _i(t,i){if(1&t&&(n.TgZ(0,"span"),n.YNc(1,ri,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 si(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,Sa,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,Ga,5,4,"nz-descriptions",10),n.qZA(),n.qZA(),n.TgZ(7,"nz-col",11),n.TgZ(8,"nz-space",8),n.YNc(9,Wa,14,7,"nz-descriptions",12),n.YNc(10,oi,4,2,"nz-card",13),n.YNc(11,_i,5,4,"span",14),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Q6J("nzGutter",16),n.xp6(1),n.Q6J("nzSpan",12))}function gi(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 pi(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 li(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 fi(t,i){1&t&&(n.TgZ(0,"nz-space",1),n.YNc(1,si,12,2,"nz-row",2),n.YNc(2,gi,1,3,"cvc-evidence-table",3),n.YNc(3,pi,1,2,"cvc-assertions-table",4),n.TgZ(4,"nz-row",5),n.YNc(5,li,2,2,"nz-col",6),n.qZA(),n.qZA()),2&t&&(n.xp6(4),n.Q6J("nzGutter",16))}let mi=(()=>{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"],[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"],[4,"ngIf"],["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 Representative Variant Coordinates"],[3,"variantId","displayGeneAndVariant","cvcTitle"],[3,"variantId","cvcTitle"],["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,e){1&a&&(n.YNc(0,fi,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,Bn.J,En.$,o.sg,Ln.T,an.j,Gn.j,en.l,V.bd,Ia,ha.a,Ca.x,cn.o],pipes:[z.fM,on.D],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]}),t})(),ui=(()=>{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:[cn.o],styles:["[_nghost-%COMP%]{display:block}"]}),t})(),vi=(()=>{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 xi=[{path:"",component:xn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:mi,data:{breadcrumb:"Summary"}},{path:"comments",component:Zn,data:{breadcrumb:"Comments"}},{path:"revisions",component:Mn,data:{breadcrumb:"Revisions"}},{path:"flags",component:An,data:{breadcrumb:"Flags"}},{path:"events",component:ui,data:{breadcrumb:"Events"}}]}];let di=(()=>{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(xi),On,zn,Vn,hn,vi],l.Bz]}),t})();var zi=r(8762),Ti=r(5750),Zi=r(4609);let yi=(()=>{class t{}return t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[o.ez,di,z.WG,A.sL,T.PV,d.KJ,v.zf,x.Jb,Ti.Z,zi.c,M.m,S.U,Z.D,Zi.g]]}),t})()}}]); \ No newline at end of file diff --git a/server/public/9286.c7abe2ed687cd15f.js b/server/public/9286.c7abe2ed687cd15f.js deleted file mode 100644 index a96e8f331..000000000 --- a/server/public/9286.c7abe2ed687cd15f.js +++ /dev/null @@ -1 +0,0 @@ -"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 Representative Variant 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 deleted file mode 100644 index b3aa7de6f..000000000 --- a/server/public/9484.e48ad84613f06f22.js +++ /dev/null @@ -1 +0,0 @@ -"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/9636.90e794638acf3e95.js b/server/public/9636.90e794638acf3e95.js deleted file mode 100644 index dd3f0df68..000000000 --- a/server/public/9636.90e794638acf3e95.js +++ /dev/null @@ -1 +0,0 @@ -"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/97.7a8999992d81e2ee.js b/server/public/97.7a8999992d81e2ee.js new file mode 100644 index 000000000..3091f95ec --- /dev/null +++ b/server/public/97.7a8999992d81e2ee.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[97],{5749:(J,C,e)=>{e.d(C,{m:()=>L});var n=e(5e3),m=e(9808),t=e(325),l=e(8481),v=e(3610),z=e(4850),x=e(712),P=e(7484),f=e(7881),y=e(1894),M=e(3098),w=e(6550),_=e(6949);const Z=function(a,d){return{displayName:a,profileImagePath:d}};function A(a,d){if(1&a&&(n._UZ(0,"cvc-user-avatar",12),n.TgZ(1,"span",13),n._uU(2),n.qZA()),2&a){const r=n.oxw().ngIf;n.Q6J("user",n.WLB(2,Z,r.name,r.profileImagePath)),n.xp6(2),n.Oqu(r.name)}}function T(a,d){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const r=d.ngIf;n.xp6(1),n.Oqu(r)}}function b(a,d){if(1&a&&(n.ynx(0),n.TgZ(1,"cvc-link-tag",14),n._uU(2),n.qZA(),n.BQk()),2&a){const r=n.oxw().ngIf;n.xp6(1),n.Q6J("href",r.url),n.xp6(1),n.hij(" ",r.name," ")}}function S(a,d){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,T,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 r=d.ngIf,O=n.MAs(3);n.oxw();const D=n.MAs(4),F=n.MAs(6);n.xp6(1),n.Q6J("nzTitle",O),n.xp6(7),n.Q6J("ngIf",r.description)("ngIfElse",D),n.xp6(1),n.Q6J("nzColumn",2),n.xp6(2),n.Q6J("ngIf",r.url)("ngIfElse",F)}}function E(a,d){1&a&&n._uU(0," Organization has not provided a description.\n")}function Q(a,d){1&a&&n._uU(0," --\n")}let I=(()=>{class a{constructor(r){this.gql=r}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,z.U)(({data:r})=>r.organization))}}return a.\u0275fac=function(r){return new(r||a)(n.Y36(x.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(r,O){1&r&&(n.TgZ(0,"div",0),n.YNc(1,S,12,6,"ng-container",1),n.ALo(2,"ngrxPush"),n.qZA(),n.YNc(3,E,1,0,"ng-template",null,2,n.W1O),n.YNc(5,Q,1,0,"ng-template",null,3,n.W1O)),2&r&&(n.xp6(1),n.Q6J("ngIf",n.lcZ(2,1,O.org$)))},directives:[m.O5,P.bd,f.L,y.SK,y.t3,M.R7,M.uj,w.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 s=e(647);function o(a,d){}function i(a,d){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 r=n.oxw(),O=n.MAs(2);n.xp6(1),n.MGl("routerLink","/organizations/",r.org.id,""),n.xp6(1),n.Q6J("ngTemplateOutlet",O)}}function g(a,d){}function p(a,d){if(1&a&&n._UZ(0,"cvc-organization-popover",10),2&a){const r=n.oxw(3);n.Q6J("orgId",r.org.id)}}function h(a,d){if(1&a&&n.YNc(0,p,1,1,"cvc-organization-popover",9),2&a){const r=n.oxw(2);n.Q6J("ngIf",r.enablePopover)}}function c(a,d){if(1&a&&(n.TgZ(0,"nz-tag",7),n.YNc(1,g,0,0,"ng-template",6),n.qZA(),n.YNc(2,h,1,1,"ng-template",null,8,n.W1O)),2&a){const r=n.MAs(3);n.oxw();const O=n.MAs(8);n.Q6J("nzPopoverContent",r),n.xp6(1),n.Q6J("ngTemplateOutlet",O)}}function u(a,d){}function U(a,d){if(1&a&&(n.TgZ(0,"nz-tag"),n.YNc(1,u,0,0,"ng-template",6),n.qZA()),2&a){n.oxw();const r=n.MAs(8);n.xp6(1),n.Q6J("ngTemplateOutlet",r)}}function B(a,d){}function N(a,d){if(1&a&&n.YNc(0,B,0,0,"ng-template",6),2&a){n.oxw();const r=n.MAs(2);n.Q6J("ngTemplateOutlet",r)}}function R(a,d){if(1&a&&(n._UZ(0,"i",11),n._uU(1)),2&a){const r=n.oxw();n.xp6(1),n.hij(" ",r.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(r){return new(r||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(r,O){if(1&r&&(n.YNc(0,i,3,2,"ng-container",0),n.YNc(1,c,4,2,"ng-template",null,1,n.W1O),n.YNc(3,U,2,1,"ng-template",null,2,n.W1O),n.YNc(5,N,1,1,"ng-template",null,3,n.W1O),n.YNc(7,R,2,1,"ng-template",null,4,n.W1O)),2&r){const D=n.MAs(6);n.Q6J("ngIf",O.linked)("ngIfElse",D)}},directives:[m.O5,t.yS,m.tP,l.j,v.lU,I,s.Ls],styles:["[_nghost-%COMP%]{display:inline-block}"]}),a})()},8227:(J,C,e)=>{e.d(C,{q:()=>g});var n=e(5e3),m=e(8929),t=e(4850),l=e(373),v=e(2868),z=e(7625),x=e(1793),P=e(9350),f=e(9808),y=e(6042),M=e(2683),w=e(2643),_=e(3677),Z=e(8144),A=e(6699),T=e(4219);function b(p,h){1&p&&n.Hsn(0)}function S(p,h){1&p&&n.GkF(0)}function E(p,h){if(1&p&&(n.ynx(0),n.YNc(1,S,1,0,"ng-container",5),n.BQk()),2&p){n.oxw(2);const c=n.MAs(1);n.xp6(1),n.Q6J("ngTemplateOutlet",c)}}function Q(p,h){1&p&&n.GkF(0)}function I(p,h){if(1&p&&(n.ynx(0),n.TgZ(1,"nz-button-group",6),n.YNc(2,Q,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&p){n.oxw();const c=n.MAs(4),u=n.oxw(),U=n.MAs(1);n.xp6(1),n.Q6J("nzSize",u.nzSize),n.xp6(1),n.Q6J("ngTemplateOutlet",U),n.xp6(1),n.Q6J("nzType",u.buttonType)("nzDanger",u.nzDanger)("disabled",u.disabled)("nzDropdownMenu",c),n.xp6(1),n.Q6J("nzSize",4),n.xp6(3),n.Q6J("nzSrc",null==u.selectedOrg?null:u.selectedOrg.profileImagePath)("nzSize",10)("nzShape","square")}}function s(p,h){if(1&p){const c=n.EpF();n.TgZ(0,"li",11),n.NdJ("click",function(){const B=n.CHM(c).$implicit;return n.oxw(2).selectOrg(B)}),n._UZ(1,"nz-avatar",12),n._uU(2),n.qZA()}if(2&p){const c=h.$implicit,u=n.oxw(2);n.Q6J("nzSelected",(null==u.selectedOrg?null:u.selectedOrg.id)===c.id),n.xp6(1),n.Q6J("nzSrc",null==c?null:c.profileImagePath)("nzSize",10)("nzShape","square"),n.xp6(1),n.hij(" ",c.name," ")}}function o(p,h){if(1&p&&(n.ynx(0),n.YNc(1,E,2,1,"ng-container",1),n.YNc(2,I,9,10,"ng-container",1),n.TgZ(3,"nz-dropdown-menu",null,2),n.TgZ(5,"ul",3),n.YNc(6,s,3,5,"li",4),n.qZA(),n.qZA(),n.BQk()),2&p){const c=h.ngIf;n.xp6(1),n.Q6J("ngIf",c.length<=1),n.xp6(1),n.Q6J("ngIf",c.length>1),n.xp6(4),n.Q6J("ngForOf",c)}}const i=["*"];let g=(()=>{class p{constructor(c){this.viewerService=c,this.selectedOrgChange=new n.vpe,this.buttonType="primary",this.nzDanger=!1,this.nzSize="small",this.destroy$=new m.xQ}get disabled(){return this.button.disabled}selectOrg(c){this.selectedOrg=c,this.selectedOrgChange.emit(c)}refreshViewer(){setTimeout(()=>{this.viewerService.refetch()},2500)}ngOnInit(){this.organizations$=this.viewerService.viewer$.pipe((0,t.U)(c=>c.organizations)),this.mostRecentOrg$=this.viewerService.viewer$.pipe((0,l.j)("mostRecentOrg"),(0,v.b)(c=>{c&&(this.selectedOrg=c,this.selectedOrgChange.emit(c))})),this.mostRecentOrg$.pipe((0,z.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return p.\u0275fac=function(c){return new(c||p)(n.Y36(P.a))},p.\u0275cmp=n.Xpm({type:p,selectors:[["cvc-org-selector-btn-group"]],contentQueries:function(c,u,U){if(1&c&&n.Suo(U,x.m,5),2&c){let B;n.iGM(B=n.CRH())&&(u.button=B.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(c,u){1&c&&(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&c&&(n.xp6(2),n.Q6J("ngIf",n.lcZ(3,1,u.organizations$)))},directives:[f.O5,f.tP,y.fY,M.w,y.ix,w.dQ,_.wA,_.cm,Z.NU,A.Dz,_.RR,T.wO,f.sg,T.r9],pipes:[f.Ov],styles:["[_nghost-%COMP%]{display:inline-block}.org-dropdown-btn[_ngcontent-%COMP%] nz-avatar[_ngcontent-%COMP%]{margin:0 6px}"]}),p})()},7733:(J,C,e)=>{e.r(C),e.d(C,{CurationQueuesModule:()=>I});var n=e(9808),m=e(325),t=e(712),l=e(5e3),v=e(3756);let z=(()=>{class s{constructor(){this.status=t.RTy.Submitted}ngOnInit(){}}return s.\u0275fac=function(i){return new(i||s)},s.\u0275cmp=l.Xpm({type:s,selectors:[["cvc-pending-assertions-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Assertions",3,"status"]],template:function(i,g){1&i&&l._UZ(0,"cvc-assertions-table",0),2&i&&l.Q6J("status",g.status)},directives:[v.x],styles:[""]}),s})();var x=e(8965);let P=(()=>{class s{constructor(){this.status=t.RTy.Submitted}ngOnInit(){}}return s.\u0275fac=function(i){return new(i||s)},s.\u0275cmp=l.Xpm({type:s,selectors:[["cvc-pending-evidence-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Evidence",3,"status"]],template:function(i,g){1&i&&l._UZ(0,"cvc-evidence-table",0),2&i&&l.Q6J("status",g.status)},directives:[x.a],styles:[""]}),s})();var f=e(9814);const M=[{path:"",redirectTo:"pending-sources",pathMatch:"full"},{path:"pending-sources",component:(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(i){return new(i||s)},s.\u0275cmp=l.Xpm({type:s,selectors:[["cvc-pending-sources-page"]],decls:1,vars:0,consts:[["cvcTitle","Browse Suggested Sources"]],template:function(i,g){1&i&&l._UZ(0,"cvc-source-suggestions-table",0)},directives:[f.O],styles:[""]}),s})(),data:{breadcrumb:"Pending Source Suggestions"}},{path:"pending-evidence",component:P,data:{breadcrumb:"Pending Evidence Items"}},{path:"pending-assertions",component:z,data:{breadcrumb:"Pending Assertions"}}];let w=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=l.oAB({type:s}),s.\u0275inj=l.cJS({imports:[[m.Bz.forChild(M)],m.Bz]}),s})();var _=e(5630),Z=e(1945),A=e(6949),T=e(8762),b=e(647),S=e(8144),E=e(3618),Q=e(1894);let I=(()=>{class s{}return s.\u0275fac=function(i){return new(i||s)},s.\u0275mod=l.oAB({type:s}),s.\u0275inj=l.cJS({imports:[[n.ez,A.WG,w,Z.KJ,b.PV,S.zf,E.ZJ,Q.Jb,_.D,T.c]]}),s})()},7563:(J,C,e)=>{e.r(C),e.d(C,{CurationModule:()=>s});var n=e(9808),m=e(325),t=e(5e3),l=e(8992),v=e(1945),z=e(1894),x=e(647),P=e(3618),f=e(2233);const _=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}}return o.\u0275fac=function(g){return new(g||o)},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-curation-view"]],decls:1,vars:0,template:function(g,p){1&g&&t._UZ(0,"router-outlet")},directives:[m.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(g){return new(g||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(g,p){1&g&&(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&g&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",p.tabs),t.xp6(2),t.Q6J("nzSpan",24))},directives:[l.I,v.$O,v.u5,z.SK,z.t3,x.Ls,P.ZU,f.P,m.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(g){return new(g||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(g,p){1&g&&(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&g&&(t.xp6(9),t.Q6J("nzEllipsisRows",2),t.xp6(4),t.Q6J("nzSpan",24),t.xp6(1),t.Q6J("tabs",p.tabs),t.xp6(2),t.Q6J("nzSpan",24))},directives:[l.I,v.$O,v.u5,z.SK,z.t3,x.Ls,P.ZU,f.P,m.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 Z=(()=>{class o{}return o.\u0275fac=function(g){return new(g||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[m.Bz.forChild(_)],m.Bz]}),o})();var A=e(7733),T=e(2832);let b=(()=>{class o{}return o.\u0275fac=function(g){return new(g||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,T.W]]}),o})();var S=e(767);let E=(()=>{class o{}return o.\u0275fac=function(g){return new(g||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,S.Q]]}),o})();var Q=e(9441);let I=(()=>{class o{}return o.\u0275fac=function(g){return new(g||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,Q.s]]}),o})(),s=(()=>{class o{}return o.\u0275fac=function(g){return new(g||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[n.ez,Z,A.CurationQueuesModule,b,E,I]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/9716.4015cbaed1ef29e7.js b/server/public/9716.4015cbaed1ef29e7.js new file mode 100644 index 000000000..73aced388 --- /dev/null +++ b/server/public/9716.4015cbaed1ef29e7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9716],{3172:(Y,I,t)=>{t.d(I,{T:()=>j});var e=t(9808),l=t(3610),C=t(6949),T=t(7345),A=t(8369),v=t(209),s=t(4867),h=t(8625),M=t(7484),y=t(1894),x=t(3309),R=t(7026),_=t(7488),z=t(9779),p=t(5e3);let E=(()=>{class O{}return O.\u0275fac=function(d){return new(d||O)},O.\u0275mod=p.oAB({type:O}),O.\u0275inj=p.cJS({imports:[[e.ez,C.WG,M.vh,y.Jb,x.U,T.W,A.W,v.i,v.i,s.Q,_.y,z.s,h.$L.forChild({formatter:{useClass:R.x,provide:h.KP}})]]}),O})();var D=t(8481),N=t(647),J=t(9444),U=t(325);let j=(()=>{class O{}return O.\u0275fac=function(d){return new(d||O)},O.\u0275mod=p.oAB({type:O}),O.\u0275inj=p.cJS({imports:[[e.ez,J.s,U.Bz,l.$6,N.PV,E,D.X]]}),O})()},3212:(Y,I,t)=>{t.d(I,{E:()=>d});var e=t(9808),l=t(647),C=t(7345),T=t(3618),A=t(9444),v=t(3172),s=t(1254),h=t(3309),M=t(8369),y=t(209),x=t(4867),R=t(9476),_=t(404),z=t(8625),p=t(1894),E=t(7488),D=t(6042),N=t(9779),J=t(7026),U=t(7677),j=t(8481),O=t(325),Q=t(5e3);let d=(()=>{class Z{}return Z.\u0275fac=function(B){return new(B||Z)},Z.\u0275mod=Q.oAB({type:Z}),Z.\u0275inj=Q.cJS({imports:[[e.ez,D.sL,l.PV,j.X,_.cg,T.ZJ,p.Jb,O.Bz,z.$L.forChild({formatter:{useClass:J.x,provide:z.KP}}),E.y,C.W,A.s,v.T,s.O,h.U,M.W,y.i,x.Q,R.L,N.s,U.G]]}),Z})()},1897:(Y,I,t)=>{t.d(I,{t:()=>$e});var e=t(5e3),l=t(9808),C=t(1894),T=t(125),A=t(3618),v=t(3579),s=t(325),h=t(8481),M=t(3610),y=t(373),x=t(712),R=t(7484),_=t(3193),z=t(2826),p=t(9001),E=t(8664),D=t(6906),N=t(6949),J=t(8625);function U(n,i){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 j(n,i){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 O(n,i){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 Q(n,i){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 d(n,i){if(1&n&&e._UZ(0,"cvc-revision-tag",21),2&n){const o=e.oxw(2).ngIf;e.Q6J("revision",o.commentable)}}function Z(n,i){if(1&n&&e._UZ(0,"cvc-source-tag",22),2&n){const o=e.oxw(2).ngIf;e.Q6J("source",o.commentable)}}function L(n,i){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 B(n,i){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,U,1,2,"cvc-gene-tag",10),e.YNc(5,j,1,2,"cvc-assertion-tag",11),e.YNc(6,O,1,2,"cvc-evidence-tag",12),e.YNc(7,Q,1,2,"cvc-variant-tag",13),e.YNc(8,d,1,1,"cvc-revision-tag",14),e.YNc(9,Z,1,1,"cvc-source-tag",15),e.YNc(10,L,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 W(n,i){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 V(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,B,13,12,"ng-template",null,3,e.W1O),e.TgZ(4,"nz-row"),e.TgZ(5,"nz-col",4),e.TgZ(6,"div",5),e.YNc(7,W,3,1,"p",6),e.TgZ(8,"p"),e._uU(9),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&n){const o=i.ngIf,f=e.MAs(3);e.xp6(1),e.Q6J("nzTitle",f),e.xp6(6),e.Q6J("ngIf",o.title),e.xp6(2),e.hij(" ",o.comment," ")}}let K=(()=>{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,y.j)("data","comment"))}}return n.\u0275fac=function(o){return new(o||n)(e.Y36(x.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,f){1&o&&(e.TgZ(0,"div",0),e.YNc(1,V,10,3,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,f.comment$)))},directives:[l.O5,R.bd,T.I,l.RF,l.n9,_.H,z.w,p.O,E.I,v.p,D.T,l.ED,C.SK,C.t3],pipes:[N.fM,J.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 b=t(647);function $(n,i){}function G(n,i){}function X(n,i){if(1&n&&(e.TgZ(0,"nz-tag",7),e.YNc(1,G,0,0,"ng-template",1),e.qZA()),2&n){e.oxw();const o=e.MAs(2);e.oxw();const f=e.MAs(7);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",o),e.xp6(1),e.Q6J("ngTemplateOutlet",f)}}function a(n,i){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,i){if(1&n&&(e.YNc(0,X,2,3,"nz-tag",5),e.YNc(1,a,1,1,"ng-template",null,6,e.W1O)),2&n){const o=e.oxw(),f=e.MAs(5);e.Q6J("ngIf",o.enablePopover)("ngIfElse",f)}}function c(n,i){}function u(n,i){if(1&n&&(e.TgZ(0,"nz-tag"),e.YNc(1,c,0,0,"ng-template",1),e.qZA()),2&n){e.oxw();const o=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",o)}}function S(n,i){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 w=(()=>{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,f){if(1&o&&(e.TgZ(0,"a",0),e.YNc(1,$,0,0,"ng-template",1),e.qZA(),e.YNc(2,m,3,2,"ng-template",null,2,e.W1O),e.YNc(4,u,2,1,"ng-template",null,3,e.W1O),e.YNc(6,S,2,1,"ng-template",null,4,e.W1O)),2&o){const q=e.MAs(3);e.Q6J("routerLink",f.comment.link),e.xp6(1),e.Q6J("ngTemplateOutlet",q)}},directives:[s.yS,l.tP,l.O5,h.j,M.lU,K,b.Ls],styles:[""]}),n})();var k=t(8144),r=t(4590),P=t(112),g=t(3098);function F(n,i){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"i",11),e._uU(2),e.qZA()),2&n){const o=e.oxw(2).ngIf;e.xp6(2),e.hij(" FID",o.id," ")}}function H(n,i){if(1&n&&e._UZ(0,"cvc-status-tag",12),2&n){const o=e.oxw(2).ngIf;e.Q6J("status",o.state)}}function ee(n,i){1&n&&(e.TgZ(0,"nz-space",8),e.YNc(1,F,3,1,"span",9),e.YNc(2,H,1,1,"cvc-status-tag",10),e.qZA())}function ne(n,i){if(1&n&&e._UZ(0,"cvc-gene-tag",20),2&n){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",o.flaggable)}}function te(n,i){if(1&n&&e._UZ(0,"cvc-assertion-tag",21),2&n){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",o.flaggable)}}function oe(n,i){if(1&n&&e._UZ(0,"cvc-evidence-tag",22),2&n){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",o.flaggable)}}function ie(n,i){if(1&n&&e._UZ(0,"cvc-variant-tag",23),2&n){const o=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",o.flaggable)}}function ae(n,i){if(1&n&&e._UZ(0,"cvc-variant-group-tag",24),2&n){const o=e.oxw(2).ngIf;e.Q6J("variantgroup",o.flaggable)}}function ce(n,i){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.flaggable.name)}}function re(n,i){if(1&n&&(e.ynx(0,13),e.YNc(1,ne,1,2,"cvc-gene-tag",14),e.YNc(2,te,1,2,"cvc-assertion-tag",15),e.YNc(3,oe,1,2,"cvc-evidence-tag",16),e.YNc(4,ie,1,2,"cvc-variant-tag",17),e.YNc(5,ae,1,1,"cvc-variant-group-tag",18),e.YNc(6,ce,2,1,"span",19),e.BQk()),2&n){const o=e.oxw().ngIf;e.Q6J("ngSwitch",o.flaggable.__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","VariantGroup")}}function se(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",25),e.TgZ(1,"nz-descriptions-item",26),e._UZ(2,"cvc-user-tag",27),e.qZA(),e.TgZ(3,"nz-descriptions-item",28),e._uU(4),e.ALo(5,"timeago"),e.qZA(),e.qZA()),2&n){const o=e.oxw().ngIf;e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("enablePopover",!1)("user",o.flaggingUser),e.xp6(2),e.hij(" ",e.lcZ(5,4,o.createdAt)," ")}}function ge(n,i){if(1&n&&(e.TgZ(0,"nz-descriptions",29),e.TgZ(1,"nz-descriptions-item",30),e._uU(2),e.qZA(),e.qZA()),2&n){const o=e.oxw().ngIf;e.Q6J("nzColumn",1),e.xp6(2),e.hij(" ",o.openComment.comment," ")}}function le(n,i){if(1&n&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,ee,3,0,"ng-template",null,3,e.W1O),e.YNc(4,re,7,6,"ng-template",null,4,e.W1O),e.TgZ(6,"nz-space",5),e.YNc(7,se,6,6,"nz-descriptions",6),e.YNc(8,ge,3,2,"nz-descriptions",7),e.qZA(),e.qZA(),e.BQk()),2&n){const o=e.MAs(3),f=e.MAs(5);e.xp6(1),e.Q6J("nzTitle",o)("nzExtra",f)}}let _e=(()=>{class n{constructor(o){this.gql=o}ngOnInit(){if(null==this.flagId)throw new Error("cvc-flag-popover requires valid flagId input.");this.flag$=this.gql.watch({flagId:this.flagId}).valueChanges.pipe((0,y.j)("data","flag"))}}return n.\u0275fac=function(o){return new(o||n)(e.Y36(x.OIL))},n.\u0275cmp=e.Xpm({type:n,selectors:[["cvc-flag-popover"]],inputs:{flagId:"flagId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["subject",""],["nzDirection","vertical",2,"width","100%"],["nzBordered","","nzSize","small",3,"nzColumn",4,"nzSpaceItem"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],[1,"flag-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzType","civic:flag"],[3,"status"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"variantgroup",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"variantgroup"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Flagging User"],[3,"enablePopover","user"],["nzTitle","Flagging Date"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Comment"]],template:function(o,f){1&o&&(e.TgZ(0,"div",0),e.YNc(1,le,9,2,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,f.flag$)))},directives:[l.O5,R.bd,k.NU,k.$1,b.Ls,r.h,l.RF,l.n9,_.H,z.w,p.O,E.I,P.u,l.ED,g.R7,g.uj,T.I],pipes:[N.fM,J.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}.flag-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),n})();function me(n,i){}function pe(n,i){}function ve(n,i){if(1&n&&(e.TgZ(0,"nz-tag",7),e.YNc(1,pe,0,0,"ng-template",1),e.qZA()),2&n){e.oxw();const o=e.MAs(2);e.oxw();const f=e.MAs(7);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",o),e.xp6(1),e.Q6J("ngTemplateOutlet",f)}}function de(n,i){if(1&n&&e._UZ(0,"cvc-flag-popover",8),2&n){const o=e.oxw(2);e.Q6J("flagId",o.flag.id)}}function ue(n,i){if(1&n&&(e.YNc(0,ve,2,3,"nz-tag",5),e.YNc(1,de,1,1,"ng-template",null,6,e.W1O)),2&n){const o=e.oxw(),f=e.MAs(5);e.Q6J("ngIf",o.enablePopover)("ngIfElse",f)}}function fe(n,i){}function Ce(n,i){if(1&n&&(e.TgZ(0,"nz-tag"),e.YNc(1,fe,0,0,"ng-template",1),e.qZA()),2&n){e.oxw();const o=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",o)}}function Te(n,i){if(1&n&&(e._UZ(0,"i",9),e._uU(1)),2&n){const o=e.oxw();e.xp6(1),e.hij(" ",o.flag.name,"\n")}}let he=(()=>{class n{constructor(){this.enablePopover=!0}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",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"],["flagPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"flagId"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(o,f){if(1&o&&(e.TgZ(0,"a",0),e.YNc(1,me,0,0,"ng-template",1),e.qZA(),e.YNc(2,ue,3,2,"ng-template",null,2,e.W1O),e.YNc(4,Ce,2,1,"ng-template",null,3,e.W1O),e.YNc(6,Te,2,1,"ng-template",null,4,e.W1O)),2&o){const q=e.MAs(3);e.Q6J("routerLink",f.flag.link),e.xp6(1),e.Q6J("ngTemplateOutlet",q)}},directives:[s.yS,l.tP,l.O5,h.j,M.lU,_e,b.Ls],styles:[""]}),n})();var xe=t(5749),Pe=t(404),ze=t(2937);let Oe=(()=>{class n{transform(o){switch(o){case x.AO2.Commented:case x.AO2.RevisionSuggested:case x.AO2.RevisionAccepted:case x.AO2.RevisionRejected:case x.AO2.RevisionSuperseded:return"to";case x.AO2.Flagged:case x.AO2.FlagResolved:return"on";case x.AO2.PublicationSuggested:case x.AO2.CuratedSourceSuggestion:case x.AO2.RejectedSourceSuggestion:case x.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 Ae(n,i){if(1&n&&e._UZ(0,"cvc-user-tag",10),2&n){const o=e.oxw(2);e.Q6J("user",o.event.originatingUser)}}function Ee(n,i){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,i){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-revision-tag",13),e.YNc(2,Ee,3,3,"span",14),e.qZA()),2&n){const o=e.oxw().ngIf,f=e.oxw(2);e.xp6(1),e.Q6J("revision",o)("subject",f.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=f.tagDisplay)}}function Me(n,i){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 ye(n,i){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-comment-tag",15),e.YNc(2,Me,3,3,"span",14),e.qZA()),2&n){const o=e.oxw().ngIf,f=e.oxw(2);e.xp6(1),e.Q6J("comment",o)("subject",f.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=f.tagDisplay)}}function De(n,i){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 Ze(n,i){if(1&n&&(e.TgZ(0,"span"),e._UZ(1,"cvc-flag-tag",16),e.YNc(2,De,3,3,"span",14),e.qZA()),2&n){const o=e.oxw().ngIf,f=e.oxw(2);e.xp6(1),e.Q6J("flag",o)("subject",f.event.subject),e.xp6(1),e.Q6J("ngIf","hideSubject"!=f.tagDisplay)}}function Se(n,i){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,i){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,f=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"!=f.tagDisplay)}}function Ue(n,i){if(1&n&&(e.ynx(0),e.ynx(1,11),e.YNc(2,Ie,3,3,"span",12),e.YNc(3,ye,3,3,"span",12),e.YNc(4,Ze,3,3,"span",12),e.YNc(5,Re,4,3,"span",12),e.BQk(),e.BQk()),2&n){const o=i.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 Qe(n,i){if(1&n&&e._UZ(0,"cvc-gene-tag",26),2&n){const o=e.oxw().ngIf;e.Q6J("gene",o)}}function Je(n,i){if(1&n&&e._UZ(0,"cvc-assertion-tag",27),2&n){const o=e.oxw().ngIf;e.Q6J("assertion",o)}}function Ne(n,i){if(1&n&&e._UZ(0,"cvc-evidence-tag",28),2&n){const o=e.oxw().ngIf;e.Q6J("evidence",o)}}function je(n,i){if(1&n&&e._UZ(0,"cvc-variant-tag",29),2&n){const o=e.oxw().ngIf;e.Q6J("variant",o)}}function we(n,i){if(1&n&&e._UZ(0,"cvc-revision-tag",30),2&n){const o=e.oxw().ngIf;e.Q6J("revision",o)}}function Le(n,i){if(1&n&&e._UZ(0,"cvc-variant-group-tag",31),2&n){const o=e.oxw().ngIf;e.Q6J("variantgroup",o)}}function Fe(n,i){if(1&n&&e._UZ(0,"cvc-source-tag",32),2&n){const o=e.oxw().ngIf;e.Q6J("source",o)}}function Ye(n,i){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 Be(n,i){1&n&&(e.ynx(0,11),e.YNc(1,Qe,1,1,"cvc-gene-tag",18),e.YNc(2,Je,1,1,"cvc-assertion-tag",19),e.YNc(3,Ne,1,1,"cvc-evidence-tag",20),e.YNc(4,je,1,1,"cvc-variant-tag",21),e.YNc(5,we,1,1,"cvc-revision-tag",22),e.YNc(6,Le,1,1,"cvc-variant-group-tag",23),e.YNc(7,Fe,1,1,"cvc-source-tag",24),e.YNc(8,Ye,2,1,"span",25),e.BQk()),2&n&&(e.Q6J("ngSwitch",i.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 We(n,i){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=i.ngIf;e.xp6(3),e.Q6J("org",o)}}function be(n,i){if(1&n&&(e.TgZ(0,"nz-row",2),e.TgZ(1,"nz-col",3),e.YNc(2,Ae,1,1,"cvc-user-tag",4),e.TgZ(3,"span",5),e._uU(4),e.ALo(5,"eventVerbiage"),e.qZA(),e.YNc(6,Ue,6,5,"ng-container",6),e.YNc(7,Be,9,8,"ng-container",7),e.YNc(8,We,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 Ke(n,i){1&n&&e._uU(0," Event database entry is malformed and cannot be displayed\n")}let $e=(()=>{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,f){if(1&o&&(e.YNc(0,be,14,14,"nz-row",0),e.YNc(1,Ke,1,0,"ng-template",null,1,e.W1O)),2&o){const q=e.MAs(2);e.Q6J("ngIf",f.event.originatingObject)("ngIfElse",q)}},directives:[l.O5,C.SK,C.t3,T.I,A.ZU,l.RF,l.n9,v.p,w,he,h.j,s.rH,_.H,z.w,p.O,E.I,P.u,D.T,l.ED,xe.m,Pe.SY],pipes:[ze.R,Oe,l.uU,J.wr],styles:[""]}),n})()},3227:(Y,I,t)=>{t.d(I,{r:()=>R});var e=t(5e3),l=t(9808),C=t(2712),T=t(2683),A=t(647),v=t(1897),s=t(712);let h=(()=>{class _{transform(p){switch(p){case s.AO2.Commented:return"civic-comment";case s.AO2.RevisionSuggested:case s.AO2.RevisionAccepted:case s.AO2.RevisionRejected:case s.AO2.RevisionSuperseded:return"civic-revision";case s.AO2.Flagged:case s.AO2.FlagResolved:return"civic-flag";case s.AO2.AssertionSubmitted:case s.AO2.AssertionAccepted:case s.AO2.AssertionRejected:return"civic-assertion";case s.AO2.Submitted:case s.AO2.Accepted:case s.AO2.Rejected:return"civic-evidence";case s.AO2.PublicationSuggested:case s.AO2.CuratedSourceSuggestion:case s.AO2.RejectedSourceSuggestion:case s.AO2.RequeuedSourceSuggestion:return"file-add";case s.AO2.Reverted:return"civic-evidence";case s.AO2.AssertionReverted:return"civic-assertion";default:throw new Error("Not handling all event action types yet"+p)}}}return _.\u0275fac=function(p){return new(p||_)},_.\u0275pipe=e.Yjl({name:"iconNameForEventAction",type:_,pure:!0}),_})();function M(_,z){if(1&_&&(e._UZ(0,"i",5),e.ALo(1,"iconNameForEventAction")),2&_){const p=e.oxw().$implicit;e.Q6J("nzType",e.lcZ(1,1,p.action))}}function y(_,z){if(1&_&&(e.ynx(0),e.TgZ(1,"nz-timeline-item",2),e.YNc(2,M,2,3,"ng-template",null,3,e.W1O),e._UZ(4,"cvc-event-timeline-item",4),e.qZA(),e.BQk()),2&_){const p=z.$implicit,E=e.MAs(3),D=e.oxw(2);e.xp6(1),e.Q6J("nzDot",E),e.xp6(3),e.Q6J("event",p)("tagDisplay",D.tagDisplay)}}function x(_,z){if(1&_&&(e.TgZ(0,"nz-timeline"),e.YNc(1,y,5,3,"ng-container",1),e.qZA()),2&_){const p=e.oxw();e.xp6(1),e.Q6J("ngForOf",p.events)}}let R=(()=>{class _{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}}return _.\u0275fac=function(p){return new(p||_)},_.\u0275cmp=e.Xpm({type:_,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,E){1&p&&e.YNc(0,x,2,1,"nz-timeline",0),2&p&&e.Q6J("ngIf",null==E.events?null:E.events.length)},directives:[l.O5,C.PD,l.sg,C.Zv,T.w,A.Ls,v.t],pipes:[h],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%}"]}),_})()},3884:(Y,I,t)=>{t.d(I,{m:()=>Q});var e=t(9808),l=t(647),C=t(7345),T=t(3618),A=t(9444),v=t(3172),s=t(1254),h=t(3309),M=t(8369),y=t(209),x=t(4867),R=t(9476),_=t(404),z=t(8625),p=t(2712),E=t(1894),D=t(7488),N=t(6042),J=t(9779),U=t(3212),j=t(7026),O=t(5e3);let Q=(()=>{class d{}return d.\u0275fac=function(L){return new(L||d)},d.\u0275mod=O.oAB({type:d}),d.\u0275inj=O.cJS({imports:[[e.ez,N.sL,l.PV,_.cg,T.ZJ,p.FT,E.Jb,z.$L.forChild({formatter:{useClass:j.x,provide:z.KP}}),D.y,C.W,A.s,v.T,s.O,h.U,M.W,y.i,x.Q,R.L,J.s,U.E]]}),d})()},1254:(Y,I,t)=>{t.d(I,{O:()=>Q});var e=t(9808),l=t(8481),C=t(647),T=t(325),A=t(9444),v=t(6949),s=t(7345),h=t(8369),M=t(209),y=t(4867),x=t(8625),R=t(7484),_=t(1894),z=t(3309),p=t(7026),E=t(7677),D=t(592),N=t(8144),J=t(3098),U=t(5e3);let j=(()=>{class d{}return d.\u0275fac=function(L){return new(L||d)},d.\u0275mod=U.oAB({type:d}),d.\u0275inj=U.cJS({imports:[[e.ez,v.WG,R.vh,_.Jb,C.PV,N.zf,J.q6,z.U,s.W,h.W,M.i,y.Q,E.G,D.x,x.$L.forChild({formatter:{useClass:p.x,provide:x.KP}})]]}),d})();var O=t(3610);let Q=(()=>{class d{}return d.\u0275fac=function(L){return new(L||d)},d.\u0275mod=U.oAB({type:d}),d.\u0275inj=U.cJS({imports:[[e.ez,T.Bz,l.X,C.PV,O.$6,A.s,j]]}),d})()},3579:(Y,I,t)=>{t.d(I,{p:()=>k});var e=t(5e3),l=t(325),C=t(9808),T=t(8481),A=t(3610),v=t(373),s=t(712),h=t(7484),M=t(8144),y=t(647),x=t(4590),R=t(3193),_=t(2826),z=t(9001),p=t(8664),E=t(112),D=t(3098),N=t(125),J=t(6949),U=t(8625);function j(r,P){if(1&r&&(e.TgZ(0,"span"),e._UZ(1,"i",13),e._uU(2),e.qZA()),2&r){const g=e.oxw(2).ngIf;e.xp6(2),e.hij(" RID",g.id," ")}}function O(r,P){if(1&r&&e._UZ(0,"cvc-status-tag",14),2&r){const g=e.oxw(2).ngIf;e.Q6J("status",g.status)}}function Q(r,P){1&r&&(e.TgZ(0,"nz-space",10),e.YNc(1,j,3,1,"span",11),e.YNc(2,O,1,1,"cvc-status-tag",12),e.qZA())}function d(r,P){if(1&r&&e._UZ(0,"cvc-gene-tag",22),2&r){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("gene",g.subject)}}function Z(r,P){if(1&r&&e._UZ(0,"cvc-assertion-tag",23),2&r){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("assertion",g.subject)}}function L(r,P){if(1&r&&e._UZ(0,"cvc-evidence-tag",24),2&r){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("evidence",g.subject)}}function B(r,P){if(1&r&&e._UZ(0,"cvc-variant-tag",25),2&r){const g=e.oxw(2).ngIf;e.Q6J("enablePopover",!1)("variant",g.subject)}}function W(r,P){if(1&r&&e._UZ(0,"cvc-variant-group-tag",26),2&r){const g=e.oxw(2).ngIf;e.Q6J("variantgroup",g.subject)}}function V(r,P){if(1&r&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&r){const g=e.oxw(2).ngIf;e.xp6(1),e.Oqu(g.subject.name)}}function K(r,P){if(1&r&&(e.ynx(0,15),e.YNc(1,d,1,2,"cvc-gene-tag",16),e.YNc(2,Z,1,2,"cvc-assertion-tag",17),e.YNc(3,L,1,2,"cvc-evidence-tag",18),e.YNc(4,B,1,2,"cvc-variant-tag",19),e.YNc(5,W,1,1,"cvc-variant-group-tag",20),e.YNc(6,V,2,1,"span",21),e.BQk()),2&r){const g=e.oxw().ngIf;e.Q6J("ngSwitch",g.subject.__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","VariantGroup")}}function b(r,P){if(1&r&&(e.ynx(0),e.TgZ(1,"nz-card",2),e.YNc(2,Q,3,0,"ng-template",null,3,e.W1O),e.YNc(4,K,7,6,"ng-template",null,4,e.W1O),e.TgZ(6,"nz-descriptions",5),e.TgZ(7,"nz-descriptions-item",6),e._UZ(8,"cvc-user-tag",7),e.qZA(),e.TgZ(9,"nz-descriptions-item",8),e._uU(10),e.qZA(),e.TgZ(11,"nz-descriptions-item",9),e._uU(12),e.ALo(13,"timeago"),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&r){const g=P.ngIf,F=e.MAs(3),H=e.MAs(5);e.xp6(1),e.Q6J("nzTitle",F)("nzExtra",H),e.xp6(5),e.Q6J("nzColumn",1),e.xp6(2),e.Q6J("enablePopover",!1)("user",g.revisor),e.xp6(2),e.hij(" ",g.linkoutData.name," "),e.xp6(2),e.hij(" ",e.lcZ(13,7,g.createdAt)," ")}}let $=(()=>{class r{constructor(g){this.gql=g}ngOnInit(){if(null==this.revisionId)throw new Error("cvc-revision-popover requires valid revisionId input.");this.revision$=this.gql.watch({revisionId:this.revisionId}).valueChanges.pipe((0,v.j)("data","revision"))}}return r.\u0275fac=function(g){return new(g||r)(e.Y36(s.otH))},r.\u0275cmp=e.Xpm({type:r,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["cardTitle",""],["subject",""],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Revisor"],[3,"enablePopover","user"],["nzTitle","Field"],["nzTitle","Revision Date"],[1,"revision-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzType","civic:revision"],[3,"status"],[3,"ngSwitch"],[3,"enablePopover","gene",4,"ngSwitchCase"],[3,"enablePopover","assertion",4,"ngSwitchCase"],[3,"enablePopover","evidence",4,"ngSwitchCase"],[3,"enablePopover","variant",4,"ngSwitchCase"],[3,"variantgroup",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"enablePopover","gene"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"variantgroup"]],template:function(g,F){1&g&&(e.TgZ(0,"div",0),e.YNc(1,b,14,9,"ng-container",1),e.ALo(2,"ngrxPush"),e.qZA()),2&g&&(e.xp6(1),e.Q6J("ngIf",e.lcZ(2,1,F.revision$)))},directives:[C.O5,h.bd,M.NU,M.$1,y.Ls,x.h,C.RF,C.n9,R.H,_.w,z.O,p.I,E.u,C.ED,D.R7,D.uj,N.I],pipes:[J.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}.revision-card-title[_ngcontent-%COMP%]{font-weight:400}"]}),r})();function G(r,P){}function X(r,P){}function a(r,P){if(1&r&&(e.TgZ(0,"nz-tag",7),e.YNc(1,X,0,0,"ng-template",1),e.qZA()),2&r){e.oxw();const g=e.MAs(2);e.oxw();const F=e.MAs(7);e.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",g),e.xp6(1),e.Q6J("ngTemplateOutlet",F)}}function m(r,P){if(1&r&&e._UZ(0,"cvc-revision-popover",8),2&r){const g=e.oxw(2);e.Q6J("revisionId",g.revision.id)}}function c(r,P){if(1&r&&(e.YNc(0,a,2,3,"nz-tag",5),e.YNc(1,m,1,1,"ng-template",null,6,e.W1O)),2&r){const g=e.oxw(),F=e.MAs(5);e.Q6J("ngIf",g.enablePopover)("ngIfElse",F)}}function u(r,P){}function S(r,P){if(1&r&&(e.TgZ(0,"nz-tag"),e.YNc(1,u,0,0,"ng-template",1),e.qZA()),2&r){e.oxw();const g=e.MAs(7);e.xp6(1),e.Q6J("ngTemplateOutlet",g)}}function w(r,P){if(1&r&&(e._UZ(0,"i",9),e._uU(1)),2&r){const g=e.oxw();e.xp6(1),e.hij(" ",g.revision.name,"\n")}}let k=(()=>{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(g){return new(g||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",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"],["revisionPopover",""],["nz-popover","","nzPopoverPlacement","right","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(g,F){if(1&g&&(e.TgZ(0,"a",0),e.YNc(1,G,0,0,"ng-template",1),e.qZA(),e.YNc(2,c,3,2,"ng-template",null,2,e.W1O),e.YNc(4,S,2,1,"ng-template",null,3,e.W1O),e.YNc(6,w,2,1,"ng-template",null,4,e.W1O)),2&g){const H=e.MAs(3);e.Q6J("routerLink",F.revision.link),e.xp6(1),e.Q6J("ngTemplateOutlet",H)}},directives:[l.yS,C.tP,C.O5,T.j,A.lU,$,y.Ls],styles:[""]}),r})()},1150:(Y,I,t)=>{t.d(I,{N:()=>s});var e=t(9808),l=t(7484),C=t(3762),T=t(647),A=t(6042),v=t(5e3);let s=(()=>{class h{}return h.\u0275fac=function(y){return new(y||h)},h.\u0275mod=v.oAB({type:h}),h.\u0275inj=v.cJS({imports:[[e.ez,l.vh,C.Ph,T.PV,A.sL]]}),h})()},2937:(Y,I,t)=>{t.d(I,{R:()=>C});var e=t(712),l=t(5e3);let C=(()=>{class T{transform(v,s="contributor-card",h=0){return"contributor-card"===s?this.contributorVerbiage(v,h):"action-filter"===s?this.actionFilterVerbiage(v):this.eventFeedVerbiage(v)}eventFeedVerbiage(v){switch(v){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(v){switch(v){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(v,s){switch(v){case e.AO2.Commented:return 1==s?"left a comment on this entity":`left ${s} comments on this entity`;case e.AO2.RevisionSuggested:return 1==s?"suggested a revision to this entity":`suggested ${s} revisions on this entity`;case e.AO2.RevisionAccepted:return 1==s?"accepted a revision to this entity":`accepted ${s} revisions on this entity`;case e.AO2.RevisionRejected:return 1==s?"rejected a revision to this entity":`rejected ${s} revisions on this entity`;case e.AO2.RevisionSuperseded:return 1==s?"accepted a superseding revision to this entity":`accepted ${s} superseding revisions on this entity`;case e.AO2.Flagged:return 1==s?"opened new flag on this entity":`opened ${s} new flags on this entity`;case e.AO2.FlagResolved:return 1==s?"resolved a flag on this entity":`resolved ${s} 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(v){return new(v||T)},T.\u0275pipe=l.Yjl({name:"eventVerbiage",type:T,pure:!0}),T})()},2712:(Y,I,t)=>{t.d(I,{PD:()=>b,Zv:()=>K,FT:()=>X});var e=t(5e3),l=t(839),C=t(8929),T=t(9808),A=t(969),v=t(7625),s=t(226),h=t(647),M=t(925);const y=["template"];function x(a,m){if(1&a&&(e.ynx(0),e._uU(1),e.BQk()),2&a){const c=e.oxw(3);e.xp6(1),e.Oqu(c.nzLabel)}}function R(a,m){if(1&a&&(e.TgZ(0,"div",7),e.YNc(1,x,2,1,"ng-container",5),e.qZA()),2&a){const c=e.oxw(2);e.xp6(1),e.Q6J("nzStringTemplateOutlet",c.nzLabel)}}function _(a,m){if(1&a&&(e.ynx(0),e._uU(1),e.BQk()),2&a){const c=e.oxw(2);e.xp6(1),e.Oqu(c.nzDot)}}function z(a,m){if(1&a&&(e.TgZ(0,"li",1),e.YNc(1,R,2,1,"div",2),e._UZ(2,"div",3),e.TgZ(3,"div",4),e.YNc(4,_,2,1,"ng-container",5),e.qZA(),e.TgZ(5,"div",6),e.Hsn(6),e.qZA(),e.qZA()),2&a){const c=e.oxw();e.ekj("ant-timeline-item-right","right"===(c.nzPosition||c.position))("ant-timeline-item-left","left"===(c.nzPosition||c.position))("ant-timeline-item-last",c.isLast),e.xp6(1),e.Q6J("ngIf",c.nzLabel),e.xp6(2),e.Udp("border-color",c.borderColor),e.ekj("ant-timeline-item-head-red","red"===c.nzColor)("ant-timeline-item-head-blue","blue"===c.nzColor)("ant-timeline-item-head-green","green"===c.nzColor)("ant-timeline-item-head-gray","gray"===c.nzColor)("ant-timeline-item-head-custom",!!c.nzDot),e.xp6(1),e.Q6J("nzStringTemplateOutlet",c.nzDot)}}const p=["*"];function E(a,m){if(1&a&&e.GkF(0,4),2&a){e.oxw();const c=e.MAs(5);e.Q6J("ngTemplateOutlet",c)}}function D(a,m){}function N(a,m){if(1&a&&(e.ynx(0),e.YNc(1,D,0,0,"ng-template",4),e.BQk()),2&a){const c=m.$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",c.template)}}function J(a,m){if(1&a&&e.GkF(0,4),2&a){e.oxw();const c=e.MAs(5);e.Q6J("ngTemplateOutlet",c)}}function U(a,m){1&a&&e._UZ(0,"i",12)}function j(a,m){if(1&a&&(e.ynx(0),e._uU(1),e.YNc(2,U,1,0,"i",11),e.BQk()),2&a){const c=e.oxw(3);e.xp6(1),e.hij(" ",c.nzPendingDot," "),e.xp6(1),e.Q6J("ngIf",!c.nzPendingDot)}}function O(a,m){if(1&a&&(e.ynx(0),e._uU(1),e.BQk()),2&a){const c=e.oxw(3);e.xp6(1),e.hij(" ",c.isPendingBoolean?"":c.nzPending," ")}}function Q(a,m){if(1&a&&(e.TgZ(0,"li",6),e._UZ(1,"div",7),e.TgZ(2,"div",8),e.YNc(3,j,3,2,"ng-container",9),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,O,2,1,"ng-container",9),e.qZA(),e.qZA()),2&a){const c=e.oxw(2);e.xp6(3),e.Q6J("nzStringTemplateOutlet",c.nzPendingDot),e.xp6(2),e.Q6J("nzStringTemplateOutlet",c.nzPending)}}function d(a,m){if(1&a&&e.YNc(0,Q,6,2,"li",5),2&a){const c=e.oxw();e.Q6J("ngIf",c.nzPending)}}const B=["red","blue","green","grey","gray"];let W=(()=>{class a{constructor(){this.check$=new l.t(1)}markForCheck(){this.check$.next()}}return a.\u0275fac=function(c){return new(c||a)},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac}),a})(),K=(()=>{class a{constructor(c,u){this.cdr=c,this.timelineService=u,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(c){this.timelineService.markForCheck(),c.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function V(a){return-1!==B.findIndex(m=>m===a)}(this.nzColor)?null:this.nzColor}}return a.\u0275fac=function(c){return new(c||a)(e.Y36(e.sBO),e.Y36(W))},a.\u0275cmp=e.Xpm({type:a,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(c,u){if(1&c&&e.Gf(y,5),2&c){let S;e.iGM(S=e.CRH())&&(u.template=S.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(c,u){1&c&&(e.F$t(),e.YNc(0,z,7,20,"ng-template",null,0,e.W1O))},directives:[T.O5,A.f],encapsulation:2,changeDetection:0}),a})(),b=(()=>{class a{constructor(c,u,S){this.cdr=c,this.timelineService=u,this.directionality=S,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new C.xQ}ngOnChanges(c){const{nzMode:u,nzReverse:S,nzPending:w}=c;($(u)||$(S))&&this.updateChildren(),w&&(this.isPendingBoolean=!0===w.currentValue)}ngOnInit(){var c;this.timelineService.check$.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),null===(c=this.directionality.change)||void 0===c||c.pipe((0,v.R)(this.destroy$)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const c=this.listOfItems.length;let u=!1;this.listOfItems.forEach((S,w)=>{S.isLast=this.nzReverse?0===w:w===c-1,S.position=function G(a,m){return"custom"===m?void 0:"left"===m?"left":"right"===m?"right":"alternate"===m&&a%2==0?"left":"right"}(w,this.nzMode),!u&&S.nzLabel&&(u=!0),S.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=u}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}}return a.\u0275fac=function(c){return new(c||a)(e.Y36(e.sBO),e.Y36(W),e.Y36(s.Is,8))},a.\u0275cmp=e.Xpm({type:a,selectors:[["nz-timeline"]],contentQueries:function(c,u,S){if(1&c&&e.Suo(S,K,4),2&c){let w;e.iGM(w=e.CRH())&&(u.listOfItems=w)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:"nzReverse"},exportAs:["nzTimeline"],features:[e._Bn([W]),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(c,u){1&c&&(e.F$t(),e.TgZ(0,"ul",0),e.YNc(1,E,1,1,"ng-container",1),e.YNc(2,N,2,1,"ng-container",2),e.YNc(3,J,1,1,"ng-container",1),e.qZA(),e.YNc(4,d,1,1,"ng-template",null,3,e.W1O),e.Hsn(6)),2&c&&(e.ekj("ant-timeline-label",u.hasLabelItem)("ant-timeline-right",!u.hasLabelItem&&"right"===u.nzMode)("ant-timeline-alternate","alternate"===u.nzMode||"custom"===u.nzMode)("ant-timeline-pending",!!u.nzPending)("ant-timeline-reverse",u.nzReverse)("ant-timeline-rtl","rtl"===u.dir),e.xp6(1),e.Q6J("ngIf",u.nzReverse),e.xp6(1),e.Q6J("ngForOf",u.timelineItems),e.xp6(1),e.Q6J("ngIf",!u.nzReverse))},directives:[T.O5,T.tP,T.sg,A.f,h.Ls],encapsulation:2,changeDetection:0}),a})();function $(a){return!(!a||a.previousValue===a.currentValue&&!a.isFirstChange())}let X=(()=>{class a{}return a.\u0275fac=function(c){return new(c||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[s.vT,T.ez,M.ud,h.PV,A.T]]}),a})()}}]); \ No newline at end of file diff --git a/server/public/9716.5e244a9bae2799f5.js b/server/public/9716.5e244a9bae2799f5.js deleted file mode 100644 index 3eda8961f..000000000 --- a/server/public/9716.5e244a9bae2799f5.js +++ /dev/null @@ -1 +0,0 @@ -"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/9750.b4db36eb30066666.js b/server/public/9750.b4db36eb30066666.js new file mode 100644 index 000000000..574130d2f --- /dev/null +++ b/server/public/9750.b4db36eb30066666.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9750],{3580:(J,T,e)=>{e.d(T,{Q:()=>O});var g=e(9808),t=e(325),v=e(8481),d=e(3610),n=e(647),C=e(7484),z=e(3098),f=e(3630),x=e(6949),_=e(3618),h=e(9444),P=e(5e3);let Z=(()=>{class p{}return p.\u0275fac=function(u){return new(u||p)},p.\u0275mod=P.oAB({type:p}),p.\u0275inj=P.cJS({imports:[[g.ez,x.WG,C.vh,z.q6,n.PV,_.ZJ,h.s,f.X]]}),p})(),O=(()=>{class p{}return p.\u0275fac=function(u){return new(u||p)},p.\u0275mod=P.oAB({type:p}),p.\u0275inj=P.cJS({imports:[[g.ez,t.Bz,v.X,d.$6,n.PV,h.s,Z]]}),p})()},8018:(J,T,e)=>{e.d(T,{e:()=>p});var g=e(9808),t=e(325),v=e(8481),d=e(3610),n=e(647),C=e(7484),z=e(3098),f=e(6949),x=e(3630),_=e(3618),h=e(9444),P=e(404),Z=e(5e3);let O=(()=>{class c{}return c.\u0275fac=function(I){return new(I||c)},c.\u0275mod=Z.oAB({type:c}),c.\u0275inj=Z.cJS({imports:[[g.ez,t.Bz,f.WG,C.vh,z.q6,n.PV,_.ZJ,v.X,P.cg,x.X,h.s]]}),c})(),p=(()=>{class c{}return c.\u0275fac=function(I){return new(I||c)},c.\u0275mod=Z.oAB({type:c}),c.\u0275inj=Z.cJS({imports:[[g.ez,t.Bz,v.X,d.$6,n.PV,h.s,O]]}),c})()},9476:(J,T,e)=>{e.d(T,{L:()=>O});var g=e(9808),t=e(325),v=e(8481),d=e(647),n=e(1894),C=e(3630),z=e(3098),f=e(7484),x=e(6949),_=e(5473),h=e(5e3);let P=(()=>{class p{}return p.\u0275fac=function(u){return new(u||p)},p.\u0275mod=h.oAB({type:p}),p.\u0275inj=h.cJS({imports:[[g.ez,x.WG,f.vh,n.Jb,z.q6,C.X,_.H]]}),p})();var Z=e(3610);let O=(()=>{class p{}return p.\u0275fac=function(u){return new(u||p)},p.\u0275mod=h.oAB({type:p}),p.\u0275inj=h.cJS({imports:[[g.ez,t.Bz,v.X,d.PV,Z.$6,P]]}),p})()},6715:(J,T,e)=>{e.d(T,{$:()=>v});var g=e(5e3);const t=["*"];let v=(()=>{class d{constructor(){}ngOnInit(){}}return d.\u0275fac=function(C){return new(C||d)},d.\u0275cmp=g.Xpm({type:d,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(C,z){2&C&&g.ekj("xs","xs"===z.size||!z.size)("sm","sm"===z.size)},inputs:{size:"size"},ngContentSelectors:t,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(C,z){1&C&&(g.F$t(),g.TgZ(0,"div",0),g.Hsn(1),g.qZA())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"]}),d})()},897:(J,T,e)=>{e.d(T,{$:()=>v});var g=e(9808),t=e(5e3);let v=(()=>{class d{}return d.\u0275fac=function(C){return new(C||d)},d.\u0275mod=t.oAB({type:d}),d.\u0275inj=t.cJS({imports:[[g.ez]]}),d})()},7946:(J,T,e)=>{e.d(T,{x:()=>x});var g=e(9808),t=e(897),v=e(8481),d=e(3610),n=e(8018),C=e(3580),z=e(9476),f=e(5e3);let x=(()=>{class _{}return _.\u0275fac=function(P){return new(P||_)},_.\u0275mod=f.oAB({type:_}),_.\u0275inj=f.cJS({imports:[[g.ez,v.X,d.$6,t.$,n.e,C.Q,z.L]]}),_})()},8664:(J,T,e)=>{e.d(T,{I:()=>q});var g=e(6654),t=e(5e3),v=e(9808),d=e(325),n=e(8481),C=e(3610),z=e(4850),f=e(712),x=e(7484),_=e(647),h=e(3193),P=e(3098),Z=e(6550),O=e(1894),p=e(8144),c=e(6949);function u(i,m){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const r=t.oxw().ngIf;t.xp6(1),t.hij(" ",r.name," ")}}function I(i,m){if(1&i&&t._UZ(0,"cvc-gene-tag",14),2&i){const r=t.oxw().ngIf;t.Q6J("enablePopover",!1)("gene",r.gene)}}function E(i,m){if(1&i&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&i){const r=m.$implicit;t.xp6(1),t.Oqu(r)}}function Q(i,m){if(1&i&&(t.TgZ(0,"nz-descriptions-item",15),t.YNc(1,E,2,1,"nz-tag",16),t.qZA()),2&i){const r=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",r.variantAliases)}}function N(i,m){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 r=t.oxw().ngIf;t.xp6(1),t.MGl("href","https://reg.genome.network/allele/",r.alleleRegistryId,".html"),t.xp6(1),t.hij(" ",r.alleleRegistryId," ")}}function F(i,m){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/flags"),t.xp6(3),t.hij(" Flags (",r.flags.totalCount,") ")}}function V(i,m){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/revisions"),t.xp6(3),t.hij(" Revisions (",r.revisions.totalCount,") ")}}function D(i,m){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 r=t.oxw().ngIf;t.MGl("routerLink","/variants/",r.id,"/comments"),t.xp6(3),t.hij(" Comments (",r.comments.totalCount,") ")}}function b(i,m){if(1&i&&(t.ynx(0),t.TgZ(1,"nz-card",2),t.YNc(2,u,2,1,"ng-template",null,3,t.W1O),t.YNc(4,I,1,2,"ng-template",null,4,t.W1O),t.TgZ(6,"nz-descriptions",5),t.YNc(7,Q,2,1,"nz-descriptions-item",6),t.YNc(8,N,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,F,4,2,"a",12),t.YNc(15,V,4,2,"a",12),t.YNc(16,D,4,2,"a",12),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&i){const r=m.ngIf,y=t.MAs(3),S=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",y)("nzExtra",S),t.xp6(5),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("ngIf",r.variantAliases.length>0),t.xp6(1),t.Q6J("ngIf",r.alleleRegistryId),t.xp6(2),t.hij(" ",r.evidenceItems.totalCount," ")}}let U=(()=>{class i{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,z.U)(({data:r})=>r.variant))}}return i.\u0275fac=function(r){return new(r||i)(t.Y36(f.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(r,y){1&r&&(t.TgZ(0,"div",0),t.YNc(1,b,17,6,"ng-container",1),t.ALo(2,"ngrxPush"),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,y.variant$)))},directives:[v.O5,x.bd,_.Ls,h.H,P.R7,P.uj,v.sg,n.j,Z.l,O.SK,O.t3,p.NU,p.$1,d.yS],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}"]}),i})();function B(i,m){}function L(i,m){if(1&i&&(t.ynx(0),t.TgZ(1,"a",5),t.YNc(2,B,0,0,"ng-template",6),t.qZA(),t.BQk()),2&i){const r=t.oxw(),y=t.MAs(2);t.xp6(1),t.Q6J("routerLink",r.variant.link),t.xp6(1),t.Q6J("ngTemplateOutlet",y)}}function j(i,m){}function Y(i,m){if(1&i){const r=t.EpF();t.TgZ(0,"nz-tag",9),t.NdJ("nzOnClose",function(S){return t.CHM(r),t.oxw(2).itemClosed(S)}),t.YNc(1,j,0,0,"ng-template",6),t.qZA()}if(2&i){t.oxw();const r=t.MAs(2),y=t.oxw(),S=t.MAs(8);t.Q6J("nzPopoverMouseEnterDelay",y.onCloseClicked?0:.5)("nzPopoverContent",r)("nzMode",y.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",S)}}function R(i,m){if(1&i&&t._UZ(0,"cvc-variant-popover",11),2&i){const r=t.oxw(3);t.Q6J("variantId",r.variant.id)}}function W(i,m){if(1&i&&t.YNc(0,R,1,1,"cvc-variant-popover",10),2&i){const r=t.oxw(2);t.Q6J("ngIf",r.enablePopover)}}function $(i,m){if(1&i&&(t.YNc(0,Y,2,4,"nz-tag",7),t.YNc(1,W,1,1,"ng-template",null,8,t.W1O)),2&i){const r=t.oxw(),y=t.MAs(4);t.Q6J("ngIf",r.enablePopover)("ngIfElse",y)}}function K(i,m){}function X(i,m){if(1&i){const r=t.EpF();t.TgZ(0,"nz-tag",12),t.NdJ("nzOnClose",function(S){return t.CHM(r),t.oxw().itemClosed(S)}),t.YNc(1,K,0,0,"ng-template",6),t.qZA()}if(2&i){const r=t.oxw(),y=t.MAs(8);t.Q6J("nzMode",r.onCloseClicked?"closeable":"default"),t.xp6(1),t.Q6J("ngTemplateOutlet",y)}}function H(i,m){}function G(i,m){if(1&i&&t.YNc(0,H,0,0,"ng-template",6),2&i){t.oxw();const r=t.MAs(2);t.Q6J("ngTemplateOutlet",r)}}function w(i,m){if(1&i&&(t._UZ(0,"i",13),t._uU(1)),2&i){const r=t.oxw();t.xp6(1),t.hij(" ",r.variant.name,"\n")}}let q=(()=>{class i extends g.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(r){return new(r||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(r,y){if(1&r&&(t.YNc(0,L,3,2,"ng-container",0),t.YNc(1,$,3,2,"ng-template",null,1,t.W1O),t.YNc(3,X,2,2,"ng-template",null,2,t.W1O),t.YNc(5,G,1,1,"ng-template",null,3,t.W1O),t.YNc(7,w,2,1,"ng-template",null,4,t.W1O)),2&r){const S=t.MAs(6);t.Q6J("ngIf",y.linked)("ngIfElse",S)}},directives:[v.O5,d.yS,v.tP,n.j,C.lU,U,_.Ls],styles:[""]}),i})()},4867:(J,T,e)=>{e.d(T,{Q:()=>p});var g=e(9808),t=e(325),v=e(8481),d=e(647),n=e(3610),C=e(6949),z=e(7484),f=e(1894),x=e(3098),_=e(8144),h=e(3309),P=e(3630),Z=e(5e3);let O=(()=>{class c{}return c.\u0275fac=function(I){return new(I||c)},c.\u0275mod=Z.oAB({type:c}),c.\u0275inj=Z.cJS({imports:[[g.ez,t.Bz,C.WG,z.vh,f.Jb,x.q6,v.X,d.PV,_.zf,h.U,P.X]]}),c})(),p=(()=>{class c{}return c.\u0275fac=function(I){return new(I||c)},c.\u0275mod=Z.oAB({type:c}),c.\u0275inj=Z.cJS({imports:[[g.ez,t.Bz,v.X,n.$6,d.PV,O]]}),c})()},3154:(J,T,e)=>{e.d(T,{_:()=>t});var g=e(712);function t(v){var d;switch(v.value){case"ascend":d=g.SrV.Asc;break;case"descend":d=g.SrV.Desc;break;default:return}return{column:v.key,direction:d}}},1838:(J,T,e)=>{e.r(T),e.d(T,{ClinicalTrialsModule:()=>hn});var g=e(9808),t=e(325),v=e(373),d=e(1059),n=e(5e3),C=e(712),z=e(8992),f=e(1945),x=e(647),_=e(6550),h=e(6949);function P(a,l){if(1&a&&(n.ynx(0),n._UZ(1,"cvc-section-navigation",1),n.TgZ(2,"nz-page-header",2),n.TgZ(3,"nz-page-header-title"),n._UZ(4,"i",3),n._uU(5),n.qZA(),n.TgZ(6,"nz-page-header-extra"),n.TgZ(7,"cvc-link-tag",4),n._uU(8),n.qZA(),n.qZA(),n.TgZ(9,"nz-page-header-content"),n.TgZ(10,"div",5),n._uU(11),n._UZ(12,"router-outlet"),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&a){const o=l.ngIf;n.xp6(1),n.Q6J("displayName",o.nctId),n.xp6(4),n.hij(" ",o.name," "),n.xp6(2),n.Q6J("href",o.url),n.xp6(1),n.hij(" ",o.nctId," "),n.xp6(3),n.hij(" ",o.description," ")}}let Z=(()=>{class a{constructor(o,s){this.route=o,this.gql=s,this.routeSub=this.route.params.subscribe(M=>{this.clinicalTrialId=+M.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let A=this.queryRef.valueChanges;this.loading$=A.pipe((0,v.j)("loading"),(0,d.O)(!0)),this.clinicalTrial$=A.pipe((0,v.j)("data","clinicalTrial"))})}ngOnDestroy(){this.routeSub.unsubscribe()}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(t.gz),n.Y36(C.cMj))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-clinical-trials-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzType","audit"],["tooltip","View on clinicaltrials.gov",3,"href"],[1,"content"]],template:function(o,s){1&o&&(n.YNc(0,P,13,5,"ng-container",0),n.ALo(1,"ngrxPush")),2&o&&n.Q6J("ngIf",n.lcZ(1,1,s.clinicalTrial$))},directives:[g.O5,z.I,f.$O,f.u9,x.Ls,f.Jp,_.l,f.u5,t.lC],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}"]}),a})();var O=e(1894),p=e(2683),c=e(3618),u=e(8144),I=e(6042),E=e(3154),Q=e(8929),N=e(4850),F=e(2986),V=e(13),D=e(7484),b=e(1132),U=e(404),B=e(2166),L=e(4049),j=e(2643);function Y(a,l){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td"),n._UZ(2,"cvc-clinical-trial-tag",15),n.qZA(),n.TgZ(3,"td"),n._uU(4),n.qZA(),n.TgZ(5,"td"),n._uU(6),n.qZA(),n.TgZ(7,"td"),n._uU(8),n.qZA(),n.qZA()),2&a){const o=l.$implicit;n.xp6(2),n.Q6J("clinicalTrial",o),n.xp6(2),n.hij(" ",o.name," "),n.xp6(2),n.hij(" ",o.sourceCount," "),n.xp6(2),n.hij(" ",o.evidenceCount," ")}}function R(a,l){if(1&a){const o=n.EpF();n.TgZ(0,"button",19),n.NdJ("click",function(){n.CHM(o);const M=n.oxw(2).ngrxLet;return n.oxw().loadMore(M.endCursor)}),n._uU(1),n.qZA()}if(2&a){const o=n.oxw(3);n.xp6(1),n.hij("Load ",o.initialPageSize," More")}}function W(a,l){if(1&a&&(n.TgZ(0,"tr"),n.TgZ(1,"td",17),n.YNc(2,R,2,1,"button",18),n.qZA(),n.qZA()),2&a){const o=n.oxw().ngrxLet;n.xp6(2),n.Q6J("ngIf",o.hasNextPage)}}function $(a,l){if(1&a&&(n.ynx(0),n.YNc(1,W,3,1,"tr",16),n.BQk()),2&a){const o=l.ngrxLet;n.xp6(1),n.Q6J("ngIf",o.hasNextPage)}}function K(a,l){}function X(a,l){if(1&a&&(n.ynx(0),n.YNc(1,K,0,0,"ng-template",23),n.BQk()),2&a){const o=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",o.cvcTitleTemplate)}}function H(a,l){if(1&a&&(n.ynx(0),n._uU(1),n.BQk()),2&a){const o=n.oxw(2);n.xp6(1),n.hij(" ",o.cvcTitle," ")}}function G(a,l){if(1&a&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&a){const o=n.oxw().ngIf;n.xp6(1),n.hij(" of ",o," filtered")}}function w(a,l){if(1&a&&(n.TgZ(0,"span",24),n._uU(1),n.YNc(2,G,2,1,"span",16),n._uU(3,") "),n.qZA()),2&a){const o=l.ngIf,s=n.oxw(2);n.xp6(1),n.AsE(" (",s.totalCount," total, showing ",s.visibleCount,""),n.xp6(1),n.Q6J("ngIf",s.totalCount&&o{class a{constructor(o){this.gql=o,this.initialPageSize=25,this.debouncedQuery=new Q.xQ,this.visibleCount=this.initialPageSize,this.sortColumns=C.E8d,this.loadedPages=1,this.queryRef=this.gql.watch({first:this.initialPageSize});let s=this.queryRef.valueChanges;this.clinicalTrials$=s.pipe((0,v.j)("data","clinicalTrials","edges"),(0,N.U)(M=>M.map(A=>A.node))),this.isLoading$=s.pipe((0,v.j)("loading"),(0,d.O)(!0)),this.filteredCount$=s.pipe((0,v.j)("data","clinicalTrials","filteredCount")),this.filteredCount$.pipe((0,F.q)(1)).subscribe(M=>this.totalCount=M),this.filteredCount$.subscribe(M=>{MM&&(this.visibleCount=M))}),this.pageInfo$=s.pipe((0,v.j)("data","clinicalTrials","pageInfo")),this.debouncedQuery.pipe((0,V.b)(500)).subscribe(M=>this.refresh()),this.textInputCallback=()=>{this.debouncedQuery.next()}}onModelChanged(){this.debouncedQuery.next()}onSortChanged(o){this.loadedPages=1,this.queryRef.refetch({sortBy:(0,E._)(o)})}refresh(){this.loadedPages=1,this.queryRef.refetch({name:this.nameFilter,nctId:this.nctIdFilter})}ngOnDestroy(){this.debouncedQuery.unsubscribe()}loadMore(o){this.queryRef.fetchMore({variables:{after:o}}),this.loadedPages+=1}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(C.P_b))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-clinical-trials-table"]],inputs:{cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle"},decls:27,vars:27,consts:[[3,"nzTitle"],["nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination"],["clinicalTrialsTable",""],[3,"nzSortOrderChange"],["nzWidth","15%",3,"nzColumnKey","nzSortFn"],["nzWidth","65%",3,"nzColumnKey","nzSortFn"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Source Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:source"],["nzWidth","10%","nzRight","","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic:evidence"],["placeholderText","Search NCT ID",3,"inputModel","onInputChanged","inputModelChange"],["placeholderText","Search Name",3,"inputModel","onInputChanged","inputModelChange"],[4,"ngFor","ngForOf"],[4,"ngrxLet"],["titleTemplate",""],[3,"clinicalTrial"],[4,"ngIf"],["colspan","4"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"],["nz-icon","","nzType","audit"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["noData",""],[3,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"]],template:function(o,s){if(1&o&&(n.TgZ(0,"nz-card",0),n.TgZ(1,"nz-table",1,2),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.TgZ(5,"thead",3),n.NdJ("nzSortOrderChange",function(A){return s.onSortChanged(A)}),n.TgZ(6,"tr"),n.TgZ(7,"th",4),n._uU(8," NCT ID "),n.qZA(),n.TgZ(9,"th",5),n._uU(10," Name "),n.qZA(),n.TgZ(11,"th",6),n._UZ(12,"i",7),n.qZA(),n.TgZ(13,"th",8),n._UZ(14,"i",9),n.qZA(),n.qZA(),n.TgZ(15,"tr"),n.TgZ(16,"th"),n.TgZ(17,"cvc-clearable-input-filter",10),n.NdJ("inputModelChange",function(A){return s.nctIdFilter=A}),n.qZA(),n.qZA(),n.TgZ(18,"th"),n.TgZ(19,"cvc-clearable-input-filter",11),n.NdJ("inputModelChange",function(A){return s.nameFilter=A}),n.qZA(),n.qZA(),n._UZ(20,"th"),n._UZ(21,"th"),n.qZA(),n.qZA(),n.TgZ(22,"tbody"),n.YNc(23,Y,9,4,"tr",12),n.YNc(24,$,2,1,"ng-container",13),n.qZA(),n.qZA(),n.qZA(),n.YNc(25,i,7,6,"ng-template",null,14,n.W1O)),2&o){const M=n.MAs(2),A=n.MAs(26);n.Q6J("nzTitle",A),n.xp6(1),n.Q6J("nzData",n.lcZ(3,21,s.clinicalTrials$))("nzLoading",n.lcZ(4,23,s.isLoading$))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(6),n.Q6J("nzColumnKey",s.sortColumns.NctId)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.Name)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.SourceCount)("nzSortFn",!0)("nzSortDirections",n.DdM(25,m)),n.xp6(2),n.Q6J("nzColumnKey",s.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",n.DdM(26,m)),n.xp6(4),n.Q6J("inputModel",s.nctIdFilter)("onInputChanged",s.textInputCallback),n.xp6(2),n.Q6J("inputModel",s.nameFilter)("onInputChanged",s.textInputCallback),n.xp6(4),n.Q6J("ngForOf",M.data),n.xp6(1),n.Q6J("ngrxLet",s.pageInfo$)}},directives:[D.bd,b.N8,b.Om,b.$Z,b.Uo,b._C,b.qD,b.qn,U.SY,p.w,x.Ls,B.p,b.p0,g.sg,L.G,h.eJ,g.O5,I.ix,j.dQ,g.tP,c.ZU],pipes:[h.fM],styles:["[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%]{display:block}"]}),a})();function y(a,l){1&a&&(n.TgZ(0,"a",13),n._UZ(1,"i",14),n._uU(2," View Clinical Trial Docs "),n.qZA())}let S=(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["clinical-trials-home"]],decls:18,vars:2,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","audit"],["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/clinical_trial.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Clinical Trials"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/clinical_trial.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(o,s){1&o&&(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,"Clinical Trials"),n.qZA(),n.TgZ(9,"p",5),n._uU(10," CIViC automatically associates a Clinical Trial to an Evidence Item if its associated Source's PubMed record provides a clinical trial ID. This ID is not directly curatable. "),n.qZA(),n.qZA(),n.TgZ(11,"nz-col",6),n.TgZ(12,"nz-space",7),n.YNc(13,y,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-clinical-trials-table",12),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.qZA()),2&o&&(n.xp6(9),n.Q6J("nzEllipsisRows",2),n.xp6(6),n.Q6J("nzSpan",24))},directives:[z.I,f.$O,f.u5,O.SK,O.t3,x.Ls,p.w,c.ZU,u.NU,u.$1,I.ix,r],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}"]}),a})();var k=e(3575),tn=e(8965);function en(a,l){if(1&a&&n._UZ(0,"cvc-sources-table",4),2&a){const o=n.oxw(2);n.Q6J("clinicalTrialId",o.clinicalTrialId)}}function an(a,l){if(1&a&&n._UZ(0,"cvc-evidence-table",5),2&a){const o=n.oxw(2);n.Q6J("clinicalTrialId",o.clinicalTrialId)}}function on(a,l){1&a&&(n.TgZ(0,"nz-space",1),n.YNc(1,en,1,1,"cvc-sources-table",2),n.YNc(2,an,1,1,"cvc-evidence-table",3),n.qZA())}const rn=[{path:"",component:(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-clinical-trials"]],decls:1,vars:0,template:function(o,s){1&o&&n._UZ(0,"router-outlet")},directives:[t.lC],styles:[""]}),a})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:S,data:{breadcrumb:"Home"}},{path:":clinicalTrialId",component:Z,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class a{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.clinicalTrialId=+s.clinicalTrialId})}ngOnDestroy(){this.routeSub.unsubscribe()}}return a.\u0275fac=function(o){return new(o||a)(n.Y36(t.gz))},a.\u0275cmp=n.Xpm({type:a,selectors:[["cvc-clinical-trials-summary"]],decls:1,vars:1,consts:[["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],["cvcTitle","Clinical Trial Sources",3,"clinicalTrialId",4,"nzSpaceItem"],["cvcTitle","Clinical Trial Evidence",3,"clinicalTrialId",4,"nzSpaceItem"],["cvcTitle","Clinical Trial Sources",3,"clinicalTrialId"],["cvcTitle","Clinical Trial Evidence",3,"clinicalTrialId"]],template:function(o,s){1&o&&n.YNc(0,on,3,0,"nz-space",0),2&o&&n.Q6J("ngIf",s.clinicalTrialId)},directives:[g.O5,u.NU,u.$1,k.d,tn.a],styles:["[_nghost-%COMP%]{display:block}"]}),a})(),data:{breadcrumb:"Summary"}}]}]}];let ln=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[t.Bz.forChild(rn)],t.Bz]}),a})();var cn=e(4125),sn=e(5453);let gn=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[g.ez,h.WG,b.HQ,I.sL,D.vh,x.PV,c.ZJ,U.cg,cn.k,sn.N]]}),a})();var nn=e(5630);let pn=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[g.ez,h.WG,O.Jb,f.KJ,x.PV,I.sL,c.ZJ,u.zf,gn,nn.D]]}),a})();var dn=e(3630);let mn=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[g.ez,t.Bz,h.WG,f.KJ,x.PV,dn.X,nn.D]]}),a})();var vn=e(767),un=e(7279);let Cn=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[g.ez,u.zf,vn.Q,un.h]]}),a})(),hn=(()=>{class a{}return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({imports:[[g.ez,ln,pn,mn,Cn]]}),a})()}}]); \ No newline at end of file diff --git a/server/public/9890.3c50bc91546fa679.js b/server/public/9890.3c50bc91546fa679.js deleted file mode 100644 index e6e2025fd..000000000 --- a/server/public/9890.3c50bc91546fa679.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9890],{8992:(Y,B,r)=>{r.d(B,{I:()=>F});var t=r(325),g=r(8929),O=r(2198),T=r(7625),h=r(1059),n=r(5e3),m=r(2313);let y=(()=>{class i{constructor(a,l){this.title=a,this.meta=l}updateTitle(a){this.title.setTitle(a+=" | CIViC")}updateMetaTags(a){a.forEach(l=>this.meta.updateTag(l))}}return i.\u0275fac=function(a){return new(a||i)(n.LFG(m.Dx),n.LFG(m.h_))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var z=r(1894),D=r(9808),I=r(1758);function R(i,p){}function A(i,p){if(1&i&&(n.TgZ(0,"nz-col",5),n.YNc(1,R,0,0,"ng-template",6),n.qZA()),2&i){const a=n.oxw();n.Q6J("nzSpan",a.relationsTpl?5:14),n.xp6(1),n.Q6J("ngTemplateOutlet",a.actionsTpl)}}function P(i,p){}function L(i,p){if(1&i&&(n.TgZ(0,"nz-col",7),n.YNc(1,P,0,0,"ng-template",6),n.qZA()),2&i){const a=n.oxw();n.Q6J("nzSpan",a.actionsTpl?9:14),n.xp6(1),n.Q6J("ngTemplateOutlet",a.relationsTpl)}}const U=function(i,p){return{"has-relations":i,"has-actions":p}};let F=(()=>{class i{constructor(a,l,u){this.titleService=a,this.injector=l,this.cdr=u,this.destroy$=new g.xQ,this.segments=[],this._getRouteLabel=_=>"DISPLAYNAME"!==_?_:void 0===this.displayName?"[?DISPLAY NAME?]":this.displayName,this.getRouteLabel=_=>_}ngOnInit(){this.getRouteLabel=this._getRouteLabel,this.registerRouterChange()}registerRouterChange(){try{const a=this.injector.get(t.F0),l=this.injector.get(t.gz);a.events.pipe((0,O.h)(u=>u instanceof t.m2),(0,T.R)(this.destroy$),(0,h.O)(!0)).subscribe(()=>{this.segments=this.getTitleSegments(l.root);let u="",_=this.segments.length,C=1;this.segments.forEach(b=>{u+=this._getRouteLabel(b.label),C<_&&(u+=" "),C++}),this.titleService.updateTitle(u),this.cdr.markForCheck()})}catch(a){throw new Error("cvc-section-navigation should import RouterModule if you want to autogenerate title")}}getTitleSegments(a,l="",u=[]){const _=a.children;if(0===_.length)return u;for(const C of _)if(C.outlet===t.eC){const b=C.snapshot.url.map(v=>v.path).filter(v=>v).join("/"),x=b?l+`/${b}`:l,S=C.snapshot.data.breadcrumb;return b&&S&&u.push({label:S,url:x}),this.getTitleSegments(C,x,u)}return u}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return i.\u0275fac=function(a){return new(a||i)(n.Y36(y),n.Y36(n.zs3),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cvc-section-navigation"]],inputs:{displayName:"displayName",relationsTpl:"relationsTpl",actionsTpl:"actionsTpl"},decls:5,vars:8,consts:[["id","nav-container",3,"ngClass"],["nzSpan","10","id","breadcrumbs"],[3,"nzAutoGenerate","nzRouteLabelFn"],["id","action-btns",3,"nzSpan",4,"ngIf"],["id","relations-summary",3,"nzSpan",4,"ngIf"],["id","action-btns",3,"nzSpan"],[3,"ngTemplateOutlet"],["id","relations-summary",3,"nzSpan"]],template:function(a,l){1&a&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n._UZ(2,"nz-breadcrumb",2),n.qZA(),n.YNc(3,A,2,2,"nz-col",3),n.YNc(4,L,2,2,"nz-col",4),n.qZA()),2&a&&(n.Q6J("ngClass",n.WLB(5,U,void 0!==l.relationsTpl,void 0!==l.actionsTpl)),n.xp6(2),n.Q6J("nzAutoGenerate",!0)("nzRouteLabelFn",l.getRouteLabel),n.xp6(1),n.Q6J("ngIf",l.actionsTpl),n.xp6(1),n.Q6J("ngIf",l.relationsTpl))},directives:[z.SK,D.mk,z.t3,I.Dg,D.O5,D.tP],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]{display:block}#nav-container[_ngcontent-%COMP%]{margin-top:-12px;padding:4px 8px}#nav-container.has-relations[_ngcontent-%COMP%]{padding:8px}#nav-container.has-actions[_ngcontent-%COMP%]{padding:7px}#breadcrumbs[_ngcontent-%COMP%] .ant-breadcrumb a, #breadcrumbs[_ngcontent-%COMP%] .ant-breadcrumb-separator{color:#ffffffa6}#breadcrumbs[_ngcontent-%COMP%] .ant-breadcrumb a:hover{color:#40a9ff}#action-btns[_ngcontent-%COMP%], #relations-summary[_ngcontent-%COMP%]{text-align:right}#relations-summary[_ngcontent-%COMP%] .label{color:#ffffffa6}#relations-summary[_ngcontent-%COMP%] nz-space .tags>*:last-child nz-tag{margin-right:0}#relations-summary[_ngcontent-%COMP%] nz-space .ant-space-item:last-child{margin-right:0!important}"]}),i})()},5630:(Y,B,r)=>{r.d(B,{D:()=>n});var t=r(9808),g=r(1894),O=r(1758),T=r(325),h=r(5e3);let n=(()=>{class m{}return m.\u0275fac=function(z){return new(z||m)},m.\u0275mod=h.oAB({type:m}),m.\u0275inj=h.cJS({imports:[[t.ez,T.Bz,g.Jb,O.lt]]}),m})()},1758:(Y,B,r)=>{r.d(B,{Dg:()=>v,lt:()=>Q});var t=r(5e3),g=r(9808),O=r(3677),T=r(647),h=r(969),n=r(655),m=r(325),y=r(8929),z=r(7625),D=r(2198),I=r(1059),R=r(948),A=r(1721),P=r(226),L=r(2845),U=r(6950);function F(e,c){}function i(e,c){1&e&&t._UZ(0,"i",6)}function p(e,c){if(1&e&&(t.ynx(0),t.TgZ(1,"span",3),t.YNc(2,F,0,0,"ng-template",4),t.YNc(3,i,1,0,"i",5),t.qZA(),t.BQk()),2&e){const o=t.oxw(),s=t.MAs(2);t.xp6(1),t.Q6J("nzDropdownMenu",o.nzOverlay),t.xp6(1),t.Q6J("ngTemplateOutlet",s),t.xp6(1),t.Q6J("ngIf",!!o.nzOverlay)}}function a(e,c){1&e&&(t.TgZ(0,"span",7),t.Hsn(1),t.qZA())}function l(e,c){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const o=t.oxw(2);t.xp6(1),t.hij(" ",o.nzBreadCrumbComponent.nzSeparator," ")}}function u(e,c){if(1&e&&(t.TgZ(0,"span",8),t.YNc(1,l,2,1,"ng-container",9),t.qZA()),2&e){const o=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",o.nzBreadCrumbComponent.nzSeparator)}}const _=["*"];function C(e,c){if(1&e){const o=t.EpF();t.TgZ(0,"nz-breadcrumb-item"),t.TgZ(1,"a",2),t.NdJ("click",function(d){const f=t.CHM(o).$implicit;return t.oxw(2).navigate(f.url,d)}),t._uU(2),t.qZA(),t.qZA()}if(2&e){const o=c.$implicit;t.xp6(1),t.uIk("href",o.url,t.LSH),t.xp6(1),t.Oqu(o.label)}}function b(e,c){if(1&e&&(t.ynx(0),t.YNc(1,C,3,2,"nz-breadcrumb-item",1),t.BQk()),2&e){const o=t.oxw();t.xp6(1),t.Q6J("ngForOf",o.breadcrumbs)}}class x{}let S=(()=>{class e{constructor(o){this.nzBreadCrumbComponent=o}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(x))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-breadcrumb-item"]],inputs:{nzOverlay:"nzOverlay"},exportAs:["nzBreadcrumbItem"],ngContentSelectors:_,decls:4,vars:3,consts:[[4,"ngIf","ngIfElse"],["noMenuTpl",""],["class","ant-breadcrumb-separator",4,"ngIf"],["nz-dropdown","",1,"ant-breadcrumb-overlay-link",3,"nzDropdownMenu"],[3,"ngTemplateOutlet"],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","down"],[1,"ant-breadcrumb-link"],[1,"ant-breadcrumb-separator"],[4,"nzStringTemplateOutlet"]],template:function(o,s){if(1&o&&(t.F$t(),t.YNc(0,p,4,3,"ng-container",0),t.YNc(1,a,2,0,"ng-template",null,1,t.W1O),t.YNc(3,u,2,1,"span",2)),2&o){const d=t.MAs(2);t.Q6J("ngIf",!!s.nzOverlay)("ngIfElse",d),t.xp6(3),t.Q6J("ngIf",s.nzBreadCrumbComponent.nzSeparator)}},directives:[g.O5,O.cm,g.tP,T.Ls,h.f],encapsulation:2,changeDetection:0}),e})(),v=(()=>{class e{constructor(o,s,d,M,f){this.injector=o,this.cdr=s,this.elementRef=d,this.renderer=M,this.directionality=f,this.nzAutoGenerate=!1,this.nzSeparator="/",this.nzRouteLabel="breadcrumb",this.nzRouteLabelFn=E=>E,this.breadcrumbs=[],this.dir="ltr",this.destroy$=new y.xQ,M.addClass(d.nativeElement,"ant-breadcrumb")}ngOnInit(){var o;this.nzAutoGenerate&&this.registerRouterChange(),null===(o=this.directionality.change)||void 0===o||o.pipe((0,z.R)(this.destroy$)).subscribe(s=>{this.dir=s,this.prepareComponentForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareComponentForRtl()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}navigate(o,s){s.preventDefault(),this.injector.get(m.F0).navigateByUrl(o)}registerRouterChange(){try{const o=this.injector.get(m.F0),s=this.injector.get(m.gz);o.events.pipe((0,D.h)(d=>d instanceof m.m2),(0,z.R)(this.destroy$),(0,I.O)(!0)).subscribe(()=>{this.breadcrumbs=this.getBreadcrumbs(s.root),this.cdr.markForCheck()})}catch(o){throw new Error(`${R.Bq} You should import RouterModule if you want to use 'NzAutoGenerate'.`)}}getBreadcrumbs(o,s="",d=[]){const M=o.children;if(0===M.length)return d;for(const f of M)if(f.outlet===m.eC){const E=f.snapshot.url.map(N=>N.path).filter(N=>N).join("/"),W=E?`${s}/${E}`:s,K=this.nzRouteLabelFn(f.snapshot.data[this.nzRouteLabel]);return E&&K&&d.push({label:K,params:f.snapshot.params,url:W}),this.getBreadcrumbs(f,W,d)}return d}prepareComponentForRtl(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-breadcrumb-rtl")}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(t.zs3),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(P.Is,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-breadcrumb"]],inputs:{nzAutoGenerate:"nzAutoGenerate",nzSeparator:"nzSeparator",nzRouteLabel:"nzRouteLabel",nzRouteLabelFn:"nzRouteLabelFn"},exportAs:["nzBreadcrumb"],features:[t._Bn([{provide:x,useExisting:e}])],ngContentSelectors:_,decls:2,vars:1,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"click"]],template:function(o,s){1&o&&(t.F$t(),t.Hsn(0),t.YNc(1,b,2,1,"ng-container",0)),2&o&&(t.xp6(1),t.Q6J("ngIf",s.nzAutoGenerate&&s.breadcrumbs.length))},directives:[S,g.O5,g.sg],encapsulation:2,changeDetection:0}),(0,n.gn)([(0,A.yF)()],e.prototype,"nzAutoGenerate",void 0),e})(),Q=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[g.ez,h.T,L.U8,U.e4,O.b1,T.PV],P.vT]}),e})()}}]); \ No newline at end of file diff --git a/server/public/assets/.sprockets-manifest-a2a9f5831b754f7fbb1f9f1d783a892d.json b/server/public/assets/.sprockets-manifest-c2c862ead934432a5866f837256834be.json similarity index 83% rename from server/public/assets/.sprockets-manifest-a2a9f5831b754f7fbb1f9f1d783a892d.json rename to server/public/assets/.sprockets-manifest-c2c862ead934432a5866f837256834be.json index c456c608f..cf5ae02ca 100644 --- a/server/public/assets/.sprockets-manifest-a2a9f5831b754f7fbb1f9f1d783a892d.json +++ b/server/public/assets/.sprockets-manifest-c2c862ead934432a5866f837256834be.json @@ -1 +1 @@ -{"files":{"trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css":{"logical_path":"trestle/admin.css","mtime":"2022-04-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+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-15T17:52:52+00:00","size":747545,"digest":"8594ac7ea23505e2c5096659c6f642c610d2ef126d8ba718c42067ccc6338c32","integrity":"sha256-hZSsfqI1BeLFCWZZxvZCxhDS7xJti6cYxCBnzMYzjDI="},"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js":{"logical_path":"trestle/admin.js","mtime":"2022-04-15T17:52:52+00:00","size":391334,"digest":"74a613c3a1dcc91bf57578762da604c78518fcd895484cfe783f77d90ef2f940","integrity":"sha256-dKYTw6HcyRv1dXh2LaYEx4UY/NiVSEz+eD932Q7y+UA="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2022-04-15T17:52:52+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2022-04-15T17:52:52+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2022-04-15T17:52:52+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2022-04-15T17:52:52+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2022-04-15T17:52:52+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2022-04-15T17:52:52+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css":{"logical_path":"trestle/theme.css","mtime":"2022-04-15T17:52:52+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+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-21T20:31:20+00:00","size":747545,"digest":"8594ac7ea23505e2c5096659c6f642c610d2ef126d8ba718c42067ccc6338c32","integrity":"sha256-hZSsfqI1BeLFCWZZxvZCxhDS7xJti6cYxCBnzMYzjDI="},"trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js":{"logical_path":"trestle/admin.js","mtime":"2022-04-21T20:31:20+00:00","size":391334,"digest":"74a613c3a1dcc91bf57578762da604c78518fcd895484cfe783f77d90ef2f940","integrity":"sha256-dKYTw6HcyRv1dXh2LaYEx4UY/NiVSEz+eD932Q7y+UA="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2022-04-21T20:31:20+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2022-04-21T20:31:20+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2022-04-21T20:31:20+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2022-04-21T20:31:20+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2022-04-21T20:31:20+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2022-04-21T20:31:20+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css":{"logical_path":"trestle/theme.css","mtime":"2022-04-21T20:31:20+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 77e25865da7c10048a76cf497fb3f93ff74db6f9..30e3720695774c5ebecff0294f3f3180976f48d5 100644 GIT binary patch delta 16 XcmZo+ZeeDZ@8)2T*q^wOy_OLGA{GQT delta 16 XcmZo+ZeeDZ@8)3mvLSLKdo3dXCzu5L diff --git a/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz b/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz index c9330207b8da78a7263e00d4b7530d7dadd57fc8..34a0489817b2b7ed92aa9a911fefb54d48def85b 100644 GIT binary patch delta 16 Xcmca)bIFEXzMF$VVt?XBc5gWVF)sx# delta 16 Xcmca)bIFEXzMF&L%ZA8}?A~$!Hn9ct diff --git a/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz b/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz index caf0e2ec09cad8681c322cde704231fdfbba6576..0264d17e36b0c4aa57bf2ddfd00f13af1642785c 100644 GIT binary patch delta 75 zcmWN_IRS$}002S0usk7r4PB(f!FfOm#a18yBdO_57fdRZ|USCy$mwS^k@DZH}1d@?*IS* delta 75 zcmWN_y8%N`067yF(&b7#J7;WYY(O literal 24 gcmb2|=3w};Au@@H`SGJikC+&&c85f=FfcFx0CZLeNB{r; diff --git a/server/public/assets/trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js.gz b/server/public/assets/trestle/admin-7e3a91a099266781feaf764e575c3f5eae961b616b07904fa27002eed3dd8a7b.js.gz index 8a85f63c954b56e2088ea3e999e15f4a94d5197f..c7dec8b7de110078ec079b98bfb650635970313d 100644 GIT binary patch delta 21 dcmbRDjcwjHHg@@L4hD(+iH+=A*%`%m0{~e92R#4) delta 21 dcmbRDjcwjHHg@@L4u&rqA{*JavNMYB1^{5w2m$~A diff --git a/server/public/assets/trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css.gz b/server/public/assets/trestle/admin-f4bdc69ba2cf44f66ae3ce32e487445370e53e4bf243a32c9a471cb83a00f7d3.css.gz index b7b5229f2af15799aadd1698c232ed987374a6ef..29a73ae9b281a1035099942c8ddbfb2e2ef8ffde 100644 GIT binary patch delta 18 acmeymi}~v=W_I~*4hD(+i5uDT?g9Wwd7?2N7KOk3HRGamr}j=c#b delta 27 jcmexxg#W`4es=k84u&rqA{*IT*%@2enYOYsXFdV|n=A?H 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 d802dcaa019804f9ebbe1fb8d68998d991cb7b35..39a662d46844191970f08fb4318d34f7cbab609b 100644 GIT binary patch delta 21 dcmex$nf2FYR(APr4hD(+iH+=A*%?1)0svz=2sZ!# delta 21 dcmex$nf2FYR(APr4u&rqA{*JavNL|p1ORIb2>bv5 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 7e14cd2bc934379040f59455231a3d5cde06a9db..34c803d9f432b4eb133be42384e0bd454ea412e8 100644 GIT binary patch delta 21 ccmexb%7 delta 21 dcmex7?2N7KOk3HR{ht8=KLsDcl6g diff --git a/server/public/assets/trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css.gz b/server/public/assets/trestle/theme-0e8695f699e90f102866f3444f5bed2d74af01039bdc68eb5031fcb20817623f.css.gz index 7e0a93fa31d6ba84938aa7922373f9d5b2e01999..31ed6c56e974aab404802f6abd0175ccb968dca9 100644 GIT binary patch delta 16 XcmbOzI8l&YzMF$VVt?XB_AU+pB}D{) delta 16 XcmbOzI8l&YzMF&L%ZA8}>|GoHD#ryy diff --git a/server/public/common.0319ec8b62184fc2.js b/server/public/common.0319ec8b62184fc2.js deleted file mode 100644 index 0ff843889..000000000 --- a/server/public/common.0319ec8b62184fc2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8592],{3384:(_,d,r)=>{r.d(d,{h:()=>f});var t=r(9808),s=r(647),l=r(5e3);let f=(()=>{class c{}return c.\u0275fac=function(e){return new(e||c)},c.\u0275mod=l.oAB({type:c}),c.\u0275inj=l.cJS({imports:[[t.ez,s.PV]]}),c})()},6064:(_,d,r)=>{r.d(d,{_:()=>l});var t=r(712),s=r(7905);class l extends s.nT{constructor(){super(s.yQ.EVIDENCE),this.validStates.set(t.kqt.Predictive,{entityType:t.kqt.Predictive,clinicalSignificance:[t._Aq.Sensitivityresponse,t._Aq.Resistance,t._Aq.AdverseResponse,t._Aq.ReducedSensitivity,t._Aq.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Diagnostic,{entityType:t.kqt.Diagnostic,clinicalSignificance:[t._Aq.Positive,t._Aq.Negative],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Prognostic,{entityType:t.kqt.Prognostic,clinicalSignificance:[t._Aq.BetterOutcome,t._Aq.PoorOutcome,t._Aq.Na],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Oncogenic,{entityType:t.kqt.Oncogenic,clinicalSignificance:[t._Aq.Na],entityDirection:[t.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Predisposing,{entityType:t.kqt.Predisposing,clinicalSignificance:[t._Aq.Na],entityDirection:[t.tI1.Na],requiresDisease:!0,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.kqt.Functional,{entityType:t.kqt.Functional,clinicalSignificance:[t._Aq.GainOfFunction,t._Aq.LossOfFunction,t._Aq.UnalteredFunction,t._Aq.Neomorphic,t._Aq.DominantNegative,t._Aq.Unknown],entityDirection:[t.tI1.Supports,t.tI1.DoesNotSupport],requiresDisease:!1,requiresDrug:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},1605:(_,d,r)=>{r.d(d,{e:()=>ee});var t=r(9808),s=r(4182),l=r(8776),f=r(3793),c=r(304),p=r(8054),e=r(5e3),v=r(1894),g=r(4546);let T=(()=>{class n{constructor(){console.log("FormCardDirective constructed.")}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275dir=e.lG2({type:n,selectors:[["",8,"cvc-form-card-control"]]}),n})();var y=r(7484),h=r(404);function u(n,i){1&n&&e._UZ(0,"i",7)}function A(n,i){if(1&n&&(e.TgZ(0,"nz-form-label",5),e._uU(1),e.YNc(2,u,1,0,"i",6),e.qZA()),2&n){const o=e.oxw();e.Q6J("nzRequired",o.to.required&&!0!==o.to.hideRequiredMarker)("nzFor",o.id),e.xp6(1),e.hij(" ",o.to.label," "),e.xp6(1),e.Q6J("ngIf",o.to.helpText)}}function z(n,i){if(1&n&&e._UZ(0,"formly-validation-message",9),2&n){const o=e.oxw(2);e.Q6J("field",o.field)}}function F(n,i){if(1&n&&e.YNc(0,z,1,1,"formly-validation-message",8),2&n){const o=e.oxw();e.Q6J("ngIf",o.showError)}}let O=(()=>{class n extends l.n2{constructor(){super()}get errorState(){return console.log(`form-card.wrapper showError: ${this.showError}`),this.showError?"error":""}ngOnInit(){}}return n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["form-card-wrapper"]],features:[e.qOj],decls:9,vars:4,consts:[[1,"cvc-form-card-control",3,"nzValidateStatus","nzErrorTip"],["nzSize","small","nzType","inner",3,"nzTitle","nzExtra"],["fieldComponent",""],["cardTitle",""],["cardExtra",""],[3,"nzRequired","nzFor"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText",4,"ngIf"],["nzType","question-circle","nzTheme","fill","nz-tooltip","","nzTooltipTitle","to.helpText"],[3,"field",4,"ngIf"],[3,"field"]],template:function(o,a){if(1&o&&(e.TgZ(0,"nz-form-item"),e.TgZ(1,"nz-form-control",0),e.TgZ(2,"nz-card",1),e.GkF(3,null,2),e.qZA(),e.YNc(5,A,3,4,"ng-template",null,3,e.W1O),e.YNc(7,F,1,1,"ng-template",null,4,e.W1O),e.qZA(),e.qZA()),2&o){const m=e.MAs(6),C=e.MAs(8);e.xp6(1),e.Q6J("nzValidateStatus",a.errorState)("nzErrorTip",C),e.xp6(1),e.Q6J("nzTitle",m)("nzExtra",C)}},directives:[v.SK,g.Nx,v.t3,g.Fd,T,y.bd,g.iK,t.O5,h.SY,l.u_],styles:["[_nghost-%COMP%]{display:block}.ant-form-item-label[_ngcontent-%COMP%]{padding:0}"],changeDetection:0}),n})();var q=r(647),D=r(5109);const M={wrappers:[{name:"form-card",component:O}]};let E=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.UX,g.U5,y.vh,q.PV,h.cg,l.X0.forChild(M),D.s]]}),n})();var N=r(8929),G=r(7625),L=r(373),J=r(4850),P=r(712),S=r(6949),x=r(8144),I=r(3618),U=r(3193),Q=r(8926);function V(n,i){if(1&n&&(e._UZ(0,"span",10),e.ALo(1,"highlightTypeahead")),2&n){const o=e.oxw().$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.label,a.to.searchString),e.oJD)}}function Z(n,i){if(1&n&&(e._UZ(0,"span",12),e.ALo(1,"highlightTypeahead")),2&n){const o=e.oxw(2).$implicit,a=e.oxw(3);e.Q6J("innerHtml",e.xi3(1,1,o.gene.geneAliases.join(", "),a.to.searchString),e.oJD)}}function R(n,i){1&n&&(e.ynx(0),e.YNc(1,Z,2,4,"span",11),e.BQk())}function W(n,i){if(1&n&&(e.TgZ(0,"nz-option",7),e.TgZ(1,"nz-space"),e.YNc(2,V,2,4,"span",8),e.YNc(3,R,2,0,"ng-container",9),e.qZA(),e.qZA()),2&n){const o=i.$implicit;e.Q6J("nzLabel",o.tooltip)("nzValue",o.gene),e.xp6(3),e.Q6J("ngIf",o.gene.geneAliases.length>0)}}function $(n,i){if(1&n&&(e.ynx(0),e._uU(1),e.ALo(2,"json"),e.YNc(3,W,4,3,"nz-option",6),e.BQk()),2&n){const o=i.ngrxLet;e.xp6(1),e.hij(" ",e.lcZ(2,2,o)," "),e.xp6(2),e.Q6J("ngForOf",o)}}function j(n,i){1&n&&e._uU(0," No gene found in CIViC that matches the string provided. ")}function B(n,i){if(1&n){const o=e.EpF();e.ynx(0),e.TgZ(1,"nz-select",2,3),e.NdJ("nzOnSearch",function(m){return e.CHM(o),e.oxw().to.onSearch(m)}),e.YNc(3,$,4,4,"ng-container",4),e.qZA(),e.YNc(4,j,1,0,"ng-template",null,5,e.W1O),e.BQk()}if(2&n){const o=e.MAs(5),a=e.oxw();e.xp6(1),e.Q6J("formControl",a.formControl)("formlyAttributes",a.field)("nzPlaceHolder",a.to.placeholder?a.to.placeholder:null)("nzNotFoundContent",o)("nzShowArrow",a.to.showArrow)("nzFilterOption",a.to.filterOption),e.xp6(2),e.Q6J("ngrxLet",a.genes$)}}function Y(n,i){if(1&n&&e._UZ(0,"cvc-gene-tag",13),2&n){const o=e.oxw();e.Q6J("gene",o.formControl.value)}}const w={name:"cvc-gene-input",component:(()=>{class n extends l.fS{constructor(o){super(),this.geneTypeaheadQuery=o,this.defaultOptions={templateOptions:{placeholder:"Search Genes",showArrow:!1,onSearch:()=>{},minLengthSearch:1,optionList:[]}},this.destroy$=new N.xQ}ngOnInit(){this.queryRef=this.geneTypeaheadQuery.watch({entrezSymbol:""}),this.genes$=this.queryRef.valueChanges.pipe((0,G.R)(this.destroy$),(0,L.j)("data","geneTypeahead"),(0,J.U)(o=>o.map(a=>{let m=a.geneAliases.length>0?`Aliases: ${a.geneAliases.join(", ")}`:"";return{value:a.id,tooltip:`${a.name} (${a.entrezId}) ${m}`,label:`${a.name} (${a.entrezId})`,gene:a}})))}ngAfterViewInit(){this.to.onSearch=o=>{o.length{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.UX,S.WG,l.X0.forChild({types:[w]}),p.LV,x.zf,I.ZJ,H.U,X.s]]}),n})();var k=r(8390);const b={name:"gene-array",extends:"multi-field",wrappers:["form-field"],defaultOptions:{templateOptions:{label:"Gene",helpText:"Entrez Gene name (e.g. BRAF). Gene name must be known to the Entrez database.",required:!1,addText:"Specify a Gene"},fieldArray:{type:"cvc-gene-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"Evidence requires that a Gene be specified."}}}};let ee=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[t.ez,s.u5,s.UX,p.LV,c.F,f.F,l.X0.forChild({types:[b]}),K,k.N,E]]}),n})()},1270:(_,d,r)=>{r.d(d,{i:()=>h});var t=r(9808),s=r(4182),l=r(8776),f=r(3793),c=r(304),p=r(8054),e=r(3773),v=r(8390);const T={name:"source-array",extends:"multi-field",defaultOptions:{templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",required:!1,addText:"Specify a Source"},fieldArray:{type:"source-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"A Source is required."}}}};var y=r(5e3);let h=(()=>{class u{}return u.\u0275fac=function(z){return new(z||u)},u.\u0275mod=y.oAB({type:u}),u.\u0275inj=y.cJS({imports:[[t.ez,s.u5,s.UX,p.LV,c.F,f.F,l.X0.forChild({types:[T]}),e.g,v.N]]}),u})()}}]); \ No newline at end of file diff --git a/server/public/common.55d0537dd4fa5d5b.js b/server/public/common.55d0537dd4fa5d5b.js new file mode 100644 index 000000000..1191904cc --- /dev/null +++ b/server/public/common.55d0537dd4fa5d5b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8592],{3384:(p,i,t)=>{t.d(i,{h:()=>_});var n=t(9808),a=t(647),l=t(5e3);let _=(()=>{class s{}return s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=l.oAB({type:s}),s.\u0275inj=l.cJS({imports:[[n.ez,a.PV]]}),s})()},7893:(p,i,t)=>{t.d(i,{z:()=>z});var n=t(5e3),a=t(1894),l=t(5249),_=t(647),s=t(9808);function d(e,o){1&e&&n._UZ(0,"i",15)}function u(e,o){1&e&&n._UZ(0,"i",16)}function m(e,o){1&e&&n._UZ(0,"i",17)}function C(e,o){1&e&&n._UZ(0,"i",18)}function r(e,o){1&e&&n._UZ(0,"i",19)}let z=(()=>{class e{constructor(){}}return e.\u0275fac=function(v){return new(v||e)},e.\u0275cmp=n.Xpm({type:e,selectors:[["cvc-stats-card"]],inputs:{stats:"stats",header:"header"},decls:38,vars:32,consts:[["nzGutter","8"],["nzFlex","1"],["nzTitle","Evidence Submitted",3,"nzValue","nzPrefix"],["nzTitle","Evidence Accepted",3,"nzValue","nzPrefix"],["evidenceIcon",""],["nzTitle","Assertions Submitted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Accepted",3,"nzValue","nzPrefix"],["assertionIcon",""],["nzTitle","Revisions Suggested",3,"nzValue","nzPrefix"],["nzTitle","Revisions Applied",3,"nzValue","nzPrefix"],["revisionIcon",""],["nzTitle","Comments",3,"nzValue","nzPrefix"],["commentIcon",""],["nzTitle","Sources Suggested",3,"nzValue","nzPrefix"],["sourceIcon",""],["nz-icon","","nzType","civic:evidence"],["nz-icon","","nzType","civic:assertion"],["nz-icon","","nzType","civic:revision"],["nz-icon","","nzType","civic:comment"],["nz-icon","","nzType","civic:source"]],template:function(v,c){if(1&v&&(n.TgZ(0,"nz-row",0),n.TgZ(1,"nz-col",1),n._UZ(2,"nz-statistic",2),n.ALo(3,"number"),n.qZA(),n.TgZ(4,"nz-col",1),n._UZ(5,"nz-statistic",3),n.ALo(6,"number"),n.qZA(),n.qZA(),n.TgZ(7,"nz-row"),n.YNc(8,d,1,0,"ng-template",null,4,n.W1O),n.TgZ(10,"nz-col",1),n._UZ(11,"nz-statistic",5),n.ALo(12,"number"),n.qZA(),n.TgZ(13,"nz-col",1),n._UZ(14,"nz-statistic",6),n.ALo(15,"number"),n.qZA(),n.YNc(16,u,1,0,"ng-template",null,7,n.W1O),n.qZA(),n.TgZ(18,"nz-row",0),n.TgZ(19,"nz-col",1),n._UZ(20,"nz-statistic",8),n.ALo(21,"number"),n.qZA(),n.TgZ(22,"nz-col",1),n._UZ(23,"nz-statistic",9),n.ALo(24,"number"),n.qZA(),n.qZA(),n.TgZ(25,"nz-row"),n.YNc(26,m,1,0,"ng-template",null,10,n.W1O),n.TgZ(28,"nz-col",1),n._UZ(29,"nz-statistic",11),n.ALo(30,"number"),n.YNc(31,C,1,0,"ng-template",null,12,n.W1O),n.qZA(),n.TgZ(33,"nz-col",1),n._UZ(34,"nz-statistic",13),n.ALo(35,"number"),n.qZA(),n.YNc(36,r,1,0,"ng-template",null,14,n.W1O),n.qZA()),2&v){const g=n.MAs(9),f=n.MAs(17),A=n.MAs(27),E=n.MAs(32),P=n.MAs(37);n.xp6(2),n.Q6J("nzValue",n.lcZ(3,16,c.stats.submittedEvidenceItems))("nzPrefix",g),n.xp6(3),n.Q6J("nzValue",n.lcZ(6,18,c.stats.acceptedEvidenceItems))("nzPrefix",g),n.xp6(6),n.Q6J("nzValue",n.lcZ(12,20,c.stats.submittedAssertions))("nzPrefix",f),n.xp6(3),n.Q6J("nzValue",n.lcZ(15,22,c.stats.acceptedAssertions))("nzPrefix",f),n.xp6(6),n.Q6J("nzValue",n.lcZ(21,24,c.stats.revisions))("nzPrefix",A),n.xp6(3),n.Q6J("nzValue",n.lcZ(24,26,c.stats.appliedRevisions))("nzPrefix",A),n.xp6(6),n.Q6J("nzValue",n.lcZ(30,28,c.stats.comments))("nzPrefix",E),n.xp6(5),n.Q6J("nzValue",n.lcZ(35,30,c.stats.suggestedSources))("nzPrefix",P)}},directives:[a.SK,a.t3,l.my,_.Ls],pipes:[s.JJ],styles:["[_nghost-%COMP%]{display:block}h5[_ngcontent-%COMP%]{font-weight:400}"]}),e})()},5013:(p,i,t)=>{t.d(i,{C:()=>C});var n=t(9808),a=t(6949),l=t(5249),_=t(1894),s=t(7484),d=t(3618),u=t(647),m=t(5e3);let C=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=m.oAB({type:r}),r.\u0275inj=m.cJS({imports:[[n.ez,a.WG,l.A2,d.ZJ,u.PV,_.Jb,s.vh]]}),r})()},3077:(p,i,t)=>{function n(a){return void 0!==a}t.d(i,{$:()=>n})},1270:(p,i,t)=>{t.d(i,{i:()=>e});var n=t(9808),a=t(4182),l=t(8776),_=t(3793),s=t(304),d=t(8054),u=t(3773),m=t(8390);const r={name:"source-array",extends:"multi-field",defaultOptions:{templateOptions:{label:"Source",helpText:"CIViC accepts PubMed or ASCO Abstracts sources. Please provide the source of the support for your evidence here.",required:!1,addText:"Specify a Source"},fieldArray:{type:"source-input",templateOptions:{required:!1}},defaultValue:[],validation:{messages:{required:()=>"A Source is required."}}}};var z=t(5e3);let e=(()=>{class o{}return o.\u0275fac=function(c){return new(c||o)},o.\u0275mod=z.oAB({type:o}),o.\u0275inj=z.cJS({imports:[[n.ez,a.u5,a.UX,d.LV,s.F,_.F,l.X0.forChild({types:[r]}),u.g,m.N]]}),o})()}}]); \ No newline at end of file diff --git a/server/public/index.html b/server/public/index.html index bdfe54410..584b2cca9 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -17,6 +17,6 @@ - + \ No newline at end of file diff --git a/server/public/runtime.357163170600c313.js b/server/public/runtime.357163170600c313.js deleted file mode 100644 index acb3073c4..000000000 --- a/server/public/runtime.357163170600c313.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:"3d646ddc99c4c619",305:"7761f97c55835182",376:"7d40cc5e50ad1ea4",392:"a049a6aab72fd2be",535:"41583e85177a9773",605:"0b7e1919acad6432",681:"fd75ff06f6af80e6",775:"703c42969bc547c0",885:"038dbdc7f60cc99d",1457:"34c1b62d4d2a7ed2",1679:"15e17716906d9cee",1750:"b0ea79b059437bc7",2033:"2d510737855042ae",2043:"b51aa809e339fb1c",2395:"cf23fdf75c9e11a1",2738:"9e4f1b8d15d1377a",2826:"58d99e896f2f009b",3073:"2c9b479fe3dca9f8",3074:"57e66fe8a4d34a20",3218:"3731c8d463d43cf4",3438:"f54dc1103b98eab1",3482:"c177e566185e6af0",3501:"b1fe2600e6217dad",3648:"d223006cdec265b2",3730:"8e411410b404acd9",3883:"ab7362dab83f2219",3894:"f1b117e8387ec68f",4024:"a4fa77c625077d76",4038:"65b27aab267b3352",4276:"bc012717d8d8d96c",4456:"ed35e07eb1aca6a2",4579:"221a4086674a9f5c",4584:"cd2fc068f9edf75f",4658:"5c85d7945136a277",4721:"785031df1f100b85",4729:"2c38846785e7bfbe",5193:"079fc90b586abf32",5291:"95fc472ce90a140e",5632:"b8b7a0d1b028a7da",5787:"6afd9133542c6e90",6256:"28967a1cf9c2f744",6519:"1d5c16c3070e7e7b",6875:"9a3f371a86467784",7012:"25a2cf60fc1238c7",7064:"584260498fd7f7a1",7259:"3d0ae570e3bb4dac",7559:"f5b2e5993b711209",7717:"024a94582ab85a95",7893:"09cc89d441456629",8422:"9ef4ed82da73f04e",8482:"97546a52cadedf70",8571:"600728d2995f4bfc",8592:"0319ec8b62184fc2",9001:"daebebd640fff864",9020:"d6f9f3844668aecf",9286:"c7abe2ed687cd15f",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{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var r=m[e]={exports:{}};return v[e](r,r.exports,a),r.exports}a.m=v,e=[],a.O=(t,r,c,b)=>{if(!r){var d=1/0;for(f=0;f=b)&&Object.keys(a.O).every(p=>a.O[p](r[n]))?r.splice(n--,1):(u=!1,b0&&e[f-1][2]>b;f--)e[f]=e[f-1];e[f]=[r,c,b]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,r)=>(a.f[r](e,t),t),[])),a.u=e=>(8592===e?"common":e)+"."+{55:"fc7e72e0ab03da36",97:"7a8999992d81e2ee",305:"f91158a332d4d0d4",376:"7d40cc5e50ad1ea4",392:"a049a6aab72fd2be",605:"d98f2530a9774915",681:"d79a1e74bccada70",727:"5a1e80c4ce38da78",775:"703c42969bc547c0",885:"525cb55bc6565cb0",1750:"b0ea79b059437bc7",2033:"abad74827f0132b1",2043:"294d549568ae5d6d",2678:"e50a54105c5ce057",2808:"3a70df74963ca49b",2826:"eac4a45bf8e1c8e4",2868:"d121584480913025",2869:"22a724c91b87f846",3438:"245d0c1d12bdb2e1",3883:"0f3bb9c091de4aa0",3894:"f1b117e8387ec68f",4024:"792bb338f6b4c905",4028:"b00446bf886b8fd8",4038:"fe3013a5e2c513ca",4184:"d395d52a99d5b071",4189:"00a59016128bd7b3",4233:"113cf0343a1183bf",4355:"dc3b99721f40c486",4456:"d2c1926c2bdf29d4",4579:"ce3e7d2abb9eb0af",4726:"9630e9511479c70a",5193:"df16b16f719a127b",5291:"c566178f1d8384f2",5839:"fe88ba0e4fbacb4f",6029:"1d7dafd8569c5ba1",6104:"8b0d7d3bb56d76af",6256:"28967a1cf9c2f744",6315:"856b0cbb6373b47c",6724:"28fb476550103940",7012:"2a1cc8debc733727",7064:"7606e873f17e97fe",7259:"563c8b9535549ea4",7717:"024a94582ab85a95",7893:"02d718d842625d7f",8369:"1028ace99d0611b6",8383:"4d2ba45ed8971969",8482:"c5c92b5b0a05c813",8486:"0c1b874a6e4ef27e",8533:"7ecc98aa50eefef8",8571:"db773ad23e0832c5",8592:"55d0537dd4fa5d5b",8829:"8142f4f45cfadcb2",9001:"bb98352d0a59ac1d",9039:"29f14b8e9cf1f2cc",9286:"39b29561f080cec3",9716:"4015cbaed1ef29e7",9750:"b4db36eb30066666"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(r,c,b,f)=>{if(e[r])e[r].push(c);else{var d,u;if(void 0!==b)for(var n=document.getElementsByTagName("script"),o=0;o{d.onerror=d.onload=null,clearTimeout(s);var _=e[r];if(delete e[r],d.parentNode&&d.parentNode.removeChild(d),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=l.bind(null,d.onerror),d.onload=l.bind(null,d.onload),u&&document.head.appendChild(d)}}})(),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:r=>r},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(t))})(),a.p="",(()=>{var e={3666:0};a.f.j=(c,b)=>{var f=a.o(e,c)?e[c]:void 0;if(0!==f)if(f)b.push(f[2]);else if(3666!=c){var d=new Promise((i,l)=>f=e[c]=[i,l]);b.push(f[2]=d);var u=a.p+a.u(c),n=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(f=e[c])&&(e[c]=void 0),f)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;n.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",n.name="ChunkLoadError",n.type=l,n.request=s,f[1](n)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,b)=>{var n,o,[f,d,u]=b,i=0;if(f.some(s=>0!==e[s])){for(n in d)a.o(d,n)&&(a.m[n]=d[n]);if(u)var l=u(a)}for(c&&c(b);i