openc3-cosmos-tool-admin 7.2.0 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/tools/admin/{ArrayWidget-D1PArcGr-3885b67514afe732ba36.js → ArrayWidget-DMSm_P6c-efc7746a4ba953cd6808.js} +2 -2
  3. data/tools/admin/{ArrayplotWidget-DPUPy0qM-b6a1c019189be84e4589.js → ArrayplotWidget-fdXLhGAl-bb78ab3e4fdecdfebd67.js} +1 -1
  4. data/tools/admin/{BarColumn-BpdscDQf-e551f56c95340d26cda4.js → BarColumn-Bb305iCi-1d14dd1f021f8d8d5f6a.js} +1 -1
  5. data/tools/admin/{BlockWidget-_VUsK5T9-59058beda215f65a7b09.js → BlockWidget-Do3W6tZh-30b366b735726d3e884d.js} +2 -2
  6. data/tools/admin/{ButtonWidget-DE41o-cg-d0d862704f2cedf509f5.js → ButtonWidget-DukCQt0F-c8a88a1d238108f85fc0.js} +2 -2
  7. data/tools/admin/CanvasWidget-BRdVWln5-68610c4a029476073178.js +1 -0
  8. data/tools/admin/CanvasdotWidget-DV8PeDWz-da21bd87f779b9139269.js +1 -0
  9. data/tools/admin/{CanvasimageWidget-COv_Qnc8-0a502afa265efe2f25ad.js → CanvasimageWidget-Czbq1GuF-5f841f468351c7d6bdbf.js} +1 -1
  10. data/tools/admin/{CanvasimagevalueWidget-BhuUqLOo-53322c8fb2f548104d57.js → CanvasimagevalueWidget-DKt5JgEt-c79bbec74e5403f7b6ec.js} +1 -1
  11. data/tools/admin/CanvaslabelWidget-DW2I1ra1-bf0c322f7c308654cfc2.js +1 -0
  12. data/tools/admin/CanvaslabelvalueWidget-BhzvZVfD-ba39d0f36fbf3db6cd9c.js +1 -0
  13. data/tools/admin/{CanvaslineWidget-D1K_6mAY-986d4445d6db8f24c1b0.js → CanvaslineWidget-DsjY37tp-97707caf9ea6147f085e.js} +1 -1
  14. data/tools/admin/{CanvaslinevalueWidget-D4eaxWhR-443b0d3f93af5d0faf5a.js → CanvaslinevalueWidget-ihI97G8T-a7ccb7b7ca2d2628fdd5.js} +1 -1
  15. data/tools/admin/CheckbuttonWidget-B778Z-Zo-9dbaeff7a2a74130539a.js +1 -0
  16. data/tools/admin/ComboboxWidget-CuuvOL9K-838f18b5b010cb3d71ae.js +1 -0
  17. data/tools/admin/{DateWidget-DkNWx28s-bb439088467e3b1af3aa.js → DateWidget-COvQTAeo-fdab60f30b292f493736.js} +1 -1
  18. data/tools/admin/{DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js → DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js} +1 -1
  19. data/tools/admin/{DynamicWidget-BuSbQVhf-6a5228328dcebb177ef8.js → DynamicWidget-BuSbQVhf-f880988884028652fefc.js} +1 -1
  20. data/tools/admin/{FilechecksumWidget-DSfNEnDJ-531bbb7d456d380a62d9.js → FilechecksumWidget-DRnOt_UE-b118998ed499ab04e025.js} +1 -1
  21. data/tools/admin/{FiledisplayWidget-D2cxMmrP-812eb21e2f71f0bd32d6.js → FiledisplayWidget-26R46EjS-312ad25b3132af381df5.js} +1 -1
  22. data/tools/admin/{FormatvalueWidget-6-bj_PJO-4c9daa001cba89fb9103.js → FormatvalueWidget-BxyscMJc-9965b0bd2806cfbe79cb.js} +1 -1
  23. data/tools/admin/Graph-BKw7xw1a-947d95e03148698e323f.js +1 -0
  24. data/tools/admin/{GraphWidget-COXK3Dab-18ccb71d08b630c3446f.js → GraphWidget-Cs9mvqUu-f9a29adafa014c1e26e4.js} +1 -1
  25. data/tools/admin/{HorizontalWidget-C9UFBPsk-91bd1e11d87736b8c758.js → HorizontalWidget-fWLFj7Kg-46768f166783e7c59c1c.js} +1 -1
  26. data/tools/admin/{HorizontalboxWidget-CWLfmRtr-13d452adc9e1100f23c4.js → HorizontalboxWidget-DEaXhKEz-b0ba376ca37ee17a7d70.js} +1 -1
  27. data/tools/admin/HorizontallineWidget-Bvu1QP3S-2ef01995448de3e2d6b7.js +1 -0
  28. data/tools/admin/{IframeWidget-Bn9eGzrq-d71752e23ce712e81e26.js → IframeWidget-B143k4lo-47d90846ad305990fd45.js} +1 -1
  29. data/tools/admin/{ImageLoader-_gAudhVo-23300d0d0133307fb169.js → ImageLoader-BCpmQHIl-90267960b7246cba4d23.js} +1 -1
  30. data/tools/admin/{ImageviewerWidget-BUWhF32Z-0799a243569a53e640e9.js → ImageviewerWidget-CLrvr6dw-6adafd871908af16336a.js} +1 -1
  31. data/tools/admin/InterfacesTab-zhl06TGR-269bf95691e1ca1133d0.js +1 -0
  32. data/tools/admin/{LabelWidget-BhzkN06D-2d7a7f95582b783e18d0.js → LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js} +1 -1
  33. data/tools/admin/{LabelledWidget-vx8NvW1b-0d3f99aa750f0631fdc2.js → LabelledWidget-BDhvr03J-d661081e5e66658337e8.js} +1 -1
  34. data/tools/admin/{LabelprogressbarWidget-t5PvKuS4-18438f7d1f021d5247e5.js → LabelprogressbarWidget-g7A5CE8S-3e6d2543cbb4356e663b.js} +1 -1
  35. data/tools/admin/LabelsparklineWidget-B27xXxWg-46ed8faac17cc5e23e2c.js +1 -0
  36. data/tools/admin/{LabelvalueWidget-Cbs1DBK2-8bc763b903941db678a2.js → LabelvalueWidget-DFn8o6LC-83776b27319b83d8f0db.js} +1 -1
  37. data/tools/admin/{LabelvaluedescWidget-B7OIOGc0-21ac0d9663cf49396a58.js → LabelvaluedescWidget-BQpaxFaB-577f3f571587fc3e28a8.js} +1 -1
  38. data/tools/admin/{LabelvaluelimitsbarWidget-C57kf-oQ-8929b2b56023fd39369a.js → LabelvaluelimitsbarWidget-C-z96q8z-05aedeebb4882527347a.js} +1 -1
  39. data/tools/admin/LabelvaluelimitscolumnWidget-D2TMEv9O-8f2ba12f3d8541a80f4f.js +1 -0
  40. data/tools/admin/{LabelvaluerangebarWidget-Pt_evm3v-2f296e2b660ae23cd7e2.js → LabelvaluerangebarWidget-D99dZCjz-f2a7ecfb05831ee9ece6.js} +1 -1
  41. data/tools/admin/{Layout-CKmC50QZ-a4e41facce8302b08009.js → Layout--_zNJWnw-a75e57affb59e71889ad.js} +1 -1
  42. data/tools/admin/{LedWidget-D1lmNXpi-c70ab085a7e75d99db2a.js → LedWidget-D2uxHxe3-b432e645d6f5ac424a50.js} +1 -1
  43. data/tools/admin/{LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js → LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js} +1 -1
  44. data/tools/admin/{LimitsbarWidget-VpxQXE-e-48cfee552a9c695bf8f1.js → LimitsbarWidget-Cqhh7LKU-68bbd725e553a8fbb473.js} +1 -1
  45. data/tools/admin/{LimitscolorWidget-79P41CX7-f2eea333aec5c48967e0.js → LimitscolorWidget-haGB4RbY-2bbe52d1c80aded0cc12.js} +1 -1
  46. data/tools/admin/{LimitscolumnWidget-BFDXhJeZ-4eba19b9d6c713c13db1.js → LimitscolumnWidget-B1GdmlR_-ea359135deab006453c1.js} +1 -1
  47. data/tools/admin/{LinegraphWidget-VqkpOlws-f72604545ff9d950311b.js → LinegraphWidget-COSOQ0uM-d51c56629154333d44e4.js} +1 -1
  48. data/tools/admin/{MatrixbycolumnsWidget--ihvirDP-0c6d1476cb4af73ce4ec.js → MatrixbycolumnsWidget-coHlLETG-860f23fb48426b9fd387.js} +1 -1
  49. data/tools/admin/{MicroservicesTab-CQPpb7j1-7daf01af280d2c44c370.js → MicroservicesTab-eR0hpoO1-90e70bfd68ca8cece876.js} +2 -2
  50. data/tools/admin/{OpenC3TimePicker-B0lAIU91-6e7843b535d6cb333926.js → OpenC3TimePicker-B8Vu9GBz-c1433e91ea28dd0e883e.js} +1 -1
  51. data/tools/admin/{OutputDialog-DtrpwjGL-73ebd3c55e7ffbc15652.js → OutputDialog-B0DR879Y-1fe936426c84cb442ac4.js} +1 -1
  52. data/tools/admin/{PackagesTab-DQ5s3nfh-dfdd8bd24af88c946d9d.js → PackagesTab-aA0fmiQh-fb563fc6f35c8b0be850.js} +1 -1
  53. data/tools/admin/{PluginsTab-1tlTx4k1-496335d424694bd25d9a.js → PluginsTab-C-ItW862-32d7ee9164d04691765d.js} +2 -2
  54. data/tools/admin/{ProgressbarWidget-BIB3r9SL-2b2e5705da4fe267fc08.js → ProgressbarWidget-D_yFssIZ-d10aa4e57145b3259669.js} +1 -1
  55. data/tools/admin/{RadiobuttonWidget-C5rxLM7K-9bdffd0ee597d4386ad7.js → RadiobuttonWidget-DL0jVTcb-3c465bd94a1d1501b9aa.js} +1 -1
  56. data/tools/admin/RadiogroupWidget-2-td69IA-a20b41e0ee16fca8216f.js +1 -0
  57. data/tools/admin/{RangebarWidget-MPQYi2Km-b85a235f8e43da24f3ae.js → RangebarWidget-i2mlnxys-4eec6df5412c7c011047.js} +1 -1
  58. data/tools/admin/RedisTab-WR7ODfau-47151697811af67bb310.js +1 -0
  59. data/tools/admin/{RollupWidget-CfjGAhzg-f9d66fe1e702f376333e.js → RollupWidget-BEJ2Icg1-e244836ce5d601a70583.js} +1 -1
  60. data/tools/admin/RoutersTab-DUvEd6IA-b95f4c2224cc6903fd12.js +1 -0
  61. data/tools/admin/{ScrollwindowWidget-CupaygNN-a397b20ae8a40b64a487.js → ScrollwindowWidget-BU1cRpL8-db955ba3d4a28aa695c0.js} +1 -1
  62. data/tools/admin/{SecretsTab-C9xAxuwO-89d69d126612c7b64f6d.js → SecretsTab-CkjjSxCg-e1665e5ecea3aed8dad6.js} +1 -1
  63. data/tools/admin/SettingsTab-CJp0hFpx-bae27f27a99072352713.js +6 -0
  64. data/tools/admin/{SignalWidget-C-qecoTO-c71ca67fb48f421af75e.js → SignalWidget-hiTkeem9-803814029a9fe6a17581.js} +1 -1
  65. data/tools/admin/{SimpleTextDialog-C-0ZC2bs-48d950cb04fe0c899bab.js → SimpleTextDialog-tGqcHHCx-aac1d333cbb9a93606d6.js} +1 -1
  66. data/tools/admin/SpacerWidget-CBmzzS_X-207fd991cbf6a40fe4b0.js +1 -0
  67. data/tools/admin/SparklineWidget-CizRh6QR-125aeb303d4965c33db7.js +1 -0
  68. data/tools/admin/{TabbookWidget-CXklff-l-46b8ed5b3d3fc3f6ff22.js → TabbookWidget-CvL3Ozmx-392ae93cab5b7cbb9764.js} +1 -1
  69. data/tools/admin/{TargetsTab-Ci4cOsIa-d2957154b9bf46fa9617.js → TargetsTab-KTV_gfLE-3a9c157196f584e54664.js} +1 -1
  70. data/tools/admin/TextboxWidget-BtEwXzDO-e4893abb472b9a687d25.js +1 -0
  71. data/tools/admin/{TextfieldWidget-CdANAW-6-82179a958f191dffd85c.js → TextfieldWidget-BDbb57HP-51b0d1e6a5aa914e5ac8.js} +1 -1
  72. data/tools/admin/TimeWidget-DzD8U8l8-2591897a5196cb54b68d.js +1 -0
  73. data/tools/admin/{TitleWidget-68NWCcXB-218c5743097602c7a5d8.js → TitleWidget-CL53vf14-6e11a61576950ccd39fd.js} +1 -1
  74. data/tools/admin/{ToolsTab-BCvmMDIZ-4b33c7b7aab46b7d4119.js → ToolsTab-yFxYcJ-o-7c21c60dd470d658fe4d.js} +1 -1
  75. data/tools/admin/TsdbTab-B0BR-V6A-ab626c8be8b9836c1c78.js +4 -0
  76. data/tools/admin/{VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js → VWidget-5qOYva88-4db083a6475508bbf7ce.js} +1 -1
  77. data/tools/admin/ValueWidget-CAkuc_w_-6037c5f1b4e7c0e9c790.js +1 -0
  78. data/tools/admin/ValuelimitsbarWidget-Y8sO05E1-c51344904eca186c081f.js +1 -0
  79. data/tools/admin/{ValuelimitscolumnWidget-BVt6nLXq-08cf4c90f589d1d23b70.js → ValuelimitscolumnWidget-iOjB_fCj-c8c67d58522b7f505b4f.js} +1 -1
  80. data/tools/admin/ValuerangebarWidget-DsCoeAm6-a486168810aca7f0e206.js +1 -0
  81. data/tools/admin/{VerticalWidget-DlftYBjH-ae7352937173846f56d9.js → VerticalWidget-C6O0dhRU-7511fd89efa71860286e.js} +1 -1
  82. data/tools/admin/{VerticalboxWidget-C7RrkfY0-a5135be854d46c8d2871.js → VerticalboxWidget-B-CoqRJG-29951e73bb5144b9ca2c.js} +1 -1
  83. data/tools/admin/{Widget-D_HaosJK-c49796f3af3288426d03.js → Widget-CtYQauzA-ae8839a2e4146c799aec.js} +1 -1
  84. data/tools/admin/main-040488697a5f3eed5115.js +1502 -0
  85. data/tools/admin/main.js +1 -1
  86. data/tools/admin/{settings-DZ910lLo-06b2e35cd3b4b6b6686c.js → settings-BrhbKDEv-791c3f57ac7979ee13b6.js} +1 -1
  87. metadata +85 -85
  88. data/tools/admin/CanvasWidget-BEi8h3Mq-e74743c293400ba5a929.js +0 -1
  89. data/tools/admin/CanvasdotWidget-eZuMgkhL-069ce51cfaf9b6705d69.js +0 -1
  90. data/tools/admin/CanvaslabelWidget-DtvbgeYH-0bb6f6c1d49c8d123129.js +0 -1
  91. data/tools/admin/CanvaslabelvalueWidget-C_FRIeNb-3b5c9903ad9d379fc52a.js +0 -1
  92. data/tools/admin/CheckbuttonWidget-ByxMDkiS-6939f416d1a7977f37fb.js +0 -1
  93. data/tools/admin/ComboboxWidget-CAGxGv2r-28b0f6b63d807a2f3217.js +0 -1
  94. data/tools/admin/Graph-Cz0Ns1FD-9251aa7b63944e24104e.js +0 -1
  95. data/tools/admin/HorizontallineWidget-DeFkOaYO-816f7a06f03f7222e67e.js +0 -1
  96. data/tools/admin/InterfacesTab-CZsnR6xB-abec32626a92ea91aa87.js +0 -1
  97. data/tools/admin/LabelsparklineWidget-CebbEH-j-9c683841d069f9e5b25c.js +0 -1
  98. data/tools/admin/LabelvaluelimitscolumnWidget-BRlNDEqp-d0a4f3d8ee015080c0a8.js +0 -1
  99. data/tools/admin/RadiogroupWidget-CciTCv1U-f9b9584110d84fad120b.js +0 -1
  100. data/tools/admin/RedisTab-DAeGow_e-aad9acabdf7d1943559b.js +0 -1
  101. data/tools/admin/RoutersTab-G4WKtUOo-8f69fb20843fdf62fa85.js +0 -1
  102. data/tools/admin/SettingsTab-BUdeAh4o-f1b85c2ee59d2f206af1.js +0 -5
  103. data/tools/admin/SpacerWidget-VVkOCb6N-356dcf21185ada59e84f.js +0 -1
  104. data/tools/admin/SparklineWidget-Dsmn38z_-2bd86ac75cf900848cd0.js +0 -1
  105. data/tools/admin/TextboxWidget-CHs2VYIv-55be6bce7cab19177b56.js +0 -1
  106. data/tools/admin/TimeWidget-D0xT1wXR-52493dd27717545a87bd.js +0 -1
  107. data/tools/admin/TsdbTab-BytqwnkN-ddc61c1fffc41912b8cb.js +0 -4
  108. data/tools/admin/ValueWidget-B1aGUBP7-320f2f1feb3886640deb.js +0 -1
  109. data/tools/admin/ValuelimitsbarWidget-B7KcRjLS-70f46b11dcb2a83a3562.js +0 -1
  110. data/tools/admin/ValuerangebarWidget-uVZEI32U-ded0715685adaffdaca5.js +0 -1
  111. data/tools/admin/main-320f7a52ead0c027f3e7.js +0 -1502
