@sjcrh/proteinpaint-client 2.226.0 → 2.227.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (949) hide show
  1. package/dist/2dmaf-75YAQQ3P.js +1362 -0
  2. package/dist/AggMatrixInput-KYDS23KP.js +402 -0
  3. package/dist/AggregateMatrix-XGGF6KBX.js +37 -0
  4. package/dist/AppHeader-CNY5RTJN.js +826 -0
  5. package/dist/BoxPlot-OQIJJO66.js +1247 -0
  6. package/dist/CorrelationVolcano-QN5D37V7.js +613 -0
  7. package/dist/CorrelationVolcano-QN5D37V7.js.map +7 -0
  8. package/dist/Cuminc-J6DONJTA.js +1217 -0
  9. package/dist/DE-XUBJUUBB.js +85 -0
  10. package/dist/DEinput-DCOPTSWO.js +483 -0
  11. package/dist/DEinput-DCOPTSWO.js.map +7 -0
  12. package/dist/DM-2UUXUJOC.js +86 -0
  13. package/dist/DifferentialAnalysis-U6ZPFHNM.js +236 -0
  14. package/dist/Disco-RR2NN66T.js +3445 -0
  15. package/dist/Disco.UI-MQ7WZQOP.js +239 -0
  16. package/dist/DmrPlot-MKAKFUJR.js +366 -0
  17. package/dist/GB-2X3ZRFXN.js +1388 -0
  18. package/dist/GB-2X3ZRFXN.js.map +7 -0
  19. package/dist/GSEA-DTIA4MNS.js +870 -0
  20. package/dist/GeneExpInput-4GM5MBBX.js +38 -0
  21. package/dist/Geomap-FF6DBN7M.js +80 -0
  22. package/dist/HicApp-LGXNL36X.js +2240 -0
  23. package/dist/IDCViewer-FQABJNUI.js +10810 -0
  24. package/dist/NumBinaryEditor-7NOHUH76.js +274 -0
  25. package/dist/NumBinaryEditor.unit.spec-SVE5SZYB.js +308 -0
  26. package/dist/NumContEditor-MSWCQUKL.js +100 -0
  27. package/dist/NumContEditor.unit.spec-UFPASWBH.js +160 -0
  28. package/dist/NumCustomBinEditor-DF24SO2N.js +29 -0
  29. package/dist/NumCustomBinEditor.unit.spec-N3S3ROBI.js +393 -0
  30. package/dist/NumDiscreteEditor-HL257XGY.js +165 -0
  31. package/dist/NumDiscreteEditor.unit.spec-6PTPX547.js +229 -0
  32. package/dist/NumRegularBinEditor-EWCKTXWY.js +29 -0
  33. package/dist/NumRegularBinEditor.unit.spec-AMGPMY7U.js +274 -0
  34. package/dist/NumSplineEditor-YDNJ2DW2.js +205 -0
  35. package/dist/NumSplineEditor.unit.spec-L4JZ3OND.js +220 -0
  36. package/dist/NumericDensity-SQW67WKL.js +29 -0
  37. package/dist/NumericDensity.unit.spec-KBK3JZZG.js +414 -0
  38. package/dist/NumericHandler-HG7FK4D4.js +30 -0
  39. package/dist/NumericHandler.unit.spec-N7PYAGGF.js +225 -0
  40. package/dist/ProteomeInput-6XGREJFP.js +610 -0
  41. package/dist/Regression-4DDXNQNO.js +1412 -0
  42. package/dist/RunChart2-ARCUC4Z3.js +744 -0
  43. package/dist/SC-AV6COOPI.js +1290 -0
  44. package/dist/Violin-2P5I6NL5.js +1105 -0
  45. package/dist/Volcano-TZQF3HY6.js +2745 -0
  46. package/dist/Volcano-TZQF3HY6.js.map +7 -0
  47. package/dist/Wsi-KN26SIP3.js +650 -0
  48. package/dist/Wsi-KN26SIP3.js.map +7 -0
  49. package/dist/aboutSunburst-V557OK5L.js +93 -0
  50. package/dist/adSandbox-76PMWKTX.js +29 -0
  51. package/dist/animatedBubbleChart-CFRJJDAC.js +542 -0
  52. package/dist/app-2SUVPURX.js +38 -0
  53. package/dist/app-PR42RXHC.js +28 -0
  54. package/dist/app.js +12 -12
  55. package/dist/bam-AYHWKHXL.js +872 -0
  56. package/dist/barchart-S4CLMJO7.js +38 -0
  57. package/dist/barchart2-R2BGA2WO.js +305 -0
  58. package/dist/block-QKO2PO4A.js +6208 -0
  59. package/dist/block-QKO2PO4A.js.map +7 -0
  60. package/dist/block.init-SSWOFFJR.js +29 -0
  61. package/dist/block.mds.expressionrank-GJBLSUUM.js +350 -0
  62. package/dist/block.mds.geneboxplot-SAAU4OH5.js +819 -0
  63. package/dist/block.mds.junction-IIZPRLPH.js +1534 -0
  64. package/dist/block.mds.svcnv-KOG7O25F.js +6325 -0
  65. package/dist/block.svg-5GJ744H3.js +155 -0
  66. package/dist/block.tk.aicheck-CTIJCHIC.js +274 -0
  67. package/dist/block.tk.bam-RTB7C6CW.js +1906 -0
  68. package/dist/block.tk.bigwig.ui-OJVOCOWS.js +202 -0
  69. package/dist/block.tk.hicstraw-GUE6G2DA.js +814 -0
  70. package/dist/block.tk.junction-XILEKNJY.js +2353 -0
  71. package/dist/block.tk.junction.textmatrixui-OF6BW6OY.js +190 -0
  72. package/dist/block.tk.ld-QZVJUGZU.js +90 -0
  73. package/dist/block.tk.menu-B2NV6ZX3.js +1050 -0
  74. package/dist/block.tk.pgv-46OQHX7S.js +934 -0
  75. package/dist/brainImaging-TWTGRSHJ.js +550 -0
  76. package/dist/brainRegions-YTTLJMBU.js +213 -0
  77. package/dist/bubbleHeatmap-OZVG67KF.js +374 -0
  78. package/dist/bubbleHeatmap-OZVG67KF.js.map +7 -0
  79. package/dist/cellTypeBubbleHeatmap-4QFAAED5.js +274 -0
  80. package/dist/cellTypeBubbleHeatmap-4QFAAED5.js.map +7 -0
  81. package/dist/chunk-255OQYGC.js +267 -0
  82. package/dist/chunk-2B3CYHUF.js +30 -0
  83. package/dist/chunk-2BXMWQTJ.js +1339 -0
  84. package/dist/chunk-2E3AJFOA.js +550 -0
  85. package/dist/chunk-2IAELUCN.js +348 -0
  86. package/dist/chunk-2W6U53AG.js +195 -0
  87. package/dist/chunk-3R6VYZYB.js +96 -0
  88. package/dist/chunk-3YAQY5NZ.js +626 -0
  89. package/dist/chunk-52WVSXYC.js +305 -0
  90. package/dist/chunk-6CQ5ADIY.js +56 -0
  91. package/dist/chunk-6UHSGC6G.js +276 -0
  92. package/dist/chunk-6YRM7Z4F.js +4521 -0
  93. package/dist/chunk-6YRM7Z4F.js.map +7 -0
  94. package/dist/chunk-7E37WMAX.js +141 -0
  95. package/dist/chunk-7EP77LOA.js +194 -0
  96. package/dist/chunk-7LJ4LTD6.js +54 -0
  97. package/dist/chunk-7MEBMH77.js +14 -0
  98. package/dist/chunk-7NVFEGCE.js +30 -0
  99. package/dist/chunk-A52K2E32.js +340 -0
  100. package/dist/chunk-A6DDXPLN.js +961 -0
  101. package/dist/chunk-A6DDXPLN.js.map +7 -0
  102. package/dist/chunk-A7UNLPQQ.js +243 -0
  103. package/dist/chunk-BH4KIOUQ.js +480 -0
  104. package/dist/chunk-CFYWQJ7F.js +472 -0
  105. package/dist/chunk-CFYWQJ7F.js.map +7 -0
  106. package/dist/chunk-CG2H6EFQ.js +55 -0
  107. package/dist/chunk-CNDQFKUB.js +468 -0
  108. package/dist/chunk-CVLHDO2O.js +2685 -0
  109. package/dist/chunk-CVRTDBLZ.js +2008 -0
  110. package/dist/chunk-CXCAQOFB.js +26888 -0
  111. package/dist/chunk-CXCAQOFB.js.map +7 -0
  112. package/dist/chunk-DMG4ZMX5.js +830 -0
  113. package/dist/chunk-DMG4ZMX5.js.map +7 -0
  114. package/dist/chunk-DYX6B6RN.js +328 -0
  115. package/dist/chunk-FA2B6PKK.js +42 -0
  116. package/dist/chunk-FA6M7PSZ.js +134 -0
  117. package/dist/chunk-FCQPQD7Z.js +181 -0
  118. package/dist/chunk-FCQPQD7Z.js.map +7 -0
  119. package/dist/chunk-FF4J6QSF.js +240 -0
  120. package/dist/chunk-FYHUHKUC.js +6375 -0
  121. package/dist/chunk-G3CJDTG4.js +48 -0
  122. package/dist/chunk-HRD5MN33.js +1219 -0
  123. package/dist/chunk-HRD5MN33.js.map +7 -0
  124. package/dist/chunk-ILAYJZBC.js +184 -0
  125. package/dist/chunk-IT7EE7LY.js +2334 -0
  126. package/dist/chunk-JG5CF5Q3.js +397 -0
  127. package/dist/chunk-JI632MAR.js +400 -0
  128. package/dist/chunk-JI632MAR.js.map +7 -0
  129. package/dist/chunk-L3ORR2TC.js +2799 -0
  130. package/dist/chunk-L6BT6WZP.js +54 -0
  131. package/dist/chunk-LF2DWEKN.js +255 -0
  132. package/dist/chunk-MJZ66SUG.js +35 -0
  133. package/dist/chunk-N5T7TT5H.js +56 -0
  134. package/dist/chunk-NB4C446B.js +299 -0
  135. package/dist/chunk-NJYYF2LF.js +263 -0
  136. package/dist/chunk-NMVEXITA.js +379 -0
  137. package/dist/chunk-NS2H3C6X.js +182 -0
  138. package/dist/chunk-O7346S3P.js +1253 -0
  139. package/dist/chunk-OV3W5AMN.js +103 -0
  140. package/dist/chunk-PQDYA3ZQ.js +274 -0
  141. package/dist/chunk-QFRR3ZRE.js +466 -0
  142. package/dist/chunk-QLKEA3WE.js +102 -0
  143. package/dist/chunk-QM7CXRSF.js +96 -0
  144. package/dist/chunk-QV6VZLS5.js +2932 -0
  145. package/dist/chunk-RTE32A22.js +123 -0
  146. package/dist/chunk-RUFY5VCS.js +161 -0
  147. package/dist/chunk-RUFY5VCS.js.map +7 -0
  148. package/dist/chunk-SB5DR4NL.js +562 -0
  149. package/dist/chunk-SCATA75L.js +100 -0
  150. package/dist/chunk-SCATA75L.js.map +7 -0
  151. package/dist/chunk-SDUMZTIK.js +2095 -0
  152. package/dist/chunk-TIU2GGWN.js +5258 -0
  153. package/dist/chunk-TIU2GGWN.js.map +7 -0
  154. package/dist/chunk-TYLCIGGN.js +296 -0
  155. package/dist/chunk-UHZDDPUU.js +444 -0
  156. package/dist/chunk-UW6GRHZ4.js +516 -0
  157. package/dist/chunk-UYA5LCAR.js +281 -0
  158. package/dist/chunk-V7CB5D7A.js +50 -0
  159. package/dist/chunk-VBUDRJJG.js +203 -0
  160. package/dist/chunk-VVWZ4BOI.js +2349 -0
  161. package/dist/chunk-W3K3N275.js +418 -0
  162. package/dist/chunk-WENNRY5E.js +170 -0
  163. package/dist/chunk-Z4R7TCTB.js +257 -0
  164. package/dist/chunk-ZFNEHOW4.js +848 -0
  165. package/dist/chunk-ZLEGHQOO.js +217 -0
  166. package/dist/cohort-TLSGXKV5.js +66 -0
  167. package/dist/cohortSunburst-TNMXPHJW.js +402 -0
  168. package/dist/condition-NN7YK7AI.js +323 -0
  169. package/dist/controls-472G34VU.js +30 -0
  170. package/dist/controls.config-2BQ7QYOB.js +30 -0
  171. package/dist/correlation-5UPYEHC6.js +91 -0
  172. package/dist/customdata.inputui-EWYP4MRY.js +280 -0
  173. package/dist/dataDownload-X5UXBEK4.js +326 -0
  174. package/dist/databrowser.ui-PFHJKHIW.js +424 -0
  175. package/dist/dictionary-M2MCNRN2.js +109 -0
  176. package/dist/dnaMethylation-A7AWG2P5.js +29 -0
  177. package/dist/dnaMethylation.integration.spec-JWCMRFAM.js +194 -0
  178. package/dist/dnaMethylation.unit.spec-PIVJBW7Z.js +95 -0
  179. package/dist/dofetch-XID2XEJT.js +49 -0
  180. package/dist/e2pca-VJRNE6BU.js +340 -0
  181. package/dist/ep-BZE65IX2.js +1247 -0
  182. package/dist/expclust.gdc.spec-5BGBANUV.js +298 -0
  183. package/dist/facet-RXUO4LRY.js +556 -0
  184. package/dist/gb-NDRFDS5A.js +77 -0
  185. package/dist/geneExpClustering-ONJGTSGM.js +240 -0
  186. package/dist/geneExpression-NXDXXKEA.js +309 -0
  187. package/dist/geneExpression-PYI42HV6.js +29 -0
  188. package/dist/geneExpression.unit.spec-PTFHHTP7.js +150 -0
  189. package/dist/geneORA-SDR43UOL.js +269 -0
  190. package/dist/geneRanking-QI43IRNV.js +544 -0
  191. package/dist/geneVariant-OT4V554H.js +32 -0
  192. package/dist/geneVariant-V7EKM7RW.js +289 -0
  193. package/dist/geneVariant-V7EKM7RW.js.map +7 -0
  194. package/dist/geneVariant.integration.spec-6OE4HKYB.js +672 -0
  195. package/dist/genefusion.ui-IQDKCZPX.js +299 -0
  196. package/dist/geneset-TLZPZOQP.js +199 -0
  197. package/dist/genomeBrowser.spec-HIOTFKFK.js +272 -0
  198. package/dist/grin2-G2PVFRKR.js +945 -0
  199. package/dist/grin2-RJQZRVFF.js +66 -0
  200. package/dist/hierCluster-C6ICZSOB.js +51 -0
  201. package/dist/hierCluster-MESFVAO7.js +55 -0
  202. package/dist/hierCluster.config-7HROWR2T.js +32 -0
  203. package/dist/hierCluster.integration.spec-CJT22MJI.js +479 -0
  204. package/dist/hierCluster.interactivity-MDX5QSEF.js +45 -0
  205. package/dist/hierCluster.renderers-SU5IYI33.js +18 -0
  206. package/dist/imagePlot-3Y5FNIJL.js +152 -0
  207. package/dist/importPlot-WE5QSSFY.js +8 -0
  208. package/dist/isoformExpression-TMLFOZVK.js +31 -0
  209. package/dist/isoformExpression.unit.spec-MSVTQC3E.js +233 -0
  210. package/dist/junction-YKZV4LEL.js +32 -0
  211. package/dist/junction.unit.spec-3GPBCHXJ.js +224 -0
  212. package/dist/junction.unit.spec-3GPBCHXJ.js.map +7 -0
  213. package/dist/launch.adhoc-DS6UME2S.js +33 -0
  214. package/dist/leftlabel.sample-F6TEFWEW.js +260 -0
  215. package/dist/leftlabel.sample-F6TEFWEW.js.map +7 -0
  216. package/dist/lollipop-ZKDAU3O5.js +162 -0
  217. package/dist/maf-DKOORWGV.js +451 -0
  218. package/dist/maftimeline-EHJ2CWJJ.js +583 -0
  219. package/dist/matrix-7JDLGNU7.js +55 -0
  220. package/dist/matrix-EB7YOLMN.js +50 -0
  221. package/dist/matrix.cells-A5E63KDN.js +25 -0
  222. package/dist/matrix.config-GSW2WJM4.js +33 -0
  223. package/dist/matrix.data-R4FW2PQH.js +22 -0
  224. package/dist/matrix.groups-3UH2KOIY.js +25 -0
  225. package/dist/matrix.integration.spec-R32TIABT.js +3156 -0
  226. package/dist/matrix.interactivity-RDPMBDVK.js +33 -0
  227. package/dist/matrix.layout-FD275D3P.js +35 -0
  228. package/dist/matrix.legend-SE7SQTNN.js +19 -0
  229. package/dist/matrix.renderers-RK2BRCHZ.js +30 -0
  230. package/dist/matrix.serieses-BEZCQDLJ.js +18 -0
  231. package/dist/matrix.sort-KRNS4VPF.js +25 -0
  232. package/dist/matrix.sort.unit.spec-LZG3GOXM.js +464 -0
  233. package/dist/matrix.sorterUi.unit.spec-RR2KK4R5.js +334 -0
  234. package/dist/matrix.unit.spec-3PK6LUNE.js +146 -0
  235. package/dist/mavb-CUPAESFH.js +726 -0
  236. package/dist/mds.samplescatterplot-WGQ7A7UC.js +1545 -0
  237. package/dist/mds.survivalplot-ZEGSEJO2.js +472 -0
  238. package/dist/multivalue-DKUQCROX.js +79 -0
  239. package/dist/numericDictTermCluster-IFIEM3E4.js +62 -0
  240. package/dist/oncomatrix-WSPJAWHW.js +286 -0
  241. package/dist/oncomatrix.spec-LDWTZ7LO.js +439 -0
  242. package/dist/plot.2dvaf-N333YSMC.js +368 -0
  243. package/dist/plot.app-HU5RQS5I.js +32 -0
  244. package/dist/plot.barplot-4T2UEIYX.js +93 -0
  245. package/dist/plot.boxplot-C4OXCRFB.js +142 -0
  246. package/dist/plot.brainImaging-A6FEKFEA.js +51 -0
  247. package/dist/plot.disco-VDL7YKRX.js +100 -0
  248. package/dist/plot.ssgq-OII7PFPG.js +130 -0
  249. package/dist/plot.vaf2cov-RZ5JPWMC.js +249 -0
  250. package/dist/polar2-6KR2KX5D.js +228 -0
  251. package/dist/profileForms-YJDJIBSY.js +937 -0
  252. package/dist/profilePlot-U4U4AYMO.js +45 -0
  253. package/dist/proteinView-F5QEDDWR.js +1346 -0
  254. package/dist/proteinView-F5QEDDWR.js.map +7 -0
  255. package/dist/proteomeCohortCompare-QCXKLAWG.js +866 -0
  256. package/dist/pseudbulk.unit.spec-3A2FWQZI.js +82 -0
  257. package/dist/pseudobulk-WB6NXFJ6.js +31 -0
  258. package/dist/qualitative-CQUBCCGT.js +34 -0
  259. package/dist/qualitative-QQ3CWFVP.js +241 -0
  260. package/dist/radar2-FNC67FNX.js +323 -0
  261. package/dist/radarFacility2-3X77B4WP.js +331 -0
  262. package/dist/render-G5NCZTMW.js +29 -0
  263. package/dist/report-CR645KQ4.js +213 -0
  264. package/dist/sampleView-6PG2HJZL.js +39 -0
  265. package/dist/samplelst-FCQ7YPPQ.js +114 -0
  266. package/dist/samplematrix-GXMN5QTS.js +2188 -0
  267. package/dist/sc-4ZTSQOXC.js +77 -0
  268. package/dist/scatter-2PUQU22I.js +84 -0
  269. package/dist/scatter-ZSZTA37T.js +919 -0
  270. package/dist/selectGenomeWithTklst-XHWBEM2G.js +125 -0
  271. package/dist/singleCellCellType-NP7Y4N6Z.js +29 -0
  272. package/dist/singleCellCellType.unit.spec-5I3FECB4.js +150 -0
  273. package/dist/singleCellGeneExpression-7RWH633E.js +29 -0
  274. package/dist/singleCellGeneExpression.unit.spec-2X2BDTNO.js +144 -0
  275. package/dist/singleCellNumericValue-I6V4ME6T.js +29 -0
  276. package/dist/singleCellNumericValue.unit.spec-4HKAJXB3.js +412 -0
  277. package/dist/singleCellPlot-QRFR3AJH.js +44 -0
  278. package/dist/singlecell-AQEAB445.js +77 -0
  279. package/dist/singlecell-DX4EXNUV.js +1562 -0
  280. package/dist/snp-2URSYPBL.js +29 -0
  281. package/dist/snp.unit.spec-ZV2RCDT4.js +167 -0
  282. package/dist/snplocus-BB4I2QIP.js +200 -0
  283. package/dist/snplst-A5S7CQEM.js +36 -0
  284. package/dist/spliceevent.a53ss.diagram-6C4OQOVF.js +142 -0
  285. package/dist/spliceevent.exonskip.diagram-FKSR3JEL.js +274 -0
  286. package/dist/spliceevent.noeventdiagram-G3JQUZKK.js +451 -0
  287. package/dist/ssGSEA-KLMOSI53.js +29 -0
  288. package/dist/ssGSEA.unit.spec-HBALWLVB.js +79 -0
  289. package/dist/stattable-ZCMPIC3I.js +112 -0
  290. package/dist/studyCatalog-UZ4BSYY6.js +457 -0
  291. package/dist/summarizeCnvGeneexp-Z43GYKZB.js +154 -0
  292. package/dist/summarizeGeneexpSurvival-4OHRMCFV.js +101 -0
  293. package/dist/summarizeMutationCnv-EZXMLADC.js +155 -0
  294. package/dist/summarizeMutationDiagnosis-RPQP4TM5.js +31 -0
  295. package/dist/summarizeMutationSurvival-LX4TRGJZ.js +95 -0
  296. package/dist/summary-FZQVK5KR.js +40 -0
  297. package/dist/summary.integration.spec-46T65LR5.js +405 -0
  298. package/dist/summaryInput-BHU7G5FC.js +238 -0
  299. package/dist/sunburst-A5NS3KJQ.js +274 -0
  300. package/dist/sunburst-R5X2C7FK.js +34 -0
  301. package/dist/survival-MKW5J5ZH.js +1248 -0
  302. package/dist/survival-N2NKMVOV.js +49 -0
  303. package/dist/survival.integration.spec-K5FMOOTF.js +609 -0
  304. package/dist/svgraph-3WRCJA5D.js +1377 -0
  305. package/dist/svmr-TLMT7GE3.js +3574 -0
  306. package/dist/svmr-TLMT7GE3.js.map +7 -0
  307. package/dist/swimmer-XV5KVWEM.js +993 -0
  308. package/dist/table-XUGFZSGV.js +192 -0
  309. package/dist/termCollection-23ZRHZHF.js +247 -0
  310. package/dist/termCollection-NWTAUSSW.js +29 -0
  311. package/dist/termCollection.unit.spec-WE3JMSUI.js +295 -0
  312. package/dist/termCollectionFractionSelection-5FLFLMIY.js +38 -0
  313. package/dist/termCollectionFractionSelection.unit.spec-CCFGGXAA.js +184 -0
  314. package/dist/tk-CTHINOMN.js +1224 -0
  315. package/dist/tk-CTHINOMN.js.map +7 -0
  316. package/dist/tk-F3TSB4IB.js +38 -0
  317. package/dist/tp.ui-4QDX3FGM.js +1453 -0
  318. package/dist/tvs.categorical-24OT3XZI.js +28 -0
  319. package/dist/tvs.condition-X4SXCVGN.js +160 -0
  320. package/dist/tvs.dt-FRBJRSWI.js +34 -0
  321. package/dist/tvs.dtcnv.categorical-4RRSO735.js +31 -0
  322. package/dist/tvs.dtcnv.continuous-HXY2PBUA.js +72 -0
  323. package/dist/tvs.dtfusion-67LXBQA4.js +31 -0
  324. package/dist/tvs.dtitd-MCJZCNV2.js +31 -0
  325. package/dist/tvs.dtsnvindel-K5YIIBQJ.js +31 -0
  326. package/dist/tvs.dtsv-RP7FUB2N.js +31 -0
  327. package/dist/tvs.multivalue-CROMWUCP.js +84 -0
  328. package/dist/tvs.numeric-IYYYV6ZJ.js +32 -0
  329. package/dist/tvs.samplelst-5DXKRFYM.js +95 -0
  330. package/dist/tvs.survival-W5RXODBT.js +110 -0
  331. package/dist/tvs.termCollection-OSJYIWDX.js +118 -0
  332. package/dist/vocabulary-HTRYJUD7.js +32 -0
  333. package/dist/wsi.direct-UHVG525G.js +11600 -0
  334. package/dist/wsi.direct-UHVG525G.js.map +7 -0
  335. package/package.json +3 -3
  336. package/dist/2dmaf-CSBPMYHO.js +0 -1362
  337. package/dist/AggMatrixInput-2HST4LLJ.js +0 -402
  338. package/dist/AggregateMatrix-UPOAX44L.js +0 -37
  339. package/dist/AppHeader-H5QBVKUS.js +0 -826
  340. package/dist/BoxPlot-JTBQA6PL.js +0 -1247
  341. package/dist/CorrelationVolcano-AWBPVDMT.js +0 -613
  342. package/dist/CorrelationVolcano-AWBPVDMT.js.map +0 -7
  343. package/dist/Cuminc-3BXJVWIH.js +0 -1217
  344. package/dist/DE-237VV46D.js +0 -85
  345. package/dist/DEinput-W443UW5T.js +0 -479
  346. package/dist/DEinput-W443UW5T.js.map +0 -7
  347. package/dist/DM-TIW623IR.js +0 -86
  348. package/dist/DifferentialAnalysis-PHUA2GPK.js +0 -236
  349. package/dist/Disco-WHV52SCI.js +0 -3445
  350. package/dist/Disco.UI-UDUXNCZX.js +0 -239
  351. package/dist/DmrPlot-FZCD6FTX.js +0 -366
  352. package/dist/GB-6UW5LOUV.js +0 -1388
  353. package/dist/GB-6UW5LOUV.js.map +0 -7
  354. package/dist/GSEA-3CNHMK6M.js +0 -870
  355. package/dist/GeneExpInput-ZOVP7BFY.js +0 -38
  356. package/dist/Geomap-JREOIESM.js +0 -80
  357. package/dist/HicApp-RKAMIUXQ.js +0 -2240
  358. package/dist/IDCViewer-KXV4FU3V.js +0 -10810
  359. package/dist/NumBinaryEditor-FNVYUK2J.js +0 -274
  360. package/dist/NumBinaryEditor.unit.spec-PWR23U3J.js +0 -308
  361. package/dist/NumContEditor-YLBJW64K.js +0 -100
  362. package/dist/NumContEditor.unit.spec-6JWBCPFY.js +0 -160
  363. package/dist/NumCustomBinEditor-42AFCXRN.js +0 -29
  364. package/dist/NumCustomBinEditor.unit.spec-AFBTF2CL.js +0 -393
  365. package/dist/NumDiscreteEditor-FJIBZTBP.js +0 -165
  366. package/dist/NumDiscreteEditor.unit.spec-MC4INDCB.js +0 -229
  367. package/dist/NumRegularBinEditor-2WRE72TL.js +0 -29
  368. package/dist/NumRegularBinEditor.unit.spec-L3S6NRCM.js +0 -274
  369. package/dist/NumSplineEditor-TVMVAN7I.js +0 -205
  370. package/dist/NumSplineEditor.unit.spec-GEL36GZZ.js +0 -220
  371. package/dist/NumericDensity-BNFAVOFO.js +0 -29
  372. package/dist/NumericDensity.unit.spec-XBYUFBTQ.js +0 -414
  373. package/dist/NumericHandler-4VFFJNX6.js +0 -30
  374. package/dist/NumericHandler.unit.spec-76T2IVRS.js +0 -225
  375. package/dist/ProteomeInput-M5UIO73Q.js +0 -610
  376. package/dist/Regression-5LB5TLA6.js +0 -1412
  377. package/dist/RunChart2-HIFXOEKZ.js +0 -744
  378. package/dist/SC-SMMW5MJG.js +0 -1290
  379. package/dist/Violin-COAFYZOV.js +0 -1105
  380. package/dist/Volcano-62II76B4.js +0 -2748
  381. package/dist/Volcano-62II76B4.js.map +0 -7
  382. package/dist/Wsi-OYW2L7FR.js +0 -637
  383. package/dist/Wsi-OYW2L7FR.js.map +0 -7
  384. package/dist/aboutSunburst-3FYJGR6B.js +0 -93
  385. package/dist/adSandbox-4VHYWBQC.js +0 -29
  386. package/dist/animatedBubbleChart-QCCIC5IT.js +0 -542
  387. package/dist/app-IF7YPCGZ.js +0 -28
  388. package/dist/app-JZ43TSJP.js +0 -38
  389. package/dist/bam-2VPZGSW3.js +0 -872
  390. package/dist/barchart-VYTWYYGG.js +0 -38
  391. package/dist/barchart2-XC7J4VEO.js +0 -305
  392. package/dist/block-YGQFUK5L.js +0 -6203
  393. package/dist/block-YGQFUK5L.js.map +0 -7
  394. package/dist/block.init-BVP3YZHQ.js +0 -29
  395. package/dist/block.mds.expressionrank-RKDDKY4J.js +0 -350
  396. package/dist/block.mds.geneboxplot-3FZ3EZZ6.js +0 -819
  397. package/dist/block.mds.junction-MCOG37RA.js +0 -1534
  398. package/dist/block.mds.svcnv-IEOR5IQZ.js +0 -6325
  399. package/dist/block.svg-3XHRHYCV.js +0 -155
  400. package/dist/block.tk.aicheck-TMDUGNZX.js +0 -274
  401. package/dist/block.tk.bam-73KW4QEJ.js +0 -1906
  402. package/dist/block.tk.bigwig.ui-E5W6R7DQ.js +0 -202
  403. package/dist/block.tk.hicstraw-BNNE6ZMW.js +0 -814
  404. package/dist/block.tk.junction-DMPRZRNY.js +0 -2353
  405. package/dist/block.tk.junction.textmatrixui-XS2E7MQL.js +0 -190
  406. package/dist/block.tk.ld-QD3XDLO4.js +0 -90
  407. package/dist/block.tk.menu-S6XI732E.js +0 -1050
  408. package/dist/block.tk.pgv-KH4TMR3A.js +0 -934
  409. package/dist/brainImaging-NK4JENN3.js +0 -550
  410. package/dist/brainRegions-YUEMTKYH.js +0 -213
  411. package/dist/bubbleHeatmap-LQCVS4WK.js +0 -374
  412. package/dist/bubbleHeatmap-LQCVS4WK.js.map +0 -7
  413. package/dist/cellTypeBubbleHeatmap-DFRSPWAY.js +0 -274
  414. package/dist/cellTypeBubbleHeatmap-DFRSPWAY.js.map +0 -7
  415. package/dist/chunk-37ZEGLVY.js +0 -267
  416. package/dist/chunk-3RPX4ZVV.js +0 -2334
  417. package/dist/chunk-4LK5YFHF.js +0 -102
  418. package/dist/chunk-4WFG5Y3A.js +0 -2095
  419. package/dist/chunk-4WFXCUT4.js +0 -141
  420. package/dist/chunk-5LY2ASQX.js +0 -305
  421. package/dist/chunk-6V7ITU5F.js +0 -2349
  422. package/dist/chunk-7UK7CU4F.js +0 -398
  423. package/dist/chunk-7UK7CU4F.js.map +0 -7
  424. package/dist/chunk-AAQDXVQT.js +0 -134
  425. package/dist/chunk-ADJBQCFM.js +0 -243
  426. package/dist/chunk-ATIITEOR.js +0 -692
  427. package/dist/chunk-ATIITEOR.js.map +0 -7
  428. package/dist/chunk-BWVJAFEQ.js +0 -35
  429. package/dist/chunk-CDCNBN6G.js +0 -50
  430. package/dist/chunk-CGSBIFFO.js +0 -1339
  431. package/dist/chunk-DPWSIN62.js +0 -26787
  432. package/dist/chunk-DPWSIN62.js.map +0 -7
  433. package/dist/chunk-EARMOT6Q.js +0 -176
  434. package/dist/chunk-EARMOT6Q.js.map +0 -7
  435. package/dist/chunk-ECCXTB5S.js +0 -562
  436. package/dist/chunk-ECTOEM7X.js +0 -96
  437. package/dist/chunk-EKIWZUEO.js +0 -54
  438. package/dist/chunk-FALP6GXG.js +0 -96
  439. package/dist/chunk-FRD6LQF7.js +0 -103
  440. package/dist/chunk-FRPYXYYQ.js +0 -263
  441. package/dist/chunk-FV2GLMSI.js +0 -397
  442. package/dist/chunk-G6SP5IQT.js +0 -626
  443. package/dist/chunk-GZL6YFZJ.js +0 -30
  444. package/dist/chunk-H353EVLK.js +0 -240
  445. package/dist/chunk-HKR5R5YR.js +0 -466
  446. package/dist/chunk-HULTLO4D.js +0 -217
  447. package/dist/chunk-IIN4CG67.js +0 -56
  448. package/dist/chunk-ISWFHYEZ.js +0 -123
  449. package/dist/chunk-JBUTLI3V.js +0 -1253
  450. package/dist/chunk-JCNZJKLK.js +0 -55
  451. package/dist/chunk-JEVDRC64.js +0 -56
  452. package/dist/chunk-KBZAB2H2.js +0 -340
  453. package/dist/chunk-KDKJLITX.js +0 -54
  454. package/dist/chunk-KNFJN6CM.js +0 -299
  455. package/dist/chunk-KSYGLBZ4.js +0 -4389
  456. package/dist/chunk-KSYGLBZ4.js.map +0 -7
  457. package/dist/chunk-KUOXZIH4.js +0 -348
  458. package/dist/chunk-KZ54E2FU.js +0 -184
  459. package/dist/chunk-L7FMBWWK.js +0 -6375
  460. package/dist/chunk-LMONIWPI.js +0 -30
  461. package/dist/chunk-LTY7WOAT.js +0 -281
  462. package/dist/chunk-LYDN734A.js +0 -194
  463. package/dist/chunk-LYMYO6TY.js +0 -652
  464. package/dist/chunk-LYMYO6TY.js.map +0 -7
  465. package/dist/chunk-MRZUZDRA.js +0 -444
  466. package/dist/chunk-NGBI4FST.js +0 -195
  467. package/dist/chunk-OKM4ACTA.js +0 -170
  468. package/dist/chunk-OUDHHMZU.js +0 -159
  469. package/dist/chunk-OUDHHMZU.js.map +0 -7
  470. package/dist/chunk-OYXRYWGU.js +0 -2932
  471. package/dist/chunk-P2HMCEMM.js +0 -5254
  472. package/dist/chunk-P2HMCEMM.js.map +0 -7
  473. package/dist/chunk-P5FHYGJK.js +0 -848
  474. package/dist/chunk-P7QDNXSH.js +0 -276
  475. package/dist/chunk-Q7GK35TB.js +0 -257
  476. package/dist/chunk-QXRM5NMW.js +0 -274
  477. package/dist/chunk-RI3GAHQE.js +0 -255
  478. package/dist/chunk-SH7SL4I5.js +0 -1219
  479. package/dist/chunk-SH7SL4I5.js.map +0 -7
  480. package/dist/chunk-SJHWZZ4M.js +0 -70
  481. package/dist/chunk-SJHWZZ4M.js.map +0 -7
  482. package/dist/chunk-T2W4JHWJ.js +0 -472
  483. package/dist/chunk-T2W4JHWJ.js.map +0 -7
  484. package/dist/chunk-TDBS3UFZ.js +0 -379
  485. package/dist/chunk-THHYPA5K.js +0 -48
  486. package/dist/chunk-U2OB3S3M.js +0 -14
  487. package/dist/chunk-UA2ADBTO.js +0 -42
  488. package/dist/chunk-USGUVW5Q.js +0 -182
  489. package/dist/chunk-UWVDD4C2.js +0 -480
  490. package/dist/chunk-W2SBSEKT.js +0 -550
  491. package/dist/chunk-XAHZYGKW.js +0 -468
  492. package/dist/chunk-XKWLP433.js +0 -328
  493. package/dist/chunk-YWB2QHV2.js +0 -2799
  494. package/dist/chunk-Z6M77JDG.js +0 -2008
  495. package/dist/chunk-Z7RFFJXU.js +0 -516
  496. package/dist/chunk-ZG7EBTHK.js +0 -203
  497. package/dist/chunk-ZJLJHQWM.js +0 -418
  498. package/dist/chunk-ZKU6RST3.js +0 -2685
  499. package/dist/chunk-ZLWEUYPT.js +0 -296
  500. package/dist/cohort-X327AG3O.js +0 -66
  501. package/dist/cohortSunburst-GNWIVDNA.js +0 -402
  502. package/dist/condition-3M4L2HIM.js +0 -323
  503. package/dist/controls-OKNHZJOU.js +0 -30
  504. package/dist/controls.config-FUKM5LEP.js +0 -30
  505. package/dist/correlation-PC4MXCFM.js +0 -91
  506. package/dist/customdata.inputui-HCRTX56R.js +0 -280
  507. package/dist/dataDownload-HJO7UW7S.js +0 -326
  508. package/dist/databrowser.ui-EY3H6B4S.js +0 -424
  509. package/dist/dictionary-L6CTMFY7.js +0 -109
  510. package/dist/dnaMethylation-FEB5GGXK.js +0 -29
  511. package/dist/dnaMethylation.integration.spec-4DC6TJNZ.js +0 -194
  512. package/dist/dnaMethylation.unit.spec-REOHQOBC.js +0 -95
  513. package/dist/dofetch-YFGOKCKV.js +0 -49
  514. package/dist/e2pca-QSAVTCPL.js +0 -340
  515. package/dist/ep-LAFLKVSW.js +0 -1247
  516. package/dist/expclust.gdc.spec-OM4J6WBL.js +0 -298
  517. package/dist/facet-WHTV2VIX.js +0 -556
  518. package/dist/gb-DLXWWBB6.js +0 -77
  519. package/dist/geneExpClustering-KB2MB2VM.js +0 -240
  520. package/dist/geneExpression-3D7PDZ2I.js +0 -309
  521. package/dist/geneExpression-3RSRGYGQ.js +0 -29
  522. package/dist/geneExpression.unit.spec-EINAWLPR.js +0 -150
  523. package/dist/geneORA-J4KVSZT3.js +0 -269
  524. package/dist/geneRanking-HKLJ7CN6.js +0 -544
  525. package/dist/geneVariant-3BRGRFPT.js +0 -32
  526. package/dist/geneVariant-VI5DGDAB.js +0 -289
  527. package/dist/geneVariant-VI5DGDAB.js.map +0 -7
  528. package/dist/geneVariant.integration.spec-3IBX4NNE.js +0 -672
  529. package/dist/genefusion.ui-OESQL7TW.js +0 -299
  530. package/dist/geneset-3BMV3KP4.js +0 -199
  531. package/dist/genomeBrowser.spec-I3WKAITC.js +0 -272
  532. package/dist/grin2-4BBCH3H5.js +0 -66
  533. package/dist/grin2-5L2U32LY.js +0 -945
  534. package/dist/hierCluster-KM56NTN6.js +0 -51
  535. package/dist/hierCluster-XCJF5IQ6.js +0 -55
  536. package/dist/hierCluster.config-E2EYOXX6.js +0 -32
  537. package/dist/hierCluster.integration.spec-IIEJ2YEI.js +0 -479
  538. package/dist/hierCluster.interactivity-AJFEJTGX.js +0 -45
  539. package/dist/hierCluster.renderers-XKI344FM.js +0 -18
  540. package/dist/imagePlot-3B3BXI6I.js +0 -152
  541. package/dist/importPlot-JDVH7Q2Z.js +0 -8
  542. package/dist/isoformExpression-UFHY5LB2.js +0 -31
  543. package/dist/isoformExpression.unit.spec-U6GDCNQR.js +0 -233
  544. package/dist/junction-W2STW5WW.js +0 -32
  545. package/dist/junction.unit.spec-R4DIBFLB.js +0 -178
  546. package/dist/junction.unit.spec-R4DIBFLB.js.map +0 -7
  547. package/dist/launch.adhoc-KN7HFHJH.js +0 -33
  548. package/dist/leftlabel.sample-CK2EK7J6.js +0 -254
  549. package/dist/leftlabel.sample-CK2EK7J6.js.map +0 -7
  550. package/dist/lollipop-EKIGAAK6.js +0 -162
  551. package/dist/maf-MK2MM7J4.js +0 -451
  552. package/dist/maftimeline-7RTMXWFA.js +0 -583
  553. package/dist/matrix-UM2EZODJ.js +0 -50
  554. package/dist/matrix-YBL4FZYJ.js +0 -55
  555. package/dist/matrix.cells-45ZFADK5.js +0 -25
  556. package/dist/matrix.config-QTBIRXKU.js +0 -33
  557. package/dist/matrix.data-WAMOLSKW.js +0 -22
  558. package/dist/matrix.groups-RXFXZABD.js +0 -25
  559. package/dist/matrix.integration.spec-JZDZRVOK.js +0 -3156
  560. package/dist/matrix.interactivity-P4VYGTB2.js +0 -33
  561. package/dist/matrix.layout-WWPRXXHX.js +0 -35
  562. package/dist/matrix.legend-4MCMVVKO.js +0 -19
  563. package/dist/matrix.renderers-JQTUODDS.js +0 -30
  564. package/dist/matrix.serieses-3IDRKSGO.js +0 -18
  565. package/dist/matrix.sort-EAWOB56R.js +0 -25
  566. package/dist/matrix.sort.unit.spec-FOWLULHA.js +0 -464
  567. package/dist/matrix.sorterUi.unit.spec-U5CQDTMX.js +0 -334
  568. package/dist/matrix.unit.spec-VTLD4EOZ.js +0 -146
  569. package/dist/mavb-JIIXJHBK.js +0 -726
  570. package/dist/mds.samplescatterplot-PTWA2V6E.js +0 -1545
  571. package/dist/mds.survivalplot-XVZ66GP5.js +0 -472
  572. package/dist/multivalue-2H7QX7MG.js +0 -79
  573. package/dist/numericDictTermCluster-EHCDRT6J.js +0 -62
  574. package/dist/oncomatrix-RZLZUC32.js +0 -286
  575. package/dist/oncomatrix.spec-Z5UQGTW2.js +0 -439
  576. package/dist/plot.2dvaf-IRBZBJ6B.js +0 -368
  577. package/dist/plot.app-I23IAZ3Z.js +0 -32
  578. package/dist/plot.barplot-PYLRAZB7.js +0 -93
  579. package/dist/plot.boxplot-VBWU7DUG.js +0 -142
  580. package/dist/plot.brainImaging-HDJMEMTK.js +0 -51
  581. package/dist/plot.disco-5BVG3WMT.js +0 -100
  582. package/dist/plot.ssgq-S3BKXJMW.js +0 -130
  583. package/dist/plot.vaf2cov-VD7DU2XR.js +0 -249
  584. package/dist/polar2-PYLEVG7E.js +0 -228
  585. package/dist/profileForms-CI2YYD3Y.js +0 -937
  586. package/dist/profilePlot-UCC4ZVHQ.js +0 -45
  587. package/dist/proteinView-FBY6TK3S.js +0 -1346
  588. package/dist/proteinView-FBY6TK3S.js.map +0 -7
  589. package/dist/proteomeCohortCompare-2VUSLC6I.js +0 -866
  590. package/dist/pseudbulk.unit.spec-VPZWNTIA.js +0 -82
  591. package/dist/pseudobulk-RUXGZ7OY.js +0 -31
  592. package/dist/qualitative-3AVR4GRX.js +0 -34
  593. package/dist/qualitative-5QNBKDOZ.js +0 -241
  594. package/dist/radar2-AOYMS54Y.js +0 -323
  595. package/dist/radarFacility2-PP2MAXIP.js +0 -331
  596. package/dist/render-ASLVKYEX.js +0 -29
  597. package/dist/report-UVYKDMQC.js +0 -213
  598. package/dist/sampleView-6UHR7FSR.js +0 -39
  599. package/dist/samplelst-ABC2CCNN.js +0 -114
  600. package/dist/samplematrix-36UCHZLC.js +0 -2188
  601. package/dist/sc-XLSAM725.js +0 -77
  602. package/dist/scatter-ADOBAOW2.js +0 -84
  603. package/dist/scatter-ZNVLI627.js +0 -919
  604. package/dist/selectGenomeWithTklst-DPDBDYTR.js +0 -125
  605. package/dist/singleCellCellType-STVPYZD4.js +0 -29
  606. package/dist/singleCellCellType.unit.spec-ZLY37AXL.js +0 -150
  607. package/dist/singleCellGeneExpression-PCGLU35S.js +0 -29
  608. package/dist/singleCellGeneExpression.unit.spec-PSLKK362.js +0 -144
  609. package/dist/singleCellNumericValue-SR3SJEOB.js +0 -29
  610. package/dist/singleCellNumericValue.unit.spec-PXVXJ4HJ.js +0 -412
  611. package/dist/singleCellPlot-JXB7M6OH.js +0 -44
  612. package/dist/singlecell-EDSX56QO.js +0 -1562
  613. package/dist/singlecell-PH55NFRX.js +0 -77
  614. package/dist/snp-3VEYBTAQ.js +0 -29
  615. package/dist/snp.unit.spec-V7OB44US.js +0 -167
  616. package/dist/snplocus-HX67RBT5.js +0 -200
  617. package/dist/snplst-H5YXCY33.js +0 -36
  618. package/dist/spliceevent.a53ss.diagram-DBDEEHSK.js +0 -142
  619. package/dist/spliceevent.exonskip.diagram-EYEL6BY6.js +0 -274
  620. package/dist/spliceevent.noeventdiagram-64OEXK7U.js +0 -451
  621. package/dist/ssGSEA-3YWQH6KM.js +0 -29
  622. package/dist/ssGSEA.unit.spec-23V2IXP5.js +0 -79
  623. package/dist/stattable-GPSBCNYC.js +0 -112
  624. package/dist/studyCatalog-W5PATRNY.js +0 -457
  625. package/dist/summarizeCnvGeneexp-YGI23QH5.js +0 -154
  626. package/dist/summarizeGeneexpSurvival-KQ6OLWYR.js +0 -101
  627. package/dist/summarizeMutationCnv-XDHBNEPU.js +0 -155
  628. package/dist/summarizeMutationDiagnosis-VKIJRJ2Q.js +0 -31
  629. package/dist/summarizeMutationSurvival-57YKJGLE.js +0 -95
  630. package/dist/summary-4WQOVIUF.js +0 -40
  631. package/dist/summary.integration.spec-FRNWBU7F.js +0 -405
  632. package/dist/summaryInput-X7DS2YA7.js +0 -238
  633. package/dist/sunburst-3OEAQA3O.js +0 -34
  634. package/dist/sunburst-MSGTXYMM.js +0 -274
  635. package/dist/survival-5KC5CNZU.js +0 -1248
  636. package/dist/survival-QXDS6N46.js +0 -49
  637. package/dist/survival.integration.spec-PKENHLTZ.js +0 -609
  638. package/dist/svgraph-VJLB7BBN.js +0 -1377
  639. package/dist/svmr-6BDEZAS6.js +0 -3834
  640. package/dist/svmr-6BDEZAS6.js.map +0 -7
  641. package/dist/swimmer-R3DN7N36.js +0 -993
  642. package/dist/table-YF5VORU6.js +0 -192
  643. package/dist/termCollection-3KGLZFDW.js +0 -29
  644. package/dist/termCollection-KSHVOPS5.js +0 -247
  645. package/dist/termCollection.unit.spec-HTBDG5PL.js +0 -295
  646. package/dist/termCollectionFractionSelection-MK4NKWUX.js +0 -38
  647. package/dist/termCollectionFractionSelection.unit.spec-AMF32FDN.js +0 -184
  648. package/dist/tk-FDHBAKXQ.js +0 -1198
  649. package/dist/tk-FDHBAKXQ.js.map +0 -7
  650. package/dist/tk-Z54DOECH.js +0 -38
  651. package/dist/tp.ui-M4TZVT53.js +0 -1453
  652. package/dist/tvs.categorical-HY3BWCZR.js +0 -28
  653. package/dist/tvs.condition-Y36TRIX4.js +0 -160
  654. package/dist/tvs.dt-XKVJZP7Y.js +0 -34
  655. package/dist/tvs.dtcnv.categorical-OMRZR4Y7.js +0 -31
  656. package/dist/tvs.dtcnv.continuous-AGYOBI5K.js +0 -72
  657. package/dist/tvs.dtfusion-2JX5Y2IH.js +0 -31
  658. package/dist/tvs.dtitd-SDSLBBWC.js +0 -31
  659. package/dist/tvs.dtsnvindel-LI7K464K.js +0 -31
  660. package/dist/tvs.dtsv-VRCLX7QY.js +0 -31
  661. package/dist/tvs.multivalue-4OTY6J2S.js +0 -84
  662. package/dist/tvs.numeric-CDATYOR2.js +0 -32
  663. package/dist/tvs.samplelst-76JOJG2M.js +0 -95
  664. package/dist/tvs.survival-WTFJOKIZ.js +0 -110
  665. package/dist/tvs.termCollection-QQXAS7PE.js +0 -118
  666. package/dist/vocabulary-6ACAEFTL.js +0 -32
  667. package/dist/wsi.direct-OS32TQRM.js +0 -11515
  668. package/dist/wsi.direct-OS32TQRM.js.map +0 -7
  669. /package/dist/{2dmaf-CSBPMYHO.js.map → 2dmaf-75YAQQ3P.js.map} +0 -0
  670. /package/dist/{AggMatrixInput-2HST4LLJ.js.map → AggMatrixInput-KYDS23KP.js.map} +0 -0
  671. /package/dist/{AggregateMatrix-UPOAX44L.js.map → AggregateMatrix-XGGF6KBX.js.map} +0 -0
  672. /package/dist/{AppHeader-H5QBVKUS.js.map → AppHeader-CNY5RTJN.js.map} +0 -0
  673. /package/dist/{BoxPlot-JTBQA6PL.js.map → BoxPlot-OQIJJO66.js.map} +0 -0
  674. /package/dist/{Cuminc-3BXJVWIH.js.map → Cuminc-J6DONJTA.js.map} +0 -0
  675. /package/dist/{DE-237VV46D.js.map → DE-XUBJUUBB.js.map} +0 -0
  676. /package/dist/{DM-TIW623IR.js.map → DM-2UUXUJOC.js.map} +0 -0
  677. /package/dist/{DifferentialAnalysis-PHUA2GPK.js.map → DifferentialAnalysis-U6ZPFHNM.js.map} +0 -0
  678. /package/dist/{Disco-WHV52SCI.js.map → Disco-RR2NN66T.js.map} +0 -0
  679. /package/dist/{Disco.UI-UDUXNCZX.js.map → Disco.UI-MQ7WZQOP.js.map} +0 -0
  680. /package/dist/{DmrPlot-FZCD6FTX.js.map → DmrPlot-MKAKFUJR.js.map} +0 -0
  681. /package/dist/{GSEA-3CNHMK6M.js.map → GSEA-DTIA4MNS.js.map} +0 -0
  682. /package/dist/{GeneExpInput-ZOVP7BFY.js.map → GeneExpInput-4GM5MBBX.js.map} +0 -0
  683. /package/dist/{Geomap-JREOIESM.js.map → Geomap-FF6DBN7M.js.map} +0 -0
  684. /package/dist/{HicApp-RKAMIUXQ.js.map → HicApp-LGXNL36X.js.map} +0 -0
  685. /package/dist/{IDCViewer-KXV4FU3V.js.map → IDCViewer-FQABJNUI.js.map} +0 -0
  686. /package/dist/{NumBinaryEditor-FNVYUK2J.js.map → NumBinaryEditor-7NOHUH76.js.map} +0 -0
  687. /package/dist/{NumBinaryEditor.unit.spec-PWR23U3J.js.map → NumBinaryEditor.unit.spec-SVE5SZYB.js.map} +0 -0
  688. /package/dist/{NumContEditor-YLBJW64K.js.map → NumContEditor-MSWCQUKL.js.map} +0 -0
  689. /package/dist/{NumContEditor.unit.spec-6JWBCPFY.js.map → NumContEditor.unit.spec-UFPASWBH.js.map} +0 -0
  690. /package/dist/{NumCustomBinEditor-42AFCXRN.js.map → NumCustomBinEditor-DF24SO2N.js.map} +0 -0
  691. /package/dist/{NumCustomBinEditor.unit.spec-AFBTF2CL.js.map → NumCustomBinEditor.unit.spec-N3S3ROBI.js.map} +0 -0
  692. /package/dist/{NumDiscreteEditor-FJIBZTBP.js.map → NumDiscreteEditor-HL257XGY.js.map} +0 -0
  693. /package/dist/{NumDiscreteEditor.unit.spec-MC4INDCB.js.map → NumDiscreteEditor.unit.spec-6PTPX547.js.map} +0 -0
  694. /package/dist/{NumRegularBinEditor-2WRE72TL.js.map → NumRegularBinEditor-EWCKTXWY.js.map} +0 -0
  695. /package/dist/{NumRegularBinEditor.unit.spec-L3S6NRCM.js.map → NumRegularBinEditor.unit.spec-AMGPMY7U.js.map} +0 -0
  696. /package/dist/{NumSplineEditor-TVMVAN7I.js.map → NumSplineEditor-YDNJ2DW2.js.map} +0 -0
  697. /package/dist/{NumSplineEditor.unit.spec-GEL36GZZ.js.map → NumSplineEditor.unit.spec-L4JZ3OND.js.map} +0 -0
  698. /package/dist/{NumericDensity-BNFAVOFO.js.map → NumericDensity-SQW67WKL.js.map} +0 -0
  699. /package/dist/{NumericDensity.unit.spec-XBYUFBTQ.js.map → NumericDensity.unit.spec-KBK3JZZG.js.map} +0 -0
  700. /package/dist/{NumericHandler-4VFFJNX6.js.map → NumericHandler-HG7FK4D4.js.map} +0 -0
  701. /package/dist/{NumericHandler.unit.spec-76T2IVRS.js.map → NumericHandler.unit.spec-N7PYAGGF.js.map} +0 -0
  702. /package/dist/{ProteomeInput-M5UIO73Q.js.map → ProteomeInput-6XGREJFP.js.map} +0 -0
  703. /package/dist/{Regression-5LB5TLA6.js.map → Regression-4DDXNQNO.js.map} +0 -0
  704. /package/dist/{RunChart2-HIFXOEKZ.js.map → RunChart2-ARCUC4Z3.js.map} +0 -0
  705. /package/dist/{SC-SMMW5MJG.js.map → SC-AV6COOPI.js.map} +0 -0
  706. /package/dist/{Violin-COAFYZOV.js.map → Violin-2P5I6NL5.js.map} +0 -0
  707. /package/dist/{aboutSunburst-3FYJGR6B.js.map → aboutSunburst-V557OK5L.js.map} +0 -0
  708. /package/dist/{adSandbox-4VHYWBQC.js.map → adSandbox-76PMWKTX.js.map} +0 -0
  709. /package/dist/{animatedBubbleChart-QCCIC5IT.js.map → animatedBubbleChart-CFRJJDAC.js.map} +0 -0
  710. /package/dist/{app-IF7YPCGZ.js.map → app-2SUVPURX.js.map} +0 -0
  711. /package/dist/{app-JZ43TSJP.js.map → app-PR42RXHC.js.map} +0 -0
  712. /package/dist/{bam-2VPZGSW3.js.map → bam-AYHWKHXL.js.map} +0 -0
  713. /package/dist/{barchart-VYTWYYGG.js.map → barchart-S4CLMJO7.js.map} +0 -0
  714. /package/dist/{barchart2-XC7J4VEO.js.map → barchart2-R2BGA2WO.js.map} +0 -0
  715. /package/dist/{block.init-BVP3YZHQ.js.map → block.init-SSWOFFJR.js.map} +0 -0
  716. /package/dist/{block.mds.expressionrank-RKDDKY4J.js.map → block.mds.expressionrank-GJBLSUUM.js.map} +0 -0
  717. /package/dist/{block.mds.geneboxplot-3FZ3EZZ6.js.map → block.mds.geneboxplot-SAAU4OH5.js.map} +0 -0
  718. /package/dist/{block.mds.junction-MCOG37RA.js.map → block.mds.junction-IIZPRLPH.js.map} +0 -0
  719. /package/dist/{block.mds.svcnv-IEOR5IQZ.js.map → block.mds.svcnv-KOG7O25F.js.map} +0 -0
  720. /package/dist/{block.svg-3XHRHYCV.js.map → block.svg-5GJ744H3.js.map} +0 -0
  721. /package/dist/{block.tk.aicheck-TMDUGNZX.js.map → block.tk.aicheck-CTIJCHIC.js.map} +0 -0
  722. /package/dist/{block.tk.bam-73KW4QEJ.js.map → block.tk.bam-RTB7C6CW.js.map} +0 -0
  723. /package/dist/{block.tk.bigwig.ui-E5W6R7DQ.js.map → block.tk.bigwig.ui-OJVOCOWS.js.map} +0 -0
  724. /package/dist/{block.tk.hicstraw-BNNE6ZMW.js.map → block.tk.hicstraw-GUE6G2DA.js.map} +0 -0
  725. /package/dist/{block.tk.junction-DMPRZRNY.js.map → block.tk.junction-XILEKNJY.js.map} +0 -0
  726. /package/dist/{block.tk.junction.textmatrixui-XS2E7MQL.js.map → block.tk.junction.textmatrixui-OF6BW6OY.js.map} +0 -0
  727. /package/dist/{block.tk.ld-QD3XDLO4.js.map → block.tk.ld-QZVJUGZU.js.map} +0 -0
  728. /package/dist/{block.tk.menu-S6XI732E.js.map → block.tk.menu-B2NV6ZX3.js.map} +0 -0
  729. /package/dist/{block.tk.pgv-KH4TMR3A.js.map → block.tk.pgv-46OQHX7S.js.map} +0 -0
  730. /package/dist/{brainImaging-NK4JENN3.js.map → brainImaging-TWTGRSHJ.js.map} +0 -0
  731. /package/dist/{brainRegions-YUEMTKYH.js.map → brainRegions-YTTLJMBU.js.map} +0 -0
  732. /package/dist/{chunk-37ZEGLVY.js.map → chunk-255OQYGC.js.map} +0 -0
  733. /package/dist/{chunk-GZL6YFZJ.js.map → chunk-2B3CYHUF.js.map} +0 -0
  734. /package/dist/{chunk-CGSBIFFO.js.map → chunk-2BXMWQTJ.js.map} +0 -0
  735. /package/dist/{chunk-W2SBSEKT.js.map → chunk-2E3AJFOA.js.map} +0 -0
  736. /package/dist/{chunk-KUOXZIH4.js.map → chunk-2IAELUCN.js.map} +0 -0
  737. /package/dist/{chunk-NGBI4FST.js.map → chunk-2W6U53AG.js.map} +0 -0
  738. /package/dist/{chunk-FALP6GXG.js.map → chunk-3R6VYZYB.js.map} +0 -0
  739. /package/dist/{chunk-G6SP5IQT.js.map → chunk-3YAQY5NZ.js.map} +0 -0
  740. /package/dist/{chunk-5LY2ASQX.js.map → chunk-52WVSXYC.js.map} +0 -0
  741. /package/dist/{chunk-JEVDRC64.js.map → chunk-6CQ5ADIY.js.map} +0 -0
  742. /package/dist/{chunk-P7QDNXSH.js.map → chunk-6UHSGC6G.js.map} +0 -0
  743. /package/dist/{chunk-4WFXCUT4.js.map → chunk-7E37WMAX.js.map} +0 -0
  744. /package/dist/{chunk-LYDN734A.js.map → chunk-7EP77LOA.js.map} +0 -0
  745. /package/dist/{chunk-KDKJLITX.js.map → chunk-7LJ4LTD6.js.map} +0 -0
  746. /package/dist/{chunk-U2OB3S3M.js.map → chunk-7MEBMH77.js.map} +0 -0
  747. /package/dist/{chunk-LMONIWPI.js.map → chunk-7NVFEGCE.js.map} +0 -0
  748. /package/dist/{chunk-KBZAB2H2.js.map → chunk-A52K2E32.js.map} +0 -0
  749. /package/dist/{chunk-ADJBQCFM.js.map → chunk-A7UNLPQQ.js.map} +0 -0
  750. /package/dist/{chunk-UWVDD4C2.js.map → chunk-BH4KIOUQ.js.map} +0 -0
  751. /package/dist/{chunk-JCNZJKLK.js.map → chunk-CG2H6EFQ.js.map} +0 -0
  752. /package/dist/{chunk-XAHZYGKW.js.map → chunk-CNDQFKUB.js.map} +0 -0
  753. /package/dist/{chunk-ZKU6RST3.js.map → chunk-CVLHDO2O.js.map} +0 -0
  754. /package/dist/{chunk-Z6M77JDG.js.map → chunk-CVRTDBLZ.js.map} +0 -0
  755. /package/dist/{chunk-XKWLP433.js.map → chunk-DYX6B6RN.js.map} +0 -0
  756. /package/dist/{chunk-UA2ADBTO.js.map → chunk-FA2B6PKK.js.map} +0 -0
  757. /package/dist/{chunk-AAQDXVQT.js.map → chunk-FA6M7PSZ.js.map} +0 -0
  758. /package/dist/{chunk-H353EVLK.js.map → chunk-FF4J6QSF.js.map} +0 -0
  759. /package/dist/{chunk-L7FMBWWK.js.map → chunk-FYHUHKUC.js.map} +0 -0
  760. /package/dist/{chunk-THHYPA5K.js.map → chunk-G3CJDTG4.js.map} +0 -0
  761. /package/dist/{chunk-KZ54E2FU.js.map → chunk-ILAYJZBC.js.map} +0 -0
  762. /package/dist/{chunk-3RPX4ZVV.js.map → chunk-IT7EE7LY.js.map} +0 -0
  763. /package/dist/{chunk-FV2GLMSI.js.map → chunk-JG5CF5Q3.js.map} +0 -0
  764. /package/dist/{chunk-YWB2QHV2.js.map → chunk-L3ORR2TC.js.map} +0 -0
  765. /package/dist/{chunk-EKIWZUEO.js.map → chunk-L6BT6WZP.js.map} +0 -0
  766. /package/dist/{chunk-RI3GAHQE.js.map → chunk-LF2DWEKN.js.map} +0 -0
  767. /package/dist/{chunk-BWVJAFEQ.js.map → chunk-MJZ66SUG.js.map} +0 -0
  768. /package/dist/{chunk-IIN4CG67.js.map → chunk-N5T7TT5H.js.map} +0 -0
  769. /package/dist/{chunk-KNFJN6CM.js.map → chunk-NB4C446B.js.map} +0 -0
  770. /package/dist/{chunk-FRPYXYYQ.js.map → chunk-NJYYF2LF.js.map} +0 -0
  771. /package/dist/{chunk-TDBS3UFZ.js.map → chunk-NMVEXITA.js.map} +0 -0
  772. /package/dist/{chunk-USGUVW5Q.js.map → chunk-NS2H3C6X.js.map} +0 -0
  773. /package/dist/{chunk-JBUTLI3V.js.map → chunk-O7346S3P.js.map} +0 -0
  774. /package/dist/{chunk-FRD6LQF7.js.map → chunk-OV3W5AMN.js.map} +0 -0
  775. /package/dist/{chunk-QXRM5NMW.js.map → chunk-PQDYA3ZQ.js.map} +0 -0
  776. /package/dist/{chunk-HKR5R5YR.js.map → chunk-QFRR3ZRE.js.map} +0 -0
  777. /package/dist/{chunk-4LK5YFHF.js.map → chunk-QLKEA3WE.js.map} +0 -0
  778. /package/dist/{chunk-ECTOEM7X.js.map → chunk-QM7CXRSF.js.map} +0 -0
  779. /package/dist/{chunk-OYXRYWGU.js.map → chunk-QV6VZLS5.js.map} +0 -0
  780. /package/dist/{chunk-ISWFHYEZ.js.map → chunk-RTE32A22.js.map} +0 -0
  781. /package/dist/{chunk-ECCXTB5S.js.map → chunk-SB5DR4NL.js.map} +0 -0
  782. /package/dist/{chunk-4WFG5Y3A.js.map → chunk-SDUMZTIK.js.map} +0 -0
  783. /package/dist/{chunk-ZLWEUYPT.js.map → chunk-TYLCIGGN.js.map} +0 -0
  784. /package/dist/{chunk-MRZUZDRA.js.map → chunk-UHZDDPUU.js.map} +0 -0
  785. /package/dist/{chunk-Z7RFFJXU.js.map → chunk-UW6GRHZ4.js.map} +0 -0
  786. /package/dist/{chunk-LTY7WOAT.js.map → chunk-UYA5LCAR.js.map} +0 -0
  787. /package/dist/{chunk-CDCNBN6G.js.map → chunk-V7CB5D7A.js.map} +0 -0
  788. /package/dist/{chunk-ZG7EBTHK.js.map → chunk-VBUDRJJG.js.map} +0 -0
  789. /package/dist/{chunk-6V7ITU5F.js.map → chunk-VVWZ4BOI.js.map} +0 -0
  790. /package/dist/{chunk-ZJLJHQWM.js.map → chunk-W3K3N275.js.map} +0 -0
  791. /package/dist/{chunk-OKM4ACTA.js.map → chunk-WENNRY5E.js.map} +0 -0
  792. /package/dist/{chunk-Q7GK35TB.js.map → chunk-Z4R7TCTB.js.map} +0 -0
  793. /package/dist/{chunk-P5FHYGJK.js.map → chunk-ZFNEHOW4.js.map} +0 -0
  794. /package/dist/{chunk-HULTLO4D.js.map → chunk-ZLEGHQOO.js.map} +0 -0
  795. /package/dist/{cohort-X327AG3O.js.map → cohort-TLSGXKV5.js.map} +0 -0
  796. /package/dist/{cohortSunburst-GNWIVDNA.js.map → cohortSunburst-TNMXPHJW.js.map} +0 -0
  797. /package/dist/{condition-3M4L2HIM.js.map → condition-NN7YK7AI.js.map} +0 -0
  798. /package/dist/{controls-OKNHZJOU.js.map → controls-472G34VU.js.map} +0 -0
  799. /package/dist/{controls.config-FUKM5LEP.js.map → controls.config-2BQ7QYOB.js.map} +0 -0
  800. /package/dist/{correlation-PC4MXCFM.js.map → correlation-5UPYEHC6.js.map} +0 -0
  801. /package/dist/{customdata.inputui-HCRTX56R.js.map → customdata.inputui-EWYP4MRY.js.map} +0 -0
  802. /package/dist/{dataDownload-HJO7UW7S.js.map → dataDownload-X5UXBEK4.js.map} +0 -0
  803. /package/dist/{databrowser.ui-EY3H6B4S.js.map → databrowser.ui-PFHJKHIW.js.map} +0 -0
  804. /package/dist/{dictionary-L6CTMFY7.js.map → dictionary-M2MCNRN2.js.map} +0 -0
  805. /package/dist/{dnaMethylation-FEB5GGXK.js.map → dnaMethylation-A7AWG2P5.js.map} +0 -0
  806. /package/dist/{dnaMethylation.integration.spec-4DC6TJNZ.js.map → dnaMethylation.integration.spec-JWCMRFAM.js.map} +0 -0
  807. /package/dist/{dnaMethylation.unit.spec-REOHQOBC.js.map → dnaMethylation.unit.spec-PIVJBW7Z.js.map} +0 -0
  808. /package/dist/{dofetch-YFGOKCKV.js.map → dofetch-XID2XEJT.js.map} +0 -0
  809. /package/dist/{e2pca-QSAVTCPL.js.map → e2pca-VJRNE6BU.js.map} +0 -0
  810. /package/dist/{ep-LAFLKVSW.js.map → ep-BZE65IX2.js.map} +0 -0
  811. /package/dist/{expclust.gdc.spec-OM4J6WBL.js.map → expclust.gdc.spec-5BGBANUV.js.map} +0 -0
  812. /package/dist/{facet-WHTV2VIX.js.map → facet-RXUO4LRY.js.map} +0 -0
  813. /package/dist/{gb-DLXWWBB6.js.map → gb-NDRFDS5A.js.map} +0 -0
  814. /package/dist/{geneExpClustering-KB2MB2VM.js.map → geneExpClustering-ONJGTSGM.js.map} +0 -0
  815. /package/dist/{geneExpression-3D7PDZ2I.js.map → geneExpression-NXDXXKEA.js.map} +0 -0
  816. /package/dist/{geneExpression-3RSRGYGQ.js.map → geneExpression-PYI42HV6.js.map} +0 -0
  817. /package/dist/{geneExpression.unit.spec-EINAWLPR.js.map → geneExpression.unit.spec-PTFHHTP7.js.map} +0 -0
  818. /package/dist/{geneORA-J4KVSZT3.js.map → geneORA-SDR43UOL.js.map} +0 -0
  819. /package/dist/{geneRanking-HKLJ7CN6.js.map → geneRanking-QI43IRNV.js.map} +0 -0
  820. /package/dist/{geneVariant-3BRGRFPT.js.map → geneVariant-OT4V554H.js.map} +0 -0
  821. /package/dist/{geneVariant.integration.spec-3IBX4NNE.js.map → geneVariant.integration.spec-6OE4HKYB.js.map} +0 -0
  822. /package/dist/{genefusion.ui-OESQL7TW.js.map → genefusion.ui-IQDKCZPX.js.map} +0 -0
  823. /package/dist/{geneset-3BMV3KP4.js.map → geneset-TLZPZOQP.js.map} +0 -0
  824. /package/dist/{genomeBrowser.spec-I3WKAITC.js.map → genomeBrowser.spec-HIOTFKFK.js.map} +0 -0
  825. /package/dist/{grin2-5L2U32LY.js.map → grin2-G2PVFRKR.js.map} +0 -0
  826. /package/dist/{grin2-4BBCH3H5.js.map → grin2-RJQZRVFF.js.map} +0 -0
  827. /package/dist/{hierCluster-KM56NTN6.js.map → hierCluster-C6ICZSOB.js.map} +0 -0
  828. /package/dist/{hierCluster-XCJF5IQ6.js.map → hierCluster-MESFVAO7.js.map} +0 -0
  829. /package/dist/{hierCluster.config-E2EYOXX6.js.map → hierCluster.config-7HROWR2T.js.map} +0 -0
  830. /package/dist/{hierCluster.integration.spec-IIEJ2YEI.js.map → hierCluster.integration.spec-CJT22MJI.js.map} +0 -0
  831. /package/dist/{hierCluster.interactivity-AJFEJTGX.js.map → hierCluster.interactivity-MDX5QSEF.js.map} +0 -0
  832. /package/dist/{hierCluster.renderers-XKI344FM.js.map → hierCluster.renderers-SU5IYI33.js.map} +0 -0
  833. /package/dist/{imagePlot-3B3BXI6I.js.map → imagePlot-3Y5FNIJL.js.map} +0 -0
  834. /package/dist/{importPlot-JDVH7Q2Z.js.map → importPlot-WE5QSSFY.js.map} +0 -0
  835. /package/dist/{isoformExpression-UFHY5LB2.js.map → isoformExpression-TMLFOZVK.js.map} +0 -0
  836. /package/dist/{isoformExpression.unit.spec-U6GDCNQR.js.map → isoformExpression.unit.spec-MSVTQC3E.js.map} +0 -0
  837. /package/dist/{junction-W2STW5WW.js.map → junction-YKZV4LEL.js.map} +0 -0
  838. /package/dist/{launch.adhoc-KN7HFHJH.js.map → launch.adhoc-DS6UME2S.js.map} +0 -0
  839. /package/dist/{lollipop-EKIGAAK6.js.map → lollipop-ZKDAU3O5.js.map} +0 -0
  840. /package/dist/{maf-MK2MM7J4.js.map → maf-DKOORWGV.js.map} +0 -0
  841. /package/dist/{maftimeline-7RTMXWFA.js.map → maftimeline-EHJ2CWJJ.js.map} +0 -0
  842. /package/dist/{matrix-UM2EZODJ.js.map → matrix-7JDLGNU7.js.map} +0 -0
  843. /package/dist/{matrix-YBL4FZYJ.js.map → matrix-EB7YOLMN.js.map} +0 -0
  844. /package/dist/{matrix.cells-45ZFADK5.js.map → matrix.cells-A5E63KDN.js.map} +0 -0
  845. /package/dist/{matrix.config-QTBIRXKU.js.map → matrix.config-GSW2WJM4.js.map} +0 -0
  846. /package/dist/{matrix.data-WAMOLSKW.js.map → matrix.data-R4FW2PQH.js.map} +0 -0
  847. /package/dist/{matrix.groups-RXFXZABD.js.map → matrix.groups-3UH2KOIY.js.map} +0 -0
  848. /package/dist/{matrix.integration.spec-JZDZRVOK.js.map → matrix.integration.spec-R32TIABT.js.map} +0 -0
  849. /package/dist/{matrix.interactivity-P4VYGTB2.js.map → matrix.interactivity-RDPMBDVK.js.map} +0 -0
  850. /package/dist/{matrix.layout-WWPRXXHX.js.map → matrix.layout-FD275D3P.js.map} +0 -0
  851. /package/dist/{matrix.legend-4MCMVVKO.js.map → matrix.legend-SE7SQTNN.js.map} +0 -0
  852. /package/dist/{matrix.renderers-JQTUODDS.js.map → matrix.renderers-RK2BRCHZ.js.map} +0 -0
  853. /package/dist/{matrix.serieses-3IDRKSGO.js.map → matrix.serieses-BEZCQDLJ.js.map} +0 -0
  854. /package/dist/{matrix.sort-EAWOB56R.js.map → matrix.sort-KRNS4VPF.js.map} +0 -0
  855. /package/dist/{matrix.sort.unit.spec-FOWLULHA.js.map → matrix.sort.unit.spec-LZG3GOXM.js.map} +0 -0
  856. /package/dist/{matrix.sorterUi.unit.spec-U5CQDTMX.js.map → matrix.sorterUi.unit.spec-RR2KK4R5.js.map} +0 -0
  857. /package/dist/{matrix.unit.spec-VTLD4EOZ.js.map → matrix.unit.spec-3PK6LUNE.js.map} +0 -0
  858. /package/dist/{mavb-JIIXJHBK.js.map → mavb-CUPAESFH.js.map} +0 -0
  859. /package/dist/{mds.samplescatterplot-PTWA2V6E.js.map → mds.samplescatterplot-WGQ7A7UC.js.map} +0 -0
  860. /package/dist/{mds.survivalplot-XVZ66GP5.js.map → mds.survivalplot-ZEGSEJO2.js.map} +0 -0
  861. /package/dist/{multivalue-2H7QX7MG.js.map → multivalue-DKUQCROX.js.map} +0 -0
  862. /package/dist/{numericDictTermCluster-EHCDRT6J.js.map → numericDictTermCluster-IFIEM3E4.js.map} +0 -0
  863. /package/dist/{oncomatrix-RZLZUC32.js.map → oncomatrix-WSPJAWHW.js.map} +0 -0
  864. /package/dist/{oncomatrix.spec-Z5UQGTW2.js.map → oncomatrix.spec-LDWTZ7LO.js.map} +0 -0
  865. /package/dist/{plot.2dvaf-IRBZBJ6B.js.map → plot.2dvaf-N333YSMC.js.map} +0 -0
  866. /package/dist/{plot.app-I23IAZ3Z.js.map → plot.app-HU5RQS5I.js.map} +0 -0
  867. /package/dist/{plot.barplot-PYLRAZB7.js.map → plot.barplot-4T2UEIYX.js.map} +0 -0
  868. /package/dist/{plot.boxplot-VBWU7DUG.js.map → plot.boxplot-C4OXCRFB.js.map} +0 -0
  869. /package/dist/{plot.brainImaging-HDJMEMTK.js.map → plot.brainImaging-A6FEKFEA.js.map} +0 -0
  870. /package/dist/{plot.disco-5BVG3WMT.js.map → plot.disco-VDL7YKRX.js.map} +0 -0
  871. /package/dist/{plot.ssgq-S3BKXJMW.js.map → plot.ssgq-OII7PFPG.js.map} +0 -0
  872. /package/dist/{plot.vaf2cov-VD7DU2XR.js.map → plot.vaf2cov-RZ5JPWMC.js.map} +0 -0
  873. /package/dist/{polar2-PYLEVG7E.js.map → polar2-6KR2KX5D.js.map} +0 -0
  874. /package/dist/{profileForms-CI2YYD3Y.js.map → profileForms-YJDJIBSY.js.map} +0 -0
  875. /package/dist/{profilePlot-UCC4ZVHQ.js.map → profilePlot-U4U4AYMO.js.map} +0 -0
  876. /package/dist/{proteomeCohortCompare-2VUSLC6I.js.map → proteomeCohortCompare-QCXKLAWG.js.map} +0 -0
  877. /package/dist/{pseudbulk.unit.spec-VPZWNTIA.js.map → pseudbulk.unit.spec-3A2FWQZI.js.map} +0 -0
  878. /package/dist/{pseudobulk-RUXGZ7OY.js.map → pseudobulk-WB6NXFJ6.js.map} +0 -0
  879. /package/dist/{qualitative-3AVR4GRX.js.map → qualitative-CQUBCCGT.js.map} +0 -0
  880. /package/dist/{qualitative-5QNBKDOZ.js.map → qualitative-QQ3CWFVP.js.map} +0 -0
  881. /package/dist/{radar2-AOYMS54Y.js.map → radar2-FNC67FNX.js.map} +0 -0
  882. /package/dist/{radarFacility2-PP2MAXIP.js.map → radarFacility2-3X77B4WP.js.map} +0 -0
  883. /package/dist/{render-ASLVKYEX.js.map → render-G5NCZTMW.js.map} +0 -0
  884. /package/dist/{report-UVYKDMQC.js.map → report-CR645KQ4.js.map} +0 -0
  885. /package/dist/{sampleView-6UHR7FSR.js.map → sampleView-6PG2HJZL.js.map} +0 -0
  886. /package/dist/{samplelst-ABC2CCNN.js.map → samplelst-FCQ7YPPQ.js.map} +0 -0
  887. /package/dist/{samplematrix-36UCHZLC.js.map → samplematrix-GXMN5QTS.js.map} +0 -0
  888. /package/dist/{sc-XLSAM725.js.map → sc-4ZTSQOXC.js.map} +0 -0
  889. /package/dist/{scatter-ADOBAOW2.js.map → scatter-2PUQU22I.js.map} +0 -0
  890. /package/dist/{scatter-ZNVLI627.js.map → scatter-ZSZTA37T.js.map} +0 -0
  891. /package/dist/{selectGenomeWithTklst-DPDBDYTR.js.map → selectGenomeWithTklst-XHWBEM2G.js.map} +0 -0
  892. /package/dist/{singleCellCellType-STVPYZD4.js.map → singleCellCellType-NP7Y4N6Z.js.map} +0 -0
  893. /package/dist/{singleCellCellType.unit.spec-ZLY37AXL.js.map → singleCellCellType.unit.spec-5I3FECB4.js.map} +0 -0
  894. /package/dist/{singleCellGeneExpression-PCGLU35S.js.map → singleCellGeneExpression-7RWH633E.js.map} +0 -0
  895. /package/dist/{singleCellGeneExpression.unit.spec-PSLKK362.js.map → singleCellGeneExpression.unit.spec-2X2BDTNO.js.map} +0 -0
  896. /package/dist/{singleCellNumericValue-SR3SJEOB.js.map → singleCellNumericValue-I6V4ME6T.js.map} +0 -0
  897. /package/dist/{singleCellNumericValue.unit.spec-PXVXJ4HJ.js.map → singleCellNumericValue.unit.spec-4HKAJXB3.js.map} +0 -0
  898. /package/dist/{singleCellPlot-JXB7M6OH.js.map → singleCellPlot-QRFR3AJH.js.map} +0 -0
  899. /package/dist/{singlecell-PH55NFRX.js.map → singlecell-AQEAB445.js.map} +0 -0
  900. /package/dist/{singlecell-EDSX56QO.js.map → singlecell-DX4EXNUV.js.map} +0 -0
  901. /package/dist/{snp-3VEYBTAQ.js.map → snp-2URSYPBL.js.map} +0 -0
  902. /package/dist/{snp.unit.spec-V7OB44US.js.map → snp.unit.spec-ZV2RCDT4.js.map} +0 -0
  903. /package/dist/{snplocus-HX67RBT5.js.map → snplocus-BB4I2QIP.js.map} +0 -0
  904. /package/dist/{snplst-H5YXCY33.js.map → snplst-A5S7CQEM.js.map} +0 -0
  905. /package/dist/{spliceevent.a53ss.diagram-DBDEEHSK.js.map → spliceevent.a53ss.diagram-6C4OQOVF.js.map} +0 -0
  906. /package/dist/{spliceevent.exonskip.diagram-EYEL6BY6.js.map → spliceevent.exonskip.diagram-FKSR3JEL.js.map} +0 -0
  907. /package/dist/{spliceevent.noeventdiagram-64OEXK7U.js.map → spliceevent.noeventdiagram-G3JQUZKK.js.map} +0 -0
  908. /package/dist/{ssGSEA-3YWQH6KM.js.map → ssGSEA-KLMOSI53.js.map} +0 -0
  909. /package/dist/{ssGSEA.unit.spec-23V2IXP5.js.map → ssGSEA.unit.spec-HBALWLVB.js.map} +0 -0
  910. /package/dist/{stattable-GPSBCNYC.js.map → stattable-ZCMPIC3I.js.map} +0 -0
  911. /package/dist/{studyCatalog-W5PATRNY.js.map → studyCatalog-UZ4BSYY6.js.map} +0 -0
  912. /package/dist/{summarizeCnvGeneexp-YGI23QH5.js.map → summarizeCnvGeneexp-Z43GYKZB.js.map} +0 -0
  913. /package/dist/{summarizeGeneexpSurvival-KQ6OLWYR.js.map → summarizeGeneexpSurvival-4OHRMCFV.js.map} +0 -0
  914. /package/dist/{summarizeMutationCnv-XDHBNEPU.js.map → summarizeMutationCnv-EZXMLADC.js.map} +0 -0
  915. /package/dist/{summarizeMutationDiagnosis-VKIJRJ2Q.js.map → summarizeMutationDiagnosis-RPQP4TM5.js.map} +0 -0
  916. /package/dist/{summarizeMutationSurvival-57YKJGLE.js.map → summarizeMutationSurvival-LX4TRGJZ.js.map} +0 -0
  917. /package/dist/{summary-4WQOVIUF.js.map → summary-FZQVK5KR.js.map} +0 -0
  918. /package/dist/{summary.integration.spec-FRNWBU7F.js.map → summary.integration.spec-46T65LR5.js.map} +0 -0
  919. /package/dist/{summaryInput-X7DS2YA7.js.map → summaryInput-BHU7G5FC.js.map} +0 -0
  920. /package/dist/{sunburst-MSGTXYMM.js.map → sunburst-A5NS3KJQ.js.map} +0 -0
  921. /package/dist/{sunburst-3OEAQA3O.js.map → sunburst-R5X2C7FK.js.map} +0 -0
  922. /package/dist/{survival-5KC5CNZU.js.map → survival-MKW5J5ZH.js.map} +0 -0
  923. /package/dist/{survival-QXDS6N46.js.map → survival-N2NKMVOV.js.map} +0 -0
  924. /package/dist/{survival.integration.spec-PKENHLTZ.js.map → survival.integration.spec-K5FMOOTF.js.map} +0 -0
  925. /package/dist/{svgraph-VJLB7BBN.js.map → svgraph-3WRCJA5D.js.map} +0 -0
  926. /package/dist/{swimmer-R3DN7N36.js.map → swimmer-XV5KVWEM.js.map} +0 -0
  927. /package/dist/{table-YF5VORU6.js.map → table-XUGFZSGV.js.map} +0 -0
  928. /package/dist/{termCollection-KSHVOPS5.js.map → termCollection-23ZRHZHF.js.map} +0 -0
  929. /package/dist/{termCollection-3KGLZFDW.js.map → termCollection-NWTAUSSW.js.map} +0 -0
  930. /package/dist/{termCollection.unit.spec-HTBDG5PL.js.map → termCollection.unit.spec-WE3JMSUI.js.map} +0 -0
  931. /package/dist/{termCollectionFractionSelection-MK4NKWUX.js.map → termCollectionFractionSelection-5FLFLMIY.js.map} +0 -0
  932. /package/dist/{termCollectionFractionSelection.unit.spec-AMF32FDN.js.map → termCollectionFractionSelection.unit.spec-CCFGGXAA.js.map} +0 -0
  933. /package/dist/{tk-Z54DOECH.js.map → tk-F3TSB4IB.js.map} +0 -0
  934. /package/dist/{tp.ui-M4TZVT53.js.map → tp.ui-4QDX3FGM.js.map} +0 -0
  935. /package/dist/{tvs.categorical-HY3BWCZR.js.map → tvs.categorical-24OT3XZI.js.map} +0 -0
  936. /package/dist/{tvs.condition-Y36TRIX4.js.map → tvs.condition-X4SXCVGN.js.map} +0 -0
  937. /package/dist/{tvs.dt-XKVJZP7Y.js.map → tvs.dt-FRBJRSWI.js.map} +0 -0
  938. /package/dist/{tvs.dtcnv.categorical-OMRZR4Y7.js.map → tvs.dtcnv.categorical-4RRSO735.js.map} +0 -0
  939. /package/dist/{tvs.dtcnv.continuous-AGYOBI5K.js.map → tvs.dtcnv.continuous-HXY2PBUA.js.map} +0 -0
  940. /package/dist/{tvs.dtfusion-2JX5Y2IH.js.map → tvs.dtfusion-67LXBQA4.js.map} +0 -0
  941. /package/dist/{tvs.dtitd-SDSLBBWC.js.map → tvs.dtitd-MCJZCNV2.js.map} +0 -0
  942. /package/dist/{tvs.dtsnvindel-LI7K464K.js.map → tvs.dtsnvindel-K5YIIBQJ.js.map} +0 -0
  943. /package/dist/{tvs.dtsv-VRCLX7QY.js.map → tvs.dtsv-RP7FUB2N.js.map} +0 -0
  944. /package/dist/{tvs.multivalue-4OTY6J2S.js.map → tvs.multivalue-CROMWUCP.js.map} +0 -0
  945. /package/dist/{tvs.numeric-CDATYOR2.js.map → tvs.numeric-IYYYV6ZJ.js.map} +0 -0
  946. /package/dist/{tvs.samplelst-76JOJG2M.js.map → tvs.samplelst-5DXKRFYM.js.map} +0 -0
  947. /package/dist/{tvs.survival-WTFJOKIZ.js.map → tvs.survival-W5RXODBT.js.map} +0 -0
  948. /package/dist/{tvs.termCollection-QQXAS7PE.js.map → tvs.termCollection-OSJYIWDX.js.map} +0 -0
  949. /package/dist/{vocabulary-6ACAEFTL.js.map → vocabulary-HTRYJUD7.js.map} +0 -0
