@openc3/vue-common 6.2.0 → 6.2.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 (405) hide show
  1. package/dist/ArrayWidget-BIQi_bWC.cjs +3 -0
  2. package/dist/ArrayWidget-BIQi_bWC.cjs.map +1 -0
  3. package/dist/ArrayWidget-BxEO5hEG.js +106 -0
  4. package/dist/ArrayWidget-BxEO5hEG.js.map +1 -0
  5. package/dist/ArrayplotWidget-B_VPoV4v.js +199 -0
  6. package/dist/ArrayplotWidget-B_VPoV4v.js.map +1 -0
  7. package/dist/ArrayplotWidget-Donxhd8_.cjs +2 -0
  8. package/dist/ArrayplotWidget-Donxhd8_.cjs.map +1 -0
  9. package/dist/AstroStatus-CILMWL6F.cjs +2 -0
  10. package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
  11. package/dist/AstroStatus-CY9VkeTN.js +40 -0
  12. package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
  13. package/dist/BarColumn-C9dkpg2O.js +108 -0
  14. package/dist/BarColumn-C9dkpg2O.js.map +1 -0
  15. package/dist/BarColumn-CyRSZHMh.cjs +2 -0
  16. package/dist/BarColumn-CyRSZHMh.cjs.map +1 -0
  17. package/dist/BlockWidget-CuefOin6.js +112 -0
  18. package/dist/BlockWidget-CuefOin6.js.map +1 -0
  19. package/dist/BlockWidget-DPLN1jgj.cjs +3 -0
  20. package/dist/BlockWidget-DPLN1jgj.cjs.map +1 -0
  21. package/dist/ButtonWidget-B6HM0Doo.js +166 -0
  22. package/dist/ButtonWidget-B6HM0Doo.js.map +1 -0
  23. package/dist/ButtonWidget-DccYzIY3.cjs +3 -0
  24. package/dist/ButtonWidget-DccYzIY3.cjs.map +1 -0
  25. package/dist/CanvasWidget-BzTU9rc9.cjs +2 -0
  26. package/dist/CanvasWidget-BzTU9rc9.cjs.map +1 -0
  27. package/dist/CanvasWidget-DZQGG-yQ.js +39 -0
  28. package/dist/CanvasWidget-DZQGG-yQ.js.map +1 -0
  29. package/dist/CanvasdotWidget-6wuCSnw_.js +19 -0
  30. package/dist/CanvasdotWidget-6wuCSnw_.js.map +1 -0
  31. package/dist/CanvasdotWidget-B7VTS1QI.cjs +2 -0
  32. package/dist/CanvasdotWidget-B7VTS1QI.cjs.map +1 -0
  33. package/dist/CanvasimageWidget-BwYpfmDE.cjs +2 -0
  34. package/dist/CanvasimageWidget-BwYpfmDE.cjs.map +1 -0
  35. package/dist/CanvasimageWidget-mhcPpAuN.js +58 -0
  36. package/dist/CanvasimageWidget-mhcPpAuN.js.map +1 -0
  37. package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js +107 -0
  38. package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js.map +1 -0
  39. package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +2 -0
  40. package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs.map +1 -0
  41. package/dist/CanvaslabelWidget-BBDuXWfU.cjs +2 -0
  42. package/dist/CanvaslabelWidget-BBDuXWfU.cjs.map +1 -0
  43. package/dist/CanvaslabelWidget-CQZCeohU.js +23 -0
  44. package/dist/CanvaslabelWidget-CQZCeohU.js.map +1 -0
  45. package/dist/CanvaslabelvalueWidget-CwmYDCjr.js +42 -0
  46. package/dist/CanvaslabelvalueWidget-CwmYDCjr.js.map +1 -0
  47. package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +2 -0
  48. package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs.map +1 -0
  49. package/dist/CanvaslineWidget-Bv5da1Vy.cjs +2 -0
  50. package/dist/CanvaslineWidget-Bv5da1Vy.cjs.map +1 -0
  51. package/dist/CanvaslineWidget-nTP3fJB4.js +28 -0
  52. package/dist/CanvaslineWidget-nTP3fJB4.js.map +1 -0
  53. package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +2 -0
  54. package/dist/CanvaslinevalueWidget-BVfUB96K.cjs.map +1 -0
  55. package/dist/CanvaslinevalueWidget-C3sJnjLQ.js +44 -0
  56. package/dist/CanvaslinevalueWidget-C3sJnjLQ.js.map +1 -0
  57. package/dist/CheckbuttonWidget-5-8YDsQL.js +37 -0
  58. package/dist/CheckbuttonWidget-5-8YDsQL.js.map +1 -0
  59. package/dist/CheckbuttonWidget-BGqD-BGc.cjs +2 -0
  60. package/dist/CheckbuttonWidget-BGqD-BGc.cjs.map +1 -0
  61. package/dist/ComboboxWidget-DoHMlSAr.cjs +2 -0
  62. package/dist/ComboboxWidget-DoHMlSAr.cjs.map +1 -0
  63. package/dist/ComboboxWidget-DzBL8h9f.js +37 -0
  64. package/dist/ComboboxWidget-DzBL8h9f.js.map +1 -0
  65. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +2 -0
  66. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +1 -0
  67. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +10 -0
  68. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +1 -0
  69. package/dist/CriticalCmdDialog-DLEasFsx.js +270 -0
  70. package/dist/CriticalCmdDialog-DLEasFsx.js.map +1 -0
  71. package/dist/CriticalCmdDialog-DoLBrU2k.cjs +2 -0
  72. package/dist/CriticalCmdDialog-DoLBrU2k.cjs.map +1 -0
  73. package/dist/DateWidget-CW7Od7lB.js +40 -0
  74. package/dist/DateWidget-CW7Od7lB.js.map +1 -0
  75. package/dist/DateWidget-DKZz1J9J.cjs +2 -0
  76. package/dist/DateWidget-DKZz1J9J.cjs.map +1 -0
  77. package/dist/DetailsDialog-BvbziA7Y.js +767 -0
  78. package/dist/DetailsDialog-BvbziA7Y.js.map +1 -0
  79. package/dist/DetailsDialog-CiuQYvJK.cjs +2 -0
  80. package/dist/DetailsDialog-CiuQYvJK.cjs.map +1 -0
  81. package/dist/DynamicWidget-3wHr6Ng-.cjs +2 -0
  82. package/dist/DynamicWidget-3wHr6Ng-.cjs.map +1 -0
  83. package/dist/DynamicWidget-gFSYxzvT.js +35 -0
  84. package/dist/DynamicWidget-gFSYxzvT.js.map +1 -0
  85. package/dist/FormatvalueWidget-CGpnTqVH.js +44 -0
  86. package/dist/FormatvalueWidget-CGpnTqVH.js.map +1 -0
  87. package/dist/FormatvalueWidget-DFrbeKb9.cjs +2 -0
  88. package/dist/FormatvalueWidget-DFrbeKb9.cjs.map +1 -0
  89. package/dist/Graph-3rkhFP3G.js +1983 -0
  90. package/dist/Graph-3rkhFP3G.js.map +1 -0
  91. package/dist/Graph-C3vGMcos.cjs +2 -0
  92. package/dist/Graph-C3vGMcos.cjs.map +1 -0
  93. package/dist/GraphWidget-22NxFa9k.cjs +2 -0
  94. package/dist/GraphWidget-22NxFa9k.cjs.map +1 -0
  95. package/dist/GraphWidget-Dycey-mj.js +130 -0
  96. package/dist/GraphWidget-Dycey-mj.js.map +1 -0
  97. package/dist/HorizontalWidget-BBeB0eBI.cjs +2 -0
  98. package/dist/HorizontalWidget-BBeB0eBI.cjs.map +1 -0
  99. package/dist/HorizontalWidget-D31NRWy5.js +41 -0
  100. package/dist/HorizontalWidget-D31NRWy5.js.map +1 -0
  101. package/dist/HorizontalboxWidget-Br8dSVHD.js +38 -0
  102. package/dist/HorizontalboxWidget-Br8dSVHD.js.map +1 -0
  103. package/dist/HorizontalboxWidget-DsdzrCJx.cjs +2 -0
  104. package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +1 -0
  105. package/dist/HorizontallineWidget-BCKOQase.cjs +2 -0
  106. package/dist/HorizontallineWidget-BCKOQase.cjs.map +1 -0
  107. package/dist/HorizontallineWidget-CbxREBYI.js +11 -0
  108. package/dist/HorizontallineWidget-CbxREBYI.js.map +1 -0
  109. package/dist/IframeWidget-CZwsTgvX.cjs +2 -0
  110. package/dist/IframeWidget-CZwsTgvX.cjs.map +1 -0
  111. package/dist/IframeWidget-Ctj8OIcG.js +90 -0
  112. package/dist/IframeWidget-Ctj8OIcG.js.map +1 -0
  113. package/dist/ImageLoader-BrNrCBvi.js +36 -0
  114. package/dist/ImageLoader-BrNrCBvi.js.map +1 -0
  115. package/dist/ImageLoader-D_Gq-KxR.cjs +2 -0
  116. package/dist/ImageLoader-D_Gq-KxR.cjs.map +1 -0
  117. package/dist/ImageviewerWidget-DwRPFSLR.cjs +2 -0
  118. package/dist/ImageviewerWidget-DwRPFSLR.cjs.map +1 -0
  119. package/dist/ImageviewerWidget-XrsqxmLo.js +37 -0
  120. package/dist/ImageviewerWidget-XrsqxmLo.js.map +1 -0
  121. package/dist/InterfacesTab-CLaicsHA.cjs +2 -0
  122. package/dist/InterfacesTab-CLaicsHA.cjs.map +1 -0
  123. package/dist/InterfacesTab-DAeNlGlB.js +93 -0
  124. package/dist/InterfacesTab-DAeNlGlB.js.map +1 -0
  125. package/dist/LabelWidget-C-s8OVmA.cjs +2 -0
  126. package/dist/LabelWidget-C-s8OVmA.cjs.map +1 -0
  127. package/dist/LabelWidget-t7I87dp7.js +48 -0
  128. package/dist/LabelWidget-t7I87dp7.js.map +1 -0
  129. package/dist/LabelledWidget-C7TDf92M.js +42 -0
  130. package/dist/LabelledWidget-C7TDf92M.js.map +1 -0
  131. package/dist/LabelledWidget-DUpHxc9z.cjs +2 -0
  132. package/dist/LabelledWidget-DUpHxc9z.cjs.map +1 -0
  133. package/dist/LabelprogressbarWidget-D6cpayCR.cjs +2 -0
  134. package/dist/LabelprogressbarWidget-D6cpayCR.cjs.map +1 -0
  135. package/dist/LabelprogressbarWidget-wwLURt1u.js +43 -0
  136. package/dist/LabelprogressbarWidget-wwLURt1u.js.map +1 -0
  137. package/dist/LabelsparklineWidget-B3awLUyP.js +44 -0
  138. package/dist/LabelsparklineWidget-B3awLUyP.js.map +1 -0
  139. package/dist/LabelsparklineWidget-CJRnLETe.cjs +2 -0
  140. package/dist/LabelsparklineWidget-CJRnLETe.cjs.map +1 -0
  141. package/dist/LabelvalueWidget-Zx_yHCtl.js +58 -0
  142. package/dist/LabelvalueWidget-Zx_yHCtl.js.map +1 -0
  143. package/dist/LabelvalueWidget-owiMSCYl.cjs +2 -0
  144. package/dist/LabelvalueWidget-owiMSCYl.cjs.map +1 -0
  145. package/dist/LabelvaluedescWidget-BBSBh4vI.js +59 -0
  146. package/dist/LabelvaluedescWidget-BBSBh4vI.js.map +1 -0
  147. package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +2 -0
  148. package/dist/LabelvaluedescWidget-MRmZBUc0.cjs.map +1 -0
  149. package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +2 -0
  150. package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map +1 -0
  151. package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js +57 -0
  152. package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js.map +1 -0
  153. package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js +47 -0
  154. package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js.map +1 -0
  155. package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +2 -0
  156. package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map +1 -0
  157. package/dist/LabelvaluerangebarWidget-BhYTBgDq.js +79 -0
  158. package/dist/LabelvaluerangebarWidget-BhYTBgDq.js.map +1 -0
  159. package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +2 -0
  160. package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs.map +1 -0
  161. package/dist/Layout-Bh7VzCZd.js +14 -0
  162. package/dist/Layout-Bh7VzCZd.js.map +1 -0
  163. package/dist/Layout-DRL0EeSA.cjs +2 -0
  164. package/dist/Layout-DRL0EeSA.cjs.map +1 -0
  165. package/dist/LedWidget-B8rjFe1b.cjs +2 -0
  166. package/dist/LedWidget-B8rjFe1b.cjs.map +1 -0
  167. package/dist/LedWidget-CxJjJBBS.js +71 -0
  168. package/dist/LedWidget-CxJjJBBS.js.map +1 -0
  169. package/dist/LimitsbarWidget-CYIH8fdp.cjs +2 -0
  170. package/dist/LimitsbarWidget-CYIH8fdp.cjs.map +1 -0
  171. package/dist/LimitsbarWidget-Djui0IpK.js +69 -0
  172. package/dist/LimitsbarWidget-Djui0IpK.js.map +1 -0
  173. package/dist/LimitscolorWidget-CS0wpX9A.cjs +2 -0
  174. package/dist/LimitscolorWidget-CS0wpX9A.cjs.map +1 -0
  175. package/dist/LimitscolorWidget-DdmvKzmx.js +63 -0
  176. package/dist/LimitscolorWidget-DdmvKzmx.js.map +1 -0
  177. package/dist/LimitscolumnWidget-C_UW6xKq.cjs +2 -0
  178. package/dist/LimitscolumnWidget-C_UW6xKq.cjs.map +1 -0
  179. package/dist/LimitscolumnWidget-Cc19IEjq.js +66 -0
  180. package/dist/LimitscolumnWidget-Cc19IEjq.js.map +1 -0
  181. package/dist/LinegraphWidget-8td_PqgU.cjs +2 -0
  182. package/dist/LinegraphWidget-8td_PqgU.cjs.map +1 -0
  183. package/dist/LinegraphWidget-BtieJxeL.js +39 -0
  184. package/dist/LinegraphWidget-BtieJxeL.js.map +1 -0
  185. package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +2 -0
  186. package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs.map +1 -0
  187. package/dist/MatrixbycolumnsWidget-DnExVRF8.js +56 -0
  188. package/dist/MatrixbycolumnsWidget-DnExVRF8.js.map +1 -0
  189. package/dist/MicroservicesTab-IbTmbPxO.js +268 -0
  190. package/dist/MicroservicesTab-IbTmbPxO.js.map +1 -0
  191. package/dist/MicroservicesTab-uMC8NebS.cjs +2 -0
  192. package/dist/MicroservicesTab-uMC8NebS.cjs.map +1 -0
  193. package/dist/OutputDialog-B4Q0QMJ1.cjs +2 -0
  194. package/dist/OutputDialog-B4Q0QMJ1.cjs.map +1 -0
  195. package/dist/OutputDialog-Ci5OT_fH.js +245 -0
  196. package/dist/OutputDialog-Ci5OT_fH.js.map +1 -0
  197. package/dist/PackagesTab-BX8YP3H1.js +332 -0
  198. package/dist/PackagesTab-BX8YP3H1.js.map +1 -0
  199. package/dist/PackagesTab-eYbk2vw7.cjs +2 -0
  200. package/dist/PackagesTab-eYbk2vw7.cjs.map +1 -0
  201. package/dist/PluginsTab-Ck3DvEGm.cjs +6 -0
  202. package/dist/PluginsTab-Ck3DvEGm.cjs.map +1 -0
  203. package/dist/PluginsTab-Ds3jk64b.js +599 -0
  204. package/dist/PluginsTab-Ds3jk64b.js.map +1 -0
  205. package/dist/ProgressbarWidget-CUIAYySg.cjs +2 -0
  206. package/dist/ProgressbarWidget-CUIAYySg.cjs.map +1 -0
  207. package/dist/ProgressbarWidget-DIfqhHRE.js +46 -0
  208. package/dist/ProgressbarWidget-DIfqhHRE.js.map +1 -0
  209. package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +2 -0
  210. package/dist/RadiobuttonWidget-Cjk1JAP_.cjs.map +1 -0
  211. package/dist/RadiobuttonWidget-QzIkNP7m.js +34 -0
  212. package/dist/RadiobuttonWidget-QzIkNP7m.js.map +1 -0
  213. package/dist/RadiogroupWidget-B4lkYWaC.cjs +2 -0
  214. package/dist/RadiogroupWidget-B4lkYWaC.cjs.map +1 -0
  215. package/dist/RadiogroupWidget-Ci9sCX39.js +48 -0
  216. package/dist/RadiogroupWidget-Ci9sCX39.js.map +1 -0
  217. package/dist/RangebarWidget-CN0YuHqy.js +67 -0
  218. package/dist/RangebarWidget-CN0YuHqy.js.map +1 -0
  219. package/dist/RangebarWidget-nl0rzj93.cjs +2 -0
  220. package/dist/RangebarWidget-nl0rzj93.cjs.map +1 -0
  221. package/dist/RedisTab-CVimDkIE.js +135 -0
  222. package/dist/RedisTab-CVimDkIE.js.map +1 -0
  223. package/dist/RedisTab-DhS4GHDj.cjs +2 -0
  224. package/dist/RedisTab-DhS4GHDj.cjs.map +1 -0
  225. package/dist/RollupWidget-Bgudi_bt.cjs +2 -0
  226. package/dist/RollupWidget-Bgudi_bt.cjs.map +1 -0
  227. package/dist/RollupWidget-y4jBtJB2.js +83 -0
  228. package/dist/RollupWidget-y4jBtJB2.js.map +1 -0
  229. package/dist/RoutersTab-CzO10cVP.cjs +2 -0
  230. package/dist/RoutersTab-CzO10cVP.cjs.map +1 -0
  231. package/dist/RoutersTab-Dki_66av.js +95 -0
  232. package/dist/RoutersTab-Dki_66av.js.map +1 -0
  233. package/dist/ScriptChooser-BNm_zXxX.cjs +2 -0
  234. package/dist/ScriptChooser-BNm_zXxX.cjs.map +1 -0
  235. package/dist/ScriptChooser-l5i8c8KP.js +199 -0
  236. package/dist/ScriptChooser-l5i8c8KP.js.map +1 -0
  237. package/dist/ScrollwindowWidget-BIiV7xwi.cjs +2 -0
  238. package/dist/ScrollwindowWidget-BIiV7xwi.cjs.map +1 -0
  239. package/dist/ScrollwindowWidget-CBzYk4Y3.js +45 -0
  240. package/dist/ScrollwindowWidget-CBzYk4Y3.js.map +1 -0
  241. package/dist/SecretsTab-BSzFZ81X.cjs +2 -0
  242. package/dist/SecretsTab-BSzFZ81X.cjs.map +1 -0
  243. package/dist/SecretsTab-BjviaTxh.js +202 -0
  244. package/dist/SecretsTab-BjviaTxh.js.map +1 -0
  245. package/dist/SettingsTab-Bo_dYXgb.js +1382 -0
  246. package/dist/SettingsTab-Bo_dYXgb.js.map +1 -0
  247. package/dist/SettingsTab-DH8LAAoG.cjs +3 -0
  248. package/dist/SettingsTab-DH8LAAoG.cjs.map +1 -0
  249. package/dist/SignalWidget-CvZkvejy.cjs +2 -0
  250. package/dist/SignalWidget-CvZkvejy.cjs.map +1 -0
  251. package/dist/SignalWidget-DQ5Uc2uV.js +66 -0
  252. package/dist/SignalWidget-DQ5Uc2uV.js.map +1 -0
  253. package/dist/SimpleTextDialog-CheuP_ls.js +108 -0
  254. package/dist/SimpleTextDialog-CheuP_ls.js.map +1 -0
  255. package/dist/SimpleTextDialog-DmeNMMCR.cjs +2 -0
  256. package/dist/SimpleTextDialog-DmeNMMCR.cjs.map +1 -0
  257. package/dist/SpacerWidget-6rsc_dSM.js +19 -0
  258. package/dist/SpacerWidget-6rsc_dSM.js.map +1 -0
  259. package/dist/SpacerWidget-BBJR6HBQ.cjs +2 -0
  260. package/dist/SpacerWidget-BBJR6HBQ.cjs.map +1 -0
  261. package/dist/SparklineWidget-BxBLnjAO.cjs +2 -0
  262. package/dist/SparklineWidget-BxBLnjAO.cjs.map +1 -0
  263. package/dist/SparklineWidget-CZtvu2ss.js +48 -0
  264. package/dist/SparklineWidget-CZtvu2ss.js.map +1 -0
  265. package/dist/TabbookWidget-DNALU0jl.js +66 -0
  266. package/dist/TabbookWidget-DNALU0jl.js.map +1 -0
  267. package/dist/TabbookWidget-DyFQnA10.cjs +2 -0
  268. package/dist/TabbookWidget-DyFQnA10.cjs.map +1 -0
  269. package/dist/TargetsTab-Cd8U1aN_.js +129 -0
  270. package/dist/TargetsTab-Cd8U1aN_.js.map +1 -0
  271. package/dist/TargetsTab-DMiOliqg.cjs +2 -0
  272. package/dist/TargetsTab-DMiOliqg.cjs.map +1 -0
  273. package/dist/TextBoxDialog-DvUf3Cak.cjs +2 -0
  274. package/dist/TextBoxDialog-DvUf3Cak.cjs.map +1 -0
  275. package/dist/TextBoxDialog-fHkDTtzI.js +110 -0
  276. package/dist/TextBoxDialog-fHkDTtzI.js.map +1 -0
  277. package/dist/TextboxWidget-5hqPj74D.js +93 -0
  278. package/dist/TextboxWidget-5hqPj74D.js.map +1 -0
  279. package/dist/TextboxWidget-D6lW_dsU.cjs +2 -0
  280. package/dist/TextboxWidget-D6lW_dsU.cjs.map +1 -0
  281. package/dist/TextfieldWidget-Df0ANSiU.js +37 -0
  282. package/dist/TextfieldWidget-Df0ANSiU.js.map +1 -0
  283. package/dist/TextfieldWidget-iHN7-fyF.cjs +2 -0
  284. package/dist/TextfieldWidget-iHN7-fyF.cjs.map +1 -0
  285. package/dist/TimeWidget-C3NZqTEG.cjs +2 -0
  286. package/dist/TimeWidget-C3NZqTEG.cjs.map +1 -0
  287. package/dist/TimeWidget-C6XQMUG2.js +40 -0
  288. package/dist/TimeWidget-C6XQMUG2.js.map +1 -0
  289. package/dist/TitleWidget-B9SPUlbW.js +26 -0
  290. package/dist/TitleWidget-B9SPUlbW.js.map +1 -0
  291. package/dist/TitleWidget-CWZs33c4.cjs +2 -0
  292. package/dist/TitleWidget-CWZs33c4.cjs.map +1 -0
  293. package/dist/ToolsTab-CUpUmkZL.cjs +7 -0
  294. package/dist/ToolsTab-CUpUmkZL.cjs.map +1 -0
  295. package/dist/ToolsTab-Cgpb2nAW.js +1521 -0
  296. package/dist/ToolsTab-Cgpb2nAW.js.map +1 -0
  297. package/dist/TopBar-DuXL27iD.cjs +2 -0
  298. package/dist/TopBar-DuXL27iD.cjs.map +1 -0
  299. package/dist/TopBar-F1jHuFan.js +248 -0
  300. package/dist/TopBar-F1jHuFan.js.map +1 -0
  301. package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js +95 -0
  302. package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js.map +1 -0
  303. package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +2 -0
  304. package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs.map +1 -0
  305. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +1417 -0
  306. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +1 -0
  307. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +26941 -0
  308. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +1 -0
  309. package/dist/VWidget-C2x_zSC2.cjs +2 -0
  310. package/dist/VWidget-C2x_zSC2.cjs.map +1 -0
  311. package/dist/VWidget-C4spAawK.js +323 -0
  312. package/dist/VWidget-C4spAawK.js.map +1 -0
  313. package/dist/ValueWidget-D4RrYVEK.js +116 -0
  314. package/dist/ValueWidget-D4RrYVEK.js.map +1 -0
  315. package/dist/ValueWidget-Do3Yn47P.cjs +2 -0
  316. package/dist/ValueWidget-Do3Yn47P.cjs.map +1 -0
  317. package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js +41 -0
  318. package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js.map +1 -0
  319. package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +2 -0
  320. package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs.map +1 -0
  321. package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +2 -0
  322. package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs.map +1 -0
  323. package/dist/ValuelimitscolumnWidget-DHKIL7sf.js +40 -0
  324. package/dist/ValuelimitscolumnWidget-DHKIL7sf.js.map +1 -0
  325. package/dist/ValuerangebarWidget-BlZSaiXo.cjs +2 -0
  326. package/dist/ValuerangebarWidget-BlZSaiXo.cjs.map +1 -0
  327. package/dist/ValuerangebarWidget-CecQRIok.js +65 -0
  328. package/dist/ValuerangebarWidget-CecQRIok.js.map +1 -0
  329. package/dist/VerticalWidget--8UErB4q.cjs +2 -0
  330. package/dist/VerticalWidget--8UErB4q.cjs.map +1 -0
  331. package/dist/VerticalWidget-D8jUFxjS.js +40 -0
  332. package/dist/VerticalWidget-D8jUFxjS.js.map +1 -0
  333. package/dist/VerticalboxWidget-B4eGUSYH.js +37 -0
  334. package/dist/VerticalboxWidget-B4eGUSYH.js.map +1 -0
  335. package/dist/VerticalboxWidget-cxHq1WKQ.cjs +2 -0
  336. package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +1 -0
  337. package/dist/Widget-DNf52jRQ.cjs +2 -0
  338. package/dist/Widget-DNf52jRQ.cjs.map +1 -0
  339. package/dist/Widget-fRCERxGf.js +197 -0
  340. package/dist/Widget-fRCERxGf.js.map +1 -0
  341. package/dist/addMonths-BtG7uZLJ.js +19 -0
  342. package/dist/addMonths-BtG7uZLJ.js.map +1 -0
  343. package/dist/addMonths-n1tnl3ab.cjs +2 -0
  344. package/dist/addMonths-n1tnl3ab.cjs.map +1 -0
  345. package/dist/components.cjs +7 -0
  346. package/dist/components.cjs.map +1 -0
  347. package/dist/components.js +2973 -0
  348. package/dist/components.js.map +1 -0
  349. package/dist/fileIcon-BduOQcTc.cjs +2 -0
  350. package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
  351. package/dist/fileIcon-DqRHb1_Z.js +22 -0
  352. package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
  353. package/dist/format-B22VpiOS.cjs +2 -0
  354. package/dist/format-B22VpiOS.cjs.map +1 -0
  355. package/dist/format-CVeawcIv.js +1295 -0
  356. package/dist/format-CVeawcIv.js.map +1 -0
  357. package/dist/getDefaultOptions-Batab9o8.cjs +2 -0
  358. package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -0
  359. package/dist/getDefaultOptions-BhSDk-Jo.js +8 -0
  360. package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -0
  361. package/dist/icons/status-dark.png +0 -0
  362. package/dist/icons/status-dark.xcf +0 -0
  363. package/dist/icons/status-light.png +0 -0
  364. package/dist/icons.cjs +2 -0
  365. package/dist/icons.cjs.map +1 -0
  366. package/dist/icons.js +157 -0
  367. package/dist/icons.js.map +1 -0
  368. package/dist/index-Bz_jHTkl.cjs +7 -0
  369. package/dist/index-Bz_jHTkl.cjs.map +1 -0
  370. package/dist/index-CFQnWdPA.js +1705 -0
  371. package/dist/index-CFQnWdPA.js.map +1 -0
  372. package/dist/parse-DnkEsW-3.js +1603 -0
  373. package/dist/parse-DnkEsW-3.js.map +1 -0
  374. package/dist/parse-DwfgQboe.cjs +2 -0
  375. package/dist/parse-DwfgQboe.cjs.map +1 -0
  376. package/dist/plugins.cjs +9 -0
  377. package/dist/plugins.cjs.map +1 -0
  378. package/dist/plugins.js +772 -0
  379. package/dist/plugins.js.map +1 -0
  380. package/dist/timeFilters-8SaYvcH0.cjs +2 -0
  381. package/dist/timeFilters-8SaYvcH0.cjs.map +1 -0
  382. package/dist/timeFilters-CRYpYDdf.js +622 -0
  383. package/dist/timeFilters-CRYpYDdf.js.map +1 -0
  384. package/dist/tools/admin.cjs +13 -0
  385. package/dist/tools/admin.cjs.map +1 -0
  386. package/dist/tools/admin.js +1944 -0
  387. package/dist/tools/admin.js.map +1 -0
  388. package/dist/tools/base.cjs +2 -0
  389. package/dist/tools/base.cjs.map +1 -0
  390. package/dist/tools/base.js +1683 -0
  391. package/dist/tools/base.js.map +1 -0
  392. package/dist/tools/calendar.cjs +2 -0
  393. package/dist/tools/calendar.cjs.map +1 -0
  394. package/dist/tools/calendar.js +1586 -0
  395. package/dist/tools/calendar.js.map +1 -0
  396. package/dist/util.cjs +2 -0
  397. package/dist/util.cjs.map +1 -0
  398. package/dist/util.js +9 -0
  399. package/dist/util.js.map +1 -0
  400. package/dist/vue-common.css +1 -0
  401. package/dist/widgets.cjs +2 -0
  402. package/dist/widgets.cjs.map +1 -0
  403. package/dist/widgets.js +132 -0
  404. package/dist/widgets.js.map +1 -0
  405. package/package.json +2 -2
