@openc3/vue-common 6.8.0 → 6.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArrayWidget-DaONH8Iv.cjs → ArrayWidget-CiW5R8HE.cjs} +2 -2
- package/dist/{ArrayWidget-DaONH8Iv.cjs.map → ArrayWidget-CiW5R8HE.cjs.map} +1 -1
- package/dist/{ArrayWidget-j3ncPuPx.js → ArrayWidget-FGjLmPfG.js} +4 -4
- package/dist/{ArrayWidget-j3ncPuPx.js.map → ArrayWidget-FGjLmPfG.js.map} +1 -1
- package/dist/{ArrayplotWidget-DuLaiGa9.js → ArrayplotWidget-Cfo18TYm.js} +7 -7
- package/dist/{ArrayplotWidget-DuLaiGa9.js.map → ArrayplotWidget-Cfo18TYm.js.map} +1 -1
- package/dist/{ArrayplotWidget-DPMVlst7.cjs → ArrayplotWidget-V5C4JRhx.cjs} +2 -2
- package/dist/{ArrayplotWidget-DPMVlst7.cjs.map → ArrayplotWidget-V5C4JRhx.cjs.map} +1 -1
- package/dist/{BarColumn-CchXr_ex.cjs → BarColumn-B4naVXS_.cjs} +2 -2
- package/dist/{BarColumn-CchXr_ex.cjs.map → BarColumn-B4naVXS_.cjs.map} +1 -1
- package/dist/{BarColumn-BWJ0Dd4O.js → BarColumn-BuJ6MTYG.js} +3 -3
- package/dist/{BarColumn-BWJ0Dd4O.js.map → BarColumn-BuJ6MTYG.js.map} +1 -1
- package/dist/{BlockWidget-CeDueZQ0.cjs → BlockWidget-BJWENVXd.cjs} +2 -2
- package/dist/{BlockWidget-CeDueZQ0.cjs.map → BlockWidget-BJWENVXd.cjs.map} +1 -1
- package/dist/{BlockWidget-Bf5Dd6Cr.js → BlockWidget-B_JwY8-N.js} +4 -4
- package/dist/{BlockWidget-Bf5Dd6Cr.js.map → BlockWidget-B_JwY8-N.js.map} +1 -1
- package/dist/{ButtonWidget-BZulfQct.cjs → ButtonWidget-C2IS6q9D.cjs} +3 -3
- package/dist/{ButtonWidget-BZulfQct.cjs.map → ButtonWidget-C2IS6q9D.cjs.map} +1 -1
- package/dist/{ButtonWidget-bl_mGFYh.js → ButtonWidget-Cd4M3aBD.js} +6 -6
- package/dist/{ButtonWidget-bl_mGFYh.js.map → ButtonWidget-Cd4M3aBD.js.map} +1 -1
- package/dist/{CanvasWidget-DwAXTAyn.cjs → CanvasWidget-BIIhyH_l.cjs} +2 -2
- package/dist/{CanvasWidget-DwAXTAyn.cjs.map → CanvasWidget-BIIhyH_l.cjs.map} +1 -1
- package/dist/{CanvasWidget-boDemgx1.js → CanvasWidget-CpKdOgTG.js} +2 -2
- package/dist/{CanvasWidget-boDemgx1.js.map → CanvasWidget-CpKdOgTG.js.map} +1 -1
- package/dist/{CanvasdotWidget-ByJp9ZIa.cjs → CanvasdotWidget-BVlIdbvL.cjs} +2 -2
- package/dist/{CanvasdotWidget-ByJp9ZIa.cjs.map → CanvasdotWidget-BVlIdbvL.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-BZBbJcER.js → CanvasdotWidget-zYbI5LAw.js} +2 -2
- package/dist/{CanvasdotWidget-BZBbJcER.js.map → CanvasdotWidget-zYbI5LAw.js.map} +1 -1
- package/dist/{CanvasimageWidget-6ywvT5jd.js → CanvasimageWidget--ORQEPj6.js} +3 -3
- package/dist/{CanvasimageWidget-6ywvT5jd.js.map → CanvasimageWidget--ORQEPj6.js.map} +1 -1
- package/dist/{CanvasimageWidget-BDprHuH3.cjs → CanvasimageWidget-SNXRh4TB.cjs} +2 -2
- package/dist/{CanvasimageWidget-BDprHuH3.cjs.map → CanvasimageWidget-SNXRh4TB.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-DjWrA3gX.js → CanvasimagevalueWidget-CtAtYHRm.js} +3 -3
- package/dist/{CanvasimagevalueWidget-DjWrA3gX.js.map → CanvasimagevalueWidget-CtAtYHRm.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-Cl_EuzNC.cjs → CanvasimagevalueWidget-DcXjMEYO.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-Cl_EuzNC.cjs.map → CanvasimagevalueWidget-DcXjMEYO.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-aalWFBxK.cjs → CanvaslabelWidget-8MMfV594.cjs} +2 -2
- package/dist/{CanvaslabelWidget-aalWFBxK.cjs.map → CanvaslabelWidget-8MMfV594.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-Bq4V2BQh.js → CanvaslabelWidget-DWoROb6o.js} +2 -2
- package/dist/{CanvaslabelWidget-Bq4V2BQh.js.map → CanvaslabelWidget-DWoROb6o.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-C8oNcFLi.js → CanvaslabelvalueWidget-A4UbtwEc.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-C8oNcFLi.js.map → CanvaslabelvalueWidget-A4UbtwEc.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-DIO0fADo.cjs → CanvaslabelvalueWidget-hDxHrErw.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-DIO0fADo.cjs.map → CanvaslabelvalueWidget-hDxHrErw.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-nvbL2GoL.js → CanvaslineWidget-BBGi0nrb.js} +2 -2
- package/dist/{CanvaslineWidget-nvbL2GoL.js.map → CanvaslineWidget-BBGi0nrb.js.map} +1 -1
- package/dist/{CanvaslineWidget-CqNOzV_A.cjs → CanvaslineWidget-grGKrpPw.cjs} +2 -2
- package/dist/{CanvaslineWidget-CqNOzV_A.cjs.map → CanvaslineWidget-grGKrpPw.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-ZACQedKx.js → CanvaslinevalueWidget-C_9OkL7f.js} +2 -2
- package/dist/{CanvaslinevalueWidget-ZACQedKx.js.map → CanvaslinevalueWidget-C_9OkL7f.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-D0kOhxXn.cjs → CanvaslinevalueWidget-DMIWLqT-.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-D0kOhxXn.cjs.map → CanvaslinevalueWidget-DMIWLqT-.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-L9xyRwfS.cjs → CheckbuttonWidget-BMYkeGyw.cjs} +2 -2
- package/dist/{CheckbuttonWidget-L9xyRwfS.cjs.map → CheckbuttonWidget-BMYkeGyw.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-B82UE8AB.js → CheckbuttonWidget-CTJg8Ypg.js} +2 -2
- package/dist/{CheckbuttonWidget-B82UE8AB.js.map → CheckbuttonWidget-CTJg8Ypg.js.map} +1 -1
- package/dist/{ClassificationBanners-ZF9Ab7D0.cjs → ClassificationBanners-De_CDp9I.cjs} +2 -2
- package/dist/{ClassificationBanners-ZF9Ab7D0.cjs.map → ClassificationBanners-De_CDp9I.cjs.map} +1 -1
- package/dist/{ClassificationBanners-jiqWjTAZ.js → ClassificationBanners-Dz5-_h_0.js} +2 -2
- package/dist/{ClassificationBanners-jiqWjTAZ.js.map → ClassificationBanners-Dz5-_h_0.js.map} +1 -1
- package/dist/{ComboboxWidget-6hmnB_mK.cjs → ComboboxWidget-CZMUsBRC.cjs} +2 -2
- package/dist/{ComboboxWidget-6hmnB_mK.cjs.map → ComboboxWidget-CZMUsBRC.cjs.map} +1 -1
- package/dist/{ComboboxWidget-4OFiSkI6.js → ComboboxWidget-DWiMZZk8.js} +2 -2
- package/dist/{ComboboxWidget-4OFiSkI6.js.map → ComboboxWidget-DWiMZZk8.js.map} +1 -1
- package/dist/{CriticalCmdDialog-C-UGhtjE.cjs → CriticalCmdDialog-ByiHBnFL.cjs} +2 -2
- package/dist/{CriticalCmdDialog-C-UGhtjE.cjs.map → CriticalCmdDialog-ByiHBnFL.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-FhXDdBn4.js → CriticalCmdDialog-CD72VN-P.js} +3 -3
- package/dist/{CriticalCmdDialog-FhXDdBn4.js.map → CriticalCmdDialog-CD72VN-P.js.map} +1 -1
- package/dist/{DateWidget-BmwtdirF.js → DateWidget-C7GSh68_.js} +2 -2
- package/dist/{DateWidget-BmwtdirF.js.map → DateWidget-C7GSh68_.js.map} +1 -1
- package/dist/{DateWidget-CmSp7svA.cjs → DateWidget-CR4OfvjB.cjs} +2 -2
- package/dist/{DateWidget-CmSp7svA.cjs.map → DateWidget-CR4OfvjB.cjs.map} +1 -1
- package/dist/{DetailsDialog-CLKEfU0s.js → DetailsDialog-B2l0BNc2.js} +2 -2
- package/dist/{DetailsDialog-CLKEfU0s.js.map → DetailsDialog-B2l0BNc2.js.map} +1 -1
- package/dist/{DetailsDialog-DEicfRO1.cjs → DetailsDialog-CrfaoIk5.cjs} +2 -2
- package/dist/{DetailsDialog-DEicfRO1.cjs.map → DetailsDialog-CrfaoIk5.cjs.map} +1 -1
- package/dist/{EventListDialog-BvSMSn7J.js → EventListDialog-1NXp1MLg.js} +3 -3
- package/dist/{EventListDialog-BvSMSn7J.js.map → EventListDialog-1NXp1MLg.js.map} +1 -1
- package/dist/{EventListDialog-Em1RcH7I.cjs → EventListDialog-BwSJXEhw.cjs} +2 -2
- package/dist/{EventListDialog-Em1RcH7I.cjs.map → EventListDialog-BwSJXEhw.cjs.map} +1 -1
- package/dist/{FormatvalueWidget-C8exC3bj.js → FormatvalueWidget-CZJdsUAq.js} +3 -3
- package/dist/{FormatvalueWidget-C8exC3bj.js.map → FormatvalueWidget-CZJdsUAq.js.map} +1 -1
- package/dist/{FormatvalueWidget-auKALSPC.cjs → FormatvalueWidget-zoY5Fzwr.cjs} +2 -2
- package/dist/{FormatvalueWidget-auKALSPC.cjs.map → FormatvalueWidget-zoY5Fzwr.cjs.map} +1 -1
- package/dist/{Graph-BJqtVAaV.cjs → Graph-BuKXPKyK.cjs} +2 -2
- package/dist/{Graph-BJqtVAaV.cjs.map → Graph-BuKXPKyK.cjs.map} +1 -1
- package/dist/{Graph-CWcrowaT.js → Graph-DZBpdSgR.js} +2 -2
- package/dist/{Graph-CWcrowaT.js.map → Graph-DZBpdSgR.js.map} +1 -1
- package/dist/{GraphWidget-CvzxZYVx.js → GraphWidget-CHm4bhMI.js} +2 -2
- package/dist/{GraphWidget-CvzxZYVx.js.map → GraphWidget-CHm4bhMI.js.map} +1 -1
- package/dist/{GraphWidget-BroqS0SO.cjs → GraphWidget-P-EUkwbI.cjs} +2 -2
- package/dist/{GraphWidget-BroqS0SO.cjs.map → GraphWidget-P-EUkwbI.cjs.map} +1 -1
- package/dist/{HorizontalWidget-DBeyBZCp.cjs → HorizontalWidget-1Gd93-D7.cjs} +2 -2
- package/dist/{HorizontalWidget-DBeyBZCp.cjs.map → HorizontalWidget-1Gd93-D7.cjs.map} +1 -1
- package/dist/{HorizontalWidget-Ck151zVw.js → HorizontalWidget-B2skpV1m.js} +2 -2
- package/dist/{HorizontalWidget-Ck151zVw.js.map → HorizontalWidget-B2skpV1m.js.map} +1 -1
- package/dist/{HorizontalboxWidget-D3P-cl9V.js → HorizontalboxWidget-BI0WZP5M.js} +5 -5
- package/dist/{HorizontalboxWidget-D3P-cl9V.js.map → HorizontalboxWidget-BI0WZP5M.js.map} +1 -1
- package/dist/{HorizontalboxWidget-CuWtYdgh.cjs → HorizontalboxWidget-CHFz7lCJ.cjs} +2 -2
- package/dist/{HorizontalboxWidget-CuWtYdgh.cjs.map → HorizontalboxWidget-CHFz7lCJ.cjs.map} +1 -1
- package/dist/{HorizontallineWidget-BE1TjPU8.js → HorizontallineWidget-AmxVeXcU.js} +2 -2
- package/dist/{HorizontallineWidget-BE1TjPU8.js.map → HorizontallineWidget-AmxVeXcU.js.map} +1 -1
- package/dist/{HorizontallineWidget-QUFjdOSu.cjs → HorizontallineWidget-CCuEqHsc.cjs} +2 -2
- package/dist/{HorizontallineWidget-QUFjdOSu.cjs.map → HorizontallineWidget-CCuEqHsc.cjs.map} +1 -1
- package/dist/{IframeWidget-DOZ1YyS2.cjs → IframeWidget-DG7yUYb3.cjs} +2 -2
- package/dist/{IframeWidget-DOZ1YyS2.cjs.map → IframeWidget-DG7yUYb3.cjs.map} +1 -1
- package/dist/{IframeWidget-BgJCgues.js → IframeWidget-DcqRMhyW.js} +2 -2
- package/dist/{IframeWidget-BgJCgues.js.map → IframeWidget-DcqRMhyW.js.map} +1 -1
- package/dist/{ImageLoader-AGF0VbZ5.cjs → ImageLoader-BaDVKIBu.cjs} +2 -2
- package/dist/{ImageLoader-AGF0VbZ5.cjs.map → ImageLoader-BaDVKIBu.cjs.map} +1 -1
- package/dist/{ImageLoader-CWn-PLOk.js → ImageLoader-ly4zoGpO.js} +2 -2
- package/dist/{ImageLoader-CWn-PLOk.js.map → ImageLoader-ly4zoGpO.js.map} +1 -1
- package/dist/{ImageviewerWidget-DnmhYP68.cjs → ImageviewerWidget-BgMpAFvG.cjs} +2 -2
- package/dist/{ImageviewerWidget-DnmhYP68.cjs.map → ImageviewerWidget-BgMpAFvG.cjs.map} +1 -1
- package/dist/{ImageviewerWidget-BlhFZD2f.js → ImageviewerWidget-cmDHcmW4.js} +2 -2
- package/dist/{ImageviewerWidget-BlhFZD2f.js.map → ImageviewerWidget-cmDHcmW4.js.map} +1 -1
- package/dist/{InterfacesTab-Cwz-zG7j.js → InterfacesTab-BSCFzmW1.js} +6 -6
- package/dist/{InterfacesTab-Cwz-zG7j.js.map → InterfacesTab-BSCFzmW1.js.map} +1 -1
- package/dist/{InterfacesTab-76UJTIwF.cjs → InterfacesTab-K7odu5gi.cjs} +2 -2
- package/dist/{InterfacesTab-76UJTIwF.cjs.map → InterfacesTab-K7odu5gi.cjs.map} +1 -1
- package/dist/{LabelWidget-Cwosk4x2.js → LabelWidget-Bemw8Erq.js} +2 -2
- package/dist/{LabelWidget-Cwosk4x2.js.map → LabelWidget-Bemw8Erq.js.map} +1 -1
- package/dist/{LabelWidget-C0DhD9Mn.cjs → LabelWidget-D6B4JzLR.cjs} +2 -2
- package/dist/{LabelWidget-C0DhD9Mn.cjs.map → LabelWidget-D6B4JzLR.cjs.map} +1 -1
- package/dist/{LabelledWidget-Dl6rAFTQ.js → LabelledWidget-Cb7EvtUG.js} +4 -4
- package/dist/{LabelledWidget-Dl6rAFTQ.js.map → LabelledWidget-Cb7EvtUG.js.map} +1 -1
- package/dist/{LabelledWidget-D8-aKfA_.cjs → LabelledWidget-Dg1pZiON.cjs} +2 -2
- package/dist/{LabelledWidget-D8-aKfA_.cjs.map → LabelledWidget-Dg1pZiON.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-DosPhvaY.cjs → LabelprogressbarWidget-DrVVuiXa.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-DosPhvaY.cjs.map → LabelprogressbarWidget-DrVVuiXa.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-MuAKesOz.js → LabelprogressbarWidget-qYgrGqLY.js} +4 -4
- package/dist/{LabelprogressbarWidget-MuAKesOz.js.map → LabelprogressbarWidget-qYgrGqLY.js.map} +1 -1
- package/dist/{LabelsparklineWidget-CLU8722I.cjs → LabelsparklineWidget-Bht80Ncq.cjs} +2 -2
- package/dist/{LabelsparklineWidget-CLU8722I.cjs.map → LabelsparklineWidget-Bht80Ncq.cjs.map} +1 -1
- package/dist/{LabelsparklineWidget-6LA6Ox3d.js → LabelsparklineWidget-CMklq9-f.js} +4 -4
- package/dist/{LabelsparklineWidget-6LA6Ox3d.js.map → LabelsparklineWidget-CMklq9-f.js.map} +1 -1
- package/dist/{LabelvalueWidget-WP4gK29n.cjs → LabelvalueWidget-DKx6dV8b.cjs} +2 -2
- package/dist/{LabelvalueWidget-WP4gK29n.cjs.map → LabelvalueWidget-DKx6dV8b.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-BxAXx-Tf.js → LabelvalueWidget-NjCMgiYL.js} +4 -4
- package/dist/{LabelvalueWidget-BxAXx-Tf.js.map → LabelvalueWidget-NjCMgiYL.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-BQ-6OXHc.cjs → LabelvaluedescWidget-D8N6KdzA.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-BQ-6OXHc.cjs.map → LabelvaluedescWidget-D8N6KdzA.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-Dwwlnd1g.js → LabelvaluedescWidget-Dflulqm7.js} +10 -10
- package/dist/{LabelvaluedescWidget-Dwwlnd1g.js.map → LabelvaluedescWidget-Dflulqm7.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-Z_7ARnvo.cjs → LabelvaluelimitsbarWidget-DbwVdsfd.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-Z_7ARnvo.cjs.map → LabelvaluelimitsbarWidget-DbwVdsfd.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-Dv8Qk8kK.js → LabelvaluelimitsbarWidget-M34NDk2S.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-Dv8Qk8kK.js.map → LabelvaluelimitsbarWidget-M34NDk2S.js.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-DiO1b01N.cjs → LabelvaluelimitscolumnWidget-1LXrtBFT.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-DiO1b01N.cjs.map → LabelvaluelimitscolumnWidget-1LXrtBFT.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-D-_gl6fq.js → LabelvaluelimitscolumnWidget-Cchaw_-k.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-D-_gl6fq.js.map → LabelvaluelimitscolumnWidget-Cchaw_-k.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-B3MKT-3Y.js → LabelvaluerangebarWidget-7pEykAm3.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-B3MKT-3Y.js.map → LabelvaluerangebarWidget-7pEykAm3.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-DtajHP0b.cjs → LabelvaluerangebarWidget-Ca6lJAZV.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-DtajHP0b.cjs.map → LabelvaluerangebarWidget-Ca6lJAZV.cjs.map} +1 -1
- package/dist/{Layout-Bkb6VP3e.js → Layout-BNvQKlyy.js} +2 -2
- package/dist/{Layout-Bkb6VP3e.js.map → Layout-BNvQKlyy.js.map} +1 -1
- package/dist/Layout-CXwcgFxa.cjs +2 -0
- package/dist/{Layout-CSbYbZWA.cjs.map → Layout-CXwcgFxa.cjs.map} +1 -1
- package/dist/{LedWidget-DeREi8-u.cjs → LedWidget-CafSb6jG.cjs} +2 -2
- package/dist/{LedWidget-DeREi8-u.cjs.map → LedWidget-CafSb6jG.cjs.map} +1 -1
- package/dist/{LedWidget-DOuDD8LI.js → LedWidget-_EA7ZKM8.js} +4 -4
- package/dist/{LedWidget-DOuDD8LI.js.map → LedWidget-_EA7ZKM8.js.map} +1 -1
- package/dist/{LimitsbarWidget-BHr3IcIx.cjs → LimitsbarWidget-B4E6eQgY.cjs} +2 -2
- package/dist/{LimitsbarWidget-BHr3IcIx.cjs.map → LimitsbarWidget-B4E6eQgY.cjs.map} +1 -1
- package/dist/{LimitsbarWidget-D1U6SvVL.js → LimitsbarWidget-DdoQf46y.js} +2 -2
- package/dist/{LimitsbarWidget-D1U6SvVL.js.map → LimitsbarWidget-DdoQf46y.js.map} +1 -1
- package/dist/{LimitscolorWidget-BUkKRrSL.cjs → LimitscolorWidget-B-ESO_oy.cjs} +2 -2
- package/dist/{LimitscolorWidget-BUkKRrSL.cjs.map → LimitscolorWidget-B-ESO_oy.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-iSMGusqt.js → LimitscolorWidget-Cv0umnVo.js} +2 -2
- package/dist/{LimitscolorWidget-iSMGusqt.js.map → LimitscolorWidget-Cv0umnVo.js.map} +1 -1
- package/dist/{LimitscolumnWidget-DjxZTt_r.js → LimitscolumnWidget-CnCQtxim.js} +2 -2
- package/dist/{LimitscolumnWidget-DjxZTt_r.js.map → LimitscolumnWidget-CnCQtxim.js.map} +1 -1
- package/dist/{LimitscolumnWidget-COfNnb6f.cjs → LimitscolumnWidget-PbEe5NP1.cjs} +2 -2
- package/dist/{LimitscolumnWidget-COfNnb6f.cjs.map → LimitscolumnWidget-PbEe5NP1.cjs.map} +1 -1
- package/dist/{LinegraphWidget-RleSRWKa.cjs → LinegraphWidget-Bto_2lSc.cjs} +2 -2
- package/dist/{LinegraphWidget-RleSRWKa.cjs.map → LinegraphWidget-Bto_2lSc.cjs.map} +1 -1
- package/dist/{LinegraphWidget-BHKU6zlT.js → LinegraphWidget-ekyQoR7x.js} +4 -4
- package/dist/{LinegraphWidget-BHKU6zlT.js.map → LinegraphWidget-ekyQoR7x.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-BKO-A2QD.js → MatrixbycolumnsWidget-IBUcGNF7.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-BKO-A2QD.js.map → MatrixbycolumnsWidget-IBUcGNF7.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-DWouVj7A.cjs → MatrixbycolumnsWidget-bMjMlQYz.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-DWouVj7A.cjs.map → MatrixbycolumnsWidget-bMjMlQYz.cjs.map} +1 -1
- package/dist/{MicroservicesTab-L6qMAy4x.cjs → MicroservicesTab-BXb4TPjR.cjs} +2 -2
- package/dist/{MicroservicesTab-L6qMAy4x.cjs.map → MicroservicesTab-BXb4TPjR.cjs.map} +1 -1
- package/dist/{MicroservicesTab-xLup6THU.js → MicroservicesTab-CUqp5uFH.js} +3 -3
- package/dist/{MicroservicesTab-xLup6THU.js.map → MicroservicesTab-CUqp5uFH.js.map} +1 -1
- package/dist/{Openc3Screen-1rQ_Dbp4.js → Openc3Screen-B31-mKUZ.js} +3 -3
- package/dist/{Openc3Screen-1rQ_Dbp4.js.map → Openc3Screen-B31-mKUZ.js.map} +1 -1
- package/dist/{Openc3Screen-BHHnSEoI.cjs → Openc3Screen-ByRi15VK.cjs} +4 -4
- package/dist/{Openc3Screen-BHHnSEoI.cjs.map → Openc3Screen-ByRi15VK.cjs.map} +1 -1
- package/dist/{OutputDialog-DgM7aoa-.cjs → OutputDialog-CXQ5-PgU.cjs} +2 -2
- package/dist/{OutputDialog-DgM7aoa-.cjs.map → OutputDialog-CXQ5-PgU.cjs.map} +1 -1
- package/dist/{OutputDialog-Ut5cXGxQ.js → OutputDialog-wBy-sg3k.js} +9 -9
- package/dist/{OutputDialog-Ut5cXGxQ.js.map → OutputDialog-wBy-sg3k.js.map} +1 -1
- package/dist/{PackagesTab-ChJDyU3Z.js → PackagesTab-BSVPTVe7.js} +3 -3
- package/dist/{PackagesTab-ChJDyU3Z.js.map → PackagesTab-BSVPTVe7.js.map} +1 -1
- package/dist/{PackagesTab-jqsRJEcJ.cjs → PackagesTab-oOtpCEIX.cjs} +2 -2
- package/dist/{PackagesTab-jqsRJEcJ.cjs.map → PackagesTab-oOtpCEIX.cjs.map} +1 -1
- package/dist/{PluginsTab-DYEv8EPg.cjs → PluginsTab-D2-nxcCZ.cjs} +4 -4
- package/dist/{PluginsTab-DYEv8EPg.cjs.map → PluginsTab-D2-nxcCZ.cjs.map} +1 -1
- package/dist/{PluginsTab-CayzDij0.js → PluginsTab-DShjzJVP.js} +4 -4
- package/dist/{PluginsTab-CayzDij0.js.map → PluginsTab-DShjzJVP.js.map} +1 -1
- package/dist/{ProgressbarWidget-fbr2qu_N.js → ProgressbarWidget-CnveFZVh.js} +2 -2
- package/dist/{ProgressbarWidget-fbr2qu_N.js.map → ProgressbarWidget-CnveFZVh.js.map} +1 -1
- package/dist/{ProgressbarWidget-Xba7gDbW.cjs → ProgressbarWidget-KBhRifXc.cjs} +2 -2
- package/dist/{ProgressbarWidget-Xba7gDbW.cjs.map → ProgressbarWidget-KBhRifXc.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-CdpKw7jr.cjs → RadiobuttonWidget-Dt1lTgs1.cjs} +2 -2
- package/dist/{RadiobuttonWidget-CdpKw7jr.cjs.map → RadiobuttonWidget-Dt1lTgs1.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-DL08zcQT.js → RadiobuttonWidget-hWLrCb8W.js} +2 -2
- package/dist/{RadiobuttonWidget-DL08zcQT.js.map → RadiobuttonWidget-hWLrCb8W.js.map} +1 -1
- package/dist/{RadiogroupWidget-DSA8ENmw.cjs → RadiogroupWidget-CT4otlQS.cjs} +2 -2
- package/dist/{RadiogroupWidget-DSA8ENmw.cjs.map → RadiogroupWidget-CT4otlQS.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-DW9Xpj3c.js → RadiogroupWidget-DK1fphkh.js} +2 -2
- package/dist/{RadiogroupWidget-DW9Xpj3c.js.map → RadiogroupWidget-DK1fphkh.js.map} +1 -1
- package/dist/{RangebarWidget-B4oRyUwG.cjs → RangebarWidget-DquzegM5.cjs} +2 -2
- package/dist/{RangebarWidget-B4oRyUwG.cjs.map → RangebarWidget-DquzegM5.cjs.map} +1 -1
- package/dist/{RangebarWidget-o9q55kjc.js → RangebarWidget-vspY8CGV.js} +2 -2
- package/dist/{RangebarWidget-o9q55kjc.js.map → RangebarWidget-vspY8CGV.js.map} +1 -1
- package/dist/{RedisTab-BGz2ZN9T.js → RedisTab-B28s52_T.js} +11 -11
- package/dist/{RedisTab-BGz2ZN9T.js.map → RedisTab-B28s52_T.js.map} +1 -1
- package/dist/{RedisTab-Uqcfgux1.cjs → RedisTab-DBbLlP9e.cjs} +2 -2
- package/dist/{RedisTab-Uqcfgux1.cjs.map → RedisTab-DBbLlP9e.cjs.map} +1 -1
- package/dist/{RollupWidget-BHnjj-DF.js → RollupWidget-07pNcXQV.js} +2 -2
- package/dist/{RollupWidget-BHnjj-DF.js.map → RollupWidget-07pNcXQV.js.map} +1 -1
- package/dist/{RollupWidget-43v3NX_Z.cjs → RollupWidget-CoxNKLcv.cjs} +2 -2
- package/dist/{RollupWidget-43v3NX_Z.cjs.map → RollupWidget-CoxNKLcv.cjs.map} +1 -1
- package/dist/{RoutersTab-Be53r61Y.cjs → RoutersTab-DEtxUph7.cjs} +2 -2
- package/dist/{RoutersTab-Be53r61Y.cjs.map → RoutersTab-DEtxUph7.cjs.map} +1 -1
- package/dist/{RoutersTab-CCEPlZ_Y.js → RoutersTab-DX_r6FEQ.js} +6 -6
- package/dist/{RoutersTab-CCEPlZ_Y.js.map → RoutersTab-DX_r6FEQ.js.map} +1 -1
- package/dist/{ScriptChooser-B6TGFTBN.cjs → ScriptChooser-BZMnm4SX.cjs} +2 -2
- package/dist/{ScriptChooser-B6TGFTBN.cjs.map → ScriptChooser-BZMnm4SX.cjs.map} +1 -1
- package/dist/{ScriptChooser-CXjcm3bN.js → ScriptChooser-Ci_3uZDo.js} +2 -2
- package/dist/{ScriptChooser-CXjcm3bN.js.map → ScriptChooser-Ci_3uZDo.js.map} +1 -1
- package/dist/{ScrollwindowWidget-D-QVwztC.js → ScrollwindowWidget-BcbyrYUo.js} +3 -3
- package/dist/{ScrollwindowWidget-D-QVwztC.js.map → ScrollwindowWidget-BcbyrYUo.js.map} +1 -1
- package/dist/{ScrollwindowWidget-D6ZHZr3o.cjs → ScrollwindowWidget-Djvcd1yX.cjs} +2 -2
- package/dist/{ScrollwindowWidget-D6ZHZr3o.cjs.map → ScrollwindowWidget-Djvcd1yX.cjs.map} +1 -1
- package/dist/{SecretsTab-vVy356vr.js → SecretsTab-BNFEqrT1.js} +7 -7
- package/dist/{SecretsTab-vVy356vr.js.map → SecretsTab-BNFEqrT1.js.map} +1 -1
- package/dist/{SecretsTab-DDZ1VoUf.cjs → SecretsTab-cG1U2SyL.cjs} +2 -2
- package/dist/{SecretsTab-DDZ1VoUf.cjs.map → SecretsTab-cG1U2SyL.cjs.map} +1 -1
- package/dist/{SettingsTab-CbWrf7U9.js → SettingsTab-C4T8ecIZ.js} +4 -4
- package/dist/{SettingsTab-CbWrf7U9.js.map → SettingsTab-C4T8ecIZ.js.map} +1 -1
- package/dist/{SettingsTab-DsIVE5UL.cjs → SettingsTab-DvUFxNoM.cjs} +2 -2
- package/dist/{SettingsTab-DsIVE5UL.cjs.map → SettingsTab-DvUFxNoM.cjs.map} +1 -1
- package/dist/{SignalWidget-CysAE9ZG.cjs → SignalWidget-9IqQEM4M.cjs} +2 -2
- package/dist/{SignalWidget-CysAE9ZG.cjs.map → SignalWidget-9IqQEM4M.cjs.map} +1 -1
- package/dist/{SignalWidget-CsWuufdx.js → SignalWidget-BDp5sUHj.js} +2 -2
- package/dist/{SignalWidget-CsWuufdx.js.map → SignalWidget-BDp5sUHj.js.map} +1 -1
- package/dist/{SimpleTextDialog-CU6G5CBY.cjs → SimpleTextDialog-C1trfMSJ.cjs} +2 -2
- package/dist/{SimpleTextDialog-CU6G5CBY.cjs.map → SimpleTextDialog-C1trfMSJ.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-ChV5vRcV.js → SimpleTextDialog-LQJdcAXX.js} +2 -2
- package/dist/{SimpleTextDialog-ChV5vRcV.js.map → SimpleTextDialog-LQJdcAXX.js.map} +1 -1
- package/dist/{SpacerWidget-ChNk5TFU.cjs → SpacerWidget-BS_oBLMC.cjs} +2 -2
- package/dist/{SpacerWidget-ChNk5TFU.cjs.map → SpacerWidget-BS_oBLMC.cjs.map} +1 -1
- package/dist/{SpacerWidget-Di9-qunj.js → SpacerWidget-DcOnQ1yI.js} +2 -2
- package/dist/{SpacerWidget-Di9-qunj.js.map → SpacerWidget-DcOnQ1yI.js.map} +1 -1
- package/dist/{SparklineWidget-B6-zhdPW.js → SparklineWidget-CVglnlAm.js} +4 -4
- package/dist/{SparklineWidget-B6-zhdPW.js.map → SparklineWidget-CVglnlAm.js.map} +1 -1
- package/dist/{SparklineWidget-D1tVqSRL.cjs → SparklineWidget-CciCNv5R.cjs} +2 -2
- package/dist/{SparklineWidget-D1tVqSRL.cjs.map → SparklineWidget-CciCNv5R.cjs.map} +1 -1
- package/dist/{TabbookWidget-Btg-Axid.cjs → TabbookWidget-hCZ5AcLk.cjs} +2 -2
- package/dist/{TabbookWidget-Btg-Axid.cjs.map → TabbookWidget-hCZ5AcLk.cjs.map} +1 -1
- package/dist/{TabbookWidget-B1E1_mzA.js → TabbookWidget-p51Oa7Ru.js} +2 -2
- package/dist/{TabbookWidget-B1E1_mzA.js.map → TabbookWidget-p51Oa7Ru.js.map} +1 -1
- package/dist/{TargetsTab-DbbQcBuK.js → TargetsTab-CBagO3CX.js} +6 -6
- package/dist/{TargetsTab-DbbQcBuK.js.map → TargetsTab-CBagO3CX.js.map} +1 -1
- package/dist/{TargetsTab-pbmAAkOA.cjs → TargetsTab-CTzQTnuk.cjs} +2 -2
- package/dist/{TargetsTab-pbmAAkOA.cjs.map → TargetsTab-CTzQTnuk.cjs.map} +1 -1
- package/dist/{TextboxWidget-CHXcR8lA.cjs → TextboxWidget-BhtvlFuj.cjs} +2 -2
- package/dist/{TextboxWidget-CHXcR8lA.cjs.map → TextboxWidget-BhtvlFuj.cjs.map} +1 -1
- package/dist/{TextboxWidget-CBVEXPw_.js → TextboxWidget-DM-XX97e.js} +4 -4
- package/dist/{TextboxWidget-CBVEXPw_.js.map → TextboxWidget-DM-XX97e.js.map} +1 -1
- package/dist/{TextfieldWidget-DZMHrtQa.js → TextfieldWidget-7cYHAgH8.js} +2 -2
- package/dist/{TextfieldWidget-DZMHrtQa.js.map → TextfieldWidget-7cYHAgH8.js.map} +1 -1
- package/dist/{TextfieldWidget-vSJ9CtKs.cjs → TextfieldWidget-ChH9glbY.cjs} +2 -2
- package/dist/{TextfieldWidget-vSJ9CtKs.cjs.map → TextfieldWidget-ChH9glbY.cjs.map} +1 -1
- package/dist/{TimeWidget-ClkxS_oo.cjs → TimeWidget-CUm-LMyL.cjs} +2 -2
- package/dist/{TimeWidget-ClkxS_oo.cjs.map → TimeWidget-CUm-LMyL.cjs.map} +1 -1
- package/dist/{TimeWidget-K4MNmJ7J.js → TimeWidget-EvQJyu6x.js} +2 -2
- package/dist/{TimeWidget-K4MNmJ7J.js.map → TimeWidget-EvQJyu6x.js.map} +1 -1
- package/dist/{TitleWidget-8IcwweFE.js → TitleWidget-6ddfJuqd.js} +2 -2
- package/dist/{TitleWidget-8IcwweFE.js.map → TitleWidget-6ddfJuqd.js.map} +1 -1
- package/dist/{TitleWidget-DJJ17ATm.cjs → TitleWidget-Es1lfe61.cjs} +2 -2
- package/dist/{TitleWidget-DJJ17ATm.cjs.map → TitleWidget-Es1lfe61.cjs.map} +1 -1
- package/dist/{ToolsTab-tkganPCk.js → ToolsTab-ClJNvp8z.js} +3 -3
- package/dist/{ToolsTab-tkganPCk.js.map → ToolsTab-ClJNvp8z.js.map} +1 -1
- package/dist/{ToolsTab-BkabqeR_.cjs → ToolsTab-PKUy_HaM.cjs} +3 -3
- package/dist/{ToolsTab-BkabqeR_.cjs.map → ToolsTab-PKUy_HaM.cjs.map} +1 -1
- package/dist/{TopBar-BoI8SRaF.js → TopBar-CmP-ZyVe.js} +2 -2
- package/dist/{TopBar-BoI8SRaF.js.map → TopBar-CmP-ZyVe.js.map} +1 -1
- package/dist/{TopBar-zJvwq8pr.cjs → TopBar-xyBcJsNc.cjs} +2 -2
- package/dist/{TopBar-zJvwq8pr.cjs.map → TopBar-xyBcJsNc.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-BxHUptQB.cjs → UpgradeToEnterpriseDialog-CViAJs_M.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-BxHUptQB.cjs.map → UpgradeToEnterpriseDialog-CViAJs_M.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-BYz9YoyY.js → UpgradeToEnterpriseDialog-DpWUa84S.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-BYz9YoyY.js.map → UpgradeToEnterpriseDialog-DpWUa84S.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-quWsUlLr.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BuwHe3dn.js} +5635 -5601
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BuwHe3dn.js.map +1 -0
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BflJrsRh.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NN0zFL7Z.cjs} +65 -65
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NN0zFL7Z.cjs.map +1 -0
- package/dist/{VWidget-3ziiUuPM.cjs → VWidget-3jbGZ8Dh.cjs} +2 -2
- package/dist/{VWidget-3ziiUuPM.cjs.map → VWidget-3jbGZ8Dh.cjs.map} +1 -1
- package/dist/{VWidget-CoIgX3hM.js → VWidget-P-X9ffkl.js} +3 -3
- package/dist/{VWidget-CoIgX3hM.js.map → VWidget-P-X9ffkl.js.map} +1 -1
- package/dist/{ValueWidget-RU-vFOh9.cjs → ValueWidget-D3yaN8DJ.cjs} +2 -2
- package/dist/{ValueWidget-RU-vFOh9.cjs.map → ValueWidget-D3yaN8DJ.cjs.map} +1 -1
- package/dist/{ValueWidget-BvT1ASar.js → ValueWidget-DAUGuQ9f.js} +4 -4
- package/dist/{ValueWidget-BvT1ASar.js.map → ValueWidget-DAUGuQ9f.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-B5UtwjJW.cjs → ValuelimitsbarWidget-DGwtzXt6.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-B5UtwjJW.cjs.map → ValuelimitsbarWidget-DGwtzXt6.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-C5lBnUmB.js → ValuelimitsbarWidget-DmLUXw0I.js} +4 -4
- package/dist/{ValuelimitsbarWidget-C5lBnUmB.js.map → ValuelimitsbarWidget-DmLUXw0I.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-BruOZb26.cjs → ValuelimitscolumnWidget-BRYnKfQk.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-BruOZb26.cjs.map → ValuelimitscolumnWidget-BRYnKfQk.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DHYI0WBL.js → ValuelimitscolumnWidget-DDmo8wHJ.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-DHYI0WBL.js.map → ValuelimitscolumnWidget-DDmo8wHJ.js.map} +1 -1
- package/dist/{ValuerangebarWidget-BSszZhlE.js → ValuerangebarWidget-CbzWSWq3.js} +4 -4
- package/dist/{ValuerangebarWidget-BSszZhlE.js.map → ValuerangebarWidget-CbzWSWq3.js.map} +1 -1
- package/dist/{ValuerangebarWidget-BhQVRHhm.cjs → ValuerangebarWidget-hi5jZvo8.cjs} +2 -2
- package/dist/{ValuerangebarWidget-BhQVRHhm.cjs.map → ValuerangebarWidget-hi5jZvo8.cjs.map} +1 -1
- package/dist/{VerticalWidget-1GhgYrC3.js → VerticalWidget-BuKinn_c.js} +2 -2
- package/dist/{VerticalWidget-1GhgYrC3.js.map → VerticalWidget-BuKinn_c.js.map} +1 -1
- package/dist/{VerticalWidget-XZrIw9zV.cjs → VerticalWidget-CRFI8Dq6.cjs} +2 -2
- package/dist/{VerticalWidget-XZrIw9zV.cjs.map → VerticalWidget-CRFI8Dq6.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-BV-onQ8m.cjs → VerticalboxWidget-1qp7u87Q.cjs} +2 -2
- package/dist/{VerticalboxWidget-BV-onQ8m.cjs.map → VerticalboxWidget-1qp7u87Q.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-DYHJqEzd.js → VerticalboxWidget-C0zD5h0O.js} +5 -5
- package/dist/{VerticalboxWidget-DYHJqEzd.js.map → VerticalboxWidget-C0zD5h0O.js.map} +1 -1
- package/dist/{Widget-B8t93Oid.js → Widget-BIXl-Pk5.js} +2 -2
- package/dist/{Widget-B8t93Oid.js.map → Widget-BIXl-Pk5.js.map} +1 -1
- package/dist/{Widget-Blq-k5SB.cjs → Widget-wEcPyNXg.cjs} +2 -2
- package/dist/{Widget-Blq-k5SB.cjs.map → Widget-wEcPyNXg.cjs.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +12 -12
- package/dist/index-DS1ACWVr.js +1755 -0
- package/dist/index-DS1ACWVr.js.map +1 -0
- package/dist/index-Nd4O4kac.cjs +7 -0
- package/dist/index-Nd4O4kac.cjs.map +1 -0
- package/dist/{settings-DyvFSj59.cjs → settings-CUg4_VNE.cjs} +2 -2
- package/dist/{settings-DyvFSj59.cjs.map → settings-CUg4_VNE.cjs.map} +1 -1
- package/dist/{settings-UZsgbUSr.js → settings-DToCplG_.js} +2 -2
- package/dist/{settings-UZsgbUSr.js.map → settings-DToCplG_.js.map} +1 -1
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.js +13 -13
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.js +4 -4
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +7 -7
- package/dist/tools/scriptrunner.js +10 -10
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +63 -63
- package/package.json +3 -3
- package/dist/Layout-CSbYbZWA.cjs +0 -2
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BflJrsRh.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-quWsUlLr.js.map +0 -1
- package/dist/index-DDjz5VQq.js +0 -1721
- package/dist/index-DDjz5VQq.js.map +0 -1
- package/dist/index-DZh4NjG5.cjs +0 -7
- package/dist/index-DZh4NjG5.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 Le=require("../index-DZh4NjG5.cjs"),n=require("vue"),I=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BflJrsRh.cjs"),S=require("../TopBar-zJvwq8pr.cjs");require("single-spa");const Ne={props:{modelValue:Boolean},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,Le.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()}}},ke={class:"pa-3"},Te={class:"px-2"},Se={key:0,class:"mt-4"},$e={key:1,class:"mt-4"};function De(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-icon"),u=n.resolveComponent("v-btn"),h=n.resolveComponent("v-col"),g=n.resolveComponent("v-list-item-title"),p=n.resolveComponent("v-progress-circular"),_=n.resolveComponent("v-list-item"),V=n.resolveComponent("v-divider"),C=n.resolveComponent("v-card-text"),f=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:r.show,"onUpdate:modelValue":e[0]||(e[0]=m=>r.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),e[1]||(e[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",ke,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>[...e[2]||(e[2]=[n.createTextVNode(" Select a download option ",-1)])]),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[n.createElementVNode("div",Te,[n.createVNode(u,{block:"","data-test":"searchGithub",color:"primary",disabled:i.disableSearch,onClick:r.searchGithub},{default:n.withCtx(()=>[e[4]||(e[4]=n.createTextVNode(" Github ",-1)),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>[...e[3]||(e[3]=[n.createTextVNode(" mdi-github ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>[...e[5]||(e[5]=[n.createTextVNode(" Community Gems ",-1)])]),_:1}),r.listData.length<1?(n.openBlock(),n.createElementBlock("div",Se,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>[...e[6]||(e[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])]),_:1})])):(n.openBlock(),n.createElementBlock("div",$e,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listData,(m,w)=>(n.openBlock(),n.createElementBlock("div",{key:w},[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),n.createVNode(_,{icon:""},{default:n.withCtx(()=>[i.activeDownload?(n.openBlock(),n.createBlock(p,{key:0,indeterminate:"",color:"primary"})):(n.openBlock(),n.createBlock(u,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:i.activeDownload,onClick:L=>r.downloadGem(m)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),w<r.listData.length-1?(n.openBlock(),n.createBlock(V,{key:w})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ie=I._export_sfc(Ne,[["render",De]]),Me={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,readonly:Boolean},data(){return{editor:null,contextMenu:!1,menuX:0,menuY:0}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},title:function(){return`${this.type}: ${this.name}`},error:function(){return this.editor&&this.editor.getValue()===""&&!this.file?"Input can not be blank.":null}},mounted(){const t=this.buildPluginMode();this.editor=E.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.content),this.editor.clearSelection(),S.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){const t=new Blob([this.editor.getValue()],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),e.click()},buildPluginMode(){let t=E.aceExports.require("ace/lib/oop"),e=E.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,o=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,l=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,i=E.aceExports.require("ace/mode/folding/ruby").FoldMode,r=function(){this.HighlightRules=e,this.$outdent=new o,this.$behaviour=new l,this.foldingRules=new i,this.indentKeywords=this.foldingRules.indentKeywords},s=E.aceExports.require("ace/mode/ruby").Mode;return t.inherits(r,s),(function(){this.$id="ace/mode/openc3"}).call(r.prototype),r},showContextMenu:function(t){this.menuX=t.pageX,this.menuY=t.pageY;let e=this.editor.getCursorPosition(),o=this.editor.session.getTokenAt(e.row,e.column);if(o){let l=o.value.trim();l.includes(" ")?this.docsKeyword=l.split(" ")[0]:this.docsKeyword=l,this.contextMenu=!0}},toggleVimMode:function(){S.AceEditorUtils.toggleVimMode(this.editor)}}},Be=["textContent"],Re={class:"pa-3"},Ae={key:0},Oe=["textContent"];function Fe(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-btn"),c=n.resolveComponent("v-toolbar"),d=n.resolveComponent("v-row"),u=n.resolveComponent("v-col"),h=n.resolveComponent("v-file-input"),g=n.resolveComponent("v-list-item"),p=n.resolveComponent("v-list"),_=n.resolveComponent("v-menu"),V=n.resolveComponent("v-card-text"),C=n.resolveComponent("v-card"),f=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(f,{modelValue:r.show,"onUpdate:modelValue":e[4]||(e[4]=b=>r.show=b),persistent:!o.readonly,width:"80vw"},{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:e[3]||(e[3]=n.withModifiers((...b)=>r.submit&&r.submit(...b),["prevent"]))},[n.createVNode(c,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(r.title)},null,8,Be),n.createVNode(s),n.createVNode(a,{class:"mx-2",icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:r.download},null,8,["onClick"])]),_:1}),n.createVNode(V,null,{default:n.withCtx(()=>[n.createElementVNode("div",Re,[o.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Ae,[n.createVNode(d,{class:"mt-3"},{default:n.withCtx(()=>[...e[5]||(e[5]=[n.createTextVNode(" Upload a file. ",-1)])]),_:1}),n.createVNode(d,{"no-gutters":"",align:"center"},{default:n.withCtx(()=>[n.createVNode(u,{cols:"3"},{default:n.withCtx(()=>[n.createVNode(a,{block:"",color:"success",disabled:!t.file||t.loadingFile||o.readonly,loading:t.loadingFile,"data-test":"editScreenLoadBtn",onClick:t.loadFile},{loader:n.withCtx(()=>[...e[6]||(e[6]=[n.createElementVNode("span",null,"Loading...",-1)])]),default:n.withCtx(()=>[e[7]||(e[7]=n.createTextVNode(" Load ",-1))]),_:1},8,["disabled","loading","onClick"])]),_:1}),n.createVNode(u,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:t.file,"onUpdate:modelValue":e[0]||(e[0]=b=>t.file=b),accept:".json",label:"Click to select .json file.",disabled:o.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(d,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:e[1]||(e[1]=n.withModifiers((...b)=>r.showContextMenu&&r.showContextMenu(...b),["prevent"]))},null,544),n.createVNode(_,{modelValue:i.contextMenu,"onUpdate:modelValue":e[2]||(e[2]=b=>i.contextMenu=b),target:[i.menuX,i.menuY]},{default:n.withCtx(()=>[n.createVNode(p,null,{default:n.withCtx(()=>[n.createVNode(g,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:r.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),n.createVNode(d,{class:"my-3"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"text-red",textContent:n.toDisplayString(r.error)},null,8,Oe),[[n.vShow,r.error]])]),_:1}),n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(a,{variant:"outlined",class:"mx-2","data-test":"editCancelBtn",onClick:n.withModifiers(r.close,["prevent"])},{default:n.withCtx(()=>[...e[8]||(e[8]=[n.createTextVNode(" Cancel ",-1)])]),_:1},8,["onClick"]),o.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!r.error||o.readonly},{default:n.withCtx(()=>[...e[9]||(e[9]=[n.createTextVNode(" Save ",-1)])]),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","persistent"])}const Pe=I._export_sfc(Me,[["render",Fe],["__scopeId","data-v-e84cb3ed"]]),He={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},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)E.ci.get(`/openc3-api/targets/${t.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:t.name,files:e.data})})}};function qe(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-list-item-title"),d=n.resolveComponent("v-list-item-subtitle"),u=n.resolveComponent("v-list-item"),h=n.resolveComponent("v-checkbox"),g=n.resolveComponent("v-card-text"),p=n.resolveComponent("v-btn"),_=n.resolveComponent("v-card-actions"),V=n.resolveComponent("v-card"),C=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(C,{modelValue:r.show,"onUpdate:modelValue":e[3]||(e[3]=f=>r.show=f),width:"600"},{default:n.withCtx(()=>[n.createVNode(V,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),e[4]||(e[4]=n.createElementVNode("span",null," Modified Plugin ",-1)),n.createVNode(s)]),_:1}),n.createVNode(g,{class:"pa-3"},{default:n.withCtx(()=>[n.createElementVNode("div",null," Plugin "+n.toDisplayString(o.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.modifiedTargets,(f,b)=>(n.openBlock(),n.createBlock(u,{key:b,lines:"two"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(f.files,(m,w)=>(n.openBlock(),n.createBlock(d,{key:w},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(h,{modelValue:i.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=f=>i.deleteModified=f),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),n.createVNode(_,{class:"px-2"},{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:e[1]||(e[1]=()=>{r.show=!1,t.$emit("cancel")})},{default:n.withCtx(()=>[...e[5]||(e[5]=[n.createTextVNode(" Cancel ",-1)])]),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[2]||(e[2]=()=>{r.show=!1,t.$emit("submit",i.deleteModified)})},{default:n.withCtx(()=>[...e[6]||(e[6]=[n.createTextVNode(" Confirm ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ue=I._export_sfc(He,[["render",qe]]),_e=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-DYEv8EPg.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-pbmAAkOA.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-76UJTIwF.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-Be53r61Y.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-L6qMAy4x.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-jqsRJEcJ.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-BkabqeR_.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-Uqcfgux1.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-DDZ1VoUf.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-DsIVE5UL.cjs"))}],Ge={components:{TopBar:S.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return _e.map(t=>({displayName:t.displayName,path:{name:t.name}}))}}};function je(t,e,o,l,i,r){const s=n.resolveComponent("top-bar"),a=n.resolveComponent("v-tab"),c=n.resolveComponent("v-tabs"),d=n.resolveComponent("router-view"),u=n.resolveComponent("v-card");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(s,{title:i.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:i.curTab,"onUpdate:modelValue":e[0]||(e[0]=h=>i.curTab=h),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.tabs,(h,g)=>(n.openBlock(),n.createBlock(a,{key:g,to:h.path},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(h.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),n.createVNode(d)]),_:1})])}const Ye=I._export_sfc(Ge,[["render",je]]);function U(t){const[e,o]=t;return[e,o]}function z(t,e){let o=t,l=e;const i=o.length,r=l.length;if(i===0||r===0)return 0;i>r?o=o.substring(i-r):i<r&&(l=l.substring(0,i));const s=Math.min(i,r);if(o===l)return s;let a=0,c=1;for(let d=0;d!==-1;){const u=o.substring(s-c);if(d=l.indexOf(u),d===-1)return a;c+=d,(d===0||o.substring(s-c)===l.substring(0,c))&&(a=c,c++)}return a}function G(t,e){if(!t||!e||t[0]!==e[0])return 0;let o=0,l=Math.min(t.length,e.length),i=l,r=0;for(;o<i;)t.substring(r,i)===e.substring(r,i)?(o=i,r=o):l=i,i=Math.floor((l-o)/2+o);return i}function P(t,e){if(!t||!e||t[t.length-1]!==e[e.length-1])return 0;let o=0,l=Math.min(t.length,e.length),i=l,r=0;for(;o<i;)t.substring(t.length-i,t.length-r)===e.substring(e.length-i,e.length-r)?(o=i,r=o):l=i,i=Math.floor((l-o)/2+o);return i}function ze(t){const e=t.charCodeAt(0);return e>=55296&&e<=56319}function We(t){const e=t.charCodeAt(0);return e>=56320&&e<=57343}function Ke(t,e,o){const l=t.length,i=e.length,r=Math.ceil((l+i)/2),s=r,a=2*r,c=new Array(a),d=new Array(a);for(let C=0;C<a;C++)c[C]=-1,d[C]=-1;c[s+1]=0,d[s+1]=0;const u=l-i,h=u%2!==0;let g=0,p=0,_=0,V=0;for(let C=0;C<r&&!(Date.now()>o);C++){for(let f=-C+g;f<=C-p;f+=2){const b=s+f;let m;f===-C||f!==C&&c[b-1]<c[b+1]?m=c[b+1]:m=c[b-1]+1;let w=m-f;for(;m<l&&w<i&&t.charAt(m)===e.charAt(w);)m++,w++;if(c[b]=m,m>l)p+=2;else if(w>i)g+=2;else if(h){const L=s+u-f;if(L>=0&&L<a&&d[L]!==-1){const T=l-d[L];if(m>=T)return W(t,e,m,w,o)}}}for(let f=-C+_;f<=C-V;f+=2){const b=s+f;let m;f===-C||f!==C&&d[b-1]<d[b+1]?m=d[b+1]:m=d[b-1]+1;let w=m-f;for(;m<l&&w<i&&t.charAt(l-m-1)===e.charAt(i-w-1);)m++,w++;if(d[b]=m,m>l)V+=2;else if(w>i)_+=2;else if(!h){const L=s+u-f;if(L>=0&&L<a&&c[L]!==-1){const T=c[L],H=s+T-L;if(m=l-m,T>=m)return W(t,e,T,H,o)}}}}return[[N,t],[y,e]]}function W(t,e,o,l,i){const r=t.substring(0,o),s=e.substring(0,l),a=t.substring(o),c=e.substring(l),d=$(r,s,{checkLines:!1,deadline:i}),u=$(a,c,{checkLines:!1,deadline:i});return d.concat(u)}function Xe(t,e,o=1){if(o<=0)return null;const l=t.length>e.length?t:e,i=t.length>e.length?e:t;if(l.length<4||i.length*2<l.length)return null;const r=K(l,i,Math.ceil(l.length/4)),s=K(l,i,Math.ceil(l.length/2));let a;if(r&&s)a=r[4].length>s[4].length?r:s;else{if(!r&&!s)return null;s?r||(a=s):a=r}if(!a)throw new Error("Unable to find a half match.");let c,d,u,h;t.length>e.length?(c=a[0],d=a[1],u=a[2],h=a[3]):(u=a[0],h=a[1],c=a[2],d=a[3]);const g=a[4];return[c,d,u,h,g]}function K(t,e,o){const l=t.slice(o,o+Math.floor(t.length/4));let i=-1,r="",s,a,c,d;for(;(i=e.indexOf(l,i+1))!==-1;){const u=G(t.slice(o),e.slice(i)),h=P(t.slice(0,o),e.slice(0,i));r.length<h+u&&(r=e.slice(i-h,i)+e.slice(i,i+u),s=t.slice(0,o-h),a=t.slice(o+u),c=e.slice(0,i-h),d=e.slice(i+u))}return r.length*2>=t.length?[s||"",a||"",c||"",d||"",r||""]:null}function Je(t,e){for(let o=0;o<t.length;o++){const l=t[o][1],i=[];for(let r=0;r<l.length;r++)i[r]=e[l.charCodeAt(r)];t[o][1]=i.join("")}}function Qe(t,e){const o=[],l={};o[0]="";function i(c){let d="",u=0,h=-1,g=o.length;for(;h<c.length-1;){h=c.indexOf(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Le=require("../index-Nd4O4kac.cjs"),n=require("vue"),I=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NN0zFL7Z.cjs"),S=require("../TopBar-xyBcJsNc.cjs");require("single-spa");const Ne={props:{modelValue:Boolean},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,Le.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()}}},ke={class:"pa-3"},Te={class:"px-2"},Se={key:0,class:"mt-4"},$e={key:1,class:"mt-4"};function De(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-row"),d=n.resolveComponent("v-icon"),u=n.resolveComponent("v-btn"),h=n.resolveComponent("v-col"),g=n.resolveComponent("v-list-item-title"),p=n.resolveComponent("v-progress-circular"),_=n.resolveComponent("v-list-item"),V=n.resolveComponent("v-divider"),C=n.resolveComponent("v-card-text"),f=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:r.show,"onUpdate:modelValue":e[0]||(e[0]=m=>r.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),e[1]||(e[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",ke,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>[...e[2]||(e[2]=[n.createTextVNode(" Select a download option ",-1)])]),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[n.createElementVNode("div",Te,[n.createVNode(u,{block:"","data-test":"searchGithub",color:"primary",disabled:i.disableSearch,onClick:r.searchGithub},{default:n.withCtx(()=>[e[4]||(e[4]=n.createTextVNode(" Github ",-1)),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>[...e[3]||(e[3]=[n.createTextVNode(" mdi-github ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>[...e[5]||(e[5]=[n.createTextVNode(" Community Gems ",-1)])]),_:1}),r.listData.length<1?(n.openBlock(),n.createElementBlock("div",Se,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>[...e[6]||(e[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])]),_:1})])):(n.openBlock(),n.createElementBlock("div",$e,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listData,(m,w)=>(n.openBlock(),n.createElementBlock("div",{key:w},[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),n.createVNode(_,{icon:""},{default:n.withCtx(()=>[i.activeDownload?(n.openBlock(),n.createBlock(p,{key:0,indeterminate:"",color:"primary"})):(n.openBlock(),n.createBlock(u,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:i.activeDownload,onClick:L=>r.downloadGem(m)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),w<r.listData.length-1?(n.openBlock(),n.createBlock(V,{key:w})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ie=I._export_sfc(Ne,[["render",De]]),Me={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,readonly:Boolean},data(){return{editor:null,contextMenu:!1,menuX:0,menuY:0}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},title:function(){return`${this.type}: ${this.name}`},error:function(){return this.editor&&this.editor.getValue()===""&&!this.file?"Input can not be blank.":null}},mounted(){const t=this.buildPluginMode();this.editor=E.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.content),this.editor.clearSelection(),S.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{submit:function(){this.$emit("submit",this.editor.getValue()),this.show=!this.show},close:function(){this.show=!this.show},download:function(){const t=new Blob([this.editor.getValue()],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),e.click()},buildPluginMode(){let t=E.aceExports.require("ace/lib/oop"),e=E.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,o=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,l=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,i=E.aceExports.require("ace/mode/folding/ruby").FoldMode,r=function(){this.HighlightRules=e,this.$outdent=new o,this.$behaviour=new l,this.foldingRules=new i,this.indentKeywords=this.foldingRules.indentKeywords},s=E.aceExports.require("ace/mode/ruby").Mode;return t.inherits(r,s),(function(){this.$id="ace/mode/openc3"}).call(r.prototype),r},showContextMenu:function(t){this.menuX=t.pageX,this.menuY=t.pageY;let e=this.editor.getCursorPosition(),o=this.editor.session.getTokenAt(e.row,e.column);if(o){let l=o.value.trim();l.includes(" ")?this.docsKeyword=l.split(" ")[0]:this.docsKeyword=l,this.contextMenu=!0}},toggleVimMode:function(){S.AceEditorUtils.toggleVimMode(this.editor)}}},Be=["textContent"],Re={class:"pa-3"},Ae={key:0},Oe=["textContent"];function Fe(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-btn"),c=n.resolveComponent("v-toolbar"),d=n.resolveComponent("v-row"),u=n.resolveComponent("v-col"),h=n.resolveComponent("v-file-input"),g=n.resolveComponent("v-list-item"),p=n.resolveComponent("v-list"),_=n.resolveComponent("v-menu"),V=n.resolveComponent("v-card-text"),C=n.resolveComponent("v-card"),f=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(f,{modelValue:r.show,"onUpdate:modelValue":e[4]||(e[4]=b=>r.show=b),persistent:!o.readonly,width:"80vw"},{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:e[3]||(e[3]=n.withModifiers((...b)=>r.submit&&r.submit(...b),["prevent"]))},[n.createVNode(c,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(r.title)},null,8,Be),n.createVNode(s),n.createVNode(a,{class:"mx-2",icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:r.download},null,8,["onClick"])]),_:1}),n.createVNode(V,null,{default:n.withCtx(()=>[n.createElementVNode("div",Re,[o.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Ae,[n.createVNode(d,{class:"mt-3"},{default:n.withCtx(()=>[...e[5]||(e[5]=[n.createTextVNode(" Upload a file. ",-1)])]),_:1}),n.createVNode(d,{"no-gutters":"",align:"center"},{default:n.withCtx(()=>[n.createVNode(u,{cols:"3"},{default:n.withCtx(()=>[n.createVNode(a,{block:"",color:"success",disabled:!t.file||t.loadingFile||o.readonly,loading:t.loadingFile,"data-test":"editScreenLoadBtn",onClick:t.loadFile},{loader:n.withCtx(()=>[...e[6]||(e[6]=[n.createElementVNode("span",null,"Loading...",-1)])]),default:n.withCtx(()=>[e[7]||(e[7]=n.createTextVNode(" Load ",-1))]),_:1},8,["disabled","loading","onClick"])]),_:1}),n.createVNode(u,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:t.file,"onUpdate:modelValue":e[0]||(e[0]=b=>t.file=b),accept:".json",label:"Click to select .json file.",disabled:o.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(d,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:e[1]||(e[1]=n.withModifiers((...b)=>r.showContextMenu&&r.showContextMenu(...b),["prevent"]))},null,544),n.createVNode(_,{modelValue:i.contextMenu,"onUpdate:modelValue":e[2]||(e[2]=b=>i.contextMenu=b),target:[i.menuX,i.menuY]},{default:n.withCtx(()=>[n.createVNode(p,null,{default:n.withCtx(()=>[n.createVNode(g,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:r.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),n.createVNode(d,{class:"my-3"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"text-red",textContent:n.toDisplayString(r.error)},null,8,Oe),[[n.vShow,r.error]])]),_:1}),n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(a,{variant:"outlined",class:"mx-2","data-test":"editCancelBtn",onClick:n.withModifiers(r.close,["prevent"])},{default:n.withCtx(()=>[...e[8]||(e[8]=[n.createTextVNode(" Cancel ",-1)])]),_:1},8,["onClick"]),o.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!r.error||o.readonly},{default:n.withCtx(()=>[...e[9]||(e[9]=[n.createTextVNode(" Save ",-1)])]),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","persistent"])}const Pe=I._export_sfc(Me,[["render",Fe],["__scopeId","data-v-e84cb3ed"]]),He={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},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)E.hi.get(`/openc3-api/targets/${t.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:t.name,files:e.data})})}};function qe(t,e,o,l,i,r){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-toolbar"),c=n.resolveComponent("v-list-item-title"),d=n.resolveComponent("v-list-item-subtitle"),u=n.resolveComponent("v-list-item"),h=n.resolveComponent("v-checkbox"),g=n.resolveComponent("v-card-text"),p=n.resolveComponent("v-btn"),_=n.resolveComponent("v-card-actions"),V=n.resolveComponent("v-card"),C=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(C,{modelValue:r.show,"onUpdate:modelValue":e[3]||(e[3]=f=>r.show=f),width:"600"},{default:n.withCtx(()=>[n.createVNode(V,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),e[4]||(e[4]=n.createElementVNode("span",null," Modified Plugin ",-1)),n.createVNode(s)]),_:1}),n.createVNode(g,{class:"pa-3"},{default:n.withCtx(()=>[n.createElementVNode("div",null," Plugin "+n.toDisplayString(o.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.modifiedTargets,(f,b)=>(n.openBlock(),n.createBlock(u,{key:b,lines:"two"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(f.files,(m,w)=>(n.openBlock(),n.createBlock(d,{key:w},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(h,{modelValue:i.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=f=>i.deleteModified=f),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),n.createVNode(_,{class:"px-2"},{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(p,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:e[1]||(e[1]=()=>{r.show=!1,t.$emit("cancel")})},{default:n.withCtx(()=>[...e[5]||(e[5]=[n.createTextVNode(" Cancel ",-1)])]),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[2]||(e[2]=()=>{r.show=!1,t.$emit("submit",i.deleteModified)})},{default:n.withCtx(()=>[...e[6]||(e[6]=[n.createTextVNode(" Confirm ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ue=I._export_sfc(He,[["render",qe]]),_e=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-D2-nxcCZ.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-CTzQTnuk.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-K7odu5gi.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-DEtxUph7.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-BXb4TPjR.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-oOtpCEIX.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-PKUy_HaM.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-DBbLlP9e.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-cG1U2SyL.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-DvUFxNoM.cjs"))}],Ge={components:{TopBar:S.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return _e.map(t=>({displayName:t.displayName,path:{name:t.name}}))}}};function je(t,e,o,l,i,r){const s=n.resolveComponent("top-bar"),a=n.resolveComponent("v-tab"),c=n.resolveComponent("v-tabs"),d=n.resolveComponent("router-view"),u=n.resolveComponent("v-card");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(s,{title:i.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:i.curTab,"onUpdate:modelValue":e[0]||(e[0]=h=>i.curTab=h),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.tabs,(h,g)=>(n.openBlock(),n.createBlock(a,{key:g,to:h.path},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(h.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),n.createVNode(d)]),_:1})])}const Ye=I._export_sfc(Ge,[["render",je]]);function U(t){const[e,o]=t;return[e,o]}function z(t,e){let o=t,l=e;const i=o.length,r=l.length;if(i===0||r===0)return 0;i>r?o=o.substring(i-r):i<r&&(l=l.substring(0,i));const s=Math.min(i,r);if(o===l)return s;let a=0,c=1;for(let d=0;d!==-1;){const u=o.substring(s-c);if(d=l.indexOf(u),d===-1)return a;c+=d,(d===0||o.substring(s-c)===l.substring(0,c))&&(a=c,c++)}return a}function G(t,e){if(!t||!e||t[0]!==e[0])return 0;let o=0,l=Math.min(t.length,e.length),i=l,r=0;for(;o<i;)t.substring(r,i)===e.substring(r,i)?(o=i,r=o):l=i,i=Math.floor((l-o)/2+o);return i}function P(t,e){if(!t||!e||t[t.length-1]!==e[e.length-1])return 0;let o=0,l=Math.min(t.length,e.length),i=l,r=0;for(;o<i;)t.substring(t.length-i,t.length-r)===e.substring(e.length-i,e.length-r)?(o=i,r=o):l=i,i=Math.floor((l-o)/2+o);return i}function ze(t){const e=t.charCodeAt(0);return e>=55296&&e<=56319}function We(t){const e=t.charCodeAt(0);return e>=56320&&e<=57343}function Ke(t,e,o){const l=t.length,i=e.length,r=Math.ceil((l+i)/2),s=r,a=2*r,c=new Array(a),d=new Array(a);for(let C=0;C<a;C++)c[C]=-1,d[C]=-1;c[s+1]=0,d[s+1]=0;const u=l-i,h=u%2!==0;let g=0,p=0,_=0,V=0;for(let C=0;C<r&&!(Date.now()>o);C++){for(let f=-C+g;f<=C-p;f+=2){const b=s+f;let m;f===-C||f!==C&&c[b-1]<c[b+1]?m=c[b+1]:m=c[b-1]+1;let w=m-f;for(;m<l&&w<i&&t.charAt(m)===e.charAt(w);)m++,w++;if(c[b]=m,m>l)p+=2;else if(w>i)g+=2;else if(h){const L=s+u-f;if(L>=0&&L<a&&d[L]!==-1){const T=l-d[L];if(m>=T)return W(t,e,m,w,o)}}}for(let f=-C+_;f<=C-V;f+=2){const b=s+f;let m;f===-C||f!==C&&d[b-1]<d[b+1]?m=d[b+1]:m=d[b-1]+1;let w=m-f;for(;m<l&&w<i&&t.charAt(l-m-1)===e.charAt(i-w-1);)m++,w++;if(d[b]=m,m>l)V+=2;else if(w>i)_+=2;else if(!h){const L=s+u-f;if(L>=0&&L<a&&c[L]!==-1){const T=c[L],H=s+T-L;if(m=l-m,T>=m)return W(t,e,T,H,o)}}}}return[[N,t],[y,e]]}function W(t,e,o,l,i){const r=t.substring(0,o),s=e.substring(0,l),a=t.substring(o),c=e.substring(l),d=$(r,s,{checkLines:!1,deadline:i}),u=$(a,c,{checkLines:!1,deadline:i});return d.concat(u)}function Xe(t,e,o=1){if(o<=0)return null;const l=t.length>e.length?t:e,i=t.length>e.length?e:t;if(l.length<4||i.length*2<l.length)return null;const r=K(l,i,Math.ceil(l.length/4)),s=K(l,i,Math.ceil(l.length/2));let a;if(r&&s)a=r[4].length>s[4].length?r:s;else{if(!r&&!s)return null;s?r||(a=s):a=r}if(!a)throw new Error("Unable to find a half match.");let c,d,u,h;t.length>e.length?(c=a[0],d=a[1],u=a[2],h=a[3]):(u=a[0],h=a[1],c=a[2],d=a[3]);const g=a[4];return[c,d,u,h,g]}function K(t,e,o){const l=t.slice(o,o+Math.floor(t.length/4));let i=-1,r="",s,a,c,d;for(;(i=e.indexOf(l,i+1))!==-1;){const u=G(t.slice(o),e.slice(i)),h=P(t.slice(0,o),e.slice(0,i));r.length<h+u&&(r=e.slice(i-h,i)+e.slice(i,i+u),s=t.slice(0,o-h),a=t.slice(o+u),c=e.slice(0,i-h),d=e.slice(i+u))}return r.length*2>=t.length?[s||"",a||"",c||"",d||"",r||""]:null}function Je(t,e){for(let o=0;o<t.length;o++){const l=t[o][1],i=[];for(let r=0;r<l.length;r++)i[r]=e[l.charCodeAt(r)];t[o][1]=i.join("")}}function Qe(t,e){const o=[],l={};o[0]="";function i(c){let d="",u=0,h=-1,g=o.length;for(;h<c.length-1;){h=c.indexOf(`
|
|
2
2
|
`,u),h===-1&&(h=c.length-1);let p=c.slice(u,h+1);(l.hasOwnProperty?l.hasOwnProperty(p):l[p]!==void 0)?d+=String.fromCharCode(l[p]):(g===r&&(p=c.slice(u),h=c.length),d+=String.fromCharCode(g),l[p]=g,o[g++]=p),u=h+1}return d}let r=4e4;const s=i(t);r=65535;const a=i(e);return{chars1:s,chars2:a,lineArray:o}}function Ze(t,e,o){let l=t,i=e;const r=Qe(l,i);l=r.chars1,i=r.chars2;const s=r.lineArray;let a=$(l,i,{checkLines:!1,deadline:o.deadline});Je(a,s),a=be(a),a.push([x,""]);let c=0,d=0,u=0,h="",g="";for(;c<a.length;){switch(a[c][0]){case y:u++,g+=a[c][1];break;case N:d++,h+=a[c][1];break;case x:if(d>=1&&u>=1){a.splice(c-d-u,d+u),c=c-d-u;const p=$(h,g,{checkLines:!1,deadline:o.deadline});for(let _=p.length-1;_>=0;_--)a.splice(c,0,p[_]);c+=p.length}u=0,d=0,h="",g="";break;default:throw new Error("Unknown diff operation.")}c++}return a.pop(),a}function et(t,e,o){let l;if(!t)return[[y,e]];if(!e)return[[N,t]];const i=t.length>e.length?t:e,r=t.length>e.length?e:t,s=i.indexOf(r);if(s!==-1)return l=[[y,i.substring(0,s)],[x,r],[y,i.substring(s+r.length)]],t.length>e.length&&(l[0][0]=N,l[2][0]=N),l;if(r.length===1)return[[N,t],[y,e]];const a=Xe(t,e);if(a){const c=a[0],d=a[1],u=a[2],h=a[3],g=a[4],p=$(c,u,o),_=$(d,h,o);return p.concat([[x,g]],_)}return o.checkLines&&t.length>100&&e.length>100?Ze(t,e,o):Ke(t,e,o.deadline)}var tt=Object.defineProperty,X=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,J=(t,e,o)=>e in t?tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,it=(t,e)=>{for(var o in e||(e={}))nt.call(e,o)&&J(t,o,e[o]);if(X)for(var o of X(e))ot.call(e,o)&&J(t,o,e[o]);return t};const N=-1,y=1,x=0;function rt(t,e,o){if(t===null||e===null)throw new Error("Null input. (diff)");const l=$(t,e,st(o||{}));return ct(l),l}function $(t,e,o){let l=t,i=e;if(l===i)return l?[[x,l]]:[];let r=G(l,i);const s=l.substring(0,r);l=l.substring(r),i=i.substring(r),r=P(l,i);const a=l.substring(l.length-r);l=l.substring(0,l.length-r),i=i.substring(0,i.length-r);let c=et(l,i,o);return s&&c.unshift([x,s]),a&&c.push([x,a]),c=j(c),c}function lt(t){let e=1;return typeof t<"u"&&(e=t<=0?Number.MAX_VALUE:t),Date.now()+e*1e3}function st(t){return it({checkLines:!0,deadline:lt(t.timeout||1)},t)}function B(t,e,o){return o===1?t+e:e+t}function R(t,e){return e===1?[t.substring(0,t.length-1),t[t.length-1]]:[t.substring(1),t[0]]}function at(t,e,o,l){return l===1?t[e][1][t[e][1].length-1]===t[o][1][t[o][1].length-1]:t[e][1][0]===t[o][1][0]}function Q(t,e,o){const l=o===1?-1:1;let i=null,r=null,s=e+o;for(;s>=0&&s<t.length&&(i===null||r===null);s+=o){const[d,u]=t[s];if(u.length!==0){if(d===y){i===null&&(i=s);continue}else if(d===N){r===null&&(r=s);continue}else if(d===x){if(i===null&&r===null){const[h,g]=R(t[e][1],o);t[e][1]=h,t[s][1]=B(t[s][1],g,l);return}break}}}if(i!==null&&r!==null&&at(t,i,r,o)){const[d,u]=R(t[i][1],l),[h]=R(t[r][1],l);t[i][1]=d,t[r][1]=h,t[e][1]=B(t[e][1],u,o);return}const[a,c]=R(t[e][1],o);t[e][1]=a,i===null?(t.splice(s,0,[y,c]),r!==null&&r>=s&&r++):t[i][1]=B(t[i][1],c,l),r===null?t.splice(s,0,[N,c]):t[r][1]=B(t[r][1],c,l)}function ct(t){for(let e=0;e<t.length;e++){const[o,l]=t[e];if(l.length===0)continue;const i=l[0],r=l[l.length-1];ze(r)&&o===x&&Q(t,e,1),We(i)&&o===x&&Q(t,e,-1)}for(let e=0;e<t.length;e++)t[e][1].length===0&&t.splice(e,1)}function be(t){let e=t.map(h=>U(h)),o=!1;const l=[];let i=0,r=null,s=0,a=0,c=0,d=0,u=0;for(;s<e.length;)e[s][0]===x?(l[i++]=s,a=d,c=u,d=0,u=0,r=e[s][1]):(e[s][0]===y?d+=e[s][1].length:u+=e[s][1].length,r&&r.length<=Math.max(a,c)&&r.length<=Math.max(d,u)&&(e.splice(l[i-1],0,[N,r]),e[l[i-1]+1][0]=y,i--,i--,s=i>0?l[i-1]:-1,a=0,c=0,d=0,u=0,r=null,o=!0)),s++;for(o&&(e=j(e)),e=ht(e),s=1;s<e.length;){if(e[s-1][0]===N&&e[s][0]===y){const h=e[s-1][1],g=e[s][1],p=z(h,g),_=z(g,h);p>=_?(p>=h.length/2||p>=g.length/2)&&(e.splice(s,0,[x,g.substring(0,p)]),e[s-1][1]=h.substring(0,h.length-p),e[s+1][1]=g.substring(p),s++):(_>=h.length/2||_>=g.length/2)&&(e.splice(s,0,[x,h.substring(0,_)]),e[s-1][0]=y,e[s-1][1]=g.substring(0,g.length-_),e[s+1][0]=N,e[s+1][1]=h.substring(_),s++),s++}s++}return e}const Z=/[^a-zA-Z0-9]/,ee=/\s/,te=/[\r\n]/,dt=/\n\r?\n$/,ut=/^\r?\n\r?\n/;function ht(t){const e=t.map(i=>U(i));function o(i,r){if(!i||!r)return 6;const s=i.charAt(i.length-1),a=r.charAt(0),c=s.match(Z),d=a.match(Z),u=c&&s.match(ee),h=d&&a.match(ee),g=u&&s.match(te),p=h&&a.match(te),_=g&&i.match(dt),V=p&&r.match(ut);return _||V?5:g||p?4:c&&!u&&h?3:u||h?2:c||d?1:0}let l=1;for(;l<e.length-1;){if(e[l-1][0]===x&&e[l+1][0]===x){let i=e[l-1][1],r=e[l][1],s=e[l+1][1];const a=P(i,r);if(a){const g=r.substring(r.length-a);i=i.substring(0,i.length-a),r=g+r.substring(0,r.length-a),s=g+s}let c=i,d=r,u=s,h=o(i,r)+o(r,s);for(;r.charAt(0)===s.charAt(0);){i+=r.charAt(0),r=r.substring(1)+s.charAt(0),s=s.substring(1);const g=o(i,r)+o(r,s);g>=h&&(h=g,c=i,d=r,u=s)}e[l-1][1]!==c&&(c?e[l-1][1]=c:(e.splice(l-1,1),l--),e[l][1]=d,u?e[l+1][1]=u:(e.splice(l+1,1),l--))}l++}return e}function j(t){let e=t.map(d=>U(d));e.push([x,""]);let o=0,l=0,i=0,r="",s="",a;for(;o<e.length;)switch(e[o][0]){case y:i++,s+=e[o][1],o++;break;case N:l++,r+=e[o][1],o++;break;case x:l+i>1?(l!==0&&i!==0&&(a=G(s,r),a!==0&&(o-l-i>0&&e[o-l-i-1][0]===x?e[o-l-i-1][1]+=s.substring(0,a):(e.splice(0,0,[x,s.substring(0,a)]),o++),s=s.substring(a),r=r.substring(a)),a=P(s,r),a!==0&&(e[o][1]=s.substring(s.length-a)+e[o][1],s=s.substring(0,s.length-a),r=r.substring(0,r.length-a))),o-=l+i,e.splice(o,l+i),r.length&&(e.splice(o,0,[N,r]),o++),s.length&&(e.splice(o,0,[y,s]),o++),o++):o!==0&&e[o-1][0]===x?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,i=0,l=0,r="",s="";break;default:throw new Error("Unknown diff operation")}e[e.length-1][1]===""&&e.pop();let c=!1;for(o=1;o<e.length-1;)e[o-1][0]===x&&e[o+1][0]===x&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)===e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),c=!0):e[o][1].substring(0,e[o+1][1].length)===e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),c=!0)),o++;return c&&(e=j(e)),e}function A(t){return t&&typeof t=="object"&&!Array.isArray(t)&&t!==null}function Y(t,e){return A(t)&&A(e)&&Object.keys(e).forEach(o=>{o==="__proto__"||o==="constructor"||(A(e[o])?((!t[o]||!A(t[o]))&&(t[o]=e[o]),Y(t[o],e[o])):Object.assign(t,{[o]:e[o]}))}),t}function ne(t,e,o=!1){let l=null,i=!0;return(...r)=>{const s=o&&i,a=()=>{t.apply(this,r),l=null};s&&(i=!1,a()),l||(l=setTimeout(a,e))}}function gt(t,e){let o;return(...l)=>{const i=this;clearTimeout(o),o=setTimeout(()=>t.apply(i,l),e)}}function oe(t=""){return t.replace(/\r\n/g,`
|
|
3
3
|
`)}function ie(t,e,o,l){const i=o-t,r=t+i/2;return`M ${t} ${e} C ${r},${e} ${r},${l} ${o},${l}`}var v={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 re(t,e){let{mode:o}=t.options;return e===v.EDITOR_LEFT&&t.options.left.mode!==null&&(o=t.options.left.mode),e===v.EDITOR_RIGHT&&t.options.right.mode!==null&&(o=t.options.right.mode),o}function le(t,e){let{theme:o}=t.options;return e===v.EDITOR_LEFT&&t.options.left.theme!==null&&(o=t.options.left.theme),e===v.EDITOR_RIGHT&&t.options.right.theme!==null&&(o=t.options.right.theme),o}function ve(t,e){return t.ace.getSession().doc.getLine(e)}function pt(t){return document.getElementById(t.options.left.id).offsetHeight}function se(t){const e=document.createElement("div"),o={class:t.className,style:`top:${t.topOffset}px`,title:t.tooltip,"data-diff-index":t.diffIndex};for(const l in o)e.setAttribute(l,o[l]);return e.innerHTML=t.arrowContent,e}function q(t,e){const o=Math.random().toString(36).substr(2,5),l=`js-${e}-${o}`,i=t.querySelector(`.${e}`);if(i)return i.id=i.id||l,i.id;const r=document.createElement("div");return t.appendChild(r),r.className=e,r.id=l,r.id}function ae(t,e,o,l){const i=t==="document"?document:document.querySelector(t);i.addEventListener(e,r=>{const s=i.querySelectorAll(o),{target:a}=r;for(let c=0,d=s.length;c<d;c+=1){let u=a;const h=s[c];for(;u&&u!==i;)u===h&&l.call(h,r),u=u.parentNode}})}let O;function mt(t){if(t.Range)return t.Range;const e=t.acequire||t.require;return e?e("ace/range"):!1}function F(t={}){if(!(this instanceof F))return new F(t);const e=this,o=()=>window?window.ace:void 0;e.options=Y({ace:o(),mode:null,theme:null,element:null,diffGranularity:v.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!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",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"→",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"←",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},t);const{ace:l}=e.options;if(!l){const i="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(i),new Error(i)}if(O=mt(l),!O){const i="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(i),new Error(i)}if(e.options.element===null){const i="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(i),new Error(i)}if(e.options.element instanceof HTMLElement?e.el=e.options.element:e.el=document.body.querySelector(e.options.element),!e.el){const i=`Can't find the specified element ${e.options.element}`;return console.error(i),new Error(i)}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__wrap">${e.el.innerHTML}</div>`,e.editors={left:{ace:l.edit(e.options.left.id),markers:[],lineLengths:[]},right:{ace:l.edit(e.options.right.id),markers:[],lineLengths:[]},editorHeight:null},e.editors.left.ace.getSession().setMode(re(e,v.EDITOR_LEFT)),e.editors.right.ace.getSession().setMode(re(e,v.EDITOR_RIGHT)),e.editors.left.ace.setReadOnly(!e.options.left.editable),e.editors.right.ace.setReadOnly(!e.options.right.editable),e.editors.left.ace.setTheme(le(e,v.EDITOR_LEFT)),e.editors.right.ace.setTheme(le(e,v.EDITOR_RIGHT)),e.editors.left.ace.setValue(oe(e.options.left.content),-1),e.editors.right.ace.setValue(oe(e.options.right.content),-1),e.editors.editorHeight=pt(e),setTimeout(()=>{e.lineHeight=e.editors.left.ace.renderer.lineHeight,ft(e),Ct(e),we(e),e.diff()},1)}F.prototype={setOptions(t){Y(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(),o=be(rt(e,t));this.editors.left.lineLengths=de(this.editors.left),this.editors.right.lineLengths=de(this.editors.right);const l=[],i={left:0,right:0};o.forEach(r=>{const s=r[0];let a=r[1];a.length!==0&&(s===v.DIFF_EQUAL?(i.left+=a.length,i.right+=a.length):s===v.DIFF_DELETE?(l.push(ge(this,v.DIFF_DELETE,i.left,i.right,a)),i.right+=a.length):s===v.DIFF_INSERT&&(l.push(ge(this,v.DIFF_INSERT,i.left,i.right,a)),i.left+=a.length))},this),this.diffs=Vt(this,l),!(this.diffs.length>this.options.maxDiffs)&&(Ce(this),xe(this))},destroy(){const t=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let e=this.editors.left.ace.container,o=e.cloneNode(!1);o.textContent=t,e.parentNode.replaceChild(o,e);const l=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),e=this.editors.right.ace.container,o=e.cloneNode(!1),o.textContent=l,e.parentNode.replaceChild(o,e);const i=document.getElementById(this.options.classes.gutterID);i&&(i.innerHTML=""),this.removeEventHandlers()}};function ft(t){t.editors.left.ace.getSession().on("changeScrollTop",ne(()=>{he(t)},16)),t.editors.right.ace.getSession().on("changeScrollTop",ne(()=>{he(t)},16));const e=t.diff.bind(t);t.editors.left.ace.on("change",e),t.editors.right.ace.on("change",e),t.options.left.copyLinkEnabled&&ae(`#${t.options.classes.gutterID}`,"click",`.${t.options.classes.newCodeConnectorLink}`,l=>{ce(t,l,v.LTR)}),t.options.right.copyLinkEnabled&&ae(`#${t.options.classes.gutterID}`,"click",`.${t.options.classes.deletedCodeConnectorLink}`,l=>{ce(t,l,v.RTL)});const o=gt(()=>{t.editors.availableHeight=document.getElementById(t.options.left.id).offsetHeight,t.diff()},250);window.addEventListener("resize",o),t.removeEventHandlers=()=>{window.removeEventListener("resize",o)}}function ce(t,e,o){const l=parseInt(e.target.getAttribute("data-diff-index"),10),i=t.diffs[l];let r,s,a,c,d,u;o===v.LTR?(r=t.editors.left,s=t.editors.right,a=i.leftStartLine,c=i.leftEndLine,d=i.rightStartLine,u=i.rightEndLine):(r=t.editors.right,s=t.editors.left,a=i.rightStartLine,c=i.rightEndLine,d=i.leftStartLine,u=i.leftEndLine);let h="";for(let p=a;p<c;p+=1)h+=ve(r,p),p<r.ace.getSession().getLength()-1&&(h+=`
|
|
4
4
|
`);const g=s.ace.getSession().getScrollTop();s.ace.getSession().replace(new O(d,0,u,0),h),s.ace.getSession().setScrollTop(parseInt(g,10)),t.diff()}function de(t){const e=t.ace.getSession().doc.getAllLines(),o=[];return e.forEach(l=>{o.push(l.length+1)}),o}function ue(t,e,o,l,i){const r=t.editors[e];l<o&&(l=o);const s=`${i} ${l>o?"lines":"targetOnly"}`;l>o&&(l-=1),r.markers.push(r.ace.session.addMarker(new O(o,0,l,1),s,"fullLine"))}function he(t){Ce(t),xe(t),vt(t)}function Ce(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)}function _t(t,e,o,l,i){const r=t.editors.left.ace.getSession().getScrollTop(),s=t.editors.right.ace.getSession().getScrollTop();t.connectorYOffset=1;const a=-1,c=e*t.lineHeight-r+.5,d=t.gutterWidth+1,u=l*t.lineHeight-s+.5,h=-1,g=o*t.lineHeight-r+t.connectorYOffset+.5,p=t.gutterWidth+1,_=i*t.lineHeight-s+t.connectorYOffset+.5,V=ie(a,c,d,u),C=ie(p,_,h,g),f=`L${d},${u} ${p},${_}`,b=`L${h},${g} ${a},${c}`,m=`${V} ${f} ${C} ${b}`,w=document.createElementNS(v.SVG_NS,"path");w.setAttribute("d",m),w.setAttribute("class",t.options.classes.connector),t.gutterSVG.appendChild(w)}function bt(t,e,o){if(e.leftEndLine>e.leftStartLine&&t.options.left.copyLinkEnabled){const l=se({className:t.options.classes.newCodeConnectorLink,topOffset:e.leftStartLine*t.lineHeight,tooltip:"Copy to right",diffIndex:o,arrowContent:t.options.classes.newCodeConnectorLinkContent});t.copyRightContainer.appendChild(l)}if(e.rightEndLine>e.rightStartLine&&t.options.right.copyLinkEnabled){const l=se({className:t.options.classes.deletedCodeConnectorLink,topOffset:e.rightStartLine*t.lineHeight,tooltip:"Copy to left",diffIndex:o,arrowContent:t.options.classes.deletedCodeConnectorLinkContent});t.copyLeftContainer.appendChild(l)}}function vt(t){const e=t.editors.left.ace.getSession().getScrollTop(),o=t.editors.right.ace.getSession().getScrollTop();t.copyRightContainer.style.cssText=`top: ${-e}px`,t.copyLeftContainer.style.cssText=`top: ${-o}px`}function ge(t,e,o,l,i){let r={};if(e===v.DIFF_INSERT){let s=pe(t.editors.left,o,i),a=me(t.editors.right,l),c=D(t.editors.right,a);const d=D(t.editors.left,s.startLine);let u=a,h=s.startLine===s.endLine,g=0;(s.startChar>0||h&&i.length<d)&&c>0&&s.startChar<d&&g++,r={leftStartLine:s.startLine,leftEndLine:s.endLine+1,rightStartLine:u,rightEndLine:u+g}}else{let s=pe(t.editors.right,l,i),a=me(t.editors.left,o),c=D(t.editors.left,a);const d=D(t.editors.right,s.startLine);let u=a,h=s.startLine===s.endLine,g=0;(s.startChar>0||h&&i.length<d)&&c>0&&s.startChar<d&&g++,r={leftStartLine:u,leftEndLine:u+g,rightStartLine:s.startLine,rightEndLine:s.endLine+1}}return r}function pe(t,e,o){const l={startLine:0,startChar:0,endLine:0,endChar:0},i=e+o.length;let r=0,s=!1,a=!1;t.lineLengths.forEach((d,u)=>{r+=d,!s&&e<r&&(l.startLine=u,l.startChar=e-r+d,s=!0),!a&&i<=r&&(l.endLine=u,l.endChar=i-r+d,a=!0)}),l.startChar>0&&D(t,l.startLine)===l.startChar&&(l.startLine++,l.startChar=0),l.endChar===0&&l.endLine--;const c=/\n$/.test(o);return l.startChar>0&&c&&l.endLine++,l}function D(t,e){return ve(t,e).length}function me(t,e){const o=t.ace.getSession().doc.getAllLines();let l=0,i=0;for(let r=0;r<o.length;r+=1)if(i+=o[r].length+1,e<=i){l=r,e===i&&r<o.length-1&&(l+=1);break}return i>=t.ace.getSession().getValue().length&&(l+=1),l}function we(t){t.gutterHeight=document.getElementById(t.options.classes.gutterID).clientHeight,t.gutterWidth=document.getElementById(t.options.classes.gutterID).clientWidth;const e=fe(t,v.EDITOR_LEFT),o=fe(t,v.EDITOR_RIGHT),l=Math.max(e,o,t.gutterHeight);t.gutterSVG=document.createElementNS(v.SVG_NS,"svg"),t.gutterSVG.setAttribute("width",t.gutterWidth),t.gutterSVG.setAttribute("height",l),document.getElementById(t.options.classes.gutterID).appendChild(t.gutterSVG)}function fe(t,e){return(e===v.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 wt(t){document.getElementById(t.options.classes.gutterID).removeChild(t.gutterSVG),we(t)}function xt(t){t.copyLeftContainer.innerHTML="",t.copyRightContainer.innerHTML=""}function Vt(t,e){const o=[];function l(r){return t.options.diffGranularity===v.DIFF_GRANULARITY_SPECIFIC?r<1:r<=1}e.forEach((r,s)=>{if(s===0){o.push(r);return}let a=!1;for(let c=0;c<o.length;c+=1)if(l(Math.abs(r.leftStartLine-o[c].leftEndLine))&&l(Math.abs(r.rightStartLine-o[c].rightEndLine))){o[c].leftStartLine=Math.min(r.leftStartLine,o[c].leftStartLine),o[c].rightStartLine=Math.min(r.rightStartLine,o[c].rightStartLine),o[c].leftEndLine=Math.max(r.leftEndLine,o[c].leftEndLine),o[c].rightEndLine=Math.max(r.rightEndLine,o[c].rightEndLine),a=!0;break}a||o.push(r)});const i=[];return o.forEach(r=>{r.leftStartLine===r.leftEndLine&&r.rightStartLine===r.rightEndLine||i.push(r)}),i}function xe(t){wt(t),xt(t),t.diffs.forEach((e,o)=>{t.options.showDiffs&&(ue(t,v.EDITOR_LEFT,e.leftStartLine,e.leftEndLine,t.options.classes.diff),ue(t,v.EDITOR_RIGHT,e.rightStartLine,e.rightEndLine,t.options.classes.diff),t.options.showConnectors&&_t(t,e.leftStartLine,e.leftEndLine,e.rightStartLine,e.rightEndLine),bt(t,e,o))},t)}const Et={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(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},mounted(){const t=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=E.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(),S.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus()):(this.tab=1,this.differ=new F({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),S.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().left),S.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=E.aceExports.require("ace/lib/oop"),e=E.aceExports.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,o=["VARIABLE"],l=new RegExp(`(\\b${o.join("\\b|\\b")}\\b)`),i=function(){e.call(this);for(let u in this.$rules)this.$rules[u].unshift({regex:l,token:"support.function"})};t.inherits(i,e);let r=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,s=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,a=E.aceExports.require("ace/mode/folding/ruby").FoldMode,c=function(){this.HighlightRules=i,this.$outdent=new r,this.$behaviour=new s,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords},d=E.aceExports.require("ace/mode/ruby").Mode;return t.inherits(c,d),(function(){this.$id="ace/mode/openc3"}).call(c.prototype),c},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
|
package/dist/tools/admin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as Ne } from "../index-
|
|
1
|
+
import { a as Ne } from "../index-DS1ACWVr.js";
|
|
2
2
|
import { resolveComponent as f, createBlock as T, openBlock as y, withCtx as g, createVNode as d, createElementVNode as x, createElementBlock as O, createTextVNode as w, Fragment as G, renderList as U, createCommentVNode as q, toDisplayString as A, withModifiers as P, withDirectives as Fe, vShow as He, toRaw as Pe } from "vue";
|
|
3
3
|
import { _ as j } from "../CustomIcon-h5X7369N.js";
|
|
4
|
-
import {
|
|
5
|
-
import { A as H, T as Ge } from "../TopBar-
|
|
4
|
+
import { b as D, h as Be } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BuwHe3dn.js";
|
|
5
|
+
import { A as H, T as Ge } from "../TopBar-CmP-ZyVe.js";
|
|
6
6
|
import "single-spa";
|
|
7
7
|
const Ue = {
|
|
8
8
|
props: {
|
|
@@ -556,61 +556,61 @@ const Jt = /* @__PURE__ */ j(tt, [["render", nt]]), it = [
|
|
|
556
556
|
displayName: "Plugins",
|
|
557
557
|
name: "PluginsTab",
|
|
558
558
|
path: "plugins",
|
|
559
|
-
component: () => import("../PluginsTab-
|
|
559
|
+
component: () => import("../PluginsTab-DShjzJVP.js")
|
|
560
560
|
},
|
|
561
561
|
{
|
|
562
562
|
displayName: "Targets",
|
|
563
563
|
name: "TargetsTab",
|
|
564
564
|
path: "targets",
|
|
565
|
-
component: () => import("../TargetsTab-
|
|
565
|
+
component: () => import("../TargetsTab-CBagO3CX.js")
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
568
|
displayName: "Interfaces",
|
|
569
569
|
name: "InterfacesTab",
|
|
570
570
|
path: "interfaces",
|
|
571
|
-
component: () => import("../InterfacesTab-
|
|
571
|
+
component: () => import("../InterfacesTab-BSCFzmW1.js")
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
574
|
displayName: "Routers",
|
|
575
575
|
name: "RoutersTab",
|
|
576
576
|
path: "routers",
|
|
577
|
-
component: () => import("../RoutersTab-
|
|
577
|
+
component: () => import("../RoutersTab-DX_r6FEQ.js")
|
|
578
578
|
},
|
|
579
579
|
{
|
|
580
580
|
displayName: "Microservices",
|
|
581
581
|
name: "MicroservicesTab",
|
|
582
582
|
path: "microservices",
|
|
583
|
-
component: () => import("../MicroservicesTab-
|
|
583
|
+
component: () => import("../MicroservicesTab-CUqp5uFH.js")
|
|
584
584
|
},
|
|
585
585
|
{
|
|
586
586
|
displayName: "Packages",
|
|
587
587
|
name: "PackagesTab",
|
|
588
588
|
path: "packages",
|
|
589
|
-
component: () => import("../PackagesTab-
|
|
589
|
+
component: () => import("../PackagesTab-BSVPTVe7.js")
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
592
|
displayName: "Tools",
|
|
593
593
|
name: "ToolsTab",
|
|
594
594
|
path: "tools",
|
|
595
|
-
component: () => import("../ToolsTab-
|
|
595
|
+
component: () => import("../ToolsTab-ClJNvp8z.js")
|
|
596
596
|
},
|
|
597
597
|
{
|
|
598
598
|
displayName: "Redis",
|
|
599
599
|
name: "RedisTab",
|
|
600
600
|
path: "redis",
|
|
601
|
-
component: () => import("../RedisTab-
|
|
601
|
+
component: () => import("../RedisTab-B28s52_T.js")
|
|
602
602
|
},
|
|
603
603
|
{
|
|
604
604
|
displayName: "Secrets",
|
|
605
605
|
name: "SecretsTab",
|
|
606
606
|
path: "secrets",
|
|
607
|
-
component: () => import("../SecretsTab-
|
|
607
|
+
component: () => import("../SecretsTab-BNFEqrT1.js")
|
|
608
608
|
},
|
|
609
609
|
{
|
|
610
610
|
displayName: "Settings",
|
|
611
611
|
name: "SettingsTab",
|
|
612
612
|
path: "settings",
|
|
613
|
-
component: () => import("../SettingsTab-
|
|
613
|
+
component: () => import("../SettingsTab-C4T8ecIZ.js")
|
|
614
614
|
}
|
|
615
615
|
], ot = {
|
|
616
616
|
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_2c757408_lang-BflJrsRh.cjs"),e=require("vue"),y=require("../CustomIcon-Bop2mEnu.cjs"),A=require("single-spa"),B=require("../UpgradeToEnterpriseDialog-BxHUptQB.cjs"),h=require("../format-B22VpiOS.cjs"),H=require("../ClassificationBanners-ZF9Ab7D0.cjs"),D=require("../icons.cjs"),j=require("../AstroStatus-CILMWL6F.cjs"),q=require("../index-DZh4NjG5.cjs");function b(o,t){const s=+h.toDate(o)-+h.toDate(t);return s<0?-1:s>0?1:s}function Z(o){return h.constructFrom(o,Date.now())}function W(o,t,s){const[r,n]=h.normalizeDates(s==null?void 0:s.in,o,t),a=r.getFullYear()-n.getFullYear(),d=r.getMonth()-n.getMonth();return a*12+d}function J(o){return t=>{const r=(o?Math[o]:Math.trunc)(t);return r===0?0:r}}function G(o,t){return+h.toDate(o)-+h.toDate(t)}function K(o,t){const s=h.toDate(o,t==null?void 0:t.in);return s.setHours(23,59,59,999),s}function Q(o,t){const s=h.toDate(o,t==null?void 0:t.in),r=s.getMonth();return s.setFullYear(s.getFullYear(),r+1,0),s.setHours(23,59,59,999),s}function $(o,t){const s=h.toDate(o,t==null?void 0:t.in);return+K(s,t)==+Q(s,t)}function ee(o,t,s){const[r,n,a]=h.normalizeDates(s==null?void 0:s.in,o,o,t),d=b(n,a),i=Math.abs(W(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;$(r)&&i===1&&b(r,a)===1&&(c=!1);const u=d*(i-+c);return u===0?0:u}function te(o,t,s){const r=G(o,t)/1e3;return J(s==null?void 0:s.roundingMethod)(r)}function oe(o,t,s){const r=h.getDefaultOptions(),n=(s==null?void 0:s.locale)??r.locale??h.enUS,a=2520,d=b(o,t);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?[t,o]:[o,t]),m=te(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(_=ee(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 ne(o,t){return oe(o,Z(o),t)}const se={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 o;switch(this.dateMode){case"monthFirst":o="LL/dd/yyy";break;case"dayFirst":o="dd/LL/yyy";break;case"number":o="D";break}let t;return this.display24h?t="HH:mm:ss":t="hh:mm:ss a",`${o} ${t}`}},watch:{displayLocal:function(o){localStorage.clock_zone=o?"local":"utc"},display24h:function(o){o?delete localStorage.clock_12h:localStorage.clock_12h=!0},dateMode:function(o){o.match(/^monthFirst$|^dayFirst$|^number$/)&&(localStorage.clock_dateMode=o)}},created:function(){setInterval(()=>{this.intervalCount++,this.localDate=new Date},this.intervalCount<10?100:1e3)},methods:{openMenu:function(o){o.preventDefault(),this.showMenu=!1,this.menuX=o.clientX,this.menuY=o.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(o,t){return h.format(o,t,{useAdditionalDayOfYearTokens:!0})}}};function re(o,t,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:t[0]||(t[0]=(...v)=>a.openMenu&&a.openMenu(...v))},e.toDisplayString(a.formatDate(o.displayLocal?o.localDate:a.utcDate,a.formatString))+" ("+e.toDisplayString(o.displayLocal?"local":"UTC")+") ",33),e.createVNode(m,{modelValue:o.showMenu,"onUpdate:modelValue":t[1]||(t[1]=v=>o.showMenu=v),target:[o.menuX,o.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(o.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(o.display24h?12:24)+" hour clock ",1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),o.dateMode!=="monthFirst"?(e.openBlock(),e.createBlock(i,{key:0},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setMonthFirst},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode(" Display mm/dd/yyyy ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),o.dateMode!=="dayFirst"?(e.openBlock(),e.createBlock(i,{key:1},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setDayFirst},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode(" Display dd/mm/yyyy ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),o.dateMode!=="number"?(e.openBlock(),e.createBlock(i,{key:2},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setNumber},{default:e.withCtx(()=>[...t[4]||(t[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(se,[["render",re]]),ae={components:{ClockFooter:L,UpgradeToEnterpriseDialog:B.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 o=new URLSearchParams(window.location.search);this.chromeless=o.get("chromeless"),this.getSourceUrl(),C.ci.get("/openc3-api/info").then(t=>{t.data.enterprise?this.edition="COSMOS Enterprise":this.edition="COSMOS Core",this.enterprise=t.data.enterprise,this.license=t.data.license,this.version=t.data.version})},methods:{getSourceUrl:function(){new C.di().get_settings(["source_url"]).then(o=>{this.sourceUrl=o[0]})},upgrade:function(){this.enterprise||(this.showUpgradeToEnterpriseDialog=!0)}}},ie=["src"],le=["href"],ce={class:"justify-right"};function de(o,t,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,ie),e.createElementVNode("span",{class:e.normalizeClass(a.footerClass),onClick:t[0]||(t[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,le),e.createVNode(d),e.createElementVNode("div",ce,[e.createVNode(i)]),e.createVNode(c,{modelValue:n.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":t[1]||(t[1]=m=>n.showUpgradeToEnterpriseDialog=m),reason:"Enterprise is Commercially Licensed"},null,8,["modelValue"])]),_:1}))}const ue=y._export_sfc(ae,[["render",de],["__scopeId","data-v-d165cc51"]]),T=1e3,{highestLevel:pe,orderByLevel:me,groupByLevel:fe}=j.AstroStatus,he={components:{AstroStatusIndicator:D.AstroStatusIndicator},props:{size:{type:[String,Number],default:26}},data:function(){return{AstroStatusColors:D.AstroStatusColors,alerts:[],cable:new C.ui,scriptCable:new C.ui("/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 o=this.unreadNotifications.map(t=>t.level).filter((t,s,r)=>r.indexOf(t)===s);return D.UnknownToAstroStatus[pe(o)]},readNotifications:function(){return this.notifications.filter(o=>o.read).sort((o,t)=>t.time-o.time)},unreadNotifications:function(){return this.notifications.filter(o=>!o.read).sort((o,t)=>t.time-o.time)},unreadCount:function(){return this.unreadNotifications.length},notificationList:function(){const o=fe(this.unreadNotifications);let t=me(Object.keys(o),s=>s).flatMap(s=>[{header:s.charAt(0).toUpperCase()+s.slice(1)},...o[s]]);return this.readNotifications.length&&(t=t.concat([{header:"Read"},...this.readNotifications])),t}},watch:{showNotificationPane:function(o){o||(this.selectedNotification.message?(this.notificationDialog=!1,this.selectedNotification={}):this.markAllAsRead())},showToast:function(o){localStorage.notoast=!o}},created:function(){this.showToast=localStorage.notoast==="false",this.subscribe(),this.alerts=this.$store.state.notifyHistory,C.ci.get("/script-api/running-script").then(o=>{this.numScripts=o.data.total})},unmounted:function(){this.subscription&&this.subscription.unsubscribe(),this.scriptSubscription&&this.scriptSubscription.unsubscribe(),this.cable.disconnect(),this.scriptCable.disconnect()},methods:{getStatus:function(o){return D.UnknownToAstroStatus[o]},markAllAsRead:function(){this.notifications.forEach(o=>{o.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<o.msg_id)&&(localStorage.lastReadNotification=o.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(o,t=!1){o.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<o.msg_id)&&(localStorage.lastReadNotification=o.msg_id),this.selectedNotification=o,this.notificationDialog=!0},navigate:function(o){window.open(o,"_blank")},subscribe:function(){this.cable.createSubscription("MessagesChannel",window.openc3Scope,{received:o=>this.receiveMessage(o)},{start_offset:localStorage.notificationStreamOffset||localStorage.lastReadNotification,types:["notification","alert","ephemeral"]}).then(o=>{this.subscription=o}),this.scriptCable.createSubscription("AllScriptsChannel",window.openc3Scope,{received:o=>this.receiveScript(o)}).then(o=>{this.scriptSubscription=o})},receiveMessage:function(o){this.cable.recordPing(),o.length>T&&o.splice(0,o.length-T);let t=o.filter(r=>r.type==="ephemeral");t&&t.length>0&&(o=o.filter(r=>r.type!=="ephemeral"),t.forEach(r=>{this.$emit("ephemeral",r)}));let s=!1;if(o.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+o.length>T&&this.notifications.splice(0,this.notifications.length+o.length-T),this.notifications=this.notifications.concat(o)},receiveScript:function(o){this.cable.recordPing(),this.numScripts=o.active_scripts},formatShortDateTime:function(o){if(!o)return"";const t=new Date(o/1e6);return ne(t,{addSuffix:!0})}}};function _e(o,t,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"),E=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":o.showNotificationPane,class:"overlay"},null,8,["model-value"]),e.createVNode(E,{modelValue:o.showNotificationPane,"onUpdate:modelValue":t[0]||(t[0]=f=>o.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(()=>[t[7]||(t[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(()=>[t[6]||(t[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}),o.notifications.length===0?(e.openBlock(),e.createBlock(p,{key:0},{default:e.withCtx(()=>[...t[8]||(t[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:et=>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:o.notificationDialog,"onUpdate:modelValue":t[3]||(t[3]=f=>o.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(o.selectedNotification.message)+" ",1),e.createVNode(c),e.createVNode(l,{status:o.selectedNotification.level||"INFO"},null,8,["status"])]),_:1}),e.createVNode(M,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.formatShortDateTime(o.selectedNotification.time)),1)]),_:1}),e.createVNode(_),e.createVNode(O,null,{default:e.withCtx(()=>[o.selectedNotification.url?(e.openBlock(),e.createBlock(u,{key:0,color:"primary",variant:"text",onClick:t[1]||(t[1]=f=>a.navigate(o.selectedNotification.url))},{default:e.withCtx(()=>[t[10]||(t[10]=e.createTextVNode(" Open ",-1)),e.createVNode(X,{end:""},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode(" mdi-open-in-new ",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(u,{color:"primary",variant:"text",onClick:t[2]||(t[2]=f=>o.notificationDialog=!1)},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createVNode(R,{modelValue:o.settingsDialog,"onUpdate:modelValue":t[5]||(t[5]=f=>o.settingsDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode(" Notification settings ",-1)])]),_:1}),e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:o.showToast,"onUpdate:modelValue":t[4]||(t[4]=f=>o.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(()=>[...t[13]||(t[13]=[e.createTextVNode(" Close ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const I=y._export_sfc(he,[["render",_e],["__scopeId","data-v-0d6257f1"]]),ge={components:{UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},data:function(){return{scopes:["DEFAULT"],scope:"DEFAULT",showUpgradeToEnterpriseDialog:!1}}};function ve(o,t,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:t[2]||(t[2]=c=>o.showUpgradeToEnterpriseDialog=!0)},[e.createVNode(d,{modelValue:o.scope,"onUpdate:modelValue":t[0]||(t[0]=c=>o.scope=c),items:o.scopes,disabled:o.scopes.length<=1,label:"Scope",density:"compact",variant:"outlined","hide-details":"",style:{"max-width":"150px"}},null,8,["modelValue","items","disabled"]),e.createVNode(i,{modelValue:o.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":t[1]||(t[1]=c=>o.showUpgradeToEnterpriseDialog=c),reason:"Enterprise allows additional Scopes"},null,8,["modelValue"])])}const F=y._export_sfc(ge,[["render",ve]]),we={components:{UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},props:{size:{type:[String,Number],default:26}},data:function(){let o=OpenC3Auth.user();return{api:new C.di,showUserMenu:!1,authenticated:!!localStorage.openc3Token,name:o.name,username:o.preferred_username,showUpgradeToEnterpriseDialog:!1,activeUsers:["None"],newsFeed:!1,news:[]}},computed:{unreadNews:function(){return this.news.filter(o=>!o.read)}},watch:{showUserMenu:function(o,t){o===!0&&(this.news.length>0&&(this.news.forEach(s=>{s.read=!0}),localStorage.lastNewsRead=this.news[0].date),this.name!=="Anonymous"&&C.ci.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(o=>{o&&(this.newsFeed=o,this.newsFeed&&(this.fetchNews(),setInterval(this.fetchNews,3600*1e3)))}).catch(o=>{})},methods:{refreshNews(){this.api.update_news().then(()=>{this.fetchNews()})},formatDate(o){return o.split("T")[0]},fetchNews:function(){C.ci.get("/openc3-api/news").then(o=>{this.news=o.data.sort((t,s)=>Date.parse(s.date)-Date.parse(t.date)),localStorage.lastNewsRead&&this.news.forEach(t=>{t.read=Date.parse(t.date)<=Date.parse(localStorage.lastNewsRead)})})},logout:function(){OpenC3Auth.logout(),C.ci.put(`/openc3-api/users/logout/${this.username}`)},login:function(){OpenC3Auth.login(location.href)},roles:function(){return this.name==="Anonymous"?"Admin":OpenC3Auth.userroles().map(o=>this.capitalize(o)).sort().join(", ")},capitalize:function(o){return o.charAt(0).toUpperCase()+o.slice(1)}}},Ce={style:{"text-align":"center",margin:"5px"}},Ne={key:0},ke={class:"roles"},ye={class:"pb-3 roles"},Ve={key:1},xe={key:0,class:"pa-3"},Se={key:2},De={key:0},Te={class:"news-title"},be={class:"news-date"},Be=["innerHTML"];function Ee(o,t,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":o.showUserMenu,class:"overlay"},null,8,["model-value"]),e.createVNode(V,{modelValue:o.showUserMenu,"onUpdate:modelValue":t[1]||(t[1]=w=>o.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:o.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",Ce,e.toDisplayString(o.name),1),o.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",Ne,[e.createElementVNode("div",ke,"Username: "+e.toDisplayString(o.username),1),e.createElementVNode("div",ye,"Roles: "+e.toDisplayString(a.roles()),1)])):e.createCommentVNode("",!0),o.authenticated?(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(c,{block:"",color:"primary",onClick:a.logout},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode(" Logout ",-1)])]),_:1},8,["onClick"]),o.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(u,{class:"pt-3 user-title"},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("Other Active Users:",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.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",Se,[e.createVNode(c,{block:"",color:"primary",onClick:a.login},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode(" Login ",-1)])]),_:1},8,["onClick"])])),o.name==="Anonymous"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"pt-2 link",onClick:t[0]||(t[0]=w=>o.showUpgradeToEnterpriseDialog=!0)},[...t[6]||(t[6]=[e.createTextVNode(" Click to learn more about",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" COSMOS Enterprise ",-1)])])):e.createCommentVNode("",!0)]),_:1}),o.newsFeed?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(u,{"no-gutters":"",class:"news-header"},{default:e.withCtx(()=>[e.createVNode(v,{cols:"auto",class:"me-auto"},{default:e.withCtx(()=>[...t[7]||(t[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(()=>[...t[8]||(t[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(o.news,(w,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`news-${x}`},[t[9]||(t[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",Te,e.toDisplayString(w.title),1),e.createElementVNode("span",be,e.toDisplayString(a.formatDate(w.date)),1)]),_:2},1024),e.createElementVNode("div",{innerHTML:w.body},null,8,Be)]),_:2},1024)],64))),128))]),_:1})])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:o.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":t[2]||(t[2]=w=>o.showUpgradeToEnterpriseDialog=w),reason:"Enterprise has individual users with RBAC"},null,8,["modelValue"])])}const P=y._export_sfc(we,[["render",Ee],["__scopeId","data-v-57255d4e"]]),Me={name:"ContextTag",data(){return{api:new C.di,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(o=>{if(o){const t=JSON.parse(o);this.contextTag={text:t.text,fontColor:t.fontColor,backgroundColor:t.backgroundColor}}}).catch(o=>{console.error(o)})},startContextTagAutoRefresh(){this.stopContextTagAutoRefresh(),this.contextTagRefreshInterval=setInterval(()=>{this.getContextTagSettings()},6e4)},stopContextTagAutoRefresh(){this.contextTagRefreshInterval&&(clearInterval(this.contextTagRefreshInterval),this.contextTagRefreshInterval=null)}}};function Ue(o,t,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(Me,[["render",Ue],["__scopeId","data-v-beb61a41"]]),Ae={components:{Notifications:I,ScopeSelector:F,UserMenu:P,UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog,ContextTag:z},props:{edition:{type:String,default:""}},data(){return{api:new C.di,timeZone:"local",subtitle:null,astro:{hideClock:!1},items:[],drawer:!0,appNav:{},logo:"/img/logo.png",initiallyOpen:[],showUpgradeToEnterpriseDialog:!1,chromeless:null}},computed:{shownTools:function(){let o={};for(let t of Object.keys(this.appNav))this.appNav[t].shown&&this.appNav[t].category!=="Admin"&&(o[t]=this.appNav[t]);return o},adminTools:function(){let o={};for(let t of Object.keys(this.appNav))this.appNav[t].shown&&this.appNav[t].category==="Admin"&&(o[t]=this.appNav[t]);return o},astroTimeZone:function(){return this.timeZone==="local"?Intl.DateTimeFormat().resolvedOptions().timeZone:this.timeZone}},created(){const o=new URLSearchParams(window.location.search);this.chromeless=o.get("chromeless"),this.api.get_setting("astro").then(t=>{t&&(this.astro=JSON.parse(t))}).catch(t=>{}),this.api.get_setting("subtitle").then(t=>{t&&(this.subtitle=t)}).catch(t=>{}),this.api.get_setting("time_zone").then(t=>{t&&(this.timeZone=t)}).catch(t=>{}),C.ci.get("/openc3-api/tools/all",{params:{scope:"DEFAULT"}}).then(t=>{this.appNav=t.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(o){let t=null;try{o.url[0]=="/"&&o.url[1]!="/"?t=new URL(o.url,window.location.origin):t=new URL(o.url),t.searchParams.set("scope",window.openc3Scope)}catch(s){window.$cosmosNotify.serious({title:`Invalid URL '${o.url}' for tool ${o.name}`,message:s.message}),t.href="/"}return t.href}}},Oe=["src"],Re={style:{"text-align":"center","font-size":"18pt"}},Le=["href","onClick"],Ie=["href"],Fe=["href","onClick"],Pe=["href","onClick"],ze=["href"],Xe=["href"],Ye=["href"],He=["href"];function je(o,t,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"),E=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,Oe),e.createElementVNode("div",{class:"cosmos",onClick:t[0]||(t[0]=l=>n.showUpgradeToEnterpriseDialog=!0)}," COSMOS "),e.createElementVNode("div",Re,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(()=>[...t[3]||(t[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,Le)):(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,Pe)):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,ze)):l.window==="SAME"?(e.openBlock(),e.createElementBlock("a",{key:2,href:l.url},e.toDisplayString(l.name),9,Xe)):(e.openBlock(),e.createElementBlock("a",{key:3,href:l.url,target:"_blank"},e.toDisplayString(l.name),9,Ye))],64)):(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,Fe))]),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(()=>[...t[4]||(t[4]=[e.createTextVNode("mdi-open-in-new",-1)])]),_:1})],8,He)):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:t[1]||(t[1]=l=>n.drawer=!n.drawer)}),t[5]||(t[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(E,{modelValue:n.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":t[2]||(t[2]=l=>n.showUpgradeToEnterpriseDialog=l),reason:"Enterprise adds Calendar and Autonomic"},null,8,["modelValue"])])}const qe=y._export_sfc(Ae,[["render",je],["__scopeId","data-v-6d806ce5"]]),Ze={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.ci.get("/openc3-api/auth/token-exists",this.options).then(o=>{this.isSet=!!o.data.result,this.isSet||(this.reset=!0)})},mounted:function(){localStorage.openc3Token&&this.verifyPassword(localStorage.openc3Token,!0)},methods:{showReset:function(){this.reset=!0},login:function(o){localStorage.openc3Token=o.data;const t=new URLSearchParams(window.location.search).get("redirect");t!=null&&t.startsWith("/tools/")?window.location=decodeURI(t):window.location="/"},verifyPassword:function(o,t){o||(o=this.password),this.showAlert=!1,C.ci.post("/openc3-api/auth/verify",{data:{token:o},...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=!t})},setPassword:function(){this.showAlert=!1,C.ci.post("/openc3-api/auth/set",{data:{old_token:this.oldPassword,token:this.password},...this.options}).then(o=>{this.login(o)}).catch(o=>{this.alert=`Invalid password: ${o.response.data.message}`,this.alertType="warning",this.showAlert=!0})}}};function We(o,t,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(()=>[...t[5]||(t[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":t[0]||(t[0]=N=>n.oldPassword=N),type:"password",label:"Old Password"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(c,{modelValue:n.password,"onUpdate:modelValue":t[1]||(t[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":t[2]||(t[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",onClick:e.withModifiers(a.setPassword,["prevent"]),size:"large",color:n.isSet?"warn":"success",disabled:!a.formValid,"data-test":"set-password"},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode(" Set ",-1)])]),_:1},8,["onClick","color","disabled"])):(e.openBlock(),e.createBlock(p,{key:3},{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(u,{type:"submit",onClick:t[3]||(t[3]=e.withModifiers(()=>a.verifyPassword(),["prevent"])),size:"large",color:"success",disabled:!a.formValid},{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode(" Login ",-1)])]),_:1},8,["disabled"]),e.createVNode(m),e.createVNode(u,{variant:"text",size:"small",onClick:a.showReset},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode(" Change Password ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}))]),_:1})]),_:1}),e.createVNode(k,{type:n.alertType,modelValue:n.showAlert,"onUpdate:modelValue":t[4]||(t[4]=N=>n.showAlert=N),closable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.alert),1)]),_:1},8,["type","modelValue"])]),_:1})}const Je=y._export_sfc(Ze,[["render",We]]),Ge=3e3,Ke={data:function(){return{dismissed:!1,suppress:!1,discrepancy:0}},created:function(){this.suppress=localStorage.suppresswarning__clock_out_of_sync_with_server==="true",this.suppress||q.axios.get("/openc3-api/time").then(o=>{this.discrepancy=o.data.now_nsec/1e6-Date.now()}).catch(o=>{this.dismissed=!0})},methods:{dismiss:function(){localStorage.suppresswarning__clock_out_of_sync_with_server=this.suppress,this.dismissed=!0}},computed:{approximateDiscrepancySec:function(){return(this.discrepancy/1e3).toFixed()},dialog:function(){return!this.dismissed&&Math.abs(this.discrepancy)>=Ge}}};function Qe(o,t,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":t[1]||(t[1]=g=>a.dialog=g),width:"500"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[...t[2]||(t[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:o.suppress,"onUpdate:modelValue":t[0]||(t[0]=g=>o.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(()=>[...t[3]||(t[3]=[e.createTextVNode(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const $e=y._export_sfc(Ke,[["render",Qe]]);exports.ClassificationBanners=H._sfc_main;exports.AppFooter=ue;exports.AppNav=qe;exports.ClockFooter=L;exports.ContextTag=z;exports.Login=Je;exports.Notifications=I;exports.ScopeSelector=F;exports.TimeCheck=$e;exports.UserMenu=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NN0zFL7Z.cjs"),e=require("vue"),y=require("../CustomIcon-Bop2mEnu.cjs"),A=require("single-spa"),B=require("../UpgradeToEnterpriseDialog-CViAJs_M.cjs"),h=require("../format-B22VpiOS.cjs"),H=require("../ClassificationBanners-De_CDp9I.cjs"),D=require("../icons.cjs"),j=require("../AstroStatus-CILMWL6F.cjs"),q=require("../index-Nd4O4kac.cjs");function b(o,t){const s=+h.toDate(o)-+h.toDate(t);return s<0?-1:s>0?1:s}function Z(o){return h.constructFrom(o,Date.now())}function W(o,t,s){const[r,n]=h.normalizeDates(s==null?void 0:s.in,o,t),a=r.getFullYear()-n.getFullYear(),d=r.getMonth()-n.getMonth();return a*12+d}function J(o){return t=>{const r=(o?Math[o]:Math.trunc)(t);return r===0?0:r}}function G(o,t){return+h.toDate(o)-+h.toDate(t)}function K(o,t){const s=h.toDate(o,t==null?void 0:t.in);return s.setHours(23,59,59,999),s}function Q(o,t){const s=h.toDate(o,t==null?void 0:t.in),r=s.getMonth();return s.setFullYear(s.getFullYear(),r+1,0),s.setHours(23,59,59,999),s}function $(o,t){const s=h.toDate(o,t==null?void 0:t.in);return+K(s,t)==+Q(s,t)}function ee(o,t,s){const[r,n,a]=h.normalizeDates(s==null?void 0:s.in,o,o,t),d=b(n,a),i=Math.abs(W(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;$(r)&&i===1&&b(r,a)===1&&(c=!1);const u=d*(i-+c);return u===0?0:u}function te(o,t,s){const r=G(o,t)/1e3;return J(s==null?void 0:s.roundingMethod)(r)}function oe(o,t,s){const r=h.getDefaultOptions(),n=(s==null?void 0:s.locale)??r.locale??h.enUS,a=2520,d=b(o,t);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?[t,o]:[o,t]),m=te(u,c),v=(h.getTimezoneOffsetInMilliseconds(u)-h.getTimezoneOffsetInMilliseconds(c))/1e3,p=Math.round((m-v)/60);let g;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 _=Math.round(p/60);return n.formatDistance("aboutXHours",_,i)}else{if(p<a)return n.formatDistance("xDays",1,i);if(p<h.minutesInMonth){const _=Math.round(p/h.minutesInDay);return n.formatDistance("xDays",_,i)}else if(p<h.minutesInMonth*2)return g=Math.round(p/h.minutesInMonth),n.formatDistance("aboutXMonths",g,i)}if(g=ee(u,c),g<12){const _=Math.round(p/h.minutesInMonth);return n.formatDistance("xMonths",_,i)}else{const _=g%12,k=Math.trunc(g/12);return _<3?n.formatDistance("aboutXYears",k,i):_<9?n.formatDistance("overXYears",k,i):n.formatDistance("almostXYears",k+1,i)}}function ne(o,t){return oe(o,Z(o),t)}const se={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 o;switch(this.dateMode){case"monthFirst":o="LL/dd/yyy";break;case"dayFirst":o="dd/LL/yyy";break;case"number":o="D";break}let t;return this.display24h?t="HH:mm:ss":t="hh:mm:ss a",`${o} ${t}`}},watch:{displayLocal:function(o){localStorage.clock_zone=o?"local":"utc"},display24h:function(o){o?delete localStorage.clock_12h:localStorage.clock_12h=!0},dateMode:function(o){o.match(/^monthFirst$|^dayFirst$|^number$/)&&(localStorage.clock_dateMode=o)}},created:function(){setInterval(()=>{this.intervalCount++,this.localDate=new Date},this.intervalCount<10?100:1e3)},methods:{openMenu:function(o){o.preventDefault(),this.showMenu=!1,this.menuX=o.clientX,this.menuY=o.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(o,t){return h.format(o,t,{useAdditionalDayOfYearTokens:!0})}}};function re(o,t,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:t[0]||(t[0]=(...v)=>a.openMenu&&a.openMenu(...v))},e.toDisplayString(a.formatDate(o.displayLocal?o.localDate:a.utcDate,a.formatString))+" ("+e.toDisplayString(o.displayLocal?"local":"UTC")+") ",33),e.createVNode(m,{modelValue:o.showMenu,"onUpdate:modelValue":t[1]||(t[1]=v=>o.showMenu=v),target:[o.menuX,o.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(o.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(o.display24h?12:24)+" hour clock ",1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),o.dateMode!=="monthFirst"?(e.openBlock(),e.createBlock(i,{key:0},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setMonthFirst},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode(" Display mm/dd/yyyy ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),o.dateMode!=="dayFirst"?(e.openBlock(),e.createBlock(i,{key:1},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setDayFirst},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode(" Display dd/mm/yyyy ",-1)])]),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),o.dateMode!=="number"?(e.openBlock(),e.createBlock(i,{key:2},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:a.setNumber},{default:e.withCtx(()=>[...t[4]||(t[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(se,[["render",re]]),ae={components:{ClockFooter:L,UpgradeToEnterpriseDialog:B.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 o=new URLSearchParams(window.location.search);this.chromeless=o.get("chromeless"),this.getSourceUrl(),C.hi.get("/openc3-api/info").then(t=>{t.data.enterprise?this.edition="COSMOS Enterprise":this.edition="COSMOS Core",this.enterprise=t.data.enterprise,this.license=t.data.license,this.version=t.data.version})},methods:{getSourceUrl:function(){new C.gi().get_settings(["source_url"]).then(o=>{this.sourceUrl=o[0]})},upgrade:function(){this.enterprise||(this.showUpgradeToEnterpriseDialog=!0)}}},ie=["src"],le=["href"],ce={class:"justify-right"};function de(o,t,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,ie),e.createElementVNode("span",{class:e.normalizeClass(a.footerClass),onClick:t[0]||(t[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,le),e.createVNode(d),e.createElementVNode("div",ce,[e.createVNode(i)]),e.createVNode(c,{modelValue:n.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":t[1]||(t[1]=m=>n.showUpgradeToEnterpriseDialog=m),reason:"Enterprise is Commercially Licensed"},null,8,["modelValue"])]),_:1}))}const ue=y._export_sfc(ae,[["render",de],["__scopeId","data-v-d165cc51"]]),T=1e3,{highestLevel:pe,orderByLevel:me,groupByLevel:fe}=j.AstroStatus,he={components:{AstroStatusIndicator:D.AstroStatusIndicator},props:{size:{type:[String,Number],default:26}},data:function(){return{AstroStatusColors:D.AstroStatusColors,alerts:[],cable:new C.pi,scriptCable:new C.pi("/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 o=this.unreadNotifications.map(t=>t.level).filter((t,s,r)=>r.indexOf(t)===s);return D.UnknownToAstroStatus[pe(o)]},readNotifications:function(){return this.notifications.filter(o=>o.read).sort((o,t)=>t.time-o.time)},unreadNotifications:function(){return this.notifications.filter(o=>!o.read).sort((o,t)=>t.time-o.time)},unreadCount:function(){return this.unreadNotifications.length},notificationList:function(){const o=fe(this.unreadNotifications);let t=me(Object.keys(o),s=>s).flatMap(s=>[{header:s.charAt(0).toUpperCase()+s.slice(1)},...o[s]]);return this.readNotifications.length&&(t=t.concat([{header:"Read"},...this.readNotifications])),t}},watch:{showNotificationPane:function(o){o||(this.selectedNotification.message?(this.notificationDialog=!1,this.selectedNotification={}):this.markAllAsRead())},showToast:function(o){localStorage.notoast=!o}},created:function(){this.showToast=localStorage.notoast==="false",this.subscribe(),this.alerts=this.$store.state.notifyHistory,C.hi.get("/script-api/running-script").then(o=>{this.numScripts=o.data.total})},unmounted:function(){this.subscription&&this.subscription.unsubscribe(),this.scriptSubscription&&this.scriptSubscription.unsubscribe(),this.cable.disconnect(),this.scriptCable.disconnect()},methods:{getStatus:function(o){return D.UnknownToAstroStatus[o]},markAllAsRead:function(){this.notifications.forEach(o=>{o.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<o.msg_id)&&(localStorage.lastReadNotification=o.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(o,t=!1){o.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<o.msg_id)&&(localStorage.lastReadNotification=o.msg_id),this.selectedNotification=o,this.notificationDialog=!0},navigate:function(o){window.open(o,"_blank")},subscribe:function(){this.cable.createSubscription("MessagesChannel",window.openc3Scope,{received:o=>this.receiveMessage(o)},{start_offset:localStorage.notificationStreamOffset||localStorage.lastReadNotification,types:["notification","alert","ephemeral"]}).then(o=>{this.subscription=o}),this.scriptCable.createSubscription("AllScriptsChannel",window.openc3Scope,{received:o=>this.receiveScript(o)}).then(o=>{this.scriptSubscription=o})},receiveMessage:function(o){this.cable.recordPing(),o.length>T&&o.splice(0,o.length-T);let t=o.filter(r=>r.type==="ephemeral");t&&t.length>0&&(o=o.filter(r=>r.type!=="ephemeral"),t.forEach(r=>{this.$emit("ephemeral",r)}));let s=!1;if(o.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+o.length>T&&this.notifications.splice(0,this.notifications.length+o.length-T),this.notifications=this.notifications.concat(o)},receiveScript:function(o){this.cable.recordPing(),this.numScripts=o.active_scripts},formatShortDateTime:function(o){if(!o)return"";const t=new Date(o/1e6);return ne(t,{addSuffix:!0})}}};function ge(o,t,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"),g=e.resolveComponent("v-divider"),_=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"),E=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":o.showNotificationPane,class:"overlay"},null,8,["model-value"]),e.createVNode(E,{modelValue:o.showNotificationPane,"onUpdate:modelValue":t[0]||(t[0]=f=>o.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(()=>[t[7]||(t[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(()=>[t[6]||(t[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}),o.notifications.length===0?(e.openBlock(),e.createBlock(p,{key:0},{default:e.withCtx(()=>[...t[8]||(t[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(g,{key:U,class:"mb-2"})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(_,{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:et=>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:o.notificationDialog,"onUpdate:modelValue":t[3]||(t[3]=f=>o.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(o.selectedNotification.message)+" ",1),e.createVNode(c),e.createVNode(l,{status:o.selectedNotification.level||"INFO"},null,8,["status"])]),_:1}),e.createVNode(M,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.formatShortDateTime(o.selectedNotification.time)),1)]),_:1}),e.createVNode(g),e.createVNode(O,null,{default:e.withCtx(()=>[o.selectedNotification.url?(e.openBlock(),e.createBlock(u,{key:0,color:"primary",variant:"text",onClick:t[1]||(t[1]=f=>a.navigate(o.selectedNotification.url))},{default:e.withCtx(()=>[t[10]||(t[10]=e.createTextVNode(" Open ",-1)),e.createVNode(X,{end:""},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode(" mdi-open-in-new ",-1)])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(u,{color:"primary",variant:"text",onClick:t[2]||(t[2]=f=>o.notificationDialog=!1)},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode(" Close ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createVNode(R,{modelValue:o.settingsDialog,"onUpdate:modelValue":t[5]||(t[5]=f=>o.settingsDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createTextVNode(" Notification settings ",-1)])]),_:1}),e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(Y,{modelValue:o.showToast,"onUpdate:modelValue":t[4]||(t[4]=f=>o.showToast=f),label:"Show toasts",color:"primary"},null,8,["modelValue"])]),_:1}),e.createVNode(g),e.createVNode(O,null,{default:e.withCtx(()=>[e.createVNode(u,{color:"primary",variant:"text",onClick:a.toggleSettingsDialog},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createTextVNode(" Close ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const I=y._export_sfc(he,[["render",ge],["__scopeId","data-v-0d6257f1"]]),_e={components:{UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},data:function(){return{scopes:["DEFAULT"],scope:"DEFAULT",showUpgradeToEnterpriseDialog:!1}}};function ve(o,t,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:t[2]||(t[2]=c=>o.showUpgradeToEnterpriseDialog=!0)},[e.createVNode(d,{modelValue:o.scope,"onUpdate:modelValue":t[0]||(t[0]=c=>o.scope=c),items:o.scopes,disabled:o.scopes.length<=1,label:"Scope",density:"compact",variant:"outlined","hide-details":"",style:{"max-width":"150px"}},null,8,["modelValue","items","disabled"]),e.createVNode(i,{modelValue:o.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":t[1]||(t[1]=c=>o.showUpgradeToEnterpriseDialog=c),reason:"Enterprise allows additional Scopes"},null,8,["modelValue"])])}const F=y._export_sfc(_e,[["render",ve]]),we={components:{UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},props:{size:{type:[String,Number],default:26}},data:function(){let o=OpenC3Auth.user();return{api:new C.gi,showUserMenu:!1,authenticated:!!localStorage.openc3Token,name:o.name,username:o.preferred_username,showUpgradeToEnterpriseDialog:!1,activeUsers:["None"],newsFeed:!1,news:[]}},computed:{unreadNews:function(){return this.news.filter(o=>!o.read)}},watch:{showUserMenu:function(o,t){o===!0&&(this.news.length>0&&(this.news.forEach(s=>{s.read=!0}),localStorage.lastNewsRead=this.news[0].date),this.name!=="Anonymous"&&C.hi.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(o=>{o&&(this.newsFeed=o,this.newsFeed&&(this.fetchNews(),setInterval(this.fetchNews,3600*1e3)))}).catch(o=>{})},methods:{refreshNews(){this.api.update_news().then(()=>{this.fetchNews()})},formatDate(o){return o.split("T")[0]},fetchNews:function(){C.hi.get("/openc3-api/news").then(o=>{this.news=o.data.sort((t,s)=>Date.parse(s.date)-Date.parse(t.date)),localStorage.lastNewsRead&&this.news.forEach(t=>{t.read=Date.parse(t.date)<=Date.parse(localStorage.lastNewsRead)})})},logout:function(){OpenC3Auth.logout(),C.hi.put(`/openc3-api/users/logout/${this.username}`)},login:function(){OpenC3Auth.login(location.href)},roles:function(){return this.name==="Anonymous"?"Admin":OpenC3Auth.userroles().map(o=>this.capitalize(o)).sort().join(", ")},capitalize:function(o){return o.charAt(0).toUpperCase()+o.slice(1)}}},Ce={style:{"text-align":"center",margin:"5px"}},Ne={key:0},ke={class:"roles"},ye={class:"pb-3 roles"},Ve={key:1},xe={key:0,class:"pa-3"},Se={key:2},De={key:0},Te={class:"news-title"},be={class:"news-date"},Be=["innerHTML"];function Ee(o,t,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"),g=e.resolveComponent("v-list-item"),_=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":o.showUserMenu,class:"overlay"},null,8,["model-value"]),e.createVNode(V,{modelValue:o.showUserMenu,"onUpdate:modelValue":t[1]||(t[1]=w=>o.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:o.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",Ce,e.toDisplayString(o.name),1),o.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",Ne,[e.createElementVNode("div",ke,"Username: "+e.toDisplayString(o.username),1),e.createElementVNode("div",ye,"Roles: "+e.toDisplayString(a.roles()),1)])):e.createCommentVNode("",!0),o.authenticated?(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(c,{block:"",color:"primary",onClick:a.logout},{default:e.withCtx(()=>[...t[3]||(t[3]=[e.createTextVNode(" Logout ",-1)])]),_:1},8,["onClick"]),o.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(u,{class:"pt-3 user-title"},{default:e.withCtx(()=>[...t[4]||(t[4]=[e.createTextVNode("Other Active Users:",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.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",Se,[e.createVNode(c,{block:"",color:"primary",onClick:a.login},{default:e.withCtx(()=>[...t[5]||(t[5]=[e.createTextVNode(" Login ",-1)])]),_:1},8,["onClick"])])),o.name==="Anonymous"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"pt-2 link",onClick:t[0]||(t[0]=w=>o.showUpgradeToEnterpriseDialog=!0)},[...t[6]||(t[6]=[e.createTextVNode(" Click to learn more about",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode(" COSMOS Enterprise ",-1)])])):e.createCommentVNode("",!0)]),_:1}),o.newsFeed?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(u,{"no-gutters":"",class:"news-header"},{default:e.withCtx(()=>[e.createVNode(v,{cols:"auto",class:"me-auto"},{default:e.withCtx(()=>[...t[7]||(t[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(()=>[...t[8]||(t[8]=[e.createTextVNode(" Refresh ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}),e.createVNode(_,{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(o.news,(w,x)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`news-${x}`},[t[9]||(t[9]=e.createElementVNode("hr",null,null,-1)),e.createVNode(g,{class:"pl-2"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createElementVNode("span",Te,e.toDisplayString(w.title),1),e.createElementVNode("span",be,e.toDisplayString(a.formatDate(w.date)),1)]),_:2},1024),e.createElementVNode("div",{innerHTML:w.body},null,8,Be)]),_:2},1024)],64))),128))]),_:1})])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:o.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":t[2]||(t[2]=w=>o.showUpgradeToEnterpriseDialog=w),reason:"Enterprise has individual users with RBAC"},null,8,["modelValue"])])}const P=y._export_sfc(we,[["render",Ee],["__scopeId","data-v-57255d4e"]]),Me={name:"ContextTag",data(){return{api:new C.gi,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(o=>{if(o){const t=JSON.parse(o);this.contextTag={text:t.text,fontColor:t.fontColor,backgroundColor:t.backgroundColor}}}).catch(o=>{console.error(o)})},startContextTagAutoRefresh(){this.stopContextTagAutoRefresh(),this.contextTagRefreshInterval=setInterval(()=>{this.getContextTagSettings()},6e4)},stopContextTagAutoRefresh(){this.contextTagRefreshInterval&&(clearInterval(this.contextTagRefreshInterval),this.contextTagRefreshInterval=null)}}};function Ue(o,t,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(Me,[["render",Ue],["__scopeId","data-v-beb61a41"]]),Ae={components:{Notifications:I,ScopeSelector:F,UserMenu:P,UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog,ContextTag:z},props:{edition:{type:String,default:""}},data(){return{api:new C.gi,timeZone:"local",subtitle:null,astro:{hideClock:!1},items:[],drawer:!0,appNav:{},logo:"/img/logo.png",initiallyOpen:[],showUpgradeToEnterpriseDialog:!1,chromeless:null}},computed:{shownTools:function(){let o={};for(let t of Object.keys(this.appNav))this.appNav[t].shown&&this.appNav[t].category!=="Admin"&&(o[t]=this.appNav[t]);return o},adminTools:function(){let o={};for(let t of Object.keys(this.appNav))this.appNav[t].shown&&this.appNav[t].category==="Admin"&&(o[t]=this.appNav[t]);return o},astroTimeZone:function(){return this.timeZone==="local"?Intl.DateTimeFormat().resolvedOptions().timeZone:this.timeZone}},created(){const o=new URLSearchParams(window.location.search);this.chromeless=o.get("chromeless"),this.api.get_setting("astro").then(t=>{t&&(this.astro=JSON.parse(t))}).catch(t=>{}),this.api.get_setting("subtitle").then(t=>{t&&(this.subtitle=t)}).catch(t=>{}),this.api.get_setting("time_zone").then(t=>{t&&(this.timeZone=t)}).catch(t=>{}),C.hi.get("/openc3-api/tools/all",{params:{scope:"DEFAULT"}}).then(t=>{this.appNav=t.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(o){let t=null;try{o.url[0]=="/"&&o.url[1]!="/"?t=new URL(o.url,window.location.origin):t=new URL(o.url),t.searchParams.set("scope",window.openc3Scope)}catch(s){window.$cosmosNotify.serious({title:`Invalid URL '${o.url}' for tool ${o.name}`,message:s.message}),t.href="/"}return t.href}}},Oe=["src"],Re={style:{"text-align":"center","font-size":"18pt"}},Le=["href","onClick"],Ie=["href"],Fe=["href","onClick"],Pe=["href","onClick"],ze=["href"],Xe=["href"],Ye=["href"],He=["href"];function je(o,t,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"),g=e.resolveComponent("v-col"),_=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"),E=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,Oe),e.createElementVNode("div",{class:"cosmos",onClick:t[0]||(t[0]=l=>n.showUpgradeToEnterpriseDialog=!0)}," COSMOS "),e.createElementVNode("div",Re,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(()=>[...t[3]||(t[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,Le)):(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,Pe)):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,ze)):l.window==="SAME"?(e.openBlock(),e.createElementBlock("a",{key:2,href:l.url},e.toDisplayString(l.name),9,Xe)):(e.openBlock(),e.createElementBlock("a",{key:3,href:l.url,target:"_blank"},e.toDisplayString(l.name),9,Ye))],64)):(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>a.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,Fe))]),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(()=>[...t[4]||(t[4]=[e.createTextVNode("mdi-open-in-new",-1)])]),_:1})],8,He)):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(g,{"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:t[1]||(t[1]=l=>n.drawer=!n.drawer)}),t[5]||(t[5]=e.createElementVNode("span",{id:"openc3-menu"},null,-1))]),_:1})]),_:1}),e.createVNode(g,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(_,{key:0,"date-in":"",timezone:a.astroTimeZone},null,8,["timezone"]))]),_:1})]),_:1}),e.createVNode(g,{"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(E,{modelValue:n.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":t[2]||(t[2]=l=>n.showUpgradeToEnterpriseDialog=l),reason:"Enterprise adds Calendar and Autonomic"},null,8,["modelValue"])])}const qe=y._export_sfc(Ae,[["render",je],["__scopeId","data-v-6d806ce5"]]),Ze={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.hi.get("/openc3-api/auth/token-exists",this.options).then(o=>{this.isSet=!!o.data.result,this.isSet||(this.reset=!0)})},mounted:function(){localStorage.openc3Token&&this.verifyPassword(localStorage.openc3Token,!0)},methods:{showReset:function(){this.reset=!0},login:function(o){localStorage.openc3Token=o.data;const t=new URLSearchParams(window.location.search).get("redirect");t!=null&&t.startsWith("/tools/")?window.location=decodeURI(t):window.location="/"},verifyPassword:function(o,t){o||(o=this.password),this.showAlert=!1,C.hi.post("/openc3-api/auth/verify",{data:{token:o},...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=!t})},setPassword:function(){this.showAlert=!1,C.hi.post("/openc3-api/auth/set",{data:{old_token:this.oldPassword,token:this.password},...this.options}).then(o=>{this.login(o)}).catch(o=>{this.alert=`Invalid password: ${o.response.data.message}`,this.alertType="warning",this.showAlert=!0})}}};function We(o,t,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"),g=e.resolveComponent("v-form"),_=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(()=>[...t[5]||(t[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(_,null,{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[n.isSet&&n.reset?(e.openBlock(),e.createBlock(c,{key:0,modelValue:n.oldPassword,"onUpdate:modelValue":t[0]||(t[0]=N=>n.oldPassword=N),type:"password",label:"Old Password"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(c,{modelValue:n.password,"onUpdate:modelValue":t[1]||(t[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":t[2]||(t[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",onClick:e.withModifiers(a.setPassword,["prevent"]),size:"large",color:n.isSet?"warn":"success",disabled:!a.formValid,"data-test":"set-password"},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode(" Set ",-1)])]),_:1},8,["onClick","color","disabled"])):(e.openBlock(),e.createBlock(p,{key:3},{default:e.withCtx(()=>[e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(u,{type:"submit",onClick:t[3]||(t[3]=e.withModifiers(()=>a.verifyPassword(),["prevent"])),size:"large",color:"success",disabled:!a.formValid},{default:e.withCtx(()=>[...t[7]||(t[7]=[e.createTextVNode(" Login ",-1)])]),_:1},8,["disabled"]),e.createVNode(m),e.createVNode(u,{variant:"text",size:"small",onClick:a.showReset},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode(" Change Password ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1}))]),_:1})]),_:1}),e.createVNode(k,{type:n.alertType,modelValue:n.showAlert,"onUpdate:modelValue":t[4]||(t[4]=N=>n.showAlert=N),closable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.alert),1)]),_:1},8,["type","modelValue"])]),_:1})}const Je=y._export_sfc(Ze,[["render",We]]),Ge=3e3,Ke={data:function(){return{dismissed:!1,suppress:!1,discrepancy:0}},created:function(){this.suppress=localStorage.suppresswarning__clock_out_of_sync_with_server==="true",this.suppress||q.axios.get("/openc3-api/time").then(o=>{this.discrepancy=o.data.now_nsec/1e6-Date.now()}).catch(o=>{this.dismissed=!0})},methods:{dismiss:function(){localStorage.suppresswarning__clock_out_of_sync_with_server=this.suppress,this.dismissed=!0}},computed:{approximateDiscrepancySec:function(){return(this.discrepancy/1e3).toFixed()},dialog:function(){return!this.dismissed&&Math.abs(this.discrepancy)>=Ge}}};function Qe(o,t,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"),g=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(g,{modelValue:a.dialog,"onUpdate:modelValue":t[1]||(t[1]=_=>a.dialog=_),width:"500"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>[...t[2]||(t[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:o.suppress,"onUpdate:modelValue":t[0]||(t[0]=_=>o.suppress=_),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(()=>[...t[3]||(t[3]=[e.createTextVNode(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const $e=y._export_sfc(Ke,[["render",Qe]]);exports.ClassificationBanners=H._sfc_main;exports.AppFooter=ue;exports.AppNav=qe;exports.ClockFooter=L;exports.ContextTag=z;exports.Login=Je;exports.Notifications=I;exports.ScopeSelector=F;exports.TimeCheck=$e;exports.UserMenu=P;
|
|
2
2
|
//# sourceMappingURL=base.cjs.map
|
package/dist/tools/base.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as Y, h as A, p as q } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BuwHe3dn.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-h5X7369N.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-DpWUa84S.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 P, f as pe } from "../format-CVeawcIv.js";
|
|
7
|
-
import { _ as Yt } from "../ClassificationBanners-
|
|
7
|
+
import { _ as Yt } from "../ClassificationBanners-Dz5-_h_0.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
|
-
import { a as ge } from "../index-
|
|
10
|
+
import { a as ge } from "../index-DS1ACWVr.js";
|
|
11
11
|
function z(t, e) {
|
|
12
12
|
const i = +L(t) - +L(e);
|
|
13
13
|
return i < 0 ? -1 : i > 0 ? 1 : i;
|
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-BwSJXEhw.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-1NXp1MLg.js";
|
|
2
2
|
export {
|
|
3
3
|
t as ActivityCreateDialog,
|
|
4
4
|
o as ColorSelectForm,
|