@@ -0,0 +1,2095 @@
1
+ import {
2
+ recoverInit
3
+ } from "./chunk-4E2F26CC.js";
4
+ import {
5
+ getSavedStateRefusal,
6
+ markSavedState,
7
+ parentCorsMessage
8
+ } from "./chunk-O6T4SDC7.js";
9
+ import {
10
+ chartsInit,
11
+ escapeHtml,
12
+ fillTermWrapper,
13
+ filterRxCompInit,
14
+ first_genetrack_tolist,
15
+ getFilterItemByTag,
16
+ getSampleFilter,
17
+ getTermSampleTypes,
18
+ groupsInit,
19
+ keyupEnter,
20
+ makeDNAMethRegionTerm,
21
+ mayRenderSampleTypeRow,
22
+ renderTable,
23
+ sayerror,
24
+ table2col,
25
+ to_textfile
26
+ } from "./chunk-CXCAQOFB.js";
27
+ import {
28
+ importPlot
29
+ } from "./chunk-ILAYJZBC.js";
30
+ import {
31
+ Menu
32
+ } from "./chunk-CNFTQSNE.js";
33
+ import {
34
+ icons
35
+ } from "./chunk-3CIL7KH7.js";
36
+ import {
37
+ dofetch3
38
+ } from "./chunk-VVWZ4BOI.js";
39
+ import {
40
+ trimGvTermsForSave
41
+ } from "./chunk-CFYWQJ7F.js";
42
+ import {
43
+ dtcnv,
44
+ dtfusionrna,
45
+ dtsnvindel,
46
+ dtsv
47
+ } from "./chunk-2N345NXD.js";
48
+ import {
49
+ getCompInit,
50
+ multiInit
51
+ } from "./chunk-HBNB5TRH.js";
52
+ import {
53
+ select_default
54
+ } from "./chunk-I6Y4O3RR.js";
55
+
56
+ // mass/about.ts
57
+ var cohortTableActiveColor = "yellow";
58
+ var MassAbout = class _MassAbout {
59
+ constructor(opts) {
60
+ this.initCohort = (appState) => {
61
+ if (this.selectCohort == null) return;
62
+ if (!this.selectCohort.values) return;
63
+ const instanceNum2 = this.instanceNum;
64
+ const activeCohort = appState.activeCohort;
65
+ const app = this.app;
66
+ this.dom.cohortOpts.append("table").attr("data-testid", "sjpp-about-cohort-options-table").selectAll("tr").data(this.selectCohort.values).enter().append("tr").each(function(d, i, nodes) {
67
+ const tr = select_default(nodes[i]);
68
+ const td0 = tr.append("td");
69
+ const radioName = "sja-termdb-cohort-" + instanceNum2;
70
+ const radioId = radioName + "-" + i;
71
+ td0.append("input").style("scale", "1.2").attr("type", "radio").attr("name", radioName).attr("id", radioId).attr("value", i).property("checked", i === activeCohort).style("margin-right", "5px").style("margin-left", "0px").on("click", async (event) => {
72
+ const state = app.getState();
73
+ const clearOnChange = state.termdbConfig.selectCohort.clearOnChange;
74
+ if (clearOnChange) {
75
+ const subactions = [];
76
+ const toBeCleared = [];
77
+ const plots = state.plots;
78
+ const filter = state.termfilter.filter.lst.find((f) => f.tag == "filterUiRoot")?.lst;
79
+ const groups = state.groups;
80
+ if (clearOnChange.plots && plots?.length) toBeCleared.push("plots");
81
+ for (const plot of plots) {
82
+ subactions.push({
83
+ type: "plot_delete",
84
+ id: plot.id
85
+ });
86
+ }
87
+ if (clearOnChange.filter && filter?.length) toBeCleared.push("filters");
88
+ subactions.push({
89
+ type: "filter_replace",
90
+ filter: {
91
+ type: "tvslst",
92
+ in: true,
93
+ join: "",
94
+ tag: "filterUiRoot",
95
+ lst: []
96
+ }
97
+ });
98
+ if (clearOnChange.groups && groups?.length) {
99
+ toBeCleared.push("groups");
100
+ for (const group of groups) {
101
+ subactions.push({
102
+ type: "delete_group",
103
+ name: group.name
104
+ });
105
+ }
106
+ for (const term of state.customTerms) {
107
+ subactions.push({
108
+ type: "delete_customTerm",
109
+ name: term.name
110
+ });
111
+ }
112
+ }
113
+ subactions.push({ type: "cohort_set", activeCohort: i });
114
+ if (toBeCleared.length) {
115
+ const confirm = window.confirm(
116
+ `Changing the cohort will clear all ${joinByComma(
117
+ toBeCleared
118
+ )}. To proceed, click "OK". To save the session, click "Cancel" and then click the "Session" button at the top of the page.`
119
+ );
120
+ if (!confirm) {
121
+ event.preventDefault();
122
+ return;
123
+ }
124
+ }
125
+ app.dispatch({
126
+ type: "app_refresh",
127
+ subactions
128
+ });
129
+ } else app.dispatch({ type: "cohort_set", activeCohort: i });
130
+ });
131
+ td0.append("label").style("font-size", "1.4em").attr("for", radioId).attr("colspan", 2).style("cursor", "pointer").html((d2) => d2.label);
132
+ tr.selectAll("td").style("max-width", "600px").style("padding-bottom", "10px").style("padding-right", "20px").style("vertical-align", "top");
133
+ });
134
+ this.dom.cohortTable = this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-table").style("margin-left", "12px");
135
+ if (this.selectCohort.asterisk) {
136
+ this.dom.cohortAsterisk = this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-asterisk").style("margin", "10px").style("font-size", ".8em").text(this.selectCohort.asterisk);
137
+ }
138
+ };
139
+ this.renderCohortsTable = async () => {
140
+ if (!this.dom.cohortTable) return;
141
+ this.dom.cohortTable.selectAll("*").remove();
142
+ const columns = [{ label: "Feature" }];
143
+ const rows = [];
144
+ const result = await this.app.vocabApi.getCohortsData();
145
+ if ("error" in result) throw result.error;
146
+ if (this.selectCohort?.values) {
147
+ const values = this.selectCohort.values;
148
+ result.cohorts.sort((a, b) => {
149
+ const aIndex = values.findIndex((v) => v.keys.toString() == a.cohort);
150
+ const bIndex = values.findIndex((v) => v.keys.toString() == b.cohort);
151
+ if (aIndex < bIndex) return -1;
152
+ if (aIndex > bIndex) return 1;
153
+ return 0;
154
+ });
155
+ }
156
+ if (!result.cfeatures.length) return;
157
+ for (const feature of result.features) rows.push([{ value: feature.name }]);
158
+ for (const cohort of result.cohorts) {
159
+ if (cohort.subcohorts?.length) continue;
160
+ columns.push({ label: cohort.name });
161
+ for (const [i, feature] of result.features.entries()) {
162
+ const cf = result.cfeatures.find((cf2) => cf2.idfeature === feature.idfeature && cf2.cohort === cohort.cohort);
163
+ if (cf) rows[i].push({ value: cf.value });
164
+ }
165
+ }
166
+ renderTable({
167
+ rows,
168
+ columns,
169
+ div: this.dom.cohortTable,
170
+ showLines: false,
171
+ maxHeight: "60vh",
172
+ header: { style: { "font-size": "1.2em", "font-weight": "bold" } }
173
+ });
174
+ this.dom.cohortTable.select("table").style("border-collapse", "collapse");
175
+ this.dom.cohortTable.selectAll(`tbody > tr > td`).style("background-color", "transparent").style("padding", "6px");
176
+ const state = this.app.getState();
177
+ const selectCohort = state.termdbConfig.selectCohort;
178
+ const activeCohort = state.activeCohort;
179
+ const keys = selectCohort.values[activeCohort].keys;
180
+ let selector = `tbody > tr > td:nth-child(${activeCohort + 2})`;
181
+ const combined = keys.length > 1;
182
+ if (combined) {
183
+ selector = "";
184
+ for (const key of keys) {
185
+ const i = result.cohorts.map((c) => c.cohort).indexOf(key);
186
+ if (selector !== "") selector += ",";
187
+ selector += `tbody > tr > td:nth-child(${i + 2})`;
188
+ }
189
+ }
190
+ const activeColumns = this.dom.cohortTable.selectAll(selector);
191
+ const color = state.termdbConfig.massNav?.activeColor || cohortTableActiveColor;
192
+ activeColumns.style("background-color", color);
193
+ };
194
+ this.initCustomHtml = () => {
195
+ if (this.selectCohort != null) return;
196
+ if (!this.aboutOverrides?.html) return;
197
+ this.subheader.append("div").attr("data-testid", "sjpp-custom-about-content").style("padding", "10px").html(this.aboutOverrides.html);
198
+ };
199
+ // render the world map (from termdbConfig.geomap) directly on the landing tab when the dataset opts in.
200
+ // the renderer (and its ~170KB world.json basemap) is dynamically imported so it never loads for
201
+ // datasets that don't enable the map.
202
+ this.initGeomap = async (appState) => {
203
+ if (!this.aboutOverrides?.showGeomap) return;
204
+ const geomap = appState.termdbConfig?.geomap;
205
+ if (!geomap?.sites?.length) return;
206
+ const holder = this.subheader.append("div").attr("data-testid", "sjpp-about-geomap").style("padding", "10px");
207
+ const { renderGeomap } = await import("./render-G5NCZTMW.js");
208
+ renderGeomap(holder, geomap);
209
+ };
210
+ // render the sunburst of the dataset's default rings when the dataset opts in. like the geomap,
211
+ // its module is dynamically imported so it only loads for datasets that show it; main() draws it
212
+ this.initSunburst = (appState) => {
213
+ if (!this.aboutOverrides?.showSunburst) return;
214
+ if (!appState.termdbConfig?.sunburst?.twLst?.length) return;
215
+ const s = this.aboutOverrides.showSunburst;
216
+ const placed = typeof s == "object" ? this.getSectionHolder(s.holderSelector, "showSunburst") : void 0;
217
+ const section = (placed || this.subheader.append("div")).style("padding", "10px");
218
+ if (typeof s == "object") this.sectionHeading(section, s.title, s.description);
219
+ const holder = section.append("div").style("display", "flex").style("justify-content", "center").style("margin-bottom", "32px");
220
+ const onOpen = () => this.launchActiveItem({ plot: { chartType: "sunburst" } }, holder.node());
221
+ this.sunburst = import("./aboutSunburst-V557OK5L.js").then((_) => new _.AboutSunburst(holder, this.app, onOpen)).catch((e) => {
222
+ holder.append("div").attr("class", "sja_errorbar").text(e?.message || String(e));
223
+ console.error(e);
224
+ });
225
+ };
226
+ // the element of the custom html that a section's holderSelector (a css selector from the dataset)
227
+ // selects; undefined without one, or when it selects nothing, and then the section follows the content above
228
+ this.getSectionHolder = (selector, section) => {
229
+ if (!selector) return;
230
+ let el;
231
+ try {
232
+ el = this.subheader.select(selector);
233
+ } catch (_) {
234
+ }
235
+ if (el && !el.empty()) return el;
236
+ console.error(`about tab: ${section}.holderSelector '${selector}' selects no element of the html; shown at the end`);
237
+ };
238
+ // a section's centered heading and text, from the dataset; nothing if neither is given
239
+ this.sectionHeading = (holder, title, description) => {
240
+ if (!title && !description) return;
241
+ const div = holder.append("div").style("text-align", "center").style("margin", "24px 0 12px 0");
242
+ if (title)
243
+ div.append("div").attr("data-testid", "sjpp-about-section-title").style("font-size", "1.4em").style("font-weight", "600").style("color", "#243b53").html(title);
244
+ if (description)
245
+ div.append("div").style("margin-top", "6px").style("font-size", ".95em").style("color", "#4b5563").html(description);
246
+ };
247
+ this.initActiveItems = () => {
248
+ if (!this.aboutOverrides?.activeItems) return;
249
+ const placed = this.getSectionHolder(this.aboutOverrides.activeItems.holderSelector, "activeItems");
250
+ const holder = placed || this.subheader;
251
+ const { title, description } = this.aboutOverrides.activeItems;
252
+ this.sectionHeading(holder, title, description);
253
+ if (this.aboutOverrides.activeItems.layout == "cards") {
254
+ this.initActiveItemCards(holder);
255
+ return;
256
+ }
257
+ const div = holder.append("div").attr("data-testid", "sjpp-custom-about-activeItems").style("padding", placed ? "0px 0px 10px 0px" : "0px 0px 10px 20px");
258
+ for (const item of this.aboutOverrides.activeItems.items) {
259
+ const btn = div.append("div").style("display", "inline-block").style("margin", "5px").attr("class", "sja_menuoption").attr("data-testid", "sjpp-custom-active-item-btn").html(item.title);
260
+ this.makeActivatable(btn, () => this.launchActiveItem(item, btn.node()));
261
+ }
262
+ };
263
+ // render activeItems as large square tiles (homepage style) that lift on hover
264
+ this.initActiveItemCards = (parent) => {
265
+ const items = this.aboutOverrides.activeItems.items;
266
+ const holder = parent.append("div").attr("data-testid", "sjpp-custom-about-activeItems").style("display", "flex").style("flex-wrap", "wrap").style("justify-content", "center").style("gap", "24px").style("padding", "20px 20px 30px 20px");
267
+ for (const item of items) {
268
+ const card = holder.append("div").attr("class", "sjpp-about-card").attr("data-testid", "sjpp-custom-active-item-card");
269
+ if (item.icon) card.append("div").attr("class", "sjpp-about-card-icon").html(item.icon);
270
+ card.append("div").attr("class", "sjpp-about-card-title").html(item.title);
271
+ card.append("div").attr("class", "sjpp-about-card-subtitle").text(item.subtitle || "");
272
+ this.makeActivatable(card, () => this.launchActiveItem(item, card.node()));
273
+ }
274
+ };
275
+ // make a non-native clickable element (a styled <div>) operable like a button:
276
+ this.makeActivatable = (sel, onActivate) => {
277
+ sel.attr("role", "button").attr("tabindex", 0).on("click", () => onActivate()).on("keydown", (event) => {
278
+ if (event.key == "Enter" || event.key == " ") {
279
+ event.preventDefault();
280
+ onActivate();
281
+ }
282
+ });
283
+ };
284
+ // launch behavior shared by button and card layouts
285
+ this.launchActiveItem = async (item, anchorEl) => {
286
+ if (item.menu) {
287
+ this.openItemMenu(item.menu, anchorEl);
288
+ return;
289
+ }
290
+ if (item.openChartMenu) {
291
+ await this.openChartMenu(item.openChartMenu, anchorEl);
292
+ return;
293
+ }
294
+ if (!item.plot) {
295
+ console.error("about activeItem has neither .plot nor .openChartMenu", item);
296
+ return;
297
+ }
298
+ await this.app.dispatch({
299
+ type: "tab_set",
300
+ activeTab: 1
301
+ });
302
+ this.app.dispatch({
303
+ type: "plot_create",
304
+ id: getId(),
305
+ config: structuredClone(item.plot)
306
+ });
307
+ };
308
+ // menu of launch items in labelled groups, anchored to the tile. An entry with its own
309
+ // chart menu (e.g. a gene search) replaces this menu's content in place; other entries
310
+ // hide the menu and launch their plot.
311
+ this.openItemMenu = (groups, anchorEl) => {
312
+ const menu = this.chartMenu || (this.chartMenu = new Menu({ padding: "0px" }));
313
+ menu.clear();
314
+ const holder = menu.d.append("div").style("padding", "6px 0").style("min-width", "260px");
315
+ for (const group of groups) {
316
+ if (group.label) {
317
+ holder.append("div").style("padding", "6px 14px 2px").style("font-size", "0.75em").style("font-weight", "bold").style("letter-spacing", "0.05em").style("text-transform", "uppercase").style("color", "#777").text(group.label);
318
+ }
319
+ for (const entry of group.items || []) {
320
+ const row = holder.append("div").attr("class", "sja_menuoption").style("padding", "6px 14px");
321
+ row.append("div").style("font-weight", "600").html(entry.title);
322
+ if (entry.subtitle) row.append("div").style("font-size", "0.8em").style("color", "#666").text(entry.subtitle);
323
+ this.makeActivatable(row, async () => {
324
+ if (!entry.openChartMenu && !entry.menu) menu.hide();
325
+ await this.launchActiveItem(entry, anchorEl);
326
+ });
327
+ }
328
+ }
329
+ menu.showunder(anchorEl);
330
+ };
331
+ // open a chart-specific launch menu (e.g. gene search for proteinView) anchored to the tile.
332
+ // the chart module is dynamically imported so its code only loads when the tile is clicked.
333
+ this.openChartMenu = async (chartType, anchorEl) => {
334
+ const menu = this.chartMenu || (this.chartMenu = new Menu({ padding: "0px" }));
335
+ menu.clear();
336
+ const shimApp = {
337
+ opts: this.app.opts,
338
+ dispatch: async (action) => {
339
+ if (action.type == "plot_create") await this.app.dispatch({ type: "tab_set", activeTab: 1 });
340
+ return this.app.dispatch(action);
341
+ }
342
+ };
343
+ const chartsInstanceShim = { app: shimApp, dom: { tip: menu } };
344
+ const _ = await importPlot(chartType);
345
+ if (typeof _.makeChartBtnMenu != "function")
346
+ throw `about activeItem openChartMenu: chart '${chartType}' has no makeChartBtnMenu`;
347
+ _.makeChartBtnMenu(menu.d.append("div"), chartsInstanceShim, chartType);
348
+ menu.showunder(anchorEl);
349
+ };
350
+ this.initDisclaimer = () => {
351
+ const d = this.aboutOverrides?.disclaimer;
352
+ if (!d) return;
353
+ const div = this.subheader.append("div").attr("data-testid", "sjpp-custom-about-disclaimer").style("margin", "10px 0 20px 10px").style("opacity", 0.7).style("padding", "10px").style("background-color", "#f8f9fa").style("border-left", "4px solid #6c757d").style("font-size", "0.8em");
354
+ div.append("div").style("margin-bottom", "8px").style("font-weight", "bold").text("DISCLAIMER");
355
+ div.append("div").text(d.text);
356
+ };
357
+ this.showServerInfo = () => {
358
+ const state = this.app.getState();
359
+ const about = state.termdbConfig.massNav?.tabs?.about;
360
+ if (!about && !this.app.opts.pkgver && !this.app.opts.launchDate) return;
361
+ const dataRelease = about?.dataRelease;
362
+ const additionalInfo = about?.additionalInfo;
363
+ const div = this.subheader.append("div").attr("data-testid", "sjpp-about-server-info").style("margin", "10px").style("font-size", ".8em");
364
+ const htmlArr = [];
365
+ if (dataRelease) {
366
+ htmlArr.push(`Data Release: <a href=${dataRelease.link} target=_blank>${dataRelease.version}</a>`);
367
+ }
368
+ if (this.app.opts.pkgver) {
369
+ htmlArr.push(
370
+ `Software Release: <a href=https://github.com/stjude/proteinpaint/pkgs/container/ppfull target=_blank>${this.app.opts.pkgver}</a>`
371
+ );
372
+ }
373
+ if (this.app.opts.launchDate) {
374
+ htmlArr.push(`Server Launched: ${this.app.opts.launchDate}`);
375
+ }
376
+ if (additionalInfo) {
377
+ htmlArr.push(additionalInfo);
378
+ }
379
+ div.append("div").html(htmlArr.join("; "));
380
+ };
381
+ this.opts = opts;
382
+ this.type = _MassAbout.type;
383
+ this.app = opts.app;
384
+ this.subheader = opts.subheader;
385
+ this.instanceNum = opts.instanceNum;
386
+ this.aboutOverrides = opts.aboutOverrides;
387
+ this.selectCohort = opts.selectCohort;
388
+ this.dom = {
389
+ cohortDescription: this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-desc").style("margin-left", "10px")
390
+ };
391
+ if (opts?.selectCohort?.title) {
392
+ this.dom.cohortTitle = opts.subheader.append("h2").attr("data-testid", "sjpp-about-cohort-title").style("margin-left", "10px").text(opts.selectCohort.title);
393
+ }
394
+ if (opts.selectCohort?.prompt) {
395
+ this.dom.cohortPrompt = this.subheader.append("div").attr("data-testid", "sjpp-about-cohort-prompt").style("margin-left", "10px").style("padding-top", "30px").style("padding-bottom", "10px").style("font-weight", "bold").style("font-size", "1.2em").text(opts.selectCohort.prompt);
396
+ }
397
+ if (opts.selectCohort) {
398
+ this.dom.cohortOpts = this.subheader.append("div").style("margin-bottom", "30px").style("margin-left", "10px");
399
+ }
400
+ }
401
+ static {
402
+ this.type = "about";
403
+ }
404
+ /* render all contents into this.subheader
405
+ do it through init() means that contents are rendered just once on launching mass ui and won't be rerendered or updated
406
+ since there's no reason to update about tab contents while user is interacting with mass ui
407
+ */
408
+ init(appState) {
409
+ this.initCohort(appState);
410
+ this.initCustomHtml();
411
+ this.initGeomap(appState);
412
+ this.initSunburst(appState);
413
+ this.initActiveItems();
414
+ this.initDisclaimer();
415
+ this.showServerInfo();
416
+ }
417
+ async main() {
418
+ if (this.state.nav.activeTab !== 0) return;
419
+ await this.renderCohortsTable();
420
+ if (this.sunburst) await (await this.sunburst)?.update(this.state);
421
+ if (this.opts.selectCohort) {
422
+ if (this.opts.selectCohort.description) {
423
+ this.dom.cohortDescription.html(this.opts.selectCohort.description);
424
+ } else if (this.opts.selectCohort.descriptionByCohort) {
425
+ this.dom.cohortDescription.html(
426
+ this.opts.selectCohort.descriptionByCohort[this.state.termdbConfig.selectCohort.values[this.state.activeCohort].keys.join(",")]
427
+ );
428
+ }
429
+ }
430
+ }
431
+ destroy() {
432
+ void this.sunburst?.then((sunburst) => sunburst?.chart.destroy());
433
+ }
434
+ };
435
+ var aboutInit = getCompInit(MassAbout);
436
+ function joinByComma(arr) {
437
+ if (!arr.length) return "";
438
+ else if (arr.length == 1) return arr[0];
439
+ else if (arr.length == 2) return arr.join(" and ");
440
+ else return `${arr.slice(0, -1).join(", ")}, and ${arr.slice(-1)}`;
441
+ }
442
+
443
+ // mass/search.ts
444
+ var MIN_PROMPT_LENGTH_FOR_GENE_SEARCH = 1;
445
+ var MIN_PROMPT_LENGTH_FOR_OTHER_SEARCH = 3;
446
+ var MAX_PROMPT_LENGTH_FOR_OMNISEARCH = 20;
447
+ async function embedMethylationRegionPicker(opts) {
448
+ const { holder, genomeObj, vocabApi, chr, start, stop, callback } = opts;
449
+ if (!chr || !Number.isInteger(start) || !Number.isInteger(stop)) throw new Error("unable to retrieve gene coordinate");
450
+ holder.selectAll("*").remove();
451
+ holder.style("display", "block");
452
+ const query = vocabApi.termdbConfig?.queries.dnaMethylation;
453
+ const sampleTypeSelect = mayRenderSampleTypeRow(holder.append("div"), query, vocabApi.termdbConfig);
454
+ holder.append("div").style("opacity", 0.6).text("Navigate genome browser to desired region");
455
+ const arg = {
456
+ holder,
457
+ genome: genomeObj,
458
+ // genome obj
459
+ chr,
460
+ start,
461
+ stop,
462
+ tklst: [],
463
+ nobox: true,
464
+ width: 500,
465
+ hidegenelegend: true,
466
+ debugmode: opts.debug
467
+ };
468
+ first_genetrack_tolist(genomeObj, arg.tklst);
469
+ const _ = await import("./block-QKO2PO4A.js");
470
+ const blockInstance = new _.Block(arg);
471
+ holder.append("div").attr("data-testid", "sjpp-dnaMethylation-submitDiv").style("margin", "10px 0px").append("button").style("border", "none").style("border-radius", "20px").style("padding", "10px 15px").text("Submit Region").on("click", async () => {
472
+ const termSampleTypes = getTermSampleTypes(sampleTypeSelect, query, vocabApi.termdbConfig);
473
+ if (!termSampleTypes) return;
474
+ const { chr: chr2, start: start2, stop: stop2 } = blockInstance.rglst[0];
475
+ await callback(makeDNAMethRegionTerm({ chr: chr2, start: start2, stop: stop2 }, vocabApi, termSampleTypes));
476
+ });
477
+ return blockInstance;
478
+ }
479
+ function parseCoordCandidates(prompt2) {
480
+ const m = /^\s*(\w+)\s*:\s*([\d,]+)\s*-\s*([\d,]+)\s*$/.exec(prompt2);
481
+ if (!m) return null;
482
+ const [, chrToken, start, stop] = m;
483
+ const chrCandidates = /^chr/i.test(chrToken) ? [chrToken, chrToken.replace(/^chr/i, "")] : [chrToken, "chr" + chrToken];
484
+ return chrCandidates.map((chr) => `${chr}:${start}-${stop}`);
485
+ }
486
+ async function handleOmnisearchKeyup(self, event) {
487
+ if (keyupEnter(event)) return;
488
+ const prompt2 = event.target.value.trim();
489
+ if (!prompt2) {
490
+ self.dom.noMatchShown = false;
491
+ self.clear({ hide: true });
492
+ return;
493
+ }
494
+ const coordCandidates = parseCoordCandidates(prompt2);
495
+ if (coordCandidates || MIN_PROMPT_LENGTH_FOR_GENE_SEARCH <= prompt2.length && prompt2.length <= MAX_PROMPT_LENGTH_FOR_OMNISEARCH) {
496
+ try {
497
+ await doSearch(self, prompt2, coordCandidates);
498
+ } catch (e) {
499
+ if (e.stack) console.log(e.stack);
500
+ sayerror(self.dom.resultDiv, "Error: " + (e.message || e));
501
+ }
502
+ } else {
503
+ self.dom.noMatchShown = false;
504
+ self.clear({ hide: true });
505
+ }
506
+ }
507
+ async function fetchOmnisearch(opts) {
508
+ const data = await dofetch3("termdb/chat", {
509
+ body: {
510
+ genome: opts.genome,
511
+ dslabel: opts.dslabel,
512
+ omnisearch: true,
513
+ prompt: opts.prompt,
514
+ cohortStr: opts.cohortStr,
515
+ usecase: opts.usecase,
516
+ treeFilter: opts.treeFilter,
517
+ coordCandidates: opts.coordCandidates || void 0,
518
+ // gene search runs from 1 char; dictionary + sample search only once the prompt reaches the
519
+ // longer cutoff, so the server skips them (and their all-samples scan) for short prompts
520
+ includeDictAndSampleSearch: opts.prompt.trim().length >= MIN_PROMPT_LENGTH_FOR_OTHER_SEARCH
521
+ }
522
+ });
523
+ if (data.error) throw data.error;
524
+ return data;
525
+ }
526
+ function renderOmnisearchResults(self, data) {
527
+ const coord = data.coord || null;
528
+ const dictItems = Array.isArray(data.dictionaryTerms) ? data.dictionaryTerms : [];
529
+ const genes = Array.isArray(data.genes) ? data.genes : [];
530
+ const dictNames = new Set(dictItems.map((t) => t.name?.toUpperCase()));
531
+ const geneMap = /* @__PURE__ */ new Map();
532
+ for (const g of genes) {
533
+ const gene = g?.gene;
534
+ if (!gene || dictNames.has(gene.toUpperCase())) continue;
535
+ const dt = g.dataTypes || {};
536
+ const geneVariantTypes = [];
537
+ if (dt.snvindel) geneVariantTypes.push({ label: "SNV/indel", testid: "snvindel", dtCandidates: [dtsnvindel] });
538
+ if (dt.cnv) geneVariantTypes.push({ label: "CNV", testid: "cnv", dtCandidates: [dtcnv] });
539
+ if (dt.svfusion)
540
+ geneVariantTypes.push({ label: "SV/fusion", testid: "svfusion", dtCandidates: [dtsv, dtfusionrna] });
541
+ const entry = { name: gene, gene, isGene: true };
542
+ if (dt.geneExpression) entry.isGeneExpression = true;
543
+ if (geneVariantTypes.length) {
544
+ entry.isGeneVariant = true;
545
+ entry.geneVariantTypes = geneVariantTypes;
546
+ }
547
+ if (dt.genomeBrowser) {
548
+ entry.isGenomeBrowser = true;
549
+ entry.coord = g.coord;
550
+ }
551
+ if (dt.dnaMethylation) {
552
+ entry.isMethylation = true;
553
+ entry.coord = g.coord;
554
+ }
555
+ if (entry.isGeneExpression || entry.isGeneVariant || entry.isGenomeBrowser || entry.isMethylation) {
556
+ geneMap.set(gene.toUpperCase(), entry);
557
+ }
558
+ }
559
+ const geneItems = [...geneMap.values()];
560
+ const sampleItems = (Array.isArray(data.samples) ? data.samples : []).filter((s) => s?.name).map((s) => ({
561
+ isSample: true,
562
+ name: s.name,
563
+ sampleId: s.id,
564
+ singleCell: s.singleCell,
565
+ facetTracks: s.assays,
566
+ wsimages: s.wsimages
567
+ }));
568
+ const coordItems = coord ? [{ isCoord: true, name: `${coord.chr}:${coord.start.toLocaleString()}-${coord.stop.toLocaleString()}`, coord }] : [];
569
+ const totals = data.totals || {};
570
+ const lst = [];
571
+ for (const group of [
572
+ {
573
+ key: "dictionary",
574
+ heading: "Dictionary",
575
+ noun: "dictionary variable",
576
+ items: dictItems,
577
+ returned: dictItems.length,
578
+ total: totals.dictionaryTerms
579
+ },
580
+ {
581
+ key: "genes",
582
+ heading: "Genes",
583
+ noun: "gene",
584
+ items: geneItems,
585
+ returned: Array.isArray(data.genes) ? data.genes.length : 0,
586
+ total: totals.genes
587
+ },
588
+ {
589
+ key: "samples",
590
+ heading: "Samples",
591
+ noun: "sample",
592
+ items: sampleItems,
593
+ returned: sampleItems.length,
594
+ total: totals.samples
595
+ },
596
+ {
597
+ key: "coord",
598
+ heading: "Genomic region",
599
+ noun: "",
600
+ items: coordItems,
601
+ returned: coordItems.length,
602
+ total: void 0
603
+ }
604
+ ]) {
605
+ if (!group.items.length) continue;
606
+ lst.push({ isHeading: true, name: group.heading });
607
+ for (const item of group.items) lst.push(item);
608
+ if (typeof group.total == "number" && group.total > group.returned) {
609
+ lst.push({
610
+ isNote: true,
611
+ testid: `sjpp-mass-chat-note-${group.key}`,
612
+ name: `Displaying ${group.items.length} out of a total of ${group.total} ${group.noun} matches`
613
+ });
614
+ }
615
+ }
616
+ if (!lst.length) {
617
+ if (!self.dom.noMatchShown) {
618
+ self.dom.noMatchShown = true;
619
+ self.noResult();
620
+ }
621
+ } else {
622
+ self.dom.noMatchShown = false;
623
+ self.showTerms({ lst });
624
+ }
625
+ }
626
+ async function doSearch(self, prompt2, coordCandidates) {
627
+ if (!prompt2) {
628
+ self.clear({ hide: true });
629
+ return;
630
+ }
631
+ const seq = self.omnisearchSeq = (self.omnisearchSeq || 0) + 1;
632
+ const data = await fetchOmnisearch({
633
+ genome: self.app.vocabApi.vocab.genome,
634
+ dslabel: self.app.vocabApi.vocab.dslabel,
635
+ prompt: prompt2,
636
+ cohortStr: self.getState(self.app.getState()).cohortStr,
637
+ usecase: self.opts.usecase,
638
+ treeFilter: self.app.vocabApi.state?.treeFilter,
639
+ coordCandidates
640
+ });
641
+ if (seq !== self.omnisearchSeq) return;
642
+ renderOmnisearchResults(self, data);
643
+ }
644
+ function setSearchRenderers(self) {
645
+ let text = "No match";
646
+ if (self.isChat) {
647
+ text = "No match. Using the chatbot...";
648
+ }
649
+ self.noResult = () => {
650
+ self.clear();
651
+ self.dom.resultDiv.append("div").text(text).style("padding", "3px 3px 3px 0px").style("opacity", 0.5);
652
+ clearTimeout(self.noResultTimer);
653
+ self.noResultTimer = setTimeout(() => {
654
+ self.clear({ hide: true });
655
+ }, 1500);
656
+ };
657
+ self.showTerms = (data) => {
658
+ clearTimeout(self.noResultTimer);
659
+ if (self.opts.disable_terms)
660
+ data.lst.forEach((t) => {
661
+ if (t.disabled) self.opts.disable_terms.push(t);
662
+ });
663
+ self.clear({ hide: !data.lst.length });
664
+ if (data.lst.length) {
665
+ self.dom.resultDiv.append("table").selectAll().data(data.lst).enter().append("tr").each(self.showTerm);
666
+ }
667
+ };
668
+ self.launchPlot = async (config) => {
669
+ if (self.state?.nav?.activeTab == 0) {
670
+ await self.app.dispatch({ type: "tab_set", activeTab: 1 });
671
+ }
672
+ self.app.dispatch({ type: "plot_create", config });
673
+ self.dom.inputNode.value = "";
674
+ self.clear({ hide: true });
675
+ };
676
+ self.launchGeneVariantPlot = async (gene, dtCandidates) => {
677
+ let tw;
678
+ let lastErr;
679
+ for (const dt of dtCandidates) {
680
+ const candidate = {
681
+ term: {
682
+ id: gene,
683
+ name: gene,
684
+ genes: [{ kind: "gene", id: gene, gene, name: gene, type: "geneVariant" }],
685
+ type: "geneVariant"
686
+ },
687
+ q: { type: "predefined-groupset", dtLst: [dt] }
688
+ };
689
+ try {
690
+ await fillTermWrapper(candidate, self.app.vocabApi);
691
+ tw = candidate;
692
+ break;
693
+ } catch (e) {
694
+ lastErr = e;
695
+ }
696
+ }
697
+ if (!tw) throw lastErr;
698
+ await self.launchPlot({ chartType: "summary", term: tw });
699
+ };
700
+ self.launchGenomeBrowserView = async (mode, opts) => {
701
+ if (mode == "protein") {
702
+ if (!opts.gene) throw new Error("gene symbol required for protein view");
703
+ await self.launchPlot({
704
+ chartType: "genomeBrowser",
705
+ geneSearchResult: { geneSymbol: opts.gene },
706
+ blockIsProteinMode: true
707
+ });
708
+ return;
709
+ }
710
+ if (!opts.coord) throw new Error("coordinate required for genomic view");
711
+ await self.launchPlot({
712
+ chartType: "genomeBrowser",
713
+ geneSearchResult: { chr: opts.coord.chr, start: opts.coord.start, stop: opts.coord.stop },
714
+ blockIsProteinMode: false
715
+ });
716
+ };
717
+ self.launchGenomeBrowser = async (gene, coord) => {
718
+ const gbRestrictMode = self.app.getState().termdbConfig?.queries?.gbRestrictMode;
719
+ if (gbRestrictMode == "protein") {
720
+ await self.launchGenomeBrowserView("protein", { gene });
721
+ return;
722
+ }
723
+ if (gbRestrictMode == "genomic") {
724
+ if (!coord) throw new Error(`Unable to resolve genomic coordinates for gene "${gene}".`);
725
+ await self.launchGenomeBrowserView("genomic", { coord });
726
+ return;
727
+ }
728
+ self.dom.tip.clear();
729
+ self.dom.tip.showunder(self.dom.inputNode);
730
+ const holder = self.dom.resultDiv.append("div").style("margin", "10px");
731
+ holder.append("div").style("margin-bottom", "5px").text(gene);
732
+ const btndiv = holder.append("div");
733
+ const addViewBtn = (label, testid, mode) => {
734
+ btndiv.append("button").attr("data-testid", testid).style("margin-right", "10px").text(label).on(
735
+ "click",
736
+ () => void self.launchGenomeBrowserView(mode, { gene, coord }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
737
+ );
738
+ };
739
+ addViewBtn(`Protein view of ${gene}`, `sjpp-mass-chat-gb-protein-${gene}`, "protein");
740
+ if (coord) addViewBtn(`Genomic view of ${gene}`, `sjpp-mass-chat-gb-genomic-${gene}`, "genomic");
741
+ };
742
+ self.launchMethylationPlot = async (gene, coord) => {
743
+ if (!coord) throw new Error(`Could not resolve coordinates for gene "${gene}"`);
744
+ self.dom.tip.clear();
745
+ self.dom.tip.showunder(self.dom.inputNode);
746
+ const holder = self.dom.resultDiv.append("div").style("margin", "10px");
747
+ holder.append("div").style("margin-bottom", "5px").text(gene);
748
+ await embedMethylationRegionPicker({
749
+ holder: holder.append("div"),
750
+ genomeObj: self.app.opts.genome,
751
+ vocabApi: self.app.vocabApi,
752
+ chr: coord.chr,
753
+ start: coord.start,
754
+ stop: coord.stop,
755
+ callback: async (term) => {
756
+ await self.launchPlot({ chartType: "summary", term: { term } });
757
+ }
758
+ });
759
+ };
760
+ self.launchSurvivalWithCovariate = async (covariateField, covariateTw) => {
761
+ self.dom.tip.clear();
762
+ self.dom.tip.showunder(self.dom.inputNode);
763
+ const action = { type: "plot_create", config: { chartType: "survival", [covariateField]: covariateTw } };
764
+ const termdb = await import("./app-PR42RXHC.js");
765
+ termdb.appInit({
766
+ vocabApi: self.app.vocabApi,
767
+ holder: self.dom.tip.d.append("div"),
768
+ state: { nav: { header_mode: "search_only" }, tree: { usecase: { target: "survival", detail: "term" } } },
769
+ tree: {
770
+ click_term: (term) => {
771
+ action.config.term = term.term ? term : { term };
772
+ self.dom.tip.hide();
773
+ self.app.dispatch(action);
774
+ }
775
+ }
776
+ });
777
+ };
778
+ self.renderGeneCategories = (holder, item) => {
779
+ const hasSurvival = self.app.vocabApi.termdbConfig?.allowedTermTypes?.includes("survival");
780
+ const addRow = (label) => {
781
+ const row = holder.append("div").style("margin", "4px 0");
782
+ row.append("span").style("font-weight", "bold").style("margin-right", "8px").text(label + ":");
783
+ return row;
784
+ };
785
+ const addBtn = (row, label, testid, onClick) => {
786
+ row.append("span").attr("class", "sja_menuoption").attr("data-testid", testid).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text(label).on("click", () => void onClick().catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e))));
787
+ };
788
+ if (item.isGeneExpression) {
789
+ const row = addRow("Gene Expression");
790
+ addBtn(row, "Summary", `sjpp-mass-chat-gene-exp-${item.gene}`, async () => {
791
+ await self.launchPlot({
792
+ chartType: "summary",
793
+ term: { term: { gene: item.gene, name: item.name, type: "geneExpression" } }
794
+ });
795
+ });
796
+ if (hasSurvival) {
797
+ addBtn(row, "Survival", `sjpp-mass-chat-gene-exp-survival-${item.gene}`, async () => {
798
+ await self.launchSurvivalWithCovariate("term2", {
799
+ term: { gene: item.gene, name: item.name, type: "geneExpression" }
800
+ });
801
+ });
802
+ }
803
+ }
804
+ if (item.isGeneVariant) {
805
+ const label = (item.geneVariantTypes || []).map((vt) => vt.label).join("/");
806
+ const allDtCandidates = (item.geneVariantTypes || []).flatMap((vt) => vt.dtCandidates);
807
+ const row = addRow(label);
808
+ addBtn(row, "Summary", `sjpp-mass-chat-gene-variant-${item.gene}`, async () => {
809
+ await self.launchGeneVariantPlot(item.gene, allDtCandidates);
810
+ });
811
+ addBtn(row, "Protein view", `sjpp-mass-chat-gene-protein-${item.gene}`, async () => {
812
+ await self.launchGenomeBrowserView("protein", { gene: item.gene });
813
+ });
814
+ addBtn(row, "Genome view", `sjpp-mass-chat-gene-genomic-${item.gene}`, async () => {
815
+ await self.launchGenomeBrowserView("genomic", { coord: item.coord });
816
+ });
817
+ }
818
+ if (item.isMethylation) {
819
+ const row = addRow("DNA methylation");
820
+ addBtn(row, "Summary", `sjpp-mass-chat-gene-methylation-${item.gene}`, async () => {
821
+ await self.launchMethylationPlot(item.gene, item.coord);
822
+ });
823
+ }
824
+ };
825
+ self.showTerm = function(item) {
826
+ const tr = select_default(this);
827
+ if (item.isHeading) {
828
+ tr.append("td").attr("colspan", 2).attr("data-testid", `sjpp-mass-chat-heading-${item.name.toLowerCase().replace(/\s+/g, "-")}`).text(item.name).style("padding", "6px 10px 2px").style("font-weight", "bold").style("font-size", "0.85em").style("text-transform", "uppercase").style("opacity", 0.5);
829
+ return;
830
+ }
831
+ if (item.isNote) {
832
+ tr.append("td").attr("colspan", 2).attr("data-testid", item.testid || "sjpp-mass-chat-note").text(item.name).style("padding", "2px 10px 6px").style("font-size", "0.8em").style("font-style", "italic").style("opacity", 0.6);
833
+ return;
834
+ }
835
+ if (item.isCoord) {
836
+ tr.append("td").text(item.name).style("padding", "5px 10px");
837
+ tr.append("td").append("span").attr("class", "sja_menuoption").attr("data-testid", "sjpp-mass-chat-coord-genomebrowser").style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text("Genome Browser").on(
838
+ "click",
839
+ () => void self.launchGenomeBrowserView("genomic", { coord: item.coord }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
840
+ );
841
+ return;
842
+ }
843
+ if (item.isSample) {
844
+ tr.append("td").text(item.name).style("padding", "5px 10px");
845
+ tr.append("td").append("span").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-sample-view-${item.sampleId}`).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text("Sample View").on(
846
+ "click",
847
+ () => void self.launchPlot({
848
+ chartType: "sampleView",
849
+ sample: { sampleId: item.sampleId, sampleName: item.name }
850
+ }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
851
+ );
852
+ if (item.singleCell) {
853
+ tr.select("td:nth-child(2)").append("button").attr("type", "button").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-single-cell-${item.sampleId}`).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("border", "0").style("cursor", "pointer").text("Single cell").on(
854
+ "click",
855
+ () => void self.launchPlot({
856
+ chartType: "sc",
857
+ settings: { sc: { item: item.singleCell } }
858
+ }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
859
+ );
860
+ }
861
+ if (item.wsimages) {
862
+ tr.select("td:nth-child(2)").append("button").attr("type", "button").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-wsimages-${item.sampleId}`).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("border", "0").style("cursor", "pointer").text("Whole Slide Images").on(
863
+ "click",
864
+ () => void self.launchPlot({
865
+ chartType: "wsi",
866
+ sample: { sID: item.name },
867
+ imageType: "wsi"
868
+ }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
869
+ );
870
+ }
871
+ if (item.facetTracks?.length) {
872
+ tr.select("td:nth-child(2)").append("button").attr("type", "button").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-assays-${item.sampleId}`).style("display", "inline-block").style("margin", "0px 3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text("Facet Table").on(
873
+ "click",
874
+ () => void self.launchPlot({
875
+ chartType: "genomeBrowser",
876
+ hidePlotFilter: true,
877
+ filter: getSampleFilter(item.sampleId)
878
+ }).catch((e) => sayerror(self.dom.resultDiv, "Error: " + (e?.message || e)))
879
+ );
880
+ }
881
+ return;
882
+ }
883
+ if (item.isGene) {
884
+ tr.append("td").text(item.name).style("padding", "5px 10px").style("cursor", "pointer").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-gene-select-${item.gene}`).on("click", () => {
885
+ self.dom.inputNode.value = "";
886
+ self.clear({ hide: true });
887
+ self.addBubble({ msg: escapeHtml(item.name) + " (gene)", me: 1 });
888
+ const holder = self.addBubble({ msg: "" });
889
+ self.renderGeneCategories(holder, item);
890
+ });
891
+ return;
892
+ }
893
+ const button = tr.append("td").text(item.name);
894
+ if (item.type) {
895
+ button.style("cursor", "pointer").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-term-${item.id}`).on("click", async () => {
896
+ self.addBubble({ msg: escapeHtml(item.name) + " (dictionary variable)", me: 1 });
897
+ await self.launchPlot({
898
+ chartType: item.type == "survival" ? "survival" : "summary",
899
+ term: { term: item }
900
+ });
901
+ });
902
+ } else {
903
+ button.style("padding", "5px 10px").style("opacity", 0.5);
904
+ }
905
+ tr.append("td").text((item.__ancestorNames || []).join(" > ")).style("opacity", 0.5).style("font-size", ".7em");
906
+ };
907
+ self.clear = (opts = {}) => {
908
+ self.dom.tip.clear();
909
+ if (opts.hide) self.dom.tip.hide();
910
+ else self.dom.tip.showunder(self.dom.inputNode);
911
+ };
912
+ }
913
+
914
+ // mass/chat.ts
915
+ var MIN_PROMPT_LENGTH_FOR_CHAT = 5;
916
+ var MassAiChatBot = class _MassAiChatBot {
917
+ static {
918
+ this.type = "chat";
919
+ }
920
+ constructor(opts) {
921
+ this.type = _MassAiChatBot.type;
922
+ this.opts = opts;
923
+ this.app = opts.app;
924
+ this.opts.usecase = this.opts.usecase || { target: "dictionary", detail: "term" };
925
+ this.opts.targetType = this.opts.targetType ? this.opts.targetType : "Dictionary Variables";
926
+ this.isChat = this.app.getState().termdbConfig?.queries?.chat;
927
+ setSearchRenderers(this);
928
+ }
929
+ getState(appState) {
930
+ return {
931
+ cohortStr: appState.activeCohort == -1 || !appState.termdbConfig.selectCohort ? "" : appState.termdbConfig.selectCohort.values[appState.activeCohort].keys.slice().sort().join(","),
932
+ search: appState.search,
933
+ nav: appState.nav
934
+ };
935
+ }
936
+ async init() {
937
+ this.initDom();
938
+ }
939
+ initDom() {
940
+ let text = "Search an item";
941
+ let height = "auto";
942
+ if (this.isChat) {
943
+ text = "Ask a question";
944
+ height = "200px";
945
+ }
946
+ this.dom = {
947
+ tip: new Menu({ padding: "5px" }),
948
+ div: this.opts.subheader,
949
+ error: this.opts.subheader.append("div").attr("id", "sjpp-corrVolcano-error").style("opacity", 0.75),
950
+ bubbleDiv: this.opts.subheader.append("div").attr("class", "sjpp_show_scrollbar").style("margin", "5px 20px 0px 20px").style("height", height).style("max-height", "200px").style("overflow", "auto").style("scroll-behavior", "smooth")
951
+ };
952
+ const inputSel = this.dom.div.append("input").attr("type", "search").attr("data-testid", "sjpp-mass-omnisearch-input").style("margin", "15px").style("padding", "17px").style("border-radius", "34px").attr("size", 70).attr("placeholder", text);
953
+ this.dom.inputNode = inputSel.node();
954
+ this.dom.resultDiv = this.dom.tip.d.style("border-left", "solid 1px rgb(133,182,225)").style("padding-left", "5px").attr("tabindex", -1);
955
+ inputSel.on("keyup.search", (event) => handleOmnisearchKeyup(this, event)).on("keyup.submit", async (event) => {
956
+ if (!keyupEnter(event)) return;
957
+ if (!this.isChat) {
958
+ return;
959
+ }
960
+ const prompt2 = event.target.value.trim();
961
+ if (!prompt2) return;
962
+ this.addBubble({ msg: escapeHtml(prompt2), me: 1 });
963
+ event.target.value = "";
964
+ const serverBubble = this.addBubble({ msg: "..." });
965
+ if (prompt2.length <= MIN_PROMPT_LENGTH_FOR_CHAT) {
966
+ serverBubble.text("Your prompt is too short. Enter a longer prompt.");
967
+ return;
968
+ }
969
+ const body = {
970
+ genome: this.app.vocabApi.vocab.genome,
971
+ dslabel: this.app.vocabApi.vocab.dslabel,
972
+ filter: this.app.vocabApi.state.termfilter?.filter,
973
+ prompt: prompt2
974
+ };
975
+ try {
976
+ const data = await dofetch3("termdb/chat", { body });
977
+ if (data.error) throw data.error;
978
+ const result = data;
979
+ if (result.type === "text") {
980
+ serverBubble.text(result.text);
981
+ } else if (result.type === "html") {
982
+ serverBubble.html(result.html);
983
+ } else if (result.type === "plot") {
984
+ const optionField = findPossibleOptionsField(result.plot);
985
+ if (optionField) {
986
+ this.showPossibleOptions(serverBubble, result.plot, optionField, result.msg);
987
+ } else {
988
+ this.app.dispatch({
989
+ type: "plot_create",
990
+ config: result.plot
991
+ });
992
+ serverBubble.text(`${result.msg ? result.msg + ". " : ""}Please refer to the plot generated below.`);
993
+ }
994
+ }
995
+ } catch (e) {
996
+ if (e.stack) console.log(e.stack);
997
+ serverBubble.html(`Error: ${e.message || e}`);
998
+ }
999
+ }).node().focus();
1000
+ }
1001
+ addBubble(arg) {
1002
+ const bubble = this.dom.bubbleDiv.append("div").style("padding", "10px").html(`${arg.me ? '<span style="font-size:.7em">[ME]</span> ' : ""}${arg.msg}`);
1003
+ if (arg.me) bubble.style("background", "#f1f1f1");
1004
+ const n = this.dom.bubbleDiv.node();
1005
+ n.scrollTop = n.scrollHeight;
1006
+ return bubble;
1007
+ }
1008
+ // Render click boxes for an incomplete plot state. `fieldKey` is the field of `plot` whose
1009
+ // value holds `possible_options`. Clicking a box completes the plot state and dispatches plot_create.
1010
+ // Each option completes the plot in one of two ways:
1011
+ // - opt.config: a config patch merged into the plot (the incomplete field is dropped). Used when the
1012
+ // choice sets other fields, e.g. the genome browser view sets blockIsProteinMode: true|false.
1013
+ // - otherwise: the incomplete field is set to { id: opt.id }, e.g. survival term selection -> term:{id}.
1014
+ showPossibleOptions(bubble, plot, fieldKey, msg) {
1015
+ const options = plot[fieldKey].possible_options || [];
1016
+ bubble.text(`${msg ? msg + ". " : ""}Multiple options are available. Please select one:`);
1017
+ const boxDiv = bubble.append("div").style("margin-top", "5px");
1018
+ for (const opt of options) {
1019
+ boxDiv.append("div").attr("class", "sja_menuoption").attr("data-testid", `sjpp-mass-chat-option-${opt.id}`).style("display", "inline-block").style("margin", "3px").style("padding", "5px 10px").style("border-radius", "5px").style("cursor", "pointer").text(opt.name).on("click", () => {
1020
+ const config = JSON.parse(JSON.stringify(plot));
1021
+ if (opt.config) {
1022
+ delete config[fieldKey];
1023
+ Object.assign(config, opt.config);
1024
+ } else {
1025
+ config[fieldKey] = { id: opt.id };
1026
+ }
1027
+ this.app.dispatch({
1028
+ type: "plot_create",
1029
+ config
1030
+ });
1031
+ bubble.selectAll("*").remove();
1032
+ bubble.text(`Selected "${opt.name}". Please refer to the plot generated below.`);
1033
+ });
1034
+ }
1035
+ }
1036
+ main() {
1037
+ if (this.opts.subheader.style("display") == "none") {
1038
+ this.dom.inputNode.blur();
1039
+ this.dom.tip.hide();
1040
+ return;
1041
+ }
1042
+ if (this.opts?.focus != "off") this.dom.inputNode.focus();
1043
+ }
1044
+ };
1045
+ var chatInit = getCompInit(MassAiChatBot);
1046
+ function findPossibleOptionsField(plot) {
1047
+ if (!plot || typeof plot !== "object") return null;
1048
+ for (const key of Object.keys(plot)) {
1049
+ const val = plot[key];
1050
+ if (val && typeof val === "object" && Array.isArray(val.possible_options)) return key;
1051
+ }
1052
+ return null;
1053
+ }
1054
+
1055
+ // mass/user.ts
1056
+ function datasetRequiresAuth(termdbConfig) {
1057
+ return !!termdbConfig?.requiredAuth?.length;
1058
+ }
1059
+ function getUserTabContent(userTab2, activeCohort) {
1060
+ return activeCohort != null && userTab2?.byCohort?.[activeCohort] || userTab2;
1061
+ }
1062
+ function getAuthStatus(signedIn, isPublic) {
1063
+ if (!signedIn) return "Requires sign-in";
1064
+ return isPublic === true ? "Public access" : "You are signed in.";
1065
+ }
1066
+ function getDaysLeft(days) {
1067
+ if (typeof days != "number" || !Number.isFinite(days)) return;
1068
+ return {
1069
+ text: `${days} ${days == 1 ? "day" : "days"} left`,
1070
+ tip: 'The server keeps a session opened from a link for a limited time, and removes it when the days run out. To keep your work, select "Save" in this tab to create a new session, then use "Share" to get its link.'
1071
+ };
1072
+ }
1073
+ var MassUser = class _MassUser {
1074
+ constructor(opts) {
1075
+ /** The termdb route that is checked for a required credential */
1076
+ this.route = "termdb";
1077
+ /** Sessions saved in this browser, by session name. Mirrors localStorage 'savedMassSessions' */
1078
+ this.savedSessions = {};
1079
+ /** Whether the user was signed in at the last check, to detect a sign-in after the launch */
1080
+ this.signedIn = false;
1081
+ this.type = _MassUser.type;
1082
+ this.opts = opts;
1083
+ this.app = opts.app;
1084
+ this.subheader = opts.subheader;
1085
+ const sessionDiv = this.subheader.append("div").attr("data-testid", "sjpp-massnav-user-session");
1086
+ sessionDiv.append("span").attr("data-testid", "sjpp-massnav-user-session-label").style("margin", "0 10px").style("font-weight", "bold").style("opacity", 0.65).text("SESSION");
1087
+ this.dom = {
1088
+ authDiv: this.subheader.append("div").attr("data-testid", "sjpp-massnav-user-auth").style("margin", "10px"),
1089
+ sessionDiv,
1090
+ // inline-flex, to be on the same row as the label, with the same gap between the buttons
1091
+ optionsDiv: sessionDiv.append("div").attr("data-testid", "sjpp-massnav-user-session-options").style("display", "inline-flex").style("vertical-align", "middle").style("gap", "10px"),
1092
+ // aligned with the edge of the option buttons, which have a 10px margin
1093
+ contentDiv: sessionDiv.append("div").attr("id", "sjpp-massnav-user-session-menu").attr("data-testid", "sjpp-massnav-user-session-content").style("margin", "0 10px"),
1094
+ copytip: new Menu({ padding: "5px" })
1095
+ };
1096
+ this.sessionOptions = [
1097
+ { label: `Open`, icon: "&#x23CF;&#xFE0E;", title: "Recover a saved session", callback: () => this.open() },
1098
+ { label: `Save`, icon: "&#x2B07;&#xFE0E;", title: "Save the current view", callback: () => this.save() },
1099
+ {
1100
+ label: `Share`,
1101
+ icon: "&#x26D3;&#xFE0E;",
1102
+ title: "Share the current view",
1103
+ callback: () => this.getSessionUrl()
1104
+ }
1105
+ ];
1106
+ this.embedderOrigin = window.location.origin;
1107
+ this.hostURL = sessionStorage.getItem("hostURL") || this.embedderOrigin;
1108
+ }
1109
+ static {
1110
+ this.type = "user";
1111
+ }
1112
+ /**
1113
+ * By default, only what this component renders from. rx compares the returned object with the previous state
1114
+ * on every dispatch, so it must not include the whole termdbConfig, which can be very large.
1115
+ *
1116
+ * forSession=true: the parts of the app state that make up a saved session instead, copied so that the app
1117
+ * state, which is deeply frozen and shared, is not changed. app_refresh merges a reopened session into the
1118
+ * current state, so what is not saved, such as the dataset config that init() in mass/store.ts fetches
1119
+ * again, keeps its current value. The derived properties of a geneVariant term are re-filled by every path
1120
+ * that opens a session, see trimGvTermsForSave().
1121
+ */
1122
+ getState(appState, forSession = false) {
1123
+ if (forSession) {
1124
+ const { vocab, activeCohort, termfilter, plots, groups, customTerms, reuse, nav } = appState;
1125
+ const state = structuredClone({ vocab, activeCohort, termfilter, plots, groups, customTerms, reuse, nav });
1126
+ return markSavedState(trimGvTermsForSave(state));
1127
+ }
1128
+ return {
1129
+ activeCohort: appState.activeCohort,
1130
+ termdbConfig: {
1131
+ requiredAuth: appState.termdbConfig?.requiredAuth,
1132
+ massNav: { tabs: { user: appState.termdbConfig?.massNav?.tabs?.user } }
1133
+ }
1134
+ };
1135
+ }
1136
+ /** Adds the methods that nav.ts calls on the api, since only the api is available outside the component */
1137
+ preApiFreeze(api) {
1138
+ api.showDaysLeftTip = (e) => {
1139
+ const tip = getDaysLeft(this.opts.sessionDaysLeft)?.tip;
1140
+ if (!tip) return;
1141
+ this.dom.copytip.clear().d.append("div").style("max-width", "300px").text(tip);
1142
+ const p = e.getBoundingClientRect();
1143
+ this.dom.copytip.show2(p.left, p.bottom + 5);
1144
+ };
1145
+ api.hideDaysLeftTip = () => this.dom?.copytip?.hide();
1146
+ }
1147
+ async init(appState) {
1148
+ this.dslabel = appState.vocab.dslabel;
1149
+ this.savedSessions = JSON.parse(localStorage.getItem("savedMassSessions") || `{}`);
1150
+ this.setRequiredAuth(appState.termdbConfig);
1151
+ this.initSessionOptions();
1152
+ }
1153
+ async main() {
1154
+ this.setRequiredAuth(this.state.termdbConfig);
1155
+ this.renderAuthInfo();
1156
+ this.mayLookupAfterSignIn();
1157
+ }
1158
+ /**
1159
+ * The sessions on the server are not looked up while the user is not signed in. So when the user signs in
1160
+ * after the launch, look them up then. Only a change to signed in triggers this, so that a lookup that keeps
1161
+ * failing is not repeated on every update of the app.
1162
+ */
1163
+ mayLookupAfterSignIn() {
1164
+ const signedIn = !!this.app.vocabApi.hasVerifiedToken();
1165
+ const justSignedIn = signedIn && !this.signedIn;
1166
+ this.signedIn = signedIn;
1167
+ if (justSignedIn && this.requiredAuth && !this.serverCachedSessions) {
1168
+ this.setServerCachedSessions();
1169
+ }
1170
+ }
1171
+ setRequiredAuth(termdbConfig) {
1172
+ this.requiredAuth = termdbConfig?.requiredAuth?.find((a) => a.route == this.route && a.type == "jwt");
1173
+ }
1174
+ /** Show the sign-in status when the dataset requires authorization. Hidden for a public dataset */
1175
+ renderAuthInfo() {
1176
+ const div = this.dom.authDiv;
1177
+ div.selectAll("*").remove();
1178
+ if (!datasetRequiresAuth(this.state.termdbConfig)) {
1179
+ div.style("display", "none");
1180
+ return;
1181
+ }
1182
+ div.style("display", "block");
1183
+ const vocabApi = this.app.vocabApi;
1184
+ const signedIn = vocabApi.hasVerifiedToken();
1185
+ const userTab2 = getUserTabContent(this.state.termdbConfig.massNav?.tabs?.user, this.state.activeCohort);
1186
+ const row = div.append("div");
1187
+ row.append("span").attr("data-testid", "sjpp-massnav-user-auth-label").style("font-weight", "bold").style("opacity", 0.65).text("ACCESS");
1188
+ row.append("span").attr("data-testid", "sjpp-massnav-user-auth-status").style("margin-left", "10px").text(userTab2?.status || getAuthStatus(signedIn, userTab2?.isPublic));
1189
+ const msg = vocabApi.tokenVerificationMessage;
1190
+ if (!signedIn && msg) row.append("span").style("margin-left", "5px").style("opacity", 0.65).text(msg);
1191
+ if (userTab2?.msgs?.length) {
1192
+ const table = table2col({ holder: div, margin: "2px 8px", testid: "sjpp-massnav-user-auth-info" });
1193
+ for (const m of userTab2.msgs) {
1194
+ const [td1, td2] = table.addRow(m.label);
1195
+ const target = m.email ? `mailto:${m.email}` : m.link;
1196
+ if (target) {
1197
+ const a = td2.append("a").attr("href", target).text(m.email || m.link);
1198
+ if (m.link) a.attr("target", "_blank");
1199
+ } else if (m.label) {
1200
+ td2.text(m.txt);
1201
+ } else {
1202
+ td2.remove();
1203
+ td1.attr("colspan", 2).style("color", null).text(m.txt);
1204
+ }
1205
+ }
1206
+ }
1207
+ if (userTab2?.list) {
1208
+ const listDiv = div.append("div").attr("data-testid", "sjpp-massnav-user-auth-list").style("margin", "5px 0 0 8px").style("font-size", "0.95em");
1209
+ listDiv.append("div").style("font-weight", "bold").text(userTab2.list.label);
1210
+ const ul = listDiv.append("ul").style("margin", "3px 0");
1211
+ for (const item of userTab2.list.items) ul.append("li").text(item);
1212
+ }
1213
+ }
1214
+ /**
1215
+ * Renders the session options right away. The lookup of the sessions on the server is optional, so it
1216
+ * is not awaited, since it must not delay or block the launch of the mass ui. The options are
1217
+ * rendered again when any lookup is done, since Delete is only shown when there is a session to delete.
1218
+ */
1219
+ initSessionOptions() {
1220
+ this.signedIn = !!this.app.vocabApi.hasVerifiedToken();
1221
+ this.renderSessionOptions();
1222
+ if (!this.serverCachedSessions) this.setServerCachedSessions();
1223
+ }
1224
+ /** The Open, Save, Share, Delete, and Download options. Delete is only available if there is something to delete */
1225
+ getSessionOptions() {
1226
+ const options = this.sessionOptions.slice();
1227
+ if (Object.keys(this.savedSessions).length || this.serverCachedSessions?.length) {
1228
+ options.push({
1229
+ label: `Delete`,
1230
+ icon: "&#x2715;",
1231
+ title: "Delete a saved session",
1232
+ callback: () => this.delete()
1233
+ });
1234
+ }
1235
+ if (this.opts.sessionDaysLeft != null && this.opts.sessionId) {
1236
+ options.push({
1237
+ label: `Download`,
1238
+ icon: "&#x2913;",
1239
+ title: "Download this session as a file",
1240
+ callback: () => this.download(this.opts.sessionId.replace(/[^\w-]/g, "_"), this.getState(this.app.getState(), true))
1241
+ });
1242
+ }
1243
+ return options;
1244
+ }
1245
+ /** Render the buttons of the session options */
1246
+ renderSessionOptions() {
1247
+ if (!this.dom?.optionsDiv) return;
1248
+ const options = this.getSessionOptions();
1249
+ this.dom.optionsDiv.selectAll("*").remove();
1250
+ this.dom.optionsDiv.selectAll("button").data(options).enter().append("button").style("margin", "10px 0").style("padding", "10px 15px").style("border-radius", "20px").style("border-color", "#ededed").attr(
1251
+ "data-testid",
1252
+ (d) => `sjpp-massnav-user-session-btn-${d.label.toLowerCase().replace(/\s/g, "-")}`
1253
+ ).attr("aria-label", (d) => d.title).attr("title", (d) => d.title).html((d) => `${d.icon} ${d.label}`).on("click", async (event, d) => {
1254
+ event.stopPropagation();
1255
+ this.clearContent();
1256
+ await d.callback();
1257
+ if (this.dom?.contentDiv?.node()?.hasChildNodes()) this.dom.contentDiv.style("padding-bottom", "10px");
1258
+ });
1259
+ }
1260
+ clearContent() {
1261
+ clearTimeout(this.confirmationTimer);
1262
+ this.confirmationTimer = void 0;
1263
+ this.dom.contentDiv.interrupt();
1264
+ this.dom.contentDiv.selectAll("*").remove();
1265
+ this.dom.contentDiv.style("opacity", 1).style("padding-bottom", null);
1266
+ }
1267
+ /**
1268
+ * Removes what is not under this.dom of the component, which ComponentApi.destroy() removes. The copytip
1269
+ * Menu is in the document body, with a listener on the body, so it must be destroyed here.
1270
+ */
1271
+ destroy() {
1272
+ clearTimeout(this.copyTipTimer);
1273
+ this.clearContent();
1274
+ this.dom.copytip.destroy();
1275
+ }
1276
+ async open() {
1277
+ const radioName = `sjpp-massnav-user-session-open-radio-` + Math.random().toString().slice(-6);
1278
+ const div = this.dom.contentDiv;
1279
+ div.append("div").style("display", "none").style("padding", "3px 9px").html(`
1280
+ <b>Open in</b>
1281
+ <label>
1282
+ <input type='radio' name='${radioName}' value='new' style='margin-right: 0; vertical-align: bottom'/>
1283
+ <span>a new tab</span>
1284
+ </label>
1285
+ <label style='margin-left: 5px'>
1286
+ <input type='radio' name='${radioName}' value='current' checked=checked style='margin-right: 0; vertical-align: bottom'/>
1287
+ <span>current tab</span>
1288
+ </label>
1289
+ `);
1290
+ const getTargetWindow = () => div.node().querySelector(`[name="${radioName}"]:checked`).value;
1291
+ const t = await this.listSessions({
1292
+ trClickHandler: async (_event, d) => {
1293
+ const { loc, id: id2 } = d;
1294
+ if (!id2) return;
1295
+ if (loc == "browser") {
1296
+ this.sessionName = id2;
1297
+ const state = structuredClone(this.savedSessions[id2]);
1298
+ if (this.refuses(state)) return;
1299
+ await preprocessState(state, this.app);
1300
+ const targetWindow = getTargetWindow();
1301
+ if (targetWindow == "current") {
1302
+ this.app.dispatch({ type: "app_refresh", state });
1303
+ } else if (window.location.origin == this.hostURL) {
1304
+ window.open(`/?mass-session-id=${encodeURIComponent(id2)}&src=browser`);
1305
+ } else {
1306
+ if (state.embedder) parentCorsMessage({ state });
1307
+ else {
1308
+ const { protocol, host, search, origin, href } = window.location;
1309
+ const embedder = { protocol, host, search, origin, href };
1310
+ parentCorsMessage({ state: Object.assign({ embedder }, state) });
1311
+ }
1312
+ }
1313
+ this.clearContent();
1314
+ } else if (loc == "server") {
1315
+ const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
1316
+ const body = { id: id2, route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
1317
+ const res = await dofetch3(`/massSession?`, { headers, body });
1318
+ if (!res.state) throw res.error || "unable to get the cached session from the server";
1319
+ if (this.refuses(res.state)) return;
1320
+ await preprocessState(res.state, this.app);
1321
+ this.savedSessions[id2] = res.state;
1322
+ const targetWindow = getTargetWindow();
1323
+ if (targetWindow == "current") {
1324
+ this.app.dispatch({ type: "app_refresh", state: res.state });
1325
+ } else if (window.location.origin == this.hostURL) {
1326
+ window.open(
1327
+ `/?mass-session-id=${encodeURIComponent(id2)}&src=cred&dslabel=${encodeURIComponent(
1328
+ this.dslabel
1329
+ )}&route=${encodeURIComponent(this.route)}`
1330
+ );
1331
+ } else {
1332
+ parentCorsMessage(res);
1333
+ }
1334
+ this.clearContent();
1335
+ }
1336
+ }
1337
+ });
1338
+ t.headtr.select("th").text("Open from");
1339
+ const tr1 = t.tbody.insert("tr", "tr");
1340
+ tr1.append("td").style("text-align", "center").style("padding", "3px 9px").text("Local file");
1341
+ const label = tr1.append("td").style("text-align", "left").append("label");
1342
+ label.append("span").style("padding", "3px 9px").style("text-decoration", "underline").style("cursor", "pointer").text("Choose File");
1343
+ label.append("input").attr("type", "file").attr("placeholder", "file name").style("opacity", 0).style("width", "0.1px").style("height", "0.1px").style("position", "absolute").on("change", async (event) => {
1344
+ const file = event.target.files.item(0);
1345
+ const json = await file.text();
1346
+ let sessionName = file.name;
1347
+ if (this.savedSessions[sessionName]) {
1348
+ sessionName = prompt(
1349
+ `Leave as-is to overwrite a session with the same name, or enter a different session name.`,
1350
+ sessionName
1351
+ );
1352
+ if (!sessionName) return;
1353
+ }
1354
+ this.sessionName = sessionName;
1355
+ const state = JSON.parse(json);
1356
+ if (this.refuses(state)) return;
1357
+ await preprocessState(state, this.app);
1358
+ this.savedSessions[sessionName] = state;
1359
+ localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
1360
+ const targetWindow = getTargetWindow();
1361
+ if (targetWindow == "current") {
1362
+ this.app.dispatch({ type: "app_refresh", state });
1363
+ } else if (window.location.origin == this.hostURL) {
1364
+ window.open(`/?mass-session-id=${encodeURIComponent(sessionName)}&src=browser`);
1365
+ } else {
1366
+ if (state.embedder) parentCorsMessage({ state });
1367
+ else {
1368
+ const { protocol, host, search, origin, href } = window.location;
1369
+ const embedder = { protocol, host, search, origin, href };
1370
+ parentCorsMessage({ state: Object.assign({ embedder }, state) });
1371
+ }
1372
+ }
1373
+ this.clearContent();
1374
+ });
1375
+ }
1376
+ async listSessions(opts = {}) {
1377
+ const table = this.dom.contentDiv.append("table").attr("class", "sjpp-controls-table");
1378
+ const headtr = table.append("thead").append("tr");
1379
+ headtr.selectAll("th").data(["Cache Location", "Session ID"]).enter().append("th").style("text-align", (_, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").text((d) => d);
1380
+ const sessionIds = Object.keys(this.savedSessions).map((id2) => ({
1381
+ loc: "browser",
1382
+ id: id2
1383
+ }));
1384
+ if (!this.serverCachedSessions) await this.setServerCachedSessions();
1385
+ sessionIds.push(...(this.serverCachedSessions || []).map((id2) => ({ loc: "server", id: id2 })));
1386
+ const tbody = table.append("tbody");
1387
+ const trs = tbody.selectAll("tr").data(sessionIds).enter().append("tr").on("click", opts.trClickHandler || null);
1388
+ trs.selectAll("td").data((d) => [d, d]).enter().append("td").style("text-align", (_, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").style("cursor", "pointer").text((d, i) => i === 0 ? d.loc : d.id);
1389
+ if (!this.serverCachedSessions?.length && this.requiredAuth && !this.app.vocabApi.hasVerifiedToken()) {
1390
+ table.append("tbody").append("tr").selectAll("td").data(["server", "requires sign-in"]).enter().append("td").style("text-align", (_, i) => i === 0 ? "center" : "left").style("padding", "3px 9px").text((d) => d);
1391
+ }
1392
+ return { table, headtr, tbody, trs };
1393
+ }
1394
+ /**
1395
+ * Looks up the ids of the sessions that the user saved on the server. This never throws, since the
1396
+ * sessions on the server are optional: the sessions of the browser, and everything else in the mass ui,
1397
+ * must work when the lookup fails, for example from a network error or a failure to get a token.
1398
+ *
1399
+ * Only a successful lookup is kept in serverCachedSessions. It stays undefined when the lookup is not made
1400
+ * because the user is not signed in, or when it fails, so that it is tried again on the next use.
1401
+ * Callers that arrive while a lookup is in progress share it instead of sending another request.
1402
+ */
1403
+ setServerCachedSessions() {
1404
+ if (this.serverSessionsRequest) return this.serverSessionsRequest;
1405
+ if (!this.mayLookupSessions()) return Promise.resolve();
1406
+ this.serverSessionsRequest = this.lookupServerSessions().finally(() => {
1407
+ this.serverSessionsRequest = void 0;
1408
+ this.renderSessionOptions();
1409
+ });
1410
+ return this.serverSessionsRequest;
1411
+ }
1412
+ /**
1413
+ * Returns true when the sessions on the server should be looked up now. A dataset without a jwt
1414
+ * credential has none, and the lookup is not made, so serverCachedSessions is an empty list.
1415
+ * It is also not made before the user is signed in, when the server would reject the request.
1416
+ */
1417
+ mayLookupSessions() {
1418
+ try {
1419
+ const state = this.app.getState();
1420
+ this.requiredAuth = state.termdbConfig?.requiredAuth?.find((a) => a.route == this.route && a.type == "jwt");
1421
+ if (!this.requiredAuth) {
1422
+ this.serverCachedSessions = [];
1423
+ return false;
1424
+ }
1425
+ return !!this.app.vocabApi.hasVerifiedToken();
1426
+ } catch (e) {
1427
+ console.warn(`unable to get the sessions saved on the server: ${e?.message || e}`);
1428
+ return false;
1429
+ }
1430
+ }
1431
+ async lookupServerSessions() {
1432
+ try {
1433
+ const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
1434
+ const body = { route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
1435
+ const res = await dofetch3("/sessionIds", { headers, body });
1436
+ if (!Array.isArray(res?.sessionIds)) throw res?.error || "unexpected response";
1437
+ this.serverCachedSessions = res.sessionIds;
1438
+ } catch (e) {
1439
+ console.warn(`unable to get the sessions saved on the server: ${e?.message || e}`);
1440
+ }
1441
+ }
1442
+ async save() {
1443
+ const div = this.dom.contentDiv;
1444
+ const inputDiv = div.append("div");
1445
+ inputDiv.append("span").text("Save as");
1446
+ const sessionNames = Object.keys(this.savedSessions);
1447
+ if (!this.serverCachedSessions) await this.setServerCachedSessions();
1448
+ sessionNames.push(...(this.serverCachedSessions || []).filter((d) => !sessionNames.includes(d)));
1449
+ const placeholder = this.sessionName || "unnamed-session";
1450
+ const input = inputDiv.append("input").attr("type", "text").attr("placeholder", placeholder).style("width", "220px").on("input", () => {
1451
+ searchResultDiv.selectAll("*").remove();
1452
+ const value = input.property("value");
1453
+ const exactMatch = sessionNames.filter((s) => s === value);
1454
+ const startsWith = sessionNames.filter((s) => s.startsWith(value));
1455
+ const includes = sessionNames.filter((s) => s.includes(value) && s !== value && !startsWith.includes(s));
1456
+ searchResultDiv.selectAll("div").data([...exactMatch, ...startsWith, ...includes]).enter().append("div").attr("class", "sja_menuoption").attr("data-testid", `sjpp-massnav-user-session-save-option`).text((d) => d).on("click", (_, d) => {
1457
+ input.property("value", d);
1458
+ searchResultDiv.selectAll("*").remove();
1459
+ });
1460
+ });
1461
+ const searchResultDiv = div.append("div");
1462
+ const submitDiv = div.append("div");
1463
+ submitDiv.append("span").html("Save to&nbsp;");
1464
+ submitDiv.append("button").style("min-width", "80px").text("Browser").attr(
1465
+ "title",
1466
+ `Save the session in your current browser's cache. The session can be easily recovered, but not shared among your other devices`
1467
+ ).on("click", () => {
1468
+ this.sessionName = input.property("value") || placeholder;
1469
+ this.savedSessions[this.sessionName] = this.getState(this.app.getState(), true);
1470
+ localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
1471
+ this.renderSessionOptions();
1472
+ this.confirmAction(`Cached '${this.sessionName}' in browser`);
1473
+ });
1474
+ submitDiv.append("button").style("min-width", "80px").text("File").attr(
1475
+ "title",
1476
+ `Save the session into a local file. The session can be easily recoved using the 'Open from local file' option.`
1477
+ ).on("click", () => {
1478
+ const name = input.property("value") || placeholder;
1479
+ this.download(name, this.getState(this.app.getState(), true));
1480
+ this.confirmAction(`Downloaded '${name}'`);
1481
+ });
1482
+ if (this.requiredAuth) {
1483
+ const requiresSignIn = this.app.vocabApi.hasVerifiedToken() ? "" : "Requires sign-in. ";
1484
+ submitDiv.append("button").style("min-width", "80px").text("Server").attr(
1485
+ "title",
1486
+ `${requiresSignIn}Save the session into a remote server. The session can be easily shared across your different devices and recovered using the 'Open from server' option.`
1487
+ ).property("disabled", !this.app.vocabApi.hasVerifiedToken()).on("click", async () => {
1488
+ if (!this.app.vocabApi.hasVerifiedToken()) {
1489
+ alert("Requires sign-in");
1490
+ return;
1491
+ }
1492
+ const name = input.property("value") || placeholder;
1493
+ const res = await this.getSessionUrl(name);
1494
+ if (res.error || res.id != name) {
1495
+ sayerror(submitDiv, `Unable to save '${name}' on the server: ${res.error || "unexpected session id"}`);
1496
+ return;
1497
+ }
1498
+ if (this.serverCachedSessions && !this.serverCachedSessions.includes(name))
1499
+ this.serverCachedSessions.push(name);
1500
+ this.renderSessionOptions();
1501
+ this.confirmAction(`Saved '${name}' on the server`);
1502
+ });
1503
+ }
1504
+ }
1505
+ // true when a saved state is not opened, see sessionForm.ts. the reason is shown
1506
+ refuses(state) {
1507
+ const reason = getSavedStateRefusal(state);
1508
+ if (!reason) return false;
1509
+ this.clearContent();
1510
+ this.app.printError(reason);
1511
+ return true;
1512
+ }
1513
+ download(name, state) {
1514
+ const ext = name.endsWith(".txt") ? "" : ".txt";
1515
+ to_textfile(`${name}${ext}`, JSON.stringify(state));
1516
+ }
1517
+ /** With a filename, saves the session on the server under that name and returns the response.
1518
+ Without one, creates a shareable link and renders it. */
1519
+ async getSessionUrl(filename = "") {
1520
+ const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
1521
+ const state = this.getState(this.app.getState(), true);
1522
+ const { protocol, host, search, origin, href } = window.location;
1523
+ state.embedder = { protocol, host, search, origin, href };
1524
+ if (filename) {
1525
+ state.__sessionFor__ = {
1526
+ route: this.route,
1527
+ filename,
1528
+ dslabel: this.dslabel,
1529
+ embedder: window.location.hostname
1530
+ };
1531
+ }
1532
+ const res = await dofetch3("/massSession", {
1533
+ headers,
1534
+ method: "POST",
1535
+ body: JSON.stringify(state)
1536
+ });
1537
+ if (filename) return res;
1538
+ const div = this.dom.contentDiv;
1539
+ if (res.error || !res.id) {
1540
+ sayerror(div.append("div"), `Unable to create a session link: ${res.error || "missing session id"}`);
1541
+ return;
1542
+ }
1543
+ const url = `${this.hostURL}/?mass-session-id=${encodeURIComponent(res.id)}&noheader=1`;
1544
+ const linkDiv = div.append("div").style("margin", "10px");
1545
+ const a = linkDiv.append("a").style("display", "none").attr("href", url).attr("target", "_blank").text(res.id);
1546
+ linkDiv.append("button").style("cursor", "pointer").text("Open link").on("click", () => {
1547
+ a.node().click();
1548
+ });
1549
+ linkDiv.append("button").style("cursor", "pointer").style("margin-left", "10px").text("Copy link").on("click", async (event) => {
1550
+ await navigator.clipboard.writeText(url);
1551
+ if (!this.dom?.copytip) return;
1552
+ this.dom.copytip.clear().showunder(event.target);
1553
+ this.dom.copytip.d.append("div").html("&#10003;");
1554
+ clearTimeout(this.copyTipTimer);
1555
+ this.copyTipTimer = setTimeout(() => this.dom?.copytip?.hide(), 1e3);
1556
+ });
1557
+ if (this.hostURL != window.location.origin) {
1558
+ a.on("click", (event) => {
1559
+ event.preventDefault();
1560
+ parentCorsMessage({ state }, "noredirect");
1561
+ return false;
1562
+ });
1563
+ }
1564
+ linkDiv.append("div").html(`
1565
+ <br>
1566
+ <div style="font-size: 1em; opacity:.6">
1567
+ <span>NOTES</span>
1568
+ <ul>
1569
+ <li>A recovered session may hide data or views to users that are not authorized to access the saved datasets or features.</li>
1570
+ <li>This session will be saved for ${this.opts.massSessionDuration} days.</li>
1571
+ </ul>
1572
+ </div>`);
1573
+ }
1574
+ async delete() {
1575
+ const t = await this.listSessions({
1576
+ trClickHandler: function(event) {
1577
+ const input = this.lastChild.querySelector("input");
1578
+ const checked = event.target == input ? input.checked : !input.checked;
1579
+ select_default(this).style("text-decoration", checked ? "line-through" : "");
1580
+ if (event.target != input) input.checked = checked;
1581
+ const checkedRows = t.table.node().querySelectorAll("input:checked");
1582
+ submitBtn.property("disabled", checkedRows.length ? false : true);
1583
+ }
1584
+ });
1585
+ t.headtr.append("th").text("Delete");
1586
+ t.trs.each(function(d) {
1587
+ select_default(this).append("td").style("text-align", "center").append("input").attr("type", "checkbox").attr("value", d.id);
1588
+ });
1589
+ const submitBtn = this.dom.contentDiv.append("div").style("margin-top", "10px").append("button").text("Delete selected sessions").property("disabled", true).on("click", async () => {
1590
+ errorDiv.selectAll("*").remove();
1591
+ const inputs = t.table.node().querySelectorAll("input");
1592
+ const sessionIdsDeletedFromServer = [];
1593
+ for (const input of inputs) {
1594
+ if (select_default(input).property("checked")) {
1595
+ const d = input.parentNode.parentNode.__data__;
1596
+ if (d.loc == "browser") {
1597
+ delete this.savedSessions[input.value];
1598
+ } else if (d.loc == "server") {
1599
+ sessionIdsDeletedFromServer.push(input.value);
1600
+ } else throw `unknown cache location=${d.loc}`;
1601
+ }
1602
+ }
1603
+ localStorage.setItem("savedMassSessions", JSON.stringify(this.savedSessions));
1604
+ if (sessionIdsDeletedFromServer.length) {
1605
+ submitBtn.property("disabled", true);
1606
+ let error, failedIds;
1607
+ try {
1608
+ const headers = await this.app.vocabApi.mayGetAuthHeaders(this.route);
1609
+ const errors = [];
1610
+ failedIds = [];
1611
+ for (const ids of getDeletionBatches(sessionIdsDeletedFromServer)) {
1612
+ const body = { ids, route: this.route, dslabel: this.dslabel, embedder: window.location.hostname };
1613
+ try {
1614
+ const res = await dofetch3(`/massSession?`, { method: "DELETE", headers, body });
1615
+ if (res.error) {
1616
+ errors.push(res.error);
1617
+ failedIds.push(...res.failedIds || ids);
1618
+ }
1619
+ } catch (e) {
1620
+ errors.push(e.message || e);
1621
+ failedIds.push(...ids);
1622
+ }
1623
+ }
1624
+ if (errors.length) error = errors.join("; ");
1625
+ } catch (e) {
1626
+ error = e.message || e;
1627
+ failedIds = sessionIdsDeletedFromServer;
1628
+ }
1629
+ const deletedIds = sessionIdsDeletedFromServer.filter((id2) => !failedIds?.includes(id2));
1630
+ this.serverCachedSessions = this.serverCachedSessions?.filter((id2) => !deletedIds.includes(id2));
1631
+ if (error) {
1632
+ t.trs.filter((d) => d.loc == "browser" ? !this.savedSessions[d.id] : deletedIds.includes(d.id)).remove();
1633
+ const checkedRows = t.table.node().querySelectorAll("input:checked");
1634
+ submitBtn.property("disabled", !checkedRows.length);
1635
+ sayerror(errorDiv, `Error deleting server session(s): ${error}`);
1636
+ this.renderSessionOptions();
1637
+ return;
1638
+ }
1639
+ }
1640
+ this.renderSessionOptions();
1641
+ this.clearContent();
1642
+ });
1643
+ const errorDiv = this.dom.contentDiv.append("div");
1644
+ }
1645
+ /** Show a message that fades out, then clear the content */
1646
+ confirmAction(message) {
1647
+ this.clearContent();
1648
+ this.dom.contentDiv.append("div").text(message);
1649
+ this.dom.contentDiv.transition().delay(3e3).duration(1e3).style("opacity", 0);
1650
+ this.confirmationTimer = setTimeout(() => this.clearContent(), 4e3);
1651
+ }
1652
+ };
1653
+ function getDeletionBatches(ids) {
1654
+ const maxEncodedIdsLength = 1e3;
1655
+ const batches = [];
1656
+ let batch = [];
1657
+ for (const id2 of ids) {
1658
+ if (batch.length && encodeURIComponent(JSON.stringify([...batch, id2])).length > maxEncodedIdsLength) {
1659
+ batches.push(batch);
1660
+ batch = [];
1661
+ }
1662
+ batch.push(id2);
1663
+ }
1664
+ if (batch.length) batches.push(batch);
1665
+ return batches;
1666
+ }
1667
+ async function preprocessState(state, app) {
1668
+ delete state.termdbConfig;
1669
+ if (state.plots) {
1670
+ const promises = [];
1671
+ for (const plot of state.plots) {
1672
+ promises.push(
1673
+ (async () => {
1674
+ const _ = await importPlot(plot.chartType);
1675
+ return await _.getPlotConfig(plot, app);
1676
+ })()
1677
+ );
1678
+ }
1679
+ try {
1680
+ await Promise.all(promises);
1681
+ } catch (e) {
1682
+ console.error(e);
1683
+ app.printError(e);
1684
+ }
1685
+ }
1686
+ }
1687
+ var userInit = getCompInit(MassUser);
1688
+
1689
+ // mass/nav.ts
1690
+ var activeTabBgColor = "#ececec";
1691
+ var activeTabBgColorHover = "#e0e0e0";
1692
+ var activeTabTextColor = "black";
1693
+ var inactiveTabBgColorHover = "#fcfced";
1694
+ var inactiveTabTextColor = "gray";
1695
+ var instanceNum = 0;
1696
+ var idPrefix = "_MASS_AUTOID_" + Math.random().toString().slice(-6);
1697
+ var id = Number((+/* @__PURE__ */ new Date()).toString().slice(-8));
1698
+ var headtip = new Menu({ padding: "0px", offsetX: 0, offsetY: 0 });
1699
+ headtip.d.style("z-index", 5555);
1700
+ var aboutTab = { top: "ABOUT", mid: "", btm: "", subheader: "about" };
1701
+ var chartTab = { top: "CHARTS", mid: "NONE", btm: "", subheader: "charts" };
1702
+ var groupsTab = { top: "GROUPS", mid: "NONE", btm: "", subheader: "groups" };
1703
+ var filterTab = { top: "FILTER", mid: "NONE", btm: "", subheader: "filter" };
1704
+ var userTab = { top: "SESSION", mid: "", btm: "", subheader: "user" };
1705
+ function getUserTabMid(termdbConfig, activeCohort = -1) {
1706
+ if (!termdbConfig?.requiredAuth?.length) return "";
1707
+ const auth = termdbConfig.clientAuthResult;
1708
+ const keys = termdbConfig.selectCohort?.values?.[activeCohort]?.keys || [];
1709
+ const role = [auth?.role, ...keys.map((k) => auth?.[k]?.role)].find((r) => typeof r === "string" && r);
1710
+ return role ? role.toUpperCase() : "";
1711
+ }
1712
+ function getId() {
1713
+ return idPrefix + "_" + id++;
1714
+ }
1715
+ var TdbNav = class _TdbNav {
1716
+ static {
1717
+ this.type = "nav";
1718
+ }
1719
+ constructor(opts) {
1720
+ this.type = _TdbNav.type;
1721
+ this.instanceNum = instanceNum++;
1722
+ this.tabs = [];
1723
+ this.activeTab = 0;
1724
+ this.activeCohort = 0;
1725
+ this.samplecounts = {};
1726
+ this.searching = false;
1727
+ this.massSessionDuration = opts.massSessionDuration;
1728
+ this.pkgver = opts.pkgver || null;
1729
+ setInteractivity(this);
1730
+ setRenderers(this);
1731
+ }
1732
+ async init(appState) {
1733
+ this.cohortFilter = getFilterItemByTag(appState.termfilter.filter, "cohortFilter");
1734
+ this.initUI(appState);
1735
+ if (appState?.termdbConfig?.selectCohort) {
1736
+ this.dom.tds.filter((d) => d.colNum === 0).style("display", "");
1737
+ this.cohortNames = appState.termdbConfig.selectCohort.values.map((d) => d.keys.slice().sort().join(","));
1738
+ }
1739
+ this.components = await multiInit({
1740
+ filter: filterRxCompInit({
1741
+ app: this.app,
1742
+ vocabApi: this.app.vocabApi,
1743
+ holder: this.dom.subheader.filter.append("div").style("margin", "5px"),
1744
+ hideLabel: this.opts.header_mode === "with_tabs",
1745
+ emptyLabel: "+Add new filter",
1746
+ callback: (filter) => {
1747
+ this.app.dispatch({
1748
+ type: "filter_replace",
1749
+ filter
1750
+ });
1751
+ }
1752
+ }),
1753
+ charts: chartsInit({
1754
+ app: this.app,
1755
+ holder: this.dom.subheader.charts,
1756
+ vocab: this.opts.vocab
1757
+ }),
1758
+ groups: groupsInit({
1759
+ app: this.app,
1760
+ holder: this.dom.subheader.groups,
1761
+ vocab: this.opts.vocab
1762
+ }),
1763
+ recover: recoverInit({
1764
+ app: this.app,
1765
+ holder: this.dom.recoverDiv,
1766
+ // TODO: ???? may limit the tracked state to only the filter, activeCohort ???
1767
+ getState: (appState2) => appState2,
1768
+ reactsTo: (action) => action.type != "plot_edit",
1769
+ maxHistoryLen: 5
1770
+ }),
1771
+ about: aboutInit({
1772
+ app: this.app,
1773
+ subheader: this.dom.subheader.about,
1774
+ instanceNum: this.instanceNum,
1775
+ aboutOverrides: appState?.termdbConfig?.massNav?.tabs?.about || null,
1776
+ selectCohort: appState?.termdbConfig?.selectCohort || null
1777
+ }),
1778
+ chat: chatInit({
1779
+ app: this.app,
1780
+ subheader: this.dom.subheader.chat
1781
+ }),
1782
+ user: userInit({
1783
+ app: this.app,
1784
+ subheader: this.dom.subheader.user,
1785
+ massSessionDuration: this.opts.massSessionDuration,
1786
+ sessionDaysLeft: this.app.opts.sessionDaysLeft ?? null,
1787
+ sessionId: this.app.opts.sessionId || null
1788
+ })
1789
+ });
1790
+ }
1791
+ reactsTo(action) {
1792
+ if (action.type.startsWith("filter")) return true;
1793
+ if (action.type.startsWith("cohort")) return true;
1794
+ if (action.type.startsWith("tab")) return true;
1795
+ if (action.type == "plot_prep") return true;
1796
+ if (action.type == "plot_create") return true;
1797
+ if (action.type == "plot_delete") return true;
1798
+ if (action.type == "app_refresh") return true;
1799
+ if (action.type.endsWith("_customTerm")) return true;
1800
+ if (action.type.endsWith("_group")) return true;
1801
+ }
1802
+ getState(appState) {
1803
+ return {
1804
+ searching: this.searching,
1805
+ // for detection of internal state change
1806
+ nav: appState.nav,
1807
+ activeCohort: appState.activeCohort,
1808
+ termdbConfig: appState.termdbConfig,
1809
+ filter: appState.termfilter.filter,
1810
+ plots: appState.plots,
1811
+ groups: appState.groups
1812
+ };
1813
+ }
1814
+ async main() {
1815
+ this.dom.tabDiv.style("display", this.state.nav.header_mode === "with_tabs" ? "inline-block" : "none");
1816
+ this.dom.tip.hide();
1817
+ this.activeTab = this.state.nav.activeTab;
1818
+ this.prevCohort = this.activeCohort;
1819
+ this.activeCohort = +this.state.activeCohort;
1820
+ this.filterUiRoot = getFilterItemByTag(this.state.filter, "filterUiRoot");
1821
+ this.cohortFilter = getFilterItemByTag(this.state.filter, "cohortFilter");
1822
+ if (this.cohortNames) {
1823
+ this.activeCohortName = this.cohortNames[this.activeCohort];
1824
+ if (this.activeCohort !== -1)
1825
+ this.activeCohortLabel = this.state.termdbConfig.selectCohort.values[this.activeCohort].shortLabel;
1826
+ }
1827
+ this.filterJSON = JSON.stringify(this.state.filter);
1828
+ this.cohortsData = await this.app.vocabApi.getCohortsData();
1829
+ if (this.state.nav.header_mode === "with_tabs") {
1830
+ if (!(this.activeCohort in this.samplecounts)) {
1831
+ this.samplecounts[this.activeCohort] = await this.app.vocabApi.getCohortSampleCount(this.activeCohortName);
1832
+ }
1833
+ if (!(this.filterJSON in this.samplecounts)) {
1834
+ if (!this.filterUiRoot || !this.filterUiRoot.lst.length) {
1835
+ this.samplecounts[this.filterJSON] = this.samplecounts[this.activeCohort];
1836
+ } else {
1837
+ const n = await this.app.vocabApi.getFilteredSampleCount(this.filterJSON);
1838
+ this.samplecounts[this.filterJSON] = n;
1839
+ }
1840
+ }
1841
+ }
1842
+ this.updateUI();
1843
+ }
1844
+ };
1845
+ var navInit = getCompInit(TdbNav);
1846
+ function setRenderers(self) {
1847
+ self.initUI = (appState) => {
1848
+ const verifiedToken = self.app.vocabApi.verifiedToken;
1849
+ const invalidTokenErrorHandling = appState.termdbConfig.invalidTokenErrorHandling;
1850
+ if (!verifiedToken && invalidTokenErrorHandling?.affectedCharts?.includes("*"))
1851
+ throw new Error(appState.termdbConfig.invalidTokenErrorHandling.errorMessage);
1852
+ const header = self.opts.holder.append("div").style("white-space", "nowrap").style("display", "flex").style("align-items", "stretch");
1853
+ const massNav = appState.termdbConfig?.massNav || {};
1854
+ const titleDiv = header.append("div").style("order", "2").style("align-self", "flex-start").style("font-size", "1.1em").style("margin", "50px 10px 0 0").text(massNav?.title?.text);
1855
+ const tabDiv = header.append("div").style("display", "none").style("vertical-align", "bottom");
1856
+ const controlsDiv = header.append("div").style("order", "1").style("margin", "10px 10px 10px auto").style("text-align", "right");
1857
+ if (self.opts.header_mode === "only_buttons") {
1858
+ tabDiv.style("display", "none");
1859
+ titleDiv.style("display", "none");
1860
+ controlsDiv.style("display", "none");
1861
+ }
1862
+ self.opts.holder.attr("class", "sjpp-nav");
1863
+ self.dom = {
1864
+ holder: self.opts.holder,
1865
+ header,
1866
+ tabDiv,
1867
+ controlsDiv,
1868
+ searchDiv: controlsDiv.append("div").style("margin", "10px"),
1869
+ recoverDiv: controlsDiv.append("div").style("display", "inline-block"),
1870
+ pdfDiv: controlsDiv.append("div").style("display", "inline-block").style("padding", "4px").style("vertical-align", "middle"),
1871
+ deleteAllDiv: controlsDiv.append("div").style("display", "inline-block").style("padding", "4px").style("vertical-align", "middle"),
1872
+ helpDiv: controlsDiv.append("div").style("display", "none"),
1873
+ subheaderDiv: self.opts.holder.append("div").style("display", "block").style("border-bottom", "1px solid #000"),
1874
+ messageDiv: self.opts.holder.append("div").style("margin", "30px").style("display", "none"),
1875
+ titleDiv,
1876
+ tip: new Menu({ padding: "5px" })
1877
+ };
1878
+ icons["trash"](self.dom.deleteAllDiv, {
1879
+ handler: self.deletePlots,
1880
+ title: "Delete all plots. To revert, click Undo button"
1881
+ });
1882
+ icons["pdf"](self.dom.pdfDiv, {
1883
+ handler: self.opts.downloadPlots,
1884
+ title: "Generate a PDF of all the plots opened"
1885
+ });
1886
+ if (self.opts.header_mode === "with_cohortHtmlSelect") {
1887
+ self.dom.cohortStandaloneDiv = header.append("div").style("display", "inline-block").style("margin", "10px").style("vertical-align", "top");
1888
+ self.dom.cohortStandaloneDiv.append("label").html("Cohort: ");
1889
+ self.dom.cohortSelect = self.dom.cohortStandaloneDiv.append("select").on("change", async function() {
1890
+ self.app.dispatch({ type: "cohort_set", activeCohort: +this.value });
1891
+ });
1892
+ self.dom.cohortSelect.selectAll("option").data(appState.termdbConfig.selectCohort.values).enter().append("option").attr("value", (d, i) => i).property("selected", (d, i) => i === appState.activeCohort).html((d) => d.shortLabel);
1893
+ }
1894
+ self.dom.subheader = Object.freeze({
1895
+ // For either the COHORT or ABOUT tab
1896
+ about: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-about").style("display", "none"),
1897
+ search: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-search").style("display", "none"),
1898
+ groups: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-groups").style("display", "none"),
1899
+ charts: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-charts").style("display", "none"),
1900
+ filter: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-filter").style("display", "none"),
1901
+ chat: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-chat").style("display", "none"),
1902
+ user: self.dom.subheaderDiv.append("div").attr("data-testid", "sjpp-mass-nav-subheader-user").style("display", "none")
1903
+ // cart: self.dom.subheaderDiv.append('div').style('display', 'none').html('<br/>Cart feature under construction - work in progress<br/>&nbsp;<br/>'),
1904
+ });
1905
+ if (!massNav.tabs?.about?.hide) {
1906
+ self.tabs.push(aboutTab);
1907
+ const override = Object.assign({}, massNav.tabs?.about);
1908
+ if (appState.termdbConfig?.selectCohort) {
1909
+ if (!override.top) override.top = "COHORT";
1910
+ } else {
1911
+ if (!override.mid) override.mid = self.pickDatasetLabel(appState);
1912
+ }
1913
+ Object.assign(aboutTab, override);
1914
+ }
1915
+ if (!massNav.tabs?.charts?.hide) {
1916
+ self.tabs.push(chartTab);
1917
+ Object.assign(chartTab, massNav.tabs?.charts);
1918
+ }
1919
+ if (!massNav.tabs?.groups?.hide) {
1920
+ self.tabs.push(groupsTab);
1921
+ Object.assign(groupsTab, massNav.tabs?.groups);
1922
+ }
1923
+ if (!massNav.tabs?.filter?.hide) {
1924
+ self.tabs.push(filterTab);
1925
+ Object.assign(filterTab, massNav.tabs?.filter);
1926
+ }
1927
+ if (!massNav.tabs?.chat?.hide) {
1928
+ if (appState.termdbConfig?.queries?.chat) {
1929
+ const chatTab = { top: "CHAT", mid: "", btm: "", subheader: "chat" };
1930
+ Object.assign(chatTab, massNav.tabs?.chat);
1931
+ chatTab.top = "CHAT";
1932
+ self.tabs.push(chatTab);
1933
+ } else {
1934
+ const searchTab = { top: "SEARCH", mid: "", btm: "", subheader: "chat" };
1935
+ Object.assign(searchTab, massNav.tabs?.chat);
1936
+ searchTab.top = "SEARCH";
1937
+ self.tabs.push(searchTab);
1938
+ }
1939
+ }
1940
+ if (!massNav.tabs?.user?.hide) {
1941
+ const override = Object.assign({}, massNav.tabs?.user);
1942
+ if (!override.mid) override.mid = getUserTabMid(appState.termdbConfig, appState.activeCohort);
1943
+ self.tabs.push(Object.assign({}, userTab, override));
1944
+ }
1945
+ const table = self.dom.tabDiv.append("table").attr("data-testid", "sjpp-nav-tabs-table").style("border-collapse", "collapse").style("height", "100%");
1946
+ table.selectAll("tr").data(["top", "mid", "btm"]).enter().append("tr").attr("class", (d, i) => `sjpp-nav-tabs-row-${i}`).style("font-size", (d, i) => i == 1 ? "20px" : "12px").selectAll("td").data(
1947
+ (key, i) => self.tabs.map((row, colNum) => {
1948
+ return {
1949
+ rowNum: i,
1950
+ key,
1951
+ colNum,
1952
+ label: row[key],
1953
+ subheader: row.subheader,
1954
+ disabled: row.disabled,
1955
+ disabledMessage: row.disabledMessage
1956
+ };
1957
+ })
1958
+ ).enter().append("td").attr("class", (d) => `sjpp-nav-tab-col-${d.colNum}`).attr("data-testid", (d) => `sjpp-nav-tab-col-${d.label}`).style("display", "none").style("width", "100px").style("padding", (d) => d.rowNum === 0 ? "12px 12px 3px 12px" : "3px 12px").style("text-align", "center").style("border-left", "1px solid #ccc").style("border-right", "1px solid #ccc").style("color", "#aaa").style("opacity", (d) => d.disabled ? 0.5 : 1).style("cursor", (d) => d.disabled ? "not-allowed" : "pointer").attr("title", (d) => d.disabledMessage || "").html((d) => d.label).on("click", (event, d) => {
1959
+ self.setTab(event, d);
1960
+ }).on("mouseover", (event, d) => {
1961
+ self.mouseover(event, d);
1962
+ }).on("mouseout", (event, d) => {
1963
+ self.mouseout(d);
1964
+ });
1965
+ self.dom.trs = table.selectAll("tr");
1966
+ self.dom.tds = table.selectAll("td");
1967
+ self.subheaderKeys = self.tabs.map((d) => d.subheader);
1968
+ };
1969
+ self.deletePlots = () => {
1970
+ const state = self.app.getState();
1971
+ const subactions = [];
1972
+ for (const plot of state.plots) subactions.push({ type: "plot_delete", id: plot.id });
1973
+ self.app.dispatch({ type: "app_refresh", subactions });
1974
+ };
1975
+ self.updateUI = async () => {
1976
+ if (!self.dom.subheaderDiv) return;
1977
+ const isUserTab = self.tabs[self.activeTab]?.subheader === "user";
1978
+ if (self.activeTab && !isUserTab && self.state.termdbConfig.selectCohort && self.activeCohort == -1) {
1979
+ self.dom.subheaderDiv.style("display", "none");
1980
+ self.dom.messageDiv.selectAll("text").remove();
1981
+ self.dom.messageDiv.style("display", "").text('No cohort selected. Please select a cohort in the "COHORT" tab.');
1982
+ } else {
1983
+ if (self.dom.subheaderDiv) self.dom.subheaderDiv.style("display", self.activeTab != -1 ? "block" : "none");
1984
+ if (self.dom.messageDiv) self.dom.messageDiv.style("display", "none");
1985
+ }
1986
+ const selectCohort = self.state.termdbConfig.selectCohort;
1987
+ const massNav = self.state.termdbConfig.massNav;
1988
+ self.dom.searchDiv.style("display", selectCohort && self.activeCohort == -1 ? "none" : "inline-block");
1989
+ self.dom.header.style("border-bottom", self.state.nav.header_mode === "with_tabs" ? "1px solid #000" : "");
1990
+ self.dom.tds.style("display", "").style("color", (d) => d.colNum == self.activeTab ? activeTabTextColor : inactiveTabTextColor).style(
1991
+ "background-color",
1992
+ (d) => d.colNum == self.activeTab && self.dom.subheaderDiv.style("display") != "none" ? self.state.termdbConfig.massNav?.activeColor || activeTabBgColor : "transparent"
1993
+ ).html(function(d) {
1994
+ if (d.key == "top") return this.innerHTML;
1995
+ if (d.subheader == "groups") {
1996
+ if (d.key == "mid") return self.state.groups.length || "NONE";
1997
+ return "";
1998
+ }
1999
+ if (d.subheader === "charts") {
2000
+ const n = self.state.plots.filter((p) => !p.parentId).length;
2001
+ if (d.key == "mid") return !n ? "NONE" : n;
2002
+ else return "";
2003
+ } else if (d.subheader === "about") {
2004
+ if (self.activeCohort != -1 && self.activeCohort in self.samplecounts) {
2005
+ const aboutMap = {
2006
+ top: this.innerHTML,
2007
+ mid: self.activeCohortLabel,
2008
+ btm: self.samplecounts[self.activeCohort]
2009
+ };
2010
+ return aboutMap[d.key] || "";
2011
+ } else if (!selectCohort) {
2012
+ const aboutMap = {
2013
+ top: massNav?.tabs?.about?.top || "ABOUT",
2014
+ mid: massNav?.tabs?.about?.mid || this.innerHTML,
2015
+ btm: massNav?.tabs?.about?.btm || self.samplecounts[self.activeCohort]
2016
+ };
2017
+ return aboutMap[d.key] || "";
2018
+ } else {
2019
+ return d.key === "mid" ? "NONE" : this.innerHTML;
2020
+ }
2021
+ } else if (d.subheader === "filter") {
2022
+ const filter = self.filterUiRoot ? self.filterUiRoot : { lst: [] };
2023
+ if (filter.lst.length === 0) {
2024
+ return d.key === "mid" ? "NONE" : "";
2025
+ } else {
2026
+ const n = self.samplecounts[self.filterJSON] != void 0 ? "" + self.samplecounts[self.filterJSON] : "";
2027
+ return d.key === "mid" ? filter.lst.length : n;
2028
+ }
2029
+ } else if (d.subheader === "user" && d.key == "btm") {
2030
+ return getDaysLeft(self.app.opts.sessionDaysLeft)?.text || "&nbsp;";
2031
+ } else if (d.subheader === "user" && d.key == "mid" && !massNav?.tabs?.user?.mid) {
2032
+ return getUserTabMid(self.state.termdbConfig, self.activeCohort);
2033
+ } else {
2034
+ return d.key === "mid" ? this.innerHTML : "&nbsp;";
2035
+ }
2036
+ });
2037
+ for (const key in self.dom.subheader) {
2038
+ self.dom.subheader[key].style(
2039
+ "display",
2040
+ self.activeTab == -1 ? "none" : self.tabs[self.activeTab].subheader === key ? "block" : "none"
2041
+ );
2042
+ }
2043
+ if (self.opts.header_mode === "with_cohortHtmlSelect") {
2044
+ self.dom.cohortSelect.selectAll("option").property("value", self.activeCohort);
2045
+ }
2046
+ };
2047
+ }
2048
+ function setInteractivity(self) {
2049
+ self.setTab = async (event, d) => {
2050
+ if (d.disabled) return;
2051
+ if (d.colNum === self.activeTab && !self.searching) {
2052
+ if (self.activeTab == 0) return;
2053
+ self.prevCohort = self.activeCohort;
2054
+ await self.updateUI();
2055
+ self.app.dispatch({ type: "tab_set", activeTab: -1 });
2056
+ return;
2057
+ }
2058
+ self.activeTab = d.colNum;
2059
+ self.searching = false;
2060
+ self.app.dispatch({ type: "tab_set", activeTab: self.activeTab });
2061
+ const chartsIdx = self.subheaderKeys.indexOf("charts");
2062
+ if (self.activeTab == chartsIdx && self.activeCohort != -1 && !self.state.plots.length) {
2063
+ const defaultChartType = self.state.termdbConfig.defaultChartType || "dictionary";
2064
+ self.app.dispatch({
2065
+ type: "plot_create",
2066
+ id: getId(),
2067
+ config: { chartType: defaultChartType }
2068
+ });
2069
+ }
2070
+ };
2071
+ self.mouseover = (event, d) => {
2072
+ const defaultActiveColor = self.state.termdbConfig.massNav?.activeColor || activeTabBgColor;
2073
+ if (d.subheader == "user" && d.key == "btm") self.components.user?.showDaysLeftTip(event.currentTarget);
2074
+ self.dom.tds.style("background-color", (t) => {
2075
+ if (t.colNum === d.colNum)
2076
+ return self.activeTab == t.colNum ? self.state.termdbConfig.massNav?.activeColorHover || activeTabBgColorHover : inactiveTabBgColorHover;
2077
+ return self.activeTab == t.colNum ? defaultActiveColor : "transparent";
2078
+ });
2079
+ };
2080
+ self.mouseout = (d) => {
2081
+ if (d.subheader == "user" && d.key == "btm") self.components.user?.hideDaysLeftTip();
2082
+ const defaultActiveColor = self.state.termdbConfig.massNav?.activeColor || activeTabBgColor;
2083
+ self.dom.tds.style("background-color", (t) => self.activeTab == t.colNum ? defaultActiveColor : "transparent");
2084
+ };
2085
+ self.pickDatasetLabel = (appState) => {
2086
+ const dslabel = appState.vocab.dslabel.toUpperCase();
2087
+ return dslabel.length > 10 ? `${dslabel.slice(0, 10)}...` : dslabel;
2088
+ };
2089
+ }
2090
+
2091
+ export {
2092
+ getId,
2093
+ navInit
2094
+ };
2095
+ //# sourceMappingURL=chunk-SDUMZTIK.js.map