@@ -0,0 +1,1683 @@
1
+ import { m as X, a as A, f as J } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js";
2
+ import { resolveComponent as a, createElementBlock as _, openBlock as c, createElementVNode as S, createVNode as n, toDisplayString as h, withCtx as s, createBlock as N, createCommentVNode as C, createTextVNode as f, normalizeClass as ee, mergeProps as Z, Fragment as V, renderList as H, withModifiers as F } from "vue";
3
+ import { _ as O } from "../CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
4
+ import { navigateToUrl as se, registerApplication as ie, start as ae } from "single-spa";
5
+ import { U as Y } from "../UpgradeToEnterpriseDialog-DVcAH30Y.js";
6
+ import { t as R, c as re, n as W, g as le, e as ce, b as G, d as K, h as P, f as ue } from "../format-CVeawcIv.js";
7
+ import { AstroStatusIndicator as de, UnknownToAstroStatus as Q, AstroStatusColors as fe } from "../icons.js";
8
+ import { A as pe } from "../AstroStatus-CY9VkeTN.js";
9
+ import { a as me } from "../index-CFQnWdPA.js";
10
+ function z(e, t) {
11
+ const o = +R(e) - +R(t);
12
+ return o < 0 ? -1 : o > 0 ? 1 : o;
13
+ }
14
+ function he(e) {
15
+ return re(e, Date.now());
16
+ }
17
+ function _e(e, t, o) {
18
+ const [l, i] = W(
19
+ o == null ? void 0 : o.in,
20
+ e,
21
+ t
22
+ ), r = l.getFullYear() - i.getFullYear(), m = l.getMonth() - i.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 +R(e) - +R(t);
33
+ }
34
+ function we(e, t) {
35
+ const o = R(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 = R(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 = R(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, i, r] = W(
48
+ o == null ? void 0 : o.in,
49
+ e,
50
+ e,
51
+ t
52
+ ), m = z(i, r), u = Math.abs(
53
+ _e(i, r)
54
+ );
55
+ if (u < 1) return 0;
56
+ i.getMonth() === 1 && i.getDate() > 27 && i.setDate(30), i.setMonth(i.getMonth() - m * u);
57
+ let p = z(i, r) === -m;
58
+ ke(l) && u === 1 && z(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 = le(), i = (o == null ? void 0 : o.locale) ?? l.locale ?? ce, r = 2520, m = z(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
+ ), w = Ne(g, p), D = (G(g) - G(p)) / 1e3, v = Math.round((w - D) / 60);
76
+ let k;
77
+ if (v < 2)
78
+ return o != null && o.includeSeconds ? w < 5 ? i.formatDistance("lessThanXSeconds", 5, u) : w < 10 ? i.formatDistance("lessThanXSeconds", 10, u) : w < 20 ? i.formatDistance("lessThanXSeconds", 20, u) : w < 40 ? i.formatDistance("halfAMinute", 0, u) : w < 60 ? i.formatDistance("lessThanXMinutes", 1, u) : i.formatDistance("xMinutes", 1, u) : v === 0 ? i.formatDistance("lessThanXMinutes", 1, u) : i.formatDistance("xMinutes", v, u);
79
+ if (v < 45)
80
+ return i.formatDistance("xMinutes", v, u);
81
+ if (v < 90)
82
+ return i.formatDistance("aboutXHours", 1, u);
83
+ if (v < K) {
84
+ const b = Math.round(v / 60);
85
+ return i.formatDistance("aboutXHours", b, u);
86
+ } else {
87
+ if (v < r)
88
+ return i.formatDistance("xDays", 1, u);
89
+ if (v < P) {
90
+ const b = Math.round(v / K);
91
+ return i.formatDistance("xDays", b, u);
92
+ } else if (v < P * 2)
93
+ return k = Math.round(v / P), i.formatDistance("aboutXMonths", k, u);
94
+ }
95
+ if (k = be(g, p), k < 12) {
96
+ const b = Math.round(v / P);
97
+ return i.formatDistance("xMonths", b, u);
98
+ } else {
99
+ const b = k % 12, U = Math.trunc(k / 12);
100
+ return b < 3 ? i.formatDistance("aboutXYears", U, u) : b < 9 ? i.formatDistance("overXYears", U, u) : i.formatDistance("almostXYears", U + 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 ue(e, t, { useAdditionalDayOfYearTokens: !0 });
185
+ }
186
+ }
187
+ };
188
+ function Te(e, t, o, l, i, r) {
189
+ const m = a("v-list-item-title"), u = a("v-list-item"), p = a("v-divider"), g = a("v-list"), w = a("v-menu");
190
+ return c(), _("div", null, [
191
+ S("span", {
192
+ style: { cursor: "context-menu" },
193
+ class: "font-weight-bold",
194
+ onContextmenu: t[0] || (t[0] = (...D) => r.openMenu && r.openMenu(...D))
195
+ }, h(r.formatDate(e.displayLocal ? e.localDate : r.utcDate, r.formatString)) + " (" + h(e.displayLocal ? "local" : "UTC") + ") ", 33),
196
+ n(w, {
197
+ modelValue: e.showMenu,
198
+ "onUpdate:modelValue": t[1] || (t[1] = (D) => e.showMenu = D),
199
+ target: [e.menuX, e.menuY]
200
+ }, {
201
+ default: s(() => [
202
+ n(g, null, {
203
+ default: s(() => [
204
+ n(u, null, {
205
+ default: s(() => [
206
+ n(m, {
207
+ style: { cursor: "pointer" },
208
+ onClick: r.toggleDisplayLocal
209
+ }, {
210
+ default: s(() => [
211
+ f(" Display " + h(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: s(() => [
221
+ n(m, {
222
+ style: { cursor: "pointer" },
223
+ onClick: r.toggleDisplay24h
224
+ }, {
225
+ default: s(() => [
226
+ f(" Display " + h(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: s(() => [
236
+ n(m, {
237
+ style: { cursor: "pointer" },
238
+ onClick: r.setMonthFirst
239
+ }, {
240
+ default: s(() => t[2] || (t[2] = [
241
+ f(" Display mm/dd/yyyy ")
242
+ ])),
243
+ _: 1
244
+ }, 8, ["onClick"])
245
+ ]),
246
+ _: 1
247
+ })) : C("", !0),
248
+ e.dateMode !== "dayFirst" ? (c(), N(u, { key: 1 }, {
249
+ default: s(() => [
250
+ n(m, {
251
+ style: { cursor: "pointer" },
252
+ onClick: r.setDayFirst
253
+ }, {
254
+ default: s(() => t[3] || (t[3] = [
255
+ f(" Display dd/mm/yyyy ")
256
+ ])),
257
+ _: 1
258
+ }, 8, ["onClick"])
259
+ ]),
260
+ _: 1
261
+ })) : C("", !0),
262
+ e.dateMode !== "number" ? (c(), N(u, { key: 2 }, {
263
+ default: s(() => [
264
+ n(m, {
265
+ style: { cursor: "pointer" },
266
+ onClick: r.setNumber
267
+ }, {
268
+ default: s(() => t[4] || (t[4] = [
269
+ f(" Display day of year ")
270
+ ])),
271
+ _: 1
272
+ }, 8, ["onClick"])
273
+ ]),
274
+ _: 1
275
+ })) : C("", !0)
276
+ ]),
277
+ _: 1
278
+ })
279
+ ]),
280
+ _: 1
281
+ }, 8, ["modelValue", "target"])
282
+ ]);
283
+ }
284
+ const Me = /* @__PURE__ */ O(Ce, [["render", Te]]), Ue = {
285
+ components: {
286
+ ClockFooter: Me,
287
+ UpgradeToEnterpriseDialog: Y
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(), A.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 X().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, i, r) {
323
+ const m = a("v-spacer"), u = a("clock-footer"), p = a("upgrade-to-enterprise-dialog"), g = a("v-footer");
324
+ return i.chromeless ? C("", !0) : (c(), N(g, {
325
+ key: 0,
326
+ id: "footer",
327
+ app: "",
328
+ height: "33"
329
+ }, {
330
+ default: s(() => [
331
+ S("img", {
332
+ src: i.icon,
333
+ alt: "OpenC3"
334
+ }, null, 8, Ae),
335
+ S("span", {
336
+ class: ee(r.footerClass),
337
+ onClick: t[0] || (t[0] = (...w) => r.upgrade && r.upgrade(...w))
338
+ }, " OpenC3 " + h(i.edition) + " " + h(i.version) + " © 2024 - License: " + h(i.license), 3),
339
+ n(m),
340
+ S("a", {
341
+ href: i.sourceUrl,
342
+ class: "text-white text-decoration-underline"
343
+ }, " Source ", 8, Ve),
344
+ n(m),
345
+ S("div", Oe, [
346
+ n(u)
347
+ ]),
348
+ n(p, {
349
+ modelValue: i.showUpgradeToEnterpriseDialog,
350
+ "onUpdate:modelValue": t[1] || (t[1] = (w) => i.showUpgradeToEnterpriseDialog = w),
351
+ reason: "Enterprise is Commercially Licensed"
352
+ }, null, 8, ["modelValue"])
353
+ ]),
354
+ _: 1
355
+ }));
356
+ }
357
+ const At = /* @__PURE__ */ O(Ue, [["render", Le], ["__scopeId", "data-v-90a4c42b"]]), x = 1e3, { highestLevel: Ee, orderByLevel: Re, groupByLevel: Fe } = pe, Ie = {
358
+ components: {
359
+ AstroStatusIndicator: de
360
+ },
361
+ props: {
362
+ size: {
363
+ type: [String, Number],
364
+ default: 26
365
+ }
366
+ },
367
+ data: function() {
368
+ return {
369
+ AstroStatusColors: fe,
370
+ alerts: [],
371
+ cable: new J(),
372
+ scriptCable: new J("/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 = Fe(this.unreadNotifications);
409
+ let t = Re(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, A.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 > x && e.splice(0, e.length - x);
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 > x && this.notifications.splice(
498
+ 0,
499
+ this.notifications.length + e.length - x
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 Pe(e, t, o, l, i, r) {
513
+ const m = a("v-overlay"), u = a("rux-monitoring-icon"), p = a("v-spacer"), g = a("v-btn"), w = a("v-tooltip"), D = a("v-card-title"), v = a("v-card-text"), k = a("v-divider"), b = a("v-list-subheader"), U = a("rux-status"), L = a("v-list-item-title"), M = a("v-list-item-subtitle"), T = a("v-list-item"), E = a("v-list"), I = a("v-card"), d = a("v-menu"), j = a("astro-status-indicator"), te = a("v-card-subtitle"), oe = a("v-icon"), $ = a("v-card-actions"), q = a("v-dialog"), ne = a("v-switch");
514
+ return c(), _("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] = (y) => e.showNotificationPane = y),
522
+ transition: "slide-y-transition",
523
+ "close-on-content-click": !1,
524
+ offset: [12, 102]
525
+ }, {
526
+ activator: s(({ props: y }) => [
527
+ n(u, Z(y, {
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: s(() => [
537
+ n(I, null, {
538
+ default: s(() => [
539
+ n(D, { class: "d-flex align-center justify-content-space-between" }, {
540
+ default: s(() => [
541
+ t[7] || (t[7] = S("span", null, " Notifications ", -1)),
542
+ n(p),
543
+ n(w, {
544
+ location: "top",
545
+ "open-delay": "350"
546
+ }, {
547
+ activator: s(({ props: y }) => [
548
+ n(g, Z(y, {
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: s(() => [
557
+ t[6] || (t[6] = S("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(v, { key: 0 }, {
572
+ default: s(() => t[8] || (t[8] = [
573
+ f(" No notifications ")
574
+ ])),
575
+ _: 1
576
+ })) : (c(), N(E, {
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: s(() => [
585
+ (c(!0), _(V, null, H(r.notificationList, (y, B) => (c(), _(V, null, [
586
+ y.header ? (c(), _(V, { key: 0 }, [
587
+ B !== 0 ? (c(), N(k, {
588
+ key: B,
589
+ class: "mb-2"
590
+ })) : C("", !0),
591
+ (c(), N(b, {
592
+ key: y.header
593
+ }, {
594
+ default: s(() => [
595
+ f(h(y.header), 1)
596
+ ]),
597
+ _: 2
598
+ }, 1024))
599
+ ], 64)) : (c(), N(T, {
600
+ key: `notification-${B}`,
601
+ onClick: (yt) => r.openDialog(y),
602
+ class: "pl-2"
603
+ }, {
604
+ prepend: s(() => [
605
+ n(U, {
606
+ class: "px-2",
607
+ status: r.getStatus(y.level)
608
+ }, null, 8, ["status"])
609
+ ]),
610
+ default: s(() => [
611
+ n(L, {
612
+ class: ee({
613
+ "text--secondary": y.read,
614
+ "text-wrap": !0
615
+ })
616
+ }, {
617
+ default: s(() => [
618
+ f(h(y.message), 1)
619
+ ]),
620
+ _: 2
621
+ }, 1032, ["class"]),
622
+ n(M, null, {
623
+ default: s(() => [
624
+ f(h(r.formatShortDateTime(y.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(q, {
642
+ modelValue: e.notificationDialog,
643
+ "onUpdate:modelValue": t[3] || (t[3] = (y) => e.notificationDialog = y),
644
+ width: "600"
645
+ }, {
646
+ default: s(() => [
647
+ n(I, null, {
648
+ default: s(() => [
649
+ n(D, null, {
650
+ default: s(() => [
651
+ f(h(e.selectedNotification.message) + " ", 1),
652
+ n(p),
653
+ n(j, {
654
+ status: e.selectedNotification.level || "INFO"
655
+ }, null, 8, ["status"])
656
+ ]),
657
+ _: 1
658
+ }),
659
+ n(te, null, {
660
+ default: s(() => [
661
+ f(h(r.formatShortDateTime(e.selectedNotification.time)), 1)
662
+ ]),
663
+ _: 1
664
+ }),
665
+ n(k),
666
+ n($, null, {
667
+ default: s(() => [
668
+ e.selectedNotification.url ? (c(), N(g, {
669
+ key: 0,
670
+ color: "primary",
671
+ variant: "text",
672
+ onClick: t[1] || (t[1] = (y) => r.navigate(e.selectedNotification.url))
673
+ }, {
674
+ default: s(() => [
675
+ t[10] || (t[10] = f(" Open ")),
676
+ n(oe, { end: "" }, {
677
+ default: s(() => t[9] || (t[9] = [
678
+ f(" mdi-open-in-new ")
679
+ ])),
680
+ _: 1
681
+ })
682
+ ]),
683
+ _: 1
684
+ })) : C("", !0),
685
+ n(g, {
686
+ color: "primary",
687
+ variant: "text",
688
+ onClick: t[2] || (t[2] = (y) => e.notificationDialog = !1)
689
+ }, {
690
+ default: s(() => 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(q, {
705
+ modelValue: e.settingsDialog,
706
+ "onUpdate:modelValue": t[5] || (t[5] = (y) => e.settingsDialog = y),
707
+ width: "600"
708
+ }, {
709
+ default: s(() => [
710
+ n(I, null, {
711
+ default: s(() => [
712
+ n(D, null, {
713
+ default: s(() => t[12] || (t[12] = [
714
+ f(" Notification settings ")
715
+ ])),
716
+ _: 1
717
+ }),
718
+ n(v, null, {
719
+ default: s(() => [
720
+ n(ne, {
721
+ modelValue: e.showToast,
722
+ "onUpdate:modelValue": t[4] || (t[4] = (y) => e.showToast = y),
723
+ label: "Show toasts",
724
+ color: "primary"
725
+ }, null, 8, ["modelValue"])
726
+ ]),
727
+ _: 1
728
+ }),
729
+ n(k),
730
+ n($, null, {
731
+ default: s(() => [
732
+ n(g, {
733
+ color: "primary",
734
+ variant: "text",
735
+ onClick: r.toggleSettingsDialog
736
+ }, {
737
+ default: s(() => 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__ */ O(Ie, [["render", Pe], ["__scopeId", "data-v-76362be6"]]), ze = {
754
+ components: {
755
+ UpgradeToEnterpriseDialog: Y
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 He(e, t, o, l, i, r) {
767
+ const m = a("v-select"), u = a("upgrade-to-enterprise-dialog");
768
+ return c(), _("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 Xe = /* @__PURE__ */ O(ze, [["render", He]]), Ye = {
791
+ components: {
792
+ UpgradeToEnterpriseDialog: Y
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
+ api: new X(),
804
+ showUserMenu: !1,
805
+ authenticated: !!localStorage.openc3Token,
806
+ name: e.name,
807
+ // preferred_username is returned by the token (see authorization.rb)
808
+ username: e.preferred_username,
809
+ showUpgradeToEnterpriseDialog: !1,
810
+ activeUsers: ["None"],
811
+ newsFeed: !1,
812
+ news: []
813
+ };
814
+ },
815
+ computed: {
816
+ unreadNews: function() {
817
+ return this.news.filter((e) => !e.read);
818
+ }
819
+ },
820
+ watch: {
821
+ // Whenever we show the user menu, read the news and refresh the list of active users
822
+ showUserMenu: function(e, t) {
823
+ e === !0 && (this.news.length > 0 && (this.news.forEach((o) => {
824
+ o.read = !0;
825
+ }), localStorage.lastNewsRead = this.news[0].date), this.name !== "Anonymous" && A.get("/openc3-api/users/active").then((o) => {
826
+ this.activeUsers = o.data.filter(
827
+ (l) => !l.includes(this.name)
828
+ ), this.activeUsers.length === 0 && (this.activeUsers = ["None"]);
829
+ }));
830
+ }
831
+ },
832
+ created: function() {
833
+ this.api.get_setting("news_feed").then((e) => {
834
+ e && (this.newsFeed = e, this.newsFeed && (this.fetchNews(), setInterval(this.fetchNews, 60 * 60 * 1e3)));
835
+ }).catch((e) => {
836
+ });
837
+ },
838
+ methods: {
839
+ refreshNews() {
840
+ this.api.update_news().then(() => {
841
+ this.fetchNews();
842
+ });
843
+ },
844
+ formatDate(e) {
845
+ return e.split("T")[0];
846
+ },
847
+ fetchNews: function() {
848
+ A.get("/openc3-api/news").then((e) => {
849
+ this.news = e.data.sort(
850
+ (t, o) => Date.parse(o.date) - Date.parse(t.date)
851
+ ), localStorage.lastNewsRead && this.news.forEach((t) => {
852
+ t.read = Date.parse(t.date) <= Date.parse(localStorage.lastNewsRead);
853
+ });
854
+ });
855
+ },
856
+ logout: function() {
857
+ OpenC3Auth.logout(), A.put(`/openc3-api/users/logout/${this.username}`);
858
+ },
859
+ login: function() {
860
+ OpenC3Auth.login(location.href);
861
+ },
862
+ roles: function() {
863
+ return this.name === "Anonymous" ? "Admin" : OpenC3Auth.userroles().map((e) => this.capitalize(e)).sort().join(", ");
864
+ },
865
+ capitalize: function(e) {
866
+ return e.charAt(0).toUpperCase() + e.slice(1);
867
+ }
868
+ }
869
+ }, je = { style: { "text-align": "center", margin: "5px" } }, Be = { key: 0 }, Ze = { class: "roles" }, We = { class: "pb-3 roles" }, $e = { key: 1 }, qe = {
870
+ key: 0,
871
+ class: "pa-3"
872
+ }, Je = { key: 2 }, Ge = { key: 0 }, Ke = { class: "news-title" }, Qe = { class: "news-date" }, et = ["innerHTML"];
873
+ function tt(e, t, o, l, i, r) {
874
+ const m = a("v-overlay"), u = a("rux-monitoring-icon"), p = a("v-btn"), g = a("v-row"), w = a("v-card-text"), D = a("v-col"), v = a("v-list-item-title"), k = a("v-list-item"), b = a("v-list"), U = a("v-card"), L = a("v-menu"), M = a("upgrade-to-enterprise-dialog");
875
+ return c(), _("div", null, [
876
+ n(m, {
877
+ "model-value": e.showUserMenu,
878
+ class: "overlay"
879
+ }, null, 8, ["model-value"]),
880
+ n(L, {
881
+ modelValue: e.showUserMenu,
882
+ "onUpdate:modelValue": t[1] || (t[1] = (T) => e.showUserMenu = T),
883
+ transition: "slide-y-transition",
884
+ "close-on-content-click": !1,
885
+ offset: 20
886
+ }, {
887
+ activator: s(({ props: T }) => [
888
+ n(u, Z(T, {
889
+ class: "rux-icon",
890
+ icon: "person",
891
+ status: "off",
892
+ label: e.name,
893
+ sublabel: r.roles(),
894
+ notifications: r.unreadNews.length
895
+ }), null, 16, ["label", "sublabel", "notifications"])
896
+ ]),
897
+ default: s(() => [
898
+ n(U, null, {
899
+ default: s(() => [
900
+ n(w, { class: "text-center" }, {
901
+ default: s(() => [
902
+ S("div", je, h(e.name), 1),
903
+ e.name !== "Anonymous" ? (c(), _("div", Be, [
904
+ S("div", Ze, "Username: " + h(e.username), 1),
905
+ S("div", We, "Roles: " + h(r.roles()), 1)
906
+ ])) : C("", !0),
907
+ e.authenticated ? (c(), _("div", $e, [
908
+ n(p, {
909
+ block: "",
910
+ onClick: r.logout,
911
+ color: "primary"
912
+ }, {
913
+ default: s(() => t[3] || (t[3] = [
914
+ f(" Logout ")
915
+ ])),
916
+ _: 1
917
+ }, 8, ["onClick"]),
918
+ e.name !== "Anonymous" ? (c(), _("div", qe, [
919
+ n(g, { class: "pt-3 user-title" }, {
920
+ default: s(() => t[4] || (t[4] = [
921
+ f("Other Active Users:")
922
+ ])),
923
+ _: 1
924
+ }),
925
+ (c(!0), _(V, null, H(e.activeUsers, (T, E) => (c(), N(g, {
926
+ key: E,
927
+ class: "user"
928
+ }, {
929
+ default: s(() => [
930
+ f(h(T), 1)
931
+ ]),
932
+ _: 2
933
+ }, 1024))), 128))
934
+ ])) : C("", !0)
935
+ ])) : (c(), _("div", Je, [
936
+ n(p, {
937
+ block: "",
938
+ onClick: r.login,
939
+ color: "primary"
940
+ }, {
941
+ default: s(() => t[5] || (t[5] = [
942
+ f(" Login ")
943
+ ])),
944
+ _: 1
945
+ }, 8, ["onClick"])
946
+ ])),
947
+ e.name === "Anonymous" ? (c(), _("div", {
948
+ key: 3,
949
+ onClick: t[0] || (t[0] = (T) => e.showUpgradeToEnterpriseDialog = !0),
950
+ class: "pt-2 link"
951
+ }, t[6] || (t[6] = [
952
+ f(" Click to learn more about"),
953
+ S("br", null, null, -1),
954
+ f(" COSMOS Enterprise Edition ")
955
+ ]))) : C("", !0)
956
+ ]),
957
+ _: 1
958
+ }),
959
+ e.newsFeed ? (c(), _("div", Ge, [
960
+ n(g, {
961
+ "no-gutters": "",
962
+ class: "news-header"
963
+ }, {
964
+ default: s(() => [
965
+ n(D, {
966
+ cols: "auto",
967
+ class: "me-auto"
968
+ }, {
969
+ default: s(() => t[7] || (t[7] = [
970
+ f("COSMOS News")
971
+ ])),
972
+ _: 1
973
+ }),
974
+ n(D, { cols: "auto" }, {
975
+ default: s(() => [
976
+ n(p, {
977
+ onClick: r.refreshNews,
978
+ color: "primary",
979
+ density: "compact",
980
+ block: ""
981
+ }, {
982
+ default: s(() => t[8] || (t[8] = [
983
+ f(" Refresh ")
984
+ ])),
985
+ _: 1
986
+ }, 8, ["onClick"])
987
+ ]),
988
+ _: 1
989
+ })
990
+ ]),
991
+ _: 1
992
+ }),
993
+ n(b, {
994
+ lines: "two",
995
+ width: "420",
996
+ "max-height": "75vh",
997
+ class: "overflow-y-auto",
998
+ "data-test": "news-list"
999
+ }, {
1000
+ default: s(() => [
1001
+ (c(!0), _(V, null, H(e.news, (T, E) => (c(), _(V, {
1002
+ key: `news-${E}`
1003
+ }, [
1004
+ t[9] || (t[9] = S("hr", null, null, -1)),
1005
+ n(k, { class: "pl-2" }, {
1006
+ default: s(() => [
1007
+ n(v, null, {
1008
+ default: s(() => [
1009
+ S("span", Ke, h(T.title), 1),
1010
+ S("span", Qe, h(r.formatDate(T.date)), 1)
1011
+ ]),
1012
+ _: 2
1013
+ }, 1024),
1014
+ S("div", {
1015
+ innerHTML: T.body
1016
+ }, null, 8, et)
1017
+ ]),
1018
+ _: 2
1019
+ }, 1024)
1020
+ ], 64))), 128))
1021
+ ]),
1022
+ _: 1
1023
+ })
1024
+ ])) : C("", !0)
1025
+ ]),
1026
+ _: 1
1027
+ })
1028
+ ]),
1029
+ _: 1
1030
+ }, 8, ["modelValue"]),
1031
+ n(M, {
1032
+ modelValue: e.showUpgradeToEnterpriseDialog,
1033
+ "onUpdate:modelValue": t[2] || (t[2] = (T) => e.showUpgradeToEnterpriseDialog = T),
1034
+ reason: "Enterprise has individual users with RBAC"
1035
+ }, null, 8, ["modelValue"])
1036
+ ]);
1037
+ }
1038
+ const ot = /* @__PURE__ */ O(Ye, [["render", tt], ["__scopeId", "data-v-3a186f9e"]]), nt = {
1039
+ components: {
1040
+ Notifications: xe,
1041
+ ScopeSelector: Xe,
1042
+ UserMenu: ot,
1043
+ UpgradeToEnterpriseDialog: Y
1044
+ },
1045
+ props: {
1046
+ edition: {
1047
+ type: String,
1048
+ default: ""
1049
+ }
1050
+ },
1051
+ data() {
1052
+ return {
1053
+ api: new X(),
1054
+ timeZone: "local",
1055
+ subtitle: null,
1056
+ // Update AstroSettings.vue when changing this
1057
+ astro: {
1058
+ hideClock: !1
1059
+ },
1060
+ items: [],
1061
+ drawer: !0,
1062
+ appNav: {},
1063
+ logo: "/img/logo.png",
1064
+ initiallyOpen: [],
1065
+ showUpgradeToEnterpriseDialog: !1,
1066
+ chromeless: this.$route.query.chromeless
1067
+ };
1068
+ },
1069
+ computed: {
1070
+ // a computed getter
1071
+ shownTools: function() {
1072
+ let e = {};
1073
+ for (let t of Object.keys(this.appNav))
1074
+ this.appNav[t].shown && this.appNav[t].category !== "Admin" && (e[t] = this.appNav[t]);
1075
+ return e;
1076
+ },
1077
+ adminTools: function() {
1078
+ let e = {};
1079
+ for (let t of Object.keys(this.appNav))
1080
+ this.appNav[t].shown && this.appNav[t].category === "Admin" && (e[t] = this.appNav[t]);
1081
+ return e;
1082
+ },
1083
+ astroTimeZone: function() {
1084
+ return this.timeZone === "local" ? Intl.DateTimeFormat().resolvedOptions().timeZone : this.timeZone;
1085
+ }
1086
+ },
1087
+ created() {
1088
+ this.api.get_setting("astro").then((e) => {
1089
+ e && (this.astro = JSON.parse(e));
1090
+ }).catch((e) => {
1091
+ }), this.api.get_setting("subtitle").then((e) => {
1092
+ e && (this.subtitle = e);
1093
+ }).catch((e) => {
1094
+ }), this.api.get_setting("time_zone").then((e) => {
1095
+ e && (this.timeZone = e);
1096
+ }).catch((e) => {
1097
+ }), A.get("/openc3-api/tools/all", { params: { scope: "DEFAULT" } }).then(
1098
+ (e) => {
1099
+ this.appNav = e.data;
1100
+ let t = 1;
1101
+ for (let o of Object.keys(this.appNav)) {
1102
+ if (this.appNav[o].shown) {
1103
+ if (this.appNav[o].category && this.appNav[o].category !== "Admin") {
1104
+ this.initiallyOpen.includes(this.appNav[o].category) || this.initiallyOpen.push(this.appNav[o].category);
1105
+ const l = this.items.filter(
1106
+ (i) => i.name === this.appNav[o].category
1107
+ );
1108
+ l.length === 0 ? (this.items.push({
1109
+ id: t,
1110
+ name: this.appNav[o].category,
1111
+ children: [
1112
+ {
1113
+ id: t + 1,
1114
+ name: this.appNav[o].name,
1115
+ icon: this.appNav[o].icon,
1116
+ url: this.appNav[o].url,
1117
+ inline_url: this.appNav[o].inline_url,
1118
+ window: this.appNav[o].window
1119
+ }
1120
+ ]
1121
+ }), t++) : l[0].children.push({
1122
+ id: t,
1123
+ name: this.appNav[o].name,
1124
+ icon: this.appNav[o].icon,
1125
+ url: this.appNav[o].url,
1126
+ inline_url: this.appNav[o].inline_url,
1127
+ window: this.appNav[o].window
1128
+ });
1129
+ } else this.appNav[o].category || this.items.push({
1130
+ id: t,
1131
+ name: this.appNav[o].name,
1132
+ icon: this.appNav[o].icon,
1133
+ url: this.appNav[o].url,
1134
+ inline_url: this.appNav[o].inline_url,
1135
+ window: this.appNav[o].window
1136
+ });
1137
+ t++;
1138
+ }
1139
+ if (this.appNav[o].inline_url && this.appNav[o].window === "INLINE" && this.appNav[o].folder_name && this.appNav[o].folder_name !== "base") {
1140
+ let l = this.appNav[o].folder_name, i = "@openc3/tool-" + l;
1141
+ ie({
1142
+ name: i,
1143
+ app: () => System.import(i),
1144
+ activeWhen: ["/tools/" + l]
1145
+ });
1146
+ }
1147
+ }
1148
+ if (ae({
1149
+ urlRerouteOnly: !0
1150
+ }), window.location.pathname == "/" || window.location.pathname == "/tools" || window.location.pathname == "/tools/") {
1151
+ for (let o of Object.keys(this.shownTools))
1152
+ if (this.appNav[o].shown) {
1153
+ history.replaceState(null, "", this.appNav[o].url);
1154
+ break;
1155
+ }
1156
+ }
1157
+ setInterval(() => {
1158
+ OpenC3Auth.updateToken(120).then(function(o) {
1159
+ o && OpenC3Auth.setTokens();
1160
+ });
1161
+ }, 6e4);
1162
+ }
1163
+ );
1164
+ },
1165
+ methods: {
1166
+ navigateToUrl: se,
1167
+ newTabUrl(e) {
1168
+ let t = null;
1169
+ try {
1170
+ 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);
1171
+ } catch (o) {
1172
+ window.$cosmosNotify.serious({
1173
+ title: `Invalid URL '${e.url}' for tool ${e.name}`,
1174
+ message: o.message
1175
+ }), t.href = "/";
1176
+ }
1177
+ return t.href;
1178
+ }
1179
+ }
1180
+ }, st = ["src"], it = { style: { "text-align": "center", "font-size": "18pt" } }, at = ["href", "onClick"], rt = ["href"], lt = ["href", "onClick"], ct = ["href", "onClick"], ut = ["href"], dt = ["href"], ft = ["href"], pt = ["href"];
1181
+ function mt(e, t, o, l, i, r) {
1182
+ const m = a("v-btn"), u = a("v-divider"), p = a("v-icon"), g = a("v-treeview"), w = a("v-navigation-drawer"), D = a("rux-icon"), v = a("v-row"), k = a("v-col"), b = a("rux-clock"), U = a("v-spacer"), L = a("scope-selector"), M = a("notifications"), T = a("user-menu"), E = a("v-app-bar"), I = a("upgrade-to-enterprise-dialog");
1183
+ return c(), _("div", null, [
1184
+ i.chromeless ? C("", !0) : (c(), N(w, {
1185
+ key: 0,
1186
+ "model-value": i.drawer,
1187
+ id: "openc3-nav-drawer"
1188
+ }, {
1189
+ default: s(() => [
1190
+ S("img", {
1191
+ src: i.logo,
1192
+ class: "logo",
1193
+ alt: "OpenC3"
1194
+ }, null, 8, st),
1195
+ S("div", {
1196
+ class: "cosmos",
1197
+ onClick: t[0] || (t[0] = (d) => i.showUpgradeToEnterpriseDialog = !0)
1198
+ }, " COSMOS "),
1199
+ S("div", it, h(i.subtitle), 1),
1200
+ (c(!0), _(V, null, H(r.adminTools, (d, j) => (c(), _("div", {
1201
+ key: j,
1202
+ class: "ma-3"
1203
+ }, [
1204
+ n(m, {
1205
+ block: "",
1206
+ size: "small",
1207
+ href: d.url,
1208
+ onClick: F(() => r.navigateToUrl(d.url), ["prevent"]),
1209
+ class: "fixcenter",
1210
+ color: "primary"
1211
+ }, {
1212
+ default: s(() => t[3] || (t[3] = [
1213
+ f(" Admin Console ")
1214
+ ])),
1215
+ _: 2
1216
+ }, 1032, ["href", "onClick"])
1217
+ ]))), 128)),
1218
+ n(u),
1219
+ n(g, {
1220
+ items: i.items,
1221
+ opened: i.initiallyOpen,
1222
+ "item-value": "name",
1223
+ density: "compact",
1224
+ "open-on-click": ""
1225
+ }, {
1226
+ prepend: s(({ item: d }) => [
1227
+ d.icon ? (c(), _(V, { key: 0 }, [
1228
+ d.window === "INLINE" ? (c(), _("a", {
1229
+ key: 0,
1230
+ href: d.url,
1231
+ onClick: F(() => r.navigateToUrl(d.url), ["prevent"])
1232
+ }, [
1233
+ n(p, { class: "mr-2" }, {
1234
+ default: s(() => [
1235
+ f(h(d.icon), 1)
1236
+ ]),
1237
+ _: 2
1238
+ }, 1024)
1239
+ ], 8, at)) : (c(), _("a", {
1240
+ key: 1,
1241
+ href: d.url
1242
+ }, [
1243
+ n(p, { class: "mr-2" }, {
1244
+ default: s(() => [
1245
+ f(h(d.icon), 1)
1246
+ ]),
1247
+ _: 2
1248
+ }, 1024)
1249
+ ], 8, rt))
1250
+ ], 64)) : C("", !0)
1251
+ ]),
1252
+ title: s(({ item: d }) => [
1253
+ d.icon ? (c(), _(V, { key: 1 }, [
1254
+ d.window === "INLINE" ? (c(), _("a", {
1255
+ key: 0,
1256
+ href: d.url,
1257
+ onClick: F(() => r.navigateToUrl(d.url), ["prevent"])
1258
+ }, h(d.name), 9, ct)) : d.window === "IFRAME" ? (c(), _("a", {
1259
+ key: 1,
1260
+ href: "/tools/iframe?title=" + encodeURIComponent(d.name) + "&url=" + d.url
1261
+ }, h(d.name), 9, ut)) : d.window === "SAME" ? (c(), _("a", {
1262
+ key: 2,
1263
+ href: d.url
1264
+ }, h(d.name), 9, dt)) : (c(), _("a", {
1265
+ key: 3,
1266
+ href: d.url,
1267
+ target: "_blank"
1268
+ }, h(d.name), 9, ft))
1269
+ ], 64)) : (c(), _("a", {
1270
+ key: 0,
1271
+ href: d.url,
1272
+ onClick: F(() => r.navigateToUrl(d.url), ["prevent"])
1273
+ }, h(d.name), 9, lt))
1274
+ ]),
1275
+ append: s(({ item: d }) => [
1276
+ d.icon ? (c(), _("a", {
1277
+ key: 0,
1278
+ href: r.newTabUrl(d),
1279
+ target: "_blank"
1280
+ }, [
1281
+ n(p, null, {
1282
+ default: s(() => t[4] || (t[4] = [
1283
+ f("mdi-open-in-new")
1284
+ ])),
1285
+ _: 1
1286
+ })
1287
+ ], 8, pt)) : C("", !0)
1288
+ ]),
1289
+ _: 1
1290
+ }, 8, ["items", "opened"])
1291
+ ]),
1292
+ _: 1
1293
+ }, 8, ["model-value"])),
1294
+ i.chromeless ? C("", !0) : (c(), N(E, {
1295
+ key: 1,
1296
+ id: "openc3-app-toolbar"
1297
+ }, {
1298
+ default: s(() => [
1299
+ n(v, {
1300
+ class: "flex-nowrap",
1301
+ justify: "space-between",
1302
+ "no-gutters": ""
1303
+ }, {
1304
+ default: s(() => [
1305
+ n(k, { "align-self": "start" }, {
1306
+ default: s(() => [
1307
+ n(v, { class: "flex-nowrap" }, {
1308
+ default: s(() => [
1309
+ n(D, {
1310
+ class: "ml-3 mr-2 pa-2",
1311
+ size: "small",
1312
+ icon: "apps",
1313
+ onClick: t[1] || (t[1] = (d) => i.drawer = !i.drawer)
1314
+ }),
1315
+ t[5] || (t[5] = S("span", { id: "openc3-menu" }, null, -1))
1316
+ ]),
1317
+ _: 1
1318
+ })
1319
+ ]),
1320
+ _: 1
1321
+ }),
1322
+ n(k, null, {
1323
+ default: s(() => [
1324
+ n(v, { class: "clock flex-nowrap mt-0" }, {
1325
+ default: s(() => [
1326
+ i.astro.hideClock ? C("", !0) : (c(), N(b, {
1327
+ key: 0,
1328
+ "date-in": "",
1329
+ timezone: r.astroTimeZone
1330
+ }, null, 8, ["timezone"]))
1331
+ ]),
1332
+ _: 1
1333
+ })
1334
+ ]),
1335
+ _: 1
1336
+ }),
1337
+ n(k, {
1338
+ "align-self": "center",
1339
+ class: "mt-2"
1340
+ }, {
1341
+ default: s(() => [
1342
+ n(v, { class: "flex-nowrap" }, {
1343
+ default: s(() => [
1344
+ n(U),
1345
+ n(L, { class: "mr-6 mt-4" }),
1346
+ n(M, {
1347
+ class: "mr-6",
1348
+ "data-test": "notifications"
1349
+ }),
1350
+ n(T, { class: "mr-6" })
1351
+ ]),
1352
+ _: 1
1353
+ })
1354
+ ]),
1355
+ _: 1
1356
+ })
1357
+ ]),
1358
+ _: 1
1359
+ })
1360
+ ]),
1361
+ _: 1
1362
+ })),
1363
+ n(I, {
1364
+ modelValue: i.showUpgradeToEnterpriseDialog,
1365
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => i.showUpgradeToEnterpriseDialog = d),
1366
+ reason: "Enterprise adds Calendar and Autonomic"
1367
+ }, null, 8, ["modelValue"])
1368
+ ]);
1369
+ }
1370
+ const Vt = /* @__PURE__ */ O(nt, [["render", mt], ["__scopeId", "data-v-afa468e5"]]), Ot = {
1371
+ data: function() {
1372
+ return {
1373
+ api: null,
1374
+ classification: {
1375
+ text: "",
1376
+ fontColor: "white",
1377
+ backgroundColor: "red",
1378
+ topHeight: 0,
1379
+ bottomHeight: 0
1380
+ }
1381
+ };
1382
+ },
1383
+ computed: {
1384
+ classificationStyles: function() {
1385
+ return [
1386
+ `--classification-text:"${this.classification.text}";`,
1387
+ `--classification-font-color:${this.classification.fontColor};`,
1388
+ `--classification-background-color:${this.classification.backgroundColor};`,
1389
+ `--classification-height-top:${this.classification.topHeight}px;`,
1390
+ `--classification-height-bottom:${this.classification.bottomHeight}px;`
1391
+ ].join("");
1392
+ }
1393
+ },
1394
+ created: function() {
1395
+ this.api = new X(), this.load();
1396
+ },
1397
+ methods: {
1398
+ load: function() {
1399
+ this.api.get_setting("classification_banner").then((e) => {
1400
+ e && (this.classification = JSON.parse(e));
1401
+ }).catch((e) => {
1402
+ });
1403
+ }
1404
+ }
1405
+ }, ht = {
1406
+ data() {
1407
+ return {
1408
+ isSet: !0,
1409
+ password: "",
1410
+ confirmPassword: "",
1411
+ oldPassword: "",
1412
+ reset: !1,
1413
+ // setting a password for the first time, or changing to a new password
1414
+ alert: "",
1415
+ alertType: "success",
1416
+ showAlert: !1
1417
+ };
1418
+ },
1419
+ computed: {
1420
+ options: function() {
1421
+ return {
1422
+ noAuth: !0,
1423
+ noScope: !0
1424
+ // lol
1425
+ };
1426
+ },
1427
+ rules: function() {
1428
+ return {
1429
+ matchPassword: () => this.password === this.confirmPassword || "Passwords must match"
1430
+ };
1431
+ },
1432
+ formValid: function() {
1433
+ return this.reset ? this.isSet ? !!this.oldPassword && !!this.password && this.password === this.confirmPassword : !!this.password && this.password === this.confirmPassword : !!this.password;
1434
+ }
1435
+ },
1436
+ created: function() {
1437
+ A.get("/openc3-api/auth/token-exists", this.options).then((e) => {
1438
+ this.isSet = !!e.data.result, this.isSet || (this.reset = !0);
1439
+ });
1440
+ },
1441
+ mounted: function() {
1442
+ localStorage.openc3Token && this.verifyPassword(localStorage.openc3Token, !0);
1443
+ },
1444
+ methods: {
1445
+ showReset: function() {
1446
+ this.reset = !0;
1447
+ },
1448
+ login: function(e) {
1449
+ localStorage.openc3Token = e.data;
1450
+ const t = new URLSearchParams(window.location.search).get(
1451
+ "redirect"
1452
+ );
1453
+ t != null && t.startsWith("/tools/") ? window.location = decodeURI(t) : window.location = "/";
1454
+ },
1455
+ verifyPassword: function(e, t) {
1456
+ e || (e = this.password), this.showAlert = !1, A.post("/openc3-api/auth/verify", {
1457
+ data: {
1458
+ token: e
1459
+ },
1460
+ ...this.options
1461
+ }).then((o) => {
1462
+ this.login(o);
1463
+ }).catch((o) => {
1464
+ (o == null ? void 0 : o.status) === 401 ? this.alert = "Incorrect password" : this.alert = o.message || "Something went wrong...", this.alertType = "warning", this.showAlert = !t;
1465
+ });
1466
+ },
1467
+ setPassword: function() {
1468
+ this.showAlert = !1, A.post("/openc3-api/auth/set", {
1469
+ data: {
1470
+ old_token: this.oldPassword,
1471
+ token: this.password
1472
+ },
1473
+ ...this.options
1474
+ }).then((e) => {
1475
+ this.login(e);
1476
+ }).catch((e) => {
1477
+ this.alert = `Invalid password: ${e.response.data.message}`, this.alertType = "warning", this.showAlert = !0;
1478
+ });
1479
+ }
1480
+ }
1481
+ };
1482
+ function _t(e, t, o, l, i, r) {
1483
+ const m = a("v-card-title"), u = a("v-card-subtitle"), p = a("v-text-field"), g = a("v-btn"), w = a("v-spacer"), D = a("v-row"), v = a("v-container"), k = a("v-form"), b = a("v-card-text"), U = a("v-alert"), L = a("v-card");
1484
+ return c(), N(L, null, {
1485
+ default: s(() => [
1486
+ n(m, null, {
1487
+ default: s(() => t[5] || (t[5] = [
1488
+ f(" Login ")
1489
+ ])),
1490
+ _: 1
1491
+ }),
1492
+ n(u, null, {
1493
+ default: s(() => [
1494
+ f(h(i.isSet ? "Enter the" : "Create a") + " password to begin using OpenC3 ", 1)
1495
+ ]),
1496
+ _: 1
1497
+ }),
1498
+ n(b, null, {
1499
+ default: s(() => [
1500
+ n(k, null, {
1501
+ default: s(() => [
1502
+ i.isSet && i.reset ? (c(), N(p, {
1503
+ key: 0,
1504
+ modelValue: i.oldPassword,
1505
+ "onUpdate:modelValue": t[0] || (t[0] = (M) => i.oldPassword = M),
1506
+ type: "password",
1507
+ label: "Old Password"
1508
+ }, null, 8, ["modelValue"])) : C("", !0),
1509
+ n(p, {
1510
+ modelValue: i.password,
1511
+ "onUpdate:modelValue": t[1] || (t[1] = (M) => i.password = M),
1512
+ type: "password",
1513
+ label: `${!i.isSet || i.reset ? "New " : ""}Password`,
1514
+ "data-test": "new-password"
1515
+ }, null, 8, ["modelValue", "label"]),
1516
+ i.reset ? (c(), N(p, {
1517
+ key: 1,
1518
+ modelValue: i.confirmPassword,
1519
+ "onUpdate:modelValue": t[2] || (t[2] = (M) => i.confirmPassword = M),
1520
+ rules: [r.rules.matchPassword],
1521
+ type: "password",
1522
+ label: "Confirm Password",
1523
+ "data-test": "confirm-password"
1524
+ }, null, 8, ["modelValue", "rules"])) : C("", !0),
1525
+ i.reset ? (c(), N(g, {
1526
+ key: 2,
1527
+ type: "submit",
1528
+ onClick: F(r.setPassword, ["prevent"]),
1529
+ size: "large",
1530
+ color: i.isSet ? "warn" : "success",
1531
+ disabled: !r.formValid,
1532
+ "data-test": "set-password"
1533
+ }, {
1534
+ default: s(() => t[6] || (t[6] = [
1535
+ f(" Set ")
1536
+ ])),
1537
+ _: 1
1538
+ }, 8, ["onClick", "color", "disabled"])) : (c(), N(v, { key: 3 }, {
1539
+ default: s(() => [
1540
+ n(D, null, {
1541
+ default: s(() => [
1542
+ n(g, {
1543
+ type: "submit",
1544
+ onClick: t[3] || (t[3] = F(() => r.verifyPassword(), ["prevent"])),
1545
+ size: "large",
1546
+ color: "success",
1547
+ disabled: !r.formValid
1548
+ }, {
1549
+ default: s(() => t[7] || (t[7] = [
1550
+ f(" Login ")
1551
+ ])),
1552
+ _: 1
1553
+ }, 8, ["disabled"]),
1554
+ n(w),
1555
+ n(g, {
1556
+ variant: "text",
1557
+ size: "small",
1558
+ onClick: r.showReset
1559
+ }, {
1560
+ default: s(() => t[8] || (t[8] = [
1561
+ f(" Change Password ")
1562
+ ])),
1563
+ _: 1
1564
+ }, 8, ["onClick"])
1565
+ ]),
1566
+ _: 1
1567
+ })
1568
+ ]),
1569
+ _: 1
1570
+ }))
1571
+ ]),
1572
+ _: 1
1573
+ })
1574
+ ]),
1575
+ _: 1
1576
+ }),
1577
+ n(U, {
1578
+ type: i.alertType,
1579
+ modelValue: i.showAlert,
1580
+ "onUpdate:modelValue": t[4] || (t[4] = (M) => i.showAlert = M),
1581
+ closable: ""
1582
+ }, {
1583
+ default: s(() => [
1584
+ f(h(i.alert), 1)
1585
+ ]),
1586
+ _: 1
1587
+ }, 8, ["type", "modelValue"])
1588
+ ]),
1589
+ _: 1
1590
+ });
1591
+ }
1592
+ const Lt = /* @__PURE__ */ O(ht, [["render", _t]]), gt = 3e3, vt = {
1593
+ data: function() {
1594
+ return {
1595
+ dismissed: !1,
1596
+ suppress: !1,
1597
+ discrepancy: 0
1598
+ };
1599
+ },
1600
+ created: function() {
1601
+ this.suppress = localStorage.suppresswarning__clock_out_of_sync_with_server === "true", this.suppress || me.get("/openc3-api/time").then((e) => {
1602
+ this.discrepancy = e.data.now_nsec / 1e6 - Date.now();
1603
+ }).catch((e) => {
1604
+ this.dismissed = !0;
1605
+ });
1606
+ },
1607
+ methods: {
1608
+ dismiss: function() {
1609
+ localStorage.suppresswarning__clock_out_of_sync_with_server = this.suppress, this.dismissed = !0;
1610
+ }
1611
+ },
1612
+ computed: {
1613
+ approximateDiscrepancySec: function() {
1614
+ return (this.discrepancy / 1e3).toFixed();
1615
+ },
1616
+ dialog: function() {
1617
+ return !this.dismissed && Math.abs(this.discrepancy) >= gt;
1618
+ }
1619
+ }
1620
+ };
1621
+ function wt(e, t, o, l, i, r) {
1622
+ const m = a("v-card-title"), u = a("v-checkbox"), p = a("v-card-text"), g = a("v-divider"), w = a("v-btn"), D = a("v-card-actions"), v = a("v-card"), k = a("v-dialog");
1623
+ return c(), N(k, {
1624
+ modelValue: r.dialog,
1625
+ "onUpdate:modelValue": t[1] || (t[1] = (b) => r.dialog = b),
1626
+ width: "500"
1627
+ }, {
1628
+ default: s(() => [
1629
+ n(v, null, {
1630
+ default: s(() => [
1631
+ n(m, null, {
1632
+ default: s(() => t[2] || (t[2] = [
1633
+ f(" Clock out of sync ")
1634
+ ])),
1635
+ _: 1
1636
+ }),
1637
+ n(p, null, {
1638
+ default: s(() => [
1639
+ f(" We've detected that your clock is approximately " + h(Math.abs(r.approximateDiscrepancySec)) + " seconds " + h(r.approximateDiscrepancySec > 0 ? "behind" : "ahead of") + " server time. This can cause issues and might have unknown side effects. ", 1),
1640
+ n(u, {
1641
+ modelValue: e.suppress,
1642
+ "onUpdate:modelValue": t[0] || (t[0] = (b) => e.suppress = b),
1643
+ label: "Don't show this again"
1644
+ }, null, 8, ["modelValue"])
1645
+ ]),
1646
+ _: 1
1647
+ }),
1648
+ n(g),
1649
+ n(D, null, {
1650
+ default: s(() => [
1651
+ n(w, {
1652
+ color: "primary",
1653
+ variant: "text",
1654
+ onClick: r.dismiss
1655
+ }, {
1656
+ default: s(() => t[3] || (t[3] = [
1657
+ f(" Dismiss ")
1658
+ ])),
1659
+ _: 1
1660
+ }, 8, ["onClick"])
1661
+ ]),
1662
+ _: 1
1663
+ })
1664
+ ]),
1665
+ _: 1
1666
+ })
1667
+ ]),
1668
+ _: 1
1669
+ }, 8, ["modelValue"]);
1670
+ }
1671
+ const Et = /* @__PURE__ */ O(vt, [["render", wt]]);
1672
+ export {
1673
+ At as AppFooter,
1674
+ Vt as AppNav,
1675
+ Ot as ClassificationBanners,
1676
+ Me as ClockFooter,
1677
+ Lt as Login,
1678
+ xe as Notifications,
1679
+ Xe as ScopeSelector,
1680
+ Et as TimeCheck,
1681
+ ot as UserMenu
1682
+ };
1683
+ //# sourceMappingURL=base.js.map