@openc3/vue-common 6.10.5 → 6.10.6
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.
- package/dist/{ArrayWidget-CKVa2jS0.cjs → ArrayWidget-BLSdjJNz.cjs} +2 -2
- package/dist/{ArrayWidget-CKVa2jS0.cjs.map → ArrayWidget-BLSdjJNz.cjs.map} +1 -1
- package/dist/{ArrayWidget-CB1594s3.js → ArrayWidget-DuLt8EJf.js} +4 -4
- package/dist/{ArrayWidget-CB1594s3.js.map → ArrayWidget-DuLt8EJf.js.map} +1 -1
- package/dist/{ArrayplotWidget-BTIkHdc1.cjs → ArrayplotWidget-BMproxMR.cjs} +2 -2
- package/dist/{ArrayplotWidget-BTIkHdc1.cjs.map → ArrayplotWidget-BMproxMR.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-BfauFgCc.js → ArrayplotWidget-Cd-gOSvk.js} +3 -3
- package/dist/{ArrayplotWidget-BfauFgCc.js.map → ArrayplotWidget-Cd-gOSvk.js.map} +1 -1
- package/dist/{BarColumn-3M4oLg_y.cjs → BarColumn-BLzB9nJI.cjs} +2 -2
- package/dist/{BarColumn-3M4oLg_y.cjs.map → BarColumn-BLzB9nJI.cjs.map} +1 -1
- package/dist/{BarColumn-BN5j9sPr.js → BarColumn-Dl9qcKah.js} +3 -3
- package/dist/{BarColumn-BN5j9sPr.js.map → BarColumn-Dl9qcKah.js.map} +1 -1
- package/dist/{BlockWidget-C9__-7CU.js → BlockWidget-DDV7KBvj.js} +4 -4
- package/dist/{BlockWidget-C9__-7CU.js.map → BlockWidget-DDV7KBvj.js.map} +1 -1
- package/dist/{BlockWidget-Ur9wX3Gb.cjs → BlockWidget-tsvy_QdR.cjs} +2 -2
- package/dist/{BlockWidget-Ur9wX3Gb.cjs.map → BlockWidget-tsvy_QdR.cjs.map} +1 -1
- package/dist/{ButtonWidget-Cn74AwrM.cjs → ButtonWidget-BOucJBe6.cjs} +2 -2
- package/dist/{ButtonWidget-Cn74AwrM.cjs.map → ButtonWidget-BOucJBe6.cjs.map} +1 -1
- package/dist/{ButtonWidget-CyixmRMa.js → ButtonWidget-DAiwgS-s.js} +4 -4
- package/dist/{ButtonWidget-CyixmRMa.js.map → ButtonWidget-DAiwgS-s.js.map} +1 -1
- package/dist/{CanvasWidget-BlM9VhEb.js → CanvasWidget-CBiHxOuV.js} +2 -2
- package/dist/{CanvasWidget-BlM9VhEb.js.map → CanvasWidget-CBiHxOuV.js.map} +1 -1
- package/dist/{CanvasWidget-B8iqIUJ_.cjs → CanvasWidget-DiECVC34.cjs} +2 -2
- package/dist/{CanvasWidget-B8iqIUJ_.cjs.map → CanvasWidget-DiECVC34.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-DcoLJfNd.js → CanvasdotWidget-B_iTeu6J.js} +2 -2
- package/dist/{CanvasdotWidget-DcoLJfNd.js.map → CanvasdotWidget-B_iTeu6J.js.map} +1 -1
- package/dist/{CanvasdotWidget-CAXR5Ugc.cjs → CanvasdotWidget-BhIOCwWs.cjs} +2 -2
- package/dist/{CanvasdotWidget-CAXR5Ugc.cjs.map → CanvasdotWidget-BhIOCwWs.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-BOa0--hu.js → CanvasimageWidget-DPME18WO.js} +3 -3
- package/dist/{CanvasimageWidget-BOa0--hu.js.map → CanvasimageWidget-DPME18WO.js.map} +1 -1
- package/dist/{CanvasimageWidget-DQW5IGWY.cjs → CanvasimageWidget-JyaV_zo0.cjs} +2 -2
- package/dist/{CanvasimageWidget-DQW5IGWY.cjs.map → CanvasimageWidget-JyaV_zo0.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-CAnfTNIH.js → CanvasimagevalueWidget-Cvjd5N_d.js} +3 -3
- package/dist/{CanvasimagevalueWidget-CAnfTNIH.js.map → CanvasimagevalueWidget-Cvjd5N_d.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-C8PAOXth.cjs → CanvasimagevalueWidget-YppD9bAM.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-C8PAOXth.cjs.map → CanvasimagevalueWidget-YppD9bAM.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-B_qS8Spc.cjs → CanvaslabelWidget-BurnvwNF.cjs} +2 -2
- package/dist/{CanvaslabelWidget-B_qS8Spc.cjs.map → CanvaslabelWidget-BurnvwNF.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-VhSU0ghh.js → CanvaslabelWidget-DV9TSYqo.js} +2 -2
- package/dist/{CanvaslabelWidget-VhSU0ghh.js.map → CanvaslabelWidget-DV9TSYqo.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-BSEbDdBo.cjs → CanvaslabelvalueWidget-CXf4EBIq.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-BSEbDdBo.cjs.map → CanvaslabelvalueWidget-CXf4EBIq.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-DLoJuMEa.js → CanvaslabelvalueWidget-CZEuRFgE.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-DLoJuMEa.js.map → CanvaslabelvalueWidget-CZEuRFgE.js.map} +1 -1
- package/dist/{CanvaslineWidget-evoYrcu3.cjs → CanvaslineWidget-7y1RriKp.cjs} +2 -2
- package/dist/{CanvaslineWidget-evoYrcu3.cjs.map → CanvaslineWidget-7y1RriKp.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-COWhdPmg.js → CanvaslineWidget-DX3NwYIu.js} +2 -2
- package/dist/{CanvaslineWidget-COWhdPmg.js.map → CanvaslineWidget-DX3NwYIu.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-RhSLERSp.cjs → CanvaslinevalueWidget-W3GVUrRe.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-RhSLERSp.cjs.map → CanvaslinevalueWidget-W3GVUrRe.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-B2RUoEiO.js → CanvaslinevalueWidget-zT2i95O2.js} +2 -2
- package/dist/{CanvaslinevalueWidget-B2RUoEiO.js.map → CanvaslinevalueWidget-zT2i95O2.js.map} +1 -1
- package/dist/{CheckbuttonWidget-mMOQENwY.js → CheckbuttonWidget-D1Oq1A1Y.js} +2 -2
- package/dist/{CheckbuttonWidget-mMOQENwY.js.map → CheckbuttonWidget-D1Oq1A1Y.js.map} +1 -1
- package/dist/{CheckbuttonWidget-D2KHchsA.cjs → CheckbuttonWidget-DbjfhJJG.cjs} +2 -2
- package/dist/{CheckbuttonWidget-D2KHchsA.cjs.map → CheckbuttonWidget-DbjfhJJG.cjs.map} +1 -1
- package/dist/{ClassificationBanners-CKzacoSH.cjs → ClassificationBanners-HkU0WpTb.cjs} +2 -2
- package/dist/{ClassificationBanners-CKzacoSH.cjs.map → ClassificationBanners-HkU0WpTb.cjs.map} +1 -1
- package/dist/{ClassificationBanners-CnKda5CL.js → ClassificationBanners-htrLOcBR.js} +2 -2
- package/dist/{ClassificationBanners-CnKda5CL.js.map → ClassificationBanners-htrLOcBR.js.map} +1 -1
- package/dist/{ComboboxWidget-CuO75LNL.cjs → ComboboxWidget-C9xkCgtV.cjs} +2 -2
- package/dist/{ComboboxWidget-CuO75LNL.cjs.map → ComboboxWidget-C9xkCgtV.cjs.map} +1 -1
- package/dist/{ComboboxWidget-BGuSLu81.js → ComboboxWidget-CaOeC7ES.js} +2 -2
- package/dist/{ComboboxWidget-BGuSLu81.js.map → ComboboxWidget-CaOeC7ES.js.map} +1 -1
- package/dist/{CriticalCmdDialog-DqmsE7es.js → CriticalCmdDialog-Bpfv2I03.js} +2 -2
- package/dist/{CriticalCmdDialog-DqmsE7es.js.map → CriticalCmdDialog-Bpfv2I03.js.map} +1 -1
- package/dist/{CriticalCmdDialog-CW49WCHL.cjs → CriticalCmdDialog-Civ8H5RY.cjs} +2 -2
- package/dist/{CriticalCmdDialog-CW49WCHL.cjs.map → CriticalCmdDialog-Civ8H5RY.cjs.map} +1 -1
- package/dist/{DateWidget-DYTNL9Nt.js → DateWidget-DHegSO3F.js} +2 -2
- package/dist/{DateWidget-DYTNL9Nt.js.map → DateWidget-DHegSO3F.js.map} +1 -1
- package/dist/{DateWidget-CC63S2BH.cjs → DateWidget-Dbzn8FSm.cjs} +2 -2
- package/dist/{DateWidget-CC63S2BH.cjs.map → DateWidget-Dbzn8FSm.cjs.map} +1 -1
- package/dist/{DetailsDialog-Bnj0flUv.js → DetailsDialog-B9IRpYsU.js} +3 -3
- package/dist/{DetailsDialog-Bnj0flUv.js.map → DetailsDialog-B9IRpYsU.js.map} +1 -1
- package/dist/{DetailsDialog-DW8hRSS6.cjs → DetailsDialog-CsJHiTI3.cjs} +2 -2
- package/dist/{DetailsDialog-DW8hRSS6.cjs.map → DetailsDialog-CsJHiTI3.cjs.map} +1 -1
- package/dist/{EventListDialog-CXiEoYXY.cjs → EventListDialog-B1jwt-28.cjs} +2 -2
- package/dist/{EventListDialog-CXiEoYXY.cjs.map → EventListDialog-B1jwt-28.cjs.map} +1 -1
- package/dist/{EventListDialog-BV9m-oEq.js → EventListDialog-C3acqjWI.js} +4 -4
- package/dist/{EventListDialog-BV9m-oEq.js.map → EventListDialog-C3acqjWI.js.map} +1 -1
- package/dist/{FilechecksumWidget-CCD4OHUJ.cjs → FilechecksumWidget-BC_GBgVt.cjs} +2 -2
- package/dist/{FilechecksumWidget-CCD4OHUJ.cjs.map → FilechecksumWidget-BC_GBgVt.cjs.map} +1 -1
- package/dist/{FilechecksumWidget-Cxu-88vM.js → FilechecksumWidget-BlZ_YlAn.js} +3 -3
- package/dist/{FilechecksumWidget-Cxu-88vM.js.map → FilechecksumWidget-BlZ_YlAn.js.map} +1 -1
- package/dist/{FiledisplayWidget-BNCoMpUN.cjs → FiledisplayWidget-B9YTU5-X.cjs} +2 -2
- package/dist/{FiledisplayWidget-BNCoMpUN.cjs.map → FiledisplayWidget-B9YTU5-X.cjs.map} +1 -1
- package/dist/{FiledisplayWidget-UimFPng3.js → FiledisplayWidget-TJ2RL43-.js} +3 -3
- package/dist/{FiledisplayWidget-UimFPng3.js.map → FiledisplayWidget-TJ2RL43-.js.map} +1 -1
- package/dist/{FormatvalueWidget-Ct3waryv.js → FormatvalueWidget-0S6n-WEr.js} +3 -3
- package/dist/{FormatvalueWidget-Ct3waryv.js.map → FormatvalueWidget-0S6n-WEr.js.map} +1 -1
- package/dist/{FormatvalueWidget-kOhazTdt.cjs → FormatvalueWidget-Cckikrms.cjs} +2 -2
- package/dist/{FormatvalueWidget-kOhazTdt.cjs.map → FormatvalueWidget-Cckikrms.cjs.map} +1 -1
- package/dist/{Graph-Dy2y26su.js → Graph-CXuxaEKD.js} +10 -6
- package/dist/Graph-CXuxaEKD.js.map +1 -0
- package/dist/Graph-Du90yHUZ.cjs +2 -0
- package/dist/Graph-Du90yHUZ.cjs.map +1 -0
- package/dist/{GraphWidget-CuG4jeoM.js → GraphWidget-CGjfTMGG.js} +2 -2
- package/dist/{GraphWidget-CuG4jeoM.js.map → GraphWidget-CGjfTMGG.js.map} +1 -1
- package/dist/{GraphWidget-BuLKrARk.cjs → GraphWidget-DT8M_V6q.cjs} +2 -2
- package/dist/{GraphWidget-BuLKrARk.cjs.map → GraphWidget-DT8M_V6q.cjs.map} +1 -1
- package/dist/{HorizontalWidget-C1K91iwc.js → HorizontalWidget-Crp4JtGX.js} +2 -2
- package/dist/{HorizontalWidget-C1K91iwc.js.map → HorizontalWidget-Crp4JtGX.js.map} +1 -1
- package/dist/{HorizontalWidget-Cg736bCD.cjs → HorizontalWidget-nZbc213j.cjs} +2 -2
- package/dist/{HorizontalWidget-Cg736bCD.cjs.map → HorizontalWidget-nZbc213j.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-Bx1ISrig.cjs → HorizontalboxWidget-DIwL3yc_.cjs} +2 -2
- package/dist/{HorizontalboxWidget-Bx1ISrig.cjs.map → HorizontalboxWidget-DIwL3yc_.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-Db8knddI.js → HorizontalboxWidget-DlM7Hoxy.js} +5 -5
- package/dist/{HorizontalboxWidget-Db8knddI.js.map → HorizontalboxWidget-DlM7Hoxy.js.map} +1 -1
- package/dist/{HorizontallineWidget-JtdiNy0r.js → HorizontallineWidget-HCZU5Dm-.js} +2 -2
- package/dist/{HorizontallineWidget-JtdiNy0r.js.map → HorizontallineWidget-HCZU5Dm-.js.map} +1 -1
- package/dist/{HorizontallineWidget-BRrshiSM.cjs → HorizontallineWidget-Q0F2UhZ7.cjs} +2 -2
- package/dist/{HorizontallineWidget-BRrshiSM.cjs.map → HorizontallineWidget-Q0F2UhZ7.cjs.map} +1 -1
- package/dist/{IframeWidget-CTwNNY_Y.cjs → IframeWidget-CRf6VJjw.cjs} +2 -2
- package/dist/{IframeWidget-CTwNNY_Y.cjs.map → IframeWidget-CRf6VJjw.cjs.map} +1 -1
- package/dist/{IframeWidget-BIlFhl5W.js → IframeWidget-D3Mqvq2p.js} +2 -2
- package/dist/{IframeWidget-BIlFhl5W.js.map → IframeWidget-D3Mqvq2p.js.map} +1 -1
- package/dist/{ImageLoader-maE53iG0.cjs → ImageLoader-B2HT3zXB.cjs} +2 -2
- package/dist/{ImageLoader-maE53iG0.cjs.map → ImageLoader-B2HT3zXB.cjs.map} +1 -1
- package/dist/{ImageLoader-Wgn0HO-B.js → ImageLoader-BbPJF9nD.js} +2 -2
- package/dist/{ImageLoader-Wgn0HO-B.js.map → ImageLoader-BbPJF9nD.js.map} +1 -1
- package/dist/{ImageviewerWidget-CsoNQsVN.js → ImageviewerWidget-Bc8A3xX7.js} +2 -2
- package/dist/{ImageviewerWidget-CsoNQsVN.js.map → ImageviewerWidget-Bc8A3xX7.js.map} +1 -1
- package/dist/{ImageviewerWidget-CNYu5y1M.cjs → ImageviewerWidget-DnRQKTas.cjs} +2 -2
- package/dist/{ImageviewerWidget-CNYu5y1M.cjs.map → ImageviewerWidget-DnRQKTas.cjs.map} +1 -1
- package/dist/{InterfacesTab-D1d6fYPx.js → InterfacesTab-BrLlsu3d.js} +3 -3
- package/dist/{InterfacesTab-D1d6fYPx.js.map → InterfacesTab-BrLlsu3d.js.map} +1 -1
- package/dist/{InterfacesTab-DN4Bx0jX.cjs → InterfacesTab-DE3eUJDd.cjs} +2 -2
- package/dist/{InterfacesTab-DN4Bx0jX.cjs.map → InterfacesTab-DE3eUJDd.cjs.map} +1 -1
- package/dist/{LabelWidget-Ba4f7v6-.js → LabelWidget-BV6758n5.js} +2 -2
- package/dist/{LabelWidget-Ba4f7v6-.js.map → LabelWidget-BV6758n5.js.map} +1 -1
- package/dist/{LabelWidget-Mot3JRMt.cjs → LabelWidget-C2iJw-f3.cjs} +2 -2
- package/dist/{LabelWidget-Mot3JRMt.cjs.map → LabelWidget-C2iJw-f3.cjs.map} +1 -1
- package/dist/{LabelledWidget-Cy_kY9Dr.js → LabelledWidget-Dk7399HX.js} +4 -4
- package/dist/{LabelledWidget-Cy_kY9Dr.js.map → LabelledWidget-Dk7399HX.js.map} +1 -1
- package/dist/{LabelledWidget-BUM4VRKk.cjs → LabelledWidget-DzVtmRSk.cjs} +2 -2
- package/dist/{LabelledWidget-BUM4VRKk.cjs.map → LabelledWidget-DzVtmRSk.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-B7m4u1_T.js → LabelprogressbarWidget-B9ZQxLEG.js} +4 -4
- package/dist/{LabelprogressbarWidget-B7m4u1_T.js.map → LabelprogressbarWidget-B9ZQxLEG.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-Ddv8wOiy.cjs → LabelprogressbarWidget-Bbj0GqOS.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-Ddv8wOiy.cjs.map → LabelprogressbarWidget-Bbj0GqOS.cjs.map} +1 -1
- package/dist/{LabelsparklineWidget-CAwxzcl1.js → LabelsparklineWidget-CwFa7EJr.js} +4 -4
- package/dist/{LabelsparklineWidget-CAwxzcl1.js.map → LabelsparklineWidget-CwFa7EJr.js.map} +1 -1
- package/dist/{LabelsparklineWidget-BdPL_Qy6.cjs → LabelsparklineWidget-GIhUx8we.cjs} +2 -2
- package/dist/{LabelsparklineWidget-BdPL_Qy6.cjs.map → LabelsparklineWidget-GIhUx8we.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-dJ_MMnTe.cjs → LabelvalueWidget-B-THrkfJ.cjs} +2 -2
- package/dist/{LabelvalueWidget-dJ_MMnTe.cjs.map → LabelvalueWidget-B-THrkfJ.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-DfkCk32l.js → LabelvalueWidget-DcOqiZea.js} +4 -4
- package/dist/{LabelvalueWidget-DfkCk32l.js.map → LabelvalueWidget-DcOqiZea.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-B1uUJbqG.cjs → LabelvaluedescWidget-CeOIs05W.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-B1uUJbqG.cjs.map → LabelvaluedescWidget-CeOIs05W.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-Dmff-Qnm.js → LabelvaluedescWidget-bzML7aS7.js} +5 -5
- package/dist/{LabelvaluedescWidget-Dmff-Qnm.js.map → LabelvaluedescWidget-bzML7aS7.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-CBORsu08.cjs → LabelvaluelimitsbarWidget-DxMmYKHP.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-CBORsu08.cjs.map → LabelvaluelimitsbarWidget-DxMmYKHP.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-QEB4zfXJ.js → LabelvaluelimitsbarWidget-GCgFxc-I.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-QEB4zfXJ.js.map → LabelvaluelimitsbarWidget-GCgFxc-I.js.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-xsju-uwF.cjs → LabelvaluelimitscolumnWidget-BTphsvo2.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-xsju-uwF.cjs.map → LabelvaluelimitscolumnWidget-BTphsvo2.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-DxEW7ft1.js → LabelvaluelimitscolumnWidget-DuRuNm4g.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-DxEW7ft1.js.map → LabelvaluelimitscolumnWidget-DuRuNm4g.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-Dc_4Eh2P.js → LabelvaluerangebarWidget-C32gfNLA.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-Dc_4Eh2P.js.map → LabelvaluerangebarWidget-C32gfNLA.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-BxKS0aXY.cjs → LabelvaluerangebarWidget-D66_K_nl.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-BxKS0aXY.cjs.map → LabelvaluerangebarWidget-D66_K_nl.cjs.map} +1 -1
- package/dist/{Layout-VFnL3qx_.js → Layout-CYQt4P78.js} +2 -2
- package/dist/{Layout-VFnL3qx_.js.map → Layout-CYQt4P78.js.map} +1 -1
- package/dist/{Layout-CevW0J6c.cjs → Layout-D_xqJarz.cjs} +2 -2
- package/dist/{Layout-CevW0J6c.cjs.map → Layout-D_xqJarz.cjs.map} +1 -1
- package/dist/{LedWidget-D_mYilLS.cjs → LedWidget-DQDy7HkU.cjs} +2 -2
- package/dist/{LedWidget-D_mYilLS.cjs.map → LedWidget-DQDy7HkU.cjs.map} +1 -1
- package/dist/{LedWidget-BbBMEqh6.js → LedWidget-DcN4UWc9.js} +4 -4
- package/dist/{LedWidget-BbBMEqh6.js.map → LedWidget-DcN4UWc9.js.map} +1 -1
- package/dist/{LimitsBar-Cfi6zz4T.cjs → LimitsBar-B1P8gnfK.cjs} +2 -2
- package/dist/{LimitsBar-Cfi6zz4T.cjs.map → LimitsBar-B1P8gnfK.cjs.map} +1 -1
- package/dist/{LimitsBar-CRNf8kCM.js → LimitsBar-CewifD-8.js} +2 -2
- package/dist/{LimitsBar-CRNf8kCM.js.map → LimitsBar-CewifD-8.js.map} +1 -1
- package/dist/{LimitsbarWidget-Bw_M1QY6.cjs → LimitsbarWidget-DXTfZFKF.cjs} +2 -2
- package/dist/{LimitsbarWidget-Bw_M1QY6.cjs.map → LimitsbarWidget-DXTfZFKF.cjs.map} +1 -1
- package/dist/{LimitsbarWidget-BID8h8Fz.js → LimitsbarWidget-Dy-IqgZj.js} +3 -3
- package/dist/{LimitsbarWidget-BID8h8Fz.js.map → LimitsbarWidget-Dy-IqgZj.js.map} +1 -1
- package/dist/{LimitscolorWidget-Bm660cL9.js → LimitscolorWidget-2eLprLL7.js} +2 -2
- package/dist/{LimitscolorWidget-Bm660cL9.js.map → LimitscolorWidget-2eLprLL7.js.map} +1 -1
- package/dist/{LimitscolorWidget-CuiubDPH.cjs → LimitscolorWidget-C0f7Qud4.cjs} +2 -2
- package/dist/{LimitscolorWidget-CuiubDPH.cjs.map → LimitscolorWidget-C0f7Qud4.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-C_jzHXdC.js → LimitscolumnWidget-DlPcKW-r.js} +2 -2
- package/dist/{LimitscolumnWidget-C_jzHXdC.js.map → LimitscolumnWidget-DlPcKW-r.js.map} +1 -1
- package/dist/{LimitscolumnWidget-BuwnurP3.cjs → LimitscolumnWidget-DxaM5RDH.cjs} +2 -2
- package/dist/{LimitscolumnWidget-BuwnurP3.cjs.map → LimitscolumnWidget-DxaM5RDH.cjs.map} +1 -1
- package/dist/{LinegraphWidget-Cgd3gSk8.cjs → LinegraphWidget-8TvRUoqu.cjs} +2 -2
- package/dist/{LinegraphWidget-Cgd3gSk8.cjs.map → LinegraphWidget-8TvRUoqu.cjs.map} +1 -1
- package/dist/{LinegraphWidget-Pte5LxmO.js → LinegraphWidget-BFXYdx0Q.js} +4 -4
- package/dist/{LinegraphWidget-Pte5LxmO.js.map → LinegraphWidget-BFXYdx0Q.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-j-3LkoxS.js → MatrixbycolumnsWidget-BvbEs_NU.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-j-3LkoxS.js.map → MatrixbycolumnsWidget-BvbEs_NU.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-tRuEujha.cjs → MatrixbycolumnsWidget-k0GfBzu8.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-tRuEujha.cjs.map → MatrixbycolumnsWidget-k0GfBzu8.cjs.map} +1 -1
- package/dist/{MicroservicesTab-BhbOC0nm.cjs → MicroservicesTab-B8gVZ9wr.cjs} +2 -2
- package/dist/{MicroservicesTab-BhbOC0nm.cjs.map → MicroservicesTab-B8gVZ9wr.cjs.map} +1 -1
- package/dist/{MicroservicesTab-BFNyiTuf.js → MicroservicesTab-C8XPgBnj.js} +3 -3
- package/dist/{MicroservicesTab-BFNyiTuf.js.map → MicroservicesTab-C8XPgBnj.js.map} +1 -1
- package/dist/{OpenC3TimePicker-C9CBFp3d.js → OpenC3TimePicker-CFSMcJ1F.js} +60 -46
- package/dist/OpenC3TimePicker-CFSMcJ1F.js.map +1 -0
- package/dist/OpenC3TimePicker-DM8EnTy5.cjs +2 -0
- package/dist/OpenC3TimePicker-DM8EnTy5.cjs.map +1 -0
- package/dist/{Openc3Screen-BxuqrFPG.js → Openc3Screen-DG98sMaI.js} +4 -3
- package/dist/Openc3Screen-DG98sMaI.js.map +1 -0
- package/dist/{Openc3Screen-DuzCiS5h.cjs → Openc3Screen-MVNRGjbs.cjs} +3 -3
- package/dist/Openc3Screen-MVNRGjbs.cjs.map +1 -0
- package/dist/{OutputDialog-Dk3S2--J.js → OutputDialog-8nKOJUMU.js} +2 -2
- package/dist/{OutputDialog-Dk3S2--J.js.map → OutputDialog-8nKOJUMU.js.map} +1 -1
- package/dist/{OutputDialog-C__OuTUo.cjs → OutputDialog-BHDdBPLX.cjs} +2 -2
- package/dist/{OutputDialog-C__OuTUo.cjs.map → OutputDialog-BHDdBPLX.cjs.map} +1 -1
- package/dist/{PackagesTab-2UMA9TLY.js → PackagesTab-CAa7ZnYV.js} +3 -3
- package/dist/{PackagesTab-2UMA9TLY.js.map → PackagesTab-CAa7ZnYV.js.map} +1 -1
- package/dist/{PackagesTab-Ba4vRiFU.cjs → PackagesTab-CvJayoC1.cjs} +2 -2
- package/dist/{PackagesTab-Ba4vRiFU.cjs.map → PackagesTab-CvJayoC1.cjs.map} +1 -1
- package/dist/{PluginsTab-BSm5NCBn.cjs → PluginsTab-CDopyCAG.cjs} +2 -2
- package/dist/{PluginsTab-BSm5NCBn.cjs.map → PluginsTab-CDopyCAG.cjs.map} +1 -1
- package/dist/{PluginsTab-CS8RLv56.js → PluginsTab-Dqe3QG7v.js} +4 -4
- package/dist/{PluginsTab-CS8RLv56.js.map → PluginsTab-Dqe3QG7v.js.map} +1 -1
- package/dist/{ProgressbarWidget-D3jeqQZi.cjs → ProgressbarWidget-CAtBs6-s.cjs} +2 -2
- package/dist/{ProgressbarWidget-D3jeqQZi.cjs.map → ProgressbarWidget-CAtBs6-s.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-DB4g3d3i.js → ProgressbarWidget-CYQzHmXv.js} +2 -2
- package/dist/{ProgressbarWidget-DB4g3d3i.js.map → ProgressbarWidget-CYQzHmXv.js.map} +1 -1
- package/dist/{RadiobuttonWidget-CbLLNEeT.js → RadiobuttonWidget-JJC2cnc7.js} +2 -2
- package/dist/{RadiobuttonWidget-CbLLNEeT.js.map → RadiobuttonWidget-JJC2cnc7.js.map} +1 -1
- package/dist/{RadiobuttonWidget-DpzokVRc.cjs → RadiobuttonWidget-OsLLONa3.cjs} +2 -2
- package/dist/{RadiobuttonWidget-DpzokVRc.cjs.map → RadiobuttonWidget-OsLLONa3.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-DdTKUKGT.js → RadiogroupWidget-B-b7D4f4.js} +2 -2
- package/dist/{RadiogroupWidget-DdTKUKGT.js.map → RadiogroupWidget-B-b7D4f4.js.map} +1 -1
- package/dist/{RadiogroupWidget-C8M7BvLR.cjs → RadiogroupWidget-C1gQYVgm.cjs} +2 -2
- package/dist/{RadiogroupWidget-C8M7BvLR.cjs.map → RadiogroupWidget-C1gQYVgm.cjs.map} +1 -1
- package/dist/{RangebarWidget-YWSjQavR.cjs → RangebarWidget-BfF7PvI6.cjs} +2 -2
- package/dist/{RangebarWidget-YWSjQavR.cjs.map → RangebarWidget-BfF7PvI6.cjs.map} +1 -1
- package/dist/{RangebarWidget-DvegNZg3.js → RangebarWidget-nD6qbLmB.js} +2 -2
- package/dist/{RangebarWidget-DvegNZg3.js.map → RangebarWidget-nD6qbLmB.js.map} +1 -1
- package/dist/{RedisTab-Bs8368J6.cjs → RedisTab-BdXEE0MY.cjs} +2 -2
- package/dist/{RedisTab-Bs8368J6.cjs.map → RedisTab-BdXEE0MY.cjs.map} +1 -1
- package/dist/{RedisTab-C2dYwa7Q.js → RedisTab-DCV2ZWhh.js} +2 -2
- package/dist/{RedisTab-C2dYwa7Q.js.map → RedisTab-DCV2ZWhh.js.map} +1 -1
- package/dist/{RollupWidget-jZjZhJpb.cjs → RollupWidget-AdgwMuAF.cjs} +2 -2
- package/dist/{RollupWidget-jZjZhJpb.cjs.map → RollupWidget-AdgwMuAF.cjs.map} +1 -1
- package/dist/{RollupWidget-BfDjRI_8.js → RollupWidget-D80cEXSI.js} +2 -2
- package/dist/{RollupWidget-BfDjRI_8.js.map → RollupWidget-D80cEXSI.js.map} +1 -1
- package/dist/{RoutersTab-BDKIQfPD.js → RoutersTab-4hmbIlHw.js} +3 -3
- package/dist/{RoutersTab-BDKIQfPD.js.map → RoutersTab-4hmbIlHw.js.map} +1 -1
- package/dist/{RoutersTab-DtHCBbXB.cjs → RoutersTab-B7MPNa6g.cjs} +2 -2
- package/dist/{RoutersTab-DtHCBbXB.cjs.map → RoutersTab-B7MPNa6g.cjs.map} +1 -1
- package/dist/{ScriptChooser-QTzU0krS.cjs → ScriptChooser-CcU08Gfu.cjs} +2 -2
- package/dist/{ScriptChooser-QTzU0krS.cjs.map → ScriptChooser-CcU08Gfu.cjs.map} +1 -1
- package/dist/{ScriptChooser-D12U4b0f.js → ScriptChooser-DeAgLzpG.js} +4 -4
- package/dist/{ScriptChooser-D12U4b0f.js.map → ScriptChooser-DeAgLzpG.js.map} +1 -1
- package/dist/{ScrollwindowWidget-BQU2wUnY.cjs → ScrollwindowWidget-CWxbtwVI.cjs} +2 -2
- package/dist/{ScrollwindowWidget-BQU2wUnY.cjs.map → ScrollwindowWidget-CWxbtwVI.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-BdRjQVVF.js → ScrollwindowWidget-Cun3Vh6z.js} +2 -2
- package/dist/{ScrollwindowWidget-BdRjQVVF.js.map → ScrollwindowWidget-Cun3Vh6z.js.map} +1 -1
- package/dist/{SecretsTab-9350W-Wd.js → SecretsTab-BjkkkzJa.js} +2 -2
- package/dist/{SecretsTab-9350W-Wd.js.map → SecretsTab-BjkkkzJa.js.map} +1 -1
- package/dist/{SecretsTab-CoEChNXs.cjs → SecretsTab-ms4xbsap.cjs} +2 -2
- package/dist/{SecretsTab-CoEChNXs.cjs.map → SecretsTab-ms4xbsap.cjs.map} +1 -1
- package/dist/{SettingsTab-CPk_hNJp.js → SettingsTab-3wbEzcjJ.js} +482 -428
- package/dist/SettingsTab-3wbEzcjJ.js.map +1 -0
- package/dist/SettingsTab-to-vPAkD.cjs +6 -0
- package/dist/SettingsTab-to-vPAkD.cjs.map +1 -0
- package/dist/{SignalWidget-BPiNqq8R.js → SignalWidget-CYsoFQEA.js} +2 -2
- package/dist/{SignalWidget-BPiNqq8R.js.map → SignalWidget-CYsoFQEA.js.map} +1 -1
- package/dist/{SignalWidget-w0jzLGVV.cjs → SignalWidget-lanCUNlJ.cjs} +2 -2
- package/dist/{SignalWidget-w0jzLGVV.cjs.map → SignalWidget-lanCUNlJ.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-3uasUaXN.js → SimpleTextDialog-BcQPD1Ea.js} +2 -2
- package/dist/{SimpleTextDialog-3uasUaXN.js.map → SimpleTextDialog-BcQPD1Ea.js.map} +1 -1
- package/dist/{SimpleTextDialog-BpyUPxqT.cjs → SimpleTextDialog-nBmlZMaP.cjs} +2 -2
- package/dist/{SimpleTextDialog-BpyUPxqT.cjs.map → SimpleTextDialog-nBmlZMaP.cjs.map} +1 -1
- package/dist/{SpacerWidget-CZGtLi7D.js → SpacerWidget-CrheUKPo.js} +2 -2
- package/dist/{SpacerWidget-CZGtLi7D.js.map → SpacerWidget-CrheUKPo.js.map} +1 -1
- package/dist/{SpacerWidget-D9BpT5w5.cjs → SpacerWidget-CzPwKWA8.cjs} +2 -2
- package/dist/{SpacerWidget-D9BpT5w5.cjs.map → SpacerWidget-CzPwKWA8.cjs.map} +1 -1
- package/dist/{SparklineWidget-CjjqaZtm.js → SparklineWidget-BxBx5KIx.js} +4 -4
- package/dist/{SparklineWidget-CjjqaZtm.js.map → SparklineWidget-BxBx5KIx.js.map} +1 -1
- package/dist/{SparklineWidget-DXYD2dKC.cjs → SparklineWidget-DRixjXXr.cjs} +2 -2
- package/dist/{SparklineWidget-DXYD2dKC.cjs.map → SparklineWidget-DRixjXXr.cjs.map} +1 -1
- package/dist/{TabbookWidget-Dy8N2hq1.js → TabbookWidget-Bznl4HVt.js} +2 -2
- package/dist/{TabbookWidget-Dy8N2hq1.js.map → TabbookWidget-Bznl4HVt.js.map} +1 -1
- package/dist/{TabbookWidget-DnCX6_eY.cjs → TabbookWidget-DgNTKIjr.cjs} +2 -2
- package/dist/{TabbookWidget-DnCX6_eY.cjs.map → TabbookWidget-DgNTKIjr.cjs.map} +1 -1
- package/dist/{TargetPacketItemChooser-B3riNx-5.cjs → TargetPacketItemChooser-CW91CLJq.cjs} +2 -2
- package/dist/{TargetPacketItemChooser-B3riNx-5.cjs.map → TargetPacketItemChooser-CW91CLJq.cjs.map} +1 -1
- package/dist/{TargetPacketItemChooser--rzU8ThE.js → TargetPacketItemChooser-UsuVtlF-.js} +2 -2
- package/dist/{TargetPacketItemChooser--rzU8ThE.js.map → TargetPacketItemChooser-UsuVtlF-.js.map} +1 -1
- package/dist/{TargetsTab-Dqvu7l_c.cjs → TargetsTab-BwzGasJJ.cjs} +2 -2
- package/dist/{TargetsTab-Dqvu7l_c.cjs.map → TargetsTab-BwzGasJJ.cjs.map} +1 -1
- package/dist/{TargetsTab-DJBCaflz.js → TargetsTab-D2BGCJ0P.js} +3 -3
- package/dist/{TargetsTab-DJBCaflz.js.map → TargetsTab-D2BGCJ0P.js.map} +1 -1
- package/dist/{TextboxWidget-DHHcXTpa.cjs → TextboxWidget-B_oY4yDR.cjs} +2 -2
- package/dist/{TextboxWidget-DHHcXTpa.cjs.map → TextboxWidget-B_oY4yDR.cjs.map} +1 -1
- package/dist/{TextboxWidget-BSQPOr-R.js → TextboxWidget-CCjkSFMU.js} +4 -4
- package/dist/{TextboxWidget-BSQPOr-R.js.map → TextboxWidget-CCjkSFMU.js.map} +1 -1
- package/dist/{TextfieldWidget-BbNHrjZB.cjs → TextfieldWidget-Ct5E638-.cjs} +2 -2
- package/dist/{TextfieldWidget-BbNHrjZB.cjs.map → TextfieldWidget-Ct5E638-.cjs.map} +1 -1
- package/dist/{TextfieldWidget-CTGnjpuY.js → TextfieldWidget-D6vtrFO9.js} +2 -2
- package/dist/{TextfieldWidget-CTGnjpuY.js.map → TextfieldWidget-D6vtrFO9.js.map} +1 -1
- package/dist/{TimeWidget-B4qqIUWu.js → TimeWidget-Bq_m9VEj.js} +3 -3
- package/dist/{TimeWidget-B4qqIUWu.js.map → TimeWidget-Bq_m9VEj.js.map} +1 -1
- package/dist/{TimeWidget-BhyYijAr.cjs → TimeWidget-ByQV-v0H.cjs} +2 -2
- package/dist/{TimeWidget-BhyYijAr.cjs.map → TimeWidget-ByQV-v0H.cjs.map} +1 -1
- package/dist/{TitleWidget-OwWpy1Jl.js → TitleWidget-CGKBIIjU.js} +2 -2
- package/dist/{TitleWidget-OwWpy1Jl.js.map → TitleWidget-CGKBIIjU.js.map} +1 -1
- package/dist/{TitleWidget-Dagdh8DQ.cjs → TitleWidget-CfkxN1VW.cjs} +2 -2
- package/dist/{TitleWidget-Dagdh8DQ.cjs.map → TitleWidget-CfkxN1VW.cjs.map} +1 -1
- package/dist/{ToolsTab-BddBK1tK.js → ToolsTab-B9oDk5JF.js} +3 -3
- package/dist/{ToolsTab-BddBK1tK.js.map → ToolsTab-B9oDk5JF.js.map} +1 -1
- package/dist/{ToolsTab-BxrYmpF4.cjs → ToolsTab-DUDJjlYF.cjs} +2 -2
- package/dist/{ToolsTab-BxrYmpF4.cjs.map → ToolsTab-DUDJjlYF.cjs.map} +1 -1
- package/dist/{TopBar-D6zYf4Ed.cjs → TopBar-BjOuytzL.cjs} +2 -2
- package/dist/{TopBar-D6zYf4Ed.cjs.map → TopBar-BjOuytzL.cjs.map} +1 -1
- package/dist/{TopBar-DcfK2Z2G.js → TopBar-Cp-eD08M.js} +2 -2
- package/dist/{TopBar-DcfK2Z2G.js.map → TopBar-Cp-eD08M.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-DHOqnrRc.cjs → UpgradeToEnterpriseDialog-qZRe19Fu.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-DHOqnrRc.cjs.map → UpgradeToEnterpriseDialog-qZRe19Fu.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-Cj0L60bW.js → UpgradeToEnterpriseDialog-vJ0OQVxn.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-Cj0L60bW.js.map → UpgradeToEnterpriseDialog-vJ0OQVxn.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-COA1HwFc.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-DMwcaglo.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-COA1HwFc.cjs.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-DMwcaglo.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-8uBNo_8r.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-gWC4BUC8.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-8uBNo_8r.js.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-gWC4BUC8.js.map} +1 -1
- package/dist/{VWidget-B8DTwMbX.js → VWidget-DaN-EoJP.js} +3 -3
- package/dist/{VWidget-B8DTwMbX.js.map → VWidget-DaN-EoJP.js.map} +1 -1
- package/dist/{VWidget-od6gU6UT.cjs → VWidget-ZNfIJ3jY.cjs} +2 -2
- package/dist/{VWidget-od6gU6UT.cjs.map → VWidget-ZNfIJ3jY.cjs.map} +1 -1
- package/dist/{ValueWidget-9DW9QZ_F.cjs → ValueWidget-13BmCi-I.cjs} +2 -2
- package/dist/{ValueWidget-9DW9QZ_F.cjs.map → ValueWidget-13BmCi-I.cjs.map} +1 -1
- package/dist/{ValueWidget-CD-gsoJa.js → ValueWidget-Dj4GYuSK.js} +4 -4
- package/dist/{ValueWidget-CD-gsoJa.js.map → ValueWidget-Dj4GYuSK.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-CKqMqplL.js → ValuelimitsbarWidget-B-IXXtXy.js} +4 -4
- package/dist/{ValuelimitsbarWidget-CKqMqplL.js.map → ValuelimitsbarWidget-B-IXXtXy.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-DgP-FRnw.cjs → ValuelimitsbarWidget-DF5QvEDx.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-DgP-FRnw.cjs.map → ValuelimitsbarWidget-DF5QvEDx.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-TbIlfRm8.js → ValuelimitscolumnWidget-B3Xjqz_f.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-TbIlfRm8.js.map → ValuelimitscolumnWidget-B3Xjqz_f.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DWik9H7C.cjs → ValuelimitscolumnWidget-LXAi2ndd.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-DWik9H7C.cjs.map → ValuelimitscolumnWidget-LXAi2ndd.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-CIR3qshL.js → ValuerangebarWidget-Ct_CvpUg.js} +4 -4
- package/dist/{ValuerangebarWidget-CIR3qshL.js.map → ValuerangebarWidget-Ct_CvpUg.js.map} +1 -1
- package/dist/{ValuerangebarWidget-DMPQMn23.cjs → ValuerangebarWidget-DSmTRfls.cjs} +2 -2
- package/dist/{ValuerangebarWidget-DMPQMn23.cjs.map → ValuerangebarWidget-DSmTRfls.cjs.map} +1 -1
- package/dist/{VerticalWidget-DpMgiz2m.js → VerticalWidget-BlEtS5Bs.js} +2 -2
- package/dist/{VerticalWidget-DpMgiz2m.js.map → VerticalWidget-BlEtS5Bs.js.map} +1 -1
- package/dist/{VerticalWidget-BjDRWx1I.cjs → VerticalWidget-D4xAiojs.cjs} +2 -2
- package/dist/{VerticalWidget-BjDRWx1I.cjs.map → VerticalWidget-D4xAiojs.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-DcQvJ13j.cjs → VerticalboxWidget-CDeA9ux8.cjs} +2 -2
- package/dist/{VerticalboxWidget-DcQvJ13j.cjs.map → VerticalboxWidget-CDeA9ux8.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-BznaAPyj.js → VerticalboxWidget-rr_GslBl.js} +5 -5
- package/dist/{VerticalboxWidget-BznaAPyj.js.map → VerticalboxWidget-rr_GslBl.js.map} +1 -1
- package/dist/{Widget-BUhqs-wN.cjs → Widget-BKmR1shJ.cjs} +2 -2
- package/dist/{Widget-BUhqs-wN.cjs.map → Widget-BKmR1shJ.cjs.map} +1 -1
- package/dist/{Widget-E_9ky7hf.js → Widget-DsHcvxJg.js} +2 -2
- package/dist/{Widget-E_9ky7hf.js.map → Widget-DsHcvxJg.js.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +16 -16
- package/dist/{settings-J9UGWG6O.cjs → settings-DgeeD3A4.cjs} +2 -2
- package/dist/{settings-J9UGWG6O.cjs.map → settings-DgeeD3A4.cjs.map} +1 -1
- package/dist/{settings-CjEQxY67.js → settings-RN52DDBd.js} +2 -2
- package/dist/{settings-CjEQxY67.js.map → settings-RN52DDBd.js.map} +1 -1
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.js +12 -12
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.js +3 -3
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +3 -3
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +22 -13
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +64 -64
- package/package.json +2 -2
- package/dist/Graph-BT7YHaLU.cjs +0 -2
- package/dist/Graph-BT7YHaLU.cjs.map +0 -1
- package/dist/Graph-Dy2y26su.js.map +0 -1
- package/dist/OpenC3TimePicker-4kqB_Chf.cjs +0 -2
- package/dist/OpenC3TimePicker-4kqB_Chf.cjs.map +0 -1
- package/dist/OpenC3TimePicker-C9CBFp3d.js.map +0 -1
- package/dist/Openc3Screen-BxuqrFPG.js.map +0 -1
- package/dist/Openc3Screen-DuzCiS5h.cjs.map +0 -1
- package/dist/SettingsTab-CPk_hNJp.js.map +0 -1
- package/dist/SettingsTab-CqYcXYBb.cjs +0 -3
- package/dist/SettingsTab-CqYcXYBb.cjs.map +0 -1
package/dist/tools/admin.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Te=require("../index-D-zO4ghE.cjs"),o=require("vue"),P=require("../CustomIcon-CEc927h0.cjs"),k=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-COA1HwFc.cjs");require("single-spa");const D=require("../TopBar-D6zYf4Ed.cjs"),Ne={props:{modelValue:Boolean},emits:["update:modelValue"],data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const t=/\w+.gem/;return this.response.tree.filter(e=>t.exec(e.path)).map(e=>({name:e.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`}))},getResponse:function(){this.disableSearch=!0,Te.axios.get(this.url).then(t=>{this.response=t.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(t){const e=document.createElement("a");e.href=t.url,e.setAttribute("download",t.name),e.click(),e.remove()}}},$e={class:"pa-3"},De={class:"px-2"},Ie={key:0,class:"mt-4"},Oe={key:1,class:"mt-4"};function Me(t,e,n,l,r,s){const i=o.resolveComponent("v-spacer"),a=o.resolveComponent("v-toolbar"),c=o.resolveComponent("v-row"),u=o.resolveComponent("v-icon"),d=o.resolveComponent("v-btn"),h=o.resolveComponent("v-col"),g=o.resolveComponent("v-list-item-title"),p=o.resolveComponent("v-progress-circular"),f=o.resolveComponent("v-list-item"),L=o.resolveComponent("v-divider"),C=o.resolveComponent("v-card-text"),_=o.resolveComponent("v-card"),w=o.resolveComponent("v-dialog");return o.openBlock(),o.createBlock(w,{modelValue:s.show,"onUpdate:modelValue":e[0]||(e[0]=m=>s.show=m),width:"600"},{default:o.withCtx(()=>[o.createVNode(_,null,{default:o.withCtx(()=>[o.createVNode(a,{height:"24"},{default:o.withCtx(()=>[o.createVNode(i),e[1]||(e[1]=o.createElementVNode("span",null," Download Gems ",-1)),o.createVNode(i)]),_:1}),o.createVNode(C,null,{default:o.withCtx(()=>[o.createElementVNode("div",$e,[o.createVNode(c,{class:"my-2"},{default:o.withCtx(()=>[...e[2]||(e[2]=[o.createTextVNode(" Select a download option ",-1)])]),_:1}),o.createVNode(c,null,{default:o.withCtx(()=>[o.createVNode(h,null,{default:o.withCtx(()=>[o.createElementVNode("div",De,[o.createVNode(d,{block:"","data-test":"searchGithub",color:"primary",disabled:r.disableSearch,onClick:s.searchGithub},{default:o.withCtx(()=>[e[4]||(e[4]=o.createTextVNode(" Github ",-1)),o.createVNode(u,{end:"",theme:"dark"},{default:o.withCtx(()=>[...e[3]||(e[3]=[o.createTextVNode(" mdi-github ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),o.createVNode(c,{class:"mt-5"},{default:o.withCtx(()=>[...e[5]||(e[5]=[o.createTextVNode(" Community Gems ",-1)])]),_:1}),s.listData.length<1?(o.openBlock(),o.createElementBlock("div",Ie,[o.createVNode(c,{class:"mx-2"},{default:o.withCtx(()=>[...e[6]||(e[6]=[o.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])]),_:1})])):(o.openBlock(),o.createElementBlock("div",Oe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.listData,(m,v)=>(o.openBlock(),o.createElementBlock("div",{key:v},[o.createVNode(f,null,{default:o.withCtx(()=>[o.createVNode(g,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(m.name),1)]),_:2},1024),o.createVNode(f,{icon:""},{default:o.withCtx(()=>[r.activeDownload?(o.openBlock(),o.createBlock(p,{key:0,indeterminate:"",color:"primary"})):(o.openBlock(),o.createBlock(d,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:r.activeDownload,onClick:S=>s.downloadGem(m)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),v<s.listData.length-1?(o.openBlock(),o.createBlock(L,{key:v})):o.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Be=P._export_sfc(Ne,[["render",Me]]),Re={props:{modelValue:Boolean,plugin:{type:String,default:null},targets:{type:Array,default:null},pluginDelete:Boolean},emits:["update:modelValue","submit","cancel"],data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},created(){for(const t of this.targets)k.Ei.get(`/openc3-api/targets/${t.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:t.name,files:e.data})})},methods:{cancel(){this.show=!1,this.$emit("cancel")}}},Ae={class:"file-list-container"};function Pe(t,e,n,l,r,s){const i=o.resolveComponent("v-spacer"),a=o.resolveComponent("v-toolbar"),c=o.resolveComponent("v-list-item-title"),u=o.resolveComponent("v-list-item-subtitle"),d=o.resolveComponent("v-list-item"),h=o.resolveComponent("v-checkbox"),g=o.resolveComponent("v-card-text"),p=o.resolveComponent("v-btn"),f=o.resolveComponent("v-card-actions"),L=o.resolveComponent("v-card"),C=o.resolveComponent("v-dialog");return o.openBlock(),o.createBlock(C,{modelValue:s.show,"onUpdate:modelValue":e[2]||(e[2]=_=>s.show=_),persistent:"",width:"600",onKeydown:o.withKeys(s.cancel,["esc"])},{default:o.withCtx(()=>[o.createVNode(L,null,{default:o.withCtx(()=>[o.createVNode(a,{height:"24"},{default:o.withCtx(()=>[o.createVNode(i),e[3]||(e[3]=o.createElementVNode("span",null," Modified Plugin ",-1)),o.createVNode(i)]),_:1}),o.createVNode(g,{class:"pa-3 card-container"},{default:o.withCtx(()=>[o.createElementVNode("div",null," Plugin "+o.toDisplayString(n.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.modifiedTargets,(_,w)=>(o.openBlock(),o.createBlock(d,{key:w,lines:"two"},{default:o.withCtx(()=>[o.createVNode(c,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(_.name),1)]),_:2},1024),o.createElementVNode("div",Ae,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.files,(m,v)=>(o.openBlock(),o.createBlock(u,{key:v},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(m),1)]),_:2},1024))),128))])]),_:2},1024))),128)),o.createVNode(h,{modelValue:r.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=_=>r.deleteModified=_),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),o.createVNode(f,{class:"px-2"},{default:o.withCtx(()=>[o.createVNode(i),o.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:s.cancel},{default:o.withCtx(()=>[...e[4]||(e[4]=[o.createTextVNode(" Cancel ",-1)])]),_:1},8,["onClick"]),o.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[1]||(e[1]=()=>{s.show=!1,t.$emit("submit",r.deleteModified)})},{default:o.withCtx(()=>[...e[5]||(e[5]=[o.createTextVNode(" Confirm ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])}const Fe=P._export_sfc(Re,[["render",Pe],["__scopeId","data-v-fb16376a"]]),be=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-BSm5NCBn.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-Dqvu7l_c.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-DN4Bx0jX.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-DtHCBbXB.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-BhbOC0nm.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-Ba4vRiFU.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-BxrYmpF4.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-Bs8368J6.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-CoEChNXs.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-CqYcXYBb.cjs"))}],He={components:{TopBar:D.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return be.map(t=>({displayName:t.displayName,path:{name:t.name}}))}}};function Ge(t,e,n,l,r,s){const i=o.resolveComponent("top-bar"),a=o.resolveComponent("v-tab"),c=o.resolveComponent("v-tabs"),u=o.resolveComponent("router-view"),d=o.resolveComponent("v-card");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(i,{title:r.title},null,8,["title"]),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(c,{modelValue:r.curTab,"onUpdate:modelValue":e[0]||(e[0]=h=>r.curTab=h),"fixed-tabs":""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.tabs,(h,g)=>(o.openBlock(),o.createBlock(a,{key:g,to:h.path},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),o.createVNode(u)]),_:1})])}const qe=P._export_sfc(He,[["render",Ge]]);function j(t){const[e,n]=t;return[e,n]}function K(t,e){let n=t,l=e;const r=n.length,s=l.length;if(r===0||s===0)return 0;r>s?n=n.substring(r-s):r<s&&(l=l.substring(0,r));const i=Math.min(r,s);if(n===l)return i;let a=0,c=1;for(let u=0;u!==-1;){const d=n.substring(i-c);if(u=l.indexOf(d),u===-1)return a;c+=u,(u===0||n.substring(i-c)===l.substring(0,c))&&(a=c,c++)}return a}function W(t,e){if(!t||!e||t[0]!==e[0])return 0;let n=0,l=Math.min(t.length,e.length),r=l,s=0;for(;n<r;)t.substring(s,r)===e.substring(s,r)?(n=r,s=n):l=r,r=Math.floor((l-n)/2+n);return r}function F(t,e){if(!t||!e||t[t.length-1]!==e[e.length-1])return 0;let n=0,l=Math.min(t.length,e.length),r=l,s=0;for(;n<r;)t.substring(t.length-r,t.length-s)===e.substring(e.length-r,e.length-s)?(n=r,s=n):l=r,r=Math.floor((l-n)/2+n);return r}function Ue(t){const e=t.charCodeAt(0);return e>=55296&&e<=56319}function je(t){const e=t.charCodeAt(0);return e>=56320&&e<=57343}function We(t,e,n){const l=t.length,r=e.length,s=Math.ceil((l+r)/2),i=s,a=2*s,c=new Array(a),u=new Array(a);for(let C=0;C<a;C++)c[C]=-1,u[C]=-1;c[i+1]=0,u[i+1]=0;const d=l-r,h=d%2!==0;let g=0,p=0,f=0,L=0;for(let C=0;C<s&&!(Date.now()>n);C++){for(let _=-C+g;_<=C-p;_+=2){const w=i+_;let m;_===-C||_!==C&&c[w-1]<c[w+1]?m=c[w+1]:m=c[w-1]+1;let v=m-_;for(;m<l&&v<r&&t.charAt(m)===e.charAt(v);)m++,v++;if(c[w]=m,m>l)p+=2;else if(v>r)g+=2;else if(h){const S=i+d-_;if(S>=0&&S<a&&u[S]!==-1){const T=l-u[S];if(m>=T)return Q(t,e,m,v,n)}}}for(let _=-C+f;_<=C-L;_+=2){const w=i+_;let m;_===-C||_!==C&&u[w-1]<u[w+1]?m=u[w+1]:m=u[w-1]+1;let v=m-_;for(;m<l&&v<r&&t.charAt(l-m-1)===e.charAt(r-v-1);)m++,v++;if(u[w]=m,m>l)L+=2;else if(v>r)f+=2;else if(!h){const S=i+d-_;if(S>=0&&S<a&&c[S]!==-1){const T=c[S],H=i+T-S;if(m=l-m,T>=m)return Q(t,e,T,H,n)}}}}return[[V,t],[y,e]]}function Q(t,e,n,l,r){const s=t.substring(0,n),i=e.substring(0,l),a=t.substring(n),c=e.substring(l),u=N(s,i,{checkLines:!1,deadline:r}),d=N(a,c,{checkLines:!1,deadline:r});return u.concat(d)}function Ye(t,e,n=1){if(n<=0)return null;const l=t.length>e.length?t:e,r=t.length>e.length?e:t;if(l.length<4||r.length*2<l.length)return null;const s=J(l,r,Math.ceil(l.length/4)),i=J(l,r,Math.ceil(l.length/2));let a;if(s&&i)a=s[4].length>i[4].length?s:i;else{if(!s&&!i)return null;i?s||(a=i):a=s}if(!a)throw new Error("Unable to find a half match.");let c,u,d,h;t.length>e.length?(c=a[0],u=a[1],d=a[2],h=a[3]):(d=a[0],h=a[1],c=a[2],u=a[3]);const g=a[4];return[c,u,d,h,g]}function J(t,e,n){const l=t.slice(n,n+Math.floor(t.length/4));let r=-1,s="",i,a,c,u;for(;(r=e.indexOf(l,r+1))!==-1;){const d=W(t.slice(n),e.slice(r)),h=F(t.slice(0,n),e.slice(0,r));s.length<h+d&&(s=e.slice(r-h,r)+e.slice(r,r+d),i=t.slice(0,n-h),a=t.slice(n+d),c=e.slice(0,r-h),u=e.slice(r+d))}return s.length*2>=t.length?[i||"",a||"",c||"",u||"",s||""]:null}function ze(t,e){for(let n=0;n<t.length;n++){const l=t[n][1],r=[];for(let s=0;s<l.length;s++)r[s]=e[l.charCodeAt(s)];t[n][1]=r.join("")}}function Ke(t,e){const n=[],l={};n[0]="";function r(c){let u="",d=0,h=-1,g=n.length;for(;h<c.length-1;){h=c.indexOf(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Te=require("../index-D-zO4ghE.cjs"),o=require("vue"),P=require("../CustomIcon-CEc927h0.cjs"),k=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-DMwcaglo.cjs");require("single-spa");const D=require("../TopBar-BjOuytzL.cjs"),Ne={props:{modelValue:Boolean},emits:["update:modelValue"],data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const t=/\w+.gem/;return this.response.tree.filter(e=>t.exec(e.path)).map(e=>({name:e.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`}))},getResponse:function(){this.disableSearch=!0,Te.axios.get(this.url).then(t=>{this.response=t.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(t){const e=document.createElement("a");e.href=t.url,e.setAttribute("download",t.name),e.click(),e.remove()}}},$e={class:"pa-3"},De={class:"px-2"},Ie={key:0,class:"mt-4"},Oe={key:1,class:"mt-4"};function Me(t,e,n,l,r,s){const i=o.resolveComponent("v-spacer"),a=o.resolveComponent("v-toolbar"),c=o.resolveComponent("v-row"),u=o.resolveComponent("v-icon"),d=o.resolveComponent("v-btn"),h=o.resolveComponent("v-col"),g=o.resolveComponent("v-list-item-title"),p=o.resolveComponent("v-progress-circular"),f=o.resolveComponent("v-list-item"),L=o.resolveComponent("v-divider"),C=o.resolveComponent("v-card-text"),_=o.resolveComponent("v-card"),w=o.resolveComponent("v-dialog");return o.openBlock(),o.createBlock(w,{modelValue:s.show,"onUpdate:modelValue":e[0]||(e[0]=m=>s.show=m),width:"600"},{default:o.withCtx(()=>[o.createVNode(_,null,{default:o.withCtx(()=>[o.createVNode(a,{height:"24"},{default:o.withCtx(()=>[o.createVNode(i),e[1]||(e[1]=o.createElementVNode("span",null," Download Gems ",-1)),o.createVNode(i)]),_:1}),o.createVNode(C,null,{default:o.withCtx(()=>[o.createElementVNode("div",$e,[o.createVNode(c,{class:"my-2"},{default:o.withCtx(()=>[...e[2]||(e[2]=[o.createTextVNode(" Select a download option ",-1)])]),_:1}),o.createVNode(c,null,{default:o.withCtx(()=>[o.createVNode(h,null,{default:o.withCtx(()=>[o.createElementVNode("div",De,[o.createVNode(d,{block:"","data-test":"searchGithub",color:"primary",disabled:r.disableSearch,onClick:s.searchGithub},{default:o.withCtx(()=>[e[4]||(e[4]=o.createTextVNode(" Github ",-1)),o.createVNode(u,{end:"",theme:"dark"},{default:o.withCtx(()=>[...e[3]||(e[3]=[o.createTextVNode(" mdi-github ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),o.createVNode(c,{class:"mt-5"},{default:o.withCtx(()=>[...e[5]||(e[5]=[o.createTextVNode(" Community Gems ",-1)])]),_:1}),s.listData.length<1?(o.openBlock(),o.createElementBlock("div",Ie,[o.createVNode(c,{class:"mx-2"},{default:o.withCtx(()=>[...e[6]||(e[6]=[o.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])]),_:1})])):(o.openBlock(),o.createElementBlock("div",Oe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.listData,(m,v)=>(o.openBlock(),o.createElementBlock("div",{key:v},[o.createVNode(f,null,{default:o.withCtx(()=>[o.createVNode(g,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(m.name),1)]),_:2},1024),o.createVNode(f,{icon:""},{default:o.withCtx(()=>[r.activeDownload?(o.openBlock(),o.createBlock(p,{key:0,indeterminate:"",color:"primary"})):(o.openBlock(),o.createBlock(d,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:r.activeDownload,onClick:S=>s.downloadGem(m)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),v<s.listData.length-1?(o.openBlock(),o.createBlock(L,{key:v})):o.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Be=P._export_sfc(Ne,[["render",Me]]),Re={props:{modelValue:Boolean,plugin:{type:String,default:null},targets:{type:Array,default:null},pluginDelete:Boolean},emits:["update:modelValue","submit","cancel"],data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},created(){for(const t of this.targets)k.Ei.get(`/openc3-api/targets/${t.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:t.name,files:e.data})})},methods:{cancel(){this.show=!1,this.$emit("cancel")}}},Ae={class:"file-list-container"};function Pe(t,e,n,l,r,s){const i=o.resolveComponent("v-spacer"),a=o.resolveComponent("v-toolbar"),c=o.resolveComponent("v-list-item-title"),u=o.resolveComponent("v-list-item-subtitle"),d=o.resolveComponent("v-list-item"),h=o.resolveComponent("v-checkbox"),g=o.resolveComponent("v-card-text"),p=o.resolveComponent("v-btn"),f=o.resolveComponent("v-card-actions"),L=o.resolveComponent("v-card"),C=o.resolveComponent("v-dialog");return o.openBlock(),o.createBlock(C,{modelValue:s.show,"onUpdate:modelValue":e[2]||(e[2]=_=>s.show=_),persistent:"",width:"600",onKeydown:o.withKeys(s.cancel,["esc"])},{default:o.withCtx(()=>[o.createVNode(L,null,{default:o.withCtx(()=>[o.createVNode(a,{height:"24"},{default:o.withCtx(()=>[o.createVNode(i),e[3]||(e[3]=o.createElementVNode("span",null," Modified Plugin ",-1)),o.createVNode(i)]),_:1}),o.createVNode(g,{class:"pa-3 card-container"},{default:o.withCtx(()=>[o.createElementVNode("div",null," Plugin "+o.toDisplayString(n.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.modifiedTargets,(_,w)=>(o.openBlock(),o.createBlock(d,{key:w,lines:"two"},{default:o.withCtx(()=>[o.createVNode(c,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(_.name),1)]),_:2},1024),o.createElementVNode("div",Ae,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(_.files,(m,v)=>(o.openBlock(),o.createBlock(u,{key:v},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(m),1)]),_:2},1024))),128))])]),_:2},1024))),128)),o.createVNode(h,{modelValue:r.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=_=>r.deleteModified=_),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),o.createVNode(f,{class:"px-2"},{default:o.withCtx(()=>[o.createVNode(i),o.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:s.cancel},{default:o.withCtx(()=>[...e[4]||(e[4]=[o.createTextVNode(" Cancel ",-1)])]),_:1},8,["onClick"]),o.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[1]||(e[1]=()=>{s.show=!1,t.$emit("submit",r.deleteModified)})},{default:o.withCtx(()=>[...e[5]||(e[5]=[o.createTextVNode(" Confirm ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])}const Fe=P._export_sfc(Re,[["render",Pe],["__scopeId","data-v-fb16376a"]]),be=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-CDopyCAG.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-BwzGasJJ.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-DE3eUJDd.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-B7MPNa6g.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-B8gVZ9wr.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-CvJayoC1.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-DUDJjlYF.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-BdXEE0MY.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-ms4xbsap.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-to-vPAkD.cjs"))}],He={components:{TopBar:D.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return be.map(t=>({displayName:t.displayName,path:{name:t.name}}))}}};function Ge(t,e,n,l,r,s){const i=o.resolveComponent("top-bar"),a=o.resolveComponent("v-tab"),c=o.resolveComponent("v-tabs"),u=o.resolveComponent("router-view"),d=o.resolveComponent("v-card");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(i,{title:r.title},null,8,["title"]),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(c,{modelValue:r.curTab,"onUpdate:modelValue":e[0]||(e[0]=h=>r.curTab=h),"fixed-tabs":""},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.tabs,(h,g)=>(o.openBlock(),o.createBlock(a,{key:g,to:h.path},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(h.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),o.createVNode(u)]),_:1})])}const qe=P._export_sfc(He,[["render",Ge]]);function j(t){const[e,n]=t;return[e,n]}function K(t,e){let n=t,l=e;const r=n.length,s=l.length;if(r===0||s===0)return 0;r>s?n=n.substring(r-s):r<s&&(l=l.substring(0,r));const i=Math.min(r,s);if(n===l)return i;let a=0,c=1;for(let u=0;u!==-1;){const d=n.substring(i-c);if(u=l.indexOf(d),u===-1)return a;c+=u,(u===0||n.substring(i-c)===l.substring(0,c))&&(a=c,c++)}return a}function W(t,e){if(!t||!e||t[0]!==e[0])return 0;let n=0,l=Math.min(t.length,e.length),r=l,s=0;for(;n<r;)t.substring(s,r)===e.substring(s,r)?(n=r,s=n):l=r,r=Math.floor((l-n)/2+n);return r}function F(t,e){if(!t||!e||t[t.length-1]!==e[e.length-1])return 0;let n=0,l=Math.min(t.length,e.length),r=l,s=0;for(;n<r;)t.substring(t.length-r,t.length-s)===e.substring(e.length-r,e.length-s)?(n=r,s=n):l=r,r=Math.floor((l-n)/2+n);return r}function Ue(t){const e=t.charCodeAt(0);return e>=55296&&e<=56319}function je(t){const e=t.charCodeAt(0);return e>=56320&&e<=57343}function We(t,e,n){const l=t.length,r=e.length,s=Math.ceil((l+r)/2),i=s,a=2*s,c=new Array(a),u=new Array(a);for(let C=0;C<a;C++)c[C]=-1,u[C]=-1;c[i+1]=0,u[i+1]=0;const d=l-r,h=d%2!==0;let g=0,p=0,f=0,L=0;for(let C=0;C<s&&!(Date.now()>n);C++){for(let _=-C+g;_<=C-p;_+=2){const w=i+_;let m;_===-C||_!==C&&c[w-1]<c[w+1]?m=c[w+1]:m=c[w-1]+1;let v=m-_;for(;m<l&&v<r&&t.charAt(m)===e.charAt(v);)m++,v++;if(c[w]=m,m>l)p+=2;else if(v>r)g+=2;else if(h){const S=i+d-_;if(S>=0&&S<a&&u[S]!==-1){const T=l-u[S];if(m>=T)return Q(t,e,m,v,n)}}}for(let _=-C+f;_<=C-L;_+=2){const w=i+_;let m;_===-C||_!==C&&u[w-1]<u[w+1]?m=u[w+1]:m=u[w-1]+1;let v=m-_;for(;m<l&&v<r&&t.charAt(l-m-1)===e.charAt(r-v-1);)m++,v++;if(u[w]=m,m>l)L+=2;else if(v>r)f+=2;else if(!h){const S=i+d-_;if(S>=0&&S<a&&c[S]!==-1){const T=c[S],H=i+T-S;if(m=l-m,T>=m)return Q(t,e,T,H,n)}}}}return[[V,t],[y,e]]}function Q(t,e,n,l,r){const s=t.substring(0,n),i=e.substring(0,l),a=t.substring(n),c=e.substring(l),u=N(s,i,{checkLines:!1,deadline:r}),d=N(a,c,{checkLines:!1,deadline:r});return u.concat(d)}function Ye(t,e,n=1){if(n<=0)return null;const l=t.length>e.length?t:e,r=t.length>e.length?e:t;if(l.length<4||r.length*2<l.length)return null;const s=J(l,r,Math.ceil(l.length/4)),i=J(l,r,Math.ceil(l.length/2));let a;if(s&&i)a=s[4].length>i[4].length?s:i;else{if(!s&&!i)return null;i?s||(a=i):a=s}if(!a)throw new Error("Unable to find a half match.");let c,u,d,h;t.length>e.length?(c=a[0],u=a[1],d=a[2],h=a[3]):(d=a[0],h=a[1],c=a[2],u=a[3]);const g=a[4];return[c,u,d,h,g]}function J(t,e,n){const l=t.slice(n,n+Math.floor(t.length/4));let r=-1,s="",i,a,c,u;for(;(r=e.indexOf(l,r+1))!==-1;){const d=W(t.slice(n),e.slice(r)),h=F(t.slice(0,n),e.slice(0,r));s.length<h+d&&(s=e.slice(r-h,r)+e.slice(r,r+d),i=t.slice(0,n-h),a=t.slice(n+d),c=e.slice(0,r-h),u=e.slice(r+d))}return s.length*2>=t.length?[i||"",a||"",c||"",u||"",s||""]:null}function ze(t,e){for(let n=0;n<t.length;n++){const l=t[n][1],r=[];for(let s=0;s<l.length;s++)r[s]=e[l.charCodeAt(s)];t[n][1]=r.join("")}}function Ke(t,e){const n=[],l={};n[0]="";function r(c){let u="",d=0,h=-1,g=n.length;for(;h<c.length-1;){h=c.indexOf(`
|
|
2
2
|
`,d),h===-1&&(h=c.length-1);let p=c.slice(d,h+1);(l.hasOwnProperty?l.hasOwnProperty(p):l[p]!==void 0)?u+=String.fromCharCode(l[p]):(g===s&&(p=c.slice(d),h=c.length),u+=String.fromCharCode(g),l[p]=g,n[g++]=p),d=h+1}return u}let s=4e4;const i=r(t);s=65535;const a=r(e);return{chars1:i,chars2:a,lineArray:n}}function Qe(t,e,n){let l=t,r=e;const s=Ke(l,r);l=s.chars1,r=s.chars2;const i=s.lineArray;let a=N(l,r,{checkLines:!1,deadline:n.deadline});ze(a,i),a=ve(a),a.push([E,""]);let c=0,u=0,d=0,h="",g="";for(;c<a.length;){switch(a[c][0]){case y:d++,g+=a[c][1];break;case V:u++,h+=a[c][1];break;case E:if(u>=1&&d>=1){a.splice(c-u-d,u+d),c=c-u-d;const p=N(h,g,{checkLines:!1,deadline:n.deadline});for(let f=p.length-1;f>=0;f--)a.splice(c,0,p[f]);c+=p.length}d=0,u=0,h="",g="";break;default:throw new Error("Unknown diff operation.")}c++}return a.pop(),a}function Je(t,e,n){let l;if(!t)return[[y,e]];if(!e)return[[V,t]];const r=t.length>e.length?t:e,s=t.length>e.length?e:t,i=r.indexOf(s);if(i!==-1)return l=[[y,r.substring(0,i)],[E,s],[y,r.substring(i+s.length)]],t.length>e.length&&(l[0][0]=V,l[2][0]=V),l;if(s.length===1)return[[V,t],[y,e]];const a=Ye(t,e);if(a){const c=a[0],u=a[1],d=a[2],h=a[3],g=a[4],p=N(c,d,n),f=N(u,h,n);return p.concat([[E,g]],f)}return n.checkLines&&t.length>100&&e.length>100?Qe(t,e,n):We(t,e,n.deadline)}var Xe=Object.defineProperty,X=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Z=(t,e,n)=>e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,tt=(t,e)=>{for(var n in e||(e={}))Ze.call(e,n)&&Z(t,n,e[n]);if(X)for(var n of X(e))et.call(e,n)&&Z(t,n,e[n]);return t};const V=-1,y=1,E=0;function nt(t,e,n){if(t===null||e===null)throw new Error("Null input. (diff)");const l=N(t,e,rt(n||{}));return lt(l),l}function N(t,e,n){let l=t,r=e;if(l===r)return l?[[E,l]]:[];let s=W(l,r);const i=l.substring(0,s);l=l.substring(s),r=r.substring(s),s=F(l,r);const a=l.substring(l.length-s);l=l.substring(0,l.length-s),r=r.substring(0,r.length-s);let c=Je(l,r,n);return i&&c.unshift([E,i]),a&&c.push([E,a]),c=Y(c),c}function ot(t){let e=1;return typeof t<"u"&&(e=t<=0?Number.MAX_VALUE:t),Date.now()+e*1e3}function rt(t){return tt({checkLines:!0,deadline:ot(t.timeout||1)},t)}function M(t,e,n){return n===1?t+e:e+t}function B(t,e){return e===1?[t.substring(0,t.length-1),t[t.length-1]]:[t.substring(1),t[0]]}function it(t,e,n,l){return l===1?t[e][1][t[e][1].length-1]===t[n][1][t[n][1].length-1]:t[e][1][0]===t[n][1][0]}function ee(t,e,n){const l=n===1?-1:1;let r=null,s=null,i=e+n;for(;i>=0&&i<t.length&&(r===null||s===null);i+=n){const[u,d]=t[i];if(d.length!==0){if(u===y){r===null&&(r=i);continue}else if(u===V){s===null&&(s=i);continue}else if(u===E){if(r===null&&s===null){const[h,g]=B(t[e][1],n);t[e][1]=h,t[i][1]=M(t[i][1],g,l);return}break}}}if(r!==null&&s!==null&&it(t,r,s,n)){const[u,d]=B(t[r][1],l),[h]=B(t[s][1],l);t[r][1]=u,t[s][1]=h,t[e][1]=M(t[e][1],d,n);return}const[a,c]=B(t[e][1],n);t[e][1]=a,r===null?(t.splice(i,0,[y,c]),s!==null&&s>=i&&s++):t[r][1]=M(t[r][1],c,l),s===null?t.splice(i,0,[V,c]):t[s][1]=M(t[s][1],c,l)}function lt(t){for(let e=0;e<t.length;e++){const[n,l]=t[e];if(l.length===0)continue;const r=l[0],s=l[l.length-1];Ue(s)&&n===E&&ee(t,e,1),je(r)&&n===E&&ee(t,e,-1)}for(let e=0;e<t.length;e++)t[e][1].length===0&&t.splice(e,1)}function ve(t){let e=t.map(h=>j(h)),n=!1;const l=[];let r=0,s=null,i=0,a=0,c=0,u=0,d=0;for(;i<e.length;)e[i][0]===E?(l[r++]=i,a=u,c=d,u=0,d=0,s=e[i][1]):(e[i][0]===y?u+=e[i][1].length:d+=e[i][1].length,s&&s.length<=Math.max(a,c)&&s.length<=Math.max(u,d)&&(e.splice(l[r-1],0,[V,s]),e[l[r-1]+1][0]=y,r--,r--,i=r>0?l[r-1]:-1,a=0,c=0,u=0,d=0,s=null,n=!0)),i++;for(n&&(e=Y(e)),e=ct(e),i=1;i<e.length;){if(e[i-1][0]===V&&e[i][0]===y){const h=e[i-1][1],g=e[i][1],p=K(h,g),f=K(g,h);p>=f?(p>=h.length/2||p>=g.length/2)&&(e.splice(i,0,[E,g.substring(0,p)]),e[i-1][1]=h.substring(0,h.length-p),e[i+1][1]=g.substring(p),i++):(f>=h.length/2||f>=g.length/2)&&(e.splice(i,0,[E,h.substring(0,f)]),e[i-1][0]=y,e[i-1][1]=g.substring(0,g.length-f),e[i+1][0]=V,e[i+1][1]=h.substring(f),i++),i++}i++}return e}const te=/[^a-zA-Z0-9]/,ne=/\s/,oe=/[\r\n]/,st=/\n\r?\n$/,at=/^\r?\n\r?\n/;function ct(t){const e=t.map(r=>j(r));function n(r,s){if(!r||!s)return 6;const i=r.charAt(r.length-1),a=s.charAt(0),c=i.match(te),u=a.match(te),d=c&&i.match(ne),h=u&&a.match(ne),g=d&&i.match(oe),p=h&&a.match(oe),f=g&&r.match(st),L=p&&s.match(at);return f||L?5:g||p?4:c&&!d&&h?3:d||h?2:c||u?1:0}let l=1;for(;l<e.length-1;){if(e[l-1][0]===E&&e[l+1][0]===E){let r=e[l-1][1],s=e[l][1],i=e[l+1][1];const a=F(r,s);if(a){const g=s.substring(s.length-a);r=r.substring(0,r.length-a),s=g+s.substring(0,s.length-a),i=g+i}let c=r,u=s,d=i,h=n(r,s)+n(s,i);for(;s.charAt(0)===i.charAt(0);){r+=s.charAt(0),s=s.substring(1)+i.charAt(0),i=i.substring(1);const g=n(r,s)+n(s,i);g>=h&&(h=g,c=r,u=s,d=i)}e[l-1][1]!==c&&(c?e[l-1][1]=c:(e.splice(l-1,1),l--),e[l][1]=u,d?e[l+1][1]=d:(e.splice(l+1,1),l--))}l++}return e}function Y(t){let e=t.map(u=>j(u));e.push([E,""]);let n=0,l=0,r=0,s="",i="",a;for(;n<e.length;)switch(e[n][0]){case y:r++,i+=e[n][1],n++;break;case V:l++,s+=e[n][1],n++;break;case E:l+r>1?(l!==0&&r!==0&&(a=W(i,s),a!==0&&(n-l-r>0&&e[n-l-r-1][0]===E?e[n-l-r-1][1]+=i.substring(0,a):(e.splice(0,0,[E,i.substring(0,a)]),n++),i=i.substring(a),s=s.substring(a)),a=F(i,s),a!==0&&(e[n][1]=i.substring(i.length-a)+e[n][1],i=i.substring(0,i.length-a),s=s.substring(0,s.length-a))),n-=l+r,e.splice(n,l+r),s.length&&(e.splice(n,0,[V,s]),n++),i.length&&(e.splice(n,0,[y,i]),n++),n++):n!==0&&e[n-1][0]===E?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,r=0,l=0,s="",i="";break;default:throw new Error("Unknown diff operation")}e[e.length-1][1]===""&&e.pop();let c=!1;for(n=1;n<e.length-1;)e[n-1][0]===E&&e[n+1][0]===E&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)===e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),c=!0):e[n][1].substring(0,e[n+1][1].length)===e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),c=!0)),n++;return c&&(e=Y(e)),e}function R(t){return t&&typeof t=="object"&&!Array.isArray(t)&&t!==null}function z(t,e){return R(t)&&R(e)&&Object.keys(e).forEach(n=>{n==="__proto__"||n==="constructor"||(R(e[n])?((!t[n]||!R(t[n]))&&(t[n]=e[n]),t[n]!=e[n]&&z(t[n],e[n])):Object.assign(t,{[n]:e[n]}))}),t}function re(t,e,n=!1){let l=null,r=!0;return(...s)=>{const i=n&&r,a=()=>{t.apply(this,s),l=null};i&&(r=!1,a()),l||(l=setTimeout(a,e))}}function ut(t,e){let n;return(...l)=>{const r=this;clearTimeout(n),n=setTimeout(()=>t.apply(r,l),e)}}function ie(t=""){return t.replace(/\r\n/g,`
|
|
3
3
|
`)}function le(t,e,n,l){const r=n-t,s=t+r/2;return`M ${t} ${e} C ${s},${e} ${s},${l} ${n},${l}`}var b={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function se(t,e){let{mode:n}=t.options;return e===b.EDITOR_LEFT&&t.options.left.mode!==null&&(n=t.options.left.mode),e===b.EDITOR_RIGHT&&t.options.right.mode!==null&&(n=t.options.right.mode),n}function ae(t,e){let{theme:n}=t.options;return e===b.EDITOR_LEFT&&t.options.left.theme!==null&&(n=t.options.left.theme),e===b.EDITOR_RIGHT&&t.options.right.theme!==null&&(n=t.options.right.theme),n}function dt(t,e){return t.ace.getSession().doc.getLine(e)}function ht(t){return document.getElementById(t.options.left.id).offsetHeight}function ce(t){const e=document.createElement("div"),n={class:t.className,style:`top:${t.topOffset}px`,title:t.tooltip,"data-diff-index":t.diffIndex};for(const l in n)e.setAttribute(l,n[l]);return e.innerHTML=t.arrowContent,e}function q(t,e){const n=Math.random().toString(36).substr(2,5),l=`js-${e}-${n}`,r=t.querySelector(`.${e}`);if(r)return r.id=r.id||l,r.id;const s=document.createElement("div");return t.appendChild(s),s.className=e,s.id=l,s.id}function ue(t,e,n,l){const r=t==="document"?document:document.querySelector(t);r.addEventListener(e,s=>{const i=r.querySelectorAll(n),{target:a}=s;for(let c=0,u=i.length;c<u;c+=1){let d=a;const h=i[c];for(;d&&d!==r;)d===h&&l.call(h,s),d=d.parentNode}})}let O;function gt(t){if(t.Range)return t.Range;const e=t.acequire||t.require;return e?e("ace/range"):!1}function A(t={}){if(!(this instanceof A))return new A(t);const e=this,n=()=>window?window.ace:void 0;e.options=z({ace:n(),mode:null,theme:null,element:null,diffGranularity:b.DIFF_GRANULARITY_BROAD,lockScrolling:!0,showDiffs:!0,showConnectors:!0,charDiffs:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",diffChar:"acediff__diffChar",diffGutter:"acediff__diffGutter",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"→",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"←",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0,onDiffReady:null},t);const{ace:l}=e.options;if(!l){const r="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(r),new Error(r)}if(O=gt(l),!O){const r="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(r),new Error(r)}if(e.options.element===null){const r="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(r),new Error(r)}if(e.options.element instanceof HTMLElement?e.el=e.options.element:e.el=document.body.querySelector(e.options.element),!e.el){const r=`Can't find the specified element ${e.options.element}`;return console.error(r),new Error(r)}e.options.left.id=q(e.el,"acediff__left"),e.options.classes.gutterID=q(e.el,"acediff__gutter"),e.options.right.id=q(e.el,"acediff__right"),e.el.innerHTML=`<div class="acediff acediff__wrap">${e.el.innerHTML}</div>`,e.editors={left:{ace:l.edit(e.options.left.id),markers:[],lineLengths:[],diffGutters:[]},right:{ace:l.edit(e.options.right.id),markers:[],lineLengths:[],diffGutters:[]},editorHeight:null},e.editors.left.ace.getSession().setMode(se(e,b.EDITOR_LEFT)),e.editors.right.ace.getSession().setMode(se(e,b.EDITOR_RIGHT)),e.editors.left.ace.setReadOnly(!e.options.left.editable),e.editors.right.ace.setReadOnly(!e.options.right.editable),e.editors.left.ace.setShowFoldWidgets(!1),e.editors.right.ace.setShowFoldWidgets(!1),e.editors.left.ace.setTheme(ae(e,b.EDITOR_LEFT)),e.editors.right.ace.setTheme(ae(e,b.EDITOR_RIGHT)),e.editors.left.ace.setValue(ie(e.options.left.content),-1),e.editors.right.ace.setValue(ie(e.options.right.content),-1),e.editors.editorHeight=ht(e),setTimeout(()=>{e.lineHeight=e.editors.left.ace.renderer.lineHeight,pt(e),Ct(e),Ee(e),e.diff()},1)}A.prototype={setOptions(t){z(this.options,t),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const t=this.editors.left.ace.getSession().getValue(),e=this.editors.right.ace.getSession().getValue(),n=ve(nt(e,t));this.editors.left.lineLengths=he(this.editors.left),this.editors.right.lineLengths=he(this.editors.right);const l=[],r={left:0,right:0};n.forEach(s=>{const i=s[0];let a=s[1];a.length!==0&&(i===b.DIFF_EQUAL?(r.left+=a.length,r.right+=a.length):i===b.DIFF_DELETE?(l.push(me(this,b.DIFF_DELETE,r.left,r.right,a)),r.right+=a.length):i===b.DIFF_INSERT&&(l.push(me(this,b.DIFF_INSERT,r.left,r.right,a)),r.left+=a.length))},this),this.diffs=bt(this,l),!(this.diffs.length>this.options.maxDiffs)&&(U(this),Le(this),typeof this.options.onDiffReady=="function"&&this.options.onDiffReady(this.diffs))},clear(){U(this),we(this),xe(this)},destroy(){const t=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let e=this.editors.left.ace.container,n=e.cloneNode(!1);n.textContent=t,e.parentNode.replaceChild(n,e);const l=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),e=this.editors.right.ace.container,n=e.cloneNode(!1),n.textContent=l,e.parentNode.replaceChild(n,e);const r=document.getElementById(this.options.classes.gutterID);r&&(r.innerHTML=""),this.removeEventHandlers()}};function pt(t){let e=!1;function n(s,i){if(!t.options.lockScrolling||e)return;const a=s.ace.getSession(),c=i.ace.getSession(),u=a.getScrollTop(),h=a.getLength()*t.lineHeight,g=s.ace.renderer.$size.scrollerHeight,p=Math.max(0,h-g),f=p>0?u/p:0,C=c.getLength()*t.lineHeight,_=i.ace.renderer.$size.scrollerHeight,w=Math.max(0,C-_),m=f*w;e=!0,c.setScrollTop(m),e=!1}t.editors.left.ace.getSession().on("changeScrollTop",re(()=>{n(t.editors.left,t.editors.right),pe(t)},16)),t.editors.right.ace.getSession().on("changeScrollTop",re(()=>{n(t.editors.right,t.editors.left),pe(t)},16));const l=t.diff.bind(t);t.editors.left.ace.on("change",l),t.editors.right.ace.on("change",l),t.options.left.copyLinkEnabled&&ue(`#${t.options.classes.gutterID}`,"click",`.${t.options.classes.newCodeConnectorLink}`,s=>{de(t,s,b.LTR)}),t.options.right.copyLinkEnabled&&ue(`#${t.options.classes.gutterID}`,"click",`.${t.options.classes.deletedCodeConnectorLink}`,s=>{de(t,s,b.RTL)});const r=ut(()=>{t.editors.availableHeight=document.getElementById(t.options.left.id).offsetHeight,t.diff()},250);window.addEventListener("resize",r),t.removeEventHandlers=()=>{window.removeEventListener("resize",r)}}function de(t,e,n){const l=parseInt(e.target.getAttribute("data-diff-index"),10),r=t.diffs[l];let s,i,a,c,u,d;n===b.LTR?(s=t.editors.left,i=t.editors.right,a=r.leftStartOffset,c=r.leftEndOffset,u=r.rightStartOffset,d=r.rightEndOffset):(s=t.editors.right,i=t.editors.left,a=r.rightStartOffset,c=r.rightEndOffset,u=r.leftStartOffset,d=r.leftEndOffset);const g=s.ace.getValue().substring(a,c),p=i.ace.getSession().doc,f=p.indexToPosition(u),L=p.indexToPosition(d),C=i.ace.getSession().getScrollTop();i.ace.getSession().replace(new O(f.row,f.column,L.row,L.column),g),i.ace.getSession().setScrollTop(parseInt(C,10)),t.diff()}function he(t){const e=t.ace.getSession().doc.getAllLines(),n=[];return e.forEach(l=>{n.push(l.length+1)}),n}function ge(t,e,n,l,r,s){const i=t.editors[e];l<n&&(l=n);const a=`${s} ${l>n?"lines":"targetOnly"} ${e}`;let c=l;if(c>n&&(c-=1),i.markers.push(i.ace.session.addMarker(new O(n,0,c,1),a,"fullLine")),t.options.charDiffs&&r&&r.length>0){const d=`${t.options.classes.diffChar} ${e}`;r.forEach(h=>{i.markers.push(i.ace.session.addMarker(new O(h.lineStart,h.start,h.lineEnd-1,h.end),d,"text"))})}const u=`${t.options.classes.diffGutter} ${e}`;for(let d=n;d<l;d+=1)i.ace.session.addGutterDecoration(d,u),i.diffGutters.push({line:d,className:u})}function pe(t){U(t),Le(t),_t(t)}function U(t){t.editors.left.markers.forEach(e=>{t.editors.left.ace.getSession().removeMarker(e)},t),t.editors.right.markers.forEach(e=>{t.editors.right.ace.getSession().removeMarker(e)},t),t.editors.left.markers=[],t.editors.right.markers=[],t.editors.left.diffGutters.forEach(e=>{t.editors.left.ace.session.removeGutterDecoration(e.line,e.className)},t),t.editors.right.diffGutters.forEach(e=>{t.editors.right.ace.session.removeGutterDecoration(e.line,e.className)},t),t.editors.left.diffGutters=[],t.editors.right.diffGutters=[]}function mt(t,e,n,l,r){const s=t.editors.left.ace.getSession().getScrollTop(),i=t.editors.right.ace.getSession().getScrollTop();t.connectorYOffset=1;const a=-1,c=e*t.lineHeight-s+.5,u=t.gutterWidth+1,d=l*t.lineHeight-i+.5,h=-1,g=n*t.lineHeight-s+t.connectorYOffset+.5,p=t.gutterWidth+1,f=r*t.lineHeight-i+t.connectorYOffset+.5,L=le(a,c,u,d),C=le(p,f,h,g),_=`L${u},${d} ${p},${f}`,w=`L${h},${g} ${a},${c}`,m=`${L} ${_} ${C} ${w}`,v=document.createElementNS(b.SVG_NS,"path");v.setAttribute("d",m),v.setAttribute("class",t.options.classes.connector),t.gutterSVG.appendChild(v)}function ft(t,e,n){if(e.leftEndLine>e.leftStartLine&&t.options.left.copyLinkEnabled){const l=ce({className:t.options.classes.newCodeConnectorLink,topOffset:e.leftStartLine*t.lineHeight,tooltip:"Copy to right",diffIndex:n,arrowContent:t.options.classes.newCodeConnectorLinkContent});t.copyRightContainer.appendChild(l)}if(e.rightEndLine>e.rightStartLine&&t.options.right.copyLinkEnabled){const l=ce({className:t.options.classes.deletedCodeConnectorLink,topOffset:e.rightStartLine*t.lineHeight,tooltip:"Copy to left",diffIndex:n,arrowContent:t.options.classes.deletedCodeConnectorLinkContent});t.copyLeftContainer.appendChild(l)}}function _t(t){const e=t.editors.left.ace.getSession().getScrollTop(),n=t.editors.right.ace.getSession().getScrollTop();t.copyRightContainer.style.cssText=`top: ${-e}px`,t.copyLeftContainer.style.cssText=`top: ${-n}px`}function me(t,e,n,l,r){let s={};if(e===b.DIFF_INSERT){let i=fe(t.editors.left,n,r),a=_e(t.editors.right,l),c=I(t.editors.right,a);const u=I(t.editors.left,i.startLine);let d=a,h=i.startLine===i.endLine,g=0;(i.startChar>0||h&&r.length<u)&&c>0&&i.startChar<u&&g++,s={leftStartLine:i.startLine,leftEndLine:i.endLine+1,rightStartLine:d,rightEndLine:d+g,leftStartOffset:n,leftEndOffset:n+r.length,rightStartOffset:l,rightEndOffset:l,leftStartChar:i.startChar,leftEndChar:i.endChar}}else{let i=fe(t.editors.right,l,r),a=_e(t.editors.left,n),c=I(t.editors.left,a);const u=I(t.editors.right,i.startLine);let d=a,h=i.startLine===i.endLine,g=0;(i.startChar>0||h&&r.length<u)&&c>0&&i.startChar<u&&g++,s={leftStartLine:d,leftEndLine:d+g,rightStartLine:i.startLine,rightEndLine:i.endLine+1,leftStartOffset:n,leftEndOffset:n,rightStartOffset:l,rightEndOffset:l+r.length,rightStartChar:i.startChar,rightEndChar:i.endChar}}return s}function fe(t,e,n){const l={startLine:0,startChar:0,endLine:0,endChar:0},r=e+n.length;let s=0,i=!1,a=!1;t.lineLengths.forEach((u,d)=>{s+=u,!i&&e<s&&(l.startLine=d,l.startChar=e-s+u,i=!0),!a&&r<=s&&(l.endLine=d,l.endChar=r-s+u,a=!0)}),l.startChar>0&&I(t,l.startLine)===l.startChar&&(l.startLine++,l.startChar=0),l.endChar===0&&l.endLine--;const c=/\n$/.test(n);return l.startChar>0&&c&&l.endLine++,l}function I(t,e){return dt(t,e).length}function _e(t,e){const n=t.ace.getSession().doc.getAllLines();let l=0,r=0;for(let s=0;s<n.length;s+=1)if(r+=n[s].length+1,e<=r){l=s,e===r&&s<n.length-1&&(l+=1);break}return r>=t.ace.getSession().getValue().length&&(l+=1),l}function Ee(t){t.gutterHeight=document.getElementById(t.options.classes.gutterID).clientHeight,t.gutterWidth=document.getElementById(t.options.classes.gutterID).clientWidth;const e=Ce(t,b.EDITOR_LEFT),n=Ce(t,b.EDITOR_RIGHT),l=Math.max(e,n,t.gutterHeight);t.gutterSVG=document.createElementNS(b.SVG_NS,"svg"),t.gutterSVG.setAttribute("width",t.gutterWidth),t.gutterSVG.setAttribute("height",l),document.getElementById(t.options.classes.gutterID).appendChild(t.gutterSVG)}function Ce(t,e){return(e===b.EDITOR_LEFT?t.editors.left:t.editors.right).ace.getSession().getLength()*t.lineHeight}function Ct(t){t.copyRightContainer=document.createElement("div"),t.copyRightContainer.setAttribute("class",t.options.classes.copyRightContainer),t.copyLeftContainer=document.createElement("div"),t.copyLeftContainer.setAttribute("class",t.options.classes.copyLeftContainer),document.getElementById(t.options.classes.gutterID).appendChild(t.copyRightContainer),document.getElementById(t.options.classes.gutterID).appendChild(t.copyLeftContainer)}function we(t){const e=document.getElementById(t.options.classes.gutterID);t.gutterSVG&&e.removeChild(t.gutterSVG),Ee(t)}function xe(t){t.copyLeftContainer&&(t.copyLeftContainer.innerHTML=""),t.copyRightContainer&&(t.copyRightContainer.innerHTML="")}function bt(t,e){const n=[];function l(i){return t.options.diffGranularity===b.DIFF_GRANULARITY_SPECIFIC?i<1:i<=1}function r(i){const a=Object.assign({},i,{leftChars:[],rightChars:[]});return i.leftEndChar!==void 0&&a.leftChars.push({start:i.leftStartChar,end:i.leftEndChar,lineStart:i.leftStartLine,lineEnd:i.leftEndLine}),i.rightEndChar!==void 0&&a.rightChars.push({start:i.rightStartChar,end:i.rightEndChar,lineStart:i.rightStartLine,lineEnd:i.rightEndLine}),a}e.forEach((i,a)=>{if(a===0){n.push(r(i));return}let c=!1;for(let u=0;u<n.length;u+=1)if(l(Math.abs(i.leftStartLine-n[u].leftEndLine))&&l(Math.abs(i.rightStartLine-n[u].rightEndLine))){n[u].leftStartLine=Math.min(i.leftStartLine,n[u].leftStartLine),n[u].rightStartLine=Math.min(i.rightStartLine,n[u].rightStartLine),n[u].leftEndLine=Math.max(i.leftEndLine,n[u].leftEndLine),n[u].rightEndLine=Math.max(i.rightEndLine,n[u].rightEndLine),n[u].leftStartOffset=Math.min(i.leftStartOffset,n[u].leftStartOffset),n[u].leftEndOffset=Math.max(i.leftEndOffset,n[u].leftEndOffset),n[u].rightStartOffset=Math.min(i.rightStartOffset,n[u].rightStartOffset),n[u].rightEndOffset=Math.max(i.rightEndOffset,n[u].rightEndOffset),i.leftEndChar!==void 0&&n[u].leftChars.push({start:i.leftStartChar,end:i.leftEndChar,lineStart:i.leftStartLine,lineEnd:i.leftEndLine}),i.rightEndChar!==void 0&&n[u].rightChars.push({start:i.rightStartChar,end:i.rightEndChar,lineStart:i.rightStartLine,lineEnd:i.rightEndLine}),c=!0;break}c||n.push(r(i))});const s=[];return n.forEach(i=>{i.leftStartLine===i.leftEndLine&&i.rightStartLine===i.rightEndLine||s.push(i)}),s}function Le(t){we(t),xe(t),t.diffs.forEach((e,n)=>{t.options.showDiffs&&(ge(t,b.EDITOR_LEFT,e.leftStartLine,e.leftEndLine,e.leftChars,t.options.classes.diff),ge(t,b.EDITOR_RIGHT,e.rightStartLine,e.rightEndLine,e.rightChars,t.options.classes.diff),t.options.showConnectors&&mt(t,e.leftStartLine,e.leftEndLine,e.rightStartLine,e.rightEndLine),ft(t,e,n))},t)}const vt={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1,default:null},storeId:{type:Number,required:!1,default:null},modelValue:Boolean},emits:["callback","update:modelValue"],data(){return{tab:0,localVariables:{},localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null,contextMenu:!1,menuX:0,menuY:0}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},watch:{value:{immediate:!0,handler:function(){const t=JSON.parse(JSON.stringify(this.variables));this.localVariables={};for(const[e,n]of Object.entries(t))typeof n=="string"?this.localVariables[e]={value:n}:this.localVariables[e]=n;this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},mounted(){const t=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=k.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new t),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),D.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus()):(this.tab=1,this.differ=new A({element:this.$refs.editor,mode:new t,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),D.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().left),D.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().right),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let t=this.differ.diffs[this.curDiff].leftStartLine,e=this.differ.diffs[this.curDiff].rightStartLine;t>5&&(t-=5),e>5&&(e-=5),this.differ.getEditors().left.scrollToLine(t),this.differ.getEditors().right.scrollToLine(e)},buildPluginMode(){let t=k.aceExports.require("ace/lib/oop"),e=k.aceExports.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,n=["VARIABLE","VARIABLE_DESCRIPTION","VARIABLE_STATE"],l=new RegExp(`(\\b${n.join("\\b|\\b")}\\b)`),r=function(){e.call(this);for(let d in this.$rules)this.$rules[d].unshift({regex:l,token:"support.function"})};t.inherits(r,e);let s=k.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=k.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=k.aceExports.require("ace/mode/folding/ruby").FoldMode,c=function(){this.HighlightRules=r,this.$outdent=new s,this.$behaviour=new i,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},u=k.aceExports.require("ace/mode/ruby").Mode;return t.inherits(c,u),(function(){this.$id="ace/mode/openc3"}).call(c.prototype),c},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
|
|
4
4
|
`)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
package/dist/tools/admin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as Pt } from "../index-DCtILi4r.js";
|
|
2
2
|
import { resolveComponent as p, createBlock as x, openBlock as C, withCtx as h, createVNode as f, createElementVNode as R, createElementBlock as M, createTextVNode as S, Fragment as P, renderList as B, createCommentVNode as et, toDisplayString as V, withKeys as It, withModifiers as Z, mergeProps as Bt, toRaw as Ut } from "vue";
|
|
3
3
|
import { _ as K } from "../CustomIcon-B9m73Gqm.js";
|
|
4
|
-
import { E as qt, a as N } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-
|
|
4
|
+
import { E as qt, a as N } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-gWC4BUC8.js";
|
|
5
5
|
import "single-spa";
|
|
6
|
-
import { T as jt, A as q } from "../TopBar-
|
|
6
|
+
import { T as jt, A as q } from "../TopBar-Cp-eD08M.js";
|
|
7
7
|
const Wt = {
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: Boolean
|
|
@@ -320,61 +320,61 @@ const We = /* @__PURE__ */ K(Xt, [["render", te], ["__scopeId", "data-v-fb16376a
|
|
|
320
320
|
displayName: "Plugins",
|
|
321
321
|
name: "PluginsTab",
|
|
322
322
|
path: "plugins",
|
|
323
|
-
component: () => import("../PluginsTab-
|
|
323
|
+
component: () => import("../PluginsTab-Dqe3QG7v.js")
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
displayName: "Targets",
|
|
327
327
|
name: "TargetsTab",
|
|
328
328
|
path: "targets",
|
|
329
|
-
component: () => import("../TargetsTab-
|
|
329
|
+
component: () => import("../TargetsTab-D2BGCJ0P.js")
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
displayName: "Interfaces",
|
|
333
333
|
name: "InterfacesTab",
|
|
334
334
|
path: "interfaces",
|
|
335
|
-
component: () => import("../InterfacesTab-
|
|
335
|
+
component: () => import("../InterfacesTab-BrLlsu3d.js")
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
displayName: "Routers",
|
|
339
339
|
name: "RoutersTab",
|
|
340
340
|
path: "routers",
|
|
341
|
-
component: () => import("../RoutersTab-
|
|
341
|
+
component: () => import("../RoutersTab-4hmbIlHw.js")
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
displayName: "Microservices",
|
|
345
345
|
name: "MicroservicesTab",
|
|
346
346
|
path: "microservices",
|
|
347
|
-
component: () => import("../MicroservicesTab-
|
|
347
|
+
component: () => import("../MicroservicesTab-C8XPgBnj.js")
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
displayName: "Packages",
|
|
351
351
|
name: "PackagesTab",
|
|
352
352
|
path: "packages",
|
|
353
|
-
component: () => import("../PackagesTab-
|
|
353
|
+
component: () => import("../PackagesTab-CAa7ZnYV.js")
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
displayName: "Tools",
|
|
357
357
|
name: "ToolsTab",
|
|
358
358
|
path: "tools",
|
|
359
|
-
component: () => import("../ToolsTab-
|
|
359
|
+
component: () => import("../ToolsTab-B9oDk5JF.js")
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
displayName: "Redis",
|
|
363
363
|
name: "RedisTab",
|
|
364
364
|
path: "redis",
|
|
365
|
-
component: () => import("../RedisTab-
|
|
365
|
+
component: () => import("../RedisTab-DCV2ZWhh.js")
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
368
|
displayName: "Secrets",
|
|
369
369
|
name: "SecretsTab",
|
|
370
370
|
path: "secrets",
|
|
371
|
-
component: () => import("../SecretsTab-
|
|
371
|
+
component: () => import("../SecretsTab-BjkkkzJa.js")
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
displayName: "Settings",
|
|
375
375
|
name: "SettingsTab",
|
|
376
376
|
path: "settings",
|
|
377
|
-
component: () => import("../SettingsTab-
|
|
377
|
+
component: () => import("../SettingsTab-3wbEzcjJ.js")
|
|
378
378
|
}
|
|
379
379
|
], ne = {
|
|
380
380
|
components: {
|
package/dist/tools/base.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-COA1HwFc.cjs"),e=require("vue"),y=require("../CustomIcon-CEc927h0.cjs"),A=require("single-spa"),E=require("../UpgradeToEnterpriseDialog-DHOqnrRc.cjs"),h=require("../format-B22VpiOS.cjs"),H=require("../ClassificationBanners-CKzacoSH.cjs"),D=require("../icons.cjs"),q=require("../AstroStatus-CILMWL6F.cjs"),j=require("../purify.es-B9BW70-4.cjs"),Z=require("../index-D-zO4ghE.cjs");function b(t,o){const s=+h.toDate(t)-+h.toDate(o);return s<0?-1:s>0?1:s}function W(t){return h.constructFrom(t,Date.now())}function J(t,o,s){const[r,n]=h.normalizeDates(s==null?void 0:s.in,t,o),a=r.getFullYear()-n.getFullYear(),d=r.getMonth()-n.getMonth();return a*12+d}function G(t){return o=>{const r=(t?Math[t]:Math.trunc)(o);return r===0?0:r}}function K(t,o){return+h.toDate(t)-+h.toDate(o)}function Q(t,o){const s=h.toDate(t,o==null?void 0:o.in);return s.setHours(23,59,59,999),s}function $(t,o){const s=h.toDate(t,o==null?void 0:o.in),r=s.getMonth();return s.setFullYear(s.getFullYear(),r+1,0),s.setHours(23,59,59,999),s}function ee(t,o){const s=h.toDate(t,o==null?void 0:o.in);return+Q(s,o)==+$(s,o)}function te(t,o,s){const[r,n,a]=h.normalizeDates(s==null?void 0:s.in,t,t,o),d=b(n,a),i=Math.abs(J(n,a));if(i<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-d*i);let c=b(n,a)===-d;ee(r)&&i===1&&b(r,a)===1&&(c=!1);const u=d*(i-+c);return u===0?0:u}function oe(t,o,s){const r=K(t,o)/1e3;return G(s==null?void 0:s.roundingMethod)(r)}function ne(t,o,s){const r=h.getDefaultOptions(),n=(s==null?void 0:s.locale)??r.locale??h.enUS,a=2520,d=b(t,o);if(isNaN(d))throw new RangeError("Invalid time value");const i=Object.assign({},s,{addSuffix:s==null?void 0:s.addSuffix,comparison:d}),[c,u]=h.normalizeDates(s==null?void 0:s.in,...d>0?[o,t]:[t,o]),m=oe(u,c),v=(h.getTimezoneOffsetInMilliseconds(u)-h.getTimezoneOffsetInMilliseconds(c))/1e3,p=Math.round((m-v)/60);let _;if(p<2)return s!=null&&s.includeSeconds?m<5?n.formatDistance("lessThanXSeconds",5,i):m<10?n.formatDistance("lessThanXSeconds",10,i):m<20?n.formatDistance("lessThanXSeconds",20,i):m<40?n.formatDistance("halfAMinute",0,i):m<60?n.formatDistance("lessThanXMinutes",1,i):n.formatDistance("xMinutes",1,i):p===0?n.formatDistance("lessThanXMinutes",1,i):n.formatDistance("xMinutes",p,i);if(p<45)return n.formatDistance("xMinutes",p,i);if(p<90)return n.formatDistance("aboutXHours",1,i);if(p<h.minutesInDay){const g=Math.round(p/60);return n.formatDistance("aboutXHours",g,i)}else{if(p<a)return n.formatDistance("xDays",1,i);if(p<h.minutesInMonth){const g=Math.round(p/h.minutesInDay);return n.formatDistance("xDays",g,i)}else if(p<h.minutesInMonth*2)return _=Math.round(p/h.minutesInMonth),n.formatDistance("aboutXMonths",_,i)}if(_=te(u,c),_<12){const g=Math.round(p/h.minutesInMonth);return n.formatDistance("xMonths",g,i)}else{const g=_%12,k=Math.trunc(_/12);return g<3?n.formatDistance("aboutXYears",k,i):g<9?n.formatDistance("overXYears",k,i):n.formatDistance("almostXYears",k+1,i)}}function se(t,o){return ne(t,W(t),o)}const re={data:function(){return{localDate:new Date,displayLocal:localStorage.clock_zone==="local",display24h:!localStorage.clock_12h,dateMode:localStorage.clock_dateMode||"monthFirst",intervalCount:0,showMenu:!1,menuX:0,menuY:0}},computed:{utcDate:function(){return new Date(this.localDate.getTime()+this.localDate.getTimezoneOffset()*6e4)},formatString:function(){let t;switch(this.dateMode){case"monthFirst":t="LL/dd/yyy";break;case"dayFirst":t="dd/LL/yyy";break;case"number":t="D";break}let o;return this.display24h?o="HH:mm:ss":o="hh:mm:ss a",`${t} ${o}`}},watch:{displayLocal:function(t){localStorage.clock_zone=t?"local":"utc"},display24h:function(t){t?delete localStorage.clock_12h:localStorage.clock_12h=!0},dateMode:function(t){t.match(/^monthFirst$|^dayFirst$|^number$/)&&(localStorage.clock_dateMode=t)}},created:function(){setInterval(()=>{this.intervalCount++,this.localDate=new Date},this.intervalCount<10?100:1e3)},methods:{openMenu:function(t){t.preventDefault(),this.showMenu=!1,this.menuX=t.clientX,this.menuY=t.clientY,this.$nextTick(()=>{this.showMenu=!0})},toggleDisplayLocal:function(){this.displayLocal=!this.displayLocal},toggleDisplay24h:function(){this.display24h=!this.display24h},setMonthFirst:function(){this.dateMode="monthFirst"},setDayFirst:function(){this.dateMode="dayFirst"},setNumber:function(){this.dateMode="number"},formatDate:function(t,o){return h.format(t,o,{useAdditionalDayOfYearTokens:!0})}}};function ae(t,o,s,r,n,a){const d=e.resolveComponent("v-list-item-title"),i=e.resolveComponent("v-list-item"),c=e.resolveComponent("v-divider"),u=e.resolveComponent("v-list"),m=e.resolveComponent("v-menu");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("span",{style:{cursor:"context-menu"},class:"font-weight-bold",onContextmenu:o[0]||(o[0]=(...v)=>a.openMenu&&a.openMenu(...v))},e.toDisplayString(a.formatDate(t.displayLocal?t.localDate:a.utcDate,a.formatString))+" ("+e.toDisplayString(t.displayLocal?"local":"UTC")+") ",33),e.createVNode(m,{modelValue:t.showMenu,"onUpdate:modelValue":o[1]||(o[1]=v=>t.showMenu=v),target:[t.menuX,t.menuY]},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.toggleDisplayLocal},{default:e.withCtx(()=>[e.createTextVNode(" Display "+e.toDisplayString(t.displayLocal?"UTC":"local time"),1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.toggleDisplay24h},{default:e.withCtx(()=>[e.createTextVNode(" Display "+e.toDisplayString(t.display24h?12:24)+" hour clock ",1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),t.dateMode!=="monthFirst"?(e.openBlock(),e.createBlock(i,{key:0},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setMonthFirst},{default:e.withCtx(()=>[...o[2]||(o[2]=[e.createTextVNode(" Display mm/dd/yyyy ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),t.dateMode!=="dayFirst"?(e.openBlock(),e.createBlock(i,{key:1},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setDayFirst},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" Display dd/mm/yyyy ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),t.dateMode!=="number"?(e.openBlock(),e.createBlock(i,{key:2},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setNumber},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode(" Display day of year ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","target"])])}const L=y._export_sfc(re,[["render",ae]]),ie={components:{ClockFooter:L,UpgradeToEnterpriseDialog:E.UpgradeToEnterpriseDialog},data(){return{icon:"/img/icon.png",edition:"",enterprise:!1,license:"",sourceUrl:"",version:"",showUpgradeToEnterpriseDialog:!1,chromeless:null}},computed:{footerClass(){return this.enterprise?"enterprise":"core"}},created:function(){const t=new URLSearchParams(window.location.search);this.chromeless=t.get("chromeless"),this.getSourceUrl(),C.Ei.get("/openc3-api/info").then(o=>{o.data.enterprise?this.edition="COSMOS Enterprise":this.edition="COSMOS Core",this.enterprise=o.data.enterprise,this.license=o.data.license,this.version=o.data.version})},methods:{getSourceUrl:function(){new C.Oi().get_settings(["source_url"]).then(t=>{this.sourceUrl=t[0]})},upgrade:function(){this.enterprise||(this.showUpgradeToEnterpriseDialog=!0)}}},le=["src"],ce=["href"],de={class:"justify-right"};function ue(t,o,s,r,n,a){const d=e.resolveComponent("v-spacer"),i=e.resolveComponent("clock-footer"),c=e.resolveComponent("upgrade-to-enterprise-dialog"),u=e.resolveComponent("v-footer");return n.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u,{key:0,id:"footer",app:"",height:"33"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.icon,alt:"OpenC3"},null,8,le),e.createElementVNode("span",{class:e.normalizeClass(a.footerClass),onClick:o[0]||(o[0]=(...m)=>a.upgrade&&a.upgrade(...m))}," OpenC3 "+e.toDisplayString(n.edition)+" "+e.toDisplayString(n.version)+" © 2025 - License: "+e.toDisplayString(n.license),3),e.createVNode(d),e.createElementVNode("a",{href:n.sourceUrl,class:"text-white text-decoration-underline"}," Source ",8,ce),e.createVNode(d),e.createElementVNode("div",de,[e.createVNode(i)]),e.createVNode(c,{modelValue:n.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[1]||(o[1]=m=>n.showUpgradeToEnterpriseDialog=m),reason:"Enterprise is Commercially Licensed"},null,8,["modelValue"])]),_:1}))}const pe=y._export_sfc(ie,[["render",ue],["__scopeId","data-v-d165cc51"]]),T=1e3,{highestLevel:me,orderByLevel:fe,groupByLevel:he}=q.AstroStatus,_e={components:{AstroStatusIndicator:D.AstroStatusIndicator},props:{size:{type:[String,Number],default:26}},emits:["ephemeral"],data:function(){return{AstroStatusColors:D.AstroStatusColors,alerts:[],cable:new C.xi,scriptCable:new C.xi("/script-api/cable"),subscription:null,scriptSubscription:null,numScripts:0,notifications:[],showNotificationPane:!1,toastNotification:{},notificationDialog:!1,selectedNotification:{},settingsDialog:!1,showToast:!0}},computed:{activeScripts:function(){return`Scripts: ${this.numScripts}`},notificationVsAlert:function(){return"notifications"},iconStatus:function(){if(this.unreadNotifications.length===0)return"off";const t=this.unreadNotifications.map(o=>o.level).filter((o,s,r)=>r.indexOf(o)===s);return D.UnknownToAstroStatus[me(t)]},readNotifications:function(){return this.notifications.filter(t=>t.read).sort((t,o)=>o.time-t.time)},unreadNotifications:function(){return this.notifications.filter(t=>!t.read).sort((t,o)=>o.time-t.time)},unreadCount:function(){return this.unreadNotifications.length},notificationList:function(){const t=he(this.unreadNotifications);let o=fe(Object.keys(t),s=>s).flatMap(s=>[{header:s.charAt(0).toUpperCase()+s.slice(1)},...t[s]]);return this.readNotifications.length&&(o=o.concat([{header:"Read"},...this.readNotifications])),o}},watch:{showNotificationPane:function(t){t||(this.selectedNotification.message?(this.notificationDialog=!1,this.selectedNotification={}):this.markAllAsRead())},showToast:function(t){localStorage.notoast=!t}},created:function(){this.showToast=localStorage.notoast==="false",this.subscribe(),this.alerts=this.$store.state.notifyHistory,C.Ei.get("/script-api/running-script").then(t=>{this.numScripts=t.data.total})},unmounted:function(){this.subscription&&this.subscription.unsubscribe(),this.scriptSubscription&&this.scriptSubscription.unsubscribe(),this.cable.disconnect(),this.scriptCable.disconnect()},methods:{getStatus:function(t){return D.UnknownToAstroStatus[t]},markAllAsRead:function(){this.notifications.forEach(t=>{t.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<t.msg_id)&&(localStorage.lastReadNotification=t.msg_id)})},clearNotifications:function(){this.markAllAsRead(),this.notifications=[],localStorage.notificationStreamOffset=localStorage.lastReadNotification,this.showNotificationPane=!1},toggleNotificationPane:function(){this.showNotificationPane=!this.showNotificationPane},toggleSettingsDialog:function(){this.settingsDialog=!this.settingsDialog},openDialog:function(t,o=!1){t.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<t.msg_id)&&(localStorage.lastReadNotification=t.msg_id),this.selectedNotification=t,this.notificationDialog=!0},navigate:function(t){window.open(t,"_blank")},subscribe:function(){this.cable.createSubscription("MessagesChannel",window.openc3Scope,{received:t=>this.receiveMessage(t)},{start_offset:localStorage.notificationStreamOffset||localStorage.lastReadNotification,types:["notification","alert","ephemeral"]}).then(t=>{this.subscription=t}),this.scriptCable.createSubscription("AllScriptsChannel",window.openc3Scope,{received:t=>this.receiveScript(t)}).then(t=>{this.scriptSubscription=t})},receiveMessage:function(t){this.cable.recordPing(),t.length>T&&t.splice(0,t.length-T);let o=t.filter(r=>r.type==="ephemeral");o&&o.length>0&&(t=t.filter(r=>r.type!=="ephemeral"),o.forEach(r=>{this.$emit("ephemeral",r)}));let s=!1;if(t.forEach(r=>{r.read=r.msg_id<=localStorage.lastReadNotification,r.level=r.level||"INFO",!r.read&&["FATAL","ERROR","WARN"].includes(r.level)&&(s=!0,this.toastNotification=r)}),this.showToast&&s){let r=5e3;["FATAL","ERROR"].includes(this.toastNotification.level)&&(r=null),this.$notify&&this.$notify[this.toastNotification.level]({...this.toastNotification,type:"notification",duration:r,saveToHistory:!1})}this.notifications.length+t.length>T&&this.notifications.splice(0,this.notifications.length+t.length-T),this.notifications=this.notifications.concat(t)},receiveScript:function(t){this.cable.recordPing(),this.numScripts=t.active_scripts},formatShortDateTime:function(t){if(!t)return"";const o=new Date(t/1e6);return se(o,{addSuffix:!0})}}};function ge(t,o,s,r,n,a){const d=e.resolveComponent("v-overlay"),i=e.resolveComponent("rux-monitoring-icon"),c=e.resolveComponent("v-spacer"),u=e.resolveComponent("v-btn"),m=e.resolveComponent("v-tooltip"),v=e.resolveComponent("v-card-title"),p=e.resolveComponent("v-card-text"),_=e.resolveComponent("v-divider"),g=e.resolveComponent("v-list-subheader"),k=e.resolveComponent("rux-status"),V=e.resolveComponent("v-list-item-title"),N=e.resolveComponent("v-list-item-subtitle"),w=e.resolveComponent("v-list-item"),x=e.resolveComponent("v-list"),S=e.resolveComponent("v-card"),B=e.resolveComponent("v-menu"),l=e.resolveComponent("astro-status-indicator"),M=e.resolveComponent("v-card-subtitle"),X=e.resolveComponent("v-icon"),O=e.resolveComponent("v-card-actions"),R=e.resolveComponent("v-dialog"),Y=e.resolveComponent("v-switch");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(d,{"model-value":t.showNotificationPane,class:"overlay"},null,8,["model-value"]),e.createVNode(B,{modelValue:t.showNotificationPane,"onUpdate:modelValue":o[0]||(o[0]=f=>t.showNotificationPane=f),transition:"slide-y-transition","close-on-content-click":!1,offset:[12,102]},{activator:e.withCtx(({props:f})=>[e.createVNode(i,e.mergeProps(f,{class:"rux-icon",icon:a.notificationVsAlert,label:"Notifications",sublabel:a.activeScripts,status:a.iconStatus,notifications:a.unreadNotifications.length}),null,16,["icon","sublabel","status","notifications"])]),default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(v,{class:"d-flex align-center justify-content-space-between"},{default:e.withCtx(()=>[o[7]||(o[7]=e.createElementVNode("span",null," Notifications ",-1)),e.createVNode(c),e.createVNode(m,{"open-delay":600,location:"top"},{activator:e.withCtx(({props:f})=>[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(f)),[e.createVNode(u,{class:"ml-1",icon:"mdi-notification-clear-all ",variant:"text","data-test":"clear-notifications","aria-label":"Dismiss All Notifications",onClick:a.clearNotifications},null,8,["onClick"])],16)]),default:e.withCtx(()=>[o[6]||(o[6]=e.createElementVNode("span",null," Dismiss All Notifications ",-1))]),_:1}),e.createVNode(u,{icon:"astro:settings",variant:"text",class:"ml-1","data-test":"notification-settings","aria-label":"Notification Settings",onClick:a.toggleSettingsDialog},null,8,["onClick"])]),_:1}),t.notifications.length===0?(e.openBlock(),e.createBlock(p,{key:0},{default:e.withCtx(()=>[...o[8]||(o[8]=[e.createTextVNode(" No notifications ",-1)])]),_:1})):(e.openBlock(),e.createBlock(x,{key:1,lines:"two",width:"420","max-height":"80vh",class:"overflow-y-auto","data-test":"notification-list"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.notificationList,(f,U)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f.header?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[U!==0?(e.openBlock(),e.createBlock(_,{key:U,class:"mb-2"})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(g,{key:f.header},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.header),1)]),_:2},1024))],64)):(e.openBlock(),e.createBlock(w,{key:`notification-${U}`,class:"pl-2",onClick:tt=>a.openDialog(f)},{prepend:e.withCtx(()=>[e.createVNode(k,{class:"px-2",status:a.getStatus(f.level)},null,8,["status"])]),default:e.withCtx(()=>[e.createVNode(V,{class:e.normalizeClass({"text--secondary":f.read,"text-wrap":!0})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.message),1)]),_:2},1032,["class"]),e.createVNode(N,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.formatShortDateTime(f.time)),1)]),_:2},1024)]),_:2},1032,["onClick"]))],64))),256))]),_:1}))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(R,{modelValue:t.notificationDialog,"onUpdate:modelValue":o[3]||(o[3]=f=>t.notificationDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.selectedNotification.message)+" ",1),e.createVNode(c),e.createVNode(l,{status:t.selectedNotification.level||"INFO"},null,8,["status"])]),_:1}),e.createVNode(M,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.formatShortDateTime(t.selectedNotification.time)),1)]),_:1}),e.createVNode(_),e.createVNode(O,null,{default:e.withCtx(()=>[t.selectedNotification.url?(e.openBlock(),e.createBlock(u,{key:0,color:"primary",variant:"text",onClick:o[1]||(o[1]=f=>a.navigate(t.selectedNotification.url))},{default:e.withCtx(()=>[o[10]||(o[10]=e.createTextVNode(" Open ",-1)),e.createVNode(X,{end:""},{default:e.withCtx(()=>[...o[9]||(o[9]=[e.createTextVNode(" mdi-open-in-new ",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(u,{color:"primary",variant:"text",onClick:o[2]||(o[2]=f=>t.notificationDialog=!1)},{default:e.withCtx(()=>[...o[11]||(o[11]=[e.createTextVNode(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createVNode(R,{modelValue:t.settingsDialog,"onUpdate:modelValue":o[5]||(o[5]=f=>t.settingsDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[...o[12]||(o[12]=[e.createTextVNode(" Notification settings ",-1)])]),_:1}),e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:t.showToast,"onUpdate:modelValue":o[4]||(o[4]=f=>t.showToast=f),label:"Show toasts",color:"primary"},null,8,["modelValue"])]),_:1}),e.createVNode(_),e.createVNode(O,null,{default:e.withCtx(()=>[e.createVNode(u,{color:"primary",variant:"text",onClick:a.toggleSettingsDialog},{default:e.withCtx(()=>[...o[13]||(o[13]=[e.createTextVNode(" Close ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const F=y._export_sfc(_e,[["render",ge],["__scopeId","data-v-59957c3a"]]),ve={components:{UpgradeToEnterpriseDialog:E.UpgradeToEnterpriseDialog},data:function(){return{scopes:["DEFAULT"],scope:"DEFAULT",showUpgradeToEnterpriseDialog:!1}}};function we(t,o,s,r,n,a){const d=e.resolveComponent("v-select"),i=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",{style:{cursor:"pointer"},onClick:o[2]||(o[2]=c=>t.showUpgradeToEnterpriseDialog=!0)},[e.createVNode(d,{modelValue:t.scope,"onUpdate:modelValue":o[0]||(o[0]=c=>t.scope=c),items:t.scopes,disabled:t.scopes.length<=1,label:"Scope",density:"compact",variant:"outlined","hide-details":"",style:{"max-width":"150px"}},null,8,["modelValue","items","disabled"]),e.createVNode(i,{modelValue:t.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[1]||(o[1]=c=>t.showUpgradeToEnterpriseDialog=c),reason:"Enterprise allows additional Scopes"},null,8,["modelValue"])])}const I=y._export_sfc(ve,[["render",we]]),Ce={components:{UpgradeToEnterpriseDialog:E.UpgradeToEnterpriseDialog},props:{size:{type:[String,Number],default:26}},data:function(){let t=OpenC3Auth.user();return{api:new C.Oi,showUserMenu:!1,authenticated:!!localStorage.openc3Token,name:t.name,username:t.preferred_username,showUpgradeToEnterpriseDialog:!1,activeUsers:["None"],newsFeed:!1,news:[]}},computed:{unreadNews:function(){return this.news.filter(t=>!t.read)}},watch:{showUserMenu:function(t,o){t===!0&&(this.news.length>0&&(this.news.forEach(s=>{s.read=!0}),localStorage.lastNewsRead=this.news[0].date),this.name!=="Anonymous"&&C.Ei.get("/openc3-api/users/active").then(s=>{this.activeUsers=s.data.filter(r=>!r.includes(this.name)),this.activeUsers.length===0&&(this.activeUsers=["None"])}))}},created:function(){this.api.get_setting("news_feed").then(t=>{t&&(this.newsFeed=t,this.newsFeed&&(this.fetchNews(),setInterval(this.fetchNews,3600*1e3)))}).catch(t=>{})},methods:{sanitizeNews(t){return j.purify.sanitize(t)},refreshNews(){this.api.update_news().then(()=>{this.fetchNews()})},formatDate(t){return t.split("T")[0]},fetchNews:function(){C.Ei.get("/openc3-api/news").then(t=>{this.news=t.data.sort((o,s)=>Date.parse(s.date)-Date.parse(o.date)),localStorage.lastNewsRead&&this.news.forEach(o=>{o.read=Date.parse(o.date)<=Date.parse(localStorage.lastNewsRead)})})},logout:function(){OpenC3Auth.logout(),C.Ei.put(`/openc3-api/users/logout/${this.username}`)},login:function(){OpenC3Auth.login(location.href)},roles:function(){return this.name==="Anonymous"?"Admin":OpenC3Auth.userroles().map(t=>this.capitalize(t)).sort().join(", ")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}},Ne={style:{"text-align":"center",margin:"5px"}},ke={key:0},ye={class:"roles"},Ve={class:"pb-3 roles"},xe={key:1},Se={key:0,class:"pa-3"},De={key:2},Te={key:0},be={class:"news-title"},Ee={class:"news-date"},Be=["innerHTML"];function Me(t,o,s,r,n,a){const d=e.resolveComponent("v-overlay"),i=e.resolveComponent("rux-monitoring-icon"),c=e.resolveComponent("v-btn"),u=e.resolveComponent("v-row"),m=e.resolveComponent("v-card-text"),v=e.resolveComponent("v-col"),p=e.resolveComponent("v-list-item-title"),_=e.resolveComponent("v-list-item"),g=e.resolveComponent("v-list"),k=e.resolveComponent("v-card"),V=e.resolveComponent("v-menu"),N=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(d,{"model-value":t.showUserMenu,class:"overlay"},null,8,["model-value"]),e.createVNode(V,{modelValue:t.showUserMenu,"onUpdate:modelValue":o[1]||(o[1]=w=>t.showUserMenu=w),transition:"slide-y-transition","close-on-content-click":!1,offset:20},{activator:e.withCtx(({props:w})=>[e.createVNode(i,e.mergeProps(w,{class:"rux-icon",icon:"person",status:"off",label:t.name,sublabel:a.roles(),notifications:a.unreadNews.length}),null,16,["label","sublabel","notifications"])]),default:e.withCtx(()=>[e.createVNode(k,null,{default:e.withCtx(()=>[e.createVNode(m,{class:"text-center"},{default:e.withCtx(()=>[e.createElementVNode("div",Ne,e.toDisplayString(t.name),1),t.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("div",ye,"Username: "+e.toDisplayString(t.username),1),e.createElementVNode("div",Ve,"Roles: "+e.toDisplayString(a.roles()),1)])):e.createCommentVNode("",!0),t.authenticated?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(c,{block:"",color:"primary",onClick:a.logout},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" Logout ",-1)])]),_:1},8,["onClick"]),t.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(u,{class:"pt-3 user-title"},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode("Other Active Users:",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.activeUsers,(w,x)=>(e.openBlock(),e.createBlock(u,{key:x,class:"user"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1024))),128))])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(c,{block:"",color:"primary",onClick:a.login},{default:e.withCtx(()=>[...o[5]||(o[5]=[e.createTextVNode(" Login ",-1)])]),_:1},8,["onClick"])])),t.name==="Anonymous"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"pt-2 link",onClick:o[0]||(o[0]=w=>t.showUpgradeToEnterpriseDialog=!0)},[...o[6]||(o[6]=[e.createTextVNode(" Click to learn more about",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" COSMOS Enterprise ",-1)])])):e.createCommentVNode("",!0)]),_:1}),t.newsFeed?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(u,{"no-gutters":"",class:"news-header"},{default:e.withCtx(()=>[e.createVNode(v,{cols:"auto",class:"me-auto"},{default:e.withCtx(()=>[...o[7]||(o[7]=[e.createTextVNode("COSMOS News",-1)])]),_:1}),e.createVNode(v,{cols:"auto"},{default:e.withCtx(()=>[e.createVNode(c,{color:"primary",density:"compact",block:"",onClick:a.refreshNews},{default:e.withCtx(()=>[...o[8]||(o[8]=[e.createTextVNode(" Refresh ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}),e.createVNode(g,{lines:"two",width:"420","max-height":"75vh",class:"overflow-y-auto","data-test":"news-list"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news,(w,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`news-${x}`},[o[9]||(o[9]=e.createElementVNode("hr",null,null,-1)),e.createVNode(_,{class:"pl-2"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createElementVNode("span",be,e.toDisplayString(w.title),1),e.createElementVNode("span",Ee,e.toDisplayString(a.formatDate(w.date)),1)]),_:2},1024),e.createElementVNode("div",{innerHTML:a.sanitizeNews(w.body)},null,8,Be)]),_:2},1024)],64))),128))]),_:1})])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:t.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[2]||(o[2]=w=>t.showUpgradeToEnterpriseDialog=w),reason:"Enterprise has individual users with RBAC"},null,8,["modelValue"])])}const P=y._export_sfc(Ce,[["render",Me],["__scopeId","data-v-da895b0b"]]),Ue={name:"ContextTag",data(){return{api:new C.Oi,contextTag:{text:null,fontColor:null,backgroundColor:null},contextTagRefreshInterval:null}},created(){this.getContextTagSettings().then(()=>{this.contextTag.text&&this.startContextTagAutoRefresh()})},beforeUnmount(){this.stopContextTagAutoRefresh()},methods:{getContextTagSettings(){return this.api.get_setting("context_tag").then(t=>{if(t){const o=JSON.parse(t);this.contextTag={text:o.text,fontColor:o.fontColor,backgroundColor:o.backgroundColor}}}).catch(t=>{console.error(t)})},startContextTagAutoRefresh(){this.stopContextTagAutoRefresh(),this.contextTagRefreshInterval=setInterval(()=>{this.getContextTagSettings()},6e4)},stopContextTagAutoRefresh(){this.contextTagRefreshInterval&&(clearInterval(this.contextTagRefreshInterval),this.contextTagRefreshInterval=null)}}};function Ae(t,o,s,r,n,a){return n.contextTag.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"context-tag mr-2 mt-4",style:e.normalizeStyle({color:n.contextTag.fontColor,backgroundColor:n.contextTag.backgroundColor})},e.toDisplayString(n.contextTag.text),5)):e.createCommentVNode("",!0)}const z=y._export_sfc(Ue,[["render",Ae],["__scopeId","data-v-02121ab2"]]),Oe={components:{Notifications:F,ScopeSelector:I,UserMenu:P,UpgradeToEnterpriseDialog:E.UpgradeToEnterpriseDialog,ContextTag:z},props:{edition:{type:String,default:""}},data(){return{api:new C.Oi,timeZone:"local",subtitle:null,astro:{hideClock:!1},items:[],drawer:!0,appNav:{},logo:"/img/logo.png",initiallyOpen:[],showUpgradeToEnterpriseDialog:!1,chromeless:null}},computed:{shownTools:function(){let t={};for(let o of Object.keys(this.appNav))this.appNav[o].shown&&this.appNav[o].category!=="Admin"&&(t[o]=this.appNav[o]);return t},adminTools:function(){let t={};for(let o of Object.keys(this.appNav))this.appNav[o].shown&&this.appNav[o].category==="Admin"&&(t[o]=this.appNav[o]);return t},astroTimeZone:function(){return this.timeZone==="local"?Intl.DateTimeFormat().resolvedOptions().timeZone:this.timeZone}},created(){const t=new URLSearchParams(window.location.search);this.chromeless=t.get("chromeless"),this.api.get_setting("astro").then(o=>{o&&(this.astro=JSON.parse(o))}).catch(o=>{}),this.api.get_setting("subtitle").then(o=>{o&&(this.subtitle=o)}).catch(o=>{}),this.api.get_setting("time_zone").then(o=>{o&&(this.timeZone=o)}).catch(o=>{}),C.Ei.get("/openc3-api/tools/all",{params:{scope:"DEFAULT"}}).then(o=>{this.appNav=o.data;let s=1;for(let r of Object.keys(this.appNav)){if(this.appNav[r].shown){if(this.appNav[r].category&&this.appNav[r].category!=="Admin"){this.initiallyOpen.includes(this.appNav[r].category)||this.initiallyOpen.push(this.appNav[r].category);const n=this.items.filter(a=>a.name===this.appNav[r].category);n.length===0?(this.items.push({id:s,name:this.appNav[r].category,children:[{id:s+1,name:this.appNav[r].name,icon:this.appNav[r].icon,url:this.appNav[r].url,inline_url:this.appNav[r].inline_url,window:this.appNav[r].window}]}),s++):n[0].children.push({id:s,name:this.appNav[r].name,icon:this.appNav[r].icon,url:this.appNav[r].url,inline_url:this.appNav[r].inline_url,window:this.appNav[r].window})}else this.appNav[r].category||this.items.push({id:s,name:this.appNav[r].name,icon:this.appNav[r].icon,url:this.appNav[r].url,inline_url:this.appNav[r].inline_url,window:this.appNav[r].window});s++}if(this.appNav[r].inline_url&&this.appNav[r].folder_name&&this.appNav[r].folder_name!=="base"){let n=this.appNav[r].folder_name,a="@openc3/tool-"+n;A.registerApplication({name:a,app:()=>System.import(a),activeWhen:["/tools/"+n]})}}A.start({urlRerouteOnly:!0}),setInterval(()=>{OpenC3Auth.updateToken(120).then(function(r){r&&OpenC3Auth.setTokens()})},6e4)})},methods:{navigateToUrl:A.navigateToUrl,newTabUrl(t){let o=null;try{t.url[0]=="/"&&t.url[1]!="/"?o=new URL(t.url,window.location.origin):o=new URL(t.url),o.searchParams.set("scope",window.openc3Scope)}catch(s){window.$cosmosNotify.serious({title:`Invalid URL '${t.url}' for tool ${t.name}`,message:s.message}),o.href="/"}return o.href}}},Re=["src"],Le={style:{"text-align":"center","font-size":"18pt"}},Fe=["href","onClick"],Ie=["href"],Pe=["href","onClick"],ze=["href","onClick"],Xe=["href"],Ye=["href"],He=["href"],qe=["href"];function je(t,o,s,r,n,a){const d=e.resolveComponent("v-btn"),i=e.resolveComponent("v-divider"),c=e.resolveComponent("v-icon"),u=e.resolveComponent("v-treeview"),m=e.resolveComponent("v-navigation-drawer"),v=e.resolveComponent("rux-icon"),p=e.resolveComponent("v-row"),_=e.resolveComponent("v-col"),g=e.resolveComponent("rux-clock"),k=e.resolveComponent("v-spacer"),V=e.resolveComponent("context-tag"),N=e.resolveComponent("scope-selector"),w=e.resolveComponent("notifications"),x=e.resolveComponent("user-menu"),S=e.resolveComponent("v-app-bar"),B=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",null,[n.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,id:"openc3-nav-drawer","model-value":n.drawer},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.logo,class:"logo",alt:"OpenC3"},null,8,Re),e.createElementVNode("div",{class:"cosmos",onClick:o[0]||(o[0]=l=>n.showUpgradeToEnterpriseDialog=!0)}," COSMOS "),e.createElementVNode("div",Le,e.toDisplayString(n.subtitle),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.adminTools,(l,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:"ma-3"},[e.createVNode(d,{block:"",size:"small",href:l.url,class:"fixcenter",color:"primary",onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" Admin Console ",-1)])]),_:1},8,["href","onClick"])]))),128)),e.createVNode(i),e.createVNode(u,{items:n.items,opened:n.initiallyOpen,"item-value":"name",density:"compact","open-on-click":""},{prepend:e.withCtx(({item:l})=>[l.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.window==="INLINE"?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},[e.createVNode(c,{class:"mr-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.icon),1)]),_:2},1024)],8,Fe)):(e.openBlock(),e.createElementBlock("a",{key:1,href:l.url},[e.createVNode(c,{class:"mr-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.icon),1)]),_:2},1024)],8,Ie))],64)):e.createCommentVNode("",!0)]),title:e.withCtx(({item:l})=>[l.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.window==="INLINE"?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,ze)):l.window==="IFRAME"?(e.openBlock(),e.createElementBlock("a",{key:1,href:"/tools/iframe?title="+encodeURIComponent(l.name)+"&url="+l.url},e.toDisplayString(l.name),9,Xe)):l.window==="SAME"?(e.openBlock(),e.createElementBlock("a",{key:2,href:l.url},e.toDisplayString(l.name),9,Ye)):(e.openBlock(),e.createElementBlock("a",{key:3,href:l.url,target:"_blank"},e.toDisplayString(l.name),9,He))],64)):(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,Pe))]),append:e.withCtx(({item:l})=>[l.icon?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.newTabUrl(l),target:"_blank"},[e.createVNode(c,null,{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode("mdi-open-in-new",-1)])]),_:1})],8,qe)):e.createCommentVNode("",!0)]),_:1},8,["items","opened"])]),_:1},8,["model-value"])),n.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(S,{key:1,id:"openc3-app-toolbar"},{default:e.withCtx(()=>[e.createVNode(p,{class:"flex-nowrap",justify:"space-between","no-gutters":""},{default:e.withCtx(()=>[e.createVNode(_,{"align-self":"start"},{default:e.withCtx(()=>[e.createVNode(p,{class:"flex-nowrap"},{default:e.withCtx(()=>[e.createVNode(v,{class:"ml-3 mr-2 pa-2",size:"small",icon:"apps",onClick:o[1]||(o[1]=l=>n.drawer=!n.drawer)}),o[5]||(o[5]=e.createElementVNode("span",{id:"openc3-menu"},null,-1))]),_:1})]),_:1}),e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(p,{class:"clock flex-nowrap mt-0"},{default:e.withCtx(()=>[n.astro.hideClock?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(g,{key:0,"date-in":"",timezone:a.astroTimeZone},null,8,["timezone"]))]),_:1})]),_:1}),e.createVNode(_,{"align-self":"center",class:"mt-2"},{default:e.withCtx(()=>[e.createVNode(p,{class:"flex-nowrap"},{default:e.withCtx(()=>[e.createVNode(k),e.createVNode(V),e.createVNode(N,{class:"mr-6 mt-4"}),e.createVNode(w,{class:"mr-6","data-test":"notifications"}),e.createVNode(x,{class:"mr-6"})]),_:1})]),_:1})]),_:1})]),_:1})),e.createVNode(B,{modelValue:n.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[2]||(o[2]=l=>n.showUpgradeToEnterpriseDialog=l),reason:"Enterprise adds Calendar and Autonomic"},null,8,["modelValue"])])}const Ze=y._export_sfc(Oe,[["render",je],["__scopeId","data-v-6d806ce5"]]),We={data(){return{isSet:!0,password:"",confirmPassword:"",oldPassword:"",reset:!1,alert:"",alertType:"success",showAlert:!1}},computed:{options:function(){return{noAuth:!0,noScope:!0}},rules:function(){return{matchPassword:()=>this.password===this.confirmPassword||"Passwords must match"}},formValid:function(){return this.reset?this.isSet?!!this.oldPassword&&!!this.password&&this.password===this.confirmPassword:!!this.password&&this.password===this.confirmPassword:!!this.password}},created:function(){C.Ei.get("/openc3-api/auth/token-exists",this.options).then(t=>{this.isSet=!!t.data.result,this.isSet||(this.reset=!0)})},mounted:function(){localStorage.openc3Token&&this.verifyPassword(localStorage.openc3Token,!0)},methods:{showReset:function(){this.reset=!0},login:function(t){localStorage.openc3Token=t.data;const o=new URLSearchParams(window.location.search).get("redirect");o!=null&&o.startsWith("/tools/")?window.location=decodeURI(o):window.location="/"},verifyPassword:function(t,o){t||(t=this.password),this.showAlert=!1,C.Ei.post("/openc3-api/auth/verify",{data:{token:t},...this.options}).then(s=>{this.login(s)}).catch(s=>{(s==null?void 0:s.status)===401?this.alert="Incorrect password":this.alert=s.message||"Something went wrong...",this.alertType="warning",this.showAlert=!o})},setPassword:function(){this.showAlert=!1,C.Ei.post("/openc3-api/auth/set",{data:{old_token:this.oldPassword,token:this.password},...this.options}).then(t=>{this.login(t)}).catch(t=>{this.alert=`Invalid password: ${t.response.data.message}`,this.alertType="warning",this.showAlert=!0})}}};function Je(t,o,s,r,n,a){const d=e.resolveComponent("v-card-title"),i=e.resolveComponent("v-card-subtitle"),c=e.resolveComponent("v-text-field"),u=e.resolveComponent("v-btn"),m=e.resolveComponent("v-spacer"),v=e.resolveComponent("v-row"),p=e.resolveComponent("v-container"),_=e.resolveComponent("v-form"),g=e.resolveComponent("v-card-text"),k=e.resolveComponent("v-alert"),V=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(V,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[...o[5]||(o[5]=[e.createTextVNode(" Login ",-1)])]),_:1}),e.createVNode(i,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.isSet?"Enter the":"Create a")+" password to begin using OpenC3 ",1)]),_:1}),e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(_,null,{default:e.withCtx(()=>[n.isSet&&n.reset?(e.openBlock(),e.createBlock(c,{key:0,modelValue:n.oldPassword,"onUpdate:modelValue":o[0]||(o[0]=N=>n.oldPassword=N),type:"password",label:"Old Password"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(c,{modelValue:n.password,"onUpdate:modelValue":o[1]||(o[1]=N=>n.password=N),type:"password",label:`${!n.isSet||n.reset?"New ":""}Password`,"data-test":"new-password"},null,8,["modelValue","label"]),n.reset?(e.openBlock(),e.createBlock(c,{key:1,modelValue:n.confirmPassword,"onUpdate:modelValue":o[2]||(o[2]=N=>n.confirmPassword=N),rules:[a.rules.matchPassword],type:"password",label:"Confirm Password","data-test":"confirm-password"},null,8,["modelValue","rules"])):e.createCommentVNode("",!0),n.reset?(e.openBlock(),e.createBlock(u,{key:2,type:"submit",size:"large",color:n.isSet?"warn":"success",disabled:!a.formValid,"data-test":"set-password",onClick:e.withModifiers(a.setPassword,["prevent"])},{default:e.withCtx(()=>[...o[6]||(o[6]=[e.createTextVNode(" Set ",-1)])]),_:1},8,["color","disabled","onClick"])):(e.openBlock(),e.createBlock(p,{key:3},{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(u,{type:"submit",size:"large",color:"success",disabled:!a.formValid,onClick:o[3]||(o[3]=e.withModifiers(()=>a.verifyPassword(),["prevent"]))},{default:e.withCtx(()=>[...o[7]||(o[7]=[e.createTextVNode(" Login ",-1)])]),_:1},8,["disabled"]),e.createVNode(m),e.createVNode(u,{variant:"text",size:"small",onClick:a.showReset},{default:e.withCtx(()=>[...o[8]||(o[8]=[e.createTextVNode(" Change Password ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}))]),_:1})]),_:1}),e.createVNode(k,{modelValue:n.showAlert,"onUpdate:modelValue":o[4]||(o[4]=N=>n.showAlert=N),type:n.alertType,closable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.alert),1)]),_:1},8,["modelValue","type"])]),_:1})}const Ge=y._export_sfc(We,[["render",Je]]),Ke=3e3,Qe={data:function(){return{dismissed:!1,suppress:!1,discrepancy:0}},computed:{approximateDiscrepancySec:function(){return(this.discrepancy/1e3).toFixed()},dialog:function(){return!this.dismissed&&Math.abs(this.discrepancy)>=Ke}},created:function(){this.suppress=localStorage.suppresswarning__clock_out_of_sync_with_server==="true",this.suppress||Z.axios.get("/openc3-api/time").then(t=>{this.discrepancy=t.data.now_nsec/1e6-Date.now()}).catch(t=>{this.dismissed=!0})},methods:{dismiss:function(){localStorage.suppresswarning__clock_out_of_sync_with_server=this.suppress,this.dismissed=!0}}};function $e(t,o,s,r,n,a){const d=e.resolveComponent("v-card-title"),i=e.resolveComponent("v-checkbox"),c=e.resolveComponent("v-card-text"),u=e.resolveComponent("v-divider"),m=e.resolveComponent("v-btn"),v=e.resolveComponent("v-card-actions"),p=e.resolveComponent("v-card"),_=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(_,{modelValue:a.dialog,"onUpdate:modelValue":o[1]||(o[1]=g=>a.dialog=g),width:"500"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[...o[2]||(o[2]=[e.createTextVNode(" Clock out of sync ",-1)])]),_:1}),e.createVNode(c,null,{default:e.withCtx(()=>[e.createTextVNode(" We've detected that your clock is approximately "+e.toDisplayString(Math.abs(a.approximateDiscrepancySec))+" seconds "+e.toDisplayString(a.approximateDiscrepancySec>0?"behind":"ahead of")+" server time. This can cause issues and might have unknown side effects. ",1),e.createVNode(i,{modelValue:t.suppress,"onUpdate:modelValue":o[0]||(o[0]=g=>t.suppress=g),label:"Don't show this again"},null,8,["modelValue"])]),_:1}),e.createVNode(u),e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(m,{color:"primary",variant:"text",onClick:a.dismiss},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const et=y._export_sfc(Qe,[["render",$e]]);exports.ClassificationBanners=H._sfc_main;exports.AppFooter=pe;exports.AppNav=Ze;exports.ClockFooter=L;exports.ContextTag=z;exports.Login=Ge;exports.Notifications=F;exports.ScopeSelector=I;exports.TimeCheck=et;exports.UserMenu=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-DMwcaglo.cjs"),e=require("vue"),y=require("../CustomIcon-CEc927h0.cjs"),A=require("single-spa"),E=require("../UpgradeToEnterpriseDialog-qZRe19Fu.cjs"),h=require("../format-B22VpiOS.cjs"),H=require("../ClassificationBanners-HkU0WpTb.cjs"),D=require("../icons.cjs"),q=require("../AstroStatus-CILMWL6F.cjs"),j=require("../purify.es-B9BW70-4.cjs"),Z=require("../index-D-zO4ghE.cjs");function b(t,o){const s=+h.toDate(t)-+h.toDate(o);return s<0?-1:s>0?1:s}function W(t){return h.constructFrom(t,Date.now())}function J(t,o,s){const[r,n]=h.normalizeDates(s==null?void 0:s.in,t,o),a=r.getFullYear()-n.getFullYear(),d=r.getMonth()-n.getMonth();return a*12+d}function G(t){return o=>{const r=(t?Math[t]:Math.trunc)(o);return r===0?0:r}}function K(t,o){return+h.toDate(t)-+h.toDate(o)}function Q(t,o){const s=h.toDate(t,o==null?void 0:o.in);return s.setHours(23,59,59,999),s}function $(t,o){const s=h.toDate(t,o==null?void 0:o.in),r=s.getMonth();return s.setFullYear(s.getFullYear(),r+1,0),s.setHours(23,59,59,999),s}function ee(t,o){const s=h.toDate(t,o==null?void 0:o.in);return+Q(s,o)==+$(s,o)}function te(t,o,s){const[r,n,a]=h.normalizeDates(s==null?void 0:s.in,t,t,o),d=b(n,a),i=Math.abs(J(n,a));if(i<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-d*i);let c=b(n,a)===-d;ee(r)&&i===1&&b(r,a)===1&&(c=!1);const u=d*(i-+c);return u===0?0:u}function oe(t,o,s){const r=K(t,o)/1e3;return G(s==null?void 0:s.roundingMethod)(r)}function ne(t,o,s){const r=h.getDefaultOptions(),n=(s==null?void 0:s.locale)??r.locale??h.enUS,a=2520,d=b(t,o);if(isNaN(d))throw new RangeError("Invalid time value");const i=Object.assign({},s,{addSuffix:s==null?void 0:s.addSuffix,comparison:d}),[c,u]=h.normalizeDates(s==null?void 0:s.in,...d>0?[o,t]:[t,o]),m=oe(u,c),v=(h.getTimezoneOffsetInMilliseconds(u)-h.getTimezoneOffsetInMilliseconds(c))/1e3,p=Math.round((m-v)/60);let _;if(p<2)return s!=null&&s.includeSeconds?m<5?n.formatDistance("lessThanXSeconds",5,i):m<10?n.formatDistance("lessThanXSeconds",10,i):m<20?n.formatDistance("lessThanXSeconds",20,i):m<40?n.formatDistance("halfAMinute",0,i):m<60?n.formatDistance("lessThanXMinutes",1,i):n.formatDistance("xMinutes",1,i):p===0?n.formatDistance("lessThanXMinutes",1,i):n.formatDistance("xMinutes",p,i);if(p<45)return n.formatDistance("xMinutes",p,i);if(p<90)return n.formatDistance("aboutXHours",1,i);if(p<h.minutesInDay){const g=Math.round(p/60);return n.formatDistance("aboutXHours",g,i)}else{if(p<a)return n.formatDistance("xDays",1,i);if(p<h.minutesInMonth){const g=Math.round(p/h.minutesInDay);return n.formatDistance("xDays",g,i)}else if(p<h.minutesInMonth*2)return _=Math.round(p/h.minutesInMonth),n.formatDistance("aboutXMonths",_,i)}if(_=te(u,c),_<12){const g=Math.round(p/h.minutesInMonth);return n.formatDistance("xMonths",g,i)}else{const g=_%12,k=Math.trunc(_/12);return g<3?n.formatDistance("aboutXYears",k,i):g<9?n.formatDistance("overXYears",k,i):n.formatDistance("almostXYears",k+1,i)}}function se(t,o){return ne(t,W(t),o)}const re={data:function(){return{localDate:new Date,displayLocal:localStorage.clock_zone==="local",display24h:!localStorage.clock_12h,dateMode:localStorage.clock_dateMode||"monthFirst",intervalCount:0,showMenu:!1,menuX:0,menuY:0}},computed:{utcDate:function(){return new Date(this.localDate.getTime()+this.localDate.getTimezoneOffset()*6e4)},formatString:function(){let t;switch(this.dateMode){case"monthFirst":t="LL/dd/yyy";break;case"dayFirst":t="dd/LL/yyy";break;case"number":t="D";break}let o;return this.display24h?o="HH:mm:ss":o="hh:mm:ss a",`${t} ${o}`}},watch:{displayLocal:function(t){localStorage.clock_zone=t?"local":"utc"},display24h:function(t){t?delete localStorage.clock_12h:localStorage.clock_12h=!0},dateMode:function(t){t.match(/^monthFirst$|^dayFirst$|^number$/)&&(localStorage.clock_dateMode=t)}},created:function(){setInterval(()=>{this.intervalCount++,this.localDate=new Date},this.intervalCount<10?100:1e3)},methods:{openMenu:function(t){t.preventDefault(),this.showMenu=!1,this.menuX=t.clientX,this.menuY=t.clientY,this.$nextTick(()=>{this.showMenu=!0})},toggleDisplayLocal:function(){this.displayLocal=!this.displayLocal},toggleDisplay24h:function(){this.display24h=!this.display24h},setMonthFirst:function(){this.dateMode="monthFirst"},setDayFirst:function(){this.dateMode="dayFirst"},setNumber:function(){this.dateMode="number"},formatDate:function(t,o){return h.format(t,o,{useAdditionalDayOfYearTokens:!0})}}};function ae(t,o,s,r,n,a){const d=e.resolveComponent("v-list-item-title"),i=e.resolveComponent("v-list-item"),c=e.resolveComponent("v-divider"),u=e.resolveComponent("v-list"),m=e.resolveComponent("v-menu");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("span",{style:{cursor:"context-menu"},class:"font-weight-bold",onContextmenu:o[0]||(o[0]=(...v)=>a.openMenu&&a.openMenu(...v))},e.toDisplayString(a.formatDate(t.displayLocal?t.localDate:a.utcDate,a.formatString))+" ("+e.toDisplayString(t.displayLocal?"local":"UTC")+") ",33),e.createVNode(m,{modelValue:t.showMenu,"onUpdate:modelValue":o[1]||(o[1]=v=>t.showMenu=v),target:[t.menuX,t.menuY]},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.toggleDisplayLocal},{default:e.withCtx(()=>[e.createTextVNode(" Display "+e.toDisplayString(t.displayLocal?"UTC":"local time"),1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.toggleDisplay24h},{default:e.withCtx(()=>[e.createTextVNode(" Display "+e.toDisplayString(t.display24h?12:24)+" hour clock ",1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),t.dateMode!=="monthFirst"?(e.openBlock(),e.createBlock(i,{key:0},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setMonthFirst},{default:e.withCtx(()=>[...o[2]||(o[2]=[e.createTextVNode(" Display mm/dd/yyyy ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),t.dateMode!=="dayFirst"?(e.openBlock(),e.createBlock(i,{key:1},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setDayFirst},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" Display dd/mm/yyyy ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),t.dateMode!=="number"?(e.openBlock(),e.createBlock(i,{key:2},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setNumber},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode(" Display day of year ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","target"])])}const L=y._export_sfc(re,[["render",ae]]),ie={components:{ClockFooter:L,UpgradeToEnterpriseDialog:E.UpgradeToEnterpriseDialog},data(){return{icon:"/img/icon.png",edition:"",enterprise:!1,license:"",sourceUrl:"",version:"",showUpgradeToEnterpriseDialog:!1,chromeless:null}},computed:{footerClass(){return this.enterprise?"enterprise":"core"}},created:function(){const t=new URLSearchParams(window.location.search);this.chromeless=t.get("chromeless"),this.getSourceUrl(),C.Ei.get("/openc3-api/info").then(o=>{o.data.enterprise?this.edition="COSMOS Enterprise":this.edition="COSMOS Core",this.enterprise=o.data.enterprise,this.license=o.data.license,this.version=o.data.version})},methods:{getSourceUrl:function(){new C.Oi().get_settings(["source_url"]).then(t=>{this.sourceUrl=t[0]})},upgrade:function(){this.enterprise||(this.showUpgradeToEnterpriseDialog=!0)}}},le=["src"],ce=["href"],de={class:"justify-right"};function ue(t,o,s,r,n,a){const d=e.resolveComponent("v-spacer"),i=e.resolveComponent("clock-footer"),c=e.resolveComponent("upgrade-to-enterprise-dialog"),u=e.resolveComponent("v-footer");return n.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u,{key:0,id:"footer",app:"",height:"33"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.icon,alt:"OpenC3"},null,8,le),e.createElementVNode("span",{class:e.normalizeClass(a.footerClass),onClick:o[0]||(o[0]=(...m)=>a.upgrade&&a.upgrade(...m))}," OpenC3 "+e.toDisplayString(n.edition)+" "+e.toDisplayString(n.version)+" © 2025 - License: "+e.toDisplayString(n.license),3),e.createVNode(d),e.createElementVNode("a",{href:n.sourceUrl,class:"text-white text-decoration-underline"}," Source ",8,ce),e.createVNode(d),e.createElementVNode("div",de,[e.createVNode(i)]),e.createVNode(c,{modelValue:n.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[1]||(o[1]=m=>n.showUpgradeToEnterpriseDialog=m),reason:"Enterprise is Commercially Licensed"},null,8,["modelValue"])]),_:1}))}const pe=y._export_sfc(ie,[["render",ue],["__scopeId","data-v-d165cc51"]]),T=1e3,{highestLevel:me,orderByLevel:fe,groupByLevel:he}=q.AstroStatus,_e={components:{AstroStatusIndicator:D.AstroStatusIndicator},props:{size:{type:[String,Number],default:26}},emits:["ephemeral"],data:function(){return{AstroStatusColors:D.AstroStatusColors,alerts:[],cable:new C.xi,scriptCable:new C.xi("/script-api/cable"),subscription:null,scriptSubscription:null,numScripts:0,notifications:[],showNotificationPane:!1,toastNotification:{},notificationDialog:!1,selectedNotification:{},settingsDialog:!1,showToast:!0}},computed:{activeScripts:function(){return`Scripts: ${this.numScripts}`},notificationVsAlert:function(){return"notifications"},iconStatus:function(){if(this.unreadNotifications.length===0)return"off";const t=this.unreadNotifications.map(o=>o.level).filter((o,s,r)=>r.indexOf(o)===s);return D.UnknownToAstroStatus[me(t)]},readNotifications:function(){return this.notifications.filter(t=>t.read).sort((t,o)=>o.time-t.time)},unreadNotifications:function(){return this.notifications.filter(t=>!t.read).sort((t,o)=>o.time-t.time)},unreadCount:function(){return this.unreadNotifications.length},notificationList:function(){const t=he(this.unreadNotifications);let o=fe(Object.keys(t),s=>s).flatMap(s=>[{header:s.charAt(0).toUpperCase()+s.slice(1)},...t[s]]);return this.readNotifications.length&&(o=o.concat([{header:"Read"},...this.readNotifications])),o}},watch:{showNotificationPane:function(t){t||(this.selectedNotification.message?(this.notificationDialog=!1,this.selectedNotification={}):this.markAllAsRead())},showToast:function(t){localStorage.notoast=!t}},created:function(){this.showToast=localStorage.notoast==="false",this.subscribe(),this.alerts=this.$store.state.notifyHistory,C.Ei.get("/script-api/running-script").then(t=>{this.numScripts=t.data.total})},unmounted:function(){this.subscription&&this.subscription.unsubscribe(),this.scriptSubscription&&this.scriptSubscription.unsubscribe(),this.cable.disconnect(),this.scriptCable.disconnect()},methods:{getStatus:function(t){return D.UnknownToAstroStatus[t]},markAllAsRead:function(){this.notifications.forEach(t=>{t.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<t.msg_id)&&(localStorage.lastReadNotification=t.msg_id)})},clearNotifications:function(){this.markAllAsRead(),this.notifications=[],localStorage.notificationStreamOffset=localStorage.lastReadNotification,this.showNotificationPane=!1},toggleNotificationPane:function(){this.showNotificationPane=!this.showNotificationPane},toggleSettingsDialog:function(){this.settingsDialog=!this.settingsDialog},openDialog:function(t,o=!1){t.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<t.msg_id)&&(localStorage.lastReadNotification=t.msg_id),this.selectedNotification=t,this.notificationDialog=!0},navigate:function(t){window.open(t,"_blank")},subscribe:function(){this.cable.createSubscription("MessagesChannel",window.openc3Scope,{received:t=>this.receiveMessage(t)},{start_offset:localStorage.notificationStreamOffset||localStorage.lastReadNotification,types:["notification","alert","ephemeral"]}).then(t=>{this.subscription=t}),this.scriptCable.createSubscription("AllScriptsChannel",window.openc3Scope,{received:t=>this.receiveScript(t)}).then(t=>{this.scriptSubscription=t})},receiveMessage:function(t){this.cable.recordPing(),t.length>T&&t.splice(0,t.length-T);let o=t.filter(r=>r.type==="ephemeral");o&&o.length>0&&(t=t.filter(r=>r.type!=="ephemeral"),o.forEach(r=>{this.$emit("ephemeral",r)}));let s=!1;if(t.forEach(r=>{r.read=r.msg_id<=localStorage.lastReadNotification,r.level=r.level||"INFO",!r.read&&["FATAL","ERROR","WARN"].includes(r.level)&&(s=!0,this.toastNotification=r)}),this.showToast&&s){let r=5e3;["FATAL","ERROR"].includes(this.toastNotification.level)&&(r=null),this.$notify&&this.$notify[this.toastNotification.level]({...this.toastNotification,type:"notification",duration:r,saveToHistory:!1})}this.notifications.length+t.length>T&&this.notifications.splice(0,this.notifications.length+t.length-T),this.notifications=this.notifications.concat(t)},receiveScript:function(t){this.cable.recordPing(),this.numScripts=t.active_scripts},formatShortDateTime:function(t){if(!t)return"";const o=new Date(t/1e6);return se(o,{addSuffix:!0})}}};function ge(t,o,s,r,n,a){const d=e.resolveComponent("v-overlay"),i=e.resolveComponent("rux-monitoring-icon"),c=e.resolveComponent("v-spacer"),u=e.resolveComponent("v-btn"),m=e.resolveComponent("v-tooltip"),v=e.resolveComponent("v-card-title"),p=e.resolveComponent("v-card-text"),_=e.resolveComponent("v-divider"),g=e.resolveComponent("v-list-subheader"),k=e.resolveComponent("rux-status"),V=e.resolveComponent("v-list-item-title"),N=e.resolveComponent("v-list-item-subtitle"),w=e.resolveComponent("v-list-item"),x=e.resolveComponent("v-list"),S=e.resolveComponent("v-card"),B=e.resolveComponent("v-menu"),l=e.resolveComponent("astro-status-indicator"),M=e.resolveComponent("v-card-subtitle"),X=e.resolveComponent("v-icon"),O=e.resolveComponent("v-card-actions"),R=e.resolveComponent("v-dialog"),Y=e.resolveComponent("v-switch");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(d,{"model-value":t.showNotificationPane,class:"overlay"},null,8,["model-value"]),e.createVNode(B,{modelValue:t.showNotificationPane,"onUpdate:modelValue":o[0]||(o[0]=f=>t.showNotificationPane=f),transition:"slide-y-transition","close-on-content-click":!1,offset:[12,102]},{activator:e.withCtx(({props:f})=>[e.createVNode(i,e.mergeProps(f,{class:"rux-icon",icon:a.notificationVsAlert,label:"Notifications",sublabel:a.activeScripts,status:a.iconStatus,notifications:a.unreadNotifications.length}),null,16,["icon","sublabel","status","notifications"])]),default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(v,{class:"d-flex align-center justify-content-space-between"},{default:e.withCtx(()=>[o[7]||(o[7]=e.createElementVNode("span",null," Notifications ",-1)),e.createVNode(c),e.createVNode(m,{"open-delay":600,location:"top"},{activator:e.withCtx(({props:f})=>[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(f)),[e.createVNode(u,{class:"ml-1",icon:"mdi-notification-clear-all ",variant:"text","data-test":"clear-notifications","aria-label":"Dismiss All Notifications",onClick:a.clearNotifications},null,8,["onClick"])],16)]),default:e.withCtx(()=>[o[6]||(o[6]=e.createElementVNode("span",null," Dismiss All Notifications ",-1))]),_:1}),e.createVNode(u,{icon:"astro:settings",variant:"text",class:"ml-1","data-test":"notification-settings","aria-label":"Notification Settings",onClick:a.toggleSettingsDialog},null,8,["onClick"])]),_:1}),t.notifications.length===0?(e.openBlock(),e.createBlock(p,{key:0},{default:e.withCtx(()=>[...o[8]||(o[8]=[e.createTextVNode(" No notifications ",-1)])]),_:1})):(e.openBlock(),e.createBlock(x,{key:1,lines:"two",width:"420","max-height":"80vh",class:"overflow-y-auto","data-test":"notification-list"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.notificationList,(f,U)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f.header?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[U!==0?(e.openBlock(),e.createBlock(_,{key:U,class:"mb-2"})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(g,{key:f.header},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.header),1)]),_:2},1024))],64)):(e.openBlock(),e.createBlock(w,{key:`notification-${U}`,class:"pl-2",onClick:tt=>a.openDialog(f)},{prepend:e.withCtx(()=>[e.createVNode(k,{class:"px-2",status:a.getStatus(f.level)},null,8,["status"])]),default:e.withCtx(()=>[e.createVNode(V,{class:e.normalizeClass({"text--secondary":f.read,"text-wrap":!0})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.message),1)]),_:2},1032,["class"]),e.createVNode(N,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.formatShortDateTime(f.time)),1)]),_:2},1024)]),_:2},1032,["onClick"]))],64))),256))]),_:1}))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(R,{modelValue:t.notificationDialog,"onUpdate:modelValue":o[3]||(o[3]=f=>t.notificationDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.selectedNotification.message)+" ",1),e.createVNode(c),e.createVNode(l,{status:t.selectedNotification.level||"INFO"},null,8,["status"])]),_:1}),e.createVNode(M,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.formatShortDateTime(t.selectedNotification.time)),1)]),_:1}),e.createVNode(_),e.createVNode(O,null,{default:e.withCtx(()=>[t.selectedNotification.url?(e.openBlock(),e.createBlock(u,{key:0,color:"primary",variant:"text",onClick:o[1]||(o[1]=f=>a.navigate(t.selectedNotification.url))},{default:e.withCtx(()=>[o[10]||(o[10]=e.createTextVNode(" Open ",-1)),e.createVNode(X,{end:""},{default:e.withCtx(()=>[...o[9]||(o[9]=[e.createTextVNode(" mdi-open-in-new ",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(u,{color:"primary",variant:"text",onClick:o[2]||(o[2]=f=>t.notificationDialog=!1)},{default:e.withCtx(()=>[...o[11]||(o[11]=[e.createTextVNode(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createVNode(R,{modelValue:t.settingsDialog,"onUpdate:modelValue":o[5]||(o[5]=f=>t.settingsDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[...o[12]||(o[12]=[e.createTextVNode(" Notification settings ",-1)])]),_:1}),e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:t.showToast,"onUpdate:modelValue":o[4]||(o[4]=f=>t.showToast=f),label:"Show toasts",color:"primary"},null,8,["modelValue"])]),_:1}),e.createVNode(_),e.createVNode(O,null,{default:e.withCtx(()=>[e.createVNode(u,{color:"primary",variant:"text",onClick:a.toggleSettingsDialog},{default:e.withCtx(()=>[...o[13]||(o[13]=[e.createTextVNode(" Close ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const F=y._export_sfc(_e,[["render",ge],["__scopeId","data-v-59957c3a"]]),ve={components:{UpgradeToEnterpriseDialog:E.UpgradeToEnterpriseDialog},data:function(){return{scopes:["DEFAULT"],scope:"DEFAULT",showUpgradeToEnterpriseDialog:!1}}};function we(t,o,s,r,n,a){const d=e.resolveComponent("v-select"),i=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",{style:{cursor:"pointer"},onClick:o[2]||(o[2]=c=>t.showUpgradeToEnterpriseDialog=!0)},[e.createVNode(d,{modelValue:t.scope,"onUpdate:modelValue":o[0]||(o[0]=c=>t.scope=c),items:t.scopes,disabled:t.scopes.length<=1,label:"Scope",density:"compact",variant:"outlined","hide-details":"",style:{"max-width":"150px"}},null,8,["modelValue","items","disabled"]),e.createVNode(i,{modelValue:t.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[1]||(o[1]=c=>t.showUpgradeToEnterpriseDialog=c),reason:"Enterprise allows additional Scopes"},null,8,["modelValue"])])}const I=y._export_sfc(ve,[["render",we]]),Ce={components:{UpgradeToEnterpriseDialog:E.UpgradeToEnterpriseDialog},props:{size:{type:[String,Number],default:26}},data:function(){let t=OpenC3Auth.user();return{api:new C.Oi,showUserMenu:!1,authenticated:!!localStorage.openc3Token,name:t.name,username:t.preferred_username,showUpgradeToEnterpriseDialog:!1,activeUsers:["None"],newsFeed:!1,news:[]}},computed:{unreadNews:function(){return this.news.filter(t=>!t.read)}},watch:{showUserMenu:function(t,o){t===!0&&(this.news.length>0&&(this.news.forEach(s=>{s.read=!0}),localStorage.lastNewsRead=this.news[0].date),this.name!=="Anonymous"&&C.Ei.get("/openc3-api/users/active").then(s=>{this.activeUsers=s.data.filter(r=>!r.includes(this.name)),this.activeUsers.length===0&&(this.activeUsers=["None"])}))}},created:function(){this.api.get_setting("news_feed").then(t=>{t&&(this.newsFeed=t,this.newsFeed&&(this.fetchNews(),setInterval(this.fetchNews,3600*1e3)))}).catch(t=>{})},methods:{sanitizeNews(t){return j.purify.sanitize(t)},refreshNews(){this.api.update_news().then(()=>{this.fetchNews()})},formatDate(t){return t.split("T")[0]},fetchNews:function(){C.Ei.get("/openc3-api/news").then(t=>{this.news=t.data.sort((o,s)=>Date.parse(s.date)-Date.parse(o.date)),localStorage.lastNewsRead&&this.news.forEach(o=>{o.read=Date.parse(o.date)<=Date.parse(localStorage.lastNewsRead)})})},logout:function(){OpenC3Auth.logout(),C.Ei.put(`/openc3-api/users/logout/${this.username}`)},login:function(){OpenC3Auth.login(location.href)},roles:function(){return this.name==="Anonymous"?"Admin":OpenC3Auth.userroles().map(t=>this.capitalize(t)).sort().join(", ")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}},Ne={style:{"text-align":"center",margin:"5px"}},ke={key:0},ye={class:"roles"},Ve={class:"pb-3 roles"},xe={key:1},Se={key:0,class:"pa-3"},De={key:2},Te={key:0},be={class:"news-title"},Ee={class:"news-date"},Be=["innerHTML"];function Me(t,o,s,r,n,a){const d=e.resolveComponent("v-overlay"),i=e.resolveComponent("rux-monitoring-icon"),c=e.resolveComponent("v-btn"),u=e.resolveComponent("v-row"),m=e.resolveComponent("v-card-text"),v=e.resolveComponent("v-col"),p=e.resolveComponent("v-list-item-title"),_=e.resolveComponent("v-list-item"),g=e.resolveComponent("v-list"),k=e.resolveComponent("v-card"),V=e.resolveComponent("v-menu"),N=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(d,{"model-value":t.showUserMenu,class:"overlay"},null,8,["model-value"]),e.createVNode(V,{modelValue:t.showUserMenu,"onUpdate:modelValue":o[1]||(o[1]=w=>t.showUserMenu=w),transition:"slide-y-transition","close-on-content-click":!1,offset:20},{activator:e.withCtx(({props:w})=>[e.createVNode(i,e.mergeProps(w,{class:"rux-icon",icon:"person",status:"off",label:t.name,sublabel:a.roles(),notifications:a.unreadNews.length}),null,16,["label","sublabel","notifications"])]),default:e.withCtx(()=>[e.createVNode(k,null,{default:e.withCtx(()=>[e.createVNode(m,{class:"text-center"},{default:e.withCtx(()=>[e.createElementVNode("div",Ne,e.toDisplayString(t.name),1),t.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("div",ye,"Username: "+e.toDisplayString(t.username),1),e.createElementVNode("div",Ve,"Roles: "+e.toDisplayString(a.roles()),1)])):e.createCommentVNode("",!0),t.authenticated?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(c,{block:"",color:"primary",onClick:a.logout},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" Logout ",-1)])]),_:1},8,["onClick"]),t.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(u,{class:"pt-3 user-title"},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode("Other Active Users:",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.activeUsers,(w,x)=>(e.openBlock(),e.createBlock(u,{key:x,class:"user"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1024))),128))])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(c,{block:"",color:"primary",onClick:a.login},{default:e.withCtx(()=>[...o[5]||(o[5]=[e.createTextVNode(" Login ",-1)])]),_:1},8,["onClick"])])),t.name==="Anonymous"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"pt-2 link",onClick:o[0]||(o[0]=w=>t.showUpgradeToEnterpriseDialog=!0)},[...o[6]||(o[6]=[e.createTextVNode(" Click to learn more about",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" COSMOS Enterprise ",-1)])])):e.createCommentVNode("",!0)]),_:1}),t.newsFeed?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(u,{"no-gutters":"",class:"news-header"},{default:e.withCtx(()=>[e.createVNode(v,{cols:"auto",class:"me-auto"},{default:e.withCtx(()=>[...o[7]||(o[7]=[e.createTextVNode("COSMOS News",-1)])]),_:1}),e.createVNode(v,{cols:"auto"},{default:e.withCtx(()=>[e.createVNode(c,{color:"primary",density:"compact",block:"",onClick:a.refreshNews},{default:e.withCtx(()=>[...o[8]||(o[8]=[e.createTextVNode(" Refresh ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}),e.createVNode(g,{lines:"two",width:"420","max-height":"75vh",class:"overflow-y-auto","data-test":"news-list"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news,(w,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`news-${x}`},[o[9]||(o[9]=e.createElementVNode("hr",null,null,-1)),e.createVNode(_,{class:"pl-2"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createElementVNode("span",be,e.toDisplayString(w.title),1),e.createElementVNode("span",Ee,e.toDisplayString(a.formatDate(w.date)),1)]),_:2},1024),e.createElementVNode("div",{innerHTML:a.sanitizeNews(w.body)},null,8,Be)]),_:2},1024)],64))),128))]),_:1})])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:t.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[2]||(o[2]=w=>t.showUpgradeToEnterpriseDialog=w),reason:"Enterprise has individual users with RBAC"},null,8,["modelValue"])])}const P=y._export_sfc(Ce,[["render",Me],["__scopeId","data-v-da895b0b"]]),Ue={name:"ContextTag",data(){return{api:new C.Oi,contextTag:{text:null,fontColor:null,backgroundColor:null},contextTagRefreshInterval:null}},created(){this.getContextTagSettings().then(()=>{this.contextTag.text&&this.startContextTagAutoRefresh()})},beforeUnmount(){this.stopContextTagAutoRefresh()},methods:{getContextTagSettings(){return this.api.get_setting("context_tag").then(t=>{if(t){const o=JSON.parse(t);this.contextTag={text:o.text,fontColor:o.fontColor,backgroundColor:o.backgroundColor}}}).catch(t=>{console.error(t)})},startContextTagAutoRefresh(){this.stopContextTagAutoRefresh(),this.contextTagRefreshInterval=setInterval(()=>{this.getContextTagSettings()},6e4)},stopContextTagAutoRefresh(){this.contextTagRefreshInterval&&(clearInterval(this.contextTagRefreshInterval),this.contextTagRefreshInterval=null)}}};function Ae(t,o,s,r,n,a){return n.contextTag.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"context-tag mr-2 mt-4",style:e.normalizeStyle({color:n.contextTag.fontColor,backgroundColor:n.contextTag.backgroundColor})},e.toDisplayString(n.contextTag.text),5)):e.createCommentVNode("",!0)}const z=y._export_sfc(Ue,[["render",Ae],["__scopeId","data-v-02121ab2"]]),Oe={components:{Notifications:F,ScopeSelector:I,UserMenu:P,UpgradeToEnterpriseDialog:E.UpgradeToEnterpriseDialog,ContextTag:z},props:{edition:{type:String,default:""}},data(){return{api:new C.Oi,timeZone:"local",subtitle:null,astro:{hideClock:!1},items:[],drawer:!0,appNav:{},logo:"/img/logo.png",initiallyOpen:[],showUpgradeToEnterpriseDialog:!1,chromeless:null}},computed:{shownTools:function(){let t={};for(let o of Object.keys(this.appNav))this.appNav[o].shown&&this.appNav[o].category!=="Admin"&&(t[o]=this.appNav[o]);return t},adminTools:function(){let t={};for(let o of Object.keys(this.appNav))this.appNav[o].shown&&this.appNav[o].category==="Admin"&&(t[o]=this.appNav[o]);return t},astroTimeZone:function(){return this.timeZone==="local"?Intl.DateTimeFormat().resolvedOptions().timeZone:this.timeZone}},created(){const t=new URLSearchParams(window.location.search);this.chromeless=t.get("chromeless"),this.api.get_setting("astro").then(o=>{o&&(this.astro=JSON.parse(o))}).catch(o=>{}),this.api.get_setting("subtitle").then(o=>{o&&(this.subtitle=o)}).catch(o=>{}),this.api.get_setting("time_zone").then(o=>{o&&(this.timeZone=o)}).catch(o=>{}),C.Ei.get("/openc3-api/tools/all",{params:{scope:"DEFAULT"}}).then(o=>{this.appNav=o.data;let s=1;for(let r of Object.keys(this.appNav)){if(this.appNav[r].shown){if(this.appNav[r].category&&this.appNav[r].category!=="Admin"){this.initiallyOpen.includes(this.appNav[r].category)||this.initiallyOpen.push(this.appNav[r].category);const n=this.items.filter(a=>a.name===this.appNav[r].category);n.length===0?(this.items.push({id:s,name:this.appNav[r].category,children:[{id:s+1,name:this.appNav[r].name,icon:this.appNav[r].icon,url:this.appNav[r].url,inline_url:this.appNav[r].inline_url,window:this.appNav[r].window}]}),s++):n[0].children.push({id:s,name:this.appNav[r].name,icon:this.appNav[r].icon,url:this.appNav[r].url,inline_url:this.appNav[r].inline_url,window:this.appNav[r].window})}else this.appNav[r].category||this.items.push({id:s,name:this.appNav[r].name,icon:this.appNav[r].icon,url:this.appNav[r].url,inline_url:this.appNav[r].inline_url,window:this.appNav[r].window});s++}if(this.appNav[r].inline_url&&this.appNav[r].folder_name&&this.appNav[r].folder_name!=="base"){let n=this.appNav[r].folder_name,a="@openc3/tool-"+n;A.registerApplication({name:a,app:()=>System.import(a),activeWhen:["/tools/"+n]})}}A.start({urlRerouteOnly:!0}),setInterval(()=>{OpenC3Auth.updateToken(120).then(function(r){r&&OpenC3Auth.setTokens()})},6e4)})},methods:{navigateToUrl:A.navigateToUrl,newTabUrl(t){let o=null;try{t.url[0]=="/"&&t.url[1]!="/"?o=new URL(t.url,window.location.origin):o=new URL(t.url),o.searchParams.set("scope",window.openc3Scope)}catch(s){window.$cosmosNotify.serious({title:`Invalid URL '${t.url}' for tool ${t.name}`,message:s.message}),o.href="/"}return o.href}}},Re=["src"],Le={style:{"text-align":"center","font-size":"18pt"}},Fe=["href","onClick"],Ie=["href"],Pe=["href","onClick"],ze=["href","onClick"],Xe=["href"],Ye=["href"],He=["href"],qe=["href"];function je(t,o,s,r,n,a){const d=e.resolveComponent("v-btn"),i=e.resolveComponent("v-divider"),c=e.resolveComponent("v-icon"),u=e.resolveComponent("v-treeview"),m=e.resolveComponent("v-navigation-drawer"),v=e.resolveComponent("rux-icon"),p=e.resolveComponent("v-row"),_=e.resolveComponent("v-col"),g=e.resolveComponent("rux-clock"),k=e.resolveComponent("v-spacer"),V=e.resolveComponent("context-tag"),N=e.resolveComponent("scope-selector"),w=e.resolveComponent("notifications"),x=e.resolveComponent("user-menu"),S=e.resolveComponent("v-app-bar"),B=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",null,[n.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,id:"openc3-nav-drawer","model-value":n.drawer},{default:e.withCtx(()=>[e.createElementVNode("img",{src:n.logo,class:"logo",alt:"OpenC3"},null,8,Re),e.createElementVNode("div",{class:"cosmos",onClick:o[0]||(o[0]=l=>n.showUpgradeToEnterpriseDialog=!0)}," COSMOS "),e.createElementVNode("div",Le,e.toDisplayString(n.subtitle),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.adminTools,(l,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,class:"ma-3"},[e.createVNode(d,{block:"",size:"small",href:l.url,class:"fixcenter",color:"primary",onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" Admin Console ",-1)])]),_:1},8,["href","onClick"])]))),128)),e.createVNode(i),e.createVNode(u,{items:n.items,opened:n.initiallyOpen,"item-value":"name",density:"compact","open-on-click":""},{prepend:e.withCtx(({item:l})=>[l.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.window==="INLINE"?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},[e.createVNode(c,{class:"mr-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.icon),1)]),_:2},1024)],8,Fe)):(e.openBlock(),e.createElementBlock("a",{key:1,href:l.url},[e.createVNode(c,{class:"mr-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.icon),1)]),_:2},1024)],8,Ie))],64)):e.createCommentVNode("",!0)]),title:e.withCtx(({item:l})=>[l.icon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.window==="INLINE"?(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,ze)):l.window==="IFRAME"?(e.openBlock(),e.createElementBlock("a",{key:1,href:"/tools/iframe?title="+encodeURIComponent(l.name)+"&url="+l.url},e.toDisplayString(l.name),9,Xe)):l.window==="SAME"?(e.openBlock(),e.createElementBlock("a",{key:2,href:l.url},e.toDisplayString(l.name),9,Ye)):(e.openBlock(),e.createElementBlock("a",{key:3,href:l.url,target:"_blank"},e.toDisplayString(l.name),9,He))],64)):(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,Pe))]),append:e.withCtx(({item:l})=>[l.icon?(e.openBlock(),e.createElementBlock("a",{key:0,href:a.newTabUrl(l),target:"_blank"},[e.createVNode(c,null,{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode("mdi-open-in-new",-1)])]),_:1})],8,qe)):e.createCommentVNode("",!0)]),_:1},8,["items","opened"])]),_:1},8,["model-value"])),n.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(S,{key:1,id:"openc3-app-toolbar"},{default:e.withCtx(()=>[e.createVNode(p,{class:"flex-nowrap",justify:"space-between","no-gutters":""},{default:e.withCtx(()=>[e.createVNode(_,{"align-self":"start"},{default:e.withCtx(()=>[e.createVNode(p,{class:"flex-nowrap"},{default:e.withCtx(()=>[e.createVNode(v,{class:"ml-3 mr-2 pa-2",size:"small",icon:"apps",onClick:o[1]||(o[1]=l=>n.drawer=!n.drawer)}),o[5]||(o[5]=e.createElementVNode("span",{id:"openc3-menu"},null,-1))]),_:1})]),_:1}),e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(p,{class:"clock flex-nowrap mt-0"},{default:e.withCtx(()=>[n.astro.hideClock?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(g,{key:0,"date-in":"",timezone:a.astroTimeZone},null,8,["timezone"]))]),_:1})]),_:1}),e.createVNode(_,{"align-self":"center",class:"mt-2"},{default:e.withCtx(()=>[e.createVNode(p,{class:"flex-nowrap"},{default:e.withCtx(()=>[e.createVNode(k),e.createVNode(V),e.createVNode(N,{class:"mr-6 mt-4"}),e.createVNode(w,{class:"mr-6","data-test":"notifications"}),e.createVNode(x,{class:"mr-6"})]),_:1})]),_:1})]),_:1})]),_:1})),e.createVNode(B,{modelValue:n.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[2]||(o[2]=l=>n.showUpgradeToEnterpriseDialog=l),reason:"Enterprise adds Calendar and Autonomic"},null,8,["modelValue"])])}const Ze=y._export_sfc(Oe,[["render",je],["__scopeId","data-v-6d806ce5"]]),We={data(){return{isSet:!0,password:"",confirmPassword:"",oldPassword:"",reset:!1,alert:"",alertType:"success",showAlert:!1}},computed:{options:function(){return{noAuth:!0,noScope:!0}},rules:function(){return{matchPassword:()=>this.password===this.confirmPassword||"Passwords must match"}},formValid:function(){return this.reset?this.isSet?!!this.oldPassword&&!!this.password&&this.password===this.confirmPassword:!!this.password&&this.password===this.confirmPassword:!!this.password}},created:function(){C.Ei.get("/openc3-api/auth/token-exists",this.options).then(t=>{this.isSet=!!t.data.result,this.isSet||(this.reset=!0)})},mounted:function(){localStorage.openc3Token&&this.verifyPassword(localStorage.openc3Token,!0)},methods:{showReset:function(){this.reset=!0},login:function(t){localStorage.openc3Token=t.data;const o=new URLSearchParams(window.location.search).get("redirect");o!=null&&o.startsWith("/tools/")?window.location=decodeURI(o):window.location="/"},verifyPassword:function(t,o){t||(t=this.password),this.showAlert=!1,C.Ei.post("/openc3-api/auth/verify",{data:{token:t},...this.options}).then(s=>{this.login(s)}).catch(s=>{(s==null?void 0:s.status)===401?this.alert="Incorrect password":this.alert=s.message||"Something went wrong...",this.alertType="warning",this.showAlert=!o})},setPassword:function(){this.showAlert=!1,C.Ei.post("/openc3-api/auth/set",{data:{old_token:this.oldPassword,token:this.password},...this.options}).then(t=>{this.login(t)}).catch(t=>{this.alert=`Invalid password: ${t.response.data.message}`,this.alertType="warning",this.showAlert=!0})}}};function Je(t,o,s,r,n,a){const d=e.resolveComponent("v-card-title"),i=e.resolveComponent("v-card-subtitle"),c=e.resolveComponent("v-text-field"),u=e.resolveComponent("v-btn"),m=e.resolveComponent("v-spacer"),v=e.resolveComponent("v-row"),p=e.resolveComponent("v-container"),_=e.resolveComponent("v-form"),g=e.resolveComponent("v-card-text"),k=e.resolveComponent("v-alert"),V=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(V,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[...o[5]||(o[5]=[e.createTextVNode(" Login ",-1)])]),_:1}),e.createVNode(i,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.isSet?"Enter the":"Create a")+" password to begin using OpenC3 ",1)]),_:1}),e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(_,null,{default:e.withCtx(()=>[n.isSet&&n.reset?(e.openBlock(),e.createBlock(c,{key:0,modelValue:n.oldPassword,"onUpdate:modelValue":o[0]||(o[0]=N=>n.oldPassword=N),type:"password",label:"Old Password"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(c,{modelValue:n.password,"onUpdate:modelValue":o[1]||(o[1]=N=>n.password=N),type:"password",label:`${!n.isSet||n.reset?"New ":""}Password`,"data-test":"new-password"},null,8,["modelValue","label"]),n.reset?(e.openBlock(),e.createBlock(c,{key:1,modelValue:n.confirmPassword,"onUpdate:modelValue":o[2]||(o[2]=N=>n.confirmPassword=N),rules:[a.rules.matchPassword],type:"password",label:"Confirm Password","data-test":"confirm-password"},null,8,["modelValue","rules"])):e.createCommentVNode("",!0),n.reset?(e.openBlock(),e.createBlock(u,{key:2,type:"submit",size:"large",color:n.isSet?"warn":"success",disabled:!a.formValid,"data-test":"set-password",onClick:e.withModifiers(a.setPassword,["prevent"])},{default:e.withCtx(()=>[...o[6]||(o[6]=[e.createTextVNode(" Set ",-1)])]),_:1},8,["color","disabled","onClick"])):(e.openBlock(),e.createBlock(p,{key:3},{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(u,{type:"submit",size:"large",color:"success",disabled:!a.formValid,onClick:o[3]||(o[3]=e.withModifiers(()=>a.verifyPassword(),["prevent"]))},{default:e.withCtx(()=>[...o[7]||(o[7]=[e.createTextVNode(" Login ",-1)])]),_:1},8,["disabled"]),e.createVNode(m),e.createVNode(u,{variant:"text",size:"small",onClick:a.showReset},{default:e.withCtx(()=>[...o[8]||(o[8]=[e.createTextVNode(" Change Password ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}))]),_:1})]),_:1}),e.createVNode(k,{modelValue:n.showAlert,"onUpdate:modelValue":o[4]||(o[4]=N=>n.showAlert=N),type:n.alertType,closable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.alert),1)]),_:1},8,["modelValue","type"])]),_:1})}const Ge=y._export_sfc(We,[["render",Je]]),Ke=3e3,Qe={data:function(){return{dismissed:!1,suppress:!1,discrepancy:0}},computed:{approximateDiscrepancySec:function(){return(this.discrepancy/1e3).toFixed()},dialog:function(){return!this.dismissed&&Math.abs(this.discrepancy)>=Ke}},created:function(){this.suppress=localStorage.suppresswarning__clock_out_of_sync_with_server==="true",this.suppress||Z.axios.get("/openc3-api/time").then(t=>{this.discrepancy=t.data.now_nsec/1e6-Date.now()}).catch(t=>{this.dismissed=!0})},methods:{dismiss:function(){localStorage.suppresswarning__clock_out_of_sync_with_server=this.suppress,this.dismissed=!0}}};function $e(t,o,s,r,n,a){const d=e.resolveComponent("v-card-title"),i=e.resolveComponent("v-checkbox"),c=e.resolveComponent("v-card-text"),u=e.resolveComponent("v-divider"),m=e.resolveComponent("v-btn"),v=e.resolveComponent("v-card-actions"),p=e.resolveComponent("v-card"),_=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(_,{modelValue:a.dialog,"onUpdate:modelValue":o[1]||(o[1]=g=>a.dialog=g),width:"500"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[...o[2]||(o[2]=[e.createTextVNode(" Clock out of sync ",-1)])]),_:1}),e.createVNode(c,null,{default:e.withCtx(()=>[e.createTextVNode(" We've detected that your clock is approximately "+e.toDisplayString(Math.abs(a.approximateDiscrepancySec))+" seconds "+e.toDisplayString(a.approximateDiscrepancySec>0?"behind":"ahead of")+" server time. This can cause issues and might have unknown side effects. ",1),e.createVNode(i,{modelValue:t.suppress,"onUpdate:modelValue":o[0]||(o[0]=g=>t.suppress=g),label:"Don't show this again"},null,8,["modelValue"])]),_:1}),e.createVNode(u),e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(m,{color:"primary",variant:"text",onClick:a.dismiss},{default:e.withCtx(()=>[...o[3]||(o[3]=[e.createTextVNode(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const et=y._export_sfc(Qe,[["render",$e]]);exports.ClassificationBanners=H._sfc_main;exports.AppFooter=pe;exports.AppNav=Ze;exports.ClockFooter=L;exports.ContextTag=z;exports.Login=Ge;exports.Notifications=F;exports.ScopeSelector=I;exports.TimeCheck=et;exports.UserMenu=P;
|
|
2
2
|
//# sourceMappingURL=base.cjs.map
|
package/dist/tools/base.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as Y, E as A, x as q } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-
|
|
1
|
+
import { O as Y, E as A, x as q } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_dda5adfc_lang-gWC4BUC8.js";
|
|
2
2
|
import { resolveComponent as a, createElementBlock as _, openBlock as c, createElementVNode as N, createVNode as n, toDisplayString as m, withCtx as s, createBlock as S, createCommentVNode as D, createTextVNode as f, normalizeClass as ee, normalizeProps as se, guardReactiveProps as ie, Fragment as x, renderList as X, mergeProps as te, normalizeStyle as ae, withModifiers as E } from "vue";
|
|
3
3
|
import { _ as V } from "../CustomIcon-B9m73Gqm.js";
|
|
4
4
|
import { navigateToUrl as re, registerApplication as le, start as ce } from "single-spa";
|
|
5
|
-
import { U as H } from "../UpgradeToEnterpriseDialog-
|
|
5
|
+
import { U as H } from "../UpgradeToEnterpriseDialog-vJ0OQVxn.js";
|
|
6
6
|
import { t as L, c as ue, n as W, g as de, e as fe, b as K, d as Q, h as I, f as pe } from "../format-CVeawcIv.js";
|
|
7
|
-
import { _ as jt } from "../ClassificationBanners-
|
|
7
|
+
import { _ as jt } from "../ClassificationBanners-htrLOcBR.js";
|
|
8
8
|
import { AstroStatusIndicator as me, UnknownToAstroStatus as $, AstroStatusColors as he } from "../icons.js";
|
|
9
9
|
import { A as _e } from "../AstroStatus-CY9VkeTN.js";
|
|
10
10
|
import { p as ge } from "../purify.es-BIuh5IAZ.js";
|
package/dist/tools/calendar.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../EventListDialog-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../EventListDialog-B1jwt-28.cjs");exports.ActivityCreateDialog=e.ActivityCreateDialog;exports.ColorSelectForm=e.ColorSelectForm;exports.CreateDialog=e.CreateDialog;exports.DeleteItem=e.DeleteItem;exports.EventListDialog=e.EventListDialog;exports.MetadataCreateDialog=e.MetadataCreateDialog;exports.MetadataInputForm=e.MetadataInputForm;exports.NoteCreateDialog=e.NoteCreateDialog;
|
|
2
2
|
//# sourceMappingURL=calendar.cjs.map
|
package/dist/tools/calendar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as t, C as o, a as r, D as s, E as i, M as l, b as D, N as C } from "../EventListDialog-
|
|
1
|
+
import { A as t, C as o, a as r, D as s, E as i, M as l, b as D, N as C } from "../EventListDialog-C3acqjWI.js";
|
|
2
2
|
export {
|
|
3
3
|
t as ActivityCreateDialog,
|
|
4
4
|
o as ColorSelectForm,
|