@openc3/vue-common 5.21.0-beta0

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 (399) hide show
  1. package/LICENSE.txt +729 -0
  2. package/README.md +25 -0
  3. package/dist/ArrayWidget-ChaMDaRA.js +105 -0
  4. package/dist/ArrayWidget-ChaMDaRA.js.map +1 -0
  5. package/dist/ArrayWidget-x7le0X73.cjs +3 -0
  6. package/dist/ArrayWidget-x7le0X73.cjs.map +1 -0
  7. package/dist/AstroStatus-CILMWL6F.cjs +2 -0
  8. package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
  9. package/dist/AstroStatus-CY9VkeTN.js +40 -0
  10. package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
  11. package/dist/BarColumn-CqXfFAQ9.js +106 -0
  12. package/dist/BarColumn-CqXfFAQ9.js.map +1 -0
  13. package/dist/BarColumn-Ct4izXqV.cjs +2 -0
  14. package/dist/BarColumn-Ct4izXqV.cjs.map +1 -0
  15. package/dist/BlockWidget-BPefRY_h.cjs +3 -0
  16. package/dist/BlockWidget-BPefRY_h.cjs.map +1 -0
  17. package/dist/BlockWidget-DjiPs6ID.js +111 -0
  18. package/dist/BlockWidget-DjiPs6ID.js.map +1 -0
  19. package/dist/ButtonWidget-Dd80CjGt.js +165 -0
  20. package/dist/ButtonWidget-Dd80CjGt.js.map +1 -0
  21. package/dist/ButtonWidget-SoiP15gH.cjs +3 -0
  22. package/dist/ButtonWidget-SoiP15gH.cjs.map +1 -0
  23. package/dist/CanvasWidget-ALHiDq5o.js +39 -0
  24. package/dist/CanvasWidget-ALHiDq5o.js.map +1 -0
  25. package/dist/CanvasWidget-JapjwSXd.cjs +2 -0
  26. package/dist/CanvasWidget-JapjwSXd.cjs.map +1 -0
  27. package/dist/CanvasdotWidget-BU42MGW6.cjs +2 -0
  28. package/dist/CanvasdotWidget-BU42MGW6.cjs.map +1 -0
  29. package/dist/CanvasdotWidget-JkDXGoHm.js +19 -0
  30. package/dist/CanvasdotWidget-JkDXGoHm.js.map +1 -0
  31. package/dist/CanvasimageWidget-CQ_ZlEFj.cjs +2 -0
  32. package/dist/CanvasimageWidget-CQ_ZlEFj.cjs.map +1 -0
  33. package/dist/CanvasimageWidget-CTXlEJgA.js +58 -0
  34. package/dist/CanvasimageWidget-CTXlEJgA.js.map +1 -0
  35. package/dist/CanvasimagevalueWidget-CihOXOHH.js +107 -0
  36. package/dist/CanvasimagevalueWidget-CihOXOHH.js.map +1 -0
  37. package/dist/CanvasimagevalueWidget-DKejEVKr.cjs +2 -0
  38. package/dist/CanvasimagevalueWidget-DKejEVKr.cjs.map +1 -0
  39. package/dist/CanvaslabelWidget-2uD1FRT0.js +23 -0
  40. package/dist/CanvaslabelWidget-2uD1FRT0.js.map +1 -0
  41. package/dist/CanvaslabelWidget-zKoAOaaE.cjs +2 -0
  42. package/dist/CanvaslabelWidget-zKoAOaaE.cjs.map +1 -0
  43. package/dist/CanvaslabelvalueWidget-BCd0ssW9.js +42 -0
  44. package/dist/CanvaslabelvalueWidget-BCd0ssW9.js.map +1 -0
  45. package/dist/CanvaslabelvalueWidget-ZnyvNaVM.cjs +2 -0
  46. package/dist/CanvaslabelvalueWidget-ZnyvNaVM.cjs.map +1 -0
  47. package/dist/CanvaslineWidget-BRFrT-9r.cjs +2 -0
  48. package/dist/CanvaslineWidget-BRFrT-9r.cjs.map +1 -0
  49. package/dist/CanvaslineWidget-Cc8vj_vu.js +28 -0
  50. package/dist/CanvaslineWidget-Cc8vj_vu.js.map +1 -0
  51. package/dist/CanvaslinevalueWidget-CJTmkXEr.js +44 -0
  52. package/dist/CanvaslinevalueWidget-CJTmkXEr.js.map +1 -0
  53. package/dist/CanvaslinevalueWidget-DgIU-2d6.cjs +2 -0
  54. package/dist/CanvaslinevalueWidget-DgIU-2d6.cjs.map +1 -0
  55. package/dist/CheckbuttonWidget-BrUBiJWn.cjs +2 -0
  56. package/dist/CheckbuttonWidget-BrUBiJWn.cjs.map +1 -0
  57. package/dist/CheckbuttonWidget-lZD4wLcB.js +37 -0
  58. package/dist/CheckbuttonWidget-lZD4wLcB.js.map +1 -0
  59. package/dist/ComboboxWidget-BUMleWlR.cjs +2 -0
  60. package/dist/ComboboxWidget-BUMleWlR.cjs.map +1 -0
  61. package/dist/ComboboxWidget-D-nVY2Zf.js +37 -0
  62. package/dist/ComboboxWidget-D-nVY2Zf.js.map +1 -0
  63. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +2 -0
  64. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +1 -0
  65. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +10 -0
  66. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +1 -0
  67. package/dist/CriticalCmdDialog-BvPQYRie.cjs +2 -0
  68. package/dist/CriticalCmdDialog-BvPQYRie.cjs.map +1 -0
  69. package/dist/CriticalCmdDialog-ChYR9_7n.js +270 -0
  70. package/dist/CriticalCmdDialog-ChYR9_7n.js.map +1 -0
  71. package/dist/DateWidget-3e2qqqxw.cjs +2 -0
  72. package/dist/DateWidget-3e2qqqxw.cjs.map +1 -0
  73. package/dist/DateWidget-Bs2NufYI.js +40 -0
  74. package/dist/DateWidget-Bs2NufYI.js.map +1 -0
  75. package/dist/DetailsDialog-8ixZ1oPd.cjs +2 -0
  76. package/dist/DetailsDialog-8ixZ1oPd.cjs.map +1 -0
  77. package/dist/DetailsDialog-ScKx0N2e.js +767 -0
  78. package/dist/DetailsDialog-ScKx0N2e.js.map +1 -0
  79. package/dist/DynamicWidget-3wHr6Ng-.cjs +2 -0
  80. package/dist/DynamicWidget-3wHr6Ng-.cjs.map +1 -0
  81. package/dist/DynamicWidget-m9EliUR2.js +35 -0
  82. package/dist/DynamicWidget-m9EliUR2.js.map +1 -0
  83. package/dist/FormatvalueWidget-DEj59HDj.js +44 -0
  84. package/dist/FormatvalueWidget-DEj59HDj.js.map +1 -0
  85. package/dist/FormatvalueWidget-DK0tTvcs.cjs +2 -0
  86. package/dist/FormatvalueWidget-DK0tTvcs.cjs.map +1 -0
  87. package/dist/Graph-D2frd7mZ.js +1999 -0
  88. package/dist/Graph-D2frd7mZ.js.map +1 -0
  89. package/dist/Graph-DFEMzAGq.cjs +2 -0
  90. package/dist/Graph-DFEMzAGq.cjs.map +1 -0
  91. package/dist/GraphWidget-CbyYREVa.cjs +2 -0
  92. package/dist/GraphWidget-CbyYREVa.cjs.map +1 -0
  93. package/dist/GraphWidget-CvlfqTgn.js +129 -0
  94. package/dist/GraphWidget-CvlfqTgn.js.map +1 -0
  95. package/dist/HorizontalWidget-BEOYwm8D.js +41 -0
  96. package/dist/HorizontalWidget-BEOYwm8D.js.map +1 -0
  97. package/dist/HorizontalWidget-xEd4ZLsc.cjs +2 -0
  98. package/dist/HorizontalWidget-xEd4ZLsc.cjs.map +1 -0
  99. package/dist/HorizontalboxWidget-C2wA9_HA.js +38 -0
  100. package/dist/HorizontalboxWidget-C2wA9_HA.js.map +1 -0
  101. package/dist/HorizontalboxWidget-xwLnkDXf.cjs +2 -0
  102. package/dist/HorizontalboxWidget-xwLnkDXf.cjs.map +1 -0
  103. package/dist/HorizontallineWidget-BCKOQase.cjs +2 -0
  104. package/dist/HorizontallineWidget-BCKOQase.cjs.map +1 -0
  105. package/dist/HorizontallineWidget-BdlNB951.js +11 -0
  106. package/dist/HorizontallineWidget-BdlNB951.js.map +1 -0
  107. package/dist/IframeWidget-C42hZbe_.cjs +2 -0
  108. package/dist/IframeWidget-C42hZbe_.cjs.map +1 -0
  109. package/dist/IframeWidget-qwGlLyoS.js +29 -0
  110. package/dist/IframeWidget-qwGlLyoS.js.map +1 -0
  111. package/dist/ImageLoader-BSTQyLlJ.cjs +2 -0
  112. package/dist/ImageLoader-BSTQyLlJ.cjs.map +1 -0
  113. package/dist/ImageLoader-CQAyutzR.js +36 -0
  114. package/dist/ImageLoader-CQAyutzR.js.map +1 -0
  115. package/dist/ImageviewerWidget-B0HJk4Tf.cjs +2 -0
  116. package/dist/ImageviewerWidget-B0HJk4Tf.cjs.map +1 -0
  117. package/dist/ImageviewerWidget-CDeYB2QG.js +37 -0
  118. package/dist/ImageviewerWidget-CDeYB2QG.js.map +1 -0
  119. package/dist/InterfacesTab-D-VIrHHf.js +92 -0
  120. package/dist/InterfacesTab-D-VIrHHf.js.map +1 -0
  121. package/dist/InterfacesTab-NTrgd1dN.cjs +2 -0
  122. package/dist/InterfacesTab-NTrgd1dN.cjs.map +1 -0
  123. package/dist/LabelWidget-B1-se7_B.cjs +2 -0
  124. package/dist/LabelWidget-B1-se7_B.cjs.map +1 -0
  125. package/dist/LabelWidget-C5_cj8pA.js +48 -0
  126. package/dist/LabelWidget-C5_cj8pA.js.map +1 -0
  127. package/dist/LabelledWidget-3aDkVYzF.cjs +2 -0
  128. package/dist/LabelledWidget-3aDkVYzF.cjs.map +1 -0
  129. package/dist/LabelledWidget-DWOPmkyP.js +42 -0
  130. package/dist/LabelledWidget-DWOPmkyP.js.map +1 -0
  131. package/dist/LabelprogressbarWidget-DFPXYOTH.js +43 -0
  132. package/dist/LabelprogressbarWidget-DFPXYOTH.js.map +1 -0
  133. package/dist/LabelprogressbarWidget-Dsiw-uBJ.cjs +2 -0
  134. package/dist/LabelprogressbarWidget-Dsiw-uBJ.cjs.map +1 -0
  135. package/dist/LabelsparklineWidget-DG_Q8WOZ.js +44 -0
  136. package/dist/LabelsparklineWidget-DG_Q8WOZ.js.map +1 -0
  137. package/dist/LabelsparklineWidget-w6pdf_eu.cjs +2 -0
  138. package/dist/LabelsparklineWidget-w6pdf_eu.cjs.map +1 -0
  139. package/dist/LabelvalueWidget-CRtYLZfm.cjs +2 -0
  140. package/dist/LabelvalueWidget-CRtYLZfm.cjs.map +1 -0
  141. package/dist/LabelvalueWidget-CxL0zxQr.js +58 -0
  142. package/dist/LabelvalueWidget-CxL0zxQr.js.map +1 -0
  143. package/dist/LabelvaluedescWidget-CF9py8m9.cjs +2 -0
  144. package/dist/LabelvaluedescWidget-CF9py8m9.cjs.map +1 -0
  145. package/dist/LabelvaluedescWidget-ClWPSOeN.js +59 -0
  146. package/dist/LabelvaluedescWidget-ClWPSOeN.js.map +1 -0
  147. package/dist/LabelvaluelimitsbarWidget-DFUH0HNe.cjs +2 -0
  148. package/dist/LabelvaluelimitsbarWidget-DFUH0HNe.cjs.map +1 -0
  149. package/dist/LabelvaluelimitsbarWidget-DUyZ7KXT.js +55 -0
  150. package/dist/LabelvaluelimitsbarWidget-DUyZ7KXT.js.map +1 -0
  151. package/dist/LabelvaluelimitscolumnWidget-DdCNjIEm.js +45 -0
  152. package/dist/LabelvaluelimitscolumnWidget-DdCNjIEm.js.map +1 -0
  153. package/dist/LabelvaluelimitscolumnWidget-k0hVnMUV.cjs +2 -0
  154. package/dist/LabelvaluelimitscolumnWidget-k0hVnMUV.cjs.map +1 -0
  155. package/dist/LabelvaluerangebarWidget-CRqMQa_x.cjs +2 -0
  156. package/dist/LabelvaluerangebarWidget-CRqMQa_x.cjs.map +1 -0
  157. package/dist/LabelvaluerangebarWidget-DGJv44i4.js +79 -0
  158. package/dist/LabelvaluerangebarWidget-DGJv44i4.js.map +1 -0
  159. package/dist/Layout-C1uMy2Sd.js +14 -0
  160. package/dist/Layout-C1uMy2Sd.js.map +1 -0
  161. package/dist/Layout-C2VWUn33.cjs +2 -0
  162. package/dist/Layout-C2VWUn33.cjs.map +1 -0
  163. package/dist/LedWidget-C8LEesIO.js +69 -0
  164. package/dist/LedWidget-C8LEesIO.js.map +1 -0
  165. package/dist/LedWidget-tnHC12fA.cjs +2 -0
  166. package/dist/LedWidget-tnHC12fA.cjs.map +1 -0
  167. package/dist/LimitsbarWidget-DSJvR91d.cjs +2 -0
  168. package/dist/LimitsbarWidget-DSJvR91d.cjs.map +1 -0
  169. package/dist/LimitsbarWidget-DV94AaXX.js +52 -0
  170. package/dist/LimitsbarWidget-DV94AaXX.js.map +1 -0
  171. package/dist/LimitscolorWidget-BWfffXvj.cjs +2 -0
  172. package/dist/LimitscolorWidget-BWfffXvj.cjs.map +1 -0
  173. package/dist/LimitscolorWidget-DT_WG8Jb.js +59 -0
  174. package/dist/LimitscolorWidget-DT_WG8Jb.js.map +1 -0
  175. package/dist/LimitscolumnWidget-Ci2DqqsC.cjs +2 -0
  176. package/dist/LimitscolumnWidget-Ci2DqqsC.cjs.map +1 -0
  177. package/dist/LimitscolumnWidget-yGBCsGuc.js +49 -0
  178. package/dist/LimitscolumnWidget-yGBCsGuc.js.map +1 -0
  179. package/dist/LinegraphWidget-BG43_kkA.js +38 -0
  180. package/dist/LinegraphWidget-BG43_kkA.js.map +1 -0
  181. package/dist/LinegraphWidget-ByTUdpDj.cjs +2 -0
  182. package/dist/LinegraphWidget-ByTUdpDj.cjs.map +1 -0
  183. package/dist/MatrixbycolumnsWidget-Cfp2S5QC.js +56 -0
  184. package/dist/MatrixbycolumnsWidget-Cfp2S5QC.js.map +1 -0
  185. package/dist/MatrixbycolumnsWidget-GHZ6cCcr.cjs +2 -0
  186. package/dist/MatrixbycolumnsWidget-GHZ6cCcr.cjs.map +1 -0
  187. package/dist/MicroservicesTab-BuIftbHc.js +159 -0
  188. package/dist/MicroservicesTab-BuIftbHc.js.map +1 -0
  189. package/dist/MicroservicesTab-CdCozCVI.cjs +2 -0
  190. package/dist/MicroservicesTab-CdCozCVI.cjs.map +1 -0
  191. package/dist/OutputDialog-CjFsDUYh.js +244 -0
  192. package/dist/OutputDialog-CjFsDUYh.js.map +1 -0
  193. package/dist/OutputDialog-Dkn9Fli9.cjs +2 -0
  194. package/dist/OutputDialog-Dkn9Fli9.cjs.map +1 -0
  195. package/dist/PackagesTab-BwTViRcm.js +339 -0
  196. package/dist/PackagesTab-BwTViRcm.js.map +1 -0
  197. package/dist/PackagesTab-DPaJ_JbE.cjs +2 -0
  198. package/dist/PackagesTab-DPaJ_JbE.cjs.map +1 -0
  199. package/dist/PluginsTab-C7GizpA1.cjs +6 -0
  200. package/dist/PluginsTab-C7GizpA1.cjs.map +1 -0
  201. package/dist/PluginsTab-fld_-DT-.js +598 -0
  202. package/dist/PluginsTab-fld_-DT-.js.map +1 -0
  203. package/dist/ProgressbarWidget-BSPuQNU_.js +46 -0
  204. package/dist/ProgressbarWidget-BSPuQNU_.js.map +1 -0
  205. package/dist/ProgressbarWidget-D1wbbnow.cjs +2 -0
  206. package/dist/ProgressbarWidget-D1wbbnow.cjs.map +1 -0
  207. package/dist/RadiobuttonWidget-B4rrjT9j.js +34 -0
  208. package/dist/RadiobuttonWidget-B4rrjT9j.js.map +1 -0
  209. package/dist/RadiobuttonWidget-Bhcj3WY5.cjs +2 -0
  210. package/dist/RadiobuttonWidget-Bhcj3WY5.cjs.map +1 -0
  211. package/dist/RadiogroupWidget-CQrEv3Qs.cjs +2 -0
  212. package/dist/RadiogroupWidget-CQrEv3Qs.cjs.map +1 -0
  213. package/dist/RadiogroupWidget-VncDKxiZ.js +48 -0
  214. package/dist/RadiogroupWidget-VncDKxiZ.js.map +1 -0
  215. package/dist/RangebarWidget-Btu0oj_O.js +67 -0
  216. package/dist/RangebarWidget-Btu0oj_O.js.map +1 -0
  217. package/dist/RangebarWidget-CKmh0GEh.cjs +2 -0
  218. package/dist/RangebarWidget-CKmh0GEh.cjs.map +1 -0
  219. package/dist/RedisTab-BPFEQDx-.js +135 -0
  220. package/dist/RedisTab-BPFEQDx-.js.map +1 -0
  221. package/dist/RedisTab-DpbDcxH5.cjs +2 -0
  222. package/dist/RedisTab-DpbDcxH5.cjs.map +1 -0
  223. package/dist/RollupWidget-Bh-Gpi5l.cjs +2 -0
  224. package/dist/RollupWidget-Bh-Gpi5l.cjs.map +1 -0
  225. package/dist/RollupWidget-CIp8Akqq.js +81 -0
  226. package/dist/RollupWidget-CIp8Akqq.js.map +1 -0
  227. package/dist/RoutersTab-CTpmfcgq.js +94 -0
  228. package/dist/RoutersTab-CTpmfcgq.js.map +1 -0
  229. package/dist/RoutersTab-DLQ-_xsb.cjs +2 -0
  230. package/dist/RoutersTab-DLQ-_xsb.cjs.map +1 -0
  231. package/dist/ScriptChooser-Cku5i9C6.cjs +2 -0
  232. package/dist/ScriptChooser-Cku5i9C6.cjs.map +1 -0
  233. package/dist/ScriptChooser-Cx985GFr.js +199 -0
  234. package/dist/ScriptChooser-Cx985GFr.js.map +1 -0
  235. package/dist/ScrollwindowWidget-BIYEL78X.js +45 -0
  236. package/dist/ScrollwindowWidget-BIYEL78X.js.map +1 -0
  237. package/dist/ScrollwindowWidget-DWBLVHz1.cjs +2 -0
  238. package/dist/ScrollwindowWidget-DWBLVHz1.cjs.map +1 -0
  239. package/dist/SecretsTab-CV5WYD3N.cjs +2 -0
  240. package/dist/SecretsTab-CV5WYD3N.cjs.map +1 -0
  241. package/dist/SecretsTab-DfBaqZw2.js +202 -0
  242. package/dist/SecretsTab-DfBaqZw2.js.map +1 -0
  243. package/dist/SettingsTab-B1DNmvM5.js +1282 -0
  244. package/dist/SettingsTab-B1DNmvM5.js.map +1 -0
  245. package/dist/SettingsTab-BKD5vVwv.cjs +2 -0
  246. package/dist/SettingsTab-BKD5vVwv.cjs.map +1 -0
  247. package/dist/SignalWidget-f_2K-phy.js +61 -0
  248. package/dist/SignalWidget-f_2K-phy.js.map +1 -0
  249. package/dist/SignalWidget-vsx411XW.cjs +2 -0
  250. package/dist/SignalWidget-vsx411XW.cjs.map +1 -0
  251. package/dist/SimpleTextDialog-BLlux8b4.js +108 -0
  252. package/dist/SimpleTextDialog-BLlux8b4.js.map +1 -0
  253. package/dist/SimpleTextDialog-D2R3WQXD.cjs +2 -0
  254. package/dist/SimpleTextDialog-D2R3WQXD.cjs.map +1 -0
  255. package/dist/SpacerWidget-DGo6ZjYn.cjs +2 -0
  256. package/dist/SpacerWidget-DGo6ZjYn.cjs.map +1 -0
  257. package/dist/SpacerWidget-YhsM7srQ.js +19 -0
  258. package/dist/SpacerWidget-YhsM7srQ.js.map +1 -0
  259. package/dist/SparklineWidget-Bkx8nwqY.cjs +2 -0
  260. package/dist/SparklineWidget-Bkx8nwqY.cjs.map +1 -0
  261. package/dist/SparklineWidget-CuGChXzf.js +47 -0
  262. package/dist/SparklineWidget-CuGChXzf.js.map +1 -0
  263. package/dist/TabbookWidget-BlDW3n54.js +66 -0
  264. package/dist/TabbookWidget-BlDW3n54.js.map +1 -0
  265. package/dist/TabbookWidget-CDUj7RHp.cjs +2 -0
  266. package/dist/TabbookWidget-CDUj7RHp.cjs.map +1 -0
  267. package/dist/TargetsTab-B2Jw5Kec.js +128 -0
  268. package/dist/TargetsTab-B2Jw5Kec.js.map +1 -0
  269. package/dist/TargetsTab-fON6-iJc.cjs +2 -0
  270. package/dist/TargetsTab-fON6-iJc.cjs.map +1 -0
  271. package/dist/TextBoxDialog-CZ3h4LP-.js +110 -0
  272. package/dist/TextBoxDialog-CZ3h4LP-.js.map +1 -0
  273. package/dist/TextBoxDialog-DvUf3Cak.cjs +2 -0
  274. package/dist/TextBoxDialog-DvUf3Cak.cjs.map +1 -0
  275. package/dist/TextboxWidget-CWXCNL8K.js +92 -0
  276. package/dist/TextboxWidget-CWXCNL8K.js.map +1 -0
  277. package/dist/TextboxWidget-LhNzbjQI.cjs +2 -0
  278. package/dist/TextboxWidget-LhNzbjQI.cjs.map +1 -0
  279. package/dist/TextfieldWidget-AbalSObh.cjs +2 -0
  280. package/dist/TextfieldWidget-AbalSObh.cjs.map +1 -0
  281. package/dist/TextfieldWidget-CRVUO3wk.js +37 -0
  282. package/dist/TextfieldWidget-CRVUO3wk.js.map +1 -0
  283. package/dist/TimeWidget-BUMtokM-.cjs +2 -0
  284. package/dist/TimeWidget-BUMtokM-.cjs.map +1 -0
  285. package/dist/TimeWidget-CDo0yWlB.js +40 -0
  286. package/dist/TimeWidget-CDo0yWlB.js.map +1 -0
  287. package/dist/TitleWidget-Cvjndegg.js +26 -0
  288. package/dist/TitleWidget-Cvjndegg.js.map +1 -0
  289. package/dist/TitleWidget-DWieiIfq.cjs +2 -0
  290. package/dist/TitleWidget-DWieiIfq.cjs.map +1 -0
  291. package/dist/ToolsTab-Bu4syVrX.js +1519 -0
  292. package/dist/ToolsTab-Bu4syVrX.js.map +1 -0
  293. package/dist/ToolsTab-rS3KG7M5.cjs +7 -0
  294. package/dist/ToolsTab-rS3KG7M5.cjs.map +1 -0
  295. package/dist/TopBar-B1dOQ1W9.js +253 -0
  296. package/dist/TopBar-B1dOQ1W9.js.map +1 -0
  297. package/dist/TopBar-_j4ndwSi.cjs +2 -0
  298. package/dist/TopBar-_j4ndwSi.cjs.map +1 -0
  299. package/dist/UpgradeToEnterpriseDialog--cLHsvir.cjs +2 -0
  300. package/dist/UpgradeToEnterpriseDialog--cLHsvir.cjs.map +1 -0
  301. package/dist/UpgradeToEnterpriseDialog-CY9g4hzD.js +95 -0
  302. package/dist/UpgradeToEnterpriseDialog-CY9g4hzD.js.map +1 -0
  303. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js +25215 -0
  304. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js.map +1 -0
  305. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs +1416 -0
  306. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DdL5xG80.cjs.map +1 -0
  307. package/dist/VWidget-BRkvqAVS.cjs +2 -0
  308. package/dist/VWidget-BRkvqAVS.cjs.map +1 -0
  309. package/dist/VWidget-D9Wk0N9r.js +323 -0
  310. package/dist/VWidget-D9Wk0N9r.js.map +1 -0
  311. package/dist/ValueWidget-D3EJcN4C.js +115 -0
  312. package/dist/ValueWidget-D3EJcN4C.js.map +1 -0
  313. package/dist/ValueWidget-DxY7IZvc.cjs +2 -0
  314. package/dist/ValueWidget-DxY7IZvc.cjs.map +1 -0
  315. package/dist/ValuelimitsbarWidget-C5revcun.js +39 -0
  316. package/dist/ValuelimitsbarWidget-C5revcun.js.map +1 -0
  317. package/dist/ValuelimitsbarWidget-Dk6L7fl3.cjs +2 -0
  318. package/dist/ValuelimitsbarWidget-Dk6L7fl3.cjs.map +1 -0
  319. package/dist/ValuelimitscolumnWidget-BBEGOlON.js +38 -0
  320. package/dist/ValuelimitscolumnWidget-BBEGOlON.js.map +1 -0
  321. package/dist/ValuelimitscolumnWidget-YD_Xd3tD.cjs +2 -0
  322. package/dist/ValuelimitscolumnWidget-YD_Xd3tD.cjs.map +1 -0
  323. package/dist/ValuerangebarWidget-BtoenJky.cjs +2 -0
  324. package/dist/ValuerangebarWidget-BtoenJky.cjs.map +1 -0
  325. package/dist/ValuerangebarWidget-D70Xk8rM.js +65 -0
  326. package/dist/ValuerangebarWidget-D70Xk8rM.js.map +1 -0
  327. package/dist/VerticalWidget-Dw11Ey1R.cjs +2 -0
  328. package/dist/VerticalWidget-Dw11Ey1R.cjs.map +1 -0
  329. package/dist/VerticalWidget-RIOu-NI3.js +41 -0
  330. package/dist/VerticalWidget-RIOu-NI3.js.map +1 -0
  331. package/dist/VerticalboxWidget-BUjeAxtO.js +37 -0
  332. package/dist/VerticalboxWidget-BUjeAxtO.js.map +1 -0
  333. package/dist/VerticalboxWidget-DT-OCuyc.cjs +2 -0
  334. package/dist/VerticalboxWidget-DT-OCuyc.cjs.map +1 -0
  335. package/dist/Widget-C-EiCtmV.cjs +2 -0
  336. package/dist/Widget-C-EiCtmV.cjs.map +1 -0
  337. package/dist/Widget-C5V53T-a.js +197 -0
  338. package/dist/Widget-C5V53T-a.js.map +1 -0
  339. package/dist/addMonths-Be4oiWXO.js +19 -0
  340. package/dist/addMonths-Be4oiWXO.js.map +1 -0
  341. package/dist/addMonths-foItT0GW.cjs +2 -0
  342. package/dist/addMonths-foItT0GW.cjs.map +1 -0
  343. package/dist/axios-CXDYiOMX.js +1705 -0
  344. package/dist/axios-CXDYiOMX.js.map +1 -0
  345. package/dist/axios-tuVKNgv9.cjs +7 -0
  346. package/dist/axios-tuVKNgv9.cjs.map +1 -0
  347. package/dist/components.cjs +7 -0
  348. package/dist/components.cjs.map +1 -0
  349. package/dist/components.js +2936 -0
  350. package/dist/components.js.map +1 -0
  351. package/dist/fileIcon-BduOQcTc.cjs +2 -0
  352. package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
  353. package/dist/fileIcon-DqRHb1_Z.js +22 -0
  354. package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
  355. package/dist/format-BDZ4AOJt.cjs +2 -0
  356. package/dist/format-BDZ4AOJt.cjs.map +1 -0
  357. package/dist/format-Da42caYw.js +1229 -0
  358. package/dist/format-Da42caYw.js.map +1 -0
  359. package/dist/icons/status-dark.png +0 -0
  360. package/dist/icons/status-dark.xcf +0 -0
  361. package/dist/icons/status-light.png +0 -0
  362. package/dist/icons.cjs +2 -0
  363. package/dist/icons.cjs.map +1 -0
  364. package/dist/icons.js +157 -0
  365. package/dist/icons.js.map +1 -0
  366. package/dist/parse-BO9ihK1v.cjs +2 -0
  367. package/dist/parse-BO9ihK1v.cjs.map +1 -0
  368. package/dist/parse-dDr1Btat.js +1556 -0
  369. package/dist/parse-dDr1Btat.js.map +1 -0
  370. package/dist/plugins.cjs +9 -0
  371. package/dist/plugins.cjs.map +1 -0
  372. package/dist/plugins.js +771 -0
  373. package/dist/plugins.js.map +1 -0
  374. package/dist/style.css +1 -0
  375. package/dist/timeFilters-CN3Tdo2Z.js +607 -0
  376. package/dist/timeFilters-CN3Tdo2Z.js.map +1 -0
  377. package/dist/timeFilters-DwWhNG4a.cjs +2 -0
  378. package/dist/timeFilters-DwWhNG4a.cjs.map +1 -0
  379. package/dist/tools/admin.cjs +13 -0
  380. package/dist/tools/admin.cjs.map +1 -0
  381. package/dist/tools/admin.js +1909 -0
  382. package/dist/tools/admin.js.map +1 -0
  383. package/dist/tools/base.cjs +2 -0
  384. package/dist/tools/base.cjs.map +1 -0
  385. package/dist/tools/base.js +1580 -0
  386. package/dist/tools/base.js.map +1 -0
  387. package/dist/tools/calendar.cjs +2 -0
  388. package/dist/tools/calendar.cjs.map +1 -0
  389. package/dist/tools/calendar.js +1591 -0
  390. package/dist/tools/calendar.js.map +1 -0
  391. package/dist/util.cjs +2 -0
  392. package/dist/util.cjs.map +1 -0
  393. package/dist/util.js +9 -0
  394. package/dist/util.js.map +1 -0
  395. package/dist/widgets.cjs +2 -0
  396. package/dist/widgets.cjs.map +1 -0
  397. package/dist/widgets.js +130 -0
  398. package/dist/widgets.js.map +1 -0
  399. package/package.json +95 -0
