@openc3/vue-common 6.4.0 → 6.4.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-Ba-YDfZB.cjs → ArrayWidget-C7qsXQC9.cjs} +2 -2
- package/dist/{ArrayWidget-Ba-YDfZB.cjs.map → ArrayWidget-C7qsXQC9.cjs.map} +1 -1
- package/dist/{ArrayWidget-DAZApfkV.js → ArrayWidget-CeyoPOhk.js} +4 -4
- package/dist/{ArrayWidget-DAZApfkV.js.map → ArrayWidget-CeyoPOhk.js.map} +1 -1
- package/dist/{ArrayplotWidget-BfsxDplv.js → ArrayplotWidget-BEw4fJPY.js} +3 -3
- package/dist/{ArrayplotWidget-BfsxDplv.js.map → ArrayplotWidget-BEw4fJPY.js.map} +1 -1
- package/dist/{ArrayplotWidget-Ckm4lmSc.cjs → ArrayplotWidget-S4tyM6zU.cjs} +2 -2
- package/dist/{ArrayplotWidget-Ckm4lmSc.cjs.map → ArrayplotWidget-S4tyM6zU.cjs.map} +1 -1
- package/dist/{BarColumn-Cp7oEFJR.cjs → BarColumn-B2FQVNoP.cjs} +2 -2
- package/dist/{BarColumn-Cp7oEFJR.cjs.map → BarColumn-B2FQVNoP.cjs.map} +1 -1
- package/dist/{BarColumn-q0nAsvrd.js → BarColumn-CIWppEH6.js} +3 -3
- package/dist/{BarColumn-q0nAsvrd.js.map → BarColumn-CIWppEH6.js.map} +1 -1
- package/dist/{BlockWidget-SDCUWcMQ.js → BlockWidget-DRtBkPat.js} +4 -4
- package/dist/{BlockWidget-SDCUWcMQ.js.map → BlockWidget-DRtBkPat.js.map} +1 -1
- package/dist/{BlockWidget-DRB-TDL_.cjs → BlockWidget-EZBTae9s.cjs} +2 -2
- package/dist/{BlockWidget-DRB-TDL_.cjs.map → BlockWidget-EZBTae9s.cjs.map} +1 -1
- package/dist/{ButtonWidget-BVMjwC19.js → ButtonWidget-4GORf9BG.js} +4 -4
- package/dist/{ButtonWidget-BVMjwC19.js.map → ButtonWidget-4GORf9BG.js.map} +1 -1
- package/dist/{ButtonWidget-yJ70adEU.cjs → ButtonWidget-C0UM4M51.cjs} +2 -2
- package/dist/{ButtonWidget-yJ70adEU.cjs.map → ButtonWidget-C0UM4M51.cjs.map} +1 -1
- package/dist/{CanvasWidget-DXkxnt1x.cjs → CanvasWidget-77u4rg8R.cjs} +2 -2
- package/dist/{CanvasWidget-DXkxnt1x.cjs.map → CanvasWidget-77u4rg8R.cjs.map} +1 -1
- package/dist/{CanvasWidget-bVkufjRQ.js → CanvasWidget-VW1uHIU0.js} +2 -2
- package/dist/{CanvasWidget-bVkufjRQ.js.map → CanvasWidget-VW1uHIU0.js.map} +1 -1
- package/dist/{CanvasdotWidget-Bi3nZh7g.cjs → CanvasdotWidget-B4olJsKr.cjs} +2 -2
- package/dist/{CanvasdotWidget-Bi3nZh7g.cjs.map → CanvasdotWidget-B4olJsKr.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-DpniFfca.js → CanvasdotWidget-unc83V9l.js} +2 -2
- package/dist/{CanvasdotWidget-DpniFfca.js.map → CanvasdotWidget-unc83V9l.js.map} +1 -1
- package/dist/{CanvasimageWidget-C-aBl-by.cjs → CanvasimageWidget-BPk3GdGV.cjs} +2 -2
- package/dist/{CanvasimageWidget-C-aBl-by.cjs.map → CanvasimageWidget-BPk3GdGV.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-DHOSz-dJ.js → CanvasimageWidget-CNPV5Ale.js} +3 -3
- package/dist/{CanvasimageWidget-DHOSz-dJ.js.map → CanvasimageWidget-CNPV5Ale.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-DAbbV-LB.cjs → CanvasimagevalueWidget-DpPDDitX.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-DAbbV-LB.cjs.map → CanvasimagevalueWidget-DpPDDitX.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-zrURWWUL.js → CanvasimagevalueWidget-DsQbSZt_.js} +3 -3
- package/dist/{CanvasimagevalueWidget-zrURWWUL.js.map → CanvasimagevalueWidget-DsQbSZt_.js.map} +1 -1
- package/dist/{CanvaslabelWidget-D-XAMifp.js → CanvaslabelWidget-B-5KAkZr.js} +2 -2
- package/dist/{CanvaslabelWidget-D-XAMifp.js.map → CanvaslabelWidget-B-5KAkZr.js.map} +1 -1
- package/dist/{CanvaslabelWidget-82bf_Awf.cjs → CanvaslabelWidget-CjKvr47x.cjs} +2 -2
- package/dist/{CanvaslabelWidget-82bf_Awf.cjs.map → CanvaslabelWidget-CjKvr47x.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-DgDzwLdi.cjs → CanvaslabelvalueWidget-C0jdjHxr.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-DgDzwLdi.cjs.map → CanvaslabelvalueWidget-C0jdjHxr.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-BsIdBtEb.js → CanvaslabelvalueWidget-DX-b_55r.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-BsIdBtEb.js.map → CanvaslabelvalueWidget-DX-b_55r.js.map} +1 -1
- package/dist/{CanvaslineWidget-BRRPuuqS.cjs → CanvaslineWidget-C-4EjDkj.cjs} +2 -2
- package/dist/{CanvaslineWidget-BRRPuuqS.cjs.map → CanvaslineWidget-C-4EjDkj.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-CA2aPGRg.js → CanvaslineWidget-DiNWzbpu.js} +2 -2
- package/dist/{CanvaslineWidget-CA2aPGRg.js.map → CanvaslineWidget-DiNWzbpu.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-J7epKRlo.js → CanvaslinevalueWidget-Du9pwAN7.js} +2 -2
- package/dist/{CanvaslinevalueWidget-J7epKRlo.js.map → CanvaslinevalueWidget-Du9pwAN7.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-BYjWr2gq.cjs → CanvaslinevalueWidget-x81dANpk.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-BYjWr2gq.cjs.map → CanvaslinevalueWidget-x81dANpk.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-ByH-PDRG.js → CheckbuttonWidget--QM-segm.js} +2 -2
- package/dist/{CheckbuttonWidget-ByH-PDRG.js.map → CheckbuttonWidget--QM-segm.js.map} +1 -1
- package/dist/{CheckbuttonWidget-DkoFFTcM.cjs → CheckbuttonWidget-LWSGbUuH.cjs} +2 -2
- package/dist/{CheckbuttonWidget-DkoFFTcM.cjs.map → CheckbuttonWidget-LWSGbUuH.cjs.map} +1 -1
- package/dist/{ComboboxWidget-Bdm_fMzW.js → ComboboxWidget-BDpHIcCo.js} +2 -2
- package/dist/{ComboboxWidget-Bdm_fMzW.js.map → ComboboxWidget-BDpHIcCo.js.map} +1 -1
- package/dist/{ComboboxWidget-Dq28F4bs.cjs → ComboboxWidget-DR8EmM6T.cjs} +2 -2
- package/dist/{ComboboxWidget-Dq28F4bs.cjs.map → ComboboxWidget-DR8EmM6T.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-CLF7hYKu.cjs → CriticalCmdDialog-Ct5WeIW_.cjs} +2 -2
- package/dist/{CriticalCmdDialog-CLF7hYKu.cjs.map → CriticalCmdDialog-Ct5WeIW_.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-Bcq8PGag.js → CriticalCmdDialog-D4-eoA3P.js} +2 -2
- package/dist/{CriticalCmdDialog-Bcq8PGag.js.map → CriticalCmdDialog-D4-eoA3P.js.map} +1 -1
- package/dist/{DateWidget-BaQqthC7.js → DateWidget-BCmQNavZ.js} +2 -2
- package/dist/{DateWidget-BaQqthC7.js.map → DateWidget-BCmQNavZ.js.map} +1 -1
- package/dist/{DateWidget-DCayVS3o.cjs → DateWidget-CBzHYk5i.cjs} +2 -2
- package/dist/{DateWidget-DCayVS3o.cjs.map → DateWidget-CBzHYk5i.cjs.map} +1 -1
- package/dist/{DetailsDialog-C5jf8o0K.js → DetailsDialog-OMd7LWdZ.js} +2 -2
- package/dist/{DetailsDialog-C5jf8o0K.js.map → DetailsDialog-OMd7LWdZ.js.map} +1 -1
- package/dist/{DetailsDialog-CangkVuF.cjs → DetailsDialog-T9G076-B.cjs} +2 -2
- package/dist/{DetailsDialog-CangkVuF.cjs.map → DetailsDialog-T9G076-B.cjs.map} +1 -1
- package/dist/EventListDialog-COOwwkxk.cjs +2 -0
- package/dist/EventListDialog-COOwwkxk.cjs.map +1 -0
- package/dist/{EventListDialog-Bniar26O.js → EventListDialog-ankpCg-n.js} +58 -54
- package/dist/EventListDialog-ankpCg-n.js.map +1 -0
- package/dist/{FormatvalueWidget--H5B9i_Y.js → FormatvalueWidget-CPn5mDHY.js} +3 -3
- package/dist/{FormatvalueWidget--H5B9i_Y.js.map → FormatvalueWidget-CPn5mDHY.js.map} +1 -1
- package/dist/{FormatvalueWidget-CDh1rF5P.cjs → FormatvalueWidget-wjsl4ty0.cjs} +2 -2
- package/dist/{FormatvalueWidget-CDh1rF5P.cjs.map → FormatvalueWidget-wjsl4ty0.cjs.map} +1 -1
- package/dist/{Graph-DIR-5tJu.cjs → Graph-hTOB_jv2.cjs} +2 -2
- package/dist/{Graph-DIR-5tJu.cjs.map → Graph-hTOB_jv2.cjs.map} +1 -1
- package/dist/{Graph-M382Zo8o.js → Graph-vUcIyyTp.js} +2 -2
- package/dist/{Graph-M382Zo8o.js.map → Graph-vUcIyyTp.js.map} +1 -1
- package/dist/{GraphWidget-_YOGDD1U.js → GraphWidget-Cl97QQYm.js} +2 -2
- package/dist/{GraphWidget-_YOGDD1U.js.map → GraphWidget-Cl97QQYm.js.map} +1 -1
- package/dist/{GraphWidget-CNUOLw5-.cjs → GraphWidget-D3rDXvA8.cjs} +2 -2
- package/dist/{GraphWidget-CNUOLw5-.cjs.map → GraphWidget-D3rDXvA8.cjs.map} +1 -1
- package/dist/{HorizontalWidget-Bix4q7It.cjs → HorizontalWidget-72nrDrwn.cjs} +2 -2
- package/dist/{HorizontalWidget-Bix4q7It.cjs.map → HorizontalWidget-72nrDrwn.cjs.map} +1 -1
- package/dist/{HorizontalWidget-D_gzrOWs.js → HorizontalWidget-CtTkQHl-.js} +2 -2
- package/dist/{HorizontalWidget-D_gzrOWs.js.map → HorizontalWidget-CtTkQHl-.js.map} +1 -1
- package/dist/{HorizontalboxWidget-B8a4-h2J.cjs → HorizontalboxWidget-C8kuEm-u.cjs} +2 -2
- package/dist/{HorizontalboxWidget-B8a4-h2J.cjs.map → HorizontalboxWidget-C8kuEm-u.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-GDcjO-UB.js → HorizontalboxWidget-Dn9zVn4r.js} +5 -5
- package/dist/{HorizontalboxWidget-GDcjO-UB.js.map → HorizontalboxWidget-Dn9zVn4r.js.map} +1 -1
- package/dist/{HorizontallineWidget-DZvOYFxf.js → HorizontallineWidget-BBvYWaP7.js} +2 -2
- package/dist/{HorizontallineWidget-DZvOYFxf.js.map → HorizontallineWidget-BBvYWaP7.js.map} +1 -1
- package/dist/{HorizontallineWidget-BD6dqVhE.cjs → HorizontallineWidget-Bs_p5rzY.cjs} +2 -2
- package/dist/{HorizontallineWidget-BD6dqVhE.cjs.map → HorizontallineWidget-Bs_p5rzY.cjs.map} +1 -1
- package/dist/{IframeWidget-DL_CET3B.cjs → IframeWidget-Bhl0G51c.cjs} +2 -2
- package/dist/{IframeWidget-DL_CET3B.cjs.map → IframeWidget-Bhl0G51c.cjs.map} +1 -1
- package/dist/{IframeWidget-CuUav9b3.js → IframeWidget-BmZOip3U.js} +2 -2
- package/dist/{IframeWidget-CuUav9b3.js.map → IframeWidget-BmZOip3U.js.map} +1 -1
- package/dist/{ImageLoader-DaWMqoJS.cjs → ImageLoader-CXV42ZAx.cjs} +2 -2
- package/dist/{ImageLoader-DaWMqoJS.cjs.map → ImageLoader-CXV42ZAx.cjs.map} +1 -1
- package/dist/{ImageLoader-3KLKJ5mV.js → ImageLoader-wYNaGuuz.js} +2 -2
- package/dist/{ImageLoader-3KLKJ5mV.js.map → ImageLoader-wYNaGuuz.js.map} +1 -1
- package/dist/{ImageviewerWidget-_0YopZ1s.cjs → ImageviewerWidget-BAK_GlYK.cjs} +2 -2
- package/dist/{ImageviewerWidget-_0YopZ1s.cjs.map → ImageviewerWidget-BAK_GlYK.cjs.map} +1 -1
- package/dist/{ImageviewerWidget-BMZ6REN4.js → ImageviewerWidget-ByuTqBHq.js} +2 -2
- package/dist/{ImageviewerWidget-BMZ6REN4.js.map → ImageviewerWidget-ByuTqBHq.js.map} +1 -1
- package/dist/{InterfacesTab-DTixVrGo.js → InterfacesTab-BbsiYwEX.js} +3 -3
- package/dist/{InterfacesTab-DTixVrGo.js.map → InterfacesTab-BbsiYwEX.js.map} +1 -1
- package/dist/{InterfacesTab-DGrLsTA0.cjs → InterfacesTab-CnQLkjoz.cjs} +2 -2
- package/dist/{InterfacesTab-DGrLsTA0.cjs.map → InterfacesTab-CnQLkjoz.cjs.map} +1 -1
- package/dist/{LabelWidget-DkZvBxYg.cjs → LabelWidget-BP72ze-R.cjs} +2 -2
- package/dist/{LabelWidget-DkZvBxYg.cjs.map → LabelWidget-BP72ze-R.cjs.map} +1 -1
- package/dist/{LabelWidget-oh6FIG6s.js → LabelWidget-Dmb5F5j-.js} +2 -2
- package/dist/{LabelWidget-oh6FIG6s.js.map → LabelWidget-Dmb5F5j-.js.map} +1 -1
- package/dist/{LabelledWidget-D7nm73kj.cjs → LabelledWidget-DIflzlDv.cjs} +2 -2
- package/dist/{LabelledWidget-D7nm73kj.cjs.map → LabelledWidget-DIflzlDv.cjs.map} +1 -1
- package/dist/{LabelledWidget-Bic36les.js → LabelledWidget-DV1IbbPS.js} +4 -4
- package/dist/{LabelledWidget-Bic36les.js.map → LabelledWidget-DV1IbbPS.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-DY0Xd2c2.cjs → LabelprogressbarWidget-B18EaMhU.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-DY0Xd2c2.cjs.map → LabelprogressbarWidget-B18EaMhU.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-CqIiGoDb.js → LabelprogressbarWidget-BHBDYVZp.js} +4 -4
- package/dist/{LabelprogressbarWidget-CqIiGoDb.js.map → LabelprogressbarWidget-BHBDYVZp.js.map} +1 -1
- package/dist/{LabelsparklineWidget-DLhmqO02.js → LabelsparklineWidget-BaoIdd7s.js} +4 -4
- package/dist/{LabelsparklineWidget-DLhmqO02.js.map → LabelsparklineWidget-BaoIdd7s.js.map} +1 -1
- package/dist/{LabelsparklineWidget-DZ5-iEcK.cjs → LabelsparklineWidget-Bdft2p6Y.cjs} +2 -2
- package/dist/{LabelsparklineWidget-DZ5-iEcK.cjs.map → LabelsparklineWidget-Bdft2p6Y.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-D-u38nLh.cjs → LabelvalueWidget-DiqMgePn.cjs} +2 -2
- package/dist/{LabelvalueWidget-D-u38nLh.cjs.map → LabelvalueWidget-DiqMgePn.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-BefwSSVq.js → LabelvalueWidget-wuW55zQP.js} +4 -4
- package/dist/{LabelvalueWidget-BefwSSVq.js.map → LabelvalueWidget-wuW55zQP.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-NxrCzznm.js → LabelvaluedescWidget-BBHwqvj4.js} +5 -5
- package/dist/{LabelvaluedescWidget-NxrCzznm.js.map → LabelvaluedescWidget-BBHwqvj4.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-DMuBCLM8.cjs → LabelvaluedescWidget-fN9XLm-N.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-DMuBCLM8.cjs.map → LabelvaluedescWidget-fN9XLm-N.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-pq7qoolL.js → LabelvaluelimitsbarWidget-77Rc3lCf.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-pq7qoolL.js.map → LabelvaluelimitsbarWidget-77Rc3lCf.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-BY212bgc.cjs → LabelvaluelimitsbarWidget-Dp5qsue9.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-BY212bgc.cjs.map → LabelvaluelimitsbarWidget-Dp5qsue9.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-edkpogsl.js → LabelvaluelimitscolumnWidget-nounrACl.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-edkpogsl.js.map → LabelvaluelimitscolumnWidget-nounrACl.js.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-DVLGU6ja.cjs → LabelvaluelimitscolumnWidget-uR4QE_cm.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-DVLGU6ja.cjs.map → LabelvaluelimitscolumnWidget-uR4QE_cm.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-DpJNv9dh.js → LabelvaluerangebarWidget-B83Jj5Q1.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-DpJNv9dh.js.map → LabelvaluerangebarWidget-B83Jj5Q1.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-CA_7kTS2.cjs → LabelvaluerangebarWidget-MVkSnTVH.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-CA_7kTS2.cjs.map → LabelvaluerangebarWidget-MVkSnTVH.cjs.map} +1 -1
- package/dist/{Layout-B0hvhBQO.js → Layout-ByQC7nQ3.js} +2 -2
- package/dist/{Layout-B0hvhBQO.js.map → Layout-ByQC7nQ3.js.map} +1 -1
- package/dist/Layout-CFJMHNqy.cjs +2 -0
- package/dist/{Layout-BLADjt_A.cjs.map → Layout-CFJMHNqy.cjs.map} +1 -1
- package/dist/{LedWidget--4eSxBnn.js → LedWidget-Cccb8YTk.js} +4 -4
- package/dist/{LedWidget--4eSxBnn.js.map → LedWidget-Cccb8YTk.js.map} +1 -1
- package/dist/{LedWidget-BoZKOBZg.cjs → LedWidget-ghzR6jZJ.cjs} +2 -2
- package/dist/{LedWidget-BoZKOBZg.cjs.map → LedWidget-ghzR6jZJ.cjs.map} +1 -1
- package/dist/{LimitsbarWidget-BQaumgRt.js → LimitsbarWidget-D1EBBwX1.js} +2 -2
- package/dist/{LimitsbarWidget-BQaumgRt.js.map → LimitsbarWidget-D1EBBwX1.js.map} +1 -1
- package/dist/{LimitsbarWidget-CyHbbNx3.cjs → LimitsbarWidget-Dg2_T5OY.cjs} +2 -2
- package/dist/{LimitsbarWidget-CyHbbNx3.cjs.map → LimitsbarWidget-Dg2_T5OY.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-BBF9sRtF.js → LimitscolorWidget--1aPSNVB.js} +2 -2
- package/dist/{LimitscolorWidget-BBF9sRtF.js.map → LimitscolorWidget--1aPSNVB.js.map} +1 -1
- package/dist/{LimitscolorWidget-CsuRoqxm.cjs → LimitscolorWidget-D9mHLFOs.cjs} +2 -2
- package/dist/{LimitscolorWidget-CsuRoqxm.cjs.map → LimitscolorWidget-D9mHLFOs.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-Cr1qFT8M.cjs → LimitscolumnWidget-D18x3aW-.cjs} +2 -2
- package/dist/{LimitscolumnWidget-Cr1qFT8M.cjs.map → LimitscolumnWidget-D18x3aW-.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-DZZtSoXw.js → LimitscolumnWidget-swnMNApm.js} +2 -2
- package/dist/{LimitscolumnWidget-DZZtSoXw.js.map → LimitscolumnWidget-swnMNApm.js.map} +1 -1
- package/dist/{LinegraphWidget-DTLZmyWs.js → LinegraphWidget-BbI-wOnq.js} +4 -4
- package/dist/{LinegraphWidget-DTLZmyWs.js.map → LinegraphWidget-BbI-wOnq.js.map} +1 -1
- package/dist/{LinegraphWidget-Cw9vua8K.cjs → LinegraphWidget-BdCc6zps.cjs} +2 -2
- package/dist/{LinegraphWidget-Cw9vua8K.cjs.map → LinegraphWidget-BdCc6zps.cjs.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-dpgZz4wR.js → MatrixbycolumnsWidget-Bx2qMr8P.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-dpgZz4wR.js.map → MatrixbycolumnsWidget-Bx2qMr8P.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-Digh2kY7.cjs → MatrixbycolumnsWidget-CuhTHsdb.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-Digh2kY7.cjs.map → MatrixbycolumnsWidget-CuhTHsdb.cjs.map} +1 -1
- package/dist/{MicroservicesTab-BQywJ_ya.cjs → MicroservicesTab-7mVRcHEj.cjs} +2 -2
- package/dist/{MicroservicesTab-BQywJ_ya.cjs.map → MicroservicesTab-7mVRcHEj.cjs.map} +1 -1
- package/dist/{MicroservicesTab-DbL48MBc.js → MicroservicesTab-CtI7BEt0.js} +3 -3
- package/dist/{MicroservicesTab-DbL48MBc.js.map → MicroservicesTab-CtI7BEt0.js.map} +1 -1
- package/dist/{Openc3Screen-COi4u-9k.cjs → Openc3Screen-B4X70CVP.cjs} +3 -3
- package/dist/Openc3Screen-B4X70CVP.cjs.map +1 -0
- package/dist/{Openc3Screen-CtwGKfq-.js → Openc3Screen-DFYYhHt7.js} +178 -164
- package/dist/Openc3Screen-DFYYhHt7.js.map +1 -0
- package/dist/{OutputDialog-B5qHVyck.js → OutputDialog-CqD5uI0m.js} +2 -2
- package/dist/{OutputDialog-B5qHVyck.js.map → OutputDialog-CqD5uI0m.js.map} +1 -1
- package/dist/{OutputDialog-CFhG2RY9.cjs → OutputDialog-Dft9Xm4R.cjs} +2 -2
- package/dist/{OutputDialog-CFhG2RY9.cjs.map → OutputDialog-Dft9Xm4R.cjs.map} +1 -1
- package/dist/{PackagesTab-DXSowjd4.cjs → PackagesTab-BxP1kiSR.cjs} +2 -2
- package/dist/{PackagesTab-DXSowjd4.cjs.map → PackagesTab-BxP1kiSR.cjs.map} +1 -1
- package/dist/{PackagesTab-Bw34RkLc.js → PackagesTab-DhMk-fi5.js} +3 -3
- package/dist/{PackagesTab-Bw34RkLc.js.map → PackagesTab-DhMk-fi5.js.map} +1 -1
- package/dist/{PluginsTab-CPaBGJMa.cjs → PluginsTab-BKJo5vK-.cjs} +2 -2
- package/dist/{PluginsTab-CPaBGJMa.cjs.map → PluginsTab-BKJo5vK-.cjs.map} +1 -1
- package/dist/{PluginsTab-C9t0-QVm.js → PluginsTab-DxxEqPCA.js} +3 -3
- package/dist/{PluginsTab-C9t0-QVm.js.map → PluginsTab-DxxEqPCA.js.map} +1 -1
- package/dist/{ProgressbarWidget-7cYr8136.js → ProgressbarWidget-7rJeuX6H.js} +2 -2
- package/dist/{ProgressbarWidget-7cYr8136.js.map → ProgressbarWidget-7rJeuX6H.js.map} +1 -1
- package/dist/{ProgressbarWidget-CdOWGViG.cjs → ProgressbarWidget-DLvbQ0g-.cjs} +2 -2
- package/dist/{ProgressbarWidget-CdOWGViG.cjs.map → ProgressbarWidget-DLvbQ0g-.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-5t4ofYx3.cjs → RadiobuttonWidget-C15SchQH.cjs} +2 -2
- package/dist/{RadiobuttonWidget-5t4ofYx3.cjs.map → RadiobuttonWidget-C15SchQH.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-DTfn-7F2.js → RadiobuttonWidget-DsEw3JiU.js} +2 -2
- package/dist/{RadiobuttonWidget-DTfn-7F2.js.map → RadiobuttonWidget-DsEw3JiU.js.map} +1 -1
- package/dist/{RadiogroupWidget-emxyymRZ.cjs → RadiogroupWidget-BZS_MkSP.cjs} +2 -2
- package/dist/{RadiogroupWidget-emxyymRZ.cjs.map → RadiogroupWidget-BZS_MkSP.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-DWvTpw94.js → RadiogroupWidget-DhfbTvQ8.js} +2 -2
- package/dist/{RadiogroupWidget-DWvTpw94.js.map → RadiogroupWidget-DhfbTvQ8.js.map} +1 -1
- package/dist/{RangebarWidget-CG2Y7eYp.js → RangebarWidget-BEGvSL_K.js} +2 -2
- package/dist/{RangebarWidget-CG2Y7eYp.js.map → RangebarWidget-BEGvSL_K.js.map} +1 -1
- package/dist/{RangebarWidget-CLMKfbiT.cjs → RangebarWidget-bBSBfvHk.cjs} +2 -2
- package/dist/{RangebarWidget-CLMKfbiT.cjs.map → RangebarWidget-bBSBfvHk.cjs.map} +1 -1
- package/dist/{RedisTab-CvPLS0Qe.js → RedisTab-Bq8Frctp.js} +2 -2
- package/dist/{RedisTab-CvPLS0Qe.js.map → RedisTab-Bq8Frctp.js.map} +1 -1
- package/dist/{RedisTab-PbizvHjY.cjs → RedisTab-CWYntIvy.cjs} +2 -2
- package/dist/{RedisTab-PbizvHjY.cjs.map → RedisTab-CWYntIvy.cjs.map} +1 -1
- package/dist/{RollupWidget-C6HKTfCR.js → RollupWidget-BZhspgWd.js} +2 -2
- package/dist/{RollupWidget-C6HKTfCR.js.map → RollupWidget-BZhspgWd.js.map} +1 -1
- package/dist/{RollupWidget-CHKUdXMx.cjs → RollupWidget-BueYskqE.cjs} +2 -2
- package/dist/{RollupWidget-CHKUdXMx.cjs.map → RollupWidget-BueYskqE.cjs.map} +1 -1
- package/dist/{RoutersTab-D-ex_yMO.js → RoutersTab-Bg6dpAXr.js} +3 -3
- package/dist/{RoutersTab-D-ex_yMO.js.map → RoutersTab-Bg6dpAXr.js.map} +1 -1
- package/dist/{RoutersTab-zkaML-Xt.cjs → RoutersTab-DOseaOsv.cjs} +2 -2
- package/dist/{RoutersTab-zkaML-Xt.cjs.map → RoutersTab-DOseaOsv.cjs.map} +1 -1
- package/dist/{ScriptChooser-Dkf84RzQ.cjs → ScriptChooser-CHkObjcT.cjs} +2 -2
- package/dist/{ScriptChooser-Dkf84RzQ.cjs.map → ScriptChooser-CHkObjcT.cjs.map} +1 -1
- package/dist/{ScriptChooser-qiC2xQ_W.js → ScriptChooser-DBkFAc6E.js} +2 -2
- package/dist/{ScriptChooser-qiC2xQ_W.js.map → ScriptChooser-DBkFAc6E.js.map} +1 -1
- package/dist/{ScrollwindowWidget-CVc9EXW2.cjs → ScrollwindowWidget-CJmuGHai.cjs} +2 -2
- package/dist/{ScrollwindowWidget-CVc9EXW2.cjs.map → ScrollwindowWidget-CJmuGHai.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-DvhBCYd2.js → ScrollwindowWidget-qZ3nhhVU.js} +3 -3
- package/dist/{ScrollwindowWidget-DvhBCYd2.js.map → ScrollwindowWidget-qZ3nhhVU.js.map} +1 -1
- package/dist/{SecretsTab-Clw9ErBz.cjs → SecretsTab-B49h9PhL.cjs} +2 -2
- package/dist/{SecretsTab-Clw9ErBz.cjs.map → SecretsTab-B49h9PhL.cjs.map} +1 -1
- package/dist/{SecretsTab-CLkJfzf-.js → SecretsTab-vdm8oj9_.js} +2 -2
- package/dist/{SecretsTab-CLkJfzf-.js.map → SecretsTab-vdm8oj9_.js.map} +1 -1
- package/dist/{SettingsTab-CysOMBFu.js → SettingsTab-C05e6-Xm.js} +3 -3
- package/dist/{SettingsTab-CysOMBFu.js.map → SettingsTab-C05e6-Xm.js.map} +1 -1
- package/dist/{SettingsTab-BJ9mrQ8U.cjs → SettingsTab-fmHVuOps.cjs} +2 -2
- package/dist/{SettingsTab-BJ9mrQ8U.cjs.map → SettingsTab-fmHVuOps.cjs.map} +1 -1
- package/dist/{SignalWidget-BZIoGjam.js → SignalWidget-Bh14Zrch.js} +2 -2
- package/dist/{SignalWidget-BZIoGjam.js.map → SignalWidget-Bh14Zrch.js.map} +1 -1
- package/dist/{SignalWidget-DpNUpQNW.cjs → SignalWidget-J3LFoUd-.cjs} +2 -2
- package/dist/{SignalWidget-DpNUpQNW.cjs.map → SignalWidget-J3LFoUd-.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-P2KPhVHq.cjs → SimpleTextDialog-CSsm9IoB.cjs} +2 -2
- package/dist/{SimpleTextDialog-P2KPhVHq.cjs.map → SimpleTextDialog-CSsm9IoB.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-CGStqYvO.js → SimpleTextDialog-plHG7LGh.js} +2 -2
- package/dist/{SimpleTextDialog-CGStqYvO.js.map → SimpleTextDialog-plHG7LGh.js.map} +1 -1
- package/dist/{SpacerWidget-CHuv4qDR.cjs → SpacerWidget-CzqLoBdY.cjs} +2 -2
- package/dist/{SpacerWidget-CHuv4qDR.cjs.map → SpacerWidget-CzqLoBdY.cjs.map} +1 -1
- package/dist/{SpacerWidget-YBS8RZIE.js → SpacerWidget-D_NE46jZ.js} +2 -2
- package/dist/{SpacerWidget-YBS8RZIE.js.map → SpacerWidget-D_NE46jZ.js.map} +1 -1
- package/dist/{SparklineWidget-BMhY9vYe.js → SparklineWidget-CJEEJdZ-.js} +4 -4
- package/dist/{SparklineWidget-BMhY9vYe.js.map → SparklineWidget-CJEEJdZ-.js.map} +1 -1
- package/dist/{SparklineWidget-qWQGTMwn.cjs → SparklineWidget-DDRhatn7.cjs} +2 -2
- package/dist/{SparklineWidget-qWQGTMwn.cjs.map → SparklineWidget-DDRhatn7.cjs.map} +1 -1
- package/dist/{TabbookWidget-RfET19pq.js → TabbookWidget-C-SU65IF.js} +2 -2
- package/dist/{TabbookWidget-RfET19pq.js.map → TabbookWidget-C-SU65IF.js.map} +1 -1
- package/dist/{TabbookWidget-C4jdzkQl.cjs → TabbookWidget-C8k2kKLX.cjs} +2 -2
- package/dist/{TabbookWidget-C4jdzkQl.cjs.map → TabbookWidget-C8k2kKLX.cjs.map} +1 -1
- package/dist/{TargetsTab-CfBt-dZW.js → TargetsTab-DyfyM9sC.js} +3 -3
- package/dist/{TargetsTab-CfBt-dZW.js.map → TargetsTab-DyfyM9sC.js.map} +1 -1
- package/dist/{TargetsTab-CVZR_Bp6.cjs → TargetsTab-pU_wu9d-.cjs} +2 -2
- package/dist/{TargetsTab-CVZR_Bp6.cjs.map → TargetsTab-pU_wu9d-.cjs.map} +1 -1
- package/dist/{TextboxWidget-Cm7-yWTZ.cjs → TextboxWidget-CRDu77NK.cjs} +2 -2
- package/dist/{TextboxWidget-Cm7-yWTZ.cjs.map → TextboxWidget-CRDu77NK.cjs.map} +1 -1
- package/dist/{TextboxWidget-M8vFBSxS.js → TextboxWidget-Dn1Ds-b0.js} +4 -4
- package/dist/{TextboxWidget-M8vFBSxS.js.map → TextboxWidget-Dn1Ds-b0.js.map} +1 -1
- package/dist/{TextfieldWidget-Dev7lCsT.js → TextfieldWidget-C0C7NL53.js} +2 -2
- package/dist/{TextfieldWidget-Dev7lCsT.js.map → TextfieldWidget-C0C7NL53.js.map} +1 -1
- package/dist/{TextfieldWidget-Bfk2NPtC.cjs → TextfieldWidget-DGdD6b_-.cjs} +2 -2
- package/dist/{TextfieldWidget-Bfk2NPtC.cjs.map → TextfieldWidget-DGdD6b_-.cjs.map} +1 -1
- package/dist/{TimeWidget-CQzn13rQ.js → TimeWidget-AFOTVB4w.js} +2 -2
- package/dist/{TimeWidget-CQzn13rQ.js.map → TimeWidget-AFOTVB4w.js.map} +1 -1
- package/dist/{TimeWidget-BqkZJdg7.cjs → TimeWidget-BlZoS24B.cjs} +2 -2
- package/dist/{TimeWidget-BqkZJdg7.cjs.map → TimeWidget-BlZoS24B.cjs.map} +1 -1
- package/dist/{TitleWidget-C4zbSian.js → TitleWidget-CbS_wrQw.js} +2 -2
- package/dist/{TitleWidget-C4zbSian.js.map → TitleWidget-CbS_wrQw.js.map} +1 -1
- package/dist/{TitleWidget-DW0hJ0FE.cjs → TitleWidget-DDEnHVPP.cjs} +2 -2
- package/dist/{TitleWidget-DW0hJ0FE.cjs.map → TitleWidget-DDEnHVPP.cjs.map} +1 -1
- package/dist/{ToolsTab-CnhhRS3J.js → ToolsTab-BvpoO0wt.js} +3 -3
- package/dist/{ToolsTab-CnhhRS3J.js.map → ToolsTab-BvpoO0wt.js.map} +1 -1
- package/dist/{ToolsTab-CKeFb94Y.cjs → ToolsTab-DCRNrlhT.cjs} +2 -2
- package/dist/{ToolsTab-CKeFb94Y.cjs.map → ToolsTab-DCRNrlhT.cjs.map} +1 -1
- package/dist/{TopBar-BQhv8Jcc.js → TopBar-AjYGyx8W.js} +2 -2
- package/dist/{TopBar-BQhv8Jcc.js.map → TopBar-AjYGyx8W.js.map} +1 -1
- package/dist/{TopBar-4zZ-wYMY.cjs → TopBar-vznpQjGN.cjs} +2 -2
- package/dist/{TopBar-4zZ-wYMY.cjs.map → TopBar-vznpQjGN.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-C0MA3Uc-.cjs → UpgradeToEnterpriseDialog-1fVtqbze.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-C0MA3Uc-.cjs.map → UpgradeToEnterpriseDialog-1fVtqbze.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-c6twungI.js → UpgradeToEnterpriseDialog-CMVEjihv.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-c6twungI.js.map → UpgradeToEnterpriseDialog-CMVEjihv.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Bowkx8lp.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B98GsSQS.cjs} +21 -21
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Bowkx8lp.cjs.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B98GsSQS.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CVrrWDJ_.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BOiUmW4q.js} +446 -446
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CVrrWDJ_.js.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BOiUmW4q.js.map} +1 -1
- package/dist/{VWidget-iASFPjdx.js → VWidget-BlF_o-7Z.js} +2 -2
- package/dist/{VWidget-iASFPjdx.js.map → VWidget-BlF_o-7Z.js.map} +1 -1
- package/dist/{VWidget-iTwRH6Qq.cjs → VWidget-CMKh-tv6.cjs} +2 -2
- package/dist/{VWidget-iTwRH6Qq.cjs.map → VWidget-CMKh-tv6.cjs.map} +1 -1
- package/dist/{ValueWidget-BVI6uUVX.js → ValueWidget-DFUfM5tw.js} +4 -4
- package/dist/{ValueWidget-BVI6uUVX.js.map → ValueWidget-DFUfM5tw.js.map} +1 -1
- package/dist/{ValueWidget-CPuSUgn9.cjs → ValueWidget-K7SCPEB6.cjs} +2 -2
- package/dist/{ValueWidget-CPuSUgn9.cjs.map → ValueWidget-K7SCPEB6.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-BiIcery0.js → ValuelimitsbarWidget-CALgABsT.js} +4 -4
- package/dist/{ValuelimitsbarWidget-BiIcery0.js.map → ValuelimitsbarWidget-CALgABsT.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-CNdyobcf.cjs → ValuelimitsbarWidget-DcY2NV9X.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-CNdyobcf.cjs.map → ValuelimitsbarWidget-DcY2NV9X.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-BiRI8GbI.js → ValuelimitscolumnWidget-Bs91VFLz.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-BiRI8GbI.js.map → ValuelimitscolumnWidget-Bs91VFLz.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-Db0K4OjQ.cjs → ValuelimitscolumnWidget-DQKvlGap.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-Db0K4OjQ.cjs.map → ValuelimitscolumnWidget-DQKvlGap.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-CtMFQu9-.js → ValuerangebarWidget-C7WHyR2h.js} +4 -4
- package/dist/{ValuerangebarWidget-CtMFQu9-.js.map → ValuerangebarWidget-C7WHyR2h.js.map} +1 -1
- package/dist/{ValuerangebarWidget-DAEr-D_E.cjs → ValuerangebarWidget-DnWuvusw.cjs} +2 -2
- package/dist/{ValuerangebarWidget-DAEr-D_E.cjs.map → ValuerangebarWidget-DnWuvusw.cjs.map} +1 -1
- package/dist/{VerticalWidget-CRmcpQBn.js → VerticalWidget-COP5oVCK.js} +2 -2
- package/dist/{VerticalWidget-CRmcpQBn.js.map → VerticalWidget-COP5oVCK.js.map} +1 -1
- package/dist/{VerticalWidget-YG3auPJa.cjs → VerticalWidget-eMN4dvxL.cjs} +2 -2
- package/dist/{VerticalWidget-YG3auPJa.cjs.map → VerticalWidget-eMN4dvxL.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-C-qChjug.js → VerticalboxWidget-CDPoOx4C.js} +5 -5
- package/dist/{VerticalboxWidget-C-qChjug.js.map → VerticalboxWidget-CDPoOx4C.js.map} +1 -1
- package/dist/{VerticalboxWidget-DX8-gFay.cjs → VerticalboxWidget-UIBpyEz_.cjs} +2 -2
- package/dist/{VerticalboxWidget-DX8-gFay.cjs.map → VerticalboxWidget-UIBpyEz_.cjs.map} +1 -1
- package/dist/{Widget-EsyLQi_8.cjs → Widget-Cg0pAxSF.cjs} +2 -2
- package/dist/{Widget-EsyLQi_8.cjs.map → Widget-Cg0pAxSF.cjs.map} +1 -1
- package/dist/{Widget-CFEnOKms.js → Widget-cmJ76_g1.js} +2 -2
- package/dist/{Widget-CFEnOKms.js.map → Widget-cmJ76_g1.js.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +11 -11
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.js +12 -12
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.js +2 -2
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +3 -3
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +14 -14
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +63 -63
- package/package.json +2 -2
- package/dist/EventListDialog-Bniar26O.js.map +0 -1
- package/dist/EventListDialog-D_KXhGDO.cjs +0 -2
- package/dist/EventListDialog-D_KXhGDO.cjs.map +0 -1
- package/dist/Layout-BLADjt_A.cjs +0 -2
- package/dist/Openc3Screen-COi4u-9k.cjs.map +0 -1
- package/dist/Openc3Screen-CtwGKfq-.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as Ie, O as xe } from "./OutputDialog-
|
|
2
|
-
import { A as De, T as Ae } from "./TopBar-
|
|
3
|
-
import { E as Re, a as Le, F as Se, O as Ee, S as Ue } from "./Openc3Screen-
|
|
4
|
-
import { p as k, d as O } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-
|
|
5
|
-
import { D as Oe, e as Be } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-
|
|
1
|
+
import { A as Ie, O as xe } from "./OutputDialog-CqD5uI0m.js";
|
|
2
|
+
import { A as De, T as Ae } from "./TopBar-AjYGyx8W.js";
|
|
3
|
+
import { E as Re, a as Le, F as Se, O as Ee, S as Ue } from "./Openc3Screen-DFYYhHt7.js";
|
|
4
|
+
import { p as k, d as O } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BOiUmW4q.js";
|
|
5
|
+
import { D as Oe, e as Be } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BOiUmW4q.js";
|
|
6
6
|
import { resolveComponent as o, createBlock as b, openBlock as _, withKeys as E, withCtx as n, createVNode as l, createElementVNode as f, withModifiers as D, withDirectives as U, toDisplayString as w, vShow as P, createTextVNode as g, normalizeStyle as B, createCommentVNode as I, createElementBlock as V, createSlots as K, normalizeClass as W, Fragment as M } from "vue";
|
|
7
7
|
import { _ as C } from "./CustomIcon-h5X7369N.js";
|
|
8
|
-
import { C as We } from "./CriticalCmdDialog-
|
|
9
|
-
import { D as ze } from "./DetailsDialog-
|
|
10
|
-
import { E as Ge, S as He } from "./ScriptChooser-
|
|
11
|
-
import { G as qe, a as Je, b as Ze } from "./Graph-
|
|
8
|
+
import { C as We } from "./CriticalCmdDialog-D4-eoA3P.js";
|
|
9
|
+
import { D as ze } from "./DetailsDialog-OMd7LWdZ.js";
|
|
10
|
+
import { E as Ge, S as He } from "./ScriptChooser-DBkFAc6E.js";
|
|
11
|
+
import { G as qe, a as Je, b as Ze } from "./Graph-vUcIyyTp.js";
|
|
12
12
|
import { UnknownToAstroStatus as R, AstroStatusColors as L } from "./icons.js";
|
|
13
13
|
import { T as z } from "./timeFilters-BKnCM4rv.js";
|
|
14
14
|
import { f as F } from "./format-CVeawcIv.js";
|
|
15
15
|
import { getMountedApps as G } from "single-spa";
|
|
16
|
-
import { S as Xe } from "./SimpleTextDialog-
|
|
16
|
+
import { S as Xe } from "./SimpleTextDialog-plHG7LGh.js";
|
|
17
17
|
import { T as $e } from "./TextBoxDialog-C60jmnyN.js";
|
|
18
|
-
import { U as tt } from "./UpgradeToEnterpriseDialog-
|
|
18
|
+
import { U as tt } from "./UpgradeToEnterpriseDialog-CMVEjihv.js";
|
|
19
19
|
const Ne = {
|
|
20
20
|
data: {
|
|
21
21
|
configKey: "",
|
package/dist/tools/admin.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("../index-DcL65Mqb.cjs"),n=require("vue"),I=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Bowkx8lp.cjs"),S=require("../TopBar-4zZ-wYMY.cjs");require("single-spa");const ce={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const e=/\w+.gem/;return this.response.tree.filter(t=>e.exec(t.path)).map(t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`}))},getResponse:function(){this.disableSearch=!0,ae.axios.get(this.url).then(e=>{this.response=e.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(e){const t=document.createElement("a");t.href=e.url,t.setAttribute("download",e.name),t.click(),t.remove()}}},de={class:"pa-3"},fe={class:"px-2"},he={key:0,class:"mt-4"},ue={key:1,class:"mt-4"};function ge(e,t,i,r,l,o){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"),x=n.resolveComponent("v-divider"),b=n.resolveComponent("v-card-text"),m=n.resolveComponent("v-card"),w=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(w,{modelValue:o.show,"onUpdate:modelValue":t[0]||(t[0]=C=>o.show=C),width:"600"},{default:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[1]||(t[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("div",de,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode(" Select a download option ")])),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[n.createElementVNode("div",fe,[n.createVNode(u,{block:"","data-test":"searchGithub",color:"primary",disabled:l.disableSearch,onClick:o.searchGithub},{default:n.withCtx(()=>[t[4]||(t[4]=n.createTextVNode(" Github ")),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>t[3]||(t[3]=[n.createTextVNode(" mdi-github ")])),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Community Gems ")])),_:1}),o.listData.length<1?(n.openBlock(),n.createElementBlock("div",he,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(n.openBlock(),n.createElementBlock("div",ue,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.listData,(C,v)=>(n.openBlock(),n.createElementBlock("div",{key:v},[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C.name),1)]),_:2},1024),n.createVNode(_,{icon:""},{default:n.withCtx(()=>[l.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:l.activeDownload,onClick:V=>o.downloadGem(C)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),v<o.listData.length-1?(n.openBlock(),n.createBlock(x,{key:v})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const pe=I._export_sfc(ce,[["render",ge]]),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(e){this.$emit("update:modelValue",e)}},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 e=this.buildPluginMode();this.editor=E.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),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 e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),t.click()},buildPluginMode(){let e=E.aceExports.require("ace/lib/oop"),t=E.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,i=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,r=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,l=E.aceExports.require("ace/mode/folding/ruby").FoldMode,o=function(){this.HighlightRules=t,this.$outdent=new i,this.$behaviour=new r,this.foldingRules=new l,this.indentKeywords=this.foldingRules.indentKeywords},s=E.aceExports.require("ace/mode/ruby").Mode;return e.inherits(o,s),(function(){this.$id="ace/mode/openc3"}).call(o.prototype),o},showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;let t=this.editor.getCursorPosition(),i=this.editor.session.getTokenAt(t.row,t.column);if(i){let r=i.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){S.AceEditorUtils.toggleVimMode(this.editor)}}},_e=["textContent"],be={class:"pa-3"},we={key:0},Ce=["textContent"];function xe(e,t,i,r,l,o){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"),x=n.resolveComponent("v-card-text"),b=n.resolveComponent("v-card"),m=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(m,{modelValue:o.show,"onUpdate:modelValue":t[4]||(t[4]=w=>o.show=w),persistent:!i.readonly,width:"80vw"},{default:n.withCtx(()=>[n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:t[3]||(t[3]=n.withModifiers((...w)=>o.submit&&o.submit(...w),["prevent"]))},[n.createVNode(c,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(o.title)},null,8,_e),n.createVNode(s),n.createVNode(a,{class:"mx-2",icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:o.download},null,8,["onClick"])]),_:1}),n.createVNode(x,null,{default:n.withCtx(()=>[n.createElementVNode("div",be,[i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",we,[n.createVNode(d,{class:"mt-3"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Upload a file. ")])),_: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:!e.file||e.loadingFile||i.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn",onClick:e.loadFile},{loader:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null,"Loading...",-1)])),default:n.withCtx(()=>[t[7]||(t[7]=n.createTextVNode(" Load "))]),_:1},8,["disabled","loading","onClick"])]),_:1}),n.createVNode(u,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.file,"onUpdate:modelValue":t[0]||(t[0]=w=>e.file=w),accept:".json",label:"Click to select .json file.",disabled:i.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(d,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...w)=>o.showContextMenu&&o.showContextMenu(...w),["prevent"]))},null,544),n.createVNode(_,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=w=>l.contextMenu=w),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(p,null,{default:n.withCtx(()=>[n.createVNode(g,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.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(o.error)},null,8,Ce),[[n.vShow,o.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(o.close,["prevent"])},{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!o.error||i.readonly},{default:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" Save ")])),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","persistent"])}const ve=I._export_sfc(me,[["render",xe],["__scopeId","data-v-e84cb3ed"]]),ye={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},created(){for(const e of this.targets)E.li.get(`/openc3-api/targets/${e.name}/modified_files`).then(t=>{t.data.length!==0&&this.modifiedTargets.push({name:e.name,files:t.data})})}};function Ve(e,t,i,r,l,o){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"),x=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:o.show,"onUpdate:modelValue":t[3]||(t[3]=m=>o.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[4]||(t[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(i.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.modifiedTargets,(m,w)=>(n.openBlock(),n.createBlock(u,{key:w,lines:"two"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.files,(C,v)=>(n.openBlock(),n.createBlock(d,{key:v},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(h,{modelValue:l.deleteModified,"onUpdate:modelValue":t[0]||(t[0]=m=>l.deleteModified=m),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:t[1]||(t[1]=()=>{o.show=!1,e.$emit("cancel")})},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Cancel ")])),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:t[2]||(t[2]=()=>{o.show=!1,e.$emit("submit",l.deleteModified)})},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ee=I._export_sfc(ye,[["render",Ve]]),te=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-CPaBGJMa.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-CVZR_Bp6.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-DGrLsTA0.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-zkaML-Xt.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-BQywJ_ya.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-DXSowjd4.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-CKeFb94Y.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-PbizvHjY.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-Clw9ErBz.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-BJ9mrQ8U.cjs"))}],ke={components:{TopBar:S.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return te.map(e=>({displayName:e.displayName,path:{name:e.name}}))}}};function Ne(e,t,i,r,l,o){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:l.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:l.curTab,"onUpdate:modelValue":t[0]||(t[0]=h=>l.curTab=h),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.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 Se=I._export_sfc(ke,[["render",Ne]]),f=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};f.Diff=function(e,t){this[0]=e,this[1]=t};f.Diff.prototype.length=2;f.Diff.prototype.toString=function(){return this[0]+","+this[1]};f.prototype.diff_main=function(e,t,i,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);let l=r;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new f.Diff(0,e)]:[];typeof i>"u"&&(i=!0);let o=i,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);let c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);let d=this.diff_compute_(e,t,o,l);return a&&d.unshift(new f.Diff(0,a)),c&&d.push(new f.Diff(0,c)),this.diff_cleanupMerge(d),d};f.prototype.diff_compute_=function(e,t,i,r){let l;if(!e)return[new f.Diff(1,t)];if(!t)return[new f.Diff(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,a=o.indexOf(s);return a!=-1?(l=[new f.Diff(1,o.substring(0,a)),new f.Diff(0,s),new f.Diff(1,o.substring(a+s.length))],e.length>t.length&&(l[0][0]=l[2][0]=-1),l):s.length==1?[new f.Diff(-1,e),new f.Diff(1,t)]:i&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)};f.prototype.diff_lineMode_=function(e,t,i){let r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;let l=r.lineArray,o=this.diff_main(e,t,!1,i);this.diff_charsToLines_(o,l),this.diff_cleanupSemantic(o),o.push(new f.Diff(0,""));let s=0,a=0,c=0,d="",u="";for(;s<o.length;){switch(o[s][0]){case 1:c++,u+=o[s][1];break;case-1:a++,d+=o[s][1];break;case 0:if(a>=1&&c>=1){o.splice(s-a-c,a+c),s=s-a-c;let h=this.diff_main(d,u,!1,i);for(let g=h.length-1;g>=0;g--)o.splice(s,0,h[g]);s=s+h.length}c=0,a=0,d="",u="";break}s++}return o.pop(),o};f.prototype.diff_bisect_=function(e,t,i){let r=e.length,l=t.length,o=Math.ceil((r+l)/2),s=o,a=2*o,c=new Array(a),d=new Array(a);for(let b=0;b<a;b++)c[b]=-1,d[b]=-1;c[s+1]=0,d[s+1]=0;let u=r-l,h=u%2!=0,g=0,p=0,_=0,x=0;for(let b=0;b<o&&!(new Date().getTime()>i);b++){for(let m=-b+g;m<=b-p;m+=2){let w=s+m,C;m==-b||m!=b&&c[w-1]<c[w+1]?C=c[w+1]:C=c[w-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(C)==t.charAt(v);)C++,v++;if(c[w]=C,C>r)p+=2;else if(v>l)g+=2;else if(h){let V=s+u-m;if(V>=0&&V<a&&d[V]!=-1){let N=r-d[V];if(C>=N)return this.diff_bisectSplit_(e,t,C,v,i)}}}for(let m=-b+_;m<=b-x;m+=2){let w=s+m,C;m==-b||m!=b&&d[w-1]<d[w+1]?C=d[w+1]:C=d[w-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(r-C-1)==t.charAt(l-v-1);)C++,v++;if(d[w]=C,C>r)x+=2;else if(v>l)_+=2;else if(!h){let V=s+u-m;if(V>=0&&V<a&&c[V]!=-1){let N=c[V],T=s+N-V;if(C=r-C,N>=C)return this.diff_bisectSplit_(e,t,N,T,i)}}}}return[new f.Diff(-1,e),new f.Diff(1,t)]};f.prototype.diff_bisectSplit_=function(e,t,i,r,l){let o=e.substring(0,i),s=t.substring(0,r),a=e.substring(i),c=t.substring(r),d=this.diff_main(o,s,!1,l),u=this.diff_main(a,c,!1,l);return d.concat(u)};f.prototype.diff_linesToChars_=function(e,t){let i=[],r={};i[0]="";function l(c){let d="",u=0,h=-1,g=i.length;for(;h<c.length-1;){h=c.indexOf(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("../index-DcL65Mqb.cjs"),n=require("vue"),I=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B98GsSQS.cjs"),S=require("../TopBar-vznpQjGN.cjs");require("single-spa");const ce={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const e=/\w+.gem/;return this.response.tree.filter(t=>e.exec(t.path)).map(t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`}))},getResponse:function(){this.disableSearch=!0,ae.axios.get(this.url).then(e=>{this.response=e.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(e){const t=document.createElement("a");t.href=e.url,t.setAttribute("download",e.name),t.click(),t.remove()}}},de={class:"pa-3"},fe={class:"px-2"},he={key:0,class:"mt-4"},ue={key:1,class:"mt-4"};function ge(e,t,i,r,l,o){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"),x=n.resolveComponent("v-divider"),b=n.resolveComponent("v-card-text"),m=n.resolveComponent("v-card"),w=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(w,{modelValue:o.show,"onUpdate:modelValue":t[0]||(t[0]=C=>o.show=C),width:"600"},{default:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[1]||(t[1]=n.createElementVNode("span",null," Download Gems ",-1)),n.createVNode(s)]),_:1}),n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("div",de,[n.createVNode(c,{class:"my-2"},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode(" Select a download option ")])),_:1}),n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[n.createElementVNode("div",fe,[n.createVNode(u,{block:"","data-test":"searchGithub",color:"primary",disabled:l.disableSearch,onClick:o.searchGithub},{default:n.withCtx(()=>[t[4]||(t[4]=n.createTextVNode(" Github ")),n.createVNode(d,{end:"",theme:"dark"},{default:n.withCtx(()=>t[3]||(t[3]=[n.createTextVNode(" mdi-github ")])),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),n.createVNode(c,{class:"mt-5"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Community Gems ")])),_:1}),o.listData.length<1?(n.openBlock(),n.createElementBlock("div",he,[n.createVNode(c,{class:"mx-2"},{default:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(n.openBlock(),n.createElementBlock("div",ue,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.listData,(C,v)=>(n.openBlock(),n.createElementBlock("div",{key:v},[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C.name),1)]),_:2},1024),n.createVNode(_,{icon:""},{default:n.withCtx(()=>[l.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:l.activeDownload,onClick:V=>o.downloadGem(C)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),v<o.listData.length-1?(n.openBlock(),n.createBlock(x,{key:v})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const pe=I._export_sfc(ce,[["render",ge]]),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(e){this.$emit("update:modelValue",e)}},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 e=this.buildPluginMode();this.editor=E.aceExports.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new e),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 e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`),t.click()},buildPluginMode(){let e=E.aceExports.require("ace/lib/oop"),t=E.aceExports.require("ace/mode/json_highlight_rules").JsonHighlightRules,i=E.aceExports.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,r=E.aceExports.require("ace/mode/behaviour/cstyle").CstyleBehaviour,l=E.aceExports.require("ace/mode/folding/ruby").FoldMode,o=function(){this.HighlightRules=t,this.$outdent=new i,this.$behaviour=new r,this.foldingRules=new l,this.indentKeywords=this.foldingRules.indentKeywords},s=E.aceExports.require("ace/mode/ruby").Mode;return e.inherits(o,s),(function(){this.$id="ace/mode/openc3"}).call(o.prototype),o},showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;let t=this.editor.getCursorPosition(),i=this.editor.session.getTokenAt(t.row,t.column);if(i){let r=i.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){S.AceEditorUtils.toggleVimMode(this.editor)}}},_e=["textContent"],be={class:"pa-3"},we={key:0},Ce=["textContent"];function xe(e,t,i,r,l,o){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"),x=n.resolveComponent("v-card-text"),b=n.resolveComponent("v-card"),m=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(m,{modelValue:o.show,"onUpdate:modelValue":t[4]||(t[4]=w=>o.show=w),persistent:!i.readonly,width:"80vw"},{default:n.withCtx(()=>[n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:t[3]||(t[3]=n.withModifiers((...w)=>o.submit&&o.submit(...w),["prevent"]))},[n.createVNode(c,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(o.title)},null,8,_e),n.createVNode(s),n.createVNode(a,{class:"mx-2",icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:o.download},null,8,["onClick"])]),_:1}),n.createVNode(x,null,{default:n.withCtx(()=>[n.createElementVNode("div",be,[i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",we,[n.createVNode(d,{class:"mt-3"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Upload a file. ")])),_: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:!e.file||e.loadingFile||i.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn",onClick:e.loadFile},{loader:n.withCtx(()=>t[6]||(t[6]=[n.createElementVNode("span",null,"Loading...",-1)])),default:n.withCtx(()=>[t[7]||(t[7]=n.createTextVNode(" Load "))]),_:1},8,["disabled","loading","onClick"])]),_:1}),n.createVNode(u,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.file,"onUpdate:modelValue":t[0]||(t[0]=w=>e.file=w),accept:".json",label:"Click to select .json file.",disabled:i.readonly},null,8,["modelValue","disabled"])]),_:1})]),_:1})])),n.createVNode(d,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...w)=>o.showContextMenu&&o.showContextMenu(...w),["prevent"]))},null,544),n.createVNode(_,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=w=>l.contextMenu=w),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(p,null,{default:n.withCtx(()=>[n.createVNode(g,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.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(o.error)},null,8,Ce),[[n.vShow,o.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(o.close,["prevent"])},{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{key:0,class:"mx-2",color:"primary",type:"submit","data-test":"editSubmitBtn",disabled:!!o.error||i.readonly},{default:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" Save ")])),_:1},8,["disabled"]))]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","persistent"])}const ve=I._export_sfc(me,[["render",xe],["__scopeId","data-v-e84cb3ed"]]),ye={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},created(){for(const e of this.targets)E.li.get(`/openc3-api/targets/${e.name}/modified_files`).then(t=>{t.data.length!==0&&this.modifiedTargets.push({name:e.name,files:t.data})})}};function Ve(e,t,i,r,l,o){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"),x=n.resolveComponent("v-card"),b=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(b,{modelValue:o.show,"onUpdate:modelValue":t[3]||(t[3]=m=>o.show=m),width:"600"},{default:n.withCtx(()=>[n.createVNode(x,null,{default:n.withCtx(()=>[n.createVNode(a,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),t[4]||(t[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(i.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.modifiedTargets,(m,w)=>(n.openBlock(),n.createBlock(u,{key:w,lines:"two"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.name),1)]),_:2},1024),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.files,(C,v)=>(n.openBlock(),n.createBlock(d,{key:v},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C),1)]),_:2},1024))),128))]),_:2},1024))),128)),n.createVNode(h,{modelValue:l.deleteModified,"onUpdate:modelValue":t[0]||(t[0]=m=>l.deleteModified=m),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:t[1]||(t[1]=()=>{o.show=!1,e.$emit("cancel")})},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Cancel ")])),_:1}),n.createVNode(p,{variant:"flat","data-test":"modified-plugin-submit",onClick:t[2]||(t[2]=()=>{o.show=!1,e.$emit("submit",l.deleteModified)})},{default:n.withCtx(()=>t[6]||(t[6]=[n.createTextVNode(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ee=I._export_sfc(ye,[["render",Ve]]),te=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-BKJo5vK-.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-pU_wu9d-.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-CnQLkjoz.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-DOseaOsv.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-7mVRcHEj.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-BxP1kiSR.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-DCRNrlhT.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-CWYntIvy.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-B49h9PhL.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-fmHVuOps.cjs"))}],ke={components:{TopBar:S.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return te.map(e=>({displayName:e.displayName,path:{name:e.name}}))}}};function Ne(e,t,i,r,l,o){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:l.title},null,8,["title"]),n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{modelValue:l.curTab,"onUpdate:modelValue":t[0]||(t[0]=h=>l.curTab=h),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.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 Se=I._export_sfc(ke,[["render",Ne]]),f=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};f.Diff=function(e,t){this[0]=e,this[1]=t};f.Diff.prototype.length=2;f.Diff.prototype.toString=function(){return this[0]+","+this[1]};f.prototype.diff_main=function(e,t,i,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);let l=r;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new f.Diff(0,e)]:[];typeof i>"u"&&(i=!0);let o=i,s=this.diff_commonPrefix(e,t),a=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);let c=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);let d=this.diff_compute_(e,t,o,l);return a&&d.unshift(new f.Diff(0,a)),c&&d.push(new f.Diff(0,c)),this.diff_cleanupMerge(d),d};f.prototype.diff_compute_=function(e,t,i,r){let l;if(!e)return[new f.Diff(1,t)];if(!t)return[new f.Diff(-1,e)];let o=e.length>t.length?e:t,s=e.length>t.length?t:e,a=o.indexOf(s);return a!=-1?(l=[new f.Diff(1,o.substring(0,a)),new f.Diff(0,s),new f.Diff(1,o.substring(a+s.length))],e.length>t.length&&(l[0][0]=l[2][0]=-1),l):s.length==1?[new f.Diff(-1,e),new f.Diff(1,t)]:i&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)};f.prototype.diff_lineMode_=function(e,t,i){let r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;let l=r.lineArray,o=this.diff_main(e,t,!1,i);this.diff_charsToLines_(o,l),this.diff_cleanupSemantic(o),o.push(new f.Diff(0,""));let s=0,a=0,c=0,d="",u="";for(;s<o.length;){switch(o[s][0]){case 1:c++,u+=o[s][1];break;case-1:a++,d+=o[s][1];break;case 0:if(a>=1&&c>=1){o.splice(s-a-c,a+c),s=s-a-c;let h=this.diff_main(d,u,!1,i);for(let g=h.length-1;g>=0;g--)o.splice(s,0,h[g]);s=s+h.length}c=0,a=0,d="",u="";break}s++}return o.pop(),o};f.prototype.diff_bisect_=function(e,t,i){let r=e.length,l=t.length,o=Math.ceil((r+l)/2),s=o,a=2*o,c=new Array(a),d=new Array(a);for(let b=0;b<a;b++)c[b]=-1,d[b]=-1;c[s+1]=0,d[s+1]=0;let u=r-l,h=u%2!=0,g=0,p=0,_=0,x=0;for(let b=0;b<o&&!(new Date().getTime()>i);b++){for(let m=-b+g;m<=b-p;m+=2){let w=s+m,C;m==-b||m!=b&&c[w-1]<c[w+1]?C=c[w+1]:C=c[w-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(C)==t.charAt(v);)C++,v++;if(c[w]=C,C>r)p+=2;else if(v>l)g+=2;else if(h){let V=s+u-m;if(V>=0&&V<a&&d[V]!=-1){let N=r-d[V];if(C>=N)return this.diff_bisectSplit_(e,t,C,v,i)}}}for(let m=-b+_;m<=b-x;m+=2){let w=s+m,C;m==-b||m!=b&&d[w-1]<d[w+1]?C=d[w+1]:C=d[w-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(r-C-1)==t.charAt(l-v-1);)C++,v++;if(d[w]=C,C>r)x+=2;else if(v>l)_+=2;else if(!h){let V=s+u-m;if(V>=0&&V<a&&c[V]!=-1){let N=c[V],T=s+N-V;if(C=r-C,N>=C)return this.diff_bisectSplit_(e,t,N,T,i)}}}}return[new f.Diff(-1,e),new f.Diff(1,t)]};f.prototype.diff_bisectSplit_=function(e,t,i,r,l){let o=e.substring(0,i),s=t.substring(0,r),a=e.substring(i),c=t.substring(r),d=this.diff_main(o,s,!1,l),u=this.diff_main(a,c,!1,l);return d.concat(u)};f.prototype.diff_linesToChars_=function(e,t){let i=[],r={};i[0]="";function l(c){let d="",u=0,h=-1,g=i.length;for(;h<c.length-1;){h=c.indexOf(`
|
|
2
2
|
`,u),h==-1&&(h=c.length-1);let p=c.substring(u,h+1);(r.hasOwnProperty?r.hasOwnProperty(p):r[p]!==void 0)?d+=String.fromCharCode(r[p]):(g==o&&(p=c.substring(u),h=c.length),d+=String.fromCharCode(g),r[p]=g,i[g++]=p),u=h+1}return d}let o=4e4,s=l(e);o=65535;let a=l(t);return{chars1:s,chars2:a,lineArray:i}};f.prototype.diff_charsToLines_=function(e,t){for(let i=0;i<e.length;i++){let r=e[i][1],l=[];for(let o=0;o<r.length;o++)l[o]=t[r.charCodeAt(o)];e[i][1]=l.join("")}};f.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(o,l)==t.substring(o,l)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};f.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;let i=0,r=Math.min(e.length,t.length),l=r,o=0;for(;i<l;)e.substring(e.length-l,e.length-o)==t.substring(t.length-l,t.length-o)?(i=l,o=i):r=l,l=Math.floor((r-i)/2+i);return l};f.prototype.diff_commonOverlap_=function(e,t){let i=e.length,r=t.length;if(i==0||r==0)return 0;i>r?e=e.substring(i-r):i<r&&(t=t.substring(0,i));let l=Math.min(i,r);if(e==t)return l;let o=0,s=1;for(;;){let a=e.substring(l-s),c=t.indexOf(a);if(c==-1)return o;s+=c,(c==0||e.substring(l-s)==t.substring(0,s))&&(o=s,s++)}};f.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;let i=e.length>t.length?e:t,r=e.length>t.length?t:e;if(i.length<4||r.length*2<i.length)return null;let l=this;function o(_,x,b){let m=_.substring(b,b+Math.floor(_.length/4)),w=-1,C="",v,V,N,T;for(;(w=x.indexOf(m,w+1))!=-1;){let L=l.diff_commonPrefix(_.substring(b),x.substring(w)),D=l.diff_commonSuffix(_.substring(0,b),x.substring(0,w));C.length<D+L&&(C=x.substring(w-D,w)+x.substring(w,w+L),v=_.substring(0,b-D),V=_.substring(b+L),N=x.substring(0,w-D),T=x.substring(w+L))}return C.length*2>=_.length?[v,V,N,T,C]:null}let s=o(i,r,Math.ceil(i.length/4)),a=o(i,r,Math.ceil(i.length/2)),c;if(!s&&!a)return null;a?s?c=s[4].length>a[4].length?s:a:c=a:c=s;let d,u,h,g;e.length>t.length?(d=c[0],u=c[1],h=c[2],g=c[3]):(h=c[0],g=c[1],d=c[2],u=c[3]);let p=c[4];return[d,u,h,g,p]};f.prototype.diff_cleanupSemantic=function(e){let t=!1,i=[],r=0,l=null,o=0,s=0,a=0,c=0,d=0;for(;o<e.length;)e[o][0]==0?(i[r++]=o,s=c,a=d,c=0,d=0,l=e[o][1]):(e[o][0]==1?c+=e[o][1].length:d+=e[o][1].length,l&&l.length<=Math.max(s,a)&&l.length<=Math.max(c,d)&&(e.splice(i[r-1],0,new f.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,r--,o=r>0?i[r-1]:-1,s=0,a=0,c=0,d=0,l=null,t=!0)),o++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o<e.length;){if(e[o-1][0]==-1&&e[o][0]==1){let u=e[o-1][1],h=e[o][1],g=this.diff_commonOverlap_(u,h),p=this.diff_commonOverlap_(h,u);g>=p?(g>=u.length/2||g>=h.length/2)&&(e.splice(o,0,new f.Diff(0,h.substring(0,g))),e[o-1][1]=u.substring(0,u.length-g),e[o+1][1]=h.substring(g),o++):(p>=u.length/2||p>=h.length/2)&&(e.splice(o,0,new f.Diff(0,u.substring(0,p))),e[o-1][0]=1,e[o-1][1]=h.substring(0,h.length-p),e[o+1][0]=-1,e[o+1][1]=u.substring(p),o++),o++}o++}};f.prototype.diff_cleanupSemanticLossless=function(e){function t(r,l){if(!r||!l)return 6;let o=r.charAt(r.length-1),s=l.charAt(0),a=o.match(f.nonAlphaNumericRegex_),c=s.match(f.nonAlphaNumericRegex_),d=a&&o.match(f.whitespaceRegex_),u=c&&s.match(f.whitespaceRegex_),h=d&&o.match(f.linebreakRegex_),g=u&&s.match(f.linebreakRegex_),p=h&&r.match(f.blanklineEndRegex_),_=g&&l.match(f.blanklineStartRegex_);return p||_?5:h||g?4:a&&!d&&u?3:d||u?2:a||c?1:0}let i=1;for(;i<e.length-1;){if(e[i-1][0]==0&&e[i+1][0]==0){let r=e[i-1][1],l=e[i][1],o=e[i+1][1],s=this.diff_commonSuffix(r,l);if(s){r[r.length-s]===`
|
|
3
3
|
`&&(s-=1);let h=l.substring(l.length-s);r=r.substring(0,r.length-s),l=h+l.substring(0,l.length-s),o=h+o}let a=r,c=l,d=o,u=t(r,l)+t(l,o);for(;l.charAt(0)===o.charAt(0);){r+=l.charAt(0),l=l.substring(1)+o.charAt(0),o=o.substring(1);let h=t(r,l)+t(l,o);h>=u&&(u=h,a=r,c=l,d=o)}e[i-1][1]!=a&&(a?e[i-1][1]=a:(e.splice(i-1,1),i--),e[i][1]=c,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}};f.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;f.whitespaceRegex_=/\s/;f.linebreakRegex_=/[\r\n]/;f.blanklineEndRegex_=/\n\r?\n$/;f.blanklineStartRegex_=/^\r?\n\r?\n/;f.prototype.diff_cleanupEfficiency=function(e){let t=!1,i=[],r=0,l=null,o=0,s=!1,a=!1,c=!1,d=!1;for(;o<e.length;)e[o][0]==0?(e[o][1].length<this.Diff_EditCost&&(c||d)?(i[r++]=o,s=c,a=d,l=e[o][1]):(r=0,l=null),c=d=!1):(e[o][0]==-1?d=!0:c=!0,l&&(s&&a&&c&&d||l.length<this.Diff_EditCost/2&&s+a+c+d==3)&&(e.splice(i[r-1],0,new f.Diff(-1,l)),e[i[r-1]+1][0]=1,r--,l=null,s&&a?(c=d=!0,r=0):(r--,o=r>0?i[r-1]:-1,c=d=!1),t=!0)),o++;t&&this.diff_cleanupMerge(e)};f.prototype.diff_cleanupMerge=function(e){e.push(new f.Diff(0,""));let t=0,i=0,r=0,l="",o="",s;for(;t<e.length;)switch(e[t][0]){case 1:r++,o+=e[t][1],t++;break;case-1:i++,l+=e[t][1],t++;break;case 0:i+r>1?(i!==0&&r!==0&&(s=this.diff_commonPrefix(o,l),s!==0&&(t-i-r>0&&e[t-i-r-1][0]==0?e[t-i-r-1][1]+=o.substring(0,s):(e.splice(0,0,new f.Diff(0,o.substring(0,s))),t++),o=o.substring(s),l=l.substring(s)),s=this.diff_commonSuffix(o,l),s!==0&&(e[t][1]=o.substring(o.length-s)+e[t][1],o=o.substring(0,o.length-s),l=l.substring(0,l.length-s))),t-=i+r,e.splice(t,i+r),l.length&&(e.splice(t,0,new f.Diff(-1,l)),t++),o.length&&(e.splice(t,0,new f.Diff(1,o)),t++),t++):t!==0&&e[t-1][0]==0?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,i=0,l="",o="";break}e[e.length-1][1]===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]==0&&e[t+1][0]==0&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)==e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)==e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&this.diff_cleanupMerge(e)};f.prototype.diff_cleanupSplitSurrogates=function(e){let t;for(let i=0;i<e.length;i++){let r=e[i],l=r[1][0],o=r[1][r[1].length-1];if(r[1].length===0){e.splice(i--,1);continue}if(o&&this.isHighSurrogate(o)&&(t=o,r[1]=r[1].slice(0,-1)),t&&l&&this.isHighSurrogate(t)&&this.isLowSurrogate(l)&&(r[1]=t+r[1]),r[1].length===0){e.splice(i--,1);continue}}return e};f.prototype.isHighSurrogate=function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319};f.prototype.isLowSurrogate=function(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343};f.prototype.digit16=function(e){switch(e){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"A":case"a":return 10;case"B":case"b":return 11;case"C":case"c":return 12;case"D":case"d":return 13;case"E":case"e":return 14;case"F":case"f":return 15;default:throw new Error("Invalid hex-code")}};f.prototype.decodeURI=function(e){try{return decodeURI(e)}catch{let t=0,i="";for(;t<e.length;){if(e[t]!=="%"){i+=e[t++];continue}let r=(this.digit16(e[t+1])<<4)+this.digit16(e[t+2]);if((r&128)===0){i+=String.fromCharCode(r),t+=3;continue}if(e[t+3]!=="%")throw new URIError("URI malformed");let l=(this.digit16(e[t+4])<<4)+this.digit16(e[t+5]);if((l&192)!==128)throw new URIError("URI malformed");if(l=l&63,(r&224)===192){i+=String.fromCharCode((r&31)<<6|l),t+=6;continue}if(e[t+6]!=="%")throw new URIError("URI malformed");let o=(this.digit16(e[t+7])<<4)+this.digit16(e[t+8]);if((o&192)!==128)throw new URIError("URI malformed");if(o=o&63,(r&240)===224){i+=String.fromCharCode((r&15)<<12|l<<6|o),t+=9;continue}if(e[t+9]!=="%")throw new URIError("URI malformed");let s=(this.digit16(e[t+10])<<4)+this.digit16(e[t+11]);if((s&192)!==128)throw new URIError("URI malformed");if(s=s&63,(r&248)===240){let a=(r&7)<<18|l<<12|o<<6|s;if(a>=65536&&a<=1114111){i+=String.fromCharCode((a&65535)>>>10&1023|55296),i+=String.fromCharCode(56320|a&65535&1023),t+=12;continue}}throw new URIError("URI malformed")}return i}};f.prototype.diff_xIndex=function(e,t){let i=0,r=0,l=0,o=0,s;for(s=0;s<e.length&&(e[s][0]!==1&&(i+=e[s][1].length),e[s][0]!==-1&&(r+=e[s][1].length),!(i>t));s++)l=i,o=r;return e.length!=s&&e[s][0]===-1?o:o+(t-l)};f.prototype.diff_prettyHtml=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[],i=/&/g,r=/</g,l=/>/g,o=/\n/g;for(let s=0;s<e.length;s++){let a=e[s][0],c=e[s][1].replace(i,"&").replace(r,"<").replace(l,">").replace(o,"¶<br>");switch(a){case 1:t[s]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[s]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[s]="<span>"+c+"</span>";break}}return t.join("")};f.prototype.diff_text1=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==1&&(t[i]=e[i][1]);return t.join("")};f.prototype.diff_text2=function(e){let t=[];for(let i=0;i<e.length;i++)e[i][0]!==-1&&(t[i]=e[i][1]);return t.join("")};f.prototype.diff_levenshtein=function(e){let t=0,i=0,r=0;for(let l=0;l<e.length;l++){let o=e[l][0],s=e[l][1];switch(o){case 1:i+=s.length;break;case-1:r+=s.length;break;case 0:t+=Math.max(i,r),i=0,r=0;break}}return t+=Math.max(i,r),t};f.prototype.diff_toDelta=function(e){e=this.diff_cleanupSplitSurrogates(e);let t=[];for(let i=0;i<e.length;i++)switch(e[i][0]){case 1:t[i]="+"+encodeURI(e[i][1]);break;case-1:t[i]="-"+e[i][1].length;break;case 0:t[i]="="+e[i][1].length;break}return t.join(" ").replace(/%20/g," ")};f.prototype.diff_fromDelta=function(e,t){let i=0,r="",l=[],o=0,s=0,a=t.split(/\t/g);for(let c=0;c<a.length;c++){let d=a[c].substring(1);switch(a[c].charAt(0)){case"+":try{l[o++]=new f.Diff(1,this.decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":if(i=parseInt(d,10),isNaN(i)||i<0)throw new Error("Invalid number in diff_fromDelta: "+d);r=e.substring(s,s+=i),a[c].charAt(0)=="="?l[o++]=new f.Diff(0,r):l[o++]=new f.Diff(-1,r);break;default:if(a[c])throw new Error("Invalid diff operation in diff_fromDelta: "+a[c])}}if(s!=e.length)throw new Error("Delta length ("+s+") does not equal source text length ("+e.length+").");return l};f.prototype.match_main=function(e,t,i){if(e==null||t==null||i==null)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,e.length)),e==t?0:e.length?e.substring(i,i+t.length)==t?i:this.match_bitap_(e,t,i):-1};f.prototype.match_bitap_=function(e,t,i){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");let r=this.match_alphabet_(t),l=this;function o(p,_){let x=p/t.length,b=Math.abs(i-_);return l.Match_Distance?x+b/l.Match_Distance:b?1:x}let s=this.Match_Threshold,a=e.indexOf(t,i);a!=-1&&(s=Math.min(o(0,a),s),a=e.lastIndexOf(t,i+t.length),a!=-1&&(s=Math.min(o(0,a),s)));let c=1<<t.length-1;a=-1;let d,u,h=t.length+e.length,g;for(let p=0;p<t.length;p++){for(d=0,u=h;d<u;)o(p,i+u)<=s?d=u:h=u,u=Math.floor((h-d)/2+d);h=u;let _=Math.max(1,i-u+1),x=Math.min(i+u,e.length)+t.length,b=Array(x+2);b[x+1]=(1<<p)-1;for(let m=x;m>=_;m--){let w=r[e.charAt(m-1)];if(p===0?b[m]=(b[m+1]<<1|1)&w:b[m]=(b[m+1]<<1|1)&w|((g[m+1]|g[m])<<1|1)|g[m+1],b[m]&c){let C=o(p,m-1);if(C<=s)if(s=C,a=m-1,a>i)_=Math.max(1,2*i-a);else break}}if(o(p+1,i)>s)break;g=b}return a};f.prototype.match_alphabet_=function(e){let t={};for(let i=0;i<e.length;i++)t[e.charAt(i)]=0;for(let i=0;i<e.length;i++)t[e.charAt(i)]|=1<<e.length-i-1;return t};f.prototype.patch_addContext_=function(e,t){if(t.length==0)return;if(e.start2===null)throw Error("patch not initialized");let i=t.substring(e.start2,e.start2+e.length1),r=0;for(;t.indexOf(i)!=t.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,i=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin,e.start2-r>0&&f.prototype.isLowSurrogate(t[e.start2-r])&&r++;let l=t.substring(e.start2-r,e.start2);l&&e.diffs.unshift(new f.Diff(0,l)),e.start2+e.length1+r<t.length&&f.prototype.isHighSurrogate(t[e.start2+e.length1+r])&&r++;let o=t.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push(new f.Diff(0,o)),e.start1-=l.length,e.start2-=l.length,e.length1+=l.length+o.length,e.length2+=l.length+o.length};f.prototype.patch_make=function(e,t,i){let r,l;if(typeof e=="string"&&typeof t=="string"&&typeof i>"u")r=e,l=this.diff_main(r,t,!0),l.length>2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&typeof e=="object"&&typeof t>"u"&&typeof i>"u")l=e,r=this.diff_text1(l);else if(typeof e=="string"&&t&&typeof t=="object"&&typeof i>"u")r=e,l=t;else if(typeof e=="string"&&typeof t=="string"&&i&&typeof i=="object")r=e,l=i;else throw new Error("Unknown call format to patch_make.");if(l.length===0)return[];l=this.diff_cleanupSplitSurrogates(l);let o=[],s=new f.patch_obj,a=0,c=0,d=0,u=r,h=r;for(let g=0;g<l.length;g++){let p=l[g][0],_=l[g][1];switch(!a&&p!==0&&(s.start1=c,s.start2=d),p){case 1:s.diffs[a++]=l[g],s.length2+=_.length,h=h.substring(0,d)+_+h.substring(d);break;case-1:s.length1+=_.length,s.diffs[a++]=l[g],h=h.substring(0,d)+h.substring(d+_.length);break;case 0:_.length<=2*this.Patch_Margin&&a&&l.length!=g+1?(s.diffs[a++]=l[g],s.length1+=_.length,s.length2+=_.length):_.length>=2*this.Patch_Margin&&a&&(this.patch_addContext_(s,u),o.push(s),s=new f.patch_obj,a=0,u=h,c=d);break}p!==1&&(c+=_.length),p!==-1&&(d+=_.length)}return a&&(this.patch_addContext_(s,u),o.push(s)),o};f.prototype.patch_deepCopy=function(e){let t=[];for(let i=0;i<e.length;i++){let r=e[i],l=new f.patch_obj;l.diffs=[];for(let o=0;o<r.diffs.length;o++)l.diffs[o]=new f.Diff(r.diffs[o][0],r.diffs[o][1]);l.start1=r.start1,l.start2=r.start2,l.length1=r.length1,l.length2=r.length2,t[i]=l}return t};f.prototype.patch_apply=function(e,t){if(e.length==0)return[t,[]];e=this.patch_deepCopy(e);let i=this.patch_addPadding(e);t=i+t+i,this.patch_splitMax(e);let r=0,l=[];for(let o=0;o<e.length;o++){let s=e[o].start2+r,a=this.diff_text1(e[o].diffs),c,d=-1;if(a.length>this.Match_MaxBits?(c=this.match_main(t,a.substring(0,this.Match_MaxBits),s),c!=-1&&(d=this.match_main(t,a.substring(a.length-this.Match_MaxBits),s+a.length-this.Match_MaxBits),(d==-1||c>=d)&&(c=-1))):c=this.match_main(t,a,s),c==-1)l[o]=!1,r-=e[o].length2-e[o].length1;else{l[o]=!0,r=c-s;let u;if(d==-1?u=t.substring(c,c+a.length):u=t.substring(c,d+this.Match_MaxBits),a==u)t=t.substring(0,c)+this.diff_text2(e[o].diffs)+t.substring(c+a.length);else{let h=this.diff_main(a,u,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(h)/a.length>this.Patch_DeleteThreshold)l[o]=!1;else{this.diff_cleanupSemanticLossless(h);let g=0,p;for(let _=0;_<e[o].diffs.length;_++){let x=e[o].diffs[_];x[0]!==0&&(p=this.diff_xIndex(h,g)),x[0]===1?t=t.substring(0,c+p)+x[1]+t.substring(c+p):x[0]===-1&&(t=t.substring(0,c+p)+t.substring(c+this.diff_xIndex(h,g+x[1].length))),x[0]!==-1&&(g+=x[1].length)}}}}}return t=t.substring(i.length,t.length-i.length),[t,l]};f.prototype.patch_addPadding=function(e){let t=this.Patch_Margin,i="";for(let o=1;o<=t;o++)i+=String.fromCharCode(o);for(let o=0;o<e.length;o++)e[o].start1+=t,e[o].start2+=t;let r=e[0],l=r.diffs;if(l.length==0||l[0][0]!=0)l.unshift(new f.Diff(0,i)),r.start1-=t,r.start2-=t,r.length1+=t,r.length2+=t;else if(t>l[0][1].length){let o=t-l[0][1].length;l[0][1]=i.substring(l[0][1].length)+l[0][1],r.start1-=o,r.start2-=o,r.length1+=o,r.length2+=o}if(r=e[e.length-1],l=r.diffs,l.length==0||l[l.length-1][0]!=0)l.push(new f.Diff(0,i)),r.length1+=t,r.length2+=t;else if(t>l[l.length-1][1].length){let o=t-l[l.length-1][1].length;l[l.length-1][1]+=i.substring(0,o),r.length1+=o,r.length2+=o}return i};f.prototype.patch_splitMax=function(e){let t=this.Match_MaxBits;for(let i=0;i<e.length;i++){if(e[i].length1<=t)continue;let r=e[i];e.splice(i--,1);let l=r.start1,o=r.start2,s="";for(;r.diffs.length!==0;){let a=new f.patch_obj,c=!0;for(a.start1=l-s.length,a.start2=o-s.length,s!==""&&(a.length1=a.length2=s.length,a.diffs.push(new f.Diff(0,s)));r.diffs.length!==0&&a.length1<t-this.Patch_Margin;){let u=r.diffs[0][0],h=r.diffs[0][1];u===1?(a.length2+=h.length,o+=h.length,a.diffs.push(r.diffs.shift()),c=!1):u===-1&&a.diffs.length==1&&a.diffs[0][0]==0&&h.length>2*t?(a.length1+=h.length,l+=h.length,c=!1,a.diffs.push(new f.Diff(u,h)),r.diffs.shift()):(h=h.substring(0,t-a.length1-this.Patch_Margin),a.length1+=h.length,l+=h.length,u===0?(a.length2+=h.length,o+=h.length):c=!1,a.diffs.push(new f.Diff(u,h)),h==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(h.length))}s=this.diff_text2(a.diffs),s=s.substring(s.length-this.Patch_Margin);let d=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);d!==""&&(a.length1+=d.length,a.length2+=d.length,a.diffs.length!==0&&a.diffs[a.diffs.length-1][0]===0?a.diffs[a.diffs.length-1][1]+=d:a.diffs.push(new f.Diff(0,d))),c||e.splice(++i,0,a)}}};f.prototype.patch_toText=function(e){let t=[];for(let i=0;i<e.length;i++)t[i]=e[i];return t.join("")};f.prototype.patch_fromText=function(e){let t=[];if(!e)return t;let i=e.split(`
|
|
4
4
|
`),r=0,l=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;for(;r<i.length;){let o=i[r].match(l);if(!o)throw new Error("Invalid patch string: "+i[r]);let s=new f.patch_obj;for(t.push(s),s.start1=parseInt(o[1],10),o[2]===""?(s.start1--,s.length1=1):o[2]=="0"?s.length1=0:(s.start1--,s.length1=parseInt(o[2],10)),s.start2=parseInt(o[3],10),o[4]===""?(s.start2--,s.length2=1):o[4]=="0"?s.length2=0:(s.start2--,s.length2=parseInt(o[4],10)),r++;r<i.length;){let a=i[r].charAt(0),c="";try{c=decodeURI(i[r].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+c)}if(a=="-")s.diffs.push(new f.Diff(-1,c));else if(a=="+")s.diffs.push(new f.Diff(1,c));else if(a==" ")s.diffs.push(new f.Diff(0,c));else{if(a=="@")break;if(a!=="")throw new Error('Invalid patch mode "'+a+'" in: '+c)}r++}}return t};f.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0};f.patch_obj.prototype.toString=function(){let e,t;this.length1===0?e=this.start1+",0":this.length1==1?e=this.start1+1:e=this.start1+1+","+this.length1,this.length2===0?t=this.start2+",0":this.length2==1?t=this.start2+1:t=this.start2+1+","+this.length2;let i=["@@ -"+e+" +"+t+` @@
|
package/dist/tools/admin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as we } from "../index-qCq0L4jN.js";
|
|
2
2
|
import { resolveComponent as m, createBlock as M, openBlock as E, withCtx as g, createVNode as c, createElementVNode as T, createElementBlock as V, createTextVNode as S, Fragment as G, renderList as $, createCommentVNode as j, toDisplayString as A, withModifiers as H, withDirectives as ye, vShow as ve, toRaw as xe } from "vue";
|
|
3
3
|
import { _ as q } from "../CustomIcon-h5X7369N.js";
|
|
4
|
-
import { b as I, l as Ce } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-
|
|
5
|
-
import { A as U, T as Ee } from "../TopBar-
|
|
4
|
+
import { b as I, l as Ce } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BOiUmW4q.js";
|
|
5
|
+
import { A as U, T as Ee } from "../TopBar-AjYGyx8W.js";
|
|
6
6
|
import "single-spa";
|
|
7
7
|
const Le = {
|
|
8
8
|
props: {
|
|
@@ -556,61 +556,61 @@ const ct = /* @__PURE__ */ q(Pe, [["render", Fe]]), Ue = [
|
|
|
556
556
|
displayName: "Plugins",
|
|
557
557
|
name: "PluginsTab",
|
|
558
558
|
path: "plugins",
|
|
559
|
-
component: () => import("../PluginsTab-
|
|
559
|
+
component: () => import("../PluginsTab-DxxEqPCA.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-DyfyM9sC.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-BbsiYwEX.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-Bg6dpAXr.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-CtI7BEt0.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-DhMk-fi5.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-BvpoO0wt.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-Bq8Frctp.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-vdm8oj9_.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-C05e6-Xm.js")
|
|
614
614
|
}
|
|
615
615
|
], He = {
|
|
616
616
|
components: {
|
package/dist/tools/base.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Bowkx8lp.cjs"),e=require("vue"),y=require("../CustomIcon-Bop2mEnu.cjs"),U=require("single-spa"),B=require("../UpgradeToEnterpriseDialog-C0MA3Uc-.cjs"),h=require("../format-B22VpiOS.cjs"),S=require("../icons.cjs"),X=require("../AstroStatus-CILMWL6F.cjs"),Y=require("../index-DcL65Mqb.cjs");function T(t,o){const n=+h.toDate(t)-+h.toDate(o);return n<0?-1:n>0?1:n}function j(t){return h.constructFrom(t,Date.now())}function q(t,o,n){const[a,s]=h.normalizeDates(n==null?void 0:n.in,t,o),i=a.getFullYear()-s.getFullYear(),d=a.getMonth()-s.getMonth();return i*12+d}function Z(t){return o=>{const a=(t?Math[t]:Math.trunc)(o);return a===0?0:a}}function W(t,o){return+h.toDate(t)-+h.toDate(o)}function $(t,o){const n=h.toDate(t,o==null?void 0:o.in);return n.setHours(23,59,59,999),n}function J(t,o){const n=h.toDate(t,o==null?void 0:o.in),a=n.getMonth();return n.setFullYear(n.getFullYear(),a+1,0),n.setHours(23,59,59,999),n}function G(t,o){const n=h.toDate(t,o==null?void 0:o.in);return+$(n,o)==+J(n,o)}function K(t,o,n){const[a,s,i]=h.normalizeDates(n==null?void 0:n.in,t,t,o),d=T(s,i),r=Math.abs(q(s,i));if(r<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-d*r);let c=T(s,i)===-d;G(a)&&r===1&&T(a,i)===1&&(c=!1);const u=d*(r-+c);return u===0?0:u}function Q(t,o,n){const a=W(t,o)/1e3;return Z(n==null?void 0:n.roundingMethod)(a)}function ee(t,o,n){const a=h.getDefaultOptions(),s=(n==null?void 0:n.locale)??a.locale??h.enUS,i=2520,d=T(t,o);if(isNaN(d))throw new RangeError("Invalid time value");const r=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:d}),[c,u]=h.normalizeDates(n==null?void 0:n.in,...d>0?[o,t]:[t,o]),m=Q(u,c),g=(h.getTimezoneOffsetInMilliseconds(u)-h.getTimezoneOffsetInMilliseconds(c))/1e3,p=Math.round((m-g)/60);let _;if(p<2)return n!=null&&n.includeSeconds?m<5?s.formatDistance("lessThanXSeconds",5,r):m<10?s.formatDistance("lessThanXSeconds",10,r):m<20?s.formatDistance("lessThanXSeconds",20,r):m<40?s.formatDistance("halfAMinute",0,r):m<60?s.formatDistance("lessThanXMinutes",1,r):s.formatDistance("xMinutes",1,r):p===0?s.formatDistance("lessThanXMinutes",1,r):s.formatDistance("xMinutes",p,r);if(p<45)return s.formatDistance("xMinutes",p,r);if(p<90)return s.formatDistance("aboutXHours",1,r);if(p<h.minutesInDay){const v=Math.round(p/60);return s.formatDistance("aboutXHours",v,r)}else{if(p<i)return s.formatDistance("xDays",1,r);if(p<h.minutesInMonth){const v=Math.round(p/h.minutesInDay);return s.formatDistance("xDays",v,r)}else if(p<h.minutesInMonth*2)return _=Math.round(p/h.minutesInMonth),s.formatDistance("aboutXMonths",_,r)}if(_=K(u,c),_<12){const v=Math.round(p/h.minutesInMonth);return s.formatDistance("xMonths",v,r)}else{const v=_%12,k=Math.trunc(_/12);return v<3?s.formatDistance("aboutXYears",k,r):v<9?s.formatDistance("overXYears",k,r):s.formatDistance("almostXYears",k+1,r)}}function te(t,o){return ee(t,j(t),o)}const oe={data:function(){return{localDate:new Date,displayLocal:localStorage.clock_zone==="local",display24h:!localStorage.clock_12h,dateMode:localStorage.clock_dateMode||"monthFirst",intervalCount:0,showMenu:!1,menuX:0,menuY:0}},computed:{utcDate:function(){return new Date(this.localDate.getTime()+this.localDate.getTimezoneOffset()*6e4)},formatString:function(){let t;switch(this.dateMode){case"monthFirst":t="LL/dd/yyy";break;case"dayFirst":t="dd/LL/yyy";break;case"number":t="D";break}let o;return this.display24h?o="HH:mm:ss":o="hh:mm:ss a",`${t} ${o}`}},watch:{displayLocal:function(t){localStorage.clock_zone=t?"local":"utc"},display24h:function(t){t?delete localStorage.clock_12h:localStorage.clock_12h=!0},dateMode:function(t){t.match(/^monthFirst$|^dayFirst$|^number$/)&&(localStorage.clock_dateMode=t)}},created:function(){setInterval(()=>{this.intervalCount++,this.localDate=new Date},this.intervalCount<10?100:1e3)},methods:{openMenu:function(t){t.preventDefault(),this.showMenu=!1,this.menuX=t.clientX,this.menuY=t.clientY,this.$nextTick(()=>{this.showMenu=!0})},toggleDisplayLocal:function(){this.displayLocal=!this.displayLocal},toggleDisplay24h:function(){this.display24h=!this.display24h},setMonthFirst:function(){this.dateMode="monthFirst"},setDayFirst:function(){this.dateMode="dayFirst"},setNumber:function(){this.dateMode="number"},formatDate:function(t,o){return h.format(t,o,{useAdditionalDayOfYearTokens:!0})}}};function ne(t,o,n,a,s,i){const d=e.resolveComponent("v-list-item-title"),r=e.resolveComponent("v-list-item"),c=e.resolveComponent("v-divider"),u=e.resolveComponent("v-list"),m=e.resolveComponent("v-menu");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("span",{style:{cursor:"context-menu"},class:"font-weight-bold",onContextmenu:o[0]||(o[0]=(...g)=>i.openMenu&&i.openMenu(...g))},e.toDisplayString(i.formatDate(t.displayLocal?t.localDate:i.utcDate,i.formatString))+" ("+e.toDisplayString(t.displayLocal?"local":"UTC")+") ",33),e.createVNode(m,{modelValue:t.showMenu,"onUpdate:modelValue":o[1]||(o[1]=g=>t.showMenu=g),target:[t.menuX,t.menuY]},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.toggleDisplayLocal},{default:e.withCtx(()=>[e.createTextVNode(" Display "+e.toDisplayString(t.displayLocal?"UTC":"local time"),1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.toggleDisplay24h},{default:e.withCtx(()=>[e.createTextVNode(" Display "+e.toDisplayString(t.display24h?12:24)+" hour clock ",1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),t.dateMode!=="monthFirst"?(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.setMonthFirst},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" Display mm/dd/yyyy ")])),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),t.dateMode!=="dayFirst"?(e.openBlock(),e.createBlock(r,{key:1},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.setDayFirst},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode(" Display dd/mm/yyyy ")])),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),t.dateMode!=="number"?(e.openBlock(),e.createBlock(r,{key:2},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.setNumber},{default:e.withCtx(()=>o[4]||(o[4]=[e.createTextVNode(" Display day of year ")])),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","target"])])}const L=y._export_sfc(oe,[["render",ne]]),se={components:{ClockFooter:L,UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},data(){return{icon:"/img/icon.png",edition:"",enterprise:!1,license:"",sourceUrl:"",version:"",showUpgradeToEnterpriseDialog:!1,chromeless:this.$route.query.chromeless}},computed:{footerClass(){return this.enterprise?"enterprise":"core"}},created:function(){this.getSourceUrl(),N.li.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 N.pi().get_settings(["source_url"]).then(t=>{this.sourceUrl=t[0]})},upgrade:function(){this.enterprise||(this.showUpgradeToEnterpriseDialog=!0)}}},ie=["src"],ae=["href"],re={class:"justify-right"};function le(t,o,n,a,s,i){const d=e.resolveComponent("v-spacer"),r=e.resolveComponent("clock-footer"),c=e.resolveComponent("upgrade-to-enterprise-dialog"),u=e.resolveComponent("v-footer");return s.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u,{key:0,id:"footer",app:"",height:"33"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:s.icon,alt:"OpenC3"},null,8,ie),e.createElementVNode("span",{class:e.normalizeClass(i.footerClass),onClick:o[0]||(o[0]=(...m)=>i.upgrade&&i.upgrade(...m))}," OpenC3 "+e.toDisplayString(s.edition)+" "+e.toDisplayString(s.version)+" © 2025 - License: "+e.toDisplayString(s.license),3),e.createVNode(d),e.createElementVNode("a",{href:s.sourceUrl,class:"text-white text-decoration-underline"}," Source ",8,ae),e.createVNode(d),e.createElementVNode("div",re,[e.createVNode(r)]),e.createVNode(c,{modelValue:s.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[1]||(o[1]=m=>s.showUpgradeToEnterpriseDialog=m),reason:"Enterprise is Commercially Licensed"},null,8,["modelValue"])]),_:1}))}const ce=y._export_sfc(se,[["render",le],["__scopeId","data-v-e5a3338e"]]),b=1e3,{highestLevel:de,orderByLevel:ue,groupByLevel:pe}=X.AstroStatus,me={components:{AstroStatusIndicator:S.AstroStatusIndicator},props:{size:{type:[String,Number],default:26}},data:function(){return{AstroStatusColors:S.AstroStatusColors,alerts:[],cable:new N.di,scriptCable:new N.di("/script-api/cable"),subscription:null,scriptSubscription:null,numScripts:0,notifications:[],showNotificationPane:!1,toastNotification:{},notificationDialog:!1,selectedNotification:{},settingsDialog:!1,showToast:!0}},computed:{activeScripts:function(){return`Scripts: ${this.numScripts}`},notificationVsAlert:function(){return"notifications"},iconStatus:function(){if(this.unreadNotifications.length===0)return"off";const t=this.unreadNotifications.map(o=>o.level).filter((o,n,a)=>a.indexOf(o)===n);return S.UnknownToAstroStatus[de(t)]},readNotifications:function(){return this.notifications.filter(t=>t.read).sort((t,o)=>o.time-t.time)},unreadNotifications:function(){return this.notifications.filter(t=>!t.read).sort((t,o)=>o.time-t.time)},unreadCount:function(){return this.unreadNotifications.length},notificationList:function(){const t=pe(this.unreadNotifications);let o=ue(Object.keys(t),n=>n).flatMap(n=>[{header:n.charAt(0).toUpperCase()+n.slice(1)},...t[n]]);return this.readNotifications.length&&(o=o.concat([{header:"Read"},...this.readNotifications])),o}},watch:{showNotificationPane:function(t){t||(this.selectedNotification.message?(this.notificationDialog=!1,this.selectedNotification={}):this.markAllAsRead())},showToast:function(t){localStorage.notoast=!t}},created:function(){this.showToast=localStorage.notoast==="false",this.subscribe(),this.alerts=this.$store.state.notifyHistory,N.li.get("/script-api/running-script").then(t=>{this.numScripts=t.data.total})},unmounted:function(){this.subscription&&this.subscription.unsubscribe(),this.scriptSubscription&&this.scriptSubscription.unsubscribe(),this.cable.disconnect(),this.scriptCable.disconnect()},methods:{getStatus:function(t){return S.UnknownToAstroStatus[t]},markAllAsRead:function(){this.notifications.forEach(t=>{t.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<t.msg_id)&&(localStorage.lastReadNotification=t.msg_id)})},clearNotifications:function(){this.markAllAsRead(),this.notifications=[],localStorage.notificationStreamOffset=localStorage.lastReadNotification,this.showNotificationPane=!1},toggleNotificationPane:function(){this.showNotificationPane=!this.showNotificationPane},toggleSettingsDialog:function(){this.settingsDialog=!this.settingsDialog},openDialog:function(t,o=!1){t.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<t.msg_id)&&(localStorage.lastReadNotification=t.msg_id),this.selectedNotification=t,this.notificationDialog=!0},navigate:function(t){window.open(t,"_blank")},subscribe:function(){this.cable.createSubscription("MessagesChannel",window.openc3Scope,{received:t=>this.receiveMessage(t)},{start_offset:localStorage.notificationStreamOffset||localStorage.lastReadNotification,types:["notification","alert","ephemeral"]}).then(t=>{this.subscription=t}),this.scriptCable.createSubscription("AllScriptsChannel",window.openc3Scope,{received:t=>this.receiveScript(t)}).then(t=>{this.scriptSubscription=t})},receiveMessage:function(t){this.cable.recordPing(),t.length>b&&t.splice(0,t.length-b);let o=t.filter(a=>a.type==="ephemeral");o&&o.length>0&&(t=t.filter(a=>a.type!=="ephemeral"),o.forEach(a=>{this.$emit("ephemeral",a)}));let n=!1;if(t.forEach(a=>{a.read=a.msg_id<=localStorage.lastReadNotification,a.level=a.level||"INFO",!a.read&&["FATAL","ERROR","WARN"].includes(a.level)&&(n=!0,this.toastNotification=a)}),this.showToast&&n){let a=5e3;["FATAL","ERROR"].includes(this.toastNotification.level)&&(a=null),this.$notify&&this.$notify[this.toastNotification.level]({...this.toastNotification,type:"notification",duration:a,saveToHistory:!1})}this.notifications.length+t.length>b&&this.notifications.splice(0,this.notifications.length+t.length-b),this.notifications=this.notifications.concat(t)},receiveScript:function(t){this.cable.recordPing(),this.numScripts=t.active_scripts},formatShortDateTime:function(t){if(!t)return"";const o=new Date(t/1e6);return te(o,{addSuffix:!0})}}};function fe(t,o,n,a,s,i){const d=e.resolveComponent("v-overlay"),r=e.resolveComponent("rux-monitoring-icon"),c=e.resolveComponent("v-spacer"),u=e.resolveComponent("v-btn"),m=e.resolveComponent("v-tooltip"),g=e.resolveComponent("v-card-title"),p=e.resolveComponent("v-card-text"),_=e.resolveComponent("v-divider"),v=e.resolveComponent("v-list-subheader"),k=e.resolveComponent("rux-status"),V=e.resolveComponent("v-list-item-title"),C=e.resolveComponent("v-list-item-subtitle"),w=e.resolveComponent("v-list-item"),D=e.resolveComponent("v-list"),x=e.resolveComponent("v-card"),l=e.resolveComponent("v-menu"),E=e.resolveComponent("astro-status-indicator"),R=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("v-icon"),A=e.resolveComponent("v-card-actions"),O=e.resolveComponent("v-dialog"),H=e.resolveComponent("v-switch");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(d,{"model-value":t.showNotificationPane,class:"overlay"},null,8,["model-value"]),e.createVNode(l,{modelValue:t.showNotificationPane,"onUpdate:modelValue":o[0]||(o[0]=f=>t.showNotificationPane=f),transition:"slide-y-transition","close-on-content-click":!1,offset:[12,102]},{activator:e.withCtx(({props:f})=>[e.createVNode(r,e.mergeProps(f,{class:"rux-icon",icon:i.notificationVsAlert,label:"Notifications",sublabel:i.activeScripts,status:i.iconStatus,notifications:i.unreadNotifications.length}),null,16,["icon","sublabel","status","notifications"])]),default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(g,{class:"d-flex align-center justify-content-space-between"},{default:e.withCtx(()=>[o[7]||(o[7]=e.createElementVNode("span",null," Notifications ",-1)),e.createVNode(c),e.createVNode(m,{"open-delay":600,location:"top"},{activator:e.withCtx(({props:f})=>[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(f)),[e.createVNode(u,{class:"ml-1",icon:"mdi-notification-clear-all ",variant:"text","data-test":"clear-notifications","aria-label":"Dismiss All Notifications",onClick:i.clearNotifications},null,8,["onClick"])],16)]),default:e.withCtx(()=>[o[6]||(o[6]=e.createElementVNode("span",null," Dismiss All Notifications ",-1))]),_:1}),e.createVNode(u,{icon:"astro:settings",variant:"text",class:"ml-1","data-test":"notification-settings","aria-label":"Notification Settings",onClick:i.toggleSettingsDialog},null,8,["onClick"])]),_:1}),t.notifications.length===0?(e.openBlock(),e.createBlock(p,{key:0},{default:e.withCtx(()=>o[8]||(o[8]=[e.createTextVNode(" No notifications ")])),_:1})):(e.openBlock(),e.createBlock(D,{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(i.notificationList,(f,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f.header?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[M!==0?(e.openBlock(),e.createBlock(_,{key:M,class:"mb-2"})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(v,{key:f.header},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.header),1)]),_:2},1024))],64)):(e.openBlock(),e.createBlock(w,{key:`notification-${M}`,class:"pl-2",onClick:Ge=>i.openDialog(f)},{prepend:e.withCtx(()=>[e.createVNode(k,{class:"px-2",status:i.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(C,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.formatShortDateTime(f.time)),1)]),_:2},1024)]),_:2},1032,["onClick"]))],64))),256))]),_:1}))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(O,{modelValue:t.notificationDialog,"onUpdate:modelValue":o[3]||(o[3]=f=>t.notificationDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.selectedNotification.message)+" ",1),e.createVNode(c),e.createVNode(E,{status:t.selectedNotification.level||"INFO"},null,8,["status"])]),_:1}),e.createVNode(R,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.formatShortDateTime(t.selectedNotification.time)),1)]),_:1}),e.createVNode(_),e.createVNode(A,null,{default:e.withCtx(()=>[t.selectedNotification.url?(e.openBlock(),e.createBlock(u,{key:0,color:"primary",variant:"text",onClick:o[1]||(o[1]=f=>i.navigate(t.selectedNotification.url))},{default:e.withCtx(()=>[o[10]||(o[10]=e.createTextVNode(" Open ")),e.createVNode(z,{end:""},{default:e.withCtx(()=>o[9]||(o[9]=[e.createTextVNode(" mdi-open-in-new ")])),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(u,{color:"primary",variant:"text",onClick:o[2]||(o[2]=f=>t.notificationDialog=!1)},{default:e.withCtx(()=>o[11]||(o[11]=[e.createTextVNode(" Close ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createVNode(O,{modelValue:t.settingsDialog,"onUpdate:modelValue":o[5]||(o[5]=f=>t.settingsDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>o[12]||(o[12]=[e.createTextVNode(" Notification settings ")])),_:1}),e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(H,{modelValue:t.showToast,"onUpdate:modelValue":o[4]||(o[4]=f=>t.showToast=f),label:"Show toasts",color:"primary"},null,8,["modelValue"])]),_:1}),e.createVNode(_),e.createVNode(A,null,{default:e.withCtx(()=>[e.createVNode(u,{color:"primary",variant:"text",onClick:i.toggleSettingsDialog},{default:e.withCtx(()=>o[13]||(o[13]=[e.createTextVNode(" Close ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const F=y._export_sfc(me,[["render",fe],["__scopeId","data-v-0d6257f1"]]),he={components:{UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},data:function(){return{scopes:["DEFAULT"],scope:"DEFAULT",showUpgradeToEnterpriseDialog:!1}}};function _e(t,o,n,a,s,i){const d=e.resolveComponent("v-select"),r=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",{style:{cursor:"pointer"},onClick:o[2]||(o[2]=c=>t.showUpgradeToEnterpriseDialog=!0)},[e.createVNode(d,{modelValue:t.scope,"onUpdate:modelValue":o[0]||(o[0]=c=>t.scope=c),items:t.scopes,disabled:t.scopes.length<=1,label:"Scope",density:"compact",variant:"outlined","hide-details":"",style:{"max-width":"150px"}},null,8,["modelValue","items","disabled"]),e.createVNode(r,{modelValue:t.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[1]||(o[1]=c=>t.showUpgradeToEnterpriseDialog=c),reason:"Enterprise allows additional Scopes"},null,8,["modelValue"])])}const I=y._export_sfc(he,[["render",_e]]),ve={components:{UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},props:{size:{type:[String,Number],default:26}},data:function(){let t=OpenC3Auth.user();return{api:new N.pi,showUserMenu:!1,authenticated:!!localStorage.openc3Token,name:t.name,username:t.preferred_username,showUpgradeToEnterpriseDialog:!1,activeUsers:["None"],newsFeed:!1,news:[]}},computed:{unreadNews:function(){return this.news.filter(t=>!t.read)}},watch:{showUserMenu:function(t,o){t===!0&&(this.news.length>0&&(this.news.forEach(n=>{n.read=!0}),localStorage.lastNewsRead=this.news[0].date),this.name!=="Anonymous"&&N.li.get("/openc3-api/users/active").then(n=>{this.activeUsers=n.data.filter(a=>!a.includes(this.name)),this.activeUsers.length===0&&(this.activeUsers=["None"])}))}},created:function(){this.api.get_setting("news_feed").then(t=>{t&&(this.newsFeed=t,this.newsFeed&&(this.fetchNews(),setInterval(this.fetchNews,60*60*1e3)))}).catch(t=>{})},methods:{refreshNews(){this.api.update_news().then(()=>{this.fetchNews()})},formatDate(t){return t.split("T")[0]},fetchNews:function(){N.li.get("/openc3-api/news").then(t=>{this.news=t.data.sort((o,n)=>Date.parse(n.date)-Date.parse(o.date)),localStorage.lastNewsRead&&this.news.forEach(o=>{o.read=Date.parse(o.date)<=Date.parse(localStorage.lastNewsRead)})})},logout:function(){OpenC3Auth.logout(),N.li.put(`/openc3-api/users/logout/${this.username}`)},login:function(){OpenC3Auth.login(location.href)},roles:function(){return this.name==="Anonymous"?"Admin":OpenC3Auth.userroles().map(t=>this.capitalize(t)).sort().join(", ")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}},ge={style:{"text-align":"center",margin:"5px"}},we={key:0},Ne={class:"roles"},Ce={class:"pb-3 roles"},ke={key:1},ye={key:0,class:"pa-3"},Ve={key:2},De={key:0},xe={class:"news-title"},Se={class:"news-date"},be=["innerHTML"];function Te(t,o,n,a,s,i){const d=e.resolveComponent("v-overlay"),r=e.resolveComponent("rux-monitoring-icon"),c=e.resolveComponent("v-btn"),u=e.resolveComponent("v-row"),m=e.resolveComponent("v-card-text"),g=e.resolveComponent("v-col"),p=e.resolveComponent("v-list-item-title"),_=e.resolveComponent("v-list-item"),v=e.resolveComponent("v-list"),k=e.resolveComponent("v-card"),V=e.resolveComponent("v-menu"),C=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(d,{"model-value":t.showUserMenu,class:"overlay"},null,8,["model-value"]),e.createVNode(V,{modelValue:t.showUserMenu,"onUpdate:modelValue":o[1]||(o[1]=w=>t.showUserMenu=w),transition:"slide-y-transition","close-on-content-click":!1,offset:20},{activator:e.withCtx(({props:w})=>[e.createVNode(r,e.mergeProps(w,{class:"rux-icon",icon:"person",status:"off",label:t.name,sublabel:i.roles(),notifications:i.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",ge,e.toDisplayString(t.name),1),t.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",Ne,"Username: "+e.toDisplayString(t.username),1),e.createElementVNode("div",Ce,"Roles: "+e.toDisplayString(i.roles()),1)])):e.createCommentVNode("",!0),t.authenticated?(e.openBlock(),e.createElementBlock("div",ke,[e.createVNode(c,{block:"",color:"primary",onClick:i.logout},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode(" Logout ")])),_:1},8,["onClick"]),t.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",ye,[e.createVNode(u,{class:"pt-3 user-title"},{default:e.withCtx(()=>o[4]||(o[4]=[e.createTextVNode("Other Active Users:")])),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.activeUsers,(w,D)=>(e.openBlock(),e.createBlock(u,{key:D,class:"user"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1024))),128))])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(c,{block:"",color:"primary",onClick:i.login},{default:e.withCtx(()=>o[5]||(o[5]=[e.createTextVNode(" Login ")])),_:1},8,["onClick"])])),t.name==="Anonymous"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"pt-2 link",onClick:o[0]||(o[0]=w=>t.showUpgradeToEnterpriseDialog=!0)},o[6]||(o[6]=[e.createTextVNode(" Click to learn more about"),e.createElementVNode("br",null,null,-1),e.createTextVNode(" COSMOS Enterprise ")]))):e.createCommentVNode("",!0)]),_:1}),t.newsFeed?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(u,{"no-gutters":"",class:"news-header"},{default:e.withCtx(()=>[e.createVNode(g,{cols:"auto",class:"me-auto"},{default:e.withCtx(()=>o[7]||(o[7]=[e.createTextVNode("COSMOS News")])),_:1}),e.createVNode(g,{cols:"auto"},{default:e.withCtx(()=>[e.createVNode(c,{color:"primary",density:"compact",block:"",onClick:i.refreshNews},{default:e.withCtx(()=>o[8]||(o[8]=[e.createTextVNode(" Refresh ")])),_:1},8,["onClick"])]),_:1})]),_:1}),e.createVNode(v,{lines:"two",width:"420","max-height":"75vh",class:"overflow-y-auto","data-test":"news-list"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news,(w,D)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`news-${D}`},[o[9]||(o[9]=e.createElementVNode("hr",null,null,-1)),e.createVNode(_,{class:"pl-2"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createElementVNode("span",xe,e.toDisplayString(w.title),1),e.createElementVNode("span",Se,e.toDisplayString(i.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(C,{modelValue:t.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[2]||(o[2]=w=>t.showUpgradeToEnterpriseDialog=w),reason:"Enterprise has individual users with RBAC"},null,8,["modelValue"])])}const P=y._export_sfc(ve,[["render",Te],["__scopeId","data-v-57255d4e"]]),Be={components:{Notifications:F,ScopeSelector:I,UserMenu:P,UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},props:{edition:{type:String,default:""}},data(){return{api:new N.pi,timeZone:"local",subtitle:null,astro:{hideClock:!1},items:[],drawer:!0,appNav:{},logo:"/img/logo.png",initiallyOpen:[],showUpgradeToEnterpriseDialog:!1,chromeless:this.$route.query.chromeless}},computed:{shownTools:function(){let t={};for(let o of Object.keys(this.appNav))this.appNav[o].shown&&this.appNav[o].category!=="Admin"&&(t[o]=this.appNav[o]);return t},adminTools:function(){let t={};for(let o of Object.keys(this.appNav))this.appNav[o].shown&&this.appNav[o].category==="Admin"&&(t[o]=this.appNav[o]);return t},astroTimeZone:function(){return this.timeZone==="local"?Intl.DateTimeFormat().resolvedOptions().timeZone:this.timeZone}},created(){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=>{}),N.li.get("/openc3-api/tools/all",{params:{scope:"DEFAULT"}}).then(t=>{this.appNav=t.data;let o=1;for(let n of Object.keys(this.appNav)){if(this.appNav[n].shown){if(this.appNav[n].category&&this.appNav[n].category!=="Admin"){this.initiallyOpen.includes(this.appNav[n].category)||this.initiallyOpen.push(this.appNav[n].category);const a=this.items.filter(s=>s.name===this.appNav[n].category);a.length===0?(this.items.push({id:o,name:this.appNav[n].category,children:[{id:o+1,name:this.appNav[n].name,icon:this.appNav[n].icon,url:this.appNav[n].url,inline_url:this.appNav[n].inline_url,window:this.appNav[n].window}]}),o++):a[0].children.push({id:o,name:this.appNav[n].name,icon:this.appNav[n].icon,url:this.appNav[n].url,inline_url:this.appNav[n].inline_url,window:this.appNav[n].window})}else this.appNav[n].category||this.items.push({id:o,name:this.appNav[n].name,icon:this.appNav[n].icon,url:this.appNav[n].url,inline_url:this.appNav[n].inline_url,window:this.appNav[n].window});o++}if(this.appNav[n].inline_url&&this.appNav[n].window==="INLINE"&&this.appNav[n].folder_name&&this.appNav[n].folder_name!=="base"){let a=this.appNav[n].folder_name,s="@openc3/tool-"+a;U.registerApplication({name:s,app:()=>System.import(s),activeWhen:["/tools/"+a]})}}U.start({urlRerouteOnly:!0}),setInterval(()=>{OpenC3Auth.updateToken(120).then(function(n){n&&OpenC3Auth.setTokens()})},6e4)})},methods:{navigateToUrl:U.navigateToUrl,newTabUrl(t){let o=null;try{t.url[0]=="/"&&t.url[1]!="/"?o=new URL(t.url,window.location.origin):o=new URL(t.url),o.searchParams.set("scope",window.openc3Scope)}catch(n){window.$cosmosNotify.serious({title:`Invalid URL '${t.url}' for tool ${t.name}`,message:n.message}),o.href="/"}return o.href}}},Ee=["src"],Me={style:{"text-align":"center","font-size":"18pt"}},Ue=["href","onClick"],Ae=["href"],Oe=["href","onClick"],Le=["href","onClick"],Fe=["href"],Ie=["href"],Pe=["href"],Re=["href"];function ze(t,o,n,a,s,i){const d=e.resolveComponent("v-btn"),r=e.resolveComponent("v-divider"),c=e.resolveComponent("v-icon"),u=e.resolveComponent("v-treeview"),m=e.resolveComponent("v-navigation-drawer"),g=e.resolveComponent("rux-icon"),p=e.resolveComponent("v-row"),_=e.resolveComponent("v-col"),v=e.resolveComponent("rux-clock"),k=e.resolveComponent("v-spacer"),V=e.resolveComponent("scope-selector"),C=e.resolveComponent("notifications"),w=e.resolveComponent("user-menu"),D=e.resolveComponent("v-app-bar"),x=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",null,[s.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,"model-value":s.drawer,id:"openc3-nav-drawer"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:s.logo,class:"logo",alt:"OpenC3"},null,8,Ee),e.createElementVNode("div",{class:"cosmos",onClick:o[0]||(o[0]=l=>s.showUpgradeToEnterpriseDialog=!0)}," COSMOS "),e.createElementVNode("div",Me,e.toDisplayString(s.subtitle),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.adminTools,(l,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"ma-3"},[e.createVNode(d,{block:"",size:"small",href:l.url,onClick:e.withModifiers(()=>i.navigateToUrl(l.url),["prevent"]),class:"fixcenter",color:"primary"},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode(" Admin Console ")])),_:2},1032,["href","onClick"])]))),128)),e.createVNode(r),e.createVNode(u,{items:s.items,opened:s.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(()=>i.navigateToUrl(l.url),["prevent"])},[e.createVNode(c,{class:"mr-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.icon),1)]),_:2},1024)],8,Ue)):(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,Ae))],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(()=>i.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,Le)):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,Fe)):l.window==="SAME"?(e.openBlock(),e.createElementBlock("a",{key:2,href:l.url},e.toDisplayString(l.name),9,Ie)):(e.openBlock(),e.createElementBlock("a",{key:3,href:l.url,target:"_blank"},e.toDisplayString(l.name),9,Pe))],64)):(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>i.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,Oe))]),append:e.withCtx(({item:l})=>[l.icon?(e.openBlock(),e.createElementBlock("a",{key:0,href:i.newTabUrl(l),target:"_blank"},[e.createVNode(c,null,{default:e.withCtx(()=>o[4]||(o[4]=[e.createTextVNode("mdi-open-in-new")])),_:1})],8,Re)):e.createCommentVNode("",!0)]),_:1},8,["items","opened"])]),_:1},8,["model-value"])),s.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D,{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(g,{class:"ml-3 mr-2 pa-2",size:"small",icon:"apps",onClick:o[1]||(o[1]=l=>s.drawer=!s.drawer)}),o[5]||(o[5]=e.createElementVNode("span",{id:"openc3-menu"},null,-1))]),_:1})]),_:1}),e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(p,{class:"clock flex-nowrap mt-0"},{default:e.withCtx(()=>[s.astro.hideClock?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,"date-in":"",timezone:i.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,{class:"mr-6 mt-4"}),e.createVNode(C,{class:"mr-6","data-test":"notifications"}),e.createVNode(w,{class:"mr-6"})]),_:1})]),_:1})]),_:1})]),_:1})),e.createVNode(x,{modelValue:s.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[2]||(o[2]=l=>s.showUpgradeToEnterpriseDialog=l),reason:"Enterprise adds Calendar and Autonomic"},null,8,["modelValue"])])}const He=y._export_sfc(Be,[["render",ze],["__scopeId","data-v-9ca3d95a"]]),Xe={data:function(){return{classification:{text:"",fontColor:"white",backgroundColor:"red",topHeight:0,bottomHeight:0}}},computed:{classificationStyles:function(){return[`--classification-text:"${this.classification.text}";`,`--classification-font-color:${this.classification.fontColor};`,`--classification-background-color:${this.classification.backgroundColor};`,`--classification-height-top:${this.classification.topHeight}px;`,`--classification-height-bottom:${this.classification.bottomHeight}px;`].join("")}},created:function(){new N.pi().get_setting("classification_banner").then(o=>{o&&(this.classification=JSON.parse(o))}).catch(o=>{})}},Ye={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(){N.li.get("/openc3-api/auth/token-exists",this.options).then(t=>{this.isSet=!!t.data.result,this.isSet||(this.reset=!0)})},mounted:function(){localStorage.openc3Token&&this.verifyPassword(localStorage.openc3Token,!0)},methods:{showReset:function(){this.reset=!0},login:function(t){localStorage.openc3Token=t.data;const o=new URLSearchParams(window.location.search).get("redirect");o!=null&&o.startsWith("/tools/")?window.location=decodeURI(o):window.location="/"},verifyPassword:function(t,o){t||(t=this.password),this.showAlert=!1,N.li.post("/openc3-api/auth/verify",{data:{token:t},...this.options}).then(n=>{this.login(n)}).catch(n=>{(n==null?void 0:n.status)===401?this.alert="Incorrect password":this.alert=n.message||"Something went wrong...",this.alertType="warning",this.showAlert=!o})},setPassword:function(){this.showAlert=!1,N.li.post("/openc3-api/auth/set",{data:{old_token:this.oldPassword,token:this.password},...this.options}).then(t=>{this.login(t)}).catch(t=>{this.alert=`Invalid password: ${t.response.data.message}`,this.alertType="warning",this.showAlert=!0})}}};function je(t,o,n,a,s,i){const d=e.resolveComponent("v-card-title"),r=e.resolveComponent("v-card-subtitle"),c=e.resolveComponent("v-text-field"),u=e.resolveComponent("v-btn"),m=e.resolveComponent("v-spacer"),g=e.resolveComponent("v-row"),p=e.resolveComponent("v-container"),_=e.resolveComponent("v-form"),v=e.resolveComponent("v-card-text"),k=e.resolveComponent("v-alert"),V=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(V,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>o[5]||(o[5]=[e.createTextVNode(" Login ")])),_:1}),e.createVNode(r,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.isSet?"Enter the":"Create a")+" password to begin using OpenC3 ",1)]),_:1}),e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(_,null,{default:e.withCtx(()=>[s.isSet&&s.reset?(e.openBlock(),e.createBlock(c,{key:0,modelValue:s.oldPassword,"onUpdate:modelValue":o[0]||(o[0]=C=>s.oldPassword=C),type:"password",label:"Old Password"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(c,{modelValue:s.password,"onUpdate:modelValue":o[1]||(o[1]=C=>s.password=C),type:"password",label:`${!s.isSet||s.reset?"New ":""}Password`,"data-test":"new-password"},null,8,["modelValue","label"]),s.reset?(e.openBlock(),e.createBlock(c,{key:1,modelValue:s.confirmPassword,"onUpdate:modelValue":o[2]||(o[2]=C=>s.confirmPassword=C),rules:[i.rules.matchPassword],type:"password",label:"Confirm Password","data-test":"confirm-password"},null,8,["modelValue","rules"])):e.createCommentVNode("",!0),s.reset?(e.openBlock(),e.createBlock(u,{key:2,type:"submit",onClick:e.withModifiers(i.setPassword,["prevent"]),size:"large",color:s.isSet?"warn":"success",disabled:!i.formValid,"data-test":"set-password"},{default:e.withCtx(()=>o[6]||(o[6]=[e.createTextVNode(" Set ")])),_:1},8,["onClick","color","disabled"])):(e.openBlock(),e.createBlock(p,{key:3},{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(u,{type:"submit",onClick:o[3]||(o[3]=e.withModifiers(()=>i.verifyPassword(),["prevent"])),size:"large",color:"success",disabled:!i.formValid},{default:e.withCtx(()=>o[7]||(o[7]=[e.createTextVNode(" Login ")])),_:1},8,["disabled"]),e.createVNode(m),e.createVNode(u,{variant:"text",size:"small",onClick:i.showReset},{default:e.withCtx(()=>o[8]||(o[8]=[e.createTextVNode(" Change Password ")])),_:1},8,["onClick"])]),_:1})]),_:1}))]),_:1})]),_:1}),e.createVNode(k,{type:s.alertType,modelValue:s.showAlert,"onUpdate:modelValue":o[4]||(o[4]=C=>s.showAlert=C),closable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.alert),1)]),_:1},8,["type","modelValue"])]),_:1})}const qe=y._export_sfc(Ye,[["render",je]]),Ze=3e3,We={data:function(){return{dismissed:!1,suppress:!1,discrepancy:0}},created:function(){this.suppress=localStorage.suppresswarning__clock_out_of_sync_with_server==="true",this.suppress||Y.axios.get("/openc3-api/time").then(t=>{this.discrepancy=t.data.now_nsec/1e6-Date.now()}).catch(t=>{this.dismissed=!0})},methods:{dismiss:function(){localStorage.suppresswarning__clock_out_of_sync_with_server=this.suppress,this.dismissed=!0}},computed:{approximateDiscrepancySec:function(){return(this.discrepancy/1e3).toFixed()},dialog:function(){return!this.dismissed&&Math.abs(this.discrepancy)>=Ze}}};function $e(t,o,n,a,s,i){const d=e.resolveComponent("v-card-title"),r=e.resolveComponent("v-checkbox"),c=e.resolveComponent("v-card-text"),u=e.resolveComponent("v-divider"),m=e.resolveComponent("v-btn"),g=e.resolveComponent("v-card-actions"),p=e.resolveComponent("v-card"),_=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(_,{modelValue:i.dialog,"onUpdate:modelValue":o[1]||(o[1]=v=>i.dialog=v),width:"500"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" Clock out of sync ")])),_:1}),e.createVNode(c,null,{default:e.withCtx(()=>[e.createTextVNode(" We've detected that your clock is approximately "+e.toDisplayString(Math.abs(i.approximateDiscrepancySec))+" seconds "+e.toDisplayString(i.approximateDiscrepancySec>0?"behind":"ahead of")+" server time. This can cause issues and might have unknown side effects. ",1),e.createVNode(r,{modelValue:t.suppress,"onUpdate:modelValue":o[0]||(o[0]=v=>t.suppress=v),label:"Don't show this again"},null,8,["modelValue"])]),_:1}),e.createVNode(u),e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(m,{color:"primary",variant:"text",onClick:i.dismiss},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode(" Dismiss ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Je=y._export_sfc(We,[["render",$e]]);exports.AppFooter=ce;exports.AppNav=He;exports.ClassificationBanners=Xe;exports.ClockFooter=L;exports.Login=qe;exports.Notifications=F;exports.ScopeSelector=I;exports.TimeCheck=Je;exports.UserMenu=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B98GsSQS.cjs"),e=require("vue"),y=require("../CustomIcon-Bop2mEnu.cjs"),U=require("single-spa"),B=require("../UpgradeToEnterpriseDialog-1fVtqbze.cjs"),h=require("../format-B22VpiOS.cjs"),S=require("../icons.cjs"),X=require("../AstroStatus-CILMWL6F.cjs"),Y=require("../index-DcL65Mqb.cjs");function T(t,o){const n=+h.toDate(t)-+h.toDate(o);return n<0?-1:n>0?1:n}function j(t){return h.constructFrom(t,Date.now())}function q(t,o,n){const[a,s]=h.normalizeDates(n==null?void 0:n.in,t,o),i=a.getFullYear()-s.getFullYear(),d=a.getMonth()-s.getMonth();return i*12+d}function Z(t){return o=>{const a=(t?Math[t]:Math.trunc)(o);return a===0?0:a}}function W(t,o){return+h.toDate(t)-+h.toDate(o)}function $(t,o){const n=h.toDate(t,o==null?void 0:o.in);return n.setHours(23,59,59,999),n}function J(t,o){const n=h.toDate(t,o==null?void 0:o.in),a=n.getMonth();return n.setFullYear(n.getFullYear(),a+1,0),n.setHours(23,59,59,999),n}function G(t,o){const n=h.toDate(t,o==null?void 0:o.in);return+$(n,o)==+J(n,o)}function K(t,o,n){const[a,s,i]=h.normalizeDates(n==null?void 0:n.in,t,t,o),d=T(s,i),r=Math.abs(q(s,i));if(r<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-d*r);let c=T(s,i)===-d;G(a)&&r===1&&T(a,i)===1&&(c=!1);const u=d*(r-+c);return u===0?0:u}function Q(t,o,n){const a=W(t,o)/1e3;return Z(n==null?void 0:n.roundingMethod)(a)}function ee(t,o,n){const a=h.getDefaultOptions(),s=(n==null?void 0:n.locale)??a.locale??h.enUS,i=2520,d=T(t,o);if(isNaN(d))throw new RangeError("Invalid time value");const r=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:d}),[c,u]=h.normalizeDates(n==null?void 0:n.in,...d>0?[o,t]:[t,o]),m=Q(u,c),g=(h.getTimezoneOffsetInMilliseconds(u)-h.getTimezoneOffsetInMilliseconds(c))/1e3,p=Math.round((m-g)/60);let _;if(p<2)return n!=null&&n.includeSeconds?m<5?s.formatDistance("lessThanXSeconds",5,r):m<10?s.formatDistance("lessThanXSeconds",10,r):m<20?s.formatDistance("lessThanXSeconds",20,r):m<40?s.formatDistance("halfAMinute",0,r):m<60?s.formatDistance("lessThanXMinutes",1,r):s.formatDistance("xMinutes",1,r):p===0?s.formatDistance("lessThanXMinutes",1,r):s.formatDistance("xMinutes",p,r);if(p<45)return s.formatDistance("xMinutes",p,r);if(p<90)return s.formatDistance("aboutXHours",1,r);if(p<h.minutesInDay){const v=Math.round(p/60);return s.formatDistance("aboutXHours",v,r)}else{if(p<i)return s.formatDistance("xDays",1,r);if(p<h.minutesInMonth){const v=Math.round(p/h.minutesInDay);return s.formatDistance("xDays",v,r)}else if(p<h.minutesInMonth*2)return _=Math.round(p/h.minutesInMonth),s.formatDistance("aboutXMonths",_,r)}if(_=K(u,c),_<12){const v=Math.round(p/h.minutesInMonth);return s.formatDistance("xMonths",v,r)}else{const v=_%12,k=Math.trunc(_/12);return v<3?s.formatDistance("aboutXYears",k,r):v<9?s.formatDistance("overXYears",k,r):s.formatDistance("almostXYears",k+1,r)}}function te(t,o){return ee(t,j(t),o)}const oe={data:function(){return{localDate:new Date,displayLocal:localStorage.clock_zone==="local",display24h:!localStorage.clock_12h,dateMode:localStorage.clock_dateMode||"monthFirst",intervalCount:0,showMenu:!1,menuX:0,menuY:0}},computed:{utcDate:function(){return new Date(this.localDate.getTime()+this.localDate.getTimezoneOffset()*6e4)},formatString:function(){let t;switch(this.dateMode){case"monthFirst":t="LL/dd/yyy";break;case"dayFirst":t="dd/LL/yyy";break;case"number":t="D";break}let o;return this.display24h?o="HH:mm:ss":o="hh:mm:ss a",`${t} ${o}`}},watch:{displayLocal:function(t){localStorage.clock_zone=t?"local":"utc"},display24h:function(t){t?delete localStorage.clock_12h:localStorage.clock_12h=!0},dateMode:function(t){t.match(/^monthFirst$|^dayFirst$|^number$/)&&(localStorage.clock_dateMode=t)}},created:function(){setInterval(()=>{this.intervalCount++,this.localDate=new Date},this.intervalCount<10?100:1e3)},methods:{openMenu:function(t){t.preventDefault(),this.showMenu=!1,this.menuX=t.clientX,this.menuY=t.clientY,this.$nextTick(()=>{this.showMenu=!0})},toggleDisplayLocal:function(){this.displayLocal=!this.displayLocal},toggleDisplay24h:function(){this.display24h=!this.display24h},setMonthFirst:function(){this.dateMode="monthFirst"},setDayFirst:function(){this.dateMode="dayFirst"},setNumber:function(){this.dateMode="number"},formatDate:function(t,o){return h.format(t,o,{useAdditionalDayOfYearTokens:!0})}}};function ne(t,o,n,a,s,i){const d=e.resolveComponent("v-list-item-title"),r=e.resolveComponent("v-list-item"),c=e.resolveComponent("v-divider"),u=e.resolveComponent("v-list"),m=e.resolveComponent("v-menu");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("span",{style:{cursor:"context-menu"},class:"font-weight-bold",onContextmenu:o[0]||(o[0]=(...g)=>i.openMenu&&i.openMenu(...g))},e.toDisplayString(i.formatDate(t.displayLocal?t.localDate:i.utcDate,i.formatString))+" ("+e.toDisplayString(t.displayLocal?"local":"UTC")+") ",33),e.createVNode(m,{modelValue:t.showMenu,"onUpdate:modelValue":o[1]||(o[1]=g=>t.showMenu=g),target:[t.menuX,t.menuY]},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.toggleDisplayLocal},{default:e.withCtx(()=>[e.createTextVNode(" Display "+e.toDisplayString(t.displayLocal?"UTC":"local time"),1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.toggleDisplay24h},{default:e.withCtx(()=>[e.createTextVNode(" Display "+e.toDisplayString(t.display24h?12:24)+" hour clock ",1)]),_:1},8,["onClick"])]),_:1}),e.createVNode(c),t.dateMode!=="monthFirst"?(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.setMonthFirst},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" Display mm/dd/yyyy ")])),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),t.dateMode!=="dayFirst"?(e.openBlock(),e.createBlock(r,{key:1},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.setDayFirst},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode(" Display dd/mm/yyyy ")])),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0),t.dateMode!=="number"?(e.openBlock(),e.createBlock(r,{key:2},{default:e.withCtx(()=>[e.createVNode(d,{style:{cursor:"pointer"},onClick:i.setNumber},{default:e.withCtx(()=>o[4]||(o[4]=[e.createTextVNode(" Display day of year ")])),_:1},8,["onClick"])]),_:1})):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["modelValue","target"])])}const L=y._export_sfc(oe,[["render",ne]]),se={components:{ClockFooter:L,UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},data(){return{icon:"/img/icon.png",edition:"",enterprise:!1,license:"",sourceUrl:"",version:"",showUpgradeToEnterpriseDialog:!1,chromeless:this.$route.query.chromeless}},computed:{footerClass(){return this.enterprise?"enterprise":"core"}},created:function(){this.getSourceUrl(),N.li.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 N.pi().get_settings(["source_url"]).then(t=>{this.sourceUrl=t[0]})},upgrade:function(){this.enterprise||(this.showUpgradeToEnterpriseDialog=!0)}}},ie=["src"],ae=["href"],re={class:"justify-right"};function le(t,o,n,a,s,i){const d=e.resolveComponent("v-spacer"),r=e.resolveComponent("clock-footer"),c=e.resolveComponent("upgrade-to-enterprise-dialog"),u=e.resolveComponent("v-footer");return s.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u,{key:0,id:"footer",app:"",height:"33"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:s.icon,alt:"OpenC3"},null,8,ie),e.createElementVNode("span",{class:e.normalizeClass(i.footerClass),onClick:o[0]||(o[0]=(...m)=>i.upgrade&&i.upgrade(...m))}," OpenC3 "+e.toDisplayString(s.edition)+" "+e.toDisplayString(s.version)+" © 2025 - License: "+e.toDisplayString(s.license),3),e.createVNode(d),e.createElementVNode("a",{href:s.sourceUrl,class:"text-white text-decoration-underline"}," Source ",8,ae),e.createVNode(d),e.createElementVNode("div",re,[e.createVNode(r)]),e.createVNode(c,{modelValue:s.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[1]||(o[1]=m=>s.showUpgradeToEnterpriseDialog=m),reason:"Enterprise is Commercially Licensed"},null,8,["modelValue"])]),_:1}))}const ce=y._export_sfc(se,[["render",le],["__scopeId","data-v-e5a3338e"]]),b=1e3,{highestLevel:de,orderByLevel:ue,groupByLevel:pe}=X.AstroStatus,me={components:{AstroStatusIndicator:S.AstroStatusIndicator},props:{size:{type:[String,Number],default:26}},data:function(){return{AstroStatusColors:S.AstroStatusColors,alerts:[],cable:new N.di,scriptCable:new N.di("/script-api/cable"),subscription:null,scriptSubscription:null,numScripts:0,notifications:[],showNotificationPane:!1,toastNotification:{},notificationDialog:!1,selectedNotification:{},settingsDialog:!1,showToast:!0}},computed:{activeScripts:function(){return`Scripts: ${this.numScripts}`},notificationVsAlert:function(){return"notifications"},iconStatus:function(){if(this.unreadNotifications.length===0)return"off";const t=this.unreadNotifications.map(o=>o.level).filter((o,n,a)=>a.indexOf(o)===n);return S.UnknownToAstroStatus[de(t)]},readNotifications:function(){return this.notifications.filter(t=>t.read).sort((t,o)=>o.time-t.time)},unreadNotifications:function(){return this.notifications.filter(t=>!t.read).sort((t,o)=>o.time-t.time)},unreadCount:function(){return this.unreadNotifications.length},notificationList:function(){const t=pe(this.unreadNotifications);let o=ue(Object.keys(t),n=>n).flatMap(n=>[{header:n.charAt(0).toUpperCase()+n.slice(1)},...t[n]]);return this.readNotifications.length&&(o=o.concat([{header:"Read"},...this.readNotifications])),o}},watch:{showNotificationPane:function(t){t||(this.selectedNotification.message?(this.notificationDialog=!1,this.selectedNotification={}):this.markAllAsRead())},showToast:function(t){localStorage.notoast=!t}},created:function(){this.showToast=localStorage.notoast==="false",this.subscribe(),this.alerts=this.$store.state.notifyHistory,N.li.get("/script-api/running-script").then(t=>{this.numScripts=t.data.total})},unmounted:function(){this.subscription&&this.subscription.unsubscribe(),this.scriptSubscription&&this.scriptSubscription.unsubscribe(),this.cable.disconnect(),this.scriptCable.disconnect()},methods:{getStatus:function(t){return S.UnknownToAstroStatus[t]},markAllAsRead:function(){this.notifications.forEach(t=>{t.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<t.msg_id)&&(localStorage.lastReadNotification=t.msg_id)})},clearNotifications:function(){this.markAllAsRead(),this.notifications=[],localStorage.notificationStreamOffset=localStorage.lastReadNotification,this.showNotificationPane=!1},toggleNotificationPane:function(){this.showNotificationPane=!this.showNotificationPane},toggleSettingsDialog:function(){this.settingsDialog=!this.settingsDialog},openDialog:function(t,o=!1){t.read=!0,(!localStorage.lastReadNotification||localStorage.lastReadNotification<t.msg_id)&&(localStorage.lastReadNotification=t.msg_id),this.selectedNotification=t,this.notificationDialog=!0},navigate:function(t){window.open(t,"_blank")},subscribe:function(){this.cable.createSubscription("MessagesChannel",window.openc3Scope,{received:t=>this.receiveMessage(t)},{start_offset:localStorage.notificationStreamOffset||localStorage.lastReadNotification,types:["notification","alert","ephemeral"]}).then(t=>{this.subscription=t}),this.scriptCable.createSubscription("AllScriptsChannel",window.openc3Scope,{received:t=>this.receiveScript(t)}).then(t=>{this.scriptSubscription=t})},receiveMessage:function(t){this.cable.recordPing(),t.length>b&&t.splice(0,t.length-b);let o=t.filter(a=>a.type==="ephemeral");o&&o.length>0&&(t=t.filter(a=>a.type!=="ephemeral"),o.forEach(a=>{this.$emit("ephemeral",a)}));let n=!1;if(t.forEach(a=>{a.read=a.msg_id<=localStorage.lastReadNotification,a.level=a.level||"INFO",!a.read&&["FATAL","ERROR","WARN"].includes(a.level)&&(n=!0,this.toastNotification=a)}),this.showToast&&n){let a=5e3;["FATAL","ERROR"].includes(this.toastNotification.level)&&(a=null),this.$notify&&this.$notify[this.toastNotification.level]({...this.toastNotification,type:"notification",duration:a,saveToHistory:!1})}this.notifications.length+t.length>b&&this.notifications.splice(0,this.notifications.length+t.length-b),this.notifications=this.notifications.concat(t)},receiveScript:function(t){this.cable.recordPing(),this.numScripts=t.active_scripts},formatShortDateTime:function(t){if(!t)return"";const o=new Date(t/1e6);return te(o,{addSuffix:!0})}}};function fe(t,o,n,a,s,i){const d=e.resolveComponent("v-overlay"),r=e.resolveComponent("rux-monitoring-icon"),c=e.resolveComponent("v-spacer"),u=e.resolveComponent("v-btn"),m=e.resolveComponent("v-tooltip"),g=e.resolveComponent("v-card-title"),p=e.resolveComponent("v-card-text"),_=e.resolveComponent("v-divider"),v=e.resolveComponent("v-list-subheader"),k=e.resolveComponent("rux-status"),V=e.resolveComponent("v-list-item-title"),C=e.resolveComponent("v-list-item-subtitle"),w=e.resolveComponent("v-list-item"),D=e.resolveComponent("v-list"),x=e.resolveComponent("v-card"),l=e.resolveComponent("v-menu"),E=e.resolveComponent("astro-status-indicator"),R=e.resolveComponent("v-card-subtitle"),z=e.resolveComponent("v-icon"),A=e.resolveComponent("v-card-actions"),O=e.resolveComponent("v-dialog"),H=e.resolveComponent("v-switch");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(d,{"model-value":t.showNotificationPane,class:"overlay"},null,8,["model-value"]),e.createVNode(l,{modelValue:t.showNotificationPane,"onUpdate:modelValue":o[0]||(o[0]=f=>t.showNotificationPane=f),transition:"slide-y-transition","close-on-content-click":!1,offset:[12,102]},{activator:e.withCtx(({props:f})=>[e.createVNode(r,e.mergeProps(f,{class:"rux-icon",icon:i.notificationVsAlert,label:"Notifications",sublabel:i.activeScripts,status:i.iconStatus,notifications:i.unreadNotifications.length}),null,16,["icon","sublabel","status","notifications"])]),default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(g,{class:"d-flex align-center justify-content-space-between"},{default:e.withCtx(()=>[o[7]||(o[7]=e.createElementVNode("span",null," Notifications ",-1)),e.createVNode(c),e.createVNode(m,{"open-delay":600,location:"top"},{activator:e.withCtx(({props:f})=>[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(f)),[e.createVNode(u,{class:"ml-1",icon:"mdi-notification-clear-all ",variant:"text","data-test":"clear-notifications","aria-label":"Dismiss All Notifications",onClick:i.clearNotifications},null,8,["onClick"])],16)]),default:e.withCtx(()=>[o[6]||(o[6]=e.createElementVNode("span",null," Dismiss All Notifications ",-1))]),_:1}),e.createVNode(u,{icon:"astro:settings",variant:"text",class:"ml-1","data-test":"notification-settings","aria-label":"Notification Settings",onClick:i.toggleSettingsDialog},null,8,["onClick"])]),_:1}),t.notifications.length===0?(e.openBlock(),e.createBlock(p,{key:0},{default:e.withCtx(()=>o[8]||(o[8]=[e.createTextVNode(" No notifications ")])),_:1})):(e.openBlock(),e.createBlock(D,{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(i.notificationList,(f,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f.header?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[M!==0?(e.openBlock(),e.createBlock(_,{key:M,class:"mb-2"})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(v,{key:f.header},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.header),1)]),_:2},1024))],64)):(e.openBlock(),e.createBlock(w,{key:`notification-${M}`,class:"pl-2",onClick:Ge=>i.openDialog(f)},{prepend:e.withCtx(()=>[e.createVNode(k,{class:"px-2",status:i.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(C,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.formatShortDateTime(f.time)),1)]),_:2},1024)]),_:2},1032,["onClick"]))],64))),256))]),_:1}))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(O,{modelValue:t.notificationDialog,"onUpdate:modelValue":o[3]||(o[3]=f=>t.notificationDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.selectedNotification.message)+" ",1),e.createVNode(c),e.createVNode(E,{status:t.selectedNotification.level||"INFO"},null,8,["status"])]),_:1}),e.createVNode(R,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.formatShortDateTime(t.selectedNotification.time)),1)]),_:1}),e.createVNode(_),e.createVNode(A,null,{default:e.withCtx(()=>[t.selectedNotification.url?(e.openBlock(),e.createBlock(u,{key:0,color:"primary",variant:"text",onClick:o[1]||(o[1]=f=>i.navigate(t.selectedNotification.url))},{default:e.withCtx(()=>[o[10]||(o[10]=e.createTextVNode(" Open ")),e.createVNode(z,{end:""},{default:e.withCtx(()=>o[9]||(o[9]=[e.createTextVNode(" mdi-open-in-new ")])),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(u,{color:"primary",variant:"text",onClick:o[2]||(o[2]=f=>t.notificationDialog=!1)},{default:e.withCtx(()=>o[11]||(o[11]=[e.createTextVNode(" Close ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),e.createVNode(O,{modelValue:t.settingsDialog,"onUpdate:modelValue":o[5]||(o[5]=f=>t.settingsDialog=f),width:"600"},{default:e.withCtx(()=>[e.createVNode(x,null,{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>o[12]||(o[12]=[e.createTextVNode(" Notification settings ")])),_:1}),e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(H,{modelValue:t.showToast,"onUpdate:modelValue":o[4]||(o[4]=f=>t.showToast=f),label:"Show toasts",color:"primary"},null,8,["modelValue"])]),_:1}),e.createVNode(_),e.createVNode(A,null,{default:e.withCtx(()=>[e.createVNode(u,{color:"primary",variant:"text",onClick:i.toggleSettingsDialog},{default:e.withCtx(()=>o[13]||(o[13]=[e.createTextVNode(" Close ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const F=y._export_sfc(me,[["render",fe],["__scopeId","data-v-0d6257f1"]]),he={components:{UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},data:function(){return{scopes:["DEFAULT"],scope:"DEFAULT",showUpgradeToEnterpriseDialog:!1}}};function _e(t,o,n,a,s,i){const d=e.resolveComponent("v-select"),r=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",{style:{cursor:"pointer"},onClick:o[2]||(o[2]=c=>t.showUpgradeToEnterpriseDialog=!0)},[e.createVNode(d,{modelValue:t.scope,"onUpdate:modelValue":o[0]||(o[0]=c=>t.scope=c),items:t.scopes,disabled:t.scopes.length<=1,label:"Scope",density:"compact",variant:"outlined","hide-details":"",style:{"max-width":"150px"}},null,8,["modelValue","items","disabled"]),e.createVNode(r,{modelValue:t.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[1]||(o[1]=c=>t.showUpgradeToEnterpriseDialog=c),reason:"Enterprise allows additional Scopes"},null,8,["modelValue"])])}const I=y._export_sfc(he,[["render",_e]]),ve={components:{UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},props:{size:{type:[String,Number],default:26}},data:function(){let t=OpenC3Auth.user();return{api:new N.pi,showUserMenu:!1,authenticated:!!localStorage.openc3Token,name:t.name,username:t.preferred_username,showUpgradeToEnterpriseDialog:!1,activeUsers:["None"],newsFeed:!1,news:[]}},computed:{unreadNews:function(){return this.news.filter(t=>!t.read)}},watch:{showUserMenu:function(t,o){t===!0&&(this.news.length>0&&(this.news.forEach(n=>{n.read=!0}),localStorage.lastNewsRead=this.news[0].date),this.name!=="Anonymous"&&N.li.get("/openc3-api/users/active").then(n=>{this.activeUsers=n.data.filter(a=>!a.includes(this.name)),this.activeUsers.length===0&&(this.activeUsers=["None"])}))}},created:function(){this.api.get_setting("news_feed").then(t=>{t&&(this.newsFeed=t,this.newsFeed&&(this.fetchNews(),setInterval(this.fetchNews,60*60*1e3)))}).catch(t=>{})},methods:{refreshNews(){this.api.update_news().then(()=>{this.fetchNews()})},formatDate(t){return t.split("T")[0]},fetchNews:function(){N.li.get("/openc3-api/news").then(t=>{this.news=t.data.sort((o,n)=>Date.parse(n.date)-Date.parse(o.date)),localStorage.lastNewsRead&&this.news.forEach(o=>{o.read=Date.parse(o.date)<=Date.parse(localStorage.lastNewsRead)})})},logout:function(){OpenC3Auth.logout(),N.li.put(`/openc3-api/users/logout/${this.username}`)},login:function(){OpenC3Auth.login(location.href)},roles:function(){return this.name==="Anonymous"?"Admin":OpenC3Auth.userroles().map(t=>this.capitalize(t)).sort().join(", ")},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}},ge={style:{"text-align":"center",margin:"5px"}},we={key:0},Ne={class:"roles"},Ce={class:"pb-3 roles"},ke={key:1},ye={key:0,class:"pa-3"},Ve={key:2},De={key:0},xe={class:"news-title"},Se={class:"news-date"},be=["innerHTML"];function Te(t,o,n,a,s,i){const d=e.resolveComponent("v-overlay"),r=e.resolveComponent("rux-monitoring-icon"),c=e.resolveComponent("v-btn"),u=e.resolveComponent("v-row"),m=e.resolveComponent("v-card-text"),g=e.resolveComponent("v-col"),p=e.resolveComponent("v-list-item-title"),_=e.resolveComponent("v-list-item"),v=e.resolveComponent("v-list"),k=e.resolveComponent("v-card"),V=e.resolveComponent("v-menu"),C=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(d,{"model-value":t.showUserMenu,class:"overlay"},null,8,["model-value"]),e.createVNode(V,{modelValue:t.showUserMenu,"onUpdate:modelValue":o[1]||(o[1]=w=>t.showUserMenu=w),transition:"slide-y-transition","close-on-content-click":!1,offset:20},{activator:e.withCtx(({props:w})=>[e.createVNode(r,e.mergeProps(w,{class:"rux-icon",icon:"person",status:"off",label:t.name,sublabel:i.roles(),notifications:i.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",ge,e.toDisplayString(t.name),1),t.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",Ne,"Username: "+e.toDisplayString(t.username),1),e.createElementVNode("div",Ce,"Roles: "+e.toDisplayString(i.roles()),1)])):e.createCommentVNode("",!0),t.authenticated?(e.openBlock(),e.createElementBlock("div",ke,[e.createVNode(c,{block:"",color:"primary",onClick:i.logout},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode(" Logout ")])),_:1},8,["onClick"]),t.name!=="Anonymous"?(e.openBlock(),e.createElementBlock("div",ye,[e.createVNode(u,{class:"pt-3 user-title"},{default:e.withCtx(()=>o[4]||(o[4]=[e.createTextVNode("Other Active Users:")])),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.activeUsers,(w,D)=>(e.openBlock(),e.createBlock(u,{key:D,class:"user"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w),1)]),_:2},1024))),128))])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(c,{block:"",color:"primary",onClick:i.login},{default:e.withCtx(()=>o[5]||(o[5]=[e.createTextVNode(" Login ")])),_:1},8,["onClick"])])),t.name==="Anonymous"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"pt-2 link",onClick:o[0]||(o[0]=w=>t.showUpgradeToEnterpriseDialog=!0)},o[6]||(o[6]=[e.createTextVNode(" Click to learn more about"),e.createElementVNode("br",null,null,-1),e.createTextVNode(" COSMOS Enterprise ")]))):e.createCommentVNode("",!0)]),_:1}),t.newsFeed?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(u,{"no-gutters":"",class:"news-header"},{default:e.withCtx(()=>[e.createVNode(g,{cols:"auto",class:"me-auto"},{default:e.withCtx(()=>o[7]||(o[7]=[e.createTextVNode("COSMOS News")])),_:1}),e.createVNode(g,{cols:"auto"},{default:e.withCtx(()=>[e.createVNode(c,{color:"primary",density:"compact",block:"",onClick:i.refreshNews},{default:e.withCtx(()=>o[8]||(o[8]=[e.createTextVNode(" Refresh ")])),_:1},8,["onClick"])]),_:1})]),_:1}),e.createVNode(v,{lines:"two",width:"420","max-height":"75vh",class:"overflow-y-auto","data-test":"news-list"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.news,(w,D)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`news-${D}`},[o[9]||(o[9]=e.createElementVNode("hr",null,null,-1)),e.createVNode(_,{class:"pl-2"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createElementVNode("span",xe,e.toDisplayString(w.title),1),e.createElementVNode("span",Se,e.toDisplayString(i.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(C,{modelValue:t.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[2]||(o[2]=w=>t.showUpgradeToEnterpriseDialog=w),reason:"Enterprise has individual users with RBAC"},null,8,["modelValue"])])}const P=y._export_sfc(ve,[["render",Te],["__scopeId","data-v-57255d4e"]]),Be={components:{Notifications:F,ScopeSelector:I,UserMenu:P,UpgradeToEnterpriseDialog:B.UpgradeToEnterpriseDialog},props:{edition:{type:String,default:""}},data(){return{api:new N.pi,timeZone:"local",subtitle:null,astro:{hideClock:!1},items:[],drawer:!0,appNav:{},logo:"/img/logo.png",initiallyOpen:[],showUpgradeToEnterpriseDialog:!1,chromeless:this.$route.query.chromeless}},computed:{shownTools:function(){let t={};for(let o of Object.keys(this.appNav))this.appNav[o].shown&&this.appNav[o].category!=="Admin"&&(t[o]=this.appNav[o]);return t},adminTools:function(){let t={};for(let o of Object.keys(this.appNav))this.appNav[o].shown&&this.appNav[o].category==="Admin"&&(t[o]=this.appNav[o]);return t},astroTimeZone:function(){return this.timeZone==="local"?Intl.DateTimeFormat().resolvedOptions().timeZone:this.timeZone}},created(){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=>{}),N.li.get("/openc3-api/tools/all",{params:{scope:"DEFAULT"}}).then(t=>{this.appNav=t.data;let o=1;for(let n of Object.keys(this.appNav)){if(this.appNav[n].shown){if(this.appNav[n].category&&this.appNav[n].category!=="Admin"){this.initiallyOpen.includes(this.appNav[n].category)||this.initiallyOpen.push(this.appNav[n].category);const a=this.items.filter(s=>s.name===this.appNav[n].category);a.length===0?(this.items.push({id:o,name:this.appNav[n].category,children:[{id:o+1,name:this.appNav[n].name,icon:this.appNav[n].icon,url:this.appNav[n].url,inline_url:this.appNav[n].inline_url,window:this.appNav[n].window}]}),o++):a[0].children.push({id:o,name:this.appNav[n].name,icon:this.appNav[n].icon,url:this.appNav[n].url,inline_url:this.appNav[n].inline_url,window:this.appNav[n].window})}else this.appNav[n].category||this.items.push({id:o,name:this.appNav[n].name,icon:this.appNav[n].icon,url:this.appNav[n].url,inline_url:this.appNav[n].inline_url,window:this.appNav[n].window});o++}if(this.appNav[n].inline_url&&this.appNav[n].window==="INLINE"&&this.appNav[n].folder_name&&this.appNav[n].folder_name!=="base"){let a=this.appNav[n].folder_name,s="@openc3/tool-"+a;U.registerApplication({name:s,app:()=>System.import(s),activeWhen:["/tools/"+a]})}}U.start({urlRerouteOnly:!0}),setInterval(()=>{OpenC3Auth.updateToken(120).then(function(n){n&&OpenC3Auth.setTokens()})},6e4)})},methods:{navigateToUrl:U.navigateToUrl,newTabUrl(t){let o=null;try{t.url[0]=="/"&&t.url[1]!="/"?o=new URL(t.url,window.location.origin):o=new URL(t.url),o.searchParams.set("scope",window.openc3Scope)}catch(n){window.$cosmosNotify.serious({title:`Invalid URL '${t.url}' for tool ${t.name}`,message:n.message}),o.href="/"}return o.href}}},Ee=["src"],Me={style:{"text-align":"center","font-size":"18pt"}},Ue=["href","onClick"],Ae=["href"],Oe=["href","onClick"],Le=["href","onClick"],Fe=["href"],Ie=["href"],Pe=["href"],Re=["href"];function ze(t,o,n,a,s,i){const d=e.resolveComponent("v-btn"),r=e.resolveComponent("v-divider"),c=e.resolveComponent("v-icon"),u=e.resolveComponent("v-treeview"),m=e.resolveComponent("v-navigation-drawer"),g=e.resolveComponent("rux-icon"),p=e.resolveComponent("v-row"),_=e.resolveComponent("v-col"),v=e.resolveComponent("rux-clock"),k=e.resolveComponent("v-spacer"),V=e.resolveComponent("scope-selector"),C=e.resolveComponent("notifications"),w=e.resolveComponent("user-menu"),D=e.resolveComponent("v-app-bar"),x=e.resolveComponent("upgrade-to-enterprise-dialog");return e.openBlock(),e.createElementBlock("div",null,[s.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,"model-value":s.drawer,id:"openc3-nav-drawer"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:s.logo,class:"logo",alt:"OpenC3"},null,8,Ee),e.createElementVNode("div",{class:"cosmos",onClick:o[0]||(o[0]=l=>s.showUpgradeToEnterpriseDialog=!0)}," COSMOS "),e.createElementVNode("div",Me,e.toDisplayString(s.subtitle),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.adminTools,(l,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"ma-3"},[e.createVNode(d,{block:"",size:"small",href:l.url,onClick:e.withModifiers(()=>i.navigateToUrl(l.url),["prevent"]),class:"fixcenter",color:"primary"},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode(" Admin Console ")])),_:2},1032,["href","onClick"])]))),128)),e.createVNode(r),e.createVNode(u,{items:s.items,opened:s.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(()=>i.navigateToUrl(l.url),["prevent"])},[e.createVNode(c,{class:"mr-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.icon),1)]),_:2},1024)],8,Ue)):(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,Ae))],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(()=>i.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,Le)):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,Fe)):l.window==="SAME"?(e.openBlock(),e.createElementBlock("a",{key:2,href:l.url},e.toDisplayString(l.name),9,Ie)):(e.openBlock(),e.createElementBlock("a",{key:3,href:l.url,target:"_blank"},e.toDisplayString(l.name),9,Pe))],64)):(e.openBlock(),e.createElementBlock("a",{key:0,href:l.url,onClick:e.withModifiers(()=>i.navigateToUrl(l.url),["prevent"])},e.toDisplayString(l.name),9,Oe))]),append:e.withCtx(({item:l})=>[l.icon?(e.openBlock(),e.createElementBlock("a",{key:0,href:i.newTabUrl(l),target:"_blank"},[e.createVNode(c,null,{default:e.withCtx(()=>o[4]||(o[4]=[e.createTextVNode("mdi-open-in-new")])),_:1})],8,Re)):e.createCommentVNode("",!0)]),_:1},8,["items","opened"])]),_:1},8,["model-value"])),s.chromeless?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(D,{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(g,{class:"ml-3 mr-2 pa-2",size:"small",icon:"apps",onClick:o[1]||(o[1]=l=>s.drawer=!s.drawer)}),o[5]||(o[5]=e.createElementVNode("span",{id:"openc3-menu"},null,-1))]),_:1})]),_:1}),e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(p,{class:"clock flex-nowrap mt-0"},{default:e.withCtx(()=>[s.astro.hideClock?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v,{key:0,"date-in":"",timezone:i.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,{class:"mr-6 mt-4"}),e.createVNode(C,{class:"mr-6","data-test":"notifications"}),e.createVNode(w,{class:"mr-6"})]),_:1})]),_:1})]),_:1})]),_:1})),e.createVNode(x,{modelValue:s.showUpgradeToEnterpriseDialog,"onUpdate:modelValue":o[2]||(o[2]=l=>s.showUpgradeToEnterpriseDialog=l),reason:"Enterprise adds Calendar and Autonomic"},null,8,["modelValue"])])}const He=y._export_sfc(Be,[["render",ze],["__scopeId","data-v-9ca3d95a"]]),Xe={data:function(){return{classification:{text:"",fontColor:"white",backgroundColor:"red",topHeight:0,bottomHeight:0}}},computed:{classificationStyles:function(){return[`--classification-text:"${this.classification.text}";`,`--classification-font-color:${this.classification.fontColor};`,`--classification-background-color:${this.classification.backgroundColor};`,`--classification-height-top:${this.classification.topHeight}px;`,`--classification-height-bottom:${this.classification.bottomHeight}px;`].join("")}},created:function(){new N.pi().get_setting("classification_banner").then(o=>{o&&(this.classification=JSON.parse(o))}).catch(o=>{})}},Ye={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(){N.li.get("/openc3-api/auth/token-exists",this.options).then(t=>{this.isSet=!!t.data.result,this.isSet||(this.reset=!0)})},mounted:function(){localStorage.openc3Token&&this.verifyPassword(localStorage.openc3Token,!0)},methods:{showReset:function(){this.reset=!0},login:function(t){localStorage.openc3Token=t.data;const o=new URLSearchParams(window.location.search).get("redirect");o!=null&&o.startsWith("/tools/")?window.location=decodeURI(o):window.location="/"},verifyPassword:function(t,o){t||(t=this.password),this.showAlert=!1,N.li.post("/openc3-api/auth/verify",{data:{token:t},...this.options}).then(n=>{this.login(n)}).catch(n=>{(n==null?void 0:n.status)===401?this.alert="Incorrect password":this.alert=n.message||"Something went wrong...",this.alertType="warning",this.showAlert=!o})},setPassword:function(){this.showAlert=!1,N.li.post("/openc3-api/auth/set",{data:{old_token:this.oldPassword,token:this.password},...this.options}).then(t=>{this.login(t)}).catch(t=>{this.alert=`Invalid password: ${t.response.data.message}`,this.alertType="warning",this.showAlert=!0})}}};function je(t,o,n,a,s,i){const d=e.resolveComponent("v-card-title"),r=e.resolveComponent("v-card-subtitle"),c=e.resolveComponent("v-text-field"),u=e.resolveComponent("v-btn"),m=e.resolveComponent("v-spacer"),g=e.resolveComponent("v-row"),p=e.resolveComponent("v-container"),_=e.resolveComponent("v-form"),v=e.resolveComponent("v-card-text"),k=e.resolveComponent("v-alert"),V=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(V,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>o[5]||(o[5]=[e.createTextVNode(" Login ")])),_:1}),e.createVNode(r,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.isSet?"Enter the":"Create a")+" password to begin using OpenC3 ",1)]),_:1}),e.createVNode(v,null,{default:e.withCtx(()=>[e.createVNode(_,null,{default:e.withCtx(()=>[s.isSet&&s.reset?(e.openBlock(),e.createBlock(c,{key:0,modelValue:s.oldPassword,"onUpdate:modelValue":o[0]||(o[0]=C=>s.oldPassword=C),type:"password",label:"Old Password"},null,8,["modelValue"])):e.createCommentVNode("",!0),e.createVNode(c,{modelValue:s.password,"onUpdate:modelValue":o[1]||(o[1]=C=>s.password=C),type:"password",label:`${!s.isSet||s.reset?"New ":""}Password`,"data-test":"new-password"},null,8,["modelValue","label"]),s.reset?(e.openBlock(),e.createBlock(c,{key:1,modelValue:s.confirmPassword,"onUpdate:modelValue":o[2]||(o[2]=C=>s.confirmPassword=C),rules:[i.rules.matchPassword],type:"password",label:"Confirm Password","data-test":"confirm-password"},null,8,["modelValue","rules"])):e.createCommentVNode("",!0),s.reset?(e.openBlock(),e.createBlock(u,{key:2,type:"submit",onClick:e.withModifiers(i.setPassword,["prevent"]),size:"large",color:s.isSet?"warn":"success",disabled:!i.formValid,"data-test":"set-password"},{default:e.withCtx(()=>o[6]||(o[6]=[e.createTextVNode(" Set ")])),_:1},8,["onClick","color","disabled"])):(e.openBlock(),e.createBlock(p,{key:3},{default:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(u,{type:"submit",onClick:o[3]||(o[3]=e.withModifiers(()=>i.verifyPassword(),["prevent"])),size:"large",color:"success",disabled:!i.formValid},{default:e.withCtx(()=>o[7]||(o[7]=[e.createTextVNode(" Login ")])),_:1},8,["disabled"]),e.createVNode(m),e.createVNode(u,{variant:"text",size:"small",onClick:i.showReset},{default:e.withCtx(()=>o[8]||(o[8]=[e.createTextVNode(" Change Password ")])),_:1},8,["onClick"])]),_:1})]),_:1}))]),_:1})]),_:1}),e.createVNode(k,{type:s.alertType,modelValue:s.showAlert,"onUpdate:modelValue":o[4]||(o[4]=C=>s.showAlert=C),closable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.alert),1)]),_:1},8,["type","modelValue"])]),_:1})}const qe=y._export_sfc(Ye,[["render",je]]),Ze=3e3,We={data:function(){return{dismissed:!1,suppress:!1,discrepancy:0}},created:function(){this.suppress=localStorage.suppresswarning__clock_out_of_sync_with_server==="true",this.suppress||Y.axios.get("/openc3-api/time").then(t=>{this.discrepancy=t.data.now_nsec/1e6-Date.now()}).catch(t=>{this.dismissed=!0})},methods:{dismiss:function(){localStorage.suppresswarning__clock_out_of_sync_with_server=this.suppress,this.dismissed=!0}},computed:{approximateDiscrepancySec:function(){return(this.discrepancy/1e3).toFixed()},dialog:function(){return!this.dismissed&&Math.abs(this.discrepancy)>=Ze}}};function $e(t,o,n,a,s,i){const d=e.resolveComponent("v-card-title"),r=e.resolveComponent("v-checkbox"),c=e.resolveComponent("v-card-text"),u=e.resolveComponent("v-divider"),m=e.resolveComponent("v-btn"),g=e.resolveComponent("v-card-actions"),p=e.resolveComponent("v-card"),_=e.resolveComponent("v-dialog");return e.openBlock(),e.createBlock(_,{modelValue:i.dialog,"onUpdate:modelValue":o[1]||(o[1]=v=>i.dialog=v),width:"500"},{default:e.withCtx(()=>[e.createVNode(p,null,{default:e.withCtx(()=>[e.createVNode(d,null,{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" Clock out of sync ")])),_:1}),e.createVNode(c,null,{default:e.withCtx(()=>[e.createTextVNode(" We've detected that your clock is approximately "+e.toDisplayString(Math.abs(i.approximateDiscrepancySec))+" seconds "+e.toDisplayString(i.approximateDiscrepancySec>0?"behind":"ahead of")+" server time. This can cause issues and might have unknown side effects. ",1),e.createVNode(r,{modelValue:t.suppress,"onUpdate:modelValue":o[0]||(o[0]=v=>t.suppress=v),label:"Don't show this again"},null,8,["modelValue"])]),_:1}),e.createVNode(u),e.createVNode(g,null,{default:e.withCtx(()=>[e.createVNode(m,{color:"primary",variant:"text",onClick:i.dismiss},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode(" Dismiss ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Je=y._export_sfc(We,[["render",$e]]);exports.AppFooter=ce;exports.AppNav=He;exports.ClassificationBanners=Xe;exports.ClockFooter=L;exports.Login=qe;exports.Notifications=F;exports.ScopeSelector=I;exports.TimeCheck=Je;exports.UserMenu=P;
|
|
2
2
|
//# sourceMappingURL=base.cjs.map
|
package/dist/tools/base.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as X, l as A, d as q } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-
|
|
1
|
+
import { p as X, l as A, d as q } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BOiUmW4q.js";
|
|
2
2
|
import { resolveComponent as a, createElementBlock as _, openBlock as c, createElementVNode as b, createVNode as n, toDisplayString as h, withCtx as s, createBlock as S, createCommentVNode as C, createTextVNode as f, normalizeClass as Q, normalizeProps as se, guardReactiveProps as ie, Fragment as V, renderList as H, mergeProps as ee, withModifiers as P } from "vue";
|
|
3
3
|
import { _ as O } from "../CustomIcon-h5X7369N.js";
|
|
4
4
|
import { navigateToUrl as ae, registerApplication as re, start as le } from "single-spa";
|
|
5
|
-
import { U as Y } from "../UpgradeToEnterpriseDialog-
|
|
5
|
+
import { U as Y } from "../UpgradeToEnterpriseDialog-CMVEjihv.js";
|
|
6
6
|
import { t as R, c as ce, n as Z, g as ue, e as de, b as J, d as G, h as I, f as fe } from "../format-CVeawcIv.js";
|
|
7
7
|
import { AstroStatusIndicator as pe, UnknownToAstroStatus as K, AstroStatusColors as me } from "../icons.js";
|
|
8
8
|
import { A as he } from "../AstroStatus-CY9VkeTN.js";
|
package/dist/tools/calendar.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../EventListDialog-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../EventListDialog-COOwwkxk.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-ankpCg-n.js";
|
|
2
2
|
export {
|
|
3
3
|
t as ActivityCreateDialog,
|
|
4
4
|
o as ColorSelectForm,
|