data/tools/admin/main.js CHANGED
@@ -1 +1 @@
1
- System.register(["vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(t,u){"use strict";return{setters:[null,n=>{t({bootstrap:n.d,mount:n.j,unmount:n.r})},null,null,null,null],execute:(function(){})}}));
1
+ System.register(["vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify"],(function(t,u){"use strict";return{setters:[null,n=>{t({bootstrap:n.g,mount:n.n,unmount:n.v})},null,null,null,null],execute:(function(){})}}));
@@ -1 +1 @@
1
- System.register(["./main-320f7a52ead0c027f3e7.js"],(function(r,a){"use strict";var i;return{setters:[n=>{i=n.g}],execute:(function(){const n=r("n",{data(){return{api:new i,errorText:"",errorLoading:!1,errorSaving:!1,successSaving:!1}},methods:{loadSetting:function(t,s){this.api.get_setting(t,s).then(e=>{this.parseSetting(e,{setting:t})}).catch(e=>{this.parseSetting(null),this.errorText=e,this.errorLoading=!0})},saveSetting:function(t,s,e){this.api.set_setting(t,s,e).then(()=>{this.errorSaving=!1,this.successSaving=!0}).catch(()=>{this.errorSaving=!0,this.successSaving=!1})},parseSetting:function(t){}}})})}}));
1
+ System.register(["./main-040488697a5f3eed5115.js"],(function(r,a){"use strict";var i;return{setters:[n=>{i=n.F}],execute:(function(){const n=r("n",{data(){return{api:new i,errorText:"",errorLoading:!1,errorSaving:!1,successSaving:!1}},methods:{loadSetting:function(t,s){this.api.get_setting(t,s).then(e=>{this.parseSetting(e,{setting:t})}).catch(e=>{this.parseSetting(null),this.errorText=e,this.errorLoading=!0})},saveSetting:function(t,s,e){this.api.set_setting(t,s,e).then(()=>{this.errorSaving=!1,this.successSaving=!0}).catch(()=>{this.errorSaving=!0,this.successSaving=!1})},parseSetting:function(t){}}})})}}));
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3-cosmos-tool-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.0
4
+ version: 7.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -22,92 +22,92 @@ files:
22
22
  - README.md
23
23
  - Rakefile
24
24
  - plugin.txt
25
- - tools/admin/ArrayWidget-D1PArcGr-3885b67514afe732ba36.js
26
- - tools/admin/ArrayplotWidget-DPUPy0qM-b6a1c019189be84e4589.js
27
- - tools/admin/BarColumn-BpdscDQf-e551f56c95340d26cda4.js
28
- - tools/admin/BlockWidget-_VUsK5T9-59058beda215f65a7b09.js
29
- - tools/admin/ButtonWidget-DE41o-cg-d0d862704f2cedf509f5.js
30
- - tools/admin/CanvasWidget-BEi8h3Mq-e74743c293400ba5a929.js
31
- - tools/admin/CanvasdotWidget-eZuMgkhL-069ce51cfaf9b6705d69.js
32
- - tools/admin/CanvasimageWidget-COv_Qnc8-0a502afa265efe2f25ad.js
33
- - tools/admin/CanvasimagevalueWidget-BhuUqLOo-53322c8fb2f548104d57.js
34
- - tools/admin/CanvaslabelWidget-DtvbgeYH-0bb6f6c1d49c8d123129.js
35
- - tools/admin/CanvaslabelvalueWidget-C_FRIeNb-3b5c9903ad9d379fc52a.js
36
- - tools/admin/CanvaslineWidget-D1K_6mAY-986d4445d6db8f24c1b0.js
37
- - tools/admin/CanvaslinevalueWidget-D4eaxWhR-443b0d3f93af5d0faf5a.js
38
- - tools/admin/CheckbuttonWidget-ByxMDkiS-6939f416d1a7977f37fb.js
39
- - tools/admin/ComboboxWidget-CAGxGv2r-28b0f6b63d807a2f3217.js
40
- - tools/admin/DateWidget-DkNWx28s-bb439088467e3b1af3aa.js
41
- - tools/admin/DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js
42
- - tools/admin/DynamicWidget-BuSbQVhf-6a5228328dcebb177ef8.js
43
- - tools/admin/FilechecksumWidget-DSfNEnDJ-531bbb7d456d380a62d9.js
44
- - tools/admin/FiledisplayWidget-D2cxMmrP-812eb21e2f71f0bd32d6.js
45
- - tools/admin/FormatvalueWidget-6-bj_PJO-4c9daa001cba89fb9103.js
46
- - tools/admin/Graph-Cz0Ns1FD-9251aa7b63944e24104e.js
47
- - tools/admin/GraphWidget-COXK3Dab-18ccb71d08b630c3446f.js
48
- - tools/admin/HorizontalWidget-C9UFBPsk-91bd1e11d87736b8c758.js
49
- - tools/admin/HorizontalboxWidget-CWLfmRtr-13d452adc9e1100f23c4.js
50
- - tools/admin/HorizontallineWidget-DeFkOaYO-816f7a06f03f7222e67e.js
51
- - tools/admin/IframeWidget-Bn9eGzrq-d71752e23ce712e81e26.js
52
- - tools/admin/ImageLoader-_gAudhVo-23300d0d0133307fb169.js
53
- - tools/admin/ImageviewerWidget-BUWhF32Z-0799a243569a53e640e9.js
54
- - tools/admin/InterfacesTab-CZsnR6xB-abec32626a92ea91aa87.js
55
- - tools/admin/LabelWidget-BhzkN06D-2d7a7f95582b783e18d0.js
56
- - tools/admin/LabelledWidget-vx8NvW1b-0d3f99aa750f0631fdc2.js
57
- - tools/admin/LabelprogressbarWidget-t5PvKuS4-18438f7d1f021d5247e5.js
58
- - tools/admin/LabelsparklineWidget-CebbEH-j-9c683841d069f9e5b25c.js
59
- - tools/admin/LabelvalueWidget-Cbs1DBK2-8bc763b903941db678a2.js
60
- - tools/admin/LabelvaluedescWidget-B7OIOGc0-21ac0d9663cf49396a58.js
61
- - tools/admin/LabelvaluelimitsbarWidget-C57kf-oQ-8929b2b56023fd39369a.js
62
- - tools/admin/LabelvaluelimitscolumnWidget-BRlNDEqp-d0a4f3d8ee015080c0a8.js
63
- - tools/admin/LabelvaluerangebarWidget-Pt_evm3v-2f296e2b660ae23cd7e2.js
64
- - tools/admin/Layout-CKmC50QZ-a4e41facce8302b08009.js
65
- - tools/admin/LedWidget-D1lmNXpi-c70ab085a7e75d99db2a.js
66
- - tools/admin/LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js
25
+ - tools/admin/ArrayWidget-DMSm_P6c-efc7746a4ba953cd6808.js
26
+ - tools/admin/ArrayplotWidget-fdXLhGAl-bb78ab3e4fdecdfebd67.js
27
+ - tools/admin/BarColumn-Bb305iCi-1d14dd1f021f8d8d5f6a.js
28
+ - tools/admin/BlockWidget-Do3W6tZh-30b366b735726d3e884d.js
29
+ - tools/admin/ButtonWidget-DukCQt0F-c8a88a1d238108f85fc0.js
30
+ - tools/admin/CanvasWidget-BRdVWln5-68610c4a029476073178.js
31
+ - tools/admin/CanvasdotWidget-DV8PeDWz-da21bd87f779b9139269.js
32
+ - tools/admin/CanvasimageWidget-Czbq1GuF-5f841f468351c7d6bdbf.js
33
+ - tools/admin/CanvasimagevalueWidget-DKt5JgEt-c79bbec74e5403f7b6ec.js
34
+ - tools/admin/CanvaslabelWidget-DW2I1ra1-bf0c322f7c308654cfc2.js
35
+ - tools/admin/CanvaslabelvalueWidget-BhzvZVfD-ba39d0f36fbf3db6cd9c.js
36
+ - tools/admin/CanvaslineWidget-DsjY37tp-97707caf9ea6147f085e.js
37
+ - tools/admin/CanvaslinevalueWidget-ihI97G8T-a7ccb7b7ca2d2628fdd5.js
38
+ - tools/admin/CheckbuttonWidget-B778Z-Zo-9dbaeff7a2a74130539a.js
39
+ - tools/admin/ComboboxWidget-CuuvOL9K-838f18b5b010cb3d71ae.js
40
+ - tools/admin/DateWidget-COvQTAeo-fdab60f30b292f493736.js
41
+ - tools/admin/DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js
42
+ - tools/admin/DynamicWidget-BuSbQVhf-f880988884028652fefc.js
43
+ - tools/admin/FilechecksumWidget-DRnOt_UE-b118998ed499ab04e025.js
44
+ - tools/admin/FiledisplayWidget-26R46EjS-312ad25b3132af381df5.js
45
+ - tools/admin/FormatvalueWidget-BxyscMJc-9965b0bd2806cfbe79cb.js
46
+ - tools/admin/Graph-BKw7xw1a-947d95e03148698e323f.js
47
+ - tools/admin/GraphWidget-Cs9mvqUu-f9a29adafa014c1e26e4.js
48
+ - tools/admin/HorizontalWidget-fWLFj7Kg-46768f166783e7c59c1c.js
49
+ - tools/admin/HorizontalboxWidget-DEaXhKEz-b0ba376ca37ee17a7d70.js
50
+ - tools/admin/HorizontallineWidget-Bvu1QP3S-2ef01995448de3e2d6b7.js
51
+ - tools/admin/IframeWidget-B143k4lo-47d90846ad305990fd45.js
52
+ - tools/admin/ImageLoader-BCpmQHIl-90267960b7246cba4d23.js
53
+ - tools/admin/ImageviewerWidget-CLrvr6dw-6adafd871908af16336a.js
54
+ - tools/admin/InterfacesTab-zhl06TGR-269bf95691e1ca1133d0.js
55
+ - tools/admin/LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js
56
+ - tools/admin/LabelledWidget-BDhvr03J-d661081e5e66658337e8.js
57
+ - tools/admin/LabelprogressbarWidget-g7A5CE8S-3e6d2543cbb4356e663b.js
58
+ - tools/admin/LabelsparklineWidget-B27xXxWg-46ed8faac17cc5e23e2c.js
59
+ - tools/admin/LabelvalueWidget-DFn8o6LC-83776b27319b83d8f0db.js
60
+ - tools/admin/LabelvaluedescWidget-BQpaxFaB-577f3f571587fc3e28a8.js
61
+ - tools/admin/LabelvaluelimitsbarWidget-C-z96q8z-05aedeebb4882527347a.js
62
+ - tools/admin/LabelvaluelimitscolumnWidget-D2TMEv9O-8f2ba12f3d8541a80f4f.js
63
+ - tools/admin/LabelvaluerangebarWidget-D99dZCjz-f2a7ecfb05831ee9ece6.js
64
+ - tools/admin/Layout--_zNJWnw-a75e57affb59e71889ad.js
65
+ - tools/admin/LedWidget-D2uxHxe3-b432e645d6f5ac424a50.js
66
+ - tools/admin/LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js
67
67
  - tools/admin/LimitsColor-CBcpB-la-3bd861951380f642016e.js
68
- - tools/admin/LimitsbarWidget-VpxQXE-e-48cfee552a9c695bf8f1.js
69
- - tools/admin/LimitscolorWidget-79P41CX7-f2eea333aec5c48967e0.js
70
- - tools/admin/LimitscolumnWidget-BFDXhJeZ-4eba19b9d6c713c13db1.js
71
- - tools/admin/LinegraphWidget-VqkpOlws-f72604545ff9d950311b.js
72
- - tools/admin/MatrixbycolumnsWidget--ihvirDP-0c6d1476cb4af73ce4ec.js
73
- - tools/admin/MicroservicesTab-CQPpb7j1-7daf01af280d2c44c370.js
74
- - tools/admin/OpenC3TimePicker-B0lAIU91-6e7843b535d6cb333926.js
75
- - tools/admin/OutputDialog-DtrpwjGL-73ebd3c55e7ffbc15652.js
76
- - tools/admin/PackagesTab-DQ5s3nfh-dfdd8bd24af88c946d9d.js
77
- - tools/admin/PluginsTab-1tlTx4k1-496335d424694bd25d9a.js
78
- - tools/admin/ProgressbarWidget-BIB3r9SL-2b2e5705da4fe267fc08.js
79
- - tools/admin/RadiobuttonWidget-C5rxLM7K-9bdffd0ee597d4386ad7.js
80
- - tools/admin/RadiogroupWidget-CciTCv1U-f9b9584110d84fad120b.js
81
- - tools/admin/RangebarWidget-MPQYi2Km-b85a235f8e43da24f3ae.js
82
- - tools/admin/RedisTab-DAeGow_e-aad9acabdf7d1943559b.js
83
- - tools/admin/RollupWidget-CfjGAhzg-f9d66fe1e702f376333e.js
84
- - tools/admin/RoutersTab-G4WKtUOo-8f69fb20843fdf62fa85.js
85
- - tools/admin/ScrollwindowWidget-CupaygNN-a397b20ae8a40b64a487.js
86
- - tools/admin/SecretsTab-C9xAxuwO-89d69d126612c7b64f6d.js
87
- - tools/admin/SettingsTab-BUdeAh4o-f1b85c2ee59d2f206af1.js
88
- - tools/admin/SignalWidget-C-qecoTO-c71ca67fb48f421af75e.js
89
- - tools/admin/SimpleTextDialog-C-0ZC2bs-48d950cb04fe0c899bab.js
90
- - tools/admin/SpacerWidget-VVkOCb6N-356dcf21185ada59e84f.js
91
- - tools/admin/SparklineWidget-Dsmn38z_-2bd86ac75cf900848cd0.js
92
- - tools/admin/TabbookWidget-CXklff-l-46b8ed5b3d3fc3f6ff22.js
93
- - tools/admin/TargetsTab-Ci4cOsIa-d2957154b9bf46fa9617.js
94
- - tools/admin/TextboxWidget-CHs2VYIv-55be6bce7cab19177b56.js
95
- - tools/admin/TextfieldWidget-CdANAW-6-82179a958f191dffd85c.js
96
- - tools/admin/TimeWidget-D0xT1wXR-52493dd27717545a87bd.js
97
- - tools/admin/TitleWidget-68NWCcXB-218c5743097602c7a5d8.js
98
- - tools/admin/ToolsTab-BCvmMDIZ-4b33c7b7aab46b7d4119.js
99
- - tools/admin/TsdbTab-BytqwnkN-ddc61c1fffc41912b8cb.js
100
- - tools/admin/VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js
101
- - tools/admin/ValueWidget-B1aGUBP7-320f2f1feb3886640deb.js
102
- - tools/admin/ValuelimitsbarWidget-B7KcRjLS-70f46b11dcb2a83a3562.js
103
- - tools/admin/ValuelimitscolumnWidget-BVt6nLXq-08cf4c90f589d1d23b70.js
104
- - tools/admin/ValuerangebarWidget-uVZEI32U-ded0715685adaffdaca5.js
105
- - tools/admin/VerticalWidget-DlftYBjH-ae7352937173846f56d9.js
106
- - tools/admin/VerticalboxWidget-C7RrkfY0-a5135be854d46c8d2871.js
107
- - tools/admin/Widget-D_HaosJK-c49796f3af3288426d03.js
108
- - tools/admin/main-320f7a52ead0c027f3e7.js
68
+ - tools/admin/LimitsbarWidget-Cqhh7LKU-68bbd725e553a8fbb473.js
69
+ - tools/admin/LimitscolorWidget-haGB4RbY-2bbe52d1c80aded0cc12.js
70
+ - tools/admin/LimitscolumnWidget-B1GdmlR_-ea359135deab006453c1.js
71
+ - tools/admin/LinegraphWidget-COSOQ0uM-d51c56629154333d44e4.js
72
+ - tools/admin/MatrixbycolumnsWidget-coHlLETG-860f23fb48426b9fd387.js
73
+ - tools/admin/MicroservicesTab-eR0hpoO1-90e70bfd68ca8cece876.js
74
+ - tools/admin/OpenC3TimePicker-B8Vu9GBz-c1433e91ea28dd0e883e.js
75
+ - tools/admin/OutputDialog-B0DR879Y-1fe936426c84cb442ac4.js
76
+ - tools/admin/PackagesTab-aA0fmiQh-fb563fc6f35c8b0be850.js
77
+ - tools/admin/PluginsTab-C-ItW862-32d7ee9164d04691765d.js
78
+ - tools/admin/ProgressbarWidget-D_yFssIZ-d10aa4e57145b3259669.js
79
+ - tools/admin/RadiobuttonWidget-DL0jVTcb-3c465bd94a1d1501b9aa.js
80
+ - tools/admin/RadiogroupWidget-2-td69IA-a20b41e0ee16fca8216f.js
81
+ - tools/admin/RangebarWidget-i2mlnxys-4eec6df5412c7c011047.js
82
+ - tools/admin/RedisTab-WR7ODfau-47151697811af67bb310.js
83
+ - tools/admin/RollupWidget-BEJ2Icg1-e244836ce5d601a70583.js
84
+ - tools/admin/RoutersTab-DUvEd6IA-b95f4c2224cc6903fd12.js
85
+ - tools/admin/ScrollwindowWidget-BU1cRpL8-db955ba3d4a28aa695c0.js
86
+ - tools/admin/SecretsTab-CkjjSxCg-e1665e5ecea3aed8dad6.js
87
+ - tools/admin/SettingsTab-CJp0hFpx-bae27f27a99072352713.js
88
+ - tools/admin/SignalWidget-hiTkeem9-803814029a9fe6a17581.js
89
+ - tools/admin/SimpleTextDialog-tGqcHHCx-aac1d333cbb9a93606d6.js
90
+ - tools/admin/SpacerWidget-CBmzzS_X-207fd991cbf6a40fe4b0.js
91
+ - tools/admin/SparklineWidget-CizRh6QR-125aeb303d4965c33db7.js
92
+ - tools/admin/TabbookWidget-CvL3Ozmx-392ae93cab5b7cbb9764.js
93
+ - tools/admin/TargetsTab-KTV_gfLE-3a9c157196f584e54664.js
94
+ - tools/admin/TextboxWidget-BtEwXzDO-e4893abb472b9a687d25.js
95
+ - tools/admin/TextfieldWidget-BDbb57HP-51b0d1e6a5aa914e5ac8.js
96
+ - tools/admin/TimeWidget-DzD8U8l8-2591897a5196cb54b68d.js
97
+ - tools/admin/TitleWidget-CL53vf14-6e11a61576950ccd39fd.js
98
+ - tools/admin/ToolsTab-yFxYcJ-o-7c21c60dd470d658fe4d.js
99
+ - tools/admin/TsdbTab-B0BR-V6A-ab626c8be8b9836c1c78.js
100
+ - tools/admin/VWidget-5qOYva88-4db083a6475508bbf7ce.js
101
+ - tools/admin/ValueWidget-CAkuc_w_-6037c5f1b4e7c0e9c790.js
102
+ - tools/admin/ValuelimitsbarWidget-Y8sO05E1-c51344904eca186c081f.js
103
+ - tools/admin/ValuelimitscolumnWidget-iOjB_fCj-c8c67d58522b7f505b4f.js
104
+ - tools/admin/ValuerangebarWidget-DsCoeAm6-a486168810aca7f0e206.js
105
+ - tools/admin/VerticalWidget-C6O0dhRU-7511fd89efa71860286e.js
106
+ - tools/admin/VerticalboxWidget-B-CoqRJG-29951e73bb5144b9ca2c.js
107
+ - tools/admin/Widget-CtYQauzA-ae8839a2e4146c799aec.js
108
+ - tools/admin/main-040488697a5f3eed5115.js
109
109
  - tools/admin/main.js
110
- - tools/admin/settings-DZ910lLo-06b2e35cd3b4b6b6686c.js
110
+ - tools/admin/settings-BrhbKDEv-791c3f57ac7979ee13b6.js
111
111
  homepage: https://github.com/OpenC3/cosmos
112
112
  licenses:
113
113
  - OpenC3
@@ -1 +0,0 @@
1
- System.register(["./Layout-CKmC50QZ-a4e41facce8302b08009.js","vue","./main-320f7a52ead0c027f3e7.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","vue-router","pinia","single-spa","vuetify"],(function(p,f){"use strict";var i,n,s,a,l,c,u,o,m;return{setters:[e=>{i=e.r},e=>{n=e.openBlock,s=e.createElementBlock,a=e.Fragment,l=e.renderList,c=e.createBlock,u=e.resolveDynamicComponent,o=e.mergeProps},e=>{m=e.f},null,null,null,null,null],execute:(function(){const e={mixins:[i],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},h=["width","height"];function d(r,k,y,B,b,g){return n(),s("svg",{id:"canvas",width:g.width,height:g.height},[(n(!0),s(a,null,l(r.widgets,(t,v)=>(n(),c(u(t.type),o({ref_for:!0},r.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],8,h)}const w=p("default",m(e,[["render",d],["__scopeId","data-v-50b8991f"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(s,a){"use strict";var t,n,l,c;return{setters:[e=>{t=e.h},e=>{n=e.openBlock,l=e.createElementBlock},e=>{c=e.f},null,null,null,null],execute:(function(){const e={mixins:[t]},i=["cx","cy","r","fill"];function u(r,f,m,p,d,k){return n(),l("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,i)}const o=s("default",c(e,[["render",u]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(o,c){"use strict";var r,n,i,l,s;return{setters:[e=>{r=e.h},e=>{n=e.openBlock,i=e.createElementBlock,l=e.toDisplayString},e=>{s=e.f},null,null,null,null],execute:(function(){const e={mixins:[r],computed:{fontSize(){return this.parameters[3]?this.parameters[3]+"px":"12px"},fillColor(){return this.parameters[4]?this.parameters[4]:"black"}}},u=["x","y","font-size","fill"];function p(t,m,x,h,y,a){return n(),i("text",{x:t.parameters[0],y:t.parameters[1],"font-size":a.fontSize,fill:a.fillColor},l(t.parameters[2]),9,u)}const f=o("default",s(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var s,a,i,l,n;return{setters:[e=>{s=e.h},e=>{a=e.openBlock,i=e.createElementBlock,l=e.toDisplayString},e=>{n=e.f},null,null,null,null],execute:(function(){const e={mixins:[s],emits:["addItem","deleteItem"],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:""},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let t="CONVERTED";this.parameters[7]&&(t=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},m=["x","y","font-size","fill"];function o(t,h,c,f,v,r){return a(),i("text",{x:t.parameters[3],y:t.parameters[4],"font-size":r.fontSize,fill:r.fillColor},l(r._value),9,m)}const d=u("default",n(e,[["render",o]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(i,p){"use strict";var t,a,n,s,o,r;return{setters:[e=>{t=e.h},e=>{a=e.resolveComponent,n=e.openBlock,s=e.createBlock,o=e.normalizeStyle},e=>{r=e.f},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function c(d,u,f,k,l,y){const m=a("v-checkbox");return n(),s(m,{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=h=>l.value=h),"hide-details":"",density:"compact",label:l.label,style:o(d.computedStyle)},null,8,["modelValue","label","style"])}const v=i("default",r(e,[["render",c]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var l,n,s,a,i,r;return{setters:[e=>{l=e.h},e=>{n=e.resolveComponent,s=e.openBlock,a=e.createBlock,i=e.normalizeStyle},e=>{r=e.f},null,null,null,null],execute:(function(){const e={mixins:[l],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c(m,o,y,f,t,k){const d=n("v-select");return s(),a(d,{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=v=>t.value=v),"hide-details":"",density:"compact",variant:"outlined",items:t.items,style:i(m.computedStyle)},null,8,["modelValue","items","style"])}const h=u("default",r(e,[["render",c]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-320f7a52ead0c027f3e7.js","./OpenC3TimePicker-B0lAIU91-6e7843b535d6cb333926.js","vue","./GraphWidget-COXK3Dab-18ccb71d08b630c3446f.js"],(function(ce,Le){"use strict";var S,U,ee,X,te,V,ie,ae,F,q,se,o,m,E,l,n,y,B,k,v,C,W,z,K,M,L,le,T,ne,re,$,de,j;return{setters:[u=>{S=u.f,U=u.g,ee=u.u,X=u.R,te=u.y,V=u.o,ie=u.l,ae=u.e,F=u.B,q=u.z},u=>{se=u.w},u=>{o=u.resolveComponent,m=u.openBlock,E=u.createElementBlock,l=u.createVNode,n=u.withCtx,y=u.createBlock,B=u.resolveDynamicComponent,k=u.createCommentVNode,v=u.createTextVNode,C=u.toDisplayString,W=u.normalizeClass,z=u.Fragment,K=u.withModifiers,M=u.withDirectives,L=u.vShow,le=u.mergeProps,T=u.createElementVNode,ne=u.normalizeProps,re=u.guardReactiveProps,$=u.withKeys,de=u.renderList},u=>{j=u.e}],execute:(function(){const u={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},allowAllArrayIndex:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},showLatest:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:t=>["cmd","tlm"].includes(t)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},lockTarget:{type:Boolean,default:!1},lockPacket:{type:Boolean,default:!1},showQueueSelect:{type:Boolean,default:!0},parameterHazardous:{type:Boolean,default:!1},allowGlob:{type:Boolean,default:!1}},emits:["on-set","addItem"],data(){return{targetNames:[],selectedTargetName:this.initialTargetName?.toUpperCase(),packetNames:[],selectedPacketName:this.initialPacketName?.toUpperCase(),queueNames:[{label:"None",value:null}],selectedQueueName:null,itemNames:[],selectedItemName:this.initialItemName?.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"},LATEST:{label:"[ LATEST ]",value:"LATEST",description:"Latest values from all packets"}}},computed:{actualButtonText:function(){return this.selectedPacketName==="ALL"?"Add Target":this.selectedItemName==="ALL"?"Add Packet":this.buttonText},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||this.selectedTargetName===null||this.selectedPacketName===null||this.selectedItemNameWIndex===null},colSize:function(){return this.vertical?12:!1},selectedItemNameWIndex:function(){return this.itemIsArray&&this.selectedArrayIndex!==null&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName},includeLatestPacketInDropdown:function(){return this.showLatest&&this.mode==="tlm"},arrayIndexes:function(){let t=this.itemNames.findIndex(i=>i.value===this.selectedItemName),e=[...new Array(this.itemNames[t].array).keys()];return(this.allowAll||this.allowAllArrayIndex)&&e.unshift(this.ALL.label),e},itemIsArray:function(){let t=this.itemNames.findIndex(e=>e.value===this.selectedItemName);return t!==-1&&this.itemNames[t].array!==void 0&&!Number.isNaN(this.itemNames[t].array)},isHazardous:function(){return this.hazardous||this.parameterHazardous},globEnabled:function(){return this.allowGlob&&this.mode==="tlm"}},watch:{initialTargetName:function(t){t&&(this.selectedTargetName=t.toUpperCase())},initialPacketName:function(t){t&&(this.selectedPacketName=t.toUpperCase())},initialItemName:function(t){t&&(this.selectedItemName=t.toUpperCase())},globEnabled:function(t){if(!t){const e=/[*?]|\[(?!\d+\])/;typeof this.selectedPacketName=="string"&&e.test(this.selectedPacketName)&&(this.selectedPacketName=null,this.selectedItemName=null),typeof this.selectedItemName=="string"&&e.test(this.selectedItemName)&&(this.selectedItemName=null)}},mode:function(t,e){this.selectedPacketName=null,this.selectedItemName=null,this.targetNameChanged(this.selectedTargetName)},chooseItem:function(t,e){t?this.updateItems():this.itemNames=[]},itemIsArray:function(t){t?this.selectedArrayIndex||=0:this.selectedArrayIndex=null}},created(){this.internalDisabled=!0,this.api=new U,this.mode==="cmd"&&ee.get("/openc3-api/queues").then(t=>{this.queueNames=[{label:"None",value:null}],t.data&&Array.isArray(t.data)&&t.data.forEach(e=>{this.queueNames.push({label:e.name,value:e.name})})}).catch(t=>{console.error("Error fetching queues:",t)}),this.api.get_target_names().then(t=>{this.targetNames=t.flatMap(e=>e=="UNKNOWN"?[]:{label:e,value:e}),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName?this.updatePackets():(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.unknown&&this.targetNames.push(this.UNKNOWN)})},methods:{selectOnFocus:function(t){this.$nextTick(()=>{const e=this.$refs[t];if(e){const i=e.$el.querySelector("input");i&&i.select()}})},updatePackets:function(){if(this.selectedTargetName==="UNKNOWN"){this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),this.description="UNKNOWN";return}if(this.selectedTargetName==="ALL"){this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),this.description="ALL";return}this.internalDisabled=!0;const t=this.mode==="tlm"?"get_all_tlm_names":"get_all_cmd_names";this.api[t](this.selectedTargetName,this.hidden).then(e=>{this.packetNames=e.map(i=>({label:i,value:i})),this.includeLatestPacketInDropdown&&this.packetNames.unshift(this.LATEST),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.packetNames.length===0?this.selectedPacketName=null:(this.selectedPacketName=this.packetNames[0].value,this.selectedPacketName==="LATEST"&&this.packetNames.length>1&&(this.selectedPacketName=this.packetNames[1].value))),this.updatePacketDetails(this.selectedPacketName),this.packetNames.find(i=>i.value===this.selectedPacketName)&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1})},updateItems:function(){if(this.selectedPacketName!=="ALL"){if(this.globEnabled&&typeof this.selectedPacketName=="string"&&!this.packetNames.find(t=>this.selectedPacketName===t.value)&&this.selectedPacketName!=="LATEST"){this.internalDisabled=!1;return}if(this.internalDisabled=!0,this.selectedPacketName==="LATEST")this.api.get_all_tlm_item_names(this.selectedTargetName).then(t=>{this.itemNames=t.map(e=>({label:e,value:e,description:`LATEST ${e}`})),this.finishUpdateItems()});else{const t=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,this.selectedPacketName).then(e=>{let i=[];e.items.forEach(r=>{r.hidden||i.push(r)}),this.itemNames=i.map(r=>{let a=r.name;return r.data_type=="DERIVED"&&(a+=" *"),{label:a,value:r.name,description:r.description,array:r.array_size/r.bit_size}}),this.itemNames.sort((r,a)=>r.label>a.label?1:-1),this.finishUpdateItems()})}}},finishUpdateItems:function(){this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType,queueName:this.selectedQueueName}),this.internalDisabled=!1},targetNameChanged:function(t){this.selectedTargetName=t,this.selectedPacketName="",this.selectedItemName="",t!==null&&this.updatePackets()},packetNameChanged:function(t){this.selectedItemName="",t!==null&&typeof t=="object"&&t.value&&(t=t.value,this.selectedPacketName=t),t!==null&&(this.globEnabled&&typeof t=="string"?this.packetNames.find(e=>t===e.value)?this.updatePacketDetails(t):(this.itemsDisabled=!1,this.internalDisabled=!1):this.updatePacketDetails(t))},queueNameChanged:function(t){this.selectedQueueName=t,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType,queueName:this.selectedQueueName})},updatePacketDetails:function(t){if(t==="ALL")this.itemsDisabled=!0,this.internalDisabled=!1;else if(t==="LATEST")this.itemsDisabled=!1,this.selectedPacketName="LATEST",this.description="Latest values from all packets",this.hazardous=!1;else{this.itemsDisabled=!1;const e=this.packetNames.find(i=>t===i.value);if(e){this.selectedPacketName=e.value;const i=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[i](this.selectedTargetName,this.selectedPacketName).then(r=>{this.description=r.description,this.hazardous=r.hazardous})}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType,queueName:this.selectedQueueName})},itemNameChanged:function(t){t!==null&&typeof t=="object"&&t.value&&(t=t.value,this.selectedItemName=t);const e=this.itemNames.find(i=>t===i.value);e?(this.selectedItemName=e.value,this.description=e.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType,queueName:this.selectedQueueName})):this.globEnabled&&typeof t=="string"&&/[*?]|\[(?!\d+\])/.test(t)&&(this.selectedItemName=t.toUpperCase())},indexChanged:function(t){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType,queueName:this.selectedQueueName})},buttonPressed:function(){this.selectedPacketName==="ALL"?this.allTargetPacketItems():this.selectedItemName==="ALL"?this.allPacketItems():this.chooseItem?this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach(t=>{if(t===this.ALL||t===this.LATEST)return;const e=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,t.value).then(i=>{i.items.forEach(r=>{r.hidden||this.$emit("addItem",{targetName:this.selectedTargetName,packetName:t.value,itemName:r.name,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})})})},allPacketItems:function(){this.itemNames.forEach(t=>{t!==this.ALL&&this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:t.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})}}},he={class:"pt-4 pb-4"};function ue(t,e,i,r,a,s){const d=o("v-autocomplete"),h=o("v-col"),N=o("v-combobox"),g=o("v-btn"),x=o("v-row"),I=o("v-icon");return m(),E("div",he,[l(x,{class:"align-center","no-gutters":!i.vertical},{default:n(()=>[l(h,{cols:s.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:n(()=>[l(d,{ref:"targetAutocomplete",modelValue:a.selectedTargetName,"onUpdate:modelValue":[e[0]||(e[0]=c=>a.selectedTargetName=c),s.targetNameChanged],label:"Select Target","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:s.autocompleteDisabled||i.lockTarget,items:a.targetNames,"item-title":"label","item-value":"value",onFocus:e[1]||(e[1]=c=>s.selectOnFocus("targetAutocomplete"))},null,8,["modelValue","disabled","items","onUpdate:modelValue"])]),_:1},8,["cols"]),l(h,{cols:s.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:n(()=>[(m(),y(B(s.globEnabled?"v-combobox":"v-autocomplete"),{ref:"packetAutocomplete",modelValue:a.selectedPacketName,"onUpdate:modelValue":[e[2]||(e[2]=c=>a.selectedPacketName=c),s.packetNameChanged],label:"Select Packet","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:a.packetsDisabled||s.autocompleteDisabled||i.lockPacket,items:a.packetNames,"item-title":"label","item-value":"value",onFocus:e[3]||(e[3]=c=>s.selectOnFocus("packetAutocomplete"))},null,40,["modelValue","disabled","items","onUpdate:modelValue"]))]),_:1},8,["cols"]),i.mode==="cmd"&&i.showQueueSelect?(m(),y(h,{key:0,cols:s.colSize,class:"tpic-select pr-4","data-test":"select-queue"},{default:n(()=>[l(d,{ref:"queueAutocomplete",modelValue:a.selectedQueueName,"onUpdate:modelValue":[e[4]||(e[4]=c=>a.selectedQueueName=c),s.queueNameChanged],label:"Select Queue","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:s.autocompleteDisabled||a.queueNames.length===1,items:a.queueNames,"item-title":"label","item-value":"value",onFocus:e[5]||(e[5]=c=>s.selectOnFocus("queueAutocomplete"))},null,8,["modelValue","disabled","items","onUpdate:modelValue"])]),_:1},8,["cols"])):k("",!0),i.chooseItem?(m(),y(h,{key:1,cols:s.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:n(()=>[(m(),y(B(s.globEnabled?"v-combobox":"v-autocomplete"),{ref:"itemAutocomplete",modelValue:a.selectedItemName,"onUpdate:modelValue":[e[6]||(e[6]=c=>a.selectedItemName=c),e[7]||(e[7]=c=>s.itemNameChanged(c))],label:"Select Item","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:a.itemsDisabled||s.autocompleteDisabled,items:a.itemNames,"item-title":"label","item-value":"value",onFocus:e[8]||(e[8]=c=>s.selectOnFocus("itemAutocomplete"))},null,40,["modelValue","disabled","items"]))]),_:1},8,["cols"])):k("",!0),i.chooseItem&&s.itemIsArray?(m(),y(h,{key:2,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:n(()=>[l(N,{ref:"indexCombobox",modelValue:a.selectedArrayIndex,"onUpdate:modelValue":[e[9]||(e[9]=c=>a.selectedArrayIndex=c),e[10]||(e[10]=c=>s.indexChanged(c))],label:"Index","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:a.itemsDisabled||s.autocompleteDisabled,items:s.arrayIndexes,"item-title":"label","item-value":"value",onFocus:e[11]||(e[11]=c=>s.selectOnFocus("indexCombobox"))},null,8,["modelValue","disabled","items"])]),_:1})):k("",!0),i.buttonText?(m(),y(h,{key:3,cols:s.colSize,style:{"max-width":"140px"}},{default:n(()=>[l(g,{disabled:s.buttonDisabled,color:"primary","data-test":"select-send",onClick:s.buttonPressed},{default:n(()=>[v(C(s.actualButtonText),1)]),_:1},8,["disabled","onClick"])]),_:1},8,["cols"])):k("",!0)]),_:1},8,["no-gutters"]),i.selectTypes?(m(),y(x,{key:0,class:"pt-6 align-center","no-gutters":""},{default:n(()=>[l(h,{cols:s.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:n(()=>[l(d,{ref:"valueTypeAutocomplete",modelValue:a.selectedValueType,"onUpdate:modelValue":e[12]||(e[12]=c=>a.selectedValueType=c),label:"Value Type","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",items:a.valueTypes,onFocus:e[13]||(e[13]=c=>s.selectOnFocus("valueTypeAutocomplete"))},null,8,["modelValue","items"])]),_:1},8,["cols"]),l(h,{cols:s.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:n(()=>[l(d,{ref:"reducedAutocomplete",modelValue:a.selectedReduced,"onUpdate:modelValue":e[14]||(e[14]=c=>a.selectedReduced=c),label:"Reduced","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",items:a.reductionModes,onFocus:e[15]||(e[15]=c=>s.selectOnFocus("reducedAutocomplete"))},null,8,["modelValue","items"])]),_:1},8,["cols"]),l(h,{cols:s.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:n(()=>[l(d,{ref:"reducedTypeAutocomplete",modelValue:a.selectedReducedType,"onUpdate:modelValue":e[16]||(e[16]=c=>a.selectedReducedType=c),label:"Reduced Type","hide-details":"","auto-select-first":"",density:"compact",variant:"outlined",disabled:a.selectedReduced==="DECOM",items:a.reducedTypes,onFocus:e[17]||(e[17]=c=>s.selectOnFocus("reducedTypeAutocomplete"))},null,8,["modelValue","disabled","items"])]),_:1},8,["cols"]),l(h,{cols:s.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):k("",!0),l(x,{"no-gutters":"",class:"pt-3 px-3 align-center"},{default:n(()=>[l(h,{cols:s.colSize,class:W({"openc3-yellow":s.isHazardous})},{default:n(()=>[s.isHazardous?(m(),y(I,{key:0,class:"mr-1"},{default:n(()=>[...e[18]||(e[18]=[v("mdi-alert",-1)])]),_:1})):k("",!0),v(" Description: "+C(a.description)+" ",1),s.isHazardous?(m(),E(z,{key:1},[v(" (HAZARDOUS) ")],64)):k("",!0)]),_:1},8,["cols","class"])]),_:1})])}const me={components:{OpenC3TimePicker:se,TargetPacketItemChooser:S(u,[["render",ue],["__scopeId","data-v-55ebb8e9"]])},mixins:[X],props:{modelValue:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number,required:!0},graphMaxY:{type:Number,required:!0},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number,default:null},endDateTime:{type:Number,default:null},timeZone:{type:String,required:!0},xAxisItemPacket:{type:Object,default:void 0},xAxisItem:{type:String,default:"__time"}},emits:["cancel","ok","remove","update:modelValue","update:xAxisItem"],data:function(){return{tab:0,graph:{},customXAxisEnabled:!1,selectedXAxisItem:null,pendingXAxisSelection:null,legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{title:"Y Value",value:"yValue"},{title:"Color",value:"color"},{title:"Actions",value:"actions",sortable:!1}],itemHeaders:[{title:"Target Name",value:"targetName"},{title:"Packet Name",value:"packetName"},{title:"Item Name",value:"itemName"},{title:"Actions",value:"actions",sortable:!1}]}},computed:{rules(){return{date:t=>{if(!t)return!0;try{return q(j(t,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch{return"Invalid date (YYYY-MM-DD)"}},time:t=>{if(!t)return!0;try{return q(j(t,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch{return"Invalid time (HH:MM:SS)"}}}},startDateError(){return this.startTime&&!this.startDate?["Start Date required"]:[]},startTimeError(){return this.startDate&&!this.startTime?["Start Time required"]:[]},endDateError(){return this.endTime&&!this.endDate?["End Date required"]:[]},endTimeError(){return this.endDate&&!this.endTime?["End Time required"]:[]},isInvalid(){return!!this.startDate!=!!this.startTime||!!this.endDate!=!!this.endTime},show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},editItems:function(){if(!this.items)return[];let t=0;return this.items.map(e=>(t+=1,{...e,itemId:t}))},initialXAxisItem:function(){if(this.xAxisItem!=="__time")return this.xAxisItem.split("__").at(4)}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.customXAxisEnabled=this.xAxisItem&&this.xAxisItem!=="__time",this.selectedXAxisItem=this.xAxisItem,this.startDateTime){let t=F(this.startDateTime/1e6);this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}if(this.endDateTime){let t=F(this.endDateTime/1e6);this.endDate=this.formatDate(t,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone)}},methods:{closeOk(){if(!!this.startDate!=!!this.startTime){this.tab=0;return}if(!!this.endDate!=!!this.endTime){this.tab=0;return}this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},setLastHour(){const t=new Date(Date.now()-36e5);this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)},clearStart(){this.startDate=null,this.startTime=null},clearEnd(){this.endDate=null,this.endTime=null},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(t){let e=this.graph.lines.indexOf(t);this.graph.lines.splice(e,1)},customXAxisToggled(t){t||(this.selectedXAxisItem="__time",this.$emit("update:xAxisItem","__time"))},xAxisItemChanged(t){this.pendingXAxisSelection=t},xAxisItemSelected(t){if(t.targetName&&t.packetName&&t.itemName){const e=`DECOM__TLM__${t.targetName}__${t.packetName}__${t.itemName}__CONVERTED`;this.selectedXAxisItem=e,this.$emit("update:xAxisItem",e)}}}},pe={class:"edit-box"},fe={class:"edit-box"},ge={class:"edit-box"},ve={class:"edit-box"},ye={class:"edit-box"};function be(t,e,i,r,a,s){const d=o("v-spacer"),h=o("v-toolbar"),N=o("v-tab"),g=o("v-tabs"),x=o("v-text-field"),I=o("v-card-text"),c=o("v-col"),D=o("v-select"),b=o("v-row"),A=o("v-btn"),Y=o("OpenC3TimePicker"),P=o("v-tabs-window-item"),w=o("v-list-item"),_=o("v-list"),O=o("v-checkbox"),R=o("target-packet-item-chooser"),Z=o("v-data-table"),Q=o("v-tabs-window"),J=o("v-card-actions"),p=o("v-card"),Me=o("v-dialog");return m(),y(Me,{modelValue:s.show,"onUpdate:modelValue":e[13]||(e[13]=f=>s.show=f),persistent:"","max-width":"700",onKeydown:e[14]||(e[14]=$(f=>t.$emit("cancel"),["esc"]))},{default:n(()=>[l(h,{height:"24"},{default:n(()=>[l(d),e[15]||(e[15]=T("span",null," Edit Graph ",-1)),l(d)]),_:1}),l(p,{class:"pa-3"},{default:n(()=>[l(g,{modelValue:t.tab,"onUpdate:modelValue":e[0]||(e[0]=f=>t.tab=f),class:"ml-3"},{default:n(()=>[l(N,{value:"0"},{default:n(()=>[...e[16]||(e[16]=[v(" Settings ",-1)])]),_:1}),l(N,{value:"1"},{default:n(()=>[...e[17]||(e[17]=[v(" Scale / Lines ",-1)])]),_:1}),l(N,{value:"2"},{default:n(()=>[...e[18]||(e[18]=[v(" Items ",-1)])]),_:1})]),_:1},8,["modelValue"]),l(Q,{modelValue:t.tab,"onUpdate:modelValue":e[11]||(e[11]=f=>t.tab=f)},{default:n(()=>[l(P,{value:"0",eager:""},{default:n(()=>[T("div",pe,[l(b,null,{default:n(()=>[l(c,null,{default:n(()=>[l(I,{class:"pa-0"},{default:n(()=>[l(x,{modelValue:t.graph.title,"onUpdate:modelValue":e[1]||(e[1]=f=>t.graph.title=f),class:"pb-2",label:"Title","hide-details":""},null,8,["modelValue"])]),_:1})]),_:1}),l(c,null,{default:n(()=>[l(D,{modelValue:t.graph.legendPosition,"onUpdate:modelValue":e[2]||(e[2]=f=>t.graph.legendPosition=f),label:"Legend Position","hide-details":"",items:t.legendPositions,style:{"max-width":"280px"}},null,8,["modelValue","items"])]),_:1})]),_:1})]),T("div",fe,[l(I,{class:"pa-0 d-flex align-center"},{default:n(()=>[e[21]||(e[21]=T("span",null," Select a start date/time for the graph. Leave blank to start at current time. ",-1)),l(d),l(A,{size:"small",variant:"outlined",class:"mr-2","data-test":"edit-graph-last-hour",onClick:s.setLastHour},{default:n(()=>[...e[19]||(e[19]=[v(" Last Hour ",-1)])]),_:1},8,["onClick"]),l(A,{size:"small",variant:"outlined","data-test":"edit-graph-clear-start",onClick:s.clearStart},{default:n(()=>[...e[20]||(e[20]=[v(" Clear ",-1)])]),_:1},8,["onClick"])]),_:1}),l(b,null,{default:n(()=>[l(c,null,{default:n(()=>[l(x,{modelValue:t.startDate,"onUpdate:modelValue":e[3]||(e[3]=f=>t.startDate=f),label:"Start Date",name:`date${Date.now()}`,rules:[s.rules.date],"error-messages":s.startDateError,type:"date"},null,8,["modelValue","name","rules","error-messages"])]),_:1}),l(c,null,{default:n(()=>[l(Y,{modelValue:t.startTime,"onUpdate:modelValue":e[4]||(e[4]=f=>t.startTime=f),label:"Start Time",rules:[s.rules.time],"error-messages":s.startTimeError},null,8,["modelValue","rules","error-messages"])]),_:1})]),_:1}),l(I,{class:"pa-0 d-flex align-center"},{default:n(()=>[e[23]||(e[23]=T("span",null," Select a end date/time for the graph. Leave blank for continuous real-time graphing. ",-1)),l(d),l(A,{size:"small",variant:"outlined","data-test":"edit-graph-clear-end",onClick:s.clearEnd},{default:n(()=>[...e[22]||(e[22]=[v(" Clear ",-1)])]),_:1},8,["onClick"])]),_:1}),l(b,null,{default:n(()=>[l(c,null,{default:n(()=>[l(x,{modelValue:t.endDate,"onUpdate:modelValue":e[5]||(e[5]=f=>t.endDate=f),label:"End Date",name:`date${Date.now()}`,rules:[s.rules.date],"error-messages":s.endDateError,type:"date"},null,8,["modelValue","name","rules","error-messages"])]),_:1}),l(c,null,{default:n(()=>[l(Y,{modelValue:t.endTime,"onUpdate:modelValue":e[6]||(e[6]=f=>t.endTime=f),label:"End Time",rules:[s.rules.time],"error-messages":s.endTimeError},null,8,["modelValue","rules","error-messages"])]),_:1})]),_:1})])]),_:1}),l(P,{value:"1",eager:""},{default:n(()=>[T("div",ge,[l(I,{class:"pa-0"},{default:n(()=>[...e[24]||(e[24]=[v(" Set a min or max Y value to override automatic scaling ",-1)])]),_:1}),l(b,{dense:""},{default:n(()=>[l(c,{class:"px-2"},{default:n(()=>[l(x,{modelValue:t.graph.graphMinY,"onUpdate:modelValue":e[7]||(e[7]=f=>t.graph.graphMinY=f),"hide-details":"",label:"Min Y Axis (Optional)",type:"number"},null,8,["modelValue"])]),_:1}),l(c,{class:"px-2"},{default:n(()=>[l(x,{modelValue:t.graph.graphMaxY,"onUpdate:modelValue":e[8]||(e[8]=f=>t.graph.graphMaxY=f),"hide-details":"",label:"Max Y Axis (Optional)",type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),T("div",ve,[l(_,{density:"compact",class:"horizontal-lines"},{default:n(()=>[l(w,null,{default:n(()=>[e[26]||(e[26]=T("span",{style:{"padding-top":"5px"}}," Add horizontal lines to the graph ",-1)),l(d),l(A,{onClick:e[9]||(e[9]=f=>s.addLine())},{default:n(()=>[...e[25]||(e[25]=[v(" New Line ",-1)])]),_:1})]),_:1}),(m(!0),E(z,null,de(t.graph.lines,(f,oe)=>(m(),y(w,{key:oe,value:f,color:"primary"},{default:n(()=>[l(b,null,{default:n(()=>[l(c,null,{default:n(()=>[l(x,{modelValue:f.yValue,"onUpdate:modelValue":H=>f.yValue=H,label:"Y Value"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),l(c,null,{default:n(()=>[l(D,{modelValue:f.color,"onUpdate:modelValue":H=>f.color=H,label:"Color","hide-details":"",items:i.colors},null,8,["modelValue","onUpdate:modelValue","items"])]),_:2},1024),l(c,null,{default:n(()=>[l(A,{style:{padding:"30px"},icon:"mdi-delete",variant:"text","aria-label":"Remove Line",onClick:H=>s.removeLine(f)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),T("div",ye,[l(I,{class:"pa-0 text-medium-emphasis"},{default:n(()=>[...e[27]||(e[27]=[v(" Choose a different item to use for the graph's X axis. If unchecked, the graph will use the packet's PACKET_TIMESECONDS item if it exists, otherwise it will use RECEIVED_TIMESECONDS. ",-1),T("br",null,null,-1),T("span",{class:"font-italic"}," Note that the graph may not work correctly if you choose an item that does not strictly increase in value. It is recommended to use a counter or timestamp. ",-1)])]),_:1}),l(O,{modelValue:t.customXAxisEnabled,"onUpdate:modelValue":[e[10]||(e[10]=f=>t.customXAxisEnabled=f),s.customXAxisToggled],disabled:!i.xAxisItemPacket,label:"Custom X axis item",density:"compact","hide-details":""},null,8,["modelValue","disabled","onUpdate:modelValue"]),i.xAxisItemPacket?k("",!0):(m(),y(I,{key:0,class:"pa-0 text-medium-emphasis"},{default:n(()=>[...e[28]||(e[28]=[v(" All items on the graph must be in the same packet to enable this feature. ",-1)])]),_:1})),t.customXAxisEnabled&&i.xAxisItemPacket?(m(),y(R,{key:1,"initial-target-name":i.xAxisItemPacket.targetName,"initial-packet-name":i.xAxisItemPacket.packetName,"initial-item-name":s.initialXAxisItem,"choose-item":"","lock-target":"","lock-packet":"","button-text":"Set",onOnSet:s.xAxisItemChanged,onAddItem:s.xAxisItemSelected},null,8,["initial-target-name","initial-packet-name","initial-item-name","onOnSet","onAddItem"])):k("",!0)])]),_:1}),l(P,{value:"2",eager:""},{default:n(()=>[l(Z,{"item-key":"itemId",class:"elevation-1 my-2","data-test":"edit-graph-items",headers:t.itemHeaders,items:s.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},{"item.actions":n(({item:f})=>[l(A,{icon:"mdi-delete",variant:"text","aria-label":"Remove Item",onClick:oe=>t.$emit("remove",f)},null,8,["onClick"])]),"no-data":n(()=>[...e[29]||(e[29]=[T("span",null," Currently no items on this graph ",-1)])]),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"]),l(J,{class:"px-2"},{default:n(()=>[l(d),l(A,{variant:"outlined",onClick:e[12]||(e[12]=f=>t.$emit("cancel"))},{default:n(()=>[...e[30]||(e[30]=[v(" Cancel ",-1)])]),_:1}),l(A,{variant:"flat",disabled:s.isInvalid,onClick:s.closeOk},{default:n(()=>[...e[31]||(e[31]=[v(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const xe=S(me,[["render",be]]),Ne={props:{modelValue:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},emits:["cancel","changeColor","changeLimits","close","update:modelValue"],data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},new U().get_item(this.item.targetName,this.item.packetName,this.item.itemName).then(t=>{for(const[e,i]of Object.entries(t.limits))Object.keys(i).includes("red_low")&&(this.limits[e]=Object.values(i));this.limitsName=Object.keys(this.limits).find(e=>this.limits[e]+""==this.editItem.limits+"")})}},Te={key:0},ke={class:"pa-3"};function Ie(t,e,i,r,a,s){const d=o("v-card-title"),h=o("v-select"),N=o("v-card-text"),g=o("v-spacer"),x=o("v-btn"),I=o("v-card-actions"),c=o("v-card"),D=o("v-dialog");return m(),y(D,{modelValue:s.show,"onUpdate:modelValue":e[9]||(e[9]=b=>s.show=b),persistent:"",width:"400",onKeydown:[e[10]||(e[10]=$(b=>t.success(),["enter"])),e[11]||(e[11]=$(b=>t.$emit("cancel"),["esc"]))]},{default:n(()=>[l(c,null,{default:n(()=>[l(d,{class:"mb-2"},{default:n(()=>[...e[12]||(e[12]=[v("Edit Item",-1)])]),_:1}),l(N,null,{default:n(()=>[l(h,{modelValue:t.editItem.valueType,"onUpdate:modelValue":e[0]||(e[0]=b=>t.editItem.valueType=b),variant:"outlined","hide-details":"",label:"Value Type",items:t.valueTypes,class:"mb-2"},null,8,["modelValue","items"]),l(h,{modelValue:t.editItem.reduced,"onUpdate:modelValue":e[1]||(e[1]=b=>t.editItem.reduced=b),variant:"outlined","hide-details":"",label:"Reduction",items:t.reduction,class:"mb-2"},null,8,["modelValue","items"]),l(h,{modelValue:t.editItem.reducedType,"onUpdate:modelValue":e[2]||(e[2]=b=>t.editItem.reducedType=b),variant:"outlined","hide-details":"",label:"Reduced Type",items:t.reducedTypes,disabled:t.editItem.reduced==="DECOM",class:"mb-2"},null,8,["modelValue","items","disabled"]),l(h,{modelValue:t.editItem.color,"onUpdate:modelValue":[e[3]||(e[3]=b=>t.editItem.color=b),e[4]||(e[4]=b=>t.$emit("changeColor",b))],variant:"outlined","hide-details":"",label:"Color",items:i.colors,class:"mb-2"},null,8,["modelValue","items"]),s.limitsNames.length>1?(m(),E("div",Te,[l(h,{modelValue:t.limitsName,"onUpdate:modelValue":[e[5]||(e[5]=b=>t.limitsName=b),e[6]||(e[6]=b=>t.$emit("changeLimits",t.limits[t.limitsName]))],variant:"outlined","hide-details":"",label:"Display Limits",items:s.limitsNames},null,8,["modelValue","items"]),T("div",ke,C(t.limitsName)+": "+C(t.limits[t.limitsName]),1)])):k("",!0)]),_:1}),l(I,{class:"px-2"},{default:n(()=>[l(g),l(x,{variant:"outlined",onClick:e[7]||(e[7]=b=>t.$emit("cancel"))},{default:n(()=>[...e[13]||(e[13]=[v(" Cancel ",-1)])]),_:1}),l(x,{variant:"flat",onClick:e[8]||(e[8]=b=>t.$emit("close",t.editItem))},{default:n(()=>[...e[14]||(e[14]=[v(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const De=S(Ne,[["render",Ie]]),G="__time",Ae=10,we={components:{GraphEditDialog:xe,GraphEditItemDialog:De},mixins:[X],props:{id:{type:Number,required:!0},selectedGraphId:{type:Number,default:null},state:{type:String,required:!0},startTime:{type:Number,default:null},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideToolbar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},hideLegend:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array,default:()=>[]},initialXAxisItem:{type:String,default:G},height:{type:Number,default:null},width:{type:Number,default:null},timeZone:{type:String,default:"local"}},emits:["click","close-graph","edit","min-max-graph","pause","resize","start","started","hide-legend"],setup(){return{store:ae()}},data(){return{api:null,lines:[],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendHidden:this.hideLegend,legendPosition:"bottom",selectedItem:null,hideToolbarData:this.hideToolbar,showOverview:!this.hideOverview,hideOverviewData:this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,interval:null,graphMinY:null,graphMaxY:null,graphStartDateTime:null,graphEndDateTime:null,xAxisItem:this.initialXAxisItem,indexes:{},items:this.initialItems,graphItems:[],lastPlaybackDateTime:null,limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new ie,subscription:null,needToUpdate:!1,pendingData:[],processingRAF:null,lastRenderTime:0,subscribeTime:null,emptyDataNotified:!1,notifyNonNumeric:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null},itemSubscriptionKeys:function(){return this.items.map(this.subscriptionKey)},allowableXAxisItemPacket:function(){if(!this.canUseCustomXAxisItem||this.items.length===0)return;const{targetName:t,packetName:e}=this.items[0];return{targetName:t,packetName:e}},canUseCustomXAxisItem:function(){if(this.items.length===0)return!0;const{targetName:t,packetName:e}=this.items[0];return this.items.every(i=>i.targetName===t&&i.packetName===e)},actualXAxisItem:function(){return this.canUseCustomXAxisItem&&this.xAxisItem?this.xAxisItem:G},xAxisConverter:function(){return this.xAxisIsDefault?t=>t/1e9:t=>t},xAxisFormatter:function(){return t=>t==null?"--":this.xAxisIsTime?this.formatSeconds(t,this.timeZone):t},xAxisLabel:function(){return this.xAxisIsTime?"Time":this.actualXAxisItem.split("__").at(-2)},xAxisIsDefault:function(){return this.actualXAxisItem===G},xAxisIsTime:function(){const t=["PACKET_TIMESECONDS","RECEIVED_TIMESECONDS"];return this.xAxisIsDefault||t.includes(this.actualXAxisItem.split("__").at(4))},xAxisIsAlsoGraphedItem:function(){return this.itemSubscriptionKeys.includes(this.actualXAxisItem)},playbackMode:function(){return this.store.playback.playbackMode},playbackDateTime:function(){return this.store.playback.playbackDateTime},playbackStep:function(){return this.store.playback.playbackStep}},watch:{hideLegend:function(t){this.legendHidden=t},legendHidden:function(t){this.applyHideLegend(t)},notifyNonNumeric:function(){this.$notify.caution({title:"Non-numeric item",body:"Received ungraphable data."})},state:function(t,e){switch(t){case"start":e==="stop"&&this.startGraph();break;case"stop":this.stopGraph();break}},playbackMode:function(t,e){this.playbackMode==="playback"?this.setupPlaybackMode():(this.lastPlaybackDateTime=null,this.clearAllData(),this.startGraph())},playbackDateTime:function(t,e){this.playbackMode==="playback"&&(this.lastPlaybackDateTime===null||this.lastPlaybackDateTime>this.playbackDateTime?this.clearAllData():(this.store.updatePlayback({playbackLoading:this.store.playback.playbackLoading+1}),this.api.get_tlm_values(this.graphItems,30,null,this.lastPlaybackDateTime,this.playbackDateTime).then(i=>{if(i.length>0){const r=Array.isArray(i[0])&&Array.isArray(i[0][0])?i:[i];for(const a of r)for(let s=0;s<a.length;s++)this.data[s].push(a[s][0])}this.dataChanged=!0,this.updateGraphData()}).catch(i=>{console.error("Error fetching playback telemetry:",i)}).finally(()=>{this.store.updatePlayback({playbackLoading:Math.max(0,this.store.playback.playbackLoading-1)})})),this.lastPlaybackDateTime=this.playbackDateTime)},data:function(t,e){this.dataChanged=!0},graphMinY:function(t,e){let i=Number.parseFloat(t);Number.isFinite(i)&&(this.graphMinY=i),this.setGraphRange()},graphMaxY:function(t,e){let i=Number.parseFloat(t);Number.isFinite(i)&&(this.graphMaxY=i),this.setGraphRange()},graphStartDateTime:function(t,e){t&&typeof t=="string"?(this.graphStartDateTime=this.parseDateTime(this.graphStartDateTime,this.timeZone)*1e6,this.graphStartDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(t,e){t&&typeof t=="string"?(this.graphEndDateTime=this.parseDateTime(this.graphEndDateTime,this.timeZone)*1e6,this.graphEndDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphEndDateTime=null,this.needToUpdate=!0)},actualXAxisItem:function(t,e){let i=JSON.parse(JSON.stringify(this.items));this.removeItems(i),this.graph.destroy(),this.chartOpts.series[0].label=this.xAxisLabel,this.chartOpts.scales.x.time=this.xAxisIsTime,this.graph=new V(this.chartOpts,this.data,document.getElementById(`chart${this.id}`)),this.hideOverview||(this.overview.destroy(),this.overviewOpts.scales.x.time=this.xAxisIsTime,this.overview=new V(this.overviewOpts,this.data,document.getElementById(`overview${this.id}`))),this.addItems(i)},refreshIntervalMs:function(t){this.interval&&(clearInterval(this.interval),this.interval=setInterval(()=>{this.updateGraphData()},t))}},created(){this.api=new U,this.title=`Graph ${this.id}`;for(const[t,e]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(e)]=t+1,e.color===void 0&&(e.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:t,overviewSeries:e}=this.items.reduce((i,r)=>{const a={spanGaps:!0};return i.chartSeries.push({...a,item:r,label:this.formatLabel(r),stroke:(s,d)=>this.items[d-1].color,width:2,value:(s,d)=>typeof d=="string"||Number.isNaN(d)?"NaN":d==null?"--":d.toFixed(3)}),i.overviewSeries.push({...a}),i},{chartSeries:[],overviewSeries:[]});if(this.chartOpts={},this.sparkline)this.hideToolbarData=!0,this.hideOverviewData=!0,this.showOverview=!1,this.chartOpts={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new V(this.chartOpts,this.data,document.getElementById(`chart${this.id}`));else{let i=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&this.timeZone!=="local"&&(i=this.timeZone),this.chartOpts={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:r=>V.tzDate(new Date(r*1e3),i),series:[{label:this.xAxisLabel,value:(r,a)=>this.xAxisFormatter(a)},...t],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(r,a,s)=>d=>{this.state==="pause"&&r.select.width===0&&this.$emit("start"),s(d)}}},hooks:{setScale:[(r,a)=>{if(a==="x"&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let s=Math.round(this.overview.valToPos(r.scales.x.min,"x")),d=Math.round(this.overview.valToPos(r.scales.x.max,"x"));this.overview.setSelect({left:s,width:d-s}),this.zoomChart=!1}}],setSelect:[r=>{this.state==="start"&&r.select.width>0&&this.$emit("pause")}],ready:[r=>{r.root.querySelector(".u-over").addEventListener("contextmenu",s=>{s.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=s.clientX,this.editGraphMenuY=s.clientY,this.editGraphMenu=!0});let a=r.root.querySelector(".u-legend");a.addEventListener("contextmenu",s=>{s.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=s.clientX,this.itemMenuY=s.clientY;let d=s.target.closest(".u-series"),h=Array.prototype.slice.call(a.childNodes[0].childNodes).indexOf(d),N=r.series[h];N.item?(this.selectedItem=N.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=s.clientX,this.legendMenuY=s.clientY,this.legendMenu=!0)}),a.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new V(this.chartOpts,this.data,document.getElementById(`chart${this.id}`)),this.overviewOpts={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:r=>V.tzDate(new Date(r*1e3),i),series:[...e],cursor:{y:!1,drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[r=>{if(!this.zoomChart){this.state==="start"&&r.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let a=r.posToVal(r.select.left,"x"),s=r.posToVal(r.select.left+r.select.width,"x");this.graph.setScale("x",{min:a,max:s}),this.zoomOverview=!1}}]}},this.hideOverview||(this.overview=new V(this.overviewOpts,this.data,document.getElementById(`overview${this.id}`))),this.moveLegend(this.legendPosition),this.applyHideLegend(this.legendHidden),window.addEventListener("resize",this.resize)}this.playbackMode!=="playback"?this.state!=="stop"&&this.startGraph():this.setupPlaybackMode()},beforeUnmount:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},methods:{setupPlaybackMode:function(){this.stopGraph(),this.clearAllData();const t=this.itemSubscriptionKeys.map(e=>e.split("__").slice(2).join("__"));if(this.actualXAxisItem===G){const e=t[0].split("__").slice(0,2).join("__");t.unshift(`${e}__PACKET_TIMESECONDS__RAW`)}else this.xAxisIsAlsoGraphedItem||t.unshift(this.actualXAxisItem);this.api.get_tlm_available(t).then(e=>{this.graphItems=e,t.length!=e.length&&console.log("Error getting tlm available",t,this.graphItems)})},startGraph:function(){this.subscribe(),this.interval=setInterval(()=>{this.updateGraphData()},this.refreshIntervalMs)},stopGraph:function(){this.processingRAF!==null&&(cancelAnimationFrame(this.processingRAF),this.processingRAF=null),this.pendingData=[],this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.interval&&(clearInterval(this.interval),this.interval=null)},updateGraphData:function(){if(this.state==="pause"||(!this.emptyDataNotified&&this.graphStartDateTime&&this.subscribeTime!==null&&performance.now()-this.subscribeTime>5e3&&(!this.data[0]||this.data[0].length===0)&&(this.emptyDataNotified=!0,this.$notify.caution({title:"Empty graph data",body:"No data was returned for the selected time range."})),!this.dataChanged)||(this.pendingData.length>0||this.processingRAF!==null)&&performance.now()-this.lastRenderTime<1e3)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data),this.lastRenderTime=performance.now();const t=this.data[0];if(t&&t.length){let e=t.at(-1);const i=[t.at(0)];this.pointsGraphed<=t.length&&i.push(t.at(-this.pointsGraphed)),this.xAxisIsTime&&i.push(e-this.secondsGraphed);const r=Math.max(...i);r===e&&(e+=1),this.graph.setScale("x",{min:r,max:e})}else if(this.graphStartDateTime){const e=this.graphStartDateTime/1e9,i=this.graphEndDateTime?this.graphEndDateTime/1e9:Date.now()/1e3;this.graph.setScale("x",{min:e,max:i})}this.dataChanged=!1},formatLabel(t){if(t.valueType==="CONVERTED"&&t.reduced==="DECOM")return t.itemName;{let e="";return t.valueType!=="CONVERTED"&&(e+=t.valueType),t.reduced!=="DECOM"&&(e!==""&&(e+=" "),e+=`${t.reduced.split("_")[1]} ${t.reducedType}`),`${t.itemName} (${e})`}},applyHideLegend:function(t){if(!this.graph)return;const e=this.graph.root.querySelector(".u-legend");e&&(e.style.display=t?"none":""),this.resize()},legendHide:function(){this.legendHidden=!0,this.$emit("hide-legend")},moveLegend:function(t){switch(t){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=t,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(t){this.editGraph=!1,this.title=t.title,this.legendPosition=t.legendPosition,this.graphMinY=t.graphMinY,this.graphMaxY=t.graphMaxY,this.lines=[...t.lines],this.graphStartDateTime=t.startDateTime,this.graphEndDateTime=t.endDateTime,this.$nextTick(()=>{if(this.needToUpdate){if(this.subscription==null)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout(()=>{this.addItems(e)},0)}this.needToUpdate=!1}}),this.moveLegend(this.legendPosition),this.$emit("edit")},resize:function(){this.graph&&(this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id))},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let t=.1;(this.graphMinY||this.graphMinY===0||this.graphMaxY||this.graphMaxY===0)&&(t=0),this.graph.scales.y.range=(e,i,r)=>{let a=i;(this.graphMinY||this.graphMinY===0)&&(a=this.graphMinY);let s=r;return(this.graphMaxY||this.graphMaxY===0)&&(s=this.graphMaxY),V.rangeNum(a,s,t,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:t=>this.received(t),connected:()=>{const t=[...this.items];!this.xAxisIsDefault&&!this.xAxisIsAlsoGraphedItem&&t.push(this.actualXAxisItem),this.addItemsToSubscription(t)},disconnected:t=>{t.allowReconnect&&this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(t=>{this.subscription=t})},getSize:function(t){let e=0;const i=document.getElementById("openc3-nav-drawer");i&&(e=i.classList.contains("v-navigation-drawer--active")?i.clientWidth:0);let r=0;(this.legendPosition==="right"||this.legendPosition==="left")&&(r=document.getElementsByClassName("u-legend")[0].clientWidth);const a=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-e-r,s=Math.max(document.documentElement.clientHeight,window.innerHeight||0),d=document.getElementsByClassName("v-expansion-panel")[0];let h=100;t==="overview"?this.fullHeight&&!this.hideOverviewData?this.showOverview=!0:this.showOverview=!1:(h=s-d.clientHeight-h-250,this.fullHeight||(h=h/2+10));let N=a-70;return this.fullWidth||(N=N/2-12),{width:this.width||N,height:this.height||h}},getScales:function(){return{scales:{x:{range:(t,e,i)=>{if(e==null){if(this.graphStartDateTime){const r=this.graphEndDateTime?this.graphEndDateTime/1e9:Date.now()/1e3;return[this.graphStartDateTime/1e9,r]}if(this.xAxisIsTime){const r=Date.now()/1e3;return[r-3600,r]}return[0,1]}return[e,i]},time:this.xAxisIsTime},y:{range:(t,e,i)=>e==null?[-100,100]:V.rangeNum(e,i,.1,!0)}}}},getAxes:function(t){let e="rgba(255, 255, 255, .1)",i="white";return{axes:[{stroke:i,grid:{show:!0,stroke:e,width:2}},{size:80,stroke:i,grid:{show:t!=="overview",stroke:e,width:2},values(r,a){return(a.some(s=>s>=1e7)||a.every(s=>s<.01))&&(a=a.map(s=>s.toExponential(3))),a}}]}},closeEditItem:function(t){this.editItem=!1,(this.graphEndDateTime!==null&&this.selectedItem!==t||this.selectedItem.valueType!==t.valueType||this.selectedItem.reduced!==t.reduced||this.selectedItem.reducedType!==t.reducedType)&&this.changeItem(t)},changeColor:function(t){let e=this.subscriptionKey(this.selectedItem),i=this.indexes[e];this.items[i-1].color=t,this.selectedItem.color=t,this.graph.root.querySelectorAll(".u-marker")[i].style.borderColor=t},changeLimits:function(t){let e=this.subscriptionKey(this.selectedItem),i=this.indexes[e];this.items[i-1].limits=t,this.selectedItem.limits=t,this.limitsValues=t},linesPlugin:function(){return{hooks:{draw:t=>{const{ctx:e,bbox:i}=t,r=t.valToPos(t.scales.y.min,"y",!0),a=t.valToPos(t.scales.y.max,"y",!0),s=t.valToPos(this.limitsValues[0],"y",!0),d=t.valToPos(this.limitsValues[1],"y",!0),h=t.valToPos(this.limitsValues[2],"y",!0),N=t.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach(g=>{t.scales.y.min<=g.yValue&&g.yValue<=t.scales.y.max&&(e.save(),e.beginPath(),e.strokeStyle=g.color,e.lineWidth=2,e.moveTo(i.left,t.valToPos(g.yValue,"y",!0)),e.lineTo(i.left+i.width,t.valToPos(g.yValue,"y",!0)),e.stroke(),e.restore())}),e.save(),e.beginPath(),e.fillStyle="rgba(255,0,0,0.15)",t.scales.y.min<this.limitsValues[0]){let g=s<a?a:s;e.fillRect(i.left,s,i.width,r-g)}if(t.scales.y.max>this.limitsValues[3]){let g=r<N?r:N;e.fillRect(i.left,a,i.width,g-a)}if(e.fillStyle="rgba(255,255,0,0.15)",t.scales.y.min<this.limitsValues[1]&&t.scales.y.max>this.limitsValues[0]){let g=d<a?a:d;e.fillRect(i.left,g,i.width,s-g)}if(t.scales.y.max>this.limitsValues[2]&&t.scales.y.min<this.limitsValues[3]){let g=r<N?r:N,x=r<h?r:h;e.fillRect(i.left,g,i.width,x-g)}if(e.fillStyle="rgba(0,255,0,0.15)",this.limitsValues.length===4){if(t.scales.y.min<this.limitsValues[2]&&t.scales.y.max>this.limitsValues[1]){let g=h<a?a:h,x=r<d?r:d;e.fillRect(i.left,g,i.width,x-g)}}else{const g=t.valToPos(this.limitsValues[4],"y",!0),x=t.valToPos(this.limitsValues[5],"y",!0);if(t.scales.y.min<this.limitsValues[4]&&t.scales.y.max>this.limitsValues[1]){let D=g<a?a:g;e.fillRect(i.left,D,i.width,d-D)}if(t.scales.y.max>this.limitsValues[5]&&t.scales.y.min<this.limitsValues[2]){let D=r<h?r:h,b=r<x?r:x;e.fillRect(i.left,D,i.width,b-D)}e.fillStyle="rgba(0,0,255,0.15)";let I=x<a?a:x,c=r<g?r:g;e.fillRect(i.left,I,i.width,c-I)}e.stroke(),e.restore()}}}},changeItem:function(t){this.removeItems([this.selectedItem]),this.selectedItem.valueType=t.valueType,this.selectedItem.reduced=t.reduced,this.selectedItem.reducedType=t.reducedType,setTimeout(()=>{this.addItems([this.selectedItem])},0)},addItems:function(t,e="CONVERTED"){t.forEach(i=>{i.valueType||=e,i.color||=this.colors[this.colorIndex],i.limits||=[],i.limits.length>0&&(this.limitsValues=i.limits),this.colorIndex=(this.colorIndex+1)%this.colors.length,this.items.push(i);const r=this.data.length;this.graph.addSeries(this.createSeriesConfig(i),r),this.overview&&this.overview.addSeries(this.createOverviewSeriesConfig(),r),this.data.splice(r,0,Array(this.data[0].length)),this.indexes[this.subscriptionKey(i)]=r}),this.updateColorIndex(t),this.xAxisIsDefault||t.push(this.actualXAxisItem),this.addItemsToSubscription(t),this.$emit("resize"),this.$emit("edit")},createSeriesConfig:function(t){return{spanGaps:!0,item:t,label:this.formatLabel(t),stroke:(e,i)=>this.items[i-1].color,width:2,value:(e,i)=>typeof i=="string"||Number.isNaN(i)?"NaN":i==null?"--":Math.abs(i)<.01&&i!==0||Math.abs(i)>=1e7?i.toExponential(6):i.toFixed(6)}},createOverviewSeriesConfig:function(){return{spanGaps:!0,stroke:(t,e)=>this.items[e-1].color}},updateColorIndex:function(t){const e=t[t.length-1];if(e){const i=this.colors.indexOf(e.color);i!==-1&&(this.colorIndex=(i+1)%this.colors.length)}},addItemsToSubscription:function(t=this.items){let e=this.startTime;this.graphStartDateTime&&(e=this.graphStartDateTime);const i=t.map(r=>{if(typeof r=="object")return this.subscriptionKey(r);if(typeof r=="string")return r;throw new Error(`Invalid subscription item type for ${r}: ${typeof r}`)});this.subscription&&(this.subscribeTime=performance.now(),this.emptyDataNotified=!1,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(r=>{r&&OpenC3Auth.setTokens(),this.subscription?.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:i,start_time:e,end_time:this.graphEndDateTime})}))},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(t){for(const e of t.map(this.subscriptionKey)){let i=this.indexes[e];this.data[i]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}this.data.length===2&&(this.data[0]=[],this.graph.setData(this.data),this.overview&&this.overview.setData(this.data))},removeItems:function(t){this.removeItemsFromSubscription(t);for(const e of t.map(this.subscriptionKey)){const i=this.reorderIndexes(e);this.items.splice(i-1,1),this.data.splice(i,1),this.graph.delSeries(i),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(i),this.overview.setData(this.data))}this.data.length===1&&(this.data[0]=[],this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)),this.$emit("resize"),this.$emit("edit")},removeItemsFromSubscription:function(t=this.items){if(this.subscription){const e=t.map(i=>{if(typeof i=="object")return this.subscriptionKey(i);if(typeof i=="string")return i;throw new Error(`Invalid subscription item type for ${i}: ${typeof i}`)});this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e})}},reorderIndexes:function(t){let e=this.indexes[t];delete this.indexes[t];for(let i in this.indexes)this.indexes[i]>e&&(this.indexes[i]-=1);return e},received:function(t){this.cable.recordPing(),this.pendingData.push(t),this.processingRAF===null&&(this.processingRAF=requestAnimationFrame(()=>this.processReceivedData()))},processReceivedData:function(){this.processingRAF=null;const t=performance.now();for(;this.pendingData.length>0;){const e=this.pendingData.shift();if(this.processDataBatch(e),performance.now()-t>Ae&&this.pendingData.length>0){this.processingRAF=requestAnimationFrame(()=>this.processReceivedData());break}}},processDataBatch:function(t){for(let e=0;e<t.length;e++){if(!t[e].hasOwnProperty(this.actualXAxisItem))continue;let i=this.xAxisConverter(t[e][this.actualXAxisItem]),r=this.data[0].length;if(r===0||i>this.data[0][r-1]){for(let a=0;a<this.data.length;a++)this.data[a].push(null);this.setDataAtIndex(this.data[0].length-1,i,t[e])}else if(i===this.data[0][r-1])this.setDataAtIndex(r-1,i,t[e]);else{let a=te(this.data[0],i,this.bsComparator);if(a>=0)this.setDataAtIndex(a,i,t[e]);else{const s=-a-1;for(let d=0;d<this.data.length;d++)this.data[d].splice(s,0,null);this.setDataAtIndex(s,i,t[e])}}}if(this.pointsSaved>0&&this.data[0].length>this.pointsSaved+300){const e=this.data[0].length-this.pointsSaved;for(let i=0;i<this.data.length;i++)this.data[i].splice(0,e)}if(this.startTime==null&&this.data[0][0]){let e=this.data[0][0]*1e9;this.$emit("started",e)}this.dataChanged=!0},bsComparator:function(t,e){return t-e},setDataAtIndex:function(t,e,i){this.data[0][t]=e;for(const[r,a]of Object.entries(i)){if(r===this.actualXAxisItem&&!this.xAxisIsAlsoGraphedItem)continue;const s=this.indexes[r];if(s){let d=this.data[s];if(a?.raw)d[t]=null;else if(typeof a!="number"){if(d[t]=null,this.notifyNonNumeric=!0,!r.includes("__RAW")){for(let h of this.items)if(this.subscriptionKey(h)===r){this.selectedItem=h;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else d[t]=a}}},subscriptionKey:function(t){let e=`${t.reduced}__TLM__${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`;return(t.reduced==="REDUCED_MINUTE"||t.reduced==="REDUCED_HOUR"||t.reduced==="REDUCED_DAY")&&(e+=`__${t.reducedType}`),e}}},_e={id:"chart",ref:"chart",class:"pa-1"},Ve=["id"],Ce=["id"],Ee={key:5,ref:"info",class:"u-series"};function Se(t,e,i,r,a,s){const d=o("v-btn"),h=o("v-icon"),N=o("v-tooltip"),g=o("v-spacer"),x=o("v-toolbar"),I=o("v-expand-transition"),c=o("v-card"),D=o("graph-edit-dialog"),b=o("v-text-field"),A=o("v-row"),Y=o("v-textarea"),P=o("v-dialog"),w=o("v-list-item-title"),_=o("v-list-item"),O=o("v-list"),R=o("v-menu"),Z=o("graph-edit-item-dialog"),Q=o("v-list-subheader"),J=o("v-divider");return m(),E("div",{onClick:e[22]||(e[22]=K(p=>t.$emit("click"),["prevent"]))},[l(c,null,{default:n(()=>[M(l(x,{height:"24",class:W(["pl-2 pr-2",i.selectedGraphId===i.id?"active":""])},{default:n(()=>[M(l(d,{class:"mx-2",icon:"mdi-alert",density:"compact",variant:"text","aria-label":"Show Errors",onClick:e[0]||(e[0]=()=>{a.errorDialog=!0})},null,512),[[L,a.errors.length!==0]]),l(d,{icon:"mdi-pencil",variant:"text",density:"compact","data-test":"edit-graph-icon","aria-label":"Edit Graph",onClick:e[1]||(e[1]=()=>{a.editGraph=!0})}),a.legendHidden?(m(),y(N,{key:0,text:"Legend hidden. Restore via Graph > Settings dialog.",location:"bottom"},{activator:n(({props:p})=>[l(h,le(p,{size:"small",class:"mx-1"}),{default:n(()=>[...e[23]||(e[23]=[v(" mdi-information-outline ",-1)])]),_:1},16)]),_:1})):k("",!0),l(g),T("span",null,C(a.title),1),l(g),a.expand?(m(),E(z,{key:1},[s.calcFullSize?(m(),y(d,{key:0,icon:"mdi-arrow-collapse",variant:"text",density:"compact","data-test":"collapse-all",onClick:s.collapseAll},null,8,["onClick"])):(m(),y(d,{key:1,icon:"mdi-arrow-expand",variant:"text",density:"compact","data-test":"expand-all",onClick:s.expandAll},null,8,["onClick"])),a.fullWidth?(m(),y(d,{key:2,icon:"mdi-arrow-collapse-horizontal",variant:"text",density:"compact","data-test":"collapse-width",onClick:s.collapseWidth},null,8,["onClick"])):(m(),y(d,{key:3,icon:"mdi-arrow-expand-horizontal",variant:"text",density:"compact","data-test":"expand-width",onClick:s.expandWidth},null,8,["onClick"])),a.fullHeight?(m(),y(d,{key:4,icon:"mdi-arrow-collapse-vertical",variant:"text",density:"compact","data-test":"collapse-height",onClick:s.collapseHeight},null,8,["onClick"])):(m(),y(d,{key:5,icon:"mdi-arrow-expand-vertical",variant:"text",density:"compact","data-test":"expand-height",onClick:s.expandHeight},null,8,["onClick"]))],64)):k("",!0),a.expand?(m(),y(d,{key:2,icon:"mdi-window-minimize",variant:"text",density:"compact","data-test":"minimize-screen-icon",onClick:s.minMaxTransition},null,8,["onClick"])):(m(),y(d,{key:3,icon:"mdi-window-maximize",variant:"text",density:"compact","data-test":"maximize-screen-icon",onClick:s.minMaxTransition},null,8,["onClick"])),l(d,{icon:"mdi-close-box",variant:"text",density:"compact","data-test":"close-graph-icon",onClick:e[2]||(e[2]=K(p=>t.$emit("close-graph"),["stop"]))})]),_:1},8,["class"]),[[L,!a.hideToolbarData]]),l(I,{onAfterEnter:s.resize},{default:n(()=>[M(T("div",_e,[T("div",{id:`chart${i.id}`},null,8,Ve),e[24]||(e[24]=T("div",{id:"betweenCharts"},null,-1)),M(T("div",{id:`overview${i.id}`},null,8,Ce),[[L,a.showOverview]])],512),[[L,a.expand]])]),_:1},8,["onAfterEnter"])]),_:1}),a.editGraph?(m(),y(D,{key:0,modelValue:a.editGraph,"onUpdate:modelValue":e[3]||(e[3]=p=>a.editGraph=p),"x-axis-item":a.xAxisItem,"onUpdate:xAxisItem":e[4]||(e[4]=p=>a.xAxisItem=p),title:a.title,"legend-position":a.legendPosition,items:a.items,"graph-min-y":a.graphMinY,"graph-max-y":a.graphMaxY,lines:a.lines,colors:a.colors,"start-date-time":a.graphStartDateTime,"end-date-time":a.graphEndDateTime,"time-zone":i.timeZone,"x-axis-item-packet":s.allowableXAxisItemPacket,onRemove:e[5]||(e[5]=p=>s.removeItems([p])),onOk:s.editGraphClose,onCancel:e[6]||(e[6]=p=>a.editGraph=!1)},null,8,["modelValue","x-axis-item","title","legend-position","items","graph-min-y","graph-max-y","lines","colors","start-date-time","end-date-time","time-zone","x-axis-item-packet","onOk"])):k("",!0),l(P,{modelValue:a.errorDialog,"onUpdate:modelValue":e[8]||(e[8]=p=>a.errorDialog=p),"max-width":"600"},{default:n(()=>[l(x,{height:"24"},{default:n(()=>[l(g),e[25]||(e[25]=T("span",null," Errors ",-1)),l(g)]),_:1}),l(c,{class:"pa-3"},{default:n(()=>[l(A,{dense:""},{default:n(()=>[l(b,{modelValue:a.title,"onUpdate:modelValue":e[7]||(e[7]=p=>a.title=p),readonly:"","hide-details":"",class:"pb-2",label:"Graph Title"},null,8,["modelValue"])]),_:1}),l(A,{class:"my-3"},{default:n(()=>[l(Y,{readonly:"",rows:"8","model-value":s.error},null,8,["model-value"])]),_:1}),l(A,null,{default:n(()=>[l(d,{block:"",onClick:s.clearErrors},{default:n(()=>[...e[26]||(e[26]=[v(" Clear ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),a.editGraphMenu?(m(),y(R,{key:1,modelValue:a.editGraphMenu,"onUpdate:modelValue":e[10]||(e[10]=p=>a.editGraphMenu=p),target:[a.editGraphMenuX,a.editGraphMenuY],absolute:""},{default:n(()=>[l(O,null,{default:n(()=>[l(_,{onClick:e[9]||(e[9]=p=>a.editGraph=!0)},{default:n(()=>[l(w,{style:{cursor:"pointer"}},{default:n(()=>[v(" Edit "+C(a.title),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):k("",!0),a.editItem?(m(),y(Z,{key:2,modelValue:a.editItem,"onUpdate:modelValue":e[11]||(e[11]=p=>a.editItem=p),colors:a.colors,item:a.selectedItem,onChangeColor:s.changeColor,onChangeLimits:s.changeLimits,onCancel:e[12]||(e[12]=p=>a.editItem=!1),onClose:s.closeEditItem},null,8,["modelValue","colors","item","onChangeColor","onChangeLimits","onClose"])):k("",!0),a.itemMenu?(m(),y(R,{key:3,modelValue:a.itemMenu,"onUpdate:modelValue":e[16]||(e[16]=p=>a.itemMenu=p),target:[a.itemMenuX,a.itemMenuY],absolute:""},{default:n(()=>[l(O,{nav:"",density:"compact"},{default:n(()=>[l(Q,null,{default:n(()=>[v(C(a.selectedItem.targetName)+" "+C(a.selectedItem.packetName)+" "+C(a.selectedItem.itemName),1)]),_:1}),l(_,{onClick:e[13]||(e[13]=p=>a.editItem=!0)},{prepend:n(()=>[l(h,{icon:"mdi-pencil"})]),default:n(()=>[l(w,null,{default:n(()=>[...e[27]||(e[27]=[v(" Edit ",-1)])]),_:1})]),_:1}),l(_,{onClick:e[14]||(e[14]=p=>s.clearData([a.selectedItem]))},{prepend:n(()=>[l(h,{icon:"mdi-eraser"})]),default:n(()=>[l(w,null,{default:n(()=>[...e[28]||(e[28]=[v(" Clear ",-1)])]),_:1})]),_:1}),l(_,{onClick:e[15]||(e[15]=p=>s.removeItems([a.selectedItem]))},{prepend:n(()=>[l(h,{icon:"mdi-delete"})]),default:n(()=>[l(w,null,{default:n(()=>[...e[29]||(e[29]=[v(" Delete ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):k("",!0),a.legendMenu?(m(),y(R,{key:4,modelValue:a.legendMenu,"onUpdate:modelValue":e[21]||(e[21]=p=>a.legendMenu=p),target:[a.legendMenuX,a.legendMenuY],absolute:""},{default:n(()=>[l(O,null,{default:n(()=>[l(_,{onClick:e[17]||(e[17]=p=>s.moveLegend("top"))},{default:n(()=>[l(w,{style:{cursor:"pointer"}},{default:n(()=>[...e[30]||(e[30]=[v(" Legend Top ",-1)])]),_:1})]),_:1}),l(_,{onClick:e[18]||(e[18]=p=>s.moveLegend("bottom"))},{default:n(()=>[l(w,{style:{cursor:"pointer"}},{default:n(()=>[...e[31]||(e[31]=[v(" Legend Bottom ",-1)])]),_:1})]),_:1}),l(_,{onClick:e[19]||(e[19]=p=>s.moveLegend("left"))},{default:n(()=>[l(w,{style:{cursor:"pointer"}},{default:n(()=>[...e[32]||(e[32]=[v(" Legend Left ",-1)])]),_:1})]),_:1}),l(_,{onClick:e[20]||(e[20]=p=>s.moveLegend("right"))},{default:n(()=>[l(w,{style:{cursor:"pointer"}},{default:n(()=>[...e[33]||(e[33]=[v(" Legend Right ",-1)])]),_:1})]),_:1}),l(J),l(_,{onClick:s.legendHide},{default:n(()=>[l(w,{style:{cursor:"pointer"}},{default:n(()=>[...e[34]||(e[34]=[v(" Hide Legend ",-1)])]),_:1})]),_:1},8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])):k("",!0),i.sparkline?k("",!0):(m(),E("div",Ee,[l(N,{text:"Click item to toggle, Right click to edit",location:"top"},{activator:n(({props:p})=>[l(h,ne(re(p)),{default:n(()=>[...e[35]||(e[35]=[v(" mdi-information-variant-circle ",-1)])]),_:1},16)]),_:1})],512))])}const Oe=ce("R",S(we,[["render",Se],["__scopeId","data-v-893a7598"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(s,o){"use strict";var t,n,l,r,u;return{setters:[e=>{t=e.h},e=>{n=e.openBlock,l=e.createElementBlock,r=e.normalizeStyle},e=>{u=e.f},null,null,null,null],execute:(function(){const e={mixins:[t]};function c(i,f,m,p,y,d){return n(),l("hr",{style:r(i.computedStyle)},null,4)}const a=s("default",u(e,[["render",c]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-320f7a52ead0c027f3e7.js","vue","single-spa","./OutputDialog-DtrpwjGL-73ebd3c55e7ffbc15652.js","vue-router","pinia","vuetify"],(function(w,x){"use strict";var d,u,e,o,r,n,l,p,g,f,h,v,m,C;return{setters:[t=>{d=t.f,u=t.u},t=>{e=t.resolveComponent,o=t.openBlock,r=t.createElementBlock,n=t.createVNode,l=t.withCtx,p=t.Fragment,g=t.renderList,f=t.createTextVNode,h=t.toDisplayString,v=t.createBlock,m=t.createCommentVNode},null,t=>{C=t.S},null,null,null],execute:(function(){const t={components:{OutputDialog:C},data(){return{interfaces:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){u.get("/openc3-api/interfaces").then(a=>{this.interfaces=a.data})},showInterface(a){u.get(`/openc3-api/interfaces/${a}`).then(c=>{this.jsonContent=JSON.stringify(c.data,null," "),this.dialogTitle=a,this.showDialog=!0})},dialogCallback(a){this.showDialog=!1}}};function D(a,c,I,T,i,k){const y=e("v-list-item-title"),S=e("v-btn"),V=e("v-list-item"),b=e("v-divider"),N=e("v-list"),j=e("output-dialog");return o(),r("div",null,[n(N,{class:"list","data-test":"interfaceList"},{default:l(()=>[(o(!0),r(p,null,g(i.interfaces,s=>(o(),r("div",{key:s},[n(V,null,{append:l(()=>[n(S,{"aria-label":"Show Interface Details",icon:"mdi-eye",variant:"text",onClick:_=>k.showInterface(s)},null,8,["onClick"])]),default:l(()=>[n(y,null,{default:l(()=>[f(h(s),1)]),_:2},1024)]),_:2},1024),n(b)]))),128))]),_:1}),i.showDialog?(o(),v(j,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":c[0]||(c[0]=s=>i.showDialog=s),content:i.jsonContent,type:"Interface",name:i.dialogTitle,onSubmit:k.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):m("",!0)])}const B=w("default",d(t,[["render",D],["__scopeId","data-v-42b26177"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","./LabelWidget-BhzkN06D-2d7a7f95582b783e18d0.js","./SparklineWidget-Dsmn38z_-2bd86ac75cf900848cd0.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify","./GraphWidget-COXK3Dab-18ccb71d08b630c3446f.js","./Graph-Cz0Ns1FD-9251aa7b63944e24104e.js","./OpenC3TimePicker-B0lAIU91-6e7843b535d6cb333926.js"],(function(c,b){"use strict";var i,r,a,n,o,u,l,s,p;return{setters:[e=>{i=e.h},e=>{r=e.default},e=>{a=e.default},e=>{n=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,l=e.normalizeStyle,s=e.createVNode},e=>{p=e.f},null,null,null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:r,SparklineWidget:a},mixins:[i],computed:{labelName(){return[this.parameters[2]+":"]}}};function d(t,S,y,j,N,m){const g=n("label-widget"),f=n("sparkline-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:l(t.computedStyle)},[s(g,{parameters:m.labelName,settings:[...t.appliedSettings],line:t.line,"line-number":t.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),s(f,{parameters:t.parameters,settings:[...t.appliedSettings],style:l(t.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const k=c("default",p(e,[["render",d]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./LabelWidget-BhzkN06D-2d7a7f95582b783e18d0.js","./ValueWidget-B1aGUBP7-320f2f1feb3886640deb.js","./LimitscolumnWidget-BFDXhJeZ-4eba19b9d6c713c13db1.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify","./DetailsDialog-F4KgYM6m-8435a552f5c10d2191bc.js","./LimitsBar-D5IZu7eX-eed22332c6603ee4301a.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./VWidget-oMbywhLA-ae9ee9bde0636cb9c9e1.js","./BarColumn-BpdscDQf-e551f56c95340d26cda4.js"],(function(d,j){"use strict";var i,r,a,u,n,o,c,m,s,l,g;return{setters:[e=>{i=e.default},e=>{r=e.default},e=>{a=e.default},e=>{u=e.h},e=>{n=e.resolveComponent,o=e.openBlock,c=e.createElementBlock,m=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{g=e.f},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:i,ValueWidget:r,LimitscolumnWidget:a},mixins:[u]};function p(t,S,W,w,y,D){const B=n("label-widget"),f=n("limitscolumn-widget"),v=n("value-widget");return o(),c("div",{ref:"container",style:m(t.computedStyle)},[s(B,{parameters:[t.parameters[2]],settings:[...t.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),s(f,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":2,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const b=d("default",g(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Layout-CKmC50QZ-a4e41facce8302b08009.js","vue","./main-320f7a52ead0c027f3e7.js","./Widget-D_HaosJK-c49796f3af3288426d03.js","vue-router","pinia","single-spa","vuetify"],(function(h,k){"use strict";var a,l,r,s,i,o,c,m,u,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,r=e.openBlock,s=e.createBlock,i=e.normalizeStyle,o=e.withCtx,c=e.createElementBlock,m=e.Fragment,u=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.f},null,null,null,null,null],execute:(function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=Number.parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function x(n,v,B,z,y,S){const C=l("v-radio-group");return r(),s(C,{modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),"hide-details":"",density:"compact",style:i(n.computedStyle)},{default:o(()=>[(r(!0),c(m,null,u(n.widgets,(t,f)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{key:f,value:f,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const I=h("default",g(e,[["render",x]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-320f7a52ead0c027f3e7.js","vue","vue-router","pinia","single-spa","vuetify"],(function(g,D){"use strict";var y,f,d,o,c,n,l,r,p,b,m,x;return{setters:[a=>{y=a.f,f=a.u},a=>{d=a.resolveComponent,o=a.openBlock,c=a.createElementBlock,n=a.createVNode,l=a.withCtx,r=a.createTextVNode,p=a.createElementVNode,b=a.Fragment,m=a.toDisplayString,x=a.createCommentVNode},null,null,null,null],execute:(function(){const a={data(){return{redisCommandText:"",redisResponse:null,redisEndpoint:"persistent",db_shard:"0",prettyPrint:!1,headers:[{text:"Redis",value:"redis",width:150},{text:"Command",value:"command"},{text:"Response",value:"response"}],commands:[]}},computed:{formattedResponse:function(){let t=this.redisResponse;if(this.redisResponse&&this.prettyPrint){if(typeof t=="string")try{t=JSON.parse(t)}catch{}if(Array.isArray(t)){for(let e=0;e<t.length;e++)if(typeof t[e]=="string")try{t[e]=JSON.parse(t[e])}catch{}}}return t=JSON.stringify(t,null,2),`Response: ${t}`}},methods:{commandKeydown:function(t){t.key==="Enter"&&this.executeRaw()},executeRaw:function(){this.redisResponse=null;let t="/openc3-api/redis/exec";const e=[];this.redisEndpoint==="ephemeral"&&e.push("ephemeral=1"),this.db_shard&&this.db_shard!=="0"&&e.push(`db_shard=${this.db_shard}`),e.length&&(t+="?"+e.join("&")),f.post(t,{data:this.redisCommandText,headers:{Accept:"application/json","Content-Type":"text/plain"}}).then(v=>{this.redisResponse=v.data.result;let u=this.redisEndpoint==="ephemeral"?"Ephemeral":"Persistent";this.db_shard!=="0"&&(u+=` (db_shard ${this.db_shard})`),this.commands.unshift({redis:u,command:this.redisCommandText,response:this.redisResponse})})}}},V=["textContent"],C={key:1,class:"monospace"};function w(t,e,v,u,s,h){const E=d("v-card-title"),k=d("v-card-subtitle"),R=d("v-text-field"),N=d("v-checkbox"),S=d("v-card-text"),T=d("v-btn"),_=d("v-radio"),P=d("v-radio-group"),U=d("v-card-actions"),A=d("v-data-table"),B=d("v-card");return o(),c("div",null,[n(B,null,{default:l(()=>[n(E,null,{default:l(()=>[...e[4]||(e[4]=[r(" Send Raw Redis Commands ",-1)])]),_:1}),n(k,null,{default:l(()=>[...e[5]||(e[5]=[r(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. ",-1),p("br",null,null,-1),p("br",null,null,-1),r(" Enter commands like you would at the Redis cli prompt: ",-1),p("code",null,"ping",-1),r(" or ",-1),p("code",null,"hget openc3__settings version",-1)])]),_:1}),n(S,{class:"pb-0 ml-2"},{default:l(()=>[n(R,{modelValue:s.redisCommandText,"onUpdate:modelValue":e[0]||(e[0]=i=>s.redisCommandText=i),"hide-details":"",label:"Redis command",class:"monospace",onKeydown:h.commandKeydown},null,8,["modelValue","onKeydown"]),n(N,{modelValue:s.prettyPrint,"onUpdate:modelValue":e[1]||(e[1]=i=>s.prettyPrint=i),label:"Pretty print",density:"compact","hide-details":"",class:"mb-2"},null,8,["modelValue"]),s.redisResponse?(o(),c(b,{key:0},[s.prettyPrint?(o(),c("pre",{key:0,textContent:m(h.formattedResponse)},null,8,V)):(o(),c("span",C," Response: "+m(s.redisResponse),1))],64)):x("",!0)]),_:1}),n(U,{class:"px-2"},{default:l(()=>[n(T,{disabled:!s.redisCommandText.length,color:"success",variant:"text",onClick:h.executeRaw},{default:l(()=>[...e[6]||(e[6]=[r(" Execute ",-1)])]),_:1},8,["disabled","onClick"]),n(P,{modelValue:s.redisEndpoint,"onUpdate:modelValue":e[2]||(e[2]=i=>s.redisEndpoint=i),inline:"","hide-details":"",class:"mt-0"},{default:l(()=>[n(_,{label:"Persistent",value:"persistent","data-test":"persistent-radio"}),n(_,{label:"Ephemeral",value:"ephemeral","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"]),n(R,{modelValue:s.db_shard,"onUpdate:modelValue":e[3]||(e[3]=i=>s.db_shard=i),type:"number",min:"0",label:"DB Shard","hide-details":"",density:"compact",style:{"max-width":"100px"},class:"ml-4"},null,8,["modelValue"])]),_:1}),n(A,{headers:s.headers,items:s.commands,class:"monospace","items-per-page":-1,"hide-default-footer":"",density:"compact",height:"45vh"},null,8,["headers","items"])]),_:1})])}const K=g("default",y(a,[["render",w],["__scopeId","data-v-0812b2bd"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-320f7a52ead0c027f3e7.js","vue","single-spa","./OutputDialog-DtrpwjGL-73ebd3c55e7ffbc15652.js","vue-router","pinia","vuetify"],(function(w,B){"use strict";var d,c,e,l,r,o,i,p,g,h,m,v,f,C;return{setters:[t=>{d=t.f,c=t.u},t=>{e=t.resolveComponent,l=t.openBlock,r=t.createElementBlock,o=t.createVNode,i=t.withCtx,p=t.Fragment,g=t.renderList,h=t.createTextVNode,m=t.toDisplayString,v=t.createBlock,f=t.createCommentVNode},null,t=>{C=t.S},null,null,null],execute:(function(){const t={components:{OutputDialog:C},data(){return{routers:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){c.get("/openc3-api/routers").then(n=>{this.routers=n.data})},add(){},showRouter(n){c.get(`/openc3-api/routers/${n}`).then(s=>{this.jsonContent=JSON.stringify(s.data,null," "),this.dialogTitle=n,this.showDialog=!0})},dialogCallback(n){this.showDialog=!1}}};function D(n,s,_,R,a,k){const S=e("v-list-item-title"),V=e("v-btn"),y=e("v-list-item"),N=e("v-divider"),b=e("v-list"),j=e("output-dialog");return l(),r("div",null,[o(b,{class:"list","data-test":"routerList"},{default:i(()=>[(l(!0),r(p,null,g(a.routers,(u,x)=>(l(),r("div",{key:x},[o(y,null,{append:i(()=>[o(V,{"aria-label":"Show Router Details",icon:"mdi-eye",variant:"text",onClick:L=>k.showRouter(u)},null,8,["onClick"])]),default:i(()=>[o(S,null,{default:i(()=>[h(m(u),1)]),_:2},1024)]),_:2},1024),o(N)]))),128))]),_:1}),a.showDialog?(l(),v(j,{key:0,modelValue:a.showDialog,"onUpdate:modelValue":s[0]||(s[0]=u=>a.showDialog=u),content:a.jsonContent,type:"Router",name:a.dialogTitle,onSubmit:k.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):f("",!0)])}const T=w("default",d(t,[["render",D],["__scopeId","data-v-ead3d1f6"]]))})}}));
@@ -1,5 +0,0 @@
1
- System.register(["vue","./main-320f7a52ead0c027f3e7.js","./settings-DZ910lLo-06b2e35cd3b4b6b6686c.js","vue-router","pinia","single-spa","vuetify"],(function(Q,Ze){"use strict";var a,C,T,l,y,o,s,S,W,O,R,L,F,w,N,x,H,B;return{setters:[V=>{a=V.resolveComponent,C=V.openBlock,T=V.createElementBlock,l=V.createVNode,y=V.createBlock,o=V.withCtx,s=V.createTextVNode,S=V.toDisplayString,W=V.createSlots,O=V.mergeProps,R=V.createCommentVNode,L=V.withDirectives,F=V.vShow,w=V.Fragment,N=V.renderList},V=>{x=V.f,H=V.Z},V=>{B=V.n},null,null,null,null],execute:(function(){const V={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(t){t?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(t=>t.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(t){const e=t.split("__")[1].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[t]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function ee(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),v=a("v-card");return C(),y(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[2]||(e[2]=[s("Reset suppressed warnings",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[3]||(e[3]=[s(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),l(c,null,{default:o(()=>[r.suppressedWarnings.length?(C(),T(w,{key:0},[l(i,{modelValue:r.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=n=>r.selectAllSuppressedWarnings=n),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(C(!0),T(w,null,N(r.suppressedWarnings,n=>(C(),y(i,{key:n.key,modelValue:r.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=d=>r.selectedSuppressedWarnings=d),label:n.text,value:n.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(C(),T(w,{key:1},[s(" No warnings to reset ")],64))]),_:1}),l(g,{class:"px-2"},{default:o(()=>[l(m,{disabled:!r.selectedSuppressedWarnings.length,color:"warning",variant:"text","data-test":"reset-suppressed-warnings",onClick:h.resetSuppressedWarnings},{default:o(()=>[...e[4]||(e[4]=[s(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const te=x(V,[["render",ee]]),le={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(t){t?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith("__default")).map(t=>{const e=t.split("__")[0].replaceAll("_"," ");return{key:t,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(t){for(const e of t)delete localStorage[e]}}};function oe(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),v=a("v-card");return C(),y(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[2]||(e[2]=[s(" Clear default configs ",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[3]||(e[3]=[s(" This clears the default tool configs on this browser ",-1)])]),_:1}),l(c,null,{default:o(()=>[r.lastConfigs.length?(C(),T(w,{key:0},[l(i,{modelValue:r.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=n=>r.selectAllLastConfigs=n),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(C(!0),T(w,null,N(r.lastConfigs,n=>(C(),y(i,{key:n.key,modelValue:r.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=d=>r.selectedLastConfigs=d),label:n.text,value:n.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(C(),T(w,{key:1},[s(" No configs to clear ")],64))]),_:1}),l(g,{class:"px-2"},{default:o(()=>[l(m,{disabled:!r.selectedLastConfigs.length,color:"warning",variant:"text","data-test":"clear-default-configs",onClick:h.clearLastConfigs},{default:o(()=>[...e[4]||(e[4]=[s(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ae=x(le,[["render",oe]]),q="script_runner_locking",re={mixins:[B],data(){return{vimMode:H.isVimModeEnabled(),scriptLockingEnabled:!0,defaultLanguage:H.getDefaultScriptingLanguage(),languageOptions:[{text:"Ruby",value:"ruby"},{text:"Python",value:"python"}]}},created(){this.loadSetting(q)},methods:{save:function(){H.setVimMode(this.vimMode),H.setDefaultScriptingLanguage(this.defaultLanguage),this.saveSetting(q,this.scriptLockingEnabled)},parseSetting:function(t){t!=null&&(this.scriptLockingEnabled=t)}}};function se(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),m=a("v-switch"),g=a("v-card-text"),v=a("v-btn"),n=a("v-card-actions"),d=a("v-card");return C(),y(d,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[6]||(e[6]=[s(" Code Editor Settings ",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[7]||(e[7]=[s(" Settings for the code editors built into COSMOS (e.g. in Script Runner). These settings are saved to your browser's local storage. ",-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=k=>t.errorLoading=k),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=k=>t.errorSaving=k),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=k=>t.successSaving=k),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[8]||(e[8]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(g,{class:"pb-0"},{default:o(()=>[l(c,{modelValue:r.defaultLanguage,"onUpdate:modelValue":e[3]||(e[3]=k=>r.defaultLanguage=k),label:"Default scripting language",items:r.languageOptions,"item-title":"text","item-value":"value",color:"primary",class:"mt-4","data-test":"default-language"},null,8,["modelValue","items"]),l(m,{modelValue:r.vimMode,"onUpdate:modelValue":e[4]||(e[4]=k=>r.vimMode=k),label:"Vim mode",color:"primary"},null,8,["modelValue"]),l(m,{modelValue:r.scriptLockingEnabled,"onUpdate:modelValue":e[5]||(e[5]=k=>r.scriptLockingEnabled=k),label:`Script File Locking - When enabled, a script being edited
2
- by one user is read-only for other users until they explicitly force
3
- unlock. Disable to allow multiple users to edit the same script
4
- concurrently (last save wins).`,color:"primary","data-test":"script-locking-enabled"},null,8,["modelValue"])]),_:1}),l(n,null,{default:o(()=>[l(v,{color:"success",variant:"text","data-test":"save-editor-settings",onClick:h.save},{default:o(()=>[...e[9]||(e[9]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ne=x(re,[["render",se]]),P="astro",de={mixins:[B],data(){return{hideClock:!1}},created(){this.loadSetting(P)},methods:{save(){this.saveSetting(P,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function ie(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),v=a("v-card");return C(),y(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Astro Settings",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(c,{class:"pb-0"},{default:o(()=>[l(i,{modelValue:r.hideClock,"onUpdate:modelValue":e[3]||(e[3]=n=>r.hideClock=n),label:"Hide Astro Clock",color:"primary"},null,8,["modelValue"])]),_:1}),l(g,null,{default:o(()=>[l(m,{color:"success",variant:"text","data-test":"save-astro-settings",onClick:h.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ue=x(de,[["render",ie]]),Z="theme",ce={mixins:[B],data(){return{selectedTheme:"cosmosDark",themeOptions:[{label:"Astro (Default)",value:"cosmosDark"},{label:"Dark Cobalt",value:"cosmosDarkCobalt"},{label:"Dark Indigo",value:"cosmosDarkIndigo"},{label:"Dark Slate",value:"cosmosDarkSlate"},{label:"Dark Emerald",value:"cosmosDarkEmerald"}]}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,this.selectedTheme)},parseSetting(t){t&&(this.selectedTheme=t)}}};function me(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-alert"),i=a("v-select"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),v=a("v-card");return C(),y(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Theme",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(c,{class:"pt-4 pb-0"},{default:o(()=>[l(i,{modelValue:r.selectedTheme,"onUpdate:modelValue":e[3]||(e[3]=n=>r.selectedTheme=n),label:"Theme",items:r.themeOptions,"item-title":"label","item-value":"value","data-test":"theme-select"},null,8,["modelValue","items"])]),_:1}),l(g,null,{default:o(()=>[l(m,{color:"success",variant:"text","data-test":"save-theme-settings",onClick:h.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ge=x(ce,[["render",me]]),j="classification_banner",pe={mixins:[B],data(){return{text:"",displayTopBanner:!1,displayBottomBanner:!1,topHeight:0,bottomHeight:0,selectedBackgroundColor:"red",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Yellow",value:"yellow"},{text:"Orange",value:"orange"},{text:"Red",value:"red"},{text:"Purple",value:"purple"},{text:"Blue",value:"blue"},{text:"Green",value:"green"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor,topHeight:this.displayTopBanner?this.topHeight:0,bottomHeight:this.displayBottomBanner?this.bottomHeight:0})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayTopBanner:function(t){t?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(t){t?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.topHeight=e.topHeight,this.bottomHeight=e.bottomHeight,this.displayTopBanner=e.topHeight!==0,this.displayBottomBanner=e.bottomHeight!==0,e.backgroundColor&&e.backgroundColor.startsWith("#")?(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1):this.selectedBackgroundColor=e.backgroundColor,e.fontColor&&e.fontColor.startsWith("#")?(this.customFontColor=e.fontColor,this.selectedFontColor=!1):this.selectedFontColor=e.fontColor}}}};function fe(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-alert"),i=a("v-text-field"),c=a("v-col"),m=a("v-row"),g=a("v-icon"),v=a("v-list-item"),n=a("v-select"),d=a("v-switch"),k=a("v-card-text"),A=a("v-btn"),D=a("v-card-actions"),M=a("v-card");return C(),y(M,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[12]||(e[12]=[s("Classification Banner Settings",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=p=>t.errorLoading=p),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=p=>t.errorSaving=p),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=p=>t.successSaving=p),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(k,{class:"pb-0"},{default:o(()=>[l(m,{dense:""},{default:o(()=>[l(c,null,{default:o(()=>[l(i,{modelValue:r.text,"onUpdate:modelValue":e[3]||(e[3]=p=>r.text=p),label:"Text","data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),l(m,{dense:""},{default:o(()=>[l(c,null,{default:o(()=>[l(n,{modelValue:r.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=p=>r.selectedBackgroundColor=p),label:"Background color",items:r.colors,"item-title":"text","data-test":"classification-banner-background-color"},W({item:o(({props:p,item:f})=>[l(v,O(p,{value:f.text}),{prepend:o(()=>[f.value?(C(),y(g,{key:0,color:f.value},{default:o(()=>[...e[15]||(e[15]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):R("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(g,{color:r.selectedBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[s(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(c,null,{default:o(()=>[l(i,{modelValue:r.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=p=>r.customBackgroundColor=p),label:"Custom background color",hint:r.customColorHint,disabled:r.selectedBackgroundColor!==!1,rules:[r.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":o(()=>[L(l(g,{color:r.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,!r.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(c,null,{default:o(()=>[l(n,{modelValue:r.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=p=>r.selectedFontColor=p),label:"Font color",items:r.colors,"item-title":"text","data-test":"classification-banner-font-color"},W({item:o(({props:p,item:f})=>[l(v,O(p,{value:f.text}),{prepend:o(()=>[f.value?(C(),y(g,{key:0,color:f.value},{default:o(()=>[...e[18]||(e[18]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):R("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedFontColor?{name:"prepend-inner",fn:o(()=>[L(l(g,{color:r.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,r.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(c,null,{default:o(()=>[l(i,{modelValue:r.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=p=>r.customFontColor=p),label:"Custom font color",hint:r.customColorHint,disabled:r.selectedFontColor!==!1,rules:[r.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":o(()=>[L(l(g,{color:r.customFontColor},{default:o(()=>[...e[19]||(e[19]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,!r.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1}),l(m,{dense:""},{default:o(()=>[l(c,null,{default:o(()=>[l(d,{modelValue:r.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=p=>r.displayTopBanner=p),label:"Display top banner",color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),l(c,null,{default:o(()=>[l(i,{modelValue:r.topHeight,"onUpdate:modelValue":e[9]||(e[9]=p=>r.topHeight=p),label:"Top height",disabled:!r.displayTopBanner,type:"number",suffix:"px","data-test":"classification-banner-top-height"},null,8,["modelValue","disabled"])]),_:1}),l(c,null,{default:o(()=>[l(d,{modelValue:r.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=p=>r.displayBottomBanner=p),label:"Display bottom banner",color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),l(c,null,{default:o(()=>[l(i,{modelValue:r.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=p=>r.bottomHeight=p),label:"Bottom height",disabled:!r.displayBottomBanner,type:"number",suffix:"px","data-test":"classification-banner-bottom-height"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),l(D,null,{default:o(()=>[l(A,{disabled:!h.formValid,color:"success",variant:"text","data-test":"save-classification-banner",onClick:h.save},{default:o(()=>[...e[20]||(e[20]=[s(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const he=x(pe,[["render",fe]]),$="time_zone",ve={mixins:[B],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting($)},methods:{save(){this.saveSetting($,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function be(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),m=a("v-card-text"),g=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return C(),y(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Time Zone",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" The time zone to use in all COSMOS tools (graphs, time choosers, log messages, etc). Anywhere a date / time is displayed, it will be in the chosen time zone. (Note: All timestamps are UTC in the backend). ",-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>t.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>t.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>t.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,null,{default:o(()=>[l(c,{modelValue:r.timeZone,"onUpdate:modelValue":e[3]||(e[3]=d=>r.timeZone=d),items:r.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),l(v,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-time-zone",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ce=x(ve,[["render",be]]),z="time_format",Se={mixins:[B],data(){return{timeFormats:[{title:"12-hour (AM/PM)",value:"ampm"},{title:"24-hour",value:"24hr"}],timeFormat:"ampm"}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.timeFormat)},parseSetting:function(t){t&&(this.timeFormat=t)}}};function Ve(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),m=a("v-card-text"),g=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return C(),y(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Time Format",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" The time format to use in all COSMOS tools (time pickers, etc). This setting controls whether time is displayed in 12-hour (AM/PM) or 24-hour format. ",-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>t.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>t.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>t.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,null,{default:o(()=>[l(c,{modelValue:r.timeFormat,"onUpdate:modelValue":e[3]||(e[3]=d=>r.timeFormat=d),items:r.timeFormats,label:"Select time format","hide-details":"","prepend-icon":"mdi-clock-outline","single-line":"","data-test":"time-format"},null,8,["modelValue","items"])]),_:1}),l(v,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-time-format",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ye=x(Se,[["render",Ve]]),J="news_feed",_e={mixins:[B],data(){return{newsFeed:!0}},created(){this.loadSetting(J)},methods:{save(){this.saveSetting(J,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(t){this.newsFeed=t}}};function ke(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),v=a("v-card");return C(),y(v,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("News Feed Settings",-1)])]),_:1}),l(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>t.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>t.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>t.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(c,{class:"pb-0"},{default:o(()=>[l(i,{modelValue:r.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=n=>r.newsFeed=n),label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
5
- This is a low bandwidth poll which only happens every 12 hrs. To immediately update the news feed, click the 'Refresh' in the User Menu.`,color:"primary"},null,8,["modelValue"])]),_:1}),l(g,null,{default:o(()=>[l(m,{color:"success",variant:"text","data-test":"save-news-feed",onClick:h.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const xe=x(_e,[["render",ke]]),K="subtitle",Ue={mixins:[B],data(){return{subtitle:""}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function Be(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return C(),y(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s("Subtitle",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ",-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>t.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>t.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>t.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(c,{modelValue:r.subtitle,"onUpdate:modelValue":e[3]||(e[3]=d=>r.subtitle=d),label:"Subtitle","data-test":"subtitle"},null,8,["modelValue"])]),_:1}),l(v,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-subtitle",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Te=x(Ue,[["render",Be]]),I="source_url",Le={mixins:[B],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(I)},methods:{save(){this.saveSetting(I,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function Fe(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return C(),y(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s(" Source code URL ",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[5]||(e[5]=[s(' This sets the URL for the "Source" link in the footer. ',-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>t.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>t.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>t.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(c,{modelValue:r.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=d=>r.sourceUrl=d),label:"Source URL","data-test":"source-url"},null,8,["modelValue"])]),_:1}),l(v,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-source-url",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const we=x(Le,[["render",Fe]]),G="rubygems_url",Ee={mixins:[B],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(G)},methods:{save(){this.saveSetting(G,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function We(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return C(),y(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s(" Rubygems URL ",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ",-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>t.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>t.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>t.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(c,{modelValue:r.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=d=>r.rubygemsUrl=d),label:"Rubygems URL","data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),l(v,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-rubygems-url",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Oe=x(Ee,[["render",We]]),Y="pypi_url",Re={mixins:[B],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(Y)},methods:{save(){this.saveSetting(Y,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function He(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return C(),y(n,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[4]||(e[4]=[s(" Pypi URL ",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets the URL for installing dependency python packages. Also used for package discovery. ",-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>t.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>t.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>t.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(m,{class:"pb-0"},{default:o(()=>[l(c,{modelValue:r.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=d=>r.pypiUrl=d),label:"Pypi URL","data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),l(v,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-pypi-url",onClick:h.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ae=x(Re,[["render",He]]),X="context_tag",De={mixins:[B],data(){return{text:"",displayContextTag:!1,selectedBackgroundColor:"#009fa3",customBackgroundColor:"",selectedFontColor:"white",customFontColor:"",customColorHint:"Enter a 3 or 6-digit hex color code",colors:[{text:"Teal",value:"#009fa3"},{text:"Purple",value:"#6058a8"},{text:"Pink",value:"#81009a"},{text:"Orange",value:"#af420a"},{text:"Black",value:"black"},{text:"White",value:"white"},{text:"Custom",value:!1}],rules:{customColor:t=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)||this.customColorHint}}},computed:{saveObj:function(){return JSON.stringify({text:this.text,fontColor:this.selectedFontColor||this.customFontColor,backgroundColor:this.selectedBackgroundColor||this.customBackgroundColor})},formValid:function(){return(this.selectedFontColor||this.rules.customColor(this.customFontColor)===!0)&&(this.selectedBackgroundColor||this.rules.customColor(this.customBackgroundColor)===!0)}},watch:{displayContextTag:function(t){t?this.text||(this.text="REPLACEME"):this.text=null},customFontColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customFontColor=`#${t}`)},customBackgroundColor:function(t){t&&t.length&&!t.startsWith("#")&&(this.customBackgroundColor=`#${t}`)}},created(){this.loadSetting(X)},methods:{save(){this.saveSetting(X,this.saveObj)},parseSetting:function(t){if(t){const e=JSON.parse(t);this.text=e.text,this.displayContextTag=!!e.text,e.backgroundColor&&(this.colors.some(_=>_.value===e.backgroundColor)?this.selectedBackgroundColor=e.backgroundColor:(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1)),e.fontColor&&(this.colors.some(_=>_.value===e.fontColor)?this.selectedFontColor=e.fontColor:(this.customFontColor=e.fontColor,this.selectedFontColor=!1))}}}};function Me(t,e,_,U,r,h){const b=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-col"),g=a("v-row"),v=a("v-switch"),n=a("v-icon"),d=a("v-list-item"),k=a("v-select"),A=a("v-card-text"),D=a("v-btn"),M=a("v-card-actions"),p=a("v-card");return C(),y(p,null,{default:o(()=>[l(b,null,{default:o(()=>[...e[9]||(e[9]=[s("Context Tag Settings",-1)])]),_:1}),l(u,null,{default:o(()=>[...e[10]||(e[10]=[s(" When enabled this displays a Context Tag on the top right of the screen with custom colors and text. This can help differentiate environments. ",-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=f=>t.errorLoading=f),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=f=>t.errorSaving=f),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+S(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=f=>t.successSaving=f),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[11]||(e[11]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(A,{class:"pb-0"},{default:o(()=>[l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(c,{modelValue:r.text,"onUpdate:modelValue":e[3]||(e[3]=f=>r.text=f),label:"Text","data-test":"context-tag-text",disabled:!r.displayContextTag},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(v,{modelValue:r.displayContextTag,"onUpdate:modelValue":e[4]||(e[4]=f=>r.displayContextTag=f),label:"Display context tag",color:"primary","data-test":"display-context-tag"},null,8,["modelValue"])]),_:1}),l(m,null,{default:o(()=>[l(k,{modelValue:r.selectedBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=f=>r.selectedBackgroundColor=f),label:"Background color",items:r.colors,"item-title":"text","data-test":"context-tag-background-color"},W({item:o(({props:f,item:E})=>[l(d,O(f,{value:E.text}),{prepend:o(()=>[E.value?(C(),y(n,{key:0,color:E.value},{default:o(()=>[...e[13]||(e[13]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):R("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(n,{color:r.selectedBackgroundColor},{default:o(()=>[...e[12]||(e[12]=[s(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(m,null,{default:o(()=>[l(c,{modelValue:r.customBackgroundColor,"onUpdate:modelValue":e[6]||(e[6]=f=>r.customBackgroundColor=f),label:"Custom background color",hint:r.customColorHint,disabled:r.selectedBackgroundColor!==!1,rules:[r.rules.customColor],"data-test":"context-tag-custom-background-color"},{"prepend-inner":o(()=>[L(l(n,{color:r.customBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,!r.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(m,null,{default:o(()=>[l(k,{modelValue:r.selectedFontColor,"onUpdate:modelValue":e[7]||(e[7]=f=>r.selectedFontColor=f),label:"Font color",items:r.colors,"item-title":"text","data-test":"context-tag-font-color"},W({item:o(({props:f,item:E})=>[l(d,O(f,{value:E.text}),{prepend:o(()=>[E.value?(C(),y(n,{key:0,color:E.value},{default:o(()=>[...e[16]||(e[16]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):R("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedFontColor?{name:"prepend-inner",fn:o(()=>[L(l(n,{color:r.selectedFontColor},{default:o(()=>[...e[15]||(e[15]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,r.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(m,null,{default:o(()=>[l(c,{modelValue:r.customFontColor,"onUpdate:modelValue":e[8]||(e[8]=f=>r.customFontColor=f),label:"Custom font color",hint:r.customColorHint,disabled:r.selectedFontColor!==!1,rules:[r.rules.customColor],"data-test":"context-tag-custom-font-color"},{"prepend-inner":o(()=>[L(l(n,{color:r.customFontColor},{default:o(()=>[...e[17]||(e[17]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[F,!r.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1})]),_:1}),l(M,null,{default:o(()=>[l(D,{disabled:!h.formValid,color:"success",variant:"text","data-test":"save-context-tag",onClick:h.save},{default:o(()=>[...e[18]||(e[18]=[s(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Ne=x(De,[["render",Me]]),qe={components:{SuppressedSettings:te,DefaultConfigSettings:ae,EditorSettings:ne,AstroSettings:ue,ThemeSettings:ge,ClassificationBannerSettings:he,TimeZoneSettings:Ce,TimeFormatSettings:ye,NewsFeedSettings:xe,SubtitleSettings:Te,SourceCodeSettings:we,RubyGemsSettings:Oe,PypiSettings:Ae,ContextTagSettings:Ne}};function Pe(t,e,_,U,r,h){const b=a("suppressed-settings"),u=a("v-divider"),i=a("default-config-settings"),c=a("editor-settings"),m=a("astro-settings"),g=a("theme-settings"),v=a("time-zone-settings"),n=a("time-format-settings"),d=a("news-feed-settings"),k=a("classification-banner-settings"),A=a("subtitle-settings"),D=a("source-code-settings"),M=a("ruby-gems-settings"),p=a("pypi-settings"),f=a("context-tag-settings");return C(),T("div",null,[l(b),l(u),l(i),l(u),l(c),l(u),l(m),l(u),l(g),l(u),l(v),l(u),l(n),l(u),l(d),l(u),l(k),l(u),l(A),l(u),l(D),l(u),l(M),l(u),l(p),l(u),l(f)])}const je=Q("default",x(qe,[["render",Pe]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-D_HaosJK-c49796f3af3288426d03.js","vue","./main-320f7a52ead0c027f3e7.js","vue-router","pinia","single-spa","vuetify"],(function(l,o){"use strict";var t,n,s,i,r;return{setters:[e=>{t=e.h},e=>{n=e.openBlock,s=e.createElementBlock,i=e.normalizeStyle},e=>{r=e.f},null,null,null,null],execute:(function(){const e={mixins:[t],created(){this.parameters[0]!==void 0&&this.appliedSettings.push(["WIDTH",this.parameters[0]]),this.parameters[1]!==void 0&&this.appliedSettings.push(["HEIGHT",this.parameters[1]])}};function a(u,p,m,d,h,f){return n(),s("div",{style:i(u.computedStyle)},null,4)}const c=l("default",r(e,[["render",a]]))})}}));