@@ -0,0 +1,1580 @@
1
+ import { n as U, i as B, r as $ } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-BrapmXxi.js";
2
+ import { resolveComponent as a, openBlock as c, createElementBlock as w, createElementVNode as C, toDisplayString as _, createVNode as n, withCtx as i, createTextVNode as f, createBlock as N, createCommentVNode as D, normalizeClass as ee, mergeProps as j, Fragment as V, renderList as Z, withModifiers as L } from "vue";
3
+ import { _ as A } from "../CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
4
+ import { U as x } from "../UpgradeToEnterpriseDialog-CY9g4hzD.js";
5
+ import { t as O, c as se, n as W, e as ie, b as G, d as K, h as P, g as ae, f as re } from "../format-Da42caYw.js";
6
+ import { registerApplication as le, start as ce, navigateToUrl as ue } from "single-spa";
7
+ import { A as de } from "../AstroStatus-CY9VkeTN.js";
8
+ import { AstroStatusIndicator as fe, AstroStatusColors as pe, UnknownToAstroStatus as Q } from "../icons.js";
9
+ import { a as me } from "../axios-CXDYiOMX.js";
10
+ function F(e, t) {
11
+ const o = +O(e) - +O(t);
12
+ return o < 0 ? -1 : o > 0 ? 1 : o;
13
+ }
14
+ function he(e) {
15
+ return se(e, Date.now());
16
+ }
17
+ function _e(e, t, o) {
18
+ const [l, s] = W(
19
+ o == null ? void 0 : o.in,
20
+ e,
21
+ t
22
+ ), r = l.getFullYear() - s.getFullYear(), m = l.getMonth() - s.getMonth();
23
+ return r * 12 + m;
24
+ }
25
+ function ge(e) {
26
+ return (t) => {
27
+ const l = (e ? Math[e] : Math.trunc)(t);
28
+ return l === 0 ? 0 : l;
29
+ };
30
+ }
31
+ function ve(e, t) {
32
+ return +O(e) - +O(t);
33
+ }
34
+ function we(e, t) {
35
+ const o = O(e, t == null ? void 0 : t.in);
36
+ return o.setHours(23, 59, 59, 999), o;
37
+ }
38
+ function ye(e, t) {
39
+ const o = O(e, t == null ? void 0 : t.in), l = o.getMonth();
40
+ return o.setFullYear(o.getFullYear(), l + 1, 0), o.setHours(23, 59, 59, 999), o;
41
+ }
42
+ function ke(e, t) {
43
+ const o = O(e, t == null ? void 0 : t.in);
44
+ return +we(o, t) == +ye(o, t);
45
+ }
46
+ function be(e, t, o) {
47
+ const [l, s, r] = W(
48
+ o == null ? void 0 : o.in,
49
+ e,
50
+ e,
51
+ t
52
+ ), m = F(s, r), u = Math.abs(
53
+ _e(s, r)
54
+ );
55
+ if (u < 1) return 0;
56
+ s.getMonth() === 1 && s.getDate() > 27 && s.setDate(30), s.setMonth(s.getMonth() - m * u);
57
+ let p = F(s, r) === -m;
58
+ ke(l) && u === 1 && F(l, r) === 1 && (p = !1);
59
+ const g = m * (u - +p);
60
+ return g === 0 ? 0 : g;
61
+ }
62
+ function Ne(e, t, o) {
63
+ const l = ve(e, t) / 1e3;
64
+ return ge(o == null ? void 0 : o.roundingMethod)(l);
65
+ }
66
+ function Se(e, t, o) {
67
+ const l = ae(), s = (o == null ? void 0 : o.locale) ?? l.locale ?? ie, r = 2520, m = F(e, t);
68
+ if (isNaN(m)) throw new RangeError("Invalid time value");
69
+ const u = Object.assign({}, o, {
70
+ addSuffix: o == null ? void 0 : o.addSuffix,
71
+ comparison: m
72
+ }), [p, g] = W(
73
+ o == null ? void 0 : o.in,
74
+ ...m > 0 ? [t, e] : [e, t]
75
+ ), y = Ne(g, p), S = (G(g) - G(p)) / 1e3, h = Math.round((y - S) / 60);
76
+ let b;
77
+ if (h < 2)
78
+ return o != null && o.includeSeconds ? y < 5 ? s.formatDistance("lessThanXSeconds", 5, u) : y < 10 ? s.formatDistance("lessThanXSeconds", 10, u) : y < 20 ? s.formatDistance("lessThanXSeconds", 20, u) : y < 40 ? s.formatDistance("halfAMinute", 0, u) : y < 60 ? s.formatDistance("lessThanXMinutes", 1, u) : s.formatDistance("xMinutes", 1, u) : h === 0 ? s.formatDistance("lessThanXMinutes", 1, u) : s.formatDistance("xMinutes", h, u);
79
+ if (h < 45)
80
+ return s.formatDistance("xMinutes", h, u);
81
+ if (h < 90)
82
+ return s.formatDistance("aboutXHours", 1, u);
83
+ if (h < K) {
84
+ const v = Math.round(h / 60);
85
+ return s.formatDistance("aboutXHours", v, u);
86
+ } else {
87
+ if (h < r)
88
+ return s.formatDistance("xDays", 1, u);
89
+ if (h < P) {
90
+ const v = Math.round(h / K);
91
+ return s.formatDistance("xDays", v, u);
92
+ } else if (h < P * 2)
93
+ return b = Math.round(h / P), s.formatDistance("aboutXMonths", b, u);
94
+ }
95
+ if (b = be(g, p), b < 12) {
96
+ const v = Math.round(h / P);
97
+ return s.formatDistance("xMonths", v, u);
98
+ } else {
99
+ const v = b % 12, T = Math.trunc(b / 12);
100
+ return v < 3 ? s.formatDistance("aboutXYears", T, u) : v < 9 ? s.formatDistance("overXYears", T, u) : s.formatDistance("almostXYears", T + 1, u);
101
+ }
102
+ }
103
+ function De(e, t) {
104
+ return Se(e, he(e), t);
105
+ }
106
+ const Ce = {
107
+ data: function() {
108
+ return {
109
+ localDate: /* @__PURE__ */ new Date(),
110
+ displayLocal: localStorage.clock_zone === "local",
111
+ display24h: !localStorage.clock_12h,
112
+ dateMode: localStorage.clock_dateMode || "monthFirst",
113
+ intervalCount: 0,
114
+ showMenu: !1,
115
+ menuX: 0,
116
+ menuY: 0
117
+ };
118
+ },
119
+ computed: {
120
+ utcDate: function() {
121
+ return new Date(
122
+ this.localDate.getTime() + this.localDate.getTimezoneOffset() * 6e4
123
+ );
124
+ },
125
+ formatString: function() {
126
+ let e;
127
+ switch (this.dateMode) {
128
+ case "monthFirst":
129
+ e = "LL/dd/yyy";
130
+ break;
131
+ case "dayFirst":
132
+ e = "dd/LL/yyy";
133
+ break;
134
+ case "number":
135
+ e = "D";
136
+ break;
137
+ }
138
+ let t;
139
+ return this.display24h ? t = "HH:mm:ss" : t = "hh:mm:ss a", `${e} ${t}`;
140
+ }
141
+ },
142
+ watch: {
143
+ displayLocal: function(e) {
144
+ localStorage.clock_zone = e ? "local" : "utc";
145
+ },
146
+ display24h: function(e) {
147
+ e ? delete localStorage.clock_12h : localStorage.clock_12h = !0;
148
+ },
149
+ dateMode: function(e) {
150
+ e.match(/^monthFirst$|^dayFirst$|^number$/) && (localStorage.clock_dateMode = e);
151
+ }
152
+ },
153
+ created: function() {
154
+ setInterval(
155
+ () => {
156
+ this.intervalCount++, this.localDate = /* @__PURE__ */ new Date();
157
+ },
158
+ this.intervalCount < 10 ? 100 : 1e3
159
+ // get the seconds to about 100ms accuracy
160
+ );
161
+ },
162
+ methods: {
163
+ openMenu: function(e) {
164
+ e.preventDefault(), this.showMenu = !1, this.menuX = e.clientX, this.menuY = e.clientY, this.$nextTick(() => {
165
+ this.showMenu = !0;
166
+ });
167
+ },
168
+ toggleDisplayLocal: function() {
169
+ this.displayLocal = !this.displayLocal;
170
+ },
171
+ toggleDisplay24h: function() {
172
+ this.display24h = !this.display24h;
173
+ },
174
+ setMonthFirst: function() {
175
+ this.dateMode = "monthFirst";
176
+ },
177
+ setDayFirst: function() {
178
+ this.dateMode = "dayFirst";
179
+ },
180
+ setNumber: function() {
181
+ this.dateMode = "number";
182
+ },
183
+ formatDate: function(e, t) {
184
+ return re(e, t, { useAdditionalDayOfYearTokens: !0 });
185
+ }
186
+ }
187
+ };
188
+ function Te(e, t, o, l, s, r) {
189
+ const m = a("v-list-item-title"), u = a("v-list-item"), p = a("v-divider"), g = a("v-list"), y = a("v-menu");
190
+ return c(), w("div", null, [
191
+ C("span", {
192
+ style: { cursor: "context-menu" },
193
+ class: "font-weight-bold",
194
+ onContextmenu: t[0] || (t[0] = (...S) => r.openMenu && r.openMenu(...S))
195
+ }, _(r.formatDate(e.displayLocal ? e.localDate : r.utcDate, r.formatString)) + " (" + _(e.displayLocal ? "local" : "UTC") + ") ", 33),
196
+ n(y, {
197
+ modelValue: e.showMenu,
198
+ "onUpdate:modelValue": t[1] || (t[1] = (S) => e.showMenu = S),
199
+ target: [e.menuX, e.menuY]
200
+ }, {
201
+ default: i(() => [
202
+ n(g, null, {
203
+ default: i(() => [
204
+ n(u, null, {
205
+ default: i(() => [
206
+ n(m, {
207
+ style: { cursor: "pointer" },
208
+ onClick: r.toggleDisplayLocal
209
+ }, {
210
+ default: i(() => [
211
+ f(" Display " + _(e.displayLocal ? "UTC" : "local time"), 1)
212
+ ]),
213
+ _: 1
214
+ }, 8, ["onClick"])
215
+ ]),
216
+ _: 1
217
+ }),
218
+ n(p),
219
+ n(u, null, {
220
+ default: i(() => [
221
+ n(m, {
222
+ style: { cursor: "pointer" },
223
+ onClick: r.toggleDisplay24h
224
+ }, {
225
+ default: i(() => [
226
+ f(" Display " + _(e.display24h ? 12 : 24) + " hour clock ", 1)
227
+ ]),
228
+ _: 1
229
+ }, 8, ["onClick"])
230
+ ]),
231
+ _: 1
232
+ }),
233
+ n(p),
234
+ e.dateMode !== "monthFirst" ? (c(), N(u, { key: 0 }, {
235
+ default: i(() => [
236
+ n(m, {
237
+ style: { cursor: "pointer" },
238
+ onClick: r.setMonthFirst
239
+ }, {
240
+ default: i(() => t[2] || (t[2] = [
241
+ f(" Display mm/dd/yyyy ")
242
+ ])),
243
+ _: 1
244
+ }, 8, ["onClick"])
245
+ ]),
246
+ _: 1
247
+ })) : D("", !0),
248
+ e.dateMode !== "dayFirst" ? (c(), N(u, { key: 1 }, {
249
+ default: i(() => [
250
+ n(m, {
251
+ style: { cursor: "pointer" },
252
+ onClick: r.setDayFirst
253
+ }, {
254
+ default: i(() => t[3] || (t[3] = [
255
+ f(" Display dd/mm/yyyy ")
256
+ ])),
257
+ _: 1
258
+ }, 8, ["onClick"])
259
+ ]),
260
+ _: 1
261
+ })) : D("", !0),
262
+ e.dateMode !== "number" ? (c(), N(u, { key: 2 }, {
263
+ default: i(() => [
264
+ n(m, {
265
+ style: { cursor: "pointer" },
266
+ onClick: r.setNumber
267
+ }, {
268
+ default: i(() => t[4] || (t[4] = [
269
+ f(" Display day of year ")
270
+ ])),
271
+ _: 1
272
+ }, 8, ["onClick"])
273
+ ]),
274
+ _: 1
275
+ })) : D("", !0)
276
+ ]),
277
+ _: 1
278
+ })
279
+ ]),
280
+ _: 1
281
+ }, 8, ["modelValue", "target"])
282
+ ]);
283
+ }
284
+ const Me = /* @__PURE__ */ A(Ce, [["render", Te]]), Ue = {
285
+ components: {
286
+ ClockFooter: Me,
287
+ UpgradeToEnterpriseDialog: x
288
+ },
289
+ data() {
290
+ return {
291
+ icon: "/img/icon.png",
292
+ edition: "",
293
+ enterprise: !1,
294
+ license: "",
295
+ sourceUrl: "",
296
+ version: "",
297
+ showUpgradeToEnterpriseDialog: !1,
298
+ chromeless: this.$route.query.chromeless
299
+ };
300
+ },
301
+ created: function() {
302
+ this.getSourceUrl(), U.get("/openc3-api/info").then((e) => {
303
+ e.data.enterprise ? this.edition = "COSMOS Enterprise" : this.edition = "COSMOS Open Source", this.enterprise = e.data.enterprise, this.license = e.data.license, this.version = e.data.version;
304
+ });
305
+ },
306
+ computed: {
307
+ footerClass() {
308
+ return this.enterprise ? "enterprise" : "base";
309
+ }
310
+ },
311
+ methods: {
312
+ getSourceUrl: function() {
313
+ new B().get_settings(["source_url"]).then((e) => {
314
+ this.sourceUrl = e[0];
315
+ });
316
+ },
317
+ upgrade: function() {
318
+ this.enterprise || (this.showUpgradeToEnterpriseDialog = !0);
319
+ }
320
+ }
321
+ }, Ae = ["src"], Ve = ["href"], Oe = { class: "justify-right" };
322
+ function Le(e, t, o, l, s, r) {
323
+ const m = a("v-spacer"), u = a("clock-footer"), p = a("upgrade-to-enterprise-dialog"), g = a("v-footer");
324
+ return s.chromeless ? D("", !0) : (c(), N(g, {
325
+ key: 0,
326
+ id: "footer",
327
+ app: "",
328
+ height: "33"
329
+ }, {
330
+ default: i(() => [
331
+ C("img", {
332
+ src: s.icon,
333
+ alt: "OpenC3"
334
+ }, null, 8, Ae),
335
+ C("span", {
336
+ class: ee(r.footerClass),
337
+ onClick: t[0] || (t[0] = (...y) => r.upgrade && r.upgrade(...y))
338
+ }, " OpenC3 " + _(s.edition) + " " + _(s.version) + " © 2024 - License: " + _(s.license), 3),
339
+ n(m),
340
+ C("a", {
341
+ href: s.sourceUrl,
342
+ class: "text-white text-decoration-underline"
343
+ }, " Source ", 8, Ve),
344
+ n(m),
345
+ C("div", Oe, [
346
+ n(u)
347
+ ]),
348
+ n(p, {
349
+ modelValue: s.showUpgradeToEnterpriseDialog,
350
+ "onUpdate:modelValue": t[1] || (t[1] = (y) => s.showUpgradeToEnterpriseDialog = y),
351
+ reason: "Enterprise is Commercially Licensed"
352
+ }, null, 8, ["modelValue"])
353
+ ]),
354
+ _: 1
355
+ }));
356
+ }
357
+ const Ct = /* @__PURE__ */ A(Ue, [["render", Le], ["__scopeId", "data-v-90a4c42b"]]), R = 1e3, { highestLevel: Ee, orderByLevel: Ie, groupByLevel: Pe } = de, Re = {
358
+ components: {
359
+ AstroStatusIndicator: fe
360
+ },
361
+ props: {
362
+ size: {
363
+ type: [String, Number],
364
+ default: 26
365
+ }
366
+ },
367
+ data: function() {
368
+ return {
369
+ AstroStatusColors: pe,
370
+ alerts: [],
371
+ cable: new $(),
372
+ scriptCable: new $("/script-api/cable"),
373
+ subscription: null,
374
+ scriptSubscription: null,
375
+ numScripts: 0,
376
+ notifications: [],
377
+ showNotificationPane: !1,
378
+ toastNotification: {},
379
+ notificationDialog: !1,
380
+ selectedNotification: {},
381
+ settingsDialog: !1,
382
+ showToast: !0
383
+ };
384
+ },
385
+ computed: {
386
+ activeScripts: function() {
387
+ return `Scripts: ${this.numScripts}`;
388
+ },
389
+ notificationVsAlert: function() {
390
+ return "notifications";
391
+ },
392
+ iconStatus: function() {
393
+ if (this.unreadNotifications.length === 0)
394
+ return "off";
395
+ const e = this.unreadNotifications.map((t) => t.level).filter((t, o, l) => l.indexOf(t) === o);
396
+ return Q[Ee(e)];
397
+ },
398
+ readNotifications: function() {
399
+ return this.notifications.filter((e) => e.read).sort((e, t) => t.time - e.time);
400
+ },
401
+ unreadNotifications: function() {
402
+ return this.notifications.filter((e) => !e.read).sort((e, t) => t.time - e.time);
403
+ },
404
+ unreadCount: function() {
405
+ return this.unreadNotifications.length;
406
+ },
407
+ notificationList: function() {
408
+ const e = Pe(this.unreadNotifications);
409
+ let t = Ie(Object.keys(e), (o) => o).flatMap(
410
+ (o) => [{
411
+ header: o.charAt(0).toUpperCase() + o.slice(1)
412
+ }, ...e[o]]
413
+ );
414
+ return this.readNotifications.length && (t = t.concat([{ header: "Read" }, ...this.readNotifications])), t;
415
+ }
416
+ },
417
+ watch: {
418
+ showNotificationPane: function(e) {
419
+ e || (this.selectedNotification.message ? (this.notificationDialog = !1, this.selectedNotification = {}) : this.markAllAsRead());
420
+ },
421
+ showToast: function(e) {
422
+ localStorage.notoast = !e;
423
+ }
424
+ },
425
+ created: function() {
426
+ this.showToast = localStorage.notoast === "false", this.subscribe(), this.alerts = this.$store.state.notifyHistory, U.get("/script-api/running-script").then((e) => {
427
+ this.numScripts = e.data.length;
428
+ });
429
+ },
430
+ unmounted: function() {
431
+ this.subscription && this.subscription.unsubscribe(), this.scriptSubscription && this.scriptSubscription.unsubscribe(), this.cable.disconnect(), this.scriptCable.disconnect();
432
+ },
433
+ methods: {
434
+ getStatus: function(e) {
435
+ return Q[e];
436
+ },
437
+ markAllAsRead: function() {
438
+ this.notifications.forEach((e) => {
439
+ e.read = !0, (!localStorage.lastReadNotification || localStorage.lastReadNotification < e.msg_id) && (localStorage.lastReadNotification = e.msg_id);
440
+ });
441
+ },
442
+ clearNotifications: function() {
443
+ this.markAllAsRead(), this.notifications = [], localStorage.notificationStreamOffset = localStorage.lastReadNotification, this.showNotificationPane = !1;
444
+ },
445
+ toggleNotificationPane: function() {
446
+ this.showNotificationPane = !this.showNotificationPane;
447
+ },
448
+ toggleSettingsDialog: function() {
449
+ this.settingsDialog = !this.settingsDialog;
450
+ },
451
+ openDialog: function(e, t = !1) {
452
+ e.read = !0, (!localStorage.lastReadNotification || localStorage.lastReadNotification < e.msg_id) && (localStorage.lastReadNotification = e.msg_id), this.selectedNotification = e, this.notificationDialog = !0;
453
+ },
454
+ navigate: function(e) {
455
+ window.open(e, "_blank");
456
+ },
457
+ subscribe: function() {
458
+ this.cable.createSubscription(
459
+ "MessagesChannel",
460
+ window.openc3Scope,
461
+ {
462
+ received: (e) => this.receiveMessage(e)
463
+ },
464
+ {
465
+ start_offset: localStorage.notificationStreamOffset || localStorage.lastReadNotification,
466
+ types: ["notification", "alert", "ephemeral"]
467
+ }
468
+ ).then((e) => {
469
+ this.subscription = e;
470
+ }), this.scriptCable.createSubscription("AllScriptsChannel", window.openc3Scope, {
471
+ received: (e) => this.receiveScript(e)
472
+ }).then((e) => {
473
+ this.scriptSubscription = e;
474
+ });
475
+ },
476
+ receiveMessage: function(e) {
477
+ this.cable.recordPing(), e.length > R && e.splice(0, e.length - R);
478
+ let t = e.filter(
479
+ (l) => l.type === "ephemeral"
480
+ );
481
+ t && t.length > 0 && (e = e.filter((l) => l.type !== "ephemeral"), t.forEach((l) => {
482
+ this.$emit("ephemeral", l);
483
+ }));
484
+ let o = !1;
485
+ if (e.forEach((l) => {
486
+ l.read = l.msg_id <= localStorage.lastReadNotification, l.level = l.level || "INFO", !l.read && // Don't toast read notifications
487
+ ["FATAL", "ERROR", "WARN"].includes(l.level) && (o = !0, this.toastNotification = l);
488
+ }), this.showToast && o) {
489
+ let l = 5e3;
490
+ ["FATAL", "ERROR"].includes(this.toastNotification.level) && (l = null), this.$notify && this.$notify[this.toastNotification.level]({
491
+ ...this.toastNotification,
492
+ type: "notification",
493
+ duration: l,
494
+ saveToHistory: !1
495
+ });
496
+ }
497
+ this.notifications.length + e.length > R && this.notifications.splice(
498
+ 0,
499
+ this.notifications.length + e.length - R
500
+ ), this.notifications = this.notifications.concat(e);
501
+ },
502
+ receiveScript: function(e) {
503
+ this.cable.recordPing(), this.numScripts = e.active_scripts;
504
+ },
505
+ formatShortDateTime: function(e) {
506
+ if (!e) return "";
507
+ const t = new Date(e / 1e6);
508
+ return De(t, { addSuffix: !0 });
509
+ }
510
+ }
511
+ };
512
+ function Fe(e, t, o, l, s, r) {
513
+ const m = a("v-overlay"), u = a("rux-monitoring-icon"), p = a("v-spacer"), g = a("v-btn"), y = a("v-tooltip"), S = a("v-card-title"), h = a("v-card-text"), b = a("v-divider"), v = a("v-list-subheader"), T = a("rux-status"), E = a("v-list-item-title"), M = a("v-list-item-subtitle"), z = a("v-list-item"), X = a("v-list"), I = a("v-card"), d = a("v-menu"), Y = a("astro-status-indicator"), te = a("v-card-subtitle"), oe = a("v-icon"), q = a("v-card-actions"), J = a("v-dialog"), ne = a("v-switch");
514
+ return c(), w("div", null, [
515
+ n(m, {
516
+ "model-value": e.showNotificationPane,
517
+ class: "overlay"
518
+ }, null, 8, ["model-value"]),
519
+ n(d, {
520
+ modelValue: e.showNotificationPane,
521
+ "onUpdate:modelValue": t[0] || (t[0] = (k) => e.showNotificationPane = k),
522
+ transition: "slide-y-transition",
523
+ "close-on-content-click": !1,
524
+ offset: [12, 102]
525
+ }, {
526
+ activator: i(({ props: k }) => [
527
+ n(u, j(k, {
528
+ class: "rux-icon",
529
+ icon: r.notificationVsAlert,
530
+ label: "Notifications",
531
+ sublabel: r.activeScripts,
532
+ status: r.iconStatus,
533
+ notifications: r.unreadNotifications.length
534
+ }), null, 16, ["icon", "sublabel", "status", "notifications"])
535
+ ]),
536
+ default: i(() => [
537
+ n(I, null, {
538
+ default: i(() => [
539
+ n(S, { class: "d-flex align-center justify-content-space-between" }, {
540
+ default: i(() => [
541
+ t[7] || (t[7] = C("span", null, " Notifications ", -1)),
542
+ n(p),
543
+ n(y, {
544
+ location: "top",
545
+ "open-delay": "350"
546
+ }, {
547
+ activator: i(({ props: k }) => [
548
+ n(g, j(k, {
549
+ class: "ml-1",
550
+ icon: "mdi-close-box-multiple ",
551
+ variant: "text",
552
+ onClick: r.clearNotifications,
553
+ "data-test": "clear-notifications"
554
+ }), null, 16, ["onClick"])
555
+ ]),
556
+ default: i(() => [
557
+ t[6] || (t[6] = C("span", null, " Clear all ", -1))
558
+ ]),
559
+ _: 1
560
+ }),
561
+ n(g, {
562
+ icon: "astro:settings",
563
+ variant: "text",
564
+ onClick: r.toggleSettingsDialog,
565
+ class: "ml-1",
566
+ "data-test": "notification-settings"
567
+ }, null, 8, ["onClick"])
568
+ ]),
569
+ _: 1
570
+ }),
571
+ e.notifications.length === 0 ? (c(), N(h, { key: 0 }, {
572
+ default: i(() => t[8] || (t[8] = [
573
+ f(" No notifications ")
574
+ ])),
575
+ _: 1
576
+ })) : (c(), N(X, {
577
+ key: 1,
578
+ lines: "two",
579
+ width: "420",
580
+ "max-height": "80vh",
581
+ class: "overflow-y-auto",
582
+ "data-test": "notification-list"
583
+ }, {
584
+ default: i(() => [
585
+ (c(!0), w(V, null, Z(r.notificationList, (k, H) => (c(), w(V, null, [
586
+ k.header ? (c(), w(V, { key: 0 }, [
587
+ H !== 0 ? (c(), N(b, {
588
+ key: H,
589
+ class: "mb-2"
590
+ })) : D("", !0),
591
+ (c(), N(v, {
592
+ key: k.header
593
+ }, {
594
+ default: i(() => [
595
+ f(_(k.header), 1)
596
+ ]),
597
+ _: 2
598
+ }, 1024))
599
+ ], 64)) : (c(), N(z, {
600
+ key: `notification-${H}`,
601
+ onClick: (_t) => r.openDialog(k),
602
+ class: "pl-2"
603
+ }, {
604
+ prepend: i(() => [
605
+ n(T, {
606
+ class: "px-2",
607
+ status: r.getStatus(k.level)
608
+ }, null, 8, ["status"])
609
+ ]),
610
+ default: i(() => [
611
+ n(E, {
612
+ class: ee({
613
+ "text--secondary": k.read,
614
+ "text-wrap": !0
615
+ })
616
+ }, {
617
+ default: i(() => [
618
+ f(_(k.message), 1)
619
+ ]),
620
+ _: 2
621
+ }, 1032, ["class"]),
622
+ n(M, null, {
623
+ default: i(() => [
624
+ f(_(r.formatShortDateTime(k.time)), 1)
625
+ ]),
626
+ _: 2
627
+ }, 1024)
628
+ ]),
629
+ _: 2
630
+ }, 1032, ["onClick"]))
631
+ ], 64))), 256))
632
+ ]),
633
+ _: 1
634
+ }))
635
+ ]),
636
+ _: 1
637
+ })
638
+ ]),
639
+ _: 1
640
+ }, 8, ["modelValue"]),
641
+ n(J, {
642
+ modelValue: e.notificationDialog,
643
+ "onUpdate:modelValue": t[3] || (t[3] = (k) => e.notificationDialog = k),
644
+ width: "600"
645
+ }, {
646
+ default: i(() => [
647
+ n(I, null, {
648
+ default: i(() => [
649
+ n(S, null, {
650
+ default: i(() => [
651
+ f(_(e.selectedNotification.message) + " ", 1),
652
+ n(p),
653
+ n(Y, {
654
+ status: e.selectedNotification.level || "INFO"
655
+ }, null, 8, ["status"])
656
+ ]),
657
+ _: 1
658
+ }),
659
+ n(te, null, {
660
+ default: i(() => [
661
+ f(_(r.formatShortDateTime(e.selectedNotification.time)), 1)
662
+ ]),
663
+ _: 1
664
+ }),
665
+ n(b),
666
+ n(q, null, {
667
+ default: i(() => [
668
+ e.selectedNotification.url ? (c(), N(g, {
669
+ key: 0,
670
+ color: "primary",
671
+ variant: "text",
672
+ onClick: t[1] || (t[1] = (k) => r.navigate(e.selectedNotification.url))
673
+ }, {
674
+ default: i(() => [
675
+ t[10] || (t[10] = f(" Open ")),
676
+ n(oe, { end: "" }, {
677
+ default: i(() => t[9] || (t[9] = [
678
+ f(" mdi-open-in-new ")
679
+ ])),
680
+ _: 1
681
+ })
682
+ ]),
683
+ _: 1
684
+ })) : D("", !0),
685
+ n(g, {
686
+ color: "primary",
687
+ variant: "text",
688
+ onClick: t[2] || (t[2] = (k) => e.notificationDialog = !1)
689
+ }, {
690
+ default: i(() => t[11] || (t[11] = [
691
+ f(" Close ")
692
+ ])),
693
+ _: 1
694
+ })
695
+ ]),
696
+ _: 1
697
+ })
698
+ ]),
699
+ _: 1
700
+ })
701
+ ]),
702
+ _: 1
703
+ }, 8, ["modelValue"]),
704
+ n(J, {
705
+ modelValue: e.settingsDialog,
706
+ "onUpdate:modelValue": t[5] || (t[5] = (k) => e.settingsDialog = k),
707
+ width: "600"
708
+ }, {
709
+ default: i(() => [
710
+ n(I, null, {
711
+ default: i(() => [
712
+ n(S, null, {
713
+ default: i(() => t[12] || (t[12] = [
714
+ f(" Notification settings ")
715
+ ])),
716
+ _: 1
717
+ }),
718
+ n(h, null, {
719
+ default: i(() => [
720
+ n(ne, {
721
+ modelValue: e.showToast,
722
+ "onUpdate:modelValue": t[4] || (t[4] = (k) => e.showToast = k),
723
+ label: "Show toasts",
724
+ color: "primary"
725
+ }, null, 8, ["modelValue"])
726
+ ]),
727
+ _: 1
728
+ }),
729
+ n(b),
730
+ n(q, null, {
731
+ default: i(() => [
732
+ n(g, {
733
+ color: "primary",
734
+ variant: "text",
735
+ onClick: r.toggleSettingsDialog
736
+ }, {
737
+ default: i(() => t[13] || (t[13] = [
738
+ f(" Close ")
739
+ ])),
740
+ _: 1
741
+ }, 8, ["onClick"])
742
+ ]),
743
+ _: 1
744
+ })
745
+ ]),
746
+ _: 1
747
+ })
748
+ ]),
749
+ _: 1
750
+ }, 8, ["modelValue"])
751
+ ]);
752
+ }
753
+ const xe = /* @__PURE__ */ A(Re, [["render", Fe], ["__scopeId", "data-v-9bcdc9f6"]]), ze = {
754
+ components: {
755
+ UpgradeToEnterpriseDialog: x
756
+ },
757
+ data: function() {
758
+ return {
759
+ // Open Source only has one scope: 'DEFAULT'
760
+ scopes: ["DEFAULT"],
761
+ scope: "DEFAULT",
762
+ showUpgradeToEnterpriseDialog: !1
763
+ };
764
+ }
765
+ };
766
+ function Xe(e, t, o, l, s, r) {
767
+ const m = a("v-select"), u = a("upgrade-to-enterprise-dialog");
768
+ return c(), w("div", {
769
+ style: { cursor: "pointer" },
770
+ onClick: t[2] || (t[2] = (p) => e.showUpgradeToEnterpriseDialog = !0)
771
+ }, [
772
+ n(m, {
773
+ modelValue: e.scope,
774
+ "onUpdate:modelValue": t[0] || (t[0] = (p) => e.scope = p),
775
+ items: e.scopes,
776
+ disabled: e.scopes.length <= 1,
777
+ label: "Scope",
778
+ density: "compact",
779
+ variant: "outlined",
780
+ "hide-details": "",
781
+ style: { "max-width": "150px" }
782
+ }, null, 8, ["modelValue", "items", "disabled"]),
783
+ n(u, {
784
+ modelValue: e.showUpgradeToEnterpriseDialog,
785
+ "onUpdate:modelValue": t[1] || (t[1] = (p) => e.showUpgradeToEnterpriseDialog = p),
786
+ reason: "Enterprise allows additional Scopes"
787
+ }, null, 8, ["modelValue"])
788
+ ]);
789
+ }
790
+ const Ye = /* @__PURE__ */ A(ze, [["render", Xe]]), He = {
791
+ components: {
792
+ UpgradeToEnterpriseDialog: x
793
+ },
794
+ props: {
795
+ size: {
796
+ type: [String, Number],
797
+ default: 26
798
+ }
799
+ },
800
+ data: function() {
801
+ let e = OpenC3Auth.user();
802
+ return {
803
+ showUserMenu: !1,
804
+ authenticated: !!localStorage.openc3Token,
805
+ name: e.name,
806
+ // preferred_username is returned by the token (see authorization.rb)
807
+ username: e.preferred_username,
808
+ showUpgradeToEnterpriseDialog: !1,
809
+ activeUsers: ["None"]
810
+ };
811
+ },
812
+ watch: {
813
+ // Whenever we show the user menu, refresh the list of active users
814
+ showUserMenu: function(e, t) {
815
+ e === !0 && this.name !== "Anonymous" && U.get("/openc3-api/users/active").then((o) => {
816
+ this.activeUsers = o.data.filter(
817
+ (l) => !l.includes(this.name)
818
+ ), this.activeUsers.length === 0 && (this.activeUsers = ["None"]);
819
+ });
820
+ }
821
+ },
822
+ methods: {
823
+ logout: function() {
824
+ OpenC3Auth.logout(), U.put(`/openc3-api/users/logout/${this.username}`);
825
+ },
826
+ login: function() {
827
+ OpenC3Auth.login(location.href);
828
+ },
829
+ roles: function() {
830
+ return this.name === "Anonymous" ? "Admin" : OpenC3Auth.userroles().map((e) => this.capitalize(e)).sort().join(", ");
831
+ },
832
+ capitalize: function(e) {
833
+ return e.charAt(0).toUpperCase() + e.slice(1);
834
+ }
835
+ }
836
+ }, je = { style: { "text-align": "center", margin: "5px" } }, Be = { key: 0 }, Ze = { class: "roles" }, We = { class: "pb-3 roles" }, qe = { key: 1 }, Je = {
837
+ key: 0,
838
+ class: "pa-3"
839
+ }, $e = { key: 2 };
840
+ function Ge(e, t, o, l, s, r) {
841
+ const m = a("v-overlay"), u = a("rux-monitoring-icon"), p = a("v-btn"), g = a("v-row"), y = a("v-card-text"), S = a("v-card"), h = a("v-menu"), b = a("upgrade-to-enterprise-dialog");
842
+ return c(), w("div", null, [
843
+ n(m, {
844
+ "model-value": e.showUserMenu,
845
+ class: "overlay"
846
+ }, null, 8, ["model-value"]),
847
+ n(h, {
848
+ modelValue: e.showUserMenu,
849
+ "onUpdate:modelValue": t[1] || (t[1] = (v) => e.showUserMenu = v),
850
+ transition: "slide-y-transition",
851
+ "close-on-content-click": !1,
852
+ offset: 20
853
+ }, {
854
+ activator: i(({ props: v }) => [
855
+ n(u, j(v, {
856
+ class: "rux-icon",
857
+ icon: "person",
858
+ status: "off",
859
+ label: e.name,
860
+ sublabel: r.roles()
861
+ }), null, 16, ["label", "sublabel"])
862
+ ]),
863
+ default: i(() => [
864
+ n(S, null, {
865
+ default: i(() => [
866
+ n(y, { class: "text-center" }, {
867
+ default: i(() => [
868
+ C("div", je, _(e.name), 1),
869
+ e.name !== "Anonymous" ? (c(), w("div", Be, [
870
+ C("div", Ze, "Username: " + _(e.username), 1),
871
+ C("div", We, "Roles: " + _(r.roles()), 1)
872
+ ])) : D("", !0),
873
+ e.authenticated ? (c(), w("div", qe, [
874
+ n(p, {
875
+ block: "",
876
+ onClick: r.logout,
877
+ color: "primary"
878
+ }, {
879
+ default: i(() => t[3] || (t[3] = [
880
+ f(" Logout ")
881
+ ])),
882
+ _: 1
883
+ }, 8, ["onClick"]),
884
+ e.name !== "Anonymous" ? (c(), w("div", Je, [
885
+ n(g, { class: "pt-3 user-title" }, {
886
+ default: i(() => t[4] || (t[4] = [
887
+ f("Other Active Users:")
888
+ ])),
889
+ _: 1
890
+ }),
891
+ (c(!0), w(V, null, Z(e.activeUsers, (v, T) => (c(), N(g, {
892
+ key: T,
893
+ class: "user"
894
+ }, {
895
+ default: i(() => [
896
+ f(_(v), 1)
897
+ ]),
898
+ _: 2
899
+ }, 1024))), 128))
900
+ ])) : D("", !0)
901
+ ])) : (c(), w("div", $e, [
902
+ n(p, {
903
+ block: "",
904
+ onClick: r.login,
905
+ color: "primary"
906
+ }, {
907
+ default: i(() => t[5] || (t[5] = [
908
+ f(" Login ")
909
+ ])),
910
+ _: 1
911
+ }, 8, ["onClick"])
912
+ ])),
913
+ e.name === "Anonymous" ? (c(), w("div", {
914
+ key: 3,
915
+ onClick: t[0] || (t[0] = (v) => e.showUpgradeToEnterpriseDialog = !0),
916
+ class: "pt-2 link"
917
+ }, t[6] || (t[6] = [
918
+ f(" Click to learn more about"),
919
+ C("br", null, null, -1),
920
+ f(" COSMOS Enterprise Edition ")
921
+ ]))) : D("", !0)
922
+ ]),
923
+ _: 1
924
+ })
925
+ ]),
926
+ _: 1
927
+ })
928
+ ]),
929
+ _: 1
930
+ }, 8, ["modelValue"]),
931
+ n(b, {
932
+ modelValue: e.showUpgradeToEnterpriseDialog,
933
+ "onUpdate:modelValue": t[2] || (t[2] = (v) => e.showUpgradeToEnterpriseDialog = v),
934
+ reason: "Enterprise has individual users with RBAC"
935
+ }, null, 8, ["modelValue"])
936
+ ]);
937
+ }
938
+ const Ke = /* @__PURE__ */ A(He, [["render", Ge], ["__scopeId", "data-v-3a353a10"]]), Qe = {
939
+ components: {
940
+ Notifications: xe,
941
+ ScopeSelector: Ye,
942
+ UserMenu: Ke,
943
+ UpgradeToEnterpriseDialog: x
944
+ },
945
+ props: {
946
+ edition: {
947
+ type: String,
948
+ default: ""
949
+ }
950
+ },
951
+ data() {
952
+ return {
953
+ api: new B(),
954
+ timeZone: "local",
955
+ subtitle: null,
956
+ // Update AstroSettings.vue when changing this
957
+ astro: {
958
+ hideClock: !1
959
+ },
960
+ items: [],
961
+ drawer: !0,
962
+ appNav: {},
963
+ logo: "/img/logo.png",
964
+ initiallyOpen: [],
965
+ showUpgradeToEnterpriseDialog: !1,
966
+ chromeless: this.$route.query.chromeless
967
+ };
968
+ },
969
+ computed: {
970
+ // a computed getter
971
+ shownTools: function() {
972
+ let e = {};
973
+ for (let t of Object.keys(this.appNav))
974
+ this.appNav[t].shown && this.appNav[t].category !== "Admin" && (e[t] = this.appNav[t]);
975
+ return e;
976
+ },
977
+ adminTools: function() {
978
+ let e = {};
979
+ for (let t of Object.keys(this.appNav))
980
+ this.appNav[t].shown && this.appNav[t].category === "Admin" && (e[t] = this.appNav[t]);
981
+ return e;
982
+ },
983
+ astroTimeZone: function() {
984
+ return this.timeZone === "local" ? Intl.DateTimeFormat().resolvedOptions().timeZone : this.timeZone;
985
+ }
986
+ },
987
+ created() {
988
+ this.api.get_setting("astro").then((e) => {
989
+ e && (this.astro = JSON.parse(e));
990
+ }).catch((e) => {
991
+ }), this.api.get_setting("subtitle").then((e) => {
992
+ e && (this.subtitle = e);
993
+ }).catch((e) => {
994
+ }), this.api.get_setting("time_zone").then((e) => {
995
+ e && (this.timeZone = e);
996
+ }).catch((e) => {
997
+ }), U.get("/openc3-api/tools/all", { params: { scope: "DEFAULT" } }).then(
998
+ (e) => {
999
+ this.appNav = e.data;
1000
+ let t = 1;
1001
+ for (let o of Object.keys(this.appNav)) {
1002
+ if (this.appNav[o].shown) {
1003
+ if (this.appNav[o].category && this.appNav[o].category !== "Admin") {
1004
+ this.initiallyOpen.includes(this.appNav[o].category) || this.initiallyOpen.push(this.appNav[o].category);
1005
+ const l = this.items.filter(
1006
+ (s) => s.name === this.appNav[o].category
1007
+ );
1008
+ l.length === 0 ? (this.items.push({
1009
+ id: t,
1010
+ name: this.appNav[o].category,
1011
+ children: [
1012
+ {
1013
+ id: t + 1,
1014
+ name: this.appNav[o].name,
1015
+ icon: this.appNav[o].icon,
1016
+ url: this.appNav[o].url,
1017
+ inline_url: this.appNav[o].inline_url,
1018
+ window: this.appNav[o].window
1019
+ }
1020
+ ]
1021
+ }), t++) : l[0].children.push({
1022
+ id: t,
1023
+ name: this.appNav[o].name,
1024
+ icon: this.appNav[o].icon,
1025
+ url: this.appNav[o].url,
1026
+ inline_url: this.appNav[o].inline_url,
1027
+ window: this.appNav[o].window
1028
+ });
1029
+ } else this.appNav[o].category || this.items.push({
1030
+ id: t,
1031
+ name: this.appNav[o].name,
1032
+ icon: this.appNav[o].icon,
1033
+ url: this.appNav[o].url,
1034
+ inline_url: this.appNav[o].inline_url,
1035
+ window: this.appNav[o].window
1036
+ });
1037
+ t++;
1038
+ }
1039
+ if (this.appNav[o].inline_url && this.appNav[o].window === "INLINE" && this.appNav[o].folder_name && this.appNav[o].folder_name !== "base") {
1040
+ let l = this.appNav[o].folder_name, s = "@openc3/tool-" + l;
1041
+ le({
1042
+ name: s,
1043
+ app: () => System.import(s),
1044
+ activeWhen: ["/tools/" + l]
1045
+ });
1046
+ }
1047
+ }
1048
+ if (ce({
1049
+ urlRerouteOnly: !0
1050
+ }), window.location.pathname == "/" || window.location.pathname == "/tools" || window.location.pathname == "/tools/") {
1051
+ for (let o of Object.keys(this.shownTools))
1052
+ if (this.appNav[o].shown) {
1053
+ history.replaceState(null, "", this.appNav[o].url);
1054
+ break;
1055
+ }
1056
+ }
1057
+ setInterval(() => {
1058
+ OpenC3Auth.updateToken(120).then(function(o) {
1059
+ o && OpenC3Auth.setTokens();
1060
+ });
1061
+ }, 6e4);
1062
+ }
1063
+ );
1064
+ },
1065
+ methods: {
1066
+ navigateToUrl: ue,
1067
+ newTabUrl(e) {
1068
+ let t = null;
1069
+ try {
1070
+ e.url[0] == "/" && e.url[1] != "/" ? t = new URL(e.url, window.location.origin) : t = new URL(e.url), t.searchParams.set("scope", window.openc3Scope);
1071
+ } catch (o) {
1072
+ window.$cosmosNotify.serious({
1073
+ title: `Invalid URL '${e.url}' for tool ${e.name}`,
1074
+ message: o.message
1075
+ }), t.href = "/";
1076
+ }
1077
+ return t.href;
1078
+ }
1079
+ }
1080
+ }, et = ["src"], tt = { style: { "text-align": "center", "font-size": "18pt" } }, ot = ["href", "onClick"], nt = ["href"], st = ["href", "onClick"], it = ["href", "onClick"], at = ["href"], rt = ["href"], lt = ["href"], ct = ["href"];
1081
+ function ut(e, t, o, l, s, r) {
1082
+ const m = a("v-btn"), u = a("v-divider"), p = a("v-icon"), g = a("v-treeview"), y = a("v-navigation-drawer"), S = a("rux-icon"), h = a("v-row"), b = a("v-col"), v = a("rux-clock"), T = a("v-spacer"), E = a("scope-selector"), M = a("notifications"), z = a("user-menu"), X = a("v-app-bar"), I = a("upgrade-to-enterprise-dialog");
1083
+ return c(), w("div", null, [
1084
+ s.chromeless ? D("", !0) : (c(), N(y, {
1085
+ key: 0,
1086
+ "model-value": s.drawer,
1087
+ id: "openc3-nav-drawer"
1088
+ }, {
1089
+ default: i(() => [
1090
+ C("img", {
1091
+ src: s.logo,
1092
+ class: "logo",
1093
+ alt: "OpenC3"
1094
+ }, null, 8, et),
1095
+ C("div", {
1096
+ class: "cosmos",
1097
+ onClick: t[0] || (t[0] = (d) => s.showUpgradeToEnterpriseDialog = !0)
1098
+ }, " COSMOS "),
1099
+ C("div", tt, _(s.subtitle), 1),
1100
+ (c(!0), w(V, null, Z(r.adminTools, (d, Y) => (c(), w("div", {
1101
+ key: Y,
1102
+ class: "ma-3"
1103
+ }, [
1104
+ n(m, {
1105
+ block: "",
1106
+ size: "small",
1107
+ href: d.url,
1108
+ onClick: L(() => r.navigateToUrl(d.url), ["prevent"]),
1109
+ class: "fixcenter",
1110
+ color: "primary"
1111
+ }, {
1112
+ default: i(() => t[3] || (t[3] = [
1113
+ f(" Admin Console ")
1114
+ ])),
1115
+ _: 2
1116
+ }, 1032, ["href", "onClick"])
1117
+ ]))), 128)),
1118
+ n(u),
1119
+ n(g, {
1120
+ items: s.items,
1121
+ opened: s.initiallyOpen,
1122
+ "item-value": "name",
1123
+ density: "compact",
1124
+ "open-on-click": ""
1125
+ }, {
1126
+ prepend: i(({ item: d }) => [
1127
+ d.icon ? (c(), w(V, { key: 0 }, [
1128
+ d.window === "INLINE" ? (c(), w("a", {
1129
+ key: 0,
1130
+ href: d.url,
1131
+ onClick: L(() => r.navigateToUrl(d.url), ["prevent"])
1132
+ }, [
1133
+ n(p, { class: "mr-2" }, {
1134
+ default: i(() => [
1135
+ f(_(d.icon), 1)
1136
+ ]),
1137
+ _: 2
1138
+ }, 1024)
1139
+ ], 8, ot)) : (c(), w("a", {
1140
+ key: 1,
1141
+ href: d.url
1142
+ }, [
1143
+ n(p, { class: "mr-2" }, {
1144
+ default: i(() => [
1145
+ f(_(d.icon), 1)
1146
+ ]),
1147
+ _: 2
1148
+ }, 1024)
1149
+ ], 8, nt))
1150
+ ], 64)) : D("", !0)
1151
+ ]),
1152
+ title: i(({ item: d }) => [
1153
+ d.icon ? (c(), w(V, { key: 1 }, [
1154
+ d.window === "INLINE" ? (c(), w("a", {
1155
+ key: 0,
1156
+ href: d.url,
1157
+ onClick: L(() => r.navigateToUrl(d.url), ["prevent"])
1158
+ }, _(d.name), 9, it)) : d.window === "IFRAME" ? (c(), w("a", {
1159
+ key: 1,
1160
+ href: "/tools/iframe?title=" + encodeURIComponent(d.name) + "&url=" + d.url
1161
+ }, _(d.name), 9, at)) : d.window === "SAME" ? (c(), w("a", {
1162
+ key: 2,
1163
+ href: d.url
1164
+ }, _(d.name), 9, rt)) : (c(), w("a", {
1165
+ key: 3,
1166
+ href: d.url,
1167
+ target: "_blank"
1168
+ }, _(d.name), 9, lt))
1169
+ ], 64)) : (c(), w("a", {
1170
+ key: 0,
1171
+ href: d.url,
1172
+ onClick: L(() => r.navigateToUrl(d.url), ["prevent"])
1173
+ }, _(d.name), 9, st))
1174
+ ]),
1175
+ append: i(({ item: d }) => [
1176
+ d.icon ? (c(), w("a", {
1177
+ key: 0,
1178
+ href: r.newTabUrl(d),
1179
+ target: "_blank"
1180
+ }, [
1181
+ n(p, null, {
1182
+ default: i(() => t[4] || (t[4] = [
1183
+ f("mdi-open-in-new")
1184
+ ])),
1185
+ _: 1
1186
+ })
1187
+ ], 8, ct)) : D("", !0)
1188
+ ]),
1189
+ _: 1
1190
+ }, 8, ["items", "opened"])
1191
+ ]),
1192
+ _: 1
1193
+ }, 8, ["model-value"])),
1194
+ s.chromeless ? D("", !0) : (c(), N(X, {
1195
+ key: 1,
1196
+ id: "openc3-app-toolbar"
1197
+ }, {
1198
+ default: i(() => [
1199
+ n(h, {
1200
+ class: "flex-nowrap",
1201
+ justify: "space-between",
1202
+ "no-gutters": ""
1203
+ }, {
1204
+ default: i(() => [
1205
+ n(b, { "align-self": "start" }, {
1206
+ default: i(() => [
1207
+ n(h, { class: "flex-nowrap" }, {
1208
+ default: i(() => [
1209
+ n(S, {
1210
+ class: "ml-3 mr-2 pa-2",
1211
+ size: "small",
1212
+ icon: "apps",
1213
+ onClick: t[1] || (t[1] = (d) => s.drawer = !s.drawer)
1214
+ }),
1215
+ t[5] || (t[5] = C("span", { id: "openc3-menu" }, null, -1))
1216
+ ]),
1217
+ _: 1
1218
+ })
1219
+ ]),
1220
+ _: 1
1221
+ }),
1222
+ n(b, null, {
1223
+ default: i(() => [
1224
+ n(h, { class: "clock flex-nowrap mt-0" }, {
1225
+ default: i(() => [
1226
+ s.astro.hideClock ? D("", !0) : (c(), N(v, {
1227
+ key: 0,
1228
+ "date-in": "",
1229
+ timezone: r.astroTimeZone
1230
+ }, null, 8, ["timezone"]))
1231
+ ]),
1232
+ _: 1
1233
+ })
1234
+ ]),
1235
+ _: 1
1236
+ }),
1237
+ n(b, {
1238
+ "align-self": "center",
1239
+ class: "mt-2"
1240
+ }, {
1241
+ default: i(() => [
1242
+ n(h, { class: "flex-nowrap" }, {
1243
+ default: i(() => [
1244
+ n(T),
1245
+ n(E, { class: "mr-6 mt-4" }),
1246
+ n(M, {
1247
+ class: "mr-6",
1248
+ "data-test": "notifications"
1249
+ }),
1250
+ n(z, { class: "mr-6" })
1251
+ ]),
1252
+ _: 1
1253
+ })
1254
+ ]),
1255
+ _: 1
1256
+ })
1257
+ ]),
1258
+ _: 1
1259
+ })
1260
+ ]),
1261
+ _: 1
1262
+ })),
1263
+ n(I, {
1264
+ modelValue: s.showUpgradeToEnterpriseDialog,
1265
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => s.showUpgradeToEnterpriseDialog = d),
1266
+ reason: "Enterprise adds Calendar and Autonomic"
1267
+ }, null, 8, ["modelValue"])
1268
+ ]);
1269
+ }
1270
+ const Tt = /* @__PURE__ */ A(Qe, [["render", ut], ["__scopeId", "data-v-d056ee4b"]]), Mt = {
1271
+ data: function() {
1272
+ return {
1273
+ api: null,
1274
+ classification: {
1275
+ text: "",
1276
+ fontColor: "white",
1277
+ backgroundColor: "red",
1278
+ topHeight: 0,
1279
+ bottomHeight: 0
1280
+ }
1281
+ };
1282
+ },
1283
+ computed: {
1284
+ classificationStyles: function() {
1285
+ return [
1286
+ `--classification-text:"${this.classification.text}";`,
1287
+ `--classification-font-color:${this.classification.fontColor};`,
1288
+ `--classification-background-color:${this.classification.backgroundColor};`,
1289
+ `--classification-height-top:${this.classification.topHeight}px;`,
1290
+ `--classification-height-bottom:${this.classification.bottomHeight}px;`
1291
+ ].join("");
1292
+ }
1293
+ },
1294
+ created: function() {
1295
+ this.api = new B(), this.load();
1296
+ },
1297
+ methods: {
1298
+ load: function() {
1299
+ this.api.get_setting("classification_banner").then((e) => {
1300
+ e && (this.classification = JSON.parse(e));
1301
+ }).catch((e) => {
1302
+ });
1303
+ }
1304
+ }
1305
+ }, dt = {
1306
+ data() {
1307
+ return {
1308
+ isSet: !0,
1309
+ password: "",
1310
+ confirmPassword: "",
1311
+ oldPassword: "",
1312
+ reset: !1,
1313
+ // setting a password for the first time, or changing to a new password
1314
+ alert: "",
1315
+ alertType: "success",
1316
+ showAlert: !1
1317
+ };
1318
+ },
1319
+ computed: {
1320
+ options: function() {
1321
+ return {
1322
+ noAuth: !0,
1323
+ noScope: !0
1324
+ // lol
1325
+ };
1326
+ },
1327
+ rules: function() {
1328
+ return {
1329
+ matchPassword: () => this.password === this.confirmPassword || "Passwords must match"
1330
+ };
1331
+ },
1332
+ formValid: function() {
1333
+ return this.reset ? this.isSet ? !!this.oldPassword && !!this.password && this.password === this.confirmPassword : !!this.password && this.password === this.confirmPassword : !!this.password;
1334
+ }
1335
+ },
1336
+ created: function() {
1337
+ U.get("/openc3-api/auth/token-exists", this.options).then((e) => {
1338
+ this.isSet = !!e.data.result, this.isSet || (this.reset = !0);
1339
+ });
1340
+ },
1341
+ methods: {
1342
+ showReset: function() {
1343
+ this.reset = !0;
1344
+ },
1345
+ login: function(e) {
1346
+ localStorage.openc3Token = e.data;
1347
+ const t = new URLSearchParams(window.location.search).get(
1348
+ "redirect"
1349
+ );
1350
+ t.startsWith("/tools/") ? window.location = decodeURI(t) : window.location = "/";
1351
+ },
1352
+ verifyPassword: function() {
1353
+ this.showAlert = !1, U.post("/openc3-api/auth/verify", {
1354
+ data: {
1355
+ token: this.password
1356
+ },
1357
+ ...this.options
1358
+ }).then((e) => {
1359
+ this.login(e);
1360
+ }).catch((e) => {
1361
+ this.alert = "Incorrect password", this.alertType = "warning", this.showAlert = !0;
1362
+ });
1363
+ },
1364
+ setPassword: function() {
1365
+ this.showAlert = !1, U.post("/openc3-api/auth/set", {
1366
+ data: {
1367
+ old_token: this.oldPassword,
1368
+ token: this.password
1369
+ },
1370
+ ...this.options
1371
+ }).then((e) => {
1372
+ this.login(e);
1373
+ }).catch((e) => {
1374
+ this.alert = `Invalid password: ${e.response.data.message}`, this.alertType = "warning", this.showAlert = !0;
1375
+ });
1376
+ }
1377
+ }
1378
+ };
1379
+ function ft(e, t, o, l, s, r) {
1380
+ const m = a("v-card-title"), u = a("v-card-subtitle"), p = a("v-text-field"), g = a("v-btn"), y = a("v-spacer"), S = a("v-row"), h = a("v-container"), b = a("v-form"), v = a("v-card-text"), T = a("v-alert"), E = a("v-card");
1381
+ return c(), N(E, null, {
1382
+ default: i(() => [
1383
+ n(m, null, {
1384
+ default: i(() => t[4] || (t[4] = [
1385
+ f(" Login ")
1386
+ ])),
1387
+ _: 1
1388
+ }),
1389
+ n(u, null, {
1390
+ default: i(() => [
1391
+ f(_(s.isSet ? "Enter the" : "Create a") + " password to begin using OpenC3 ", 1)
1392
+ ]),
1393
+ _: 1
1394
+ }),
1395
+ n(v, null, {
1396
+ default: i(() => [
1397
+ n(b, null, {
1398
+ default: i(() => [
1399
+ s.isSet && s.reset ? (c(), N(p, {
1400
+ key: 0,
1401
+ modelValue: s.oldPassword,
1402
+ "onUpdate:modelValue": t[0] || (t[0] = (M) => s.oldPassword = M),
1403
+ type: "password",
1404
+ label: "Old Password"
1405
+ }, null, 8, ["modelValue"])) : D("", !0),
1406
+ n(p, {
1407
+ modelValue: s.password,
1408
+ "onUpdate:modelValue": t[1] || (t[1] = (M) => s.password = M),
1409
+ type: "password",
1410
+ label: `${!s.isSet || s.reset ? "New " : ""}Password`,
1411
+ "data-test": "new-password"
1412
+ }, null, 8, ["modelValue", "label"]),
1413
+ s.reset ? (c(), N(p, {
1414
+ key: 1,
1415
+ modelValue: s.confirmPassword,
1416
+ "onUpdate:modelValue": t[2] || (t[2] = (M) => s.confirmPassword = M),
1417
+ rules: [r.rules.matchPassword],
1418
+ type: "password",
1419
+ label: "Confirm Password",
1420
+ "data-test": "confirm-password"
1421
+ }, null, 8, ["modelValue", "rules"])) : D("", !0),
1422
+ s.reset ? (c(), N(g, {
1423
+ key: 2,
1424
+ type: "submit",
1425
+ onClick: L(r.setPassword, ["prevent"]),
1426
+ size: "large",
1427
+ color: s.isSet ? "warn" : "success",
1428
+ disabled: !r.formValid,
1429
+ "data-test": "set-password"
1430
+ }, {
1431
+ default: i(() => t[5] || (t[5] = [
1432
+ f(" Set ")
1433
+ ])),
1434
+ _: 1
1435
+ }, 8, ["onClick", "color", "disabled"])) : (c(), N(h, { key: 3 }, {
1436
+ default: i(() => [
1437
+ n(S, null, {
1438
+ default: i(() => [
1439
+ n(g, {
1440
+ type: "submit",
1441
+ onClick: L(r.verifyPassword, ["prevent"]),
1442
+ size: "large",
1443
+ color: "success",
1444
+ disabled: !r.formValid
1445
+ }, {
1446
+ default: i(() => t[6] || (t[6] = [
1447
+ f(" Login ")
1448
+ ])),
1449
+ _: 1
1450
+ }, 8, ["onClick", "disabled"]),
1451
+ n(y),
1452
+ n(g, {
1453
+ variant: "text",
1454
+ size: "small",
1455
+ onClick: r.showReset
1456
+ }, {
1457
+ default: i(() => t[7] || (t[7] = [
1458
+ f(" Change Password ")
1459
+ ])),
1460
+ _: 1
1461
+ }, 8, ["onClick"])
1462
+ ]),
1463
+ _: 1
1464
+ })
1465
+ ]),
1466
+ _: 1
1467
+ }))
1468
+ ]),
1469
+ _: 1
1470
+ })
1471
+ ]),
1472
+ _: 1
1473
+ }),
1474
+ n(T, {
1475
+ type: s.alertType,
1476
+ modelValue: s.showAlert,
1477
+ "onUpdate:modelValue": t[3] || (t[3] = (M) => s.showAlert = M),
1478
+ closable: ""
1479
+ }, {
1480
+ default: i(() => [
1481
+ f(_(s.alert), 1)
1482
+ ]),
1483
+ _: 1
1484
+ }, 8, ["type", "modelValue"])
1485
+ ]),
1486
+ _: 1
1487
+ });
1488
+ }
1489
+ const Ut = /* @__PURE__ */ A(dt, [["render", ft]]), pt = 3e3, mt = {
1490
+ data: function() {
1491
+ return {
1492
+ dismissed: !1,
1493
+ suppress: !1,
1494
+ discrepancy: 0
1495
+ };
1496
+ },
1497
+ created: function() {
1498
+ this.suppress = localStorage.suppresswarning__clock_out_of_sync_with_server === "true", this.suppress || me.get("/openc3-api/time").then((e) => {
1499
+ this.discrepancy = e.data.now_nsec / 1e6 - Date.now();
1500
+ }).catch((e) => {
1501
+ this.dismissed = !0;
1502
+ });
1503
+ },
1504
+ methods: {
1505
+ dismiss: function() {
1506
+ localStorage.suppresswarning__clock_out_of_sync_with_server = this.suppress, this.dismissed = !0;
1507
+ }
1508
+ },
1509
+ computed: {
1510
+ approximateDiscrepancySec: function() {
1511
+ return (this.discrepancy / 1e3).toFixed();
1512
+ },
1513
+ dialog: function() {
1514
+ return !this.dismissed && Math.abs(this.discrepancy) >= pt;
1515
+ }
1516
+ }
1517
+ };
1518
+ function ht(e, t, o, l, s, r) {
1519
+ const m = a("v-card-title"), u = a("v-checkbox"), p = a("v-card-text"), g = a("v-divider"), y = a("v-btn"), S = a("v-card-actions"), h = a("v-card"), b = a("v-dialog");
1520
+ return c(), N(b, {
1521
+ modelValue: r.dialog,
1522
+ "onUpdate:modelValue": t[1] || (t[1] = (v) => r.dialog = v),
1523
+ width: "500"
1524
+ }, {
1525
+ default: i(() => [
1526
+ n(h, null, {
1527
+ default: i(() => [
1528
+ n(m, null, {
1529
+ default: i(() => t[2] || (t[2] = [
1530
+ f(" Clock out of sync ")
1531
+ ])),
1532
+ _: 1
1533
+ }),
1534
+ n(p, null, {
1535
+ default: i(() => [
1536
+ f(" We've detected that your clock is approximately " + _(Math.abs(r.approximateDiscrepancySec)) + " seconds " + _(r.approximateDiscrepancySec > 0 ? "behind" : "ahead of") + " server time. This can cause issues and might have unknown side effects. ", 1),
1537
+ n(u, {
1538
+ modelValue: e.suppress,
1539
+ "onUpdate:modelValue": t[0] || (t[0] = (v) => e.suppress = v),
1540
+ label: "Don't show this again"
1541
+ }, null, 8, ["modelValue"])
1542
+ ]),
1543
+ _: 1
1544
+ }),
1545
+ n(g),
1546
+ n(S, null, {
1547
+ default: i(() => [
1548
+ n(y, {
1549
+ color: "primary",
1550
+ variant: "text",
1551
+ onClick: r.dismiss
1552
+ }, {
1553
+ default: i(() => t[3] || (t[3] = [
1554
+ f(" Dismiss ")
1555
+ ])),
1556
+ _: 1
1557
+ }, 8, ["onClick"])
1558
+ ]),
1559
+ _: 1
1560
+ })
1561
+ ]),
1562
+ _: 1
1563
+ })
1564
+ ]),
1565
+ _: 1
1566
+ }, 8, ["modelValue"]);
1567
+ }
1568
+ const At = /* @__PURE__ */ A(mt, [["render", ht]]);
1569
+ export {
1570
+ Ct as AppFooter,
1571
+ Tt as AppNav,
1572
+ Mt as ClassificationBanners,
1573
+ Me as ClockFooter,
1574
+ Ut as Login,
1575
+ xe as Notifications,
1576
+ Ye as ScopeSelector,
1577
+ At as TimeCheck,
1578
+ Ke as UserMenu
1579
+ };
1580
+ //# sourceMappingURL=base.js.map