openc3-cosmos-tool-admin 7.2.1 → 7.4.0

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 (146) hide show
  1. checksums.yaml +4 -4
  2. data/tools/admin/{ArrayWidget-DMSm_P6c-efc7746a4ba953cd6808.js → ArrayWidget-CIDdZjk3-ec1730c4177a34566ed5.js} +2 -2
  3. data/tools/admin/ArrayplotWidget-BfO1atvG-de9fd2732649b1be4d3c.js +1 -0
  4. data/tools/admin/BarColumn-CHX_3ye3-7dd61cd495a0c538da4c.js +1 -0
  5. data/tools/admin/BlockWidget-DSbunlY_-62d6727a1d5a31c3a0ef.js +2 -0
  6. data/tools/admin/BridgesTab-DDuKJPFX-388b57d1ea5f49094fc6.js +1 -0
  7. data/tools/admin/ButtonWidget-BB4ZOCI8-c9853dafa3d8751b4799.js +1 -0
  8. data/tools/admin/{CanvasWidget-BRdVWln5-68610c4a029476073178.js → CanvasWidget-DsyMt7xW-4bef82b3023c55f379f3.js} +1 -1
  9. data/tools/admin/CanvasdotWidget-BZpkCAoH-656bb49b1eb23c38df64.js +1 -0
  10. data/tools/admin/{CanvasimageWidget-Czbq1GuF-5f841f468351c7d6bdbf.js → CanvasimageWidget-DY1DDf0a-447454aee48d92185e98.js} +1 -1
  11. data/tools/admin/CanvasimagevalueWidget-0lc2cCPV-d5f0cd5f3d5a93a5b051.js +1 -0
  12. data/tools/admin/CanvaslabelWidget-C6TDW9WO-58c1646a49fa5fe5a3ff.js +1 -0
  13. data/tools/admin/{CanvaslabelvalueWidget-BhzvZVfD-ba39d0f36fbf3db6cd9c.js → CanvaslabelvalueWidget-Cf_dcDW2-7f2990654255dcf30ddb.js} +1 -1
  14. data/tools/admin/CanvaslineWidget-jg2ozQ0N-0871afe4dad8f1654b07.js +1 -0
  15. data/tools/admin/{CanvaslinevalueWidget-ihI97G8T-a7ccb7b7ca2d2628fdd5.js → CanvaslinevalueWidget-CKpjqlKA-8f34f70483fe2793c37b.js} +1 -1
  16. data/tools/admin/CheckbuttonWidget-BWXinMaT-14d2dd4b439cbbaccdb9.js +1 -0
  17. data/tools/admin/ComboboxWidget-BzKkyRDT-4ce17162f0ef6bd8170f.js +1 -0
  18. data/tools/admin/DateWidget-qUbLzQsX-708e35a5b74dec88415b.js +1 -0
  19. data/tools/admin/DetailsDialog-CLPj0nP0-9dcc472124933da9a31b.js +1 -0
  20. data/tools/admin/DynamicWidget-yna_ejyc-2d713c62a6c8060e206c.js +1 -0
  21. data/tools/admin/FilechecksumWidget-DqNThsOX-2bc76d97aea4fc77908f.js +1 -0
  22. data/tools/admin/FiledisplayWidget-BRhhiVEs-75f94e57b68943abb2d9.js +1 -0
  23. data/tools/admin/{FormatvalueWidget-BxyscMJc-9965b0bd2806cfbe79cb.js → FormatvalueWidget-pEjAh0h2-c0d99c24a0e3e13cbbd7.js} +1 -1
  24. data/tools/admin/Graph-GVQZltap-a6075477922f4a556620.js +1 -0
  25. data/tools/admin/{GraphWidget-Cs9mvqUu-f9a29adafa014c1e26e4.js → GraphWidget-BZjBkefj-3075e0b9efe04ad89afa.js} +1 -1
  26. data/tools/admin/HorizontalWidget-Brag6E4y-666e6bb436ada6d4e41a.js +1 -0
  27. data/tools/admin/{HorizontalboxWidget-DEaXhKEz-b0ba376ca37ee17a7d70.js → HorizontalboxWidget-BnkH4cVq-71cecf05179743285077.js} +1 -1
  28. data/tools/admin/HorizontallineWidget-k7fL4EPN-a86818418ba8f3cc191e.js +1 -0
  29. data/tools/admin/{IframeWidget-B143k4lo-47d90846ad305990fd45.js → IframeWidget-Ciu5u58E-2687a1f57329be92f03b.js} +1 -1
  30. data/tools/admin/ImageLoader-DH5e4lg8-03c656b21fa2caca8324.js +1 -0
  31. data/tools/admin/{ImageviewerWidget-CLrvr6dw-6adafd871908af16336a.js → ImageviewerWidget-vWMGPveb-a385eaff6f50e2d9cc5b.js} +1 -1
  32. data/tools/admin/InterfacesTab-DeTu93l7-4311e906061ab7c82971.js +1 -0
  33. data/tools/admin/{LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js → LabelWidget-DVp0CmFH-17faef5b4045503f36d3.js} +1 -1
  34. data/tools/admin/LabelledWidget-1DeE1-6G-7c92e912f90e430d5ffa.js +1 -0
  35. data/tools/admin/LabelprogressbarWidget-DME-BrZe-aaf6c31eb90e3058d1da.js +1 -0
  36. data/tools/admin/LabelsparklineWidget-4iDHGnPL-58ec5912433194d1fb6a.js +1 -0
  37. data/tools/admin/LabelvalueWidget-C6NQSHTb-54fa502577d5c013235a.js +1 -0
  38. data/tools/admin/LabelvaluedescWidget-c5BUCRxB-1ea411e36238588b5f85.js +1 -0
  39. data/tools/admin/LabelvaluelimitsbarWidget-DBKZLpXJ-0dcf794ea95c72b24cf9.js +1 -0
  40. data/tools/admin/LabelvaluelimitscolumnWidget-NdEu06go-a35e19fa1f086588f8e0.js +1 -0
  41. data/tools/admin/LabelvaluerangebarWidget-CL5HLK0t-dba160f5c4621270ba82.js +1 -0
  42. data/tools/admin/{Layout--_zNJWnw-a75e57affb59e71889ad.js → Layout-Df-lJgpB-228411e9ed7160bf6079.js} +1 -1
  43. data/tools/admin/{LedWidget-D2uxHxe3-b432e645d6f5ac424a50.js → LedWidget-C97EJXBo-56495e50ec081af2ea63.js} +1 -1
  44. data/tools/admin/{LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js → LimitsBar-DNV39okL-ac8e562bdd6f80498856.js} +1 -1
  45. data/tools/admin/LimitsbarWidget-BIO6xztx-cc81832a022263a5e69b.js +1 -0
  46. data/tools/admin/{LimitscolorWidget-haGB4RbY-2bbe52d1c80aded0cc12.js → LimitscolorWidget-BGrNA65J-ef93a3f98c358c1f0a0a.js} +1 -1
  47. data/tools/admin/LimitscolumnWidget-Bw6EXJs9-c2197c3b589893051f83.js +1 -0
  48. data/tools/admin/LinegraphWidget-Drf9tTPN-0ee1a5578ba7a90a7663.js +1 -0
  49. data/tools/admin/{MatrixbycolumnsWidget-coHlLETG-860f23fb48426b9fd387.js → MatrixbycolumnsWidget-C33-g7kK-564fbacd8735d346c3dd.js} +1 -1
  50. data/tools/admin/MicroservicesTab-DoQUKC5u-4e2dd5bf175f95bc042e.js +3 -0
  51. data/tools/admin/OpenC3TimePicker-cOr0aOVn-087aabac5576efaa78e2.js +1 -0
  52. data/tools/admin/{OutputDialog-B0DR879Y-1fe936426c84cb442ac4.js → OutputDialog-C9rGeLM5-02a56bb7f4eb6b0500ac.js} +1 -1
  53. data/tools/admin/PackagesTab-DbaQtAyw-069925c696f2ace3987d.js +2 -0
  54. data/tools/admin/PluginsTab-BdwfQ8KF-99de05c6db3780e0af31.js +5 -0
  55. data/tools/admin/{ProgressbarWidget-D_yFssIZ-d10aa4e57145b3259669.js → ProgressbarWidget-DqfSMI10-18ce49d7a36649fa0cd0.js} +1 -1
  56. data/tools/admin/RadiobuttonWidget-CSQeEacF-fb889eddc717bdc4e487.js +1 -0
  57. data/tools/admin/RadiogroupWidget-DlQN9z-Z-4bb03443c0620c83be9b.js +1 -0
  58. data/tools/admin/{RangebarWidget-i2mlnxys-4eec6df5412c7c011047.js → RangebarWidget-CJSUof1--7cd1a9bb578d66c95e4c.js} +1 -1
  59. data/tools/admin/RedisTab-DI1cFzQm-4191ec0c06598cfab2a9.js +1 -0
  60. data/tools/admin/RollupWidget-C977Lkcx-079e4bfc754edd8b4947.js +1 -0
  61. data/tools/admin/RoutersTab-ChadLN6X-abf9a717481d1732b150.js +1 -0
  62. data/tools/admin/{ScrollwindowWidget-BU1cRpL8-db955ba3d4a28aa695c0.js → ScrollwindowWidget-BFxz61oW-70d1f967d82154e8fed2.js} +1 -1
  63. data/tools/admin/SecretsTab-But8EOAR-ccdc47f33efa6d921ef4.js +1 -0
  64. data/tools/admin/SettingsTab-dnzckAY4-4b3c92cabb74b7eb0e0e.js +10 -0
  65. data/tools/admin/{SignalWidget-hiTkeem9-803814029a9fe6a17581.js → SignalWidget-BT6AcbBx-a2b901a2ae183bb8a7da.js} +1 -1
  66. data/tools/admin/{SimpleTextDialog-tGqcHHCx-aac1d333cbb9a93606d6.js → SimpleTextDialog-Ccqw4mzt-bc4caae5dd1d7e6f0d3b.js} +1 -1
  67. data/tools/admin/SpacerWidget-B_f09KAi-541cf0e73343ba06aac8.js +1 -0
  68. data/tools/admin/SparklineWidget-Bji9DILO-b919fae8ac59aa487849.js +1 -0
  69. data/tools/admin/TabbookWidget-B74U8t2i-22e1b62104907789d9c0.js +1 -0
  70. data/tools/admin/TargetsTab-GzwX75ns-64006815ed7073dd19d5.js +1 -0
  71. data/tools/admin/TextboxWidget-CbKE9aSW-ef89ab0e5e4580dae966.js +1 -0
  72. data/tools/admin/TextfieldWidget-CpdmfNk5-941ec2c3426b7d6a5b84.js +1 -0
  73. data/tools/admin/TimeWidget-BTaXBxVm-a4d5024a76726c8735f6.js +1 -0
  74. data/tools/admin/TitleWidget-ulO_gdVY-c51481a664353e350ca8.js +1 -0
  75. data/tools/admin/ToolsTab-DA2T_Zxc-7f97be0c87aac3bcfff1.js +1 -0
  76. data/tools/admin/{TsdbTab-B0BR-V6A-ab626c8be8b9836c1c78.js → TsdbTab-DSLXk5QZ-414e4cb23545085c895f.js} +1 -1
  77. data/tools/admin/{VWidget-5qOYva88-4db083a6475508bbf7ce.js → VWidget-C4VLQ7-b-07b1f80f82f119fc5285.js} +1 -1
  78. data/tools/admin/{ValueWidget-CAkuc_w_-6037c5f1b4e7c0e9c790.js → ValueWidget-B3-Jjoux-9a088d512207d0da3dbd.js} +1 -1
  79. data/tools/admin/ValuelimitsbarWidget-CqRkPwWS-61183b64087fcac11052.js +1 -0
  80. data/tools/admin/ValuelimitscolumnWidget-CF4CN14a-d7a8f5655caea3581ddb.js +1 -0
  81. data/tools/admin/ValuerangebarWidget-DJtrknKH-3e744c7243efe0774ee0.js +1 -0
  82. data/tools/admin/{VerticalWidget-C6O0dhRU-7511fd89efa71860286e.js → VerticalWidget-CoJiy2TT-ecfccfcccdb20287fb94.js} +1 -1
  83. data/tools/admin/{VerticalboxWidget-B-CoqRJG-29951e73bb5144b9ca2c.js → VerticalboxWidget-BD5Eq3BH-151b5238c6236f51977c.js} +1 -1
  84. data/tools/admin/Widget-ClRi417b-c819f8641946506d7602.js +1 -0
  85. data/tools/admin/main-f0865abbd006d9b2cc5a.js +1496 -0
  86. data/tools/admin/main.js +1 -1
  87. data/tools/admin/settings-CF2_iY3N-2c1b3aa6b738e9889263.js +1 -0
  88. data/tools/admin/useDownloadFile-DASMZ_Dl-d13e01890d2f8843337e.js +1 -0
  89. metadata +87 -85
  90. data/tools/admin/ArrayplotWidget-fdXLhGAl-bb78ab3e4fdecdfebd67.js +0 -1
  91. data/tools/admin/BarColumn-Bb305iCi-1d14dd1f021f8d8d5f6a.js +0 -1
  92. data/tools/admin/BlockWidget-Do3W6tZh-30b366b735726d3e884d.js +0 -2
  93. data/tools/admin/ButtonWidget-DukCQt0F-c8a88a1d238108f85fc0.js +0 -2
  94. data/tools/admin/CanvasdotWidget-DV8PeDWz-da21bd87f779b9139269.js +0 -1
  95. data/tools/admin/CanvasimagevalueWidget-DKt5JgEt-c79bbec74e5403f7b6ec.js +0 -1
  96. data/tools/admin/CanvaslabelWidget-DW2I1ra1-bf0c322f7c308654cfc2.js +0 -1
  97. data/tools/admin/CanvaslineWidget-DsjY37tp-97707caf9ea6147f085e.js +0 -1
  98. data/tools/admin/CheckbuttonWidget-B778Z-Zo-9dbaeff7a2a74130539a.js +0 -1
  99. data/tools/admin/ComboboxWidget-CuuvOL9K-838f18b5b010cb3d71ae.js +0 -1
  100. data/tools/admin/DateWidget-COvQTAeo-fdab60f30b292f493736.js +0 -1
  101. data/tools/admin/DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js +0 -1
  102. data/tools/admin/DynamicWidget-BuSbQVhf-f880988884028652fefc.js +0 -1
  103. data/tools/admin/FilechecksumWidget-DRnOt_UE-b118998ed499ab04e025.js +0 -1
  104. data/tools/admin/FiledisplayWidget-26R46EjS-312ad25b3132af381df5.js +0 -1
  105. data/tools/admin/Graph-BKw7xw1a-947d95e03148698e323f.js +0 -1
  106. data/tools/admin/HorizontalWidget-fWLFj7Kg-46768f166783e7c59c1c.js +0 -1
  107. data/tools/admin/HorizontallineWidget-Bvu1QP3S-2ef01995448de3e2d6b7.js +0 -1
  108. data/tools/admin/ImageLoader-BCpmQHIl-90267960b7246cba4d23.js +0 -1
  109. data/tools/admin/InterfacesTab-zhl06TGR-269bf95691e1ca1133d0.js +0 -1
  110. data/tools/admin/LabelledWidget-BDhvr03J-d661081e5e66658337e8.js +0 -1
  111. data/tools/admin/LabelprogressbarWidget-g7A5CE8S-3e6d2543cbb4356e663b.js +0 -1
  112. data/tools/admin/LabelsparklineWidget-B27xXxWg-46ed8faac17cc5e23e2c.js +0 -1
  113. data/tools/admin/LabelvalueWidget-DFn8o6LC-83776b27319b83d8f0db.js +0 -1
  114. data/tools/admin/LabelvaluedescWidget-BQpaxFaB-577f3f571587fc3e28a8.js +0 -1
  115. data/tools/admin/LabelvaluelimitsbarWidget-C-z96q8z-05aedeebb4882527347a.js +0 -1
  116. data/tools/admin/LabelvaluelimitscolumnWidget-D2TMEv9O-8f2ba12f3d8541a80f4f.js +0 -1
  117. data/tools/admin/LabelvaluerangebarWidget-D99dZCjz-f2a7ecfb05831ee9ece6.js +0 -1
  118. data/tools/admin/LimitsbarWidget-Cqhh7LKU-68bbd725e553a8fbb473.js +0 -1
  119. data/tools/admin/LimitscolumnWidget-B1GdmlR_-ea359135deab006453c1.js +0 -1
  120. data/tools/admin/LinegraphWidget-COSOQ0uM-d51c56629154333d44e4.js +0 -1
  121. data/tools/admin/MicroservicesTab-eR0hpoO1-90e70bfd68ca8cece876.js +0 -3
  122. data/tools/admin/OpenC3TimePicker-B8Vu9GBz-c1433e91ea28dd0e883e.js +0 -1
  123. data/tools/admin/PackagesTab-aA0fmiQh-fb563fc6f35c8b0be850.js +0 -1
  124. data/tools/admin/PluginsTab-C-ItW862-32d7ee9164d04691765d.js +0 -5
  125. data/tools/admin/RadiobuttonWidget-DL0jVTcb-3c465bd94a1d1501b9aa.js +0 -1
  126. data/tools/admin/RadiogroupWidget-2-td69IA-a20b41e0ee16fca8216f.js +0 -1
  127. data/tools/admin/RedisTab-WR7ODfau-47151697811af67bb310.js +0 -1
  128. data/tools/admin/RollupWidget-BEJ2Icg1-e244836ce5d601a70583.js +0 -1
  129. data/tools/admin/RoutersTab-DUvEd6IA-b95f4c2224cc6903fd12.js +0 -1
  130. data/tools/admin/SecretsTab-CkjjSxCg-e1665e5ecea3aed8dad6.js +0 -1
  131. data/tools/admin/SettingsTab-CJp0hFpx-bae27f27a99072352713.js +0 -6
  132. data/tools/admin/SpacerWidget-CBmzzS_X-207fd991cbf6a40fe4b0.js +0 -1
  133. data/tools/admin/SparklineWidget-CizRh6QR-125aeb303d4965c33db7.js +0 -1
  134. data/tools/admin/TabbookWidget-CvL3Ozmx-392ae93cab5b7cbb9764.js +0 -1
  135. data/tools/admin/TargetsTab-KTV_gfLE-3a9c157196f584e54664.js +0 -1
  136. data/tools/admin/TextboxWidget-BtEwXzDO-e4893abb472b9a687d25.js +0 -1
  137. data/tools/admin/TextfieldWidget-BDbb57HP-51b0d1e6a5aa914e5ac8.js +0 -1
  138. data/tools/admin/TimeWidget-DzD8U8l8-2591897a5196cb54b68d.js +0 -1
  139. data/tools/admin/TitleWidget-CL53vf14-6e11a61576950ccd39fd.js +0 -1
  140. data/tools/admin/ToolsTab-yFxYcJ-o-7c21c60dd470d658fe4d.js +0 -1
  141. data/tools/admin/ValuelimitsbarWidget-Y8sO05E1-c51344904eca186c081f.js +0 -1
  142. data/tools/admin/ValuelimitscolumnWidget-iOjB_fCj-c8c67d58522b7f505b4f.js +0 -1
  143. data/tools/admin/ValuerangebarWidget-DsCoeAm6-a486168810aca7f0e206.js +0 -1
  144. data/tools/admin/Widget-CtYQauzA-ae8839a2e4146c799aec.js +0 -1
  145. data/tools/admin/main-040488697a5f3eed5115.js +0 -1502
  146. data/tools/admin/settings-BrhbKDEv-791c3f57ac7979ee13b6.js +0 -1
@@ -1 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","single-spa","./OutputDialog-B0DR879Y-1fe936426c84cb442ac4.js","vue-router","pinia","vuetify"],(function(C,x){"use strict";var d,u,e,o,r,n,l,g,p,f,h,v,m,D;return{setters:[t=>{d=t.k,u=t.D},t=>{e=t.resolveComponent,o=t.openBlock,r=t.createElementBlock,n=t.createVNode,l=t.withCtx,g=t.Fragment,p=t.renderList,f=t.createTextVNode,h=t.toDisplayString,v=t.createBlock,m=t.createCommentVNode},null,t=>{D=t.S},null,null,null],execute:(function(){const t={components:{OutputDialog:D},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 w(a,c,T,_,i,k){const y=e("v-list-item-title"),S=e("v-btn"),V=e("v-list-item"),b=e("v-divider"),B=e("v-list"),N=e("output-dialog");return o(),r("div",null,[n(B,{class:"list","data-test":"interfaceList"},{default:l(()=>[(o(!0),r(g,null,p(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:j=>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(N,{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 I=C("default",d(t,[["render",w],["__scopeId","data-v-42b26177"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","./LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js","./LedWidget-D2uxHxe3-b432e645d6f5ac424a50.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify","./DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js","./LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(p,b){"use strict";var n,r,a,s,i,o,u,l,c,d;return{setters:[e=>{n=e.h},e=>{r=e.default},e=>{a=e.default},e=>{s=e.resolveComponent,i=e.openBlock,o=e.createElementBlock,u=e.normalizeStyle,l=e.createVNode,c=e.mergeProps},e=>{d=e.k},null,null,null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:r,LedWidget:a},mixins:[n],computed:{labelName(){return[this.parameters[2]+":"]}}};function g(t,B,S,j,w,m){const f=s("label-widget"),v=s("led-widget");return i(),o("div",{ref:"container",class:"d-flex flex-row",style:u(t.computedStyle)},[l(f,{parameters:m.labelName,settings:[...t.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),l(v,c(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const x=p("default",d(e,[["render",g]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","./LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js","./ProgressbarWidget-D_yFssIZ-d10aa4e57145b3259669.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify"],(function(g,b){"use strict";var n,a,l,s,i,o,c,r,u,p;return{setters:[e=>{n=e.h},e=>{a=e.default},e=>{l=e.default},e=>{s=e.resolveComponent,i=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,r=e.createVNode,u=e.mergeProps},e=>{p=e.k},null,null,null,null],execute:(function(){const e={components:{LabelWidget:a,ProgressbarWidget:l},mixins:[n],computed:{labelName(){return[this.parameters[2]+":"]}}};function d(t,S,w,x,k,m){const f=s("label-widget"),y=s("progressbar-widget");return i(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[r(f,{parameters:m.labelName,settings:[...t.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),r(y,u(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,style:t.computedStyle,"widget-index":1}),null,16,["parameters","settings","screen-values","style"])],4)}const v=g("default",p(e,[["render",d]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","./LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js","./SparklineWidget-CizRh6QR-125aeb303d4965c33db7.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify","./GraphWidget-Cs9mvqUu-f9a29adafa014c1e26e4.js","./Graph-BKw7xw1a-947d95e03148698e323f.js","./OpenC3TimePicker-B8Vu9GBz-c1433e91ea28dd0e883e.js"],(function(c,b){"use strict";var r,s,a,n,u,o,l,i,p;return{setters:[e=>{r=e.h},e=>{s=e.default},e=>{a=e.default},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,l=e.normalizeStyle,i=e.createVNode},e=>{p=e.k},null,null,null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:s,SparklineWidget:a},mixins:[r],computed:{labelName(){return[this.parameters[2]+":"]}}};function d(t,S,y,j,v,m){const g=n("label-widget"),f=n("sparkline-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:l(t.computedStyle)},[i(g,{parameters:m.labelName,settings:[...t.appliedSettings],line:t.line,"line-number":t.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),i(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(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","./LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js","./ValueWidget-CAkuc_w_-6037c5f1b4e7c0e9c790.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify","./DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js","./LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./VWidget-5qOYva88-4db083a6475508bbf7ce.js"],(function(d,f){"use strict";var l,r,a,n,i,u,m,s,o,c;return{setters:[e=>{l=e.h},e=>{r=e.default},e=>{a=e.default},e=>{n=e.resolveComponent,i=e.openBlock,u=e.createElementBlock,m=e.normalizeStyle,s=e.createVNode,o=e.mergeProps},e=>{c=e.k},null,null,null,null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:r,ValueWidget:a},mixins:[l],computed:{labelName(){return[this.parseItemName(this.parameters[2]).display+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}};function g(t,j,B,N,S,p){const b=n("label-widget"),v=n("value-widget");return i(),u("div",{ref:"container",class:"d-flex flex-row",style:m(t.computedStyle)},[s(b,{parameters:p.labelName,settings:[...t.appliedSettings],line:t.line,"line-number":t.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),s(v,o(t.$attrs,{parameters:p.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,line:t.line,"line-number":t.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const h=d("default",c(e,[["render",g]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","./LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js","./ValueWidget-CAkuc_w_-6037c5f1b4e7c0e9c790.js","./main-040488697a5f3eed5115.js","vue","vue-router","pinia","single-spa","vuetify","./DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js","./LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./VWidget-5qOYva88-4db083a6475508bbf7ce.js"],(function(h,j){"use strict";var n,i,a,l,u,s,m,c,o,r,p;return{setters:[e=>{n=e.h},e=>{i=e.default},e=>{a=e.default},e=>{l=e.k,u=e.F},e=>{s=e.resolveComponent,m=e.openBlock,c=e.createElementBlock,o=e.normalizeStyle,r=e.createVNode,p=e.mergeProps},null,null,null,null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:i,ValueWidget:a},mixins:[n],data(){return{description:"",valueParameters:[]}},computed:{labelName(){return[this.description]}},created(){if(this.valueParameters=this.parameters.slice(0,3),this.parameters[4]!=null&&this.valueParameters.push(this.parameters[4]),this.parameters[5]!=null&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3)this.description=this.parameters[3];else{const t=this.parseItemName(this.parameters[2]);t.arrayIndex!==null?this.description=t.display:new u().get_item(this.parameters[0],this.parameters[1],t.name).then(d=>{this.description=d.description})}}};function g(t,d,y,B,v,b){const f=s("label-widget"),N=s("value-widget");return m(),c("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[r(f,{parameters:b.labelName,settings:[...t.settings],line:t.line,"line-number":t.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),r(N,p(t.$attrs,{parameters:v.valueParameters,settings:[...t.settings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,line:t.line,"line-number":t.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const w=h("default",l(e,[["render",g]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./LabelvalueWidget-DFn8o6LC-83776b27319b83d8f0db.js","./LimitsbarWidget-Cqhh7LKU-68bbd725e553a8fbb473.js","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue","./main-040488697a5f3eed5115.js","./LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js","vue-router","pinia","single-spa","vuetify","./ValueWidget-CAkuc_w_-6037c5f1b4e7c0e9c790.js","./DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js","./LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./VWidget-5qOYva88-4db083a6475508bbf7ce.js","./BarColumn-Bb305iCi-1d14dd1f021f8d8d5f6a.js"],(function(g,f){"use strict";var r,i,a,l,u,o,c,s,n,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.h},e=>{l=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,n=e.mergeProps},e=>{m=e.k},null,null,null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{LabelvalueWidget:r,LimitsbarWidget:i},mixins:[a],computed:{labelValueSettings(){return[...this.appliedSettings.filter(t=>t[0]==="__SCREEN_ID__"),...this.settings.filter(t=>Number.parseInt(t[0])===0||Number.parseInt(t[0])===1)]}}};function p(t,j,B,S,L,d){const b=l("labelvalue-widget"),v=l("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(b,n(t.$attrs,{parameters:t.parameters,settings:d.labelValueSettings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(v,n(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"])],4)}const C=g("default",m(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js","./ValueWidget-CAkuc_w_-6037c5f1b4e7c0e9c790.js","./LimitscolumnWidget-B1GdmlR_-ea359135deab006453c1.js","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify","./DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js","./LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./VWidget-5qOYva88-4db083a6475508bbf7ce.js","./BarColumn-Bb305iCi-1d14dd1f021f8d8d5f6a.js"],(function(g,b){"use strict";var i,r,a,u,n,o,c,m,s,l,d;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=>{d=e.k},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,C,S,W,w,V){const v=n("label-widget"),B=n("limitscolumn-widget"),f=n("value-widget");return o(),c("div",{ref:"container",style:m(t.computedStyle)},[s(v,{parameters:[t.parameters[2]],settings:[...t.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),s(B,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(f,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 j=g("default",d(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./LabelvalueWidget-DFn8o6LC-83776b27319b83d8f0db.js","./RangebarWidget-i2mlnxys-4eec6df5412c7c011047.js","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue","./main-040488697a5f3eed5115.js","./LabelWidget-CA1bTX2B-cf65a81edc2678cf21d0.js","vue-router","pinia","single-spa","vuetify","./ValueWidget-CAkuc_w_-6037c5f1b4e7c0e9c790.js","./DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js","./LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./VWidget-5qOYva88-4db083a6475508bbf7ce.js"],(function(g,v){"use strict";var n,i,u,s,m,o,c,r,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{u=e.h},e=>{s=e.resolveComponent,m=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,r=e.createVNode,a=e.mergeProps},e=>{p=e.k},null,null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{LabelvalueWidget:n,RangebarWidget:i},mixins:[u],computed:{labelValueSettings(){return[...this.settings.filter(t=>t[0]==="__SCREEN_ID__"),...this.settings.filter(t=>Number.parseInt(t[0])===0||Number.parseInt(t[0])===1)]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,B,j,V,C,l){const h=s("labelvalue-widget"),b=s("rangebar-widget");return m(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[r(h,a(t.$attrs,{parameters:l.labelValueParameters,settings:l.labelValueSettings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),r(b,a(t.$attrs,{parameters:l.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"])],4)}const f=g("default",p(e,[["render",d]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./BarColumn-Bb305iCi-1d14dd1f021f8d8d5f6a.js","./LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js","vue","./main-040488697a5f3eed5115.js","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue-router","pinia","single-spa","vuetify"],(function(a,g){"use strict";var l,s,r,n,o,m,h;return{setters:[e=>{l=e.l},e=>{s=e.x},e=>{r=e.resolveComponent,n=e.openBlock,o=e.createBlock,m=e.createCommentVNode},e=>{h=e.k},null,null,null,null,null],execute:(function(){const e={components:{LimitsBar:s},mixins:[l],data(){return{width:160,height:22}},computed:{limits(){let i=this.limitsSettings[this.selectedLimitsSet];if(i)return i;throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSBAR",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}},mergedStyle(){return{...this.cssProps,...this.computedStyle}}},created(){this.verifyNumParams("LIMITSBAR",3,6,"LIMITSBAR <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function d(i,p,y,B,u,t){const c=r("LimitsBar");return t.limits?(n(),o(c,{key:0,"red-low":t.limits[0],"yellow-low":t.limits[1],"yellow-high":t.limits[2],"red-high":t.limits[3],"green-low":t.limits[4],"green-high":t.limits[5],width:u.width,height:u.height,"computed-style":t.mergedStyle,"hide-tooltip":!!i.tooltipText},null,8,["red-low","yellow-low","yellow-high","red-high","green-low","green-high","width","height","computed-style","hide-tooltip"])):m("",!0)}const w=a("default",h(e,[["render",d]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./BarColumn-Bb305iCi-1d14dd1f021f8d8d5f6a.js","vue","./main-040488697a5f3eed5115.js","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue-router","pinia","single-spa","vuetify"],(function(c,v){"use strict";var s,a,l,d,r,h;return{setters:[i=>{s=i.l},i=>{a=i.openBlock,l=i.createElementBlock,d=i.normalizeStyle,r=i.createStaticVNode},i=>{h=i.k},null,null,null,null,null],execute:(function(){const i={mixins:[s],data(){return{width:22,height:120}},computed:{cssProps:function(){if(!this.screenValues[this.valueId])return{};let e=this.screenValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);if(t)return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"};throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSCOLUMN",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function n(e,t,u,g,w,o){return a(),l("div",{class:"limitsbar",style:d([o.cssProps,e.computedStyle])},[...t[0]||(t[0]=[r('<div class="limitsbar__container" data-v-4c4fd53a><div class="limitsbar__redlow" data-v-4c4fd53a></div><div class="limitsbar__redhigh" data-v-4c4fd53a></div><div class="limitsbar__yellowlow" data-v-4c4fd53a></div><div class="limitsbar__yellowhigh" data-v-4c4fd53a></div><div class="limitsbar__greenlow" data-v-4c4fd53a></div><div class="limitsbar__greenhigh" data-v-4c4fd53a></div><div class="limitsbar__blue" data-v-4c4fd53a></div><div class="limitsbar__line" data-v-4c4fd53a></div><div class="limitsbar__arrow" data-v-4c4fd53a></div></div>',1)])],4)}const m=c("default",h(i,[["render",n],["__scopeId","data-v-4c4fd53a"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./GraphWidget-Cs9mvqUu-f9a29adafa014c1e26e4.js","./main-040488697a5f3eed5115.js","vue","./Graph-BKw7xw1a-947d95e03148698e323f.js","single-spa","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue-router","pinia","vuetify","./OpenC3TimePicker-B8Vu9GBz-c1433e91ea28dd0e883e.js"],(function(p,c){"use strict";var s,n,a,r,o,l,d;return{setters:[t=>{s=t.M},t=>{n=t.k},t=>{a=t.resolveComponent,r=t.openBlock,o=t.createBlock,l=t.normalizeStyle},t=>{d=t.Y},null,null,null,null,null,null],execute:(function(){const t={components:{Graph:d},mixins:[s]};function h(e,i,g,v,f,k){const u=a("graph");return r(),o(u,{id:e.id,ref:"graph"+e.id,state:e.state,"selected-graph-id":e.id,"start-time":e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:l(e.computedStyle),"time-zone":e.screenTimeZone,"hide-toolbar":"","hide-overview":"",onPause:i[0]||(i[0]=()=>e.state="pause"),onStart:i[1]||(i[1]=()=>e.state="start")},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const m=p("default",n(t,[["render",h]]))})}}));
@@ -1,3 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","single-spa","./OutputDialog-B0DR879Y-1fe936426c84cb442ac4.js","vue-router","pinia","vuetify"],(function(U,K){"use strict";var O,E,v,A,c,u,g,n,a,C,p,h,_,y,w,F,R,N,T,j;return{setters:[l=>{O=l.k,E=l.R,v=l.D,A=l.F},l=>{c=l.resolveComponent,u=l.openBlock,g=l.createBlock,n=l.withCtx,a=l.createVNode,C=l.createElementVNode,p=l.toDisplayString,h=l.createTextVNode,_=l.createElementBlock,y=l.Fragment,w=l.createCommentVNode,F=l.renderList,R=l.withDirectives,N=l.vShow,T=l.mergeProps},null,l=>{j=l.S},null,null,null],execute:(function(){const l={props:{modelValue:Boolean,text:{type:String,default:null},title:{type:String,default:null}},emits:["update:modelValue"],computed:{dialogText:function(){return this.text},show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{download:function(){const e=new Blob([this.dialogText],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.title}__error.txt`),t.click()}}},P={class:"mx-2"},I={class:"pa-2"};function L(e,t,d,r,o,i){const f=c("v-spacer"),m=c("v-btn"),k=c("v-toolbar"),M=c("v-textarea"),$=c("v-card-text"),V=c("v-card-actions"),D=c("v-card"),x=c("v-dialog");return u(),g(x,{modelValue:i.show,"onUpdate:modelValue":t[2]||(t[2]=S=>i.show=S),width:"600"},{default:n(()=>[a(D,null,{default:n(()=>[a(k,{height:"24"},{default:n(()=>[a(f),C("span",null,p(d.title),1),a(f),C("div",P,[a(m,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:i.download},null,8,["onClick"])])]),_:1}),C("div",I,[a($,null,{default:n(()=>[a(M,{modelValue:i.dialogText,"onUpdate:modelValue":t[0]||(t[0]=S=>i.dialogText=S),readonly:"",rows:"15","data-test":"dialogText"},null,8,["modelValue"])]),_:1})]),a(V,{class:"px-2"},{default:n(()=>[a(f),a(m,{variant:"flat",onClick:t[1]||(t[1]=S=>i.show=!i.show)},{default:n(()=>[...t[3]||(t[3]=[h(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const J={components:{OutputDialog:j,TextBoxDialog:O(l,[["render",L]])},mixins:[E],data(){return{filteredMicroservices:[],allMicroservices:[],microservice_status:{},microservice_id:null,jsonContent:"",dialogTitle:"",showDialog:!1,showError:!1,alert:"",alertType:"success",showAlert:!1,updater:null,timeZone:"local",microserviceOperations:{}}},computed:{serviceFilter(){const e=this.$route.query.services;return e?e.split(",").map(t=>t.trim()).filter(t=>t):null},hasServiceFilter(){return this.serviceFilter&&this.serviceFilter.length>0},totalServiceCount(){return this.allMicroservices.length},filteredServiceCount(){return this.filteredMicroservices.length}},watch:{"$route.query.services":function(){this.applyServiceFilter()}},created(){new A().get_setting("time_zone").then(e=>{e&&(this.timeZone=e)}).catch(()=>{})},mounted(){this.update(),this.updater=setInterval(()=>{this.update()},2e3)},beforeUnmount(){clearInterval(this.updater),this.updater=null},methods:{isOperationInProgress:function(e){return!!this.microserviceOperations[e]},isEnabled:function(e){return this.allMicroservices.find(t=>t.name===e)?.enabled!==!1},isRestarting:function(e){return this.microserviceOperations[e]?.operation==="restarting"},isStarting:function(e){return this.microserviceOperations[e]?.operation==="starting"},isStopping:function(e){return this.microserviceOperations[e]?.operation==="stopping"},update:function(){v.get("/openc3-api/microservice_status/all").then(e=>{this.microservice_status=e.data,this.checkOperationCompletion()}),v.get("/openc3-api/microservices/all").then(e=>{let t=[];for(const[d,r]of Object.entries(e.data))t.push(r);t.sort((d,r)=>d.name.localeCompare(r.name)),this.allMicroservices=t,this.applyServiceFilter()})},checkOperationCompletion:function(){for(const[e,t]of Object.entries(this.microserviceOperations)){const d=this.allMicroservices.find(i=>i.name===e);if(!d)continue;const r=d.enabled!==!1,o=t.enabled_states[t.enabled_states.length-1];r!==o&&t.enabled_states.push(r),this.isOperationComplete(e,t)&&delete this.microserviceOperations[e]}},isOperationComplete:function(e,t){if(Date.now()-t.time_started>3e4)return this.alert=`${e} timed out when ${t.operation}.`,this.alertType="error",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),delete this.microserviceOperations[e],!0;if(t.operation==="stopping")return t.enabled_states.includes(!1);if(t.operation==="starting")return t.enabled_states.includes(!0);if(t.operation==="restarting"){const d=this.microservice_status[e]?.updated_at;return d&&t.initial_updated_at?d!==t.initial_updated_at:!1}return!1},applyServiceFilter:function(){this.hasServiceFilter?this.filteredMicroservices=this.allMicroservices.filter(e=>this.serviceFilter.includes(e.name)):this.filteredMicroservices=this.allMicroservices},clearServiceFilter:function(){this.$router.push({query:{}})},bulkRestartServices:function(){const e=this.filteredMicroservices.map(r=>r.name),t=e.join(", "),d=`Are you sure you want to restart ${e.length} microservice(s)? ${t}`;this.$dialog.confirm(d,{okText:"Restart",cancelText:"Cancel"}).then(()=>{e.forEach(r=>{const o=this.allMicroservices.find(f=>f.name===r)?.enabled!==!1,i=this.microservice_status[r]?.updated_at;this.microserviceOperations[r]={operation:"restarting",enabled_states:[o],initial_updated_at:i,time_started:Date.now()},v.post(`/openc3-api/microservices/${r}/start`).catch(f=>{this.alert=`Start command failed for ${r}: ${f}`,this.alertType="error",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),delete this.microserviceOperations[r]})})}).catch(()=>{})},bulkStopServices:function(){const e=this.filteredMicroservices.map(r=>r.name),t=e.join(", "),d=`Are you sure you want to stop ${e.length} microservice(s)?
2
-
3
- ${t}`;this.$dialog.confirm(d,{okText:"Stop",cancelText:"Cancel"}).then(()=>{e.forEach(r=>{const o=this.allMicroservices.find(i=>i.name===r)?.enabled!==!1;this.microserviceOperations[r]={operation:"stopping",enabled_states:[o],time_started:Date.now()},v.post(`/openc3-api/microservices/${r}/stop`).catch(i=>{this.alert=`Stop command failed for ${r}: ${i}`,this.alertType="error",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),delete this.microserviceOperations[r]})})}).catch(()=>{})},stopMicroservice:function(e){this.$dialog.confirm(`Are you sure you want to stop microservice: ${e}?`,{okText:"Stop",cancelText:"Cancel"}).then(t=>{const d=this.allMicroservices.find(r=>r.name===e)?.enabled!==!1;this.microserviceOperations[e]={operation:"stopping",enabled_states:[d],time_started:Date.now()},v.post(`/openc3-api/microservices/${e}/stop`).catch(r=>{this.alert=`Stop command failed for ${e}: ${r}`,this.alertType="error",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),delete this.microserviceOperations[e]})})},restartMicroservice:function(e){this.$dialog.confirm(`Are you sure you want to restart microservice: ${e}?`,{okText:"Restart",cancelText:"Cancel"}).then(t=>{const d=this.allMicroservices.find(r=>r.name===e)?.enabled!==!1;this.microserviceOperations[e]={operation:"restarting",enabled_states:[d],initial_updated_at:this.microservice_status[e]?.updated_at,time_started:Date.now()},v.post(`/openc3-api/microservices/${e}/start`).catch(r=>{this.alert=`Restart command failed for ${e}: ${r}`,this.alertType="error",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),delete this.microserviceOperations[e]})})},showMicroservice:function(e){v.get(`/openc3-api/microservices/${e}`).then(t=>{this.microservice_id=e,this.dialogTitle=e,this.jsonContent=JSON.stringify(t.data,null," "),this.showDialog=!0})},showMicroserviceError:function(e){this.dialogTitle=e;const t=this.microservice_status[e].error;this.jsonContent=JSON.stringify(t,null," "),this.showError=!0},getStateColor(e){const t=this.microservice_status[e];return t?t.error?"red":!this.isEnabled(e)||t.state==="STOPPED"?"yellow":t.state==="RUNNING"?"green":"grey":"grey"},getStateText(e){return this.isEnabled(e)?this.microservice_status[e].state:"STOPPED"},dialogCallback:function(e){if(this.showDialog=!1,e!==null){let t=JSON.parse(e),d="put",r=`/openc3-api/microservices/${this.microservice_id}`;t.name!==this.microservice_id&&(d="post",r="/openc3-api/microservices"),v[d](r,{data:{json:e}}).then(o=>{this.alert="Modified Microservice",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}}},Z={class:"text-caption text-medium-emphasis mt-2 mb-2 ml-4"};function q(e,t,d,r,o,i){const f=c("v-alert"),m=c("v-btn"),k=c("v-col"),M=c("v-row"),$=c("v-list-item-title"),V=c("v-list-item-subtitle"),D=c("v-chip"),x=c("v-tooltip"),S=c("v-list-item"),z=c("v-divider"),G=c("v-list"),Y=c("output-dialog"),H=c("text-box-dialog");return u(),_("div",null,[a(f,{modelValue:o.showAlert,"onUpdate:modelValue":t[0]||(t[0]=s=>o.showAlert=s),closable:"",type:o.alertType},{default:n(()=>[h(p(o.alert),1)]),_:1},8,["modelValue","type"]),C("div",Z,[i.hasServiceFilter&&i.filteredServiceCount===0?(u(),_(y,{key:0},[h(" No microservices match filter (showing 0 / "+p(i.totalServiceCount)+") ",1)],64)):i.hasServiceFilter?(u(),_(y,{key:1},[h(" Showing "+p(i.filteredServiceCount)+" / "+p(i.totalServiceCount)+" microservices ",1)],64)):(u(),_(y,{key:2},[h(p(i.totalServiceCount)+" microservices ",1)],64))]),i.hasServiceFilter?(u(),g(M,{key:0,class:"ml-1 mb-1"},{default:n(()=>[a(k,{cols:"auto"},{default:n(()=>[a(m,{color:"primary","prepend-icon":"mdi-filter-off","aria-label":"Filter applied. Click to clear filter and show all services.",onClick:i.clearServiceFilter},{default:n(()=>[...t[3]||(t[3]=[h(" Show All ",-1)])]),_:1},8,["onClick"])]),_:1}),a(k,{cols:"auto"},{default:n(()=>[a(m,{color:"warning","prepend-icon":"mdi-refresh",disabled:i.filteredServiceCount===0,onClick:i.bulkRestartServices},{default:n(()=>[...t[4]||(t[4]=[h(" Restart All ",-1)])]),_:1},8,["disabled","onClick"])]),_:1}),a(k,{cols:"auto"},{default:n(()=>[a(m,{color:"error","prepend-icon":"mdi-stop",disabled:i.filteredServiceCount===0,onClick:i.bulkStopServices},{default:n(()=>[...t[5]||(t[5]=[h(" Stop All ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})):w("",!0),a(G,{class:"list","data-test":"microserviceList"},{default:n(()=>[(u(!0),_(y,null,F(o.filteredMicroservices,s=>(u(),_("div",{key:s.name},[a(S,null,{append:n(()=>[R(a(m,{icon:"mdi-alert",variant:"text",onClick:b=>i.showMicroserviceError(s.name)},null,8,["onClick"]),[[N,o.microservice_status[s.name]?.error]]),o.microservice_status[s.name]?(u(),g(D,{key:0,color:i.getStateColor(s.name),size:"small",label:""},{default:n(()=>[h(p(i.getStateText(s.name)),1)]),_:2},1032,["color"])):w("",!0),a(x,{text:i.isEnabled(s.name)?"Restart":"Start",location:"top"},{activator:n(({props:b})=>[a(m,T({ref_for:!0},b,{"aria-label":i.isEnabled(s.name)?"Restart Microservice":"Start Microservice",icon:i.isRestarting(s.name)||i.isStarting(s.name)?"mdi-loading":i.isEnabled(s.name)?"mdi-refresh":"mdi-play",class:{"rotating-icon":i.isRestarting(s.name)||i.isStarting(s.name)},variant:"text",disabled:i.isOperationInProgress(s.name),onClick:B=>i.restartMicroservice(s.name)}),null,16,["aria-label","icon","class","disabled","onClick"])]),_:2},1032,["text"]),a(x,{text:"Stop",location:"top"},{activator:n(({props:b})=>[a(m,T({ref_for:!0},b,{"aria-label":"Stop Microservice",icon:i.isStopping(s.name)?"mdi-loading":"mdi-stop",class:{"rotating-icon":i.isStopping(s.name)},variant:"text",disabled:i.isOperationInProgress(s.name),onClick:B=>i.stopMicroservice(s.name)}),null,16,["icon","class","disabled","onClick"])]),_:2},1024),a(x,{text:"Show Details",location:"top"},{activator:n(({props:b})=>[a(m,T({ref_for:!0},b,{"aria-label":"Show Microservice Details",icon:"mdi-eye",variant:"text",onClick:B=>i.showMicroservice(s.name)}),null,16,["onClick"])]),_:2},1024)]),default:n(()=>[a($,null,{default:n(()=>[h(p(s.name),1)]),_:2},1024),o.microservice_status[s.name]?(u(),g(V,{key:0},{default:n(()=>[h(" Updated: "+p(e.formatNanoseconds(o.microservice_status[s.name].updated_at,o.timeZone))+", Enabled: "+p(i.isEnabled(s.name)?"True":"False")+", Count: "+p(o.microservice_status[s.name].count),1)]),_:2},1024)):w("",!0)]),_:2},1024),a(z)]))),128))]),_:1}),o.showDialog?(u(),g(Y,{key:1,modelValue:o.showDialog,"onUpdate:modelValue":t[1]||(t[1]=s=>o.showDialog=s),content:o.jsonContent,type:"Microservice",name:o.dialogTitle,onSubmit:i.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):w("",!0),o.showError?(u(),g(H,{key:2,modelValue:o.showError,"onUpdate:modelValue":t[2]||(t[2]=s=>o.showError=s),text:o.jsonContent,title:o.dialogTitle},null,8,["modelValue","text","title"])):w("",!0)])}const W=U("default",O(J,[["render",q],["__scopeId","data-v-6b152c7a"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue"],(function(F,M){"use strict";var y,V,l,S,g,N,b,v,o,u,p,T;return{setters:[i=>{y=i.F,V=i.k},i=>{l=i.resolveComponent,S=i.openBlock,g=i.createBlock,N=i.withKeys,b=i.normalizeClass,v=i.normalizeStyle,o=i.withCtx,u=i.createVNode,p=i.createTextVNode,T=i.mergeProps}],execute:(function(){const i=new Map,c=new Map;function I(e,t){if(i.has(e))return Promise.resolve(i.get(e));if(!c.has(e)){const a=new y().get_setting(e).then(s=>{const r=s??t;return i.set(e,r),r}).catch(()=>(i.set(e,t),t)).finally(()=>{c.delete(e)});c.set(e,a)}return c.get(e)}function k(e){return i.has(e)?i.get(e):void 0}const C={inheritAttrs:!1,props:{modelValue:{type:String,default:""},label:{type:String,default:"Time"},rules:{type:Array,default:()=>[]},errorMessages:{type:[String,Array],default:()=>[]},hideDetails:{type:[Boolean,String],default:!1},variant:{type:String,default:"filled"},density:{type:String,default:"default"},style:{type:[String,Object],default:""},textFieldClass:{type:String,default:""},dataTest:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","focus"],data(){return{menu:!1,timeFormat:k("time_format")??null,tempTime:null,inputValue:""}},computed:{computedStyle(){return typeof this.style=="string"?this.style:this.style},computedRules(){return this.rules.map(e=>()=>e(this.modelValue))}},watch:{modelValue:{immediate:!0,handler(e){!this.menu&&this.timeFormat!==null&&(this.inputValue=this.formatForDisplay(e))}},inputValue(e){e===""&&this.modelValue!==""&&this.$emit("update:modelValue","")},menu(e){e&&(this.tempTime=this.normalizeTime(this.modelValue)||"00:00:00")},tempTime(e){this.menu&&e&&(this.inputValue=this.formatForDisplay(e))}},async created(){if(this.timeFormat!==null)return;const e=this.inputValue;this.timeFormat=await I("time_format","ampm"),!this.menu&&this.inputValue===e&&(this.inputValue=this.formatForDisplay(this.modelValue))},methods:{formatForDisplay(e){return e?this.timeFormat==="24hr"?e:this.convertTo12Hour(e):""},handleBlur(){const e=this.parseTimeInput(this.inputValue);e?(this.$emit("update:modelValue",e),this.inputValue=this.formatForDisplay(e)):this.inputValue===""?this.$emit("update:modelValue",""):this.inputValue=this.formatForDisplay(this.modelValue)},parseTimeInput(e){if(!e||e.trim()==="")return"";const t=e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);if(t){const s=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10),n=t[3]?Number.parseInt(t[3],10):0;if(s>=0&&s<=23&&r>=0&&r<=59&&n>=0&&n<=59)return`${s.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}const a=e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*(AM|PM|am|pm)$/i);if(a){let s=Number.parseInt(a[1],10);const r=Number.parseInt(a[2],10),n=a[3]?Number.parseInt(a[3],10):0,d=a[4].toUpperCase();if(s>=1&&s<=12&&r>=0&&r<=59&&n>=0&&n<=59)return d==="AM"?s===12&&(s=0):s!==12&&(s+=12),`${s.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}return null},save(){this.$emit("update:modelValue",this.tempTime),this.inputValue=this.formatForDisplay(this.tempTime),this.menu=!1},cancel(){this.tempTime=this.normalizeTime(this.modelValue)||"00:00:00",this.menu=!1},normalizeTime(e){if(!e)return"";const t=e.split(":");if(t.length<2)return e;const a=Number.parseInt(t[0],10),s=Number.parseInt(t[1],10),r=t.length>2?Number.parseInt(t[2],10):0;return Number.isNaN(a)||Number.isNaN(s)||Number.isNaN(r)?"":`${a.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`},convertTo12Hour(e){if(!e)return"";const t=e.split(":");if(t.length<2)return e;let a=Number.parseInt(t[0],10);const s=Number.parseInt(t[1],10),r=t.length>2?Number.parseInt(t[2],10):0;if(Number.isNaN(a)||Number.isNaN(s)||Number.isNaN(r))return e;const n=a>=12?"PM":"AM";a=a%12,a=a||12;const d=a.toString().padStart(2,"0"),h=s.toString().padStart(2,"0"),f=r.toString().padStart(2,"0");return`${d}:${h}:${f} ${n}`}}};function w(e,t,a,s,r,n){const d=l("v-icon"),h=l("v-time-picker"),f=l("v-spacer"),$=l("v-btn"),_=l("v-card-actions"),x=l("v-card"),B=l("v-menu"),D=l("v-text-field");return S(),g(D,{modelValue:r.inputValue,"onUpdate:modelValue":t[2]||(t[2]=m=>r.inputValue=m),label:a.label,rules:n.computedRules,"error-messages":a.errorMessages,"hide-details":a.hideDetails,variant:a.variant,density:a.density,style:v(n.computedStyle),class:b(a.textFieldClass),disabled:a.disabled,"data-test":a.dataTest,onBlur:n.handleBlur,onFocus:t[3]||(t[3]=m=>e.$emit("focus",m)),onKeydown:N(n.handleBlur,["enter"])},{"prepend-inner":o(()=>[u(B,{modelValue:r.menu,"onUpdate:modelValue":t[1]||(t[1]=m=>r.menu=m),"close-on-content-click":!1,transition:"scale-transition",offset:"16"},{activator:o(({props:m})=>[u(d,T(m,{class:"cursor-pointer"}),{default:o(()=>[...t[4]||(t[4]=[p(" mdi-clock-outline ",-1)])]),_:1},16)]),default:o(()=>[u(x,{class:"time-picker-card"},{default:o(()=>[u(h,{modelValue:r.tempTime,"onUpdate:modelValue":t[0]||(t[0]=m=>r.tempTime=m),format:r.timeFormat,scrollable:"","use-seconds":"","hide-header":""},null,8,["modelValue","format"]),u(_,null,{default:o(()=>[u(f),u($,{variant:"text",onClick:n.cancel},{default:o(()=>[...t[5]||(t[5]=[p("Cancel",-1)])]),_:1},8,["onClick"]),u($,{color:"primary",variant:"text",onClick:n.save},{default:o(()=>[...t[6]||(t[6]=[p("OK",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","label","rules","error-messages","hide-details","variant","density","style","class","disabled","data-test","onBlur","onKeydown"])}const z=F("w",V(C,[["render",w],["__scopeId","data-v-3a6a70ee"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","single-spa","./SimpleTextDialog-tGqcHHCx-aac1d333cbb9a93606d6.js","vue-router","pinia","vuetify"],(function(U,q){"use strict";var w,D,b,f,O,i,r,u,e,t,d,h,V,y,v,$,m,S,T,F,N;return{setters:[a=>{w=a.k,D=a.R,b=a.C,f=a.D,O=a.F},a=>{i=a.resolveComponent,r=a.openBlock,u=a.createElementBlock,e=a.createVNode,t=a.withCtx,d=a.createTextVNode,h=a.createElementVNode,V=a.createBlock,y=a.Fragment,v=a.renderList,$=a.createSlots,m=a.toDisplayString,S=a.normalizeClass,T=a.mergeProps,F=a.createCommentVNode},null,a=>{N=a.E},null,null,null],execute:(function(){const a={components:{DownloadDialog:b,SimpleTextDialog:N},mixins:[D],data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,progress:0,gems:[],python:[],processes:{},timeZone:"local"}},created(){new O().get_setting("time_zone").then(n=>{n&&(this.timeZone=n)}).catch(()=>{})},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(n){this.processOutput=n.output,this.showProcessOutput=!0},update(){f.get("/openc3-api/packages").then(n=>{this.gems=n.data.ruby,this.python=n.data.python})},updateProcesses:function(){f.get("/openc3-api/process_status/package_?substr=true").then(n=>{this.processes=n.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},2500)})},selectFile(){this.progress=0,this.$refs.fileInput.click()},fileChange(n){const s=n.target.files;if(s.length>0){this.loadingPackage=!0;let E=this;const B=[...s].map(o=>{const c=new FormData;return c.append("package",o,o.name),f.post("/openc3-api/packages",{data:c,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(g){let p=Math.round(g.loaded*100/g.total);E.progress=p}})});Promise.all(B).then(o=>{this.$notify.normal({body:`Uploaded ${o.length} package${o.length>1?"s":""}`}),this.loadingPackage=!1,this.files=[],setTimeout(()=>{this.updateProcesses()},2500)}).catch(o=>{this.loadingPackage=!1})}},deletePackage(n){this.$dialog.confirm(`Are you sure you want to remove: ${n}`,{okText:"Delete",cancelText:"Cancel"}).then(s=>f.delete(`/openc3-api/packages/${n}`)).then(s=>{this.$notify.normal({body:`Removed package ${n}`}),setTimeout(()=>{this.updateProcesses()},2500)}).catch(s=>{this.$notify.serious({body:`Failed to remove package ${n}`})})}}},j=["textContent"],G=["textContent"];function I(n,s,E,B,o,c){const g=i("v-btn"),p=i("v-col"),z=i("rux-progress"),C=i("v-row"),_=i("v-list-item-title"),A=i("v-list-item-subtitle"),Z=i("v-tooltip"),x=i("v-list-item"),P=i("v-divider"),R=i("v-list"),H=i("download-dialog"),M=i("simple-text-dialog");return r(),u("div",null,[e(C,{"no-gutters":"",align:"center",class:"px-2"},{default:t(()=>[e(p,{class:"pa-2 mt-2"},{default:t(()=>[e(g,{onClick:c.selectFile},{default:t(()=>[...s[3]||(s[3]=[d("Install Package",-1)])]),_:1},8,["onClick"]),h("input",{ref:"fileInput",style:{display:"none"},type:"file",onChange:s[0]||(s[0]=(...l)=>c.fileChange&&c.fileChange(...l))},null,544)]),_:1}),e(p,{class:"ml-4 mr-2",cols:"4"},{default:t(()=>[e(z,{value:o.progress},null,8,["value"])]),_:1})]),_:1}),Object.keys(o.processes).length>0?(r(),V(R,{key:0,class:"list","data-test":"process-list"},{default:t(()=>[e(C,{"no-gutters":"",class:"px-4"},{default:t(()=>[e(p,{class:"text-h6"},{default:t(()=>[...s[4]||(s[4]=[d("Process List",-1)])]),_:1}),e(p,{align:"right"},{default:t(()=>[...s[5]||(s[5]=[h("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(r(!0),u(y,null,v(o.processes,l=>(r(),u("div",{key:l.name},[e(x,null,$({default:t(()=>[e(_,null,{default:t(()=>[h("span",{class:S(l.state.toLowerCase()),textContent:m(`Processing ${l.process_type}: ${l.detail} - ${l.state}`)},null,10,j)]),_:2},1024),e(A,null,{default:t(()=>[h("span",{textContent:m(" Updated At: "+n.formatNanoseconds(l.updated_at,o.timeZone))},null,8,G)]),_:2},1024)]),_:2},[l.state!=="Running"?{name:"append",fn:t(()=>[e(Z,{"open-delay":600,location:"top"},{activator:t(({props:k})=>[e(g,T({ref_for:!0},k,{icon:"mdi-eye",variant:"text","aria-label":"Show Output",onClick:L=>c.showOutput(l)}),null,16,["onClick"])]),default:t(()=>[s[6]||(s[6]=h("span",null,"Show Output",-1))]),_:2},1024)]),key:"0"}:void 0]),1024),e(P)]))),128))]),_:1})):F("",!0),e(R,{class:"list","data-test":"packageList"},{default:t(()=>[e(C,{class:"px-4"},{default:t(()=>[e(p,{class:"text-h6"},{default:t(()=>[...s[7]||(s[7]=[d("Ruby Gems",-1)])]),_:1})]),_:1}),(r(!0),u(y,null,v(o.gems,(l,k)=>(r(),u("div",{key:k},[e(x,null,{append:t(()=>[e(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Ruby Gem",onClick:L=>c.deletePackage(l)},null,8,["onClick"])]),default:t(()=>[e(_,null,{default:t(()=>[d(m(l),1)]),_:2},1024)]),_:2},1024),e(P)]))),128)),e(C,{class:"px-4"},{default:t(()=>[e(p,{class:"text-h6"},{default:t(()=>[...s[8]||(s[8]=[d("Python Packages",-1)])]),_:1})]),_:1}),(r(!0),u(y,null,v(o.python,(l,k)=>(r(),u("div",{key:k},[e(x,null,{append:t(()=>[e(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Python Package",onClick:L=>c.deletePackage(l)},null,8,["onClick"])]),default:t(()=>[e(_,null,{default:t(()=>[d(m(l),1)]),_:2},1024)]),_:2},1024),e(P)]))),128))]),_:1}),e(H,{modelValue:o.showDownloadDialog,"onUpdate:modelValue":s[1]||(s[1]=l=>o.showDownloadDialog=l)},null,8,["modelValue"]),e(M,{modelValue:o.showProcessOutput,"onUpdate:modelValue":s[2]||(s[2]=l=>o.showProcessOutput=l),title:"Process Output",text:o.processOutput},null,8,["modelValue","text"])])}const J=U("default",w(a,[["render",I],["__scopeId","data-v-e5f831d9"]]))})}}));
@@ -1,5 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","single-spa","./SimpleTextDialog-tGqcHHCx-aac1d333cbb9a93606d6.js","./settings-BrhbKDEv-791c3f57ac7979ee13b6.js","vue-router","pinia","vuetify"],(function(te,et){"use strict";var $,W,Y,Z,P,L,G,n,r,y,i,o,f,u,h,A,E,v,z,M,C,K,j,N,J,Q;return{setters:[p=>{$=p.k,W=p.R,Y=p.e,Z=p.x,P=p.D,L=p.F,G=p.j},p=>{n=p.resolveComponent,r=p.openBlock,y=p.createElementBlock,i=p.createVNode,o=p.withCtx,f=p.createTextVNode,u=p.createElementVNode,h=p.createBlock,A=p.Fragment,E=p.renderList,v=p.toDisplayString,z=p.normalizeClass,M=p.mergeProps,C=p.createCommentVNode,K=p.normalizeProps,j=p.guardReactiveProps,N=p.withModifiers},null,p=>{J=p.E},p=>{Q=p.n},null,null,null],execute:(function(){const p="store_url",X="https://store.openc3.com",B={props:{id:Number,name:String,title:String,author:String,author_extra:Object,description:String,keywords:Array,img_path:String,image_url:String,licenses:Array,homepage:String,repository:String,gem_url:String,minimum_cosmos_version:String,checksum:String,versions:Array,current_version_id:Number,access:String,entitled:Boolean,installAllowed:{type:Boolean,default:!0}},data:function(){return{_api:new L,_storeUrl:"",imageContents:null}},computed:{plugin:function(){return{id:this.id,name:this.name,title:this.title,author:this.author,author_extra:this.author_extra,description:this.description,keywords:this.keywords,img_path:this.img_path,image_url:this.image_url,licenses:this.licenses,homepage:this.homepage,repository:this.repository,gem_url:this.gem_url,minimum_cosmos_version:this.minimum_cosmos_version,checksum:this.checksum,versions:this.versions,current_version_id:this.current_version_id,access:this.access,entitled:this.entitled,installAllowed:this.installAllowed}},canInstall:function(){return this.entitled&&this.installAllowed},installTooltip:function(){return this.installAllowed?this.accessTooltip:"Only admin users can install plugins."},imageContentsWithMimeType:function(){if(this.imageContents){const e={"image/bmp":[66,77],"image/jpeg":[255,216,255],"image/png":[137,80,78,71],"image/gif":[71,73,70,56],"image/webp":[82,73,70,70]},t=new TextEncoder().encode(globalThis.atob(this.imageContents.slice(0,6))).slice(1),a=Object.entries(e).find(([g,s])=>s.every((l,c)=>l===t[c]));if(a){const[g]=a;return`data:${g};base64,${this.imageContents}`}}},_navigableStoreUrl:function(){return this._storeUrl.replace("host.docker.internal","localhost")},storeLink:function(){return this.hasStoreListing&&this._navigableStoreUrl?new URL(`/cosmos_plugins/${this.id}`,this._navigableStoreUrl):null},hasStoreListing:function(){return!!this.id},hasDetails:function(){return this.hasStoreListing?!0:!!this.title&&!!this.description},isPluginInstalled:function(){return!!this.name},accessTooltip:function(){return this.entitled?"":localStorage.getItem("pluginStore.isApiKeySet")!=="true"?"Please add your App Store API key using the settings cog icon.":this.access==="enterprise"?"A COSMOS Enterprise license is required for this plugin.":"Please contact sales@openc3.com for access to this plugin."}},created:async function(){try{this._storeUrl=await this._api.get_setting(p)||X}catch{this._storeUrl=X}if(this.img_path)try{const e=new URLSearchParams({volume:"OPENC3_GEMS_VOLUME",scope:globalThis.openc3Scope}),{data:t}=await P.get(`/openc3-api/storage/download_file/${encodeURIComponent(this.img_path)}?${e}`);this.imageContents=t.contents}catch{}}},ie={mixins:[B],props:{modelValue:Boolean},emits:["triggerInstall","triggerUninstall","update:modelValue"],data(){return{showDialog:!1,showCopiedTooltip:!1,installedCosmosVersion:null,selectedVersionId:null}},computed:{isDialogOpen:{get:function(){return this.modelValue||this.showDialog},set:function(e){this.showDialog=e,this.$emit("update:modelValue",e)}},hasVersions:function(){return this.versions&&this.versions.length>0},selectedVersion:function(){if(!this.hasVersions)return null;const e=this.selectedVersionId||this.current_version_id;return this.versions.find(t=>t.id===e)||this.versions[0]},versionOptions:function(){return this.hasVersions?this.versions.map(e=>({title:e.version_number,value:e.id})):[]},versionTitle:function(){return this.selectedVersion?.title||this.title},versionDescription:function(){return this.selectedVersion?.description||this.description},versionKeywords:function(){return this.selectedVersion?.keywords||this.keywords},versionLicenses:function(){return this.selectedVersion?.licenses||this.licenses},versionHomepage:function(){return this.selectedVersion?.homepage||this.homepage},versionRepository:function(){return this.selectedVersion?.repository||this.repository},versionGemUrl:function(){return this.selectedVersion?.gem_url||this.gem_url},versionMinimumCosmosVersion:function(){return this.selectedVersion?.minimum_cosmos_version||this.minimum_cosmos_version},versionChecksum:function(){return this.selectedVersion?.checksum||this.checksum},versionImageUrl:function(){return this.selectedVersion?.image_url||this.image_url},formattedStoreLink:function(){return this._navigableStoreUrl.split("://").at(-1)},versionsAreCompatible:function(){return!this.installedCosmosVersion||!this.versionMinimumCosmosVersion?null:G.gte(this.installedCosmosVersion,this.versionMinimumCosmosVersion)}},created:function(){P.get("/openc3-api/info").then(({data:e})=>{this.installedCosmosVersion=e.version})},mounted:function(){this.selectedVersionId=this.current_version_id},methods:{openDialog:function(){this.isDialogOpen=!0},closeDialog:function(){this.isDialogOpen=!1},install:function(){this.$emit("triggerInstall",{id:this.id,version_id:this.selectedVersionId||this.current_version_id})},uninstall:function(){this.$emit("triggerUninstall",{id:this.id,version_id:this.selectedVersionId||this.current_version_id})},copyChecksum:function(){navigator.clipboard.writeText(this.versionChecksum),this.showCopiedTooltip=!0,setTimeout(()=>{this.showCopiedTooltip=!1},1e3)}}},se=["textContent"],le={key:0,class:"ml-1 font-italic"},ne={class:"plugin-image-backdrop"},oe=["textContent"],ae={class:"mt-3 text-caption font-italic"},re={key:1,class:"font-italic"},ue={class:"mt-3 text-caption font-italic"},ce={class:"mt-3"},de={key:0},pe={key:1};function he(e,t,a,g,s,l){const c=n("v-spacer"),m=n("v-btn"),d=n("v-tooltip"),D=n("v-toolbar"),b=n("v-icon"),V=n("v-select"),k=n("v-card-subtitle"),S=n("v-img"),T=n("v-chip"),I=n("v-text-field"),O=n("v-card-text"),w=n("v-card-actions"),U=n("v-card"),H=n("v-dialog");return r(),h(H,{modelValue:l.isDialogOpen,"onUpdate:modelValue":t[3]||(t[3]=x=>l.isDialogOpen=x),"max-width":"500"},{default:o(()=>[i(U,null,{default:o(()=>[i(D,{height:"24"},{default:o(()=>[i(c),u("span",{textContent:v(l.versionTitle)},null,8,se),i(c),i(d,{location:"top"},{activator:o(({props:x})=>[u("div",K(j(x)),[i(m,{href:e.storeLink,target:"_blank",icon:"mdi-open-in-new",size:"small",variant:"plain"},null,8,["href"])],16)]),default:o(()=>[u("span",null," View at "+v(l.formattedStoreLink),1)]),_:1}),i(m,{icon:"mdi-close-box",variant:"text",density:"compact",onClick:l.closeDialog},null,8,["onClick"])]),_:1}),i(k,{class:"d-flex align-center justify-space-between subtitle-with-version"},{default:o(()=>[u("div",null,[t[4]||(t[4]=f(" By ",-1)),u("strong",null,v(e.author),1),e.author_extra?.badge_text?(r(),y("span",le,v(e.author_extra.badge_text),1)):C("",!0),e.author_extra?.badge_icon?(r(),h(b,{key:1,icon:e.author_extra.badge_icon,size:18,class:"ml-1"},null,8,["icon"])):C("",!0)]),l.hasVersions?(r(),h(V,{key:0,modelValue:s.selectedVersionId,"onUpdate:modelValue":t[0]||(t[0]=x=>s.selectedVersionId=x),items:l.versionOptions,"item-title":"title","item-value":"value",label:"Version",density:"compact",variant:"outlined","hide-details":"",class:"mt-1 version-select"},null,8,["modelValue","items"])):C("",!0)]),_:1}),i(O,null,{default:o(()=>[u("div",ne,[e.imageContentsWithMimeType?(r(),h(S,{key:0,src:e.imageContentsWithMimeType},null,8,["src"])):l.versionImageUrl?(r(),h(S,{key:1,src:l.versionImageUrl},null,8,["src"])):C("",!0)]),u("div",{class:"mt-3",textContent:v(l.versionDescription)},null,8,oe),u("div",ae,[t[5]||(t[5]=f(" Keywords: ",-1)),l.versionKeywords?(r(!0),y(A,{key:0},E(l.versionKeywords,x=>(r(),h(T,{key:x,variant:"flat",color:"primary",size:"x-small",class:"ml-1"},{default:o(()=>[f(v(x),1)]),_:2},1024))),128)):(r(),y("span",re," none "))]),u("div",ue,[t[6]||(t[6]=f(" Licenses: ",-1)),(r(!0),y(A,null,E(l.versionLicenses,x=>(r(),h(T,{key:x,size:"x-small",class:"ml-1"},{default:o(()=>[f(v(x),1)]),_:2},1024))),128))]),u("div",ce,[t[7]||(t[7]=u("span",{class:"text-caption font-italic"}," Minimum COSMOS version: ",-1)),f(" "+v(l.versionMinimumCosmosVersion)+" ",1),l.versionsAreCompatible!==null?(r(),h(d,{key:0,"open-delay":600,location:"top"},{activator:o(({props:x})=>[u("span",K(j(x)),[i(b,{icon:l.versionsAreCompatible?"mdi-check-circle":"mdi-alert",size:"small"},null,8,["icon"])],16)]),default:o(()=>[l.versionsAreCompatible?(r(),y("span",de," Your version of COSMOS meets the requirements. ")):(r(),y("span",pe," Your version of COSMOS is out of date. You can still install this plugin, but it might not work correctly. "))]),_:1})):C("",!0)]),i(I,{modelValue:l.versionChecksum,"onUpdate:modelValue":t[2]||(t[2]=x=>l.versionChecksum=x),class:"mt-3",label:"SHA256",variant:"solo",density:"compact","hide-details":"",readonly:""},{append:o(()=>[i(d,{modelValue:s.showCopiedTooltip,"onUpdate:modelValue":t[1]||(t[1]=x=>s.showCopiedTooltip=x),location:"top","open-on-hover":!1},{activator:o(({props:x})=>[i(m,M(x,{icon:"mdi-content-copy",variant:"text",density:"compact",onClick:l.copyChecksum}),null,16,["onClick"])]),default:o(()=>[t[8]||(t[8]=u("span",null,"Copied!",-1))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),i(w,{class:"justify-start px-6"},{default:o(()=>[e.isPluginInstalled?(r(),h(m,{key:0,text:"Uninstall","append-icon":"mdi-puzzle-remove",variant:"outlined",color:"red",onClick:l.uninstall},null,8,["onClick"])):(r(),h(d,{key:1,"open-delay":600,location:"top"},{activator:o(({props:x})=>[u("span",K(j(e.canInstall?null:x)),[i(m,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",disabled:!e.canInstall,onClick:l.install},null,8,["disabled","onClick"])],16)]),default:o(()=>[u("span",null,v(e.installTooltip),1)]),_:1})),l.versionRepository?(r(),h(m,{key:2,text:"Repository","append-icon":"mdi-open-in-new",variant:"outlined",href:l.versionRepository,target:"_blank"},null,8,["href"])):C("",!0),l.versionHomepage?(r(),h(m,{key:3,text:"Homepage","append-icon":"mdi-open-in-new",variant:"outlined",href:l.versionHomepage,target:"_blank"},null,8,["href"])):C("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ee=$(ie,[["render",he],["__scopeId","data-v-ac4e664f"]]),ge={components:{PluginDetailsDialog:ee},mixins:[B],emits:["triggerInstall"],data(){return{showDialog:!1}},methods:{openDialog:function(){this.showDialog=!0},install:function(e){this.$emit("triggerInstall",{id:this.id,version_id:e?.version_id||this.current_version_id})}}},me={key:0,class:"ml-1 font-italic"},fe={class:"plugin-image-backdrop"},ve=["textContent"];function _e(e,t,a,g,s,l){const c=n("v-card-title"),m=n("v-icon"),d=n("v-card-subtitle"),D=n("v-img"),b=n("v-card-text"),V=n("v-spacer"),k=n("v-btn"),S=n("v-tooltip"),T=n("v-card-actions"),I=n("v-card"),O=n("plugin-details-dialog");return r(),y(A,null,[i(I,{height:"350",class:"d-flex flex-column",onClick:l.openDialog},{default:o(()=>[i(c,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[f(v(e.title),1)]),_:1}),i(d,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[u("div",null,[t[1]||(t[1]=f(" By ",-1)),u("strong",null,v(e.author),1),e.author_extra?.badge_text?(r(),y("span",me,v(e.author_extra.badge_text),1)):C("",!0),e.author_extra?.badge_icon?(r(),h(m,{key:1,icon:e.author_extra.badge_icon,size:18,class:"ml-1"},null,8,["icon"])):C("",!0)])]),_:1}),i(b,null,{default:o(()=>[u("div",fe,[e.image_url?(r(),h(D,{key:0,src:e.image_url,"max-height":"160"},null,8,["src"])):C("",!0)]),u("div",{class:z({"truncate-description":!0,"truncate-2":!!e.image_url,"truncate-10":!e.image_url}),textContent:v(e.description)},null,10,ve)]),_:1}),i(V),i(T,{class:"flex-wrap"},{default:o(()=>[i(S,{"open-delay":600,location:"top"},{activator:o(({props:w})=>[u("span",K(j(e.canInstall?null:w)),[i(k,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",disabled:!e.canInstall,onClick:N(l.install,["stop"])},null,8,["disabled","onClick"])],16)]),default:o(()=>[u("span",null,v(e.installTooltip),1)]),_:1})]),_:1})]),_:1},8,["onClick"]),s.showDialog?(r(),h(O,M({key:0,modelValue:s.showDialog,"onUpdate:modelValue":t[0]||(t[0]=w=>s.showDialog=w)},e.plugin,{onTriggerInstall:l.install}),null,16,["modelValue","onTriggerInstall"])):C("",!0)],64)}const ye=$(ge,[["render",_e],["__scopeId","data-v-825f4373"]]),F="store_url",q="store_api_key",R="DEFAULT",we="https://store.openc3.com",xe={mixins:[Q],props:{modelValue:Boolean},emits:["update:modelValue","update:storeUrl"],data(){return{showDialog:!1,storeUrl:"",apiKey:null,isEnterprise:!1,showApiKeyAlert:!1,suppressApiKeyAlert:!1,rules:{required:e=>!!e||"Required",url:e=>{try{new URL(e)}catch{return"Not a valid URL"}return!0}}}},computed:{accountSettingsUrl:function(){const e=this.storeUrl.replace("host.docker.internal","localhost");return new URL("account",e)}},watch:{apiKey:function(e){this.checkEnterpriseKey(),localStorage.setItem("pluginStore.isApiKeySet",!!e)},isEnterprise:function(e){this.checkEnterpriseKey()},suppressApiKeyAlert:function(e){localStorage.setItem("pluginStore.suppressApiKeyAlert",e)},modelValue:function(e){e&&(this.showDialog=e)},showDialog:function(e){e||this.$emit("update:modelValue",e)}},created:function(){P.get("/openc3-api/info").then(({data:e})=>{this.isEnterprise=e.enterprise}),this.loadSetting(F,{scope:R}),this.loadSetting(q,{scope:R}),this.$emit("update:storeUrl",this.storeUrl)},methods:{checkEnterpriseKey:function(){this.isEnterprise&&this.apiKey===""&&this.openApiKeyAlert()},openApiKeyAlert:function(){localStorage.getItem("pluginStore.suppressApiKeyAlert")!=="true"&&(this.showApiKeyAlert=!0)},closeApiKeyAlert:function(){this.showApiKeyAlert=!1},save:function(){this.saveSetting(F,this.storeUrl,{scope:R}),this.saveSetting(q,this.apiKey,{scope:R}),this.$emit("update:storeUrl",this.storeUrl),this.showDialog=!1},parseSetting:function(e,{setting:t}){switch(t){case F:this.storeUrl=e||we;break;case q:this.apiKey=e||"";break}}}},ke=["href"];function Ce(e,t,a,g,s,l){const c=n("v-spacer"),m=n("v-toolbar"),d=n("v-alert"),D=n("v-text-field"),b=n("v-card-text"),V=n("v-btn"),k=n("v-card-actions"),S=n("v-card"),T=n("v-dialog"),I=n("v-icon"),O=n("v-checkbox");return r(),y(A,null,[i(T,{modelValue:s.showDialog,"onUpdate:modelValue":t[4]||(t[4]=w=>s.showDialog=w),width:"600"},{default:o(()=>[i(m,{height:"24"},{default:o(()=>[i(c),t[7]||(t[7]=u("span",null,"Plugin Store Settings",-1)),i(c)]),_:1}),i(S,{class:"pa-3"},{default:o(()=>[i(d,{modelValue:e.errorLoading,"onUpdate:modelValue":t[0]||(t[0]=w=>e.errorLoading=w),type:"error",closable:"",density:"compact"},{default:o(()=>[f(" Error loading previous configuration due to "+v(e.errorText),1)]),_:1},8,["modelValue"]),i(d,{modelValue:e.errorSaving,"onUpdate:modelValue":t[1]||(t[1]=w=>e.errorSaving=w),type:"error",closable:"",density:"compact"},{default:o(()=>[f(" Error saving due to "+v(e.errorText),1)]),_:1},8,["modelValue"]),i(b,null,{default:o(()=>[i(D,{modelValue:s.storeUrl,"onUpdate:modelValue":t[2]||(t[2]=w=>s.storeUrl=w),label:"Store URL",rules:[s.rules.required,s.rules.url]},null,8,["modelValue","rules"]),i(D,{modelValue:s.apiKey,"onUpdate:modelValue":t[3]||(t[3]=w=>s.apiKey=w),type:"password",label:"API Key"},null,8,["modelValue"])]),_:1}),i(k,null,{default:o(()=>[i(V,{color:"success",variant:"text",text:"Save","data-test":"save-store-settings-btn",onClick:l.save},null,8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),i(T,{modelValue:s.showApiKeyAlert,"onUpdate:modelValue":t[6]||(t[6]=w=>s.showApiKeyAlert=w)},{default:o(()=>[i(S,{class:"pa-3"},{default:o(()=>[i(b,{class:"pb-0"},{default:o(()=>[t[9]||(t[9]=f(" You're using COSMOS Enterprise, but you haven't set an OpenC3 Store API key yet. You must set this to access Enterprise plugins. ",-1)),t[10]||(t[10]=u("br",null,null,-1)),t[11]||(t[11]=u("br",null,null,-1)),t[12]||(t[12]=f(" Visit the ",-1)),u("a",{href:l.accountSettingsUrl,target:"_blank"},[t[8]||(t[8]=f(" OpenC3 Store account settings",-1)),i(I,{icon:"mdi-open-in-new",size:"x-small"})],8,ke),t[13]||(t[13]=f(" to generate an API key. Then, return here and open the Plugin Store settings with the ",-1)),i(I,{icon:"mdi-cog",size:"small"}),t[14]||(t[14]=f(" icon and paste your API key into the API key field. ",-1))]),_:1}),i(k,null,{default:o(()=>[i(O,{modelValue:s.suppressApiKeyAlert,"onUpdate:modelValue":t[5]||(t[5]=w=>s.suppressApiKeyAlert=w),class:"px-3",label:"Don't show this message again","hide-details":""},null,8,["modelValue"]),i(V,{variant:"elevated",text:"OK",onClick:l.closeApiKeyAlert},null,8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}const Pe=$(xe,[["render",Ce]]),be="https://store.openc3.com",Ve={components:{PluginCard:ye,PluginStoreSettingsDialog:Pe},emits:["close","triggerInstall"],data(){return{api:new L,search:"",showSettingsDialog:!1,plugins:[],storeError:null,storeUrl:be,isEnterprise:!1,isAdmin:!0,loading:!1}},computed:{filteredPlugins:function(){let e=this.plugins;return this.search.length&&(e=e.filter(t=>t.title.toLowerCase().includes(this.search.toLowerCase()))),e},formattedStoreUrl:function(){return this.storeUrl.split("://").at(-1)},installAllowed:function(){return!this.isEnterprise||this.isAdmin}},mounted:function(){this.fetchPluginStoreData(),this.fetchUserContext()},methods:{fetchPluginStoreData:function(){this.loading=!0,P.get("/openc3-api/pluginstore").then(({data:e})=>{if(e.error){const{title:t,body:a}=e;this.storeError={title:t,body:a},this.plugins=[]}else this.storeError=null,this.plugins=e}).finally(()=>{this.loading=!1})},fetchUserContext:function(){P.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=!!t.enterprise});const e=OpenC3Auth.userroles()||[];this.isAdmin=e.includes("admin")},close:function(){this.$emit("close")},install:function(e){this.$emit("triggerInstall",e),this.close()},openSettings:function(){this.showSettingsDialog=!0},updatePluginStore:function(e){this.storeUrl=e,this.loading=!0,this.api.update_plugin_store().then(t=>{this.fetchPluginStoreData()})}}},Se={class:"d-flex justify-content-space-between"},De={class:"d-inline-flex align-center w-100"},Te={key:1,class:"d-flex justify-center align-center py-12","data-test":"plugin-store-loading"};function Ue(e,t,a,g,s,l){const c=n("v-spacer"),m=n("v-btn"),d=n("v-tooltip"),D=n("v-text-field"),b=n("v-alert"),V=n("v-progress-circular"),k=n("plugin-card"),S=n("v-col"),T=n("v-row"),I=n("v-container"),O=n("v-sheet"),w=n("plugin-store-settings-dialog");return r(),y(A,null,[i(O,{class:"pb-11 pt-8 px-8",height:"100%"},{default:o(()=>[u("div",Se,[t[2]||(t[2]=u("div",null,[u("div",{class:"text-h3 mb-3"},"OpenC3 Plugin Store"),u("div",{class:"text-subtitle-1"}," Browse plugins made by OpenC3 and the COSMOS community ")],-1)),i(c),i(m,{icon:"mdi-cog",variant:"text",onClick:l.openSettings},null,8,["onClick"]),i(d,{location:"top"},{activator:o(({props:U})=>[u("div",K(j(U)),[i(m,{href:s.storeUrl,target:"_blank",icon:"mdi-open-in-new",variant:"text",class:"mx-2"},null,8,["href"])],16)]),default:o(()=>[u("span",null," Open "+v(l.formattedStoreUrl),1)]),_:1}),i(m,{icon:"mdi-close",variant:"text",onClick:l.close},null,8,["onClick"])]),u("div",De,[i(D,{modelValue:s.search,"onUpdate:modelValue":t[0]||(t[0]=U=>s.search=U),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"search-plugin-store"},null,8,["modelValue"])]),i(c),t[4]||(t[4]=u("span",{class:""}," Click on a plugin to see more information about it ",-1)),s.storeError?(r(),h(b,{key:0,class:"mt-6",color:"error",title:s.storeError.title,text:s.storeError.body},null,8,["title","text"])):s.loading?(r(),y("div",Te,[i(V,{indeterminate:"",color:"primary",size:"48"}),t[3]||(t[3]=u("span",{class:"ml-4 text-subtitle-1"},"Loading plugins...",-1))])):(r(),h(I,{key:2},{default:o(()=>[i(T,null,{default:o(()=>[(r(!0),y(A,null,E(l.filteredPlugins,U=>(r(),h(S,{key:U.id,cols:"4"},{default:o(()=>[i(k,M({ref_for:!0},U,{"install-allowed":l.installAllowed,onTriggerInstall:l.install}),null,16,["install-allowed","onTriggerInstall"])]),_:2},1024))),128))]),_:1})]),_:1}))]),_:1}),i(w,{modelValue:s.showSettingsDialog,"onUpdate:modelValue":t[1]||(t[1]=U=>s.showSettingsDialog=U),"onUpdate:storeUrl":l.updatePluginStore},null,8,["modelValue","onUpdate:storeUrl"])],64)}const Ae=$(Ve,[["render",Ue]]),Ie={components:{PluginDetailsDialog:ee},mixins:[B],props:{targets:{type:Array,default:()=>[]},isModified:Boolean,microservices:{type:Object,default:()=>({})}},emits:["edit","delete","upgrade"],data(){return{showCard:!1}},computed:{displayTitle:function(){return this.title?this.title:this.name.replace(/^openc3-cosmos-/,"").replace(/-?\d+\.\d+\.\d+(?:\.pre\.beta\d+\.\d+)?\.gem(?:__\d+)?$/,"")},getMicroservicesForPlugin:function(){const e=[];for(const[t,a]of Object.entries(this.microservices))a.plugin===this.name&&e.push(t);return e},microserviceCount:function(){return this.getMicroservicesForPlugin.length}},methods:{openDetails:function(){this.hasDetails&&(this.showCard=!0)},downloadPlugin:function(){P.post(`/openc3-api/packages/${this.name}/download`).then(e=>{const t=window.atob(e.data.contents),a=new Uint8Array(t.length);for(let l=0;l<t.length;++l)a[l]=t.charCodeAt(l);const g=new Blob([a],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(g),s.setAttribute("download",e.data.filename),s.click()})},downloadTarget:function(e){P.post(`/openc3-api/targets/${e}/download`).then(t=>{const a=window.atob(t.data.contents),g=new Uint8Array(a.length);for(let c=0;c<a.length;++c)g[c]=a.charCodeAt(c);const s=new Blob([g],{type:"application/zip"}),l=document.createElement("a");l.href=URL.createObjectURL(s),l.setAttribute("download",t.data.filename),l.click()})},edit:function(){this.$emit("edit")},upgrade:function(){this.$emit("upgrade")},viewMicroservices:function(){const e=this.getMicroservicesForPlugin.join(",");this.$router.push({path:"/tools/admin/microservices",query:{services:e}})},deletePrompt:function(){this.showCard=!1,this.$emit("delete")}}},Oe=["textContent"],$e={class:"text-subtitle-2 v-list-item-subtitle pl-0"},Me={key:0},Ee=["onClick","textContent"],Ke=["textContent"];function je(e,t,a,g,s,l){const c=n("v-img"),m=n("v-icon"),d=n("v-list-item"),D=n("v-list"),b=n("v-menu"),V=n("plugin-details-dialog");return r(),y(A,null,[u("tr",{class:z({"cursor-pointer":e.hasDetails}),"data-test":"plugin-list-item"},[u("td",null,[e.imageContentsWithMimeType?(r(),h(c,{key:0,src:e.imageContentsWithMimeType,"max-height":"56","min-width":"56"},null,8,["src"])):C("",!0)]),u("td",null,[u("div",{class:"text-h6",onClick:t[0]||(t[0]=(...k)=>l.openDetails&&l.openDetails(...k)),textContent:v(l.displayTitle)},null,8,Oe),u("div",$e,[a.isModified?(r(),y(A,{key:0},[f(" * ")],64)):C("",!0),f(" "+v(e.name),1)]),a.targets?.length?(r(),y("div",Me,[(r(!0),y(A,null,E(a.targets,(k,S)=>(r(),y("span",{key:S,class:"mr-2"},[k.modified?(r(),y("a",{key:0,style:{cursor:"pointer"},onClick:N(T=>l.downloadTarget(k.name),["prevent"]),textContent:v(k.name)},null,8,Ee)):(r(),y("span",{key:1,textContent:v(k.name)},null,8,Ke))]))),128))])):C("",!0)]),u("td",null,[i(b,null,{activator:o(({props:k})=>[i(m,M(k,{icon:"mdi-dots-horizontal","data-test":"plugin-actions"}),null,16)]),default:o(()=>[i(D,null,{default:o(()=>[i(d,{title:"Download","prepend-icon":"mdi-download","data-test":"download-plugin",onClick:l.downloadPlugin},null,8,["onClick"]),i(d,{title:"Edit Details","prepend-icon":"mdi-pencil","data-test":"edit-plugin",onClick:l.edit},null,8,["onClick"]),i(d,{title:"Upgrade","prepend-icon":"mdi-update","data-test":"upgrade-plugin",onClick:l.upgrade},null,8,["onClick"]),i(d,{title:`View Microservices (${l.microserviceCount})`,"prepend-icon":"mdi-tab","data-test":"view-microservices",onClick:l.viewMicroservices},null,8,["title","onClick"]),i(d,{title:"Delete","prepend-icon":"mdi-delete","data-test":"delete-plugin",onClick:l.deletePrompt},null,8,["onClick"])]),_:1})]),_:1})])],2),s.showCard?(r(),h(V,M({key:0,modelValue:s.showCard,"onUpdate:modelValue":t[1]||(t[1]=k=>s.showCard=k)},e.plugin,{onTriggerUninstall:l.deletePrompt}),null,16,["modelValue","onTriggerUninstall"])):C("",!0)],64)}const Le=$(Ie,[["render",je]]),ze={components:{PluginListItem:Le},props:{plugins:{type:Array,required:!0},targets:{type:Object,required:!0},showDefaultTools:{type:Boolean,default:!1},defaultPlugins:{type:Array,required:!0}},emits:["edit","delete","upgrade"],data(){return{showPluginDetails:!1,detailPlugin:null,microservices:{}}},computed:{shownPlugins(){const e=[],t=[];return this.plugins.forEach(a=>{const g=a.name.split("__")[0].split("-").slice(0,-1).join("-");this.defaultPlugins.includes(g)?t.push(a):e.push(a)}),e.sort((a,g)=>a.name<g.name?-1:a.name>g.name?1:0),this.showDefaultTools?(t.sort((a,g)=>a.name<g.name?-1:a.name>g.name?1:0),e.concat(t)):e}},mounted(){this.fetchMicroservices()},methods:{showDetails:function(e){this.detailPlugin=e,this.showPluginDetails=!0},pluginTargets:function(e){let t=[];for(const a in this.targets)this.targets[a].plugin===e&&t.push(this.targets[a]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,a])=>a.plugin===e&&a.modified===!0)},editPlugin:function(e){this.$emit("edit",e)},upgradePlugin(e){this.$emit("upgrade",e)},deletePrompt:function(e){this.$emit("delete",e)},fetchMicroservices:function(){P.get("/openc3-api/microservices/all").then(e=>{this.microservices=e.data})}}};function Re(e,t,a,g,s,l){const c=n("plugin-list-item"),m=n("v-data-table");return r(),h(m,{headers:[],items:l.shownPlugins,density:"compact",class:"list","data-test":"plugin-list"},{item:o(({item:d})=>[(r(),h(c,M({key:d.name},d,{targets:l.pluginTargets(d.name),"is-modified":l.isModified(d.name),microservices:s.microservices,onEdit:()=>l.editPlugin(d.name),onUpgrade:()=>l.upgradePlugin(d.name),onDelete:()=>l.deletePrompt(d.name)}),null,16,["targets","is-modified","microservices","onEdit","onUpgrade","onDelete"]))]),_:1},8,["items"])}const Ne=$(ze,[["render",Re],["__scopeId","data-v-16a76865"]]),Be={components:{PluginDialog:Z,PluginList:Ne,PluginStore:Ae,ModifiedPluginDialog:Y,SimpleTextDialog:J},mixins:[W],data(){return{pluginName:null,variables:{},storePluginId:null,storeVersionId:null,minCosmosVersion:null,pluginTxt:"",file:null,currentPlugin:null,pluginHashTmp:null,existingPluginTxt:null,progress:0,pluginDelete:!1,api:new L,plugins:[],targets:{},processes:{},alert:"",alertType:"success",showAlert:!1,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginStore:!1,showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,timeZone:"local",defaultPlugins:["openc3-cosmos-tool-admin","openc3-cosmos-tool-bucketexplorer","openc3-cosmos-tool-cmdsender","openc3-cosmos-tool-cmdqueue","openc3-cosmos-tool-cmdhistory","openc3-cosmos-tool-cmdtlmserver","openc3-cosmos-tool-dataextractor","openc3-cosmos-tool-dataviewer","openc3-cosmos-tool-docs","openc3-cosmos-tool-handbooks","openc3-cosmos-tool-iframe","openc3-cosmos-tool-limitsmonitor","openc3-cosmos-tool-packetviewer","openc3-cosmos-tool-scriptrunner","openc3-cosmos-tool-tablemanager","openc3-cosmos-tool-tlmgrapher","openc3-cosmos-tool-tlmviewer","openc3-cosmos-enterprise-tool-admin","openc3-cosmos-tool-autonomic","openc3-cosmos-tool-calendar","openc3-cosmos-tool-grafana","openc3-cosmos-tool-logexplorer","openc3-cosmos-tool-notebooks","openc3-cosmos-tool-systemhealth","openc3-enterprise-tool-base","openc3-tool-base"]}},watch:{showPluginDialog:function(e,t){e===!1&&(this.file=null,this.$refs.fileInput.value=null)}},created(){this.api.update_plugin_store(),this.api.get_setting("time_zone").then(e=>{e&&(this.timeZone=e)}).catch(()=>{})},mounted(){this.update(),this.updateProcesses();const e=this;window.onpopstate=function(){e.showPluginStore&&(e.showPluginStore=!1,history.go(1))}},methods:{resetControlState:function(){this.pluginName=null,this.variables={},this.storePluginId=null,this.storeVersionId=null,this.minCosmosVersion=null,this.pluginTxt="",this.file=null,this.currentPlugin=null,this.pluginHashTmp=null,this.existingPluginTxt=null,this.progress=0,this.pluginDelete=!1},pluginTargets:function(e){let t=[];for(const a in this.targets)this.targets[a].plugin===e&&t.push(this.targets[a]);return t},isModified:function(e){return Object.entries(this.targets).some(([t,a])=>a.plugin===e&&a.modified===!0)},showOutput:function(e){this.processOutput=e.output,this.showProcessOutput=!0},update:function(){P.get("/openc3-api/plugins/all").then(e=>{this.plugins=Object.entries(e.data).map(([t,a])=>a)}),P.get("/openc3-api/targets_modified").then(e=>{this.targets=e.data})},updateProcesses:function(){P.get("openc3-api/process_status/plugin_?substr=true").then(e=>{this.processes=e.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},5e3)})},upload:function(e=null,t=null){const a=e?"put":"post",g=e?`/openc3-api/plugins/${e}`:"/openc3-api/plugins",s=new FormData;t===null?s.append("plugin",this.file,this.file.name):(s.append("store_plugin_id",t.id),s.append("store_version_id",t.version_id));let l=this;P[a](g,{data:s,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(c){let m=Math.round(c.loaded*100/c.total);l.progress=m}}).then(c=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let m=null;c.data.existing_plugin_txt_lines!==void 0&&(m=c.data.existing_plugin_txt_lines.join(`
2
- `));let d=c.data.plugin_txt_lines.join(`
3
- `);this.pluginName=c.data.name,this.variables=c.data.variables,this.storePluginId=c.data.store_plugin_id,this.storeVersionId=c.data.store_version_id,this.minCosmosVersion=c.data.minimum_cosmos_version,this.pluginTxt=d,this.existingPluginTxt=m,this.showPluginDialog=!0,this.file=void 0}).catch(c=>{this.currentPlugin=null,this.file=void 0})},pluginCallback:function(e){this.showPluginDialog=!1,this.currentPlugin!==null&&(e.name=this.currentPlugin),this.pluginHashTmp=e,this.isModified(this.currentPlugin)?(this.pluginDelete=!1,this.showModifiedPluginDialog=!0):this.pluginInstall()},modifiedSubmit:async function(e){if(e===!0)for(let t of this.pluginTargets(this.currentPlugin))t.modified==!0&&await P.post(`/openc3-api/targets/${t.name}/delete_modified`);this.pluginDelete?this.deletePlugin(this.currentPlugin):this.pluginInstall()},pluginInstall:function(){P.post(`/openc3-api/plugins/install/${this.pluginName}`,{data:{plugin_hash:JSON.stringify(this.pluginHashTmp)}}).then(e=>{this.alert=`Started installing plugin ${this.pluginName} ...`,this.alertType="success",this.showAlert=!0,this.currentPlugin=null,this.file=void 0,this.variables={},this.pluginTxt="",this.existingPluginTxt=null,this.storePluginId=null,this.storeVersionId=null,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3),this.update()})},editPlugin:function(e){this.resetControlState(),P.get(`/openc3-api/plugins/${e}`).then(t=>{let a=null;t.data.existing_plugin_txt_lines!==void 0&&(a=t.data.existing_plugin_txt_lines.join(`
4
- `)),this.pluginName=t.data.name,this.variables=t.data.variables,this.pluginTxt=t.data.plugin_txt_lines.join(`
5
- `),this.existingPluginTxt=a,this.showPluginDialog=!0})},deletePrompt:function(e){this.resetControlState(),this.$dialog.confirm(`Are you sure you want to remove: ${e}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{this.isModified(e)?(this.currentPlugin=e,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(e)})},deletePlugin:function(e){this.alert=`Removing plugin ${e} ...`,this.alertType="success",this.showAlert=!0,P.delete(`/openc3-api/plugins/${e}`).then(t=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}),this.update()},upgradePlugin(e){this.resetControlState(),this.currentPlugin=e,this.$refs.fileInput.click()},selectFile(){this.resetControlState(),this.$refs.fileInput.click()},fileChange(e){const t=e.target.files;if(t.length>0)if(this.file=t[0],this.currentPlugin!==null)if(this.file.name.split(".gem")[0]==this.currentPlugin.split(".gem")[0])this.$dialog.confirm(`The new gem ${this.file.name} appears to be identical to the existing ${this.currentPlugin}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}).catch(a=>{});else{let a=this.file.name.split("-"),g=a.findIndex(c=>c.includes(".")),s=a.slice(0,g).join("-");a=this.currentPlugin.split("-"),g=a.findIndex(c=>c.includes("."));let l=a.slice(0,g).join("-");s!==l?this.$dialog.confirm(`The new gem base name ${s} doesn't match the existing ${l}. Install?`,{okText:"Ok",cancelText:"Cancel"}).then(()=>{this.upload(this.currentPlugin)}):this.upload(this.currentPlugin)}else this.upload();else this.$refs.fileInput.value=null},openStore(){this.resetControlState(),this.showPluginStore=!0}}},Fe={class:"mt-2"},qe=["textContent"],He=["textContent"];function We(e,t,a,g,s,l){const c=n("v-btn"),m=n("v-icon"),d=n("v-col"),D=n("rux-progress"),b=n("v-row"),V=n("v-divider"),k=n("v-alert"),S=n("v-list-item-title"),T=n("v-list-item-subtitle"),I=n("v-progress-circular"),O=n("v-tooltip"),w=n("v-list-item"),U=n("v-list"),H=n("v-switch"),x=n("plugin-list"),Ye=n("plugin-dialog"),Ze=n("modified-plugin-dialog"),Ge=n("simple-text-dialog"),Je=n("plugin-store"),Qe=n("v-bottom-sheet");return r(),y("div",null,[i(b,{"no-gutters":"",align:"center",class:"px-2"},{default:o(()=>[i(d,{class:"pa-2 mt-2"},{default:o(()=>[i(c,{"append-icon":"mdi-store",onClick:l.openStore},{default:o(()=>[...t[9]||(t[9]=[f(" Browse Plugins ",-1)])]),_:1},8,["onClick"]),i(c,{"append-icon":"mdi-paperclip",class:"mx-2",onClick:l.selectFile},{default:o(()=>[...t[10]||(t[10]=[f(" Install From File ",-1)])]),_:1},8,["onClick"]),u("input",{ref:"fileInput",accept:".gem",style:{display:"none"},type:"file",onChange:t[0]||(t[0]=(..._)=>l.fileChange&&l.fileChange(..._))},null,544),t[14]||(t[14]=u("br",null,null,-1)),u("p",Fe,[t[12]||(t[12]=f(" Note: Use ",-1)),i(m,null,{default:o(()=>[...t[11]||(t[11]=[f(" mdi-dots-horizontal ",-1)])]),_:1}),t[13]||(t[13]=f(" in the Installed Plugins list to upgrade existing plugins ",-1))])]),_:1}),i(d,{class:"ml-4 mr-2",cols:"4"},{default:o(()=>[i(D,{value:s.progress},null,8,["value"])]),_:1})]),_:1}),i(b,{"no-gutters":"",class:"px-2"},{default:o(()=>[i(d,{align:"right",class:"mr-2"},{default:o(()=>[...t[15]||(t[15]=[u("div",null,"* indicates a modified plugin",-1),u("div",null,"Click target link to download modifications",-1)])]),_:1})]),_:1}),i(V),i(k,{modelValue:s.showAlert,"onUpdate:modelValue":t[1]||(t[1]=_=>s.showAlert=_),closable:"",type:s.alertType,text:s.alert,"data-test":"plugin-alert"},null,8,["modelValue","type","text"]),Object.keys(s.processes).length>0?(r(),h(U,{key:0,class:"list","data-test":"process-list"},{default:o(()=>[i(b,{"no-gutters":"",class:"px-4"},{default:o(()=>[i(d,{class:"text-h5"},{default:o(()=>[...t[16]||(t[16]=[f(" Process List ",-1)])]),_:1}),i(d,{align:"right"},{default:o(()=>[...t[17]||(t[17]=[u("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(r(!0),y(A,null,E(s.processes,_=>(r(),y("div",{key:_.name},[i(w,null,{append:o(()=>[_.state==="Running"?(r(),h(I,{key:0,indeterminate:"",color:"primary"})):(r(),h(O,{key:1,"open-delay":600,location:"top"},{activator:o(({props:Xe})=>[i(c,M({ref_for:!0},Xe,{icon:"mdi-eye",variant:"text","aria-label":"Show Output","data-test":"show-output",onClick:it=>l.showOutput(_)}),null,16,["onClick"])]),default:o(()=>[t[18]||(t[18]=u("span",null," Show Output ",-1))]),_:2},1024))]),default:o(()=>[i(S,null,{default:o(()=>[u("span",{class:z(_.state.toLowerCase()),textContent:v(`Processing ${_.process_type}: ${_.detail} - ${_.state}`)},null,10,qe)]),_:2},1024),i(T,null,{default:o(()=>[u("span",{textContent:v(" Updated At: "+e.formatNanoseconds(_.updated_at,s.timeZone))},null,8,He)]),_:2},1024)]),_:2},1024),i(V)]))),128))]),_:1})):C("",!0),i(b,{"no-gutters":"",class:"px-4"},{default:o(()=>[i(d,{class:"text-h5"},{default:o(()=>[...t[19]||(t[19]=[f(" Installed Plugins ",-1)])]),_:1}),i(d,{class:"v-col-auto"},{default:o(()=>[i(H,{modelValue:s.showDefaultTools,"onUpdate:modelValue":t[2]||(t[2]=_=>s.showDefaultTools=_),label:"Show Default Tools",density:"compact","hide-details":"","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1})]),_:1}),i(x,{plugins:s.plugins,targets:s.targets,"show-default-tools":s.showDefaultTools,"default-plugins":s.defaultPlugins,onEdit:l.editPlugin,onUpgrade:l.upgradePlugin,onDelete:l.deletePrompt},null,8,["plugins","targets","show-default-tools","default-plugins","onEdit","onUpgrade","onDelete"]),s.showPluginDialog?(r(),h(Ye,{key:1,modelValue:s.showPluginDialog,"onUpdate:modelValue":t[3]||(t[3]=_=>s.showPluginDialog=_),"plugin-name":s.pluginName,variables:s.variables,"plugin-txt":s.pluginTxt,"existing-plugin-txt":s.existingPluginTxt,"store-plugin-id":s.storePluginId,"store-version-id":s.storeVersionId,"min-cosmos-version":s.minCosmosVersion,onCallback:l.pluginCallback},null,8,["modelValue","plugin-name","variables","plugin-txt","existing-plugin-txt","store-plugin-id","store-version-id","min-cosmos-version","onCallback"])):C("",!0),s.showModifiedPluginDialog?(r(),h(Ze,{key:2,modelValue:s.showModifiedPluginDialog,"onUpdate:modelValue":t[4]||(t[4]=_=>s.showModifiedPluginDialog=_),"plugin-name":s.currentPlugin,targets:l.pluginTargets(s.currentPlugin),"plugin-delete":s.pluginDelete,onSubmit:l.modifiedSubmit},null,8,["modelValue","plugin-name","targets","plugin-delete","onSubmit"])):C("",!0),i(Ge,{modelValue:s.showProcessOutput,"onUpdate:modelValue":t[5]||(t[5]=_=>s.showProcessOutput=_),title:"Process Output",text:s.processOutput},null,8,["modelValue","text"]),i(Qe,{modelValue:s.showPluginStore,"onUpdate:modelValue":t[8]||(t[8]=_=>s.showPluginStore=_),fullscreen:""},{default:o(()=>[i(Je,{onClose:t[6]||(t[6]=()=>s.showPluginStore=!1),onTriggerInstall:t[7]||(t[7]=_=>l.upload(null,_))})]),_:1},8,["modelValue"])])}const tt=te("default",$(Be,[["render",We],["__scopeId","data-v-31fcfb69"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify"],(function(s,v){"use strict";var l,t,n,a,r,u;return{setters:[e=>{l=e.h},e=>{t=e.resolveComponent,n=e.openBlock,a=e.createBlock,r=e.normalizeStyle},e=>{u=e.k},null,null,null,null],execute:(function(){const e={mixins:[l],props:{value:{type:Number,default:null}},data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function o(i,y,c,f,p,b){const d=t("v-radio");return n(),a(d,{"hide-details":"",dense:"",label:p.label,style:r(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=s("default",u(e,[["render",o]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Layout--_zNJWnw-a75e57affb59e71889ad.js","vue","./main-040488697a5f3eed5115.js","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue-router","pinia","single-spa","vuetify"],(function(x,C){"use strict";var a,l,r,s,i,c,o,u,m,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,r=e.openBlock,s=e.createBlock,i=e.normalizeStyle,c=e.withCtx,o=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.k},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 f(n,v,z,B,y,w){const k=l("v-radio-group");return r(),s(k,{modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),"hide-details":"",density:"compact",style:i(n.computedStyle)},{default:c(()=>[(r(!0),o(u,null,m(n.widgets,(t,h)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{key:h,value:h,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=x("default",g(e,[["render",f]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","vue-router","pinia","single-spa","vuetify"],(function(_,K){"use strict";var y,f,d,o,c,n,l,r,p,v,m,x;return{setters:[a=>{y=a.k,f=a.D},a=>{d=a.resolveComponent,o=a.openBlock,c=a.createElementBlock,n=a.createVNode,l=a.withCtx,r=a.createTextVNode,p=a.createElementVNode,v=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(b=>{this.redisResponse=b.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})})}}},g=["textContent"],V={key:1,class:"monospace"};function C(t,e,b,u,s,h){const k=d("v-card-title"),w=d("v-card-subtitle"),E=d("v-text-field"),N=d("v-checkbox"),S=d("v-card-text"),T=d("v-btn"),R=d("v-radio"),P=d("v-radio-group"),D=d("v-number-input"),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(k,null,{default:l(()=>[...e[4]||(e[4]=[r(" Send Raw Redis Commands ",-1)])]),_:1}),n(w,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(E,{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(v,{key:0},[s.prettyPrint?(o(),c("pre",{key:0,textContent:m(h.formattedResponse)},null,8,g)):(o(),c("span",V," 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(R,{label:"Persistent",value:"persistent","data-test":"persistent-radio"}),n(R,{label:"Ephemeral",value:"ephemeral","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"]),n(D,{modelValue:s.db_shard,"onUpdate:modelValue":e[3]||(e[3]=i=>s.db_shard=i),"control-variant":"stacked",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 I=_("default",y(a,[["render",C],["__scopeId","data-v-a92ae7a6"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify"],(function(m,p){"use strict";var l,r,a,c,u,o;return{setters:[t=>{l=t.h},t=>{r=t.resolveComponent,a=t.openBlock,c=t.createBlock,u=t.normalizeStyle},t=>{o=t.k},null,null,null,null],execute:(function(){const t={mixins:[l],props:{value:{type:[Number,String],default:null}},emits:["addItem","deleteItem","open"],data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,f,E,i){const d=r("rux-monitoring-icon");return a(),c(d,{class:"rux-icon",style:u([i.pointerStyle,e.computedStyle]),icon:e.icon,status:i.status,label:e.label,sublabel:e.subLabel,onClick:i.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const b=m("default",o(t,[["render",h]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","single-spa","./OutputDialog-B0DR879Y-1fe936426c84cb442ac4.js","vue-router","pinia","vuetify"],(function(f,R){"use strict";var d,c,e,l,r,o,i,g,p,h,m,v,D,k;return{setters:[t=>{d=t.k,c=t.D},t=>{e=t.resolveComponent,l=t.openBlock,r=t.createElementBlock,o=t.createVNode,i=t.withCtx,g=t.Fragment,p=t.renderList,h=t.createTextVNode,m=t.toDisplayString,v=t.createBlock,D=t.createCommentVNode},null,t=>{k=t.S},null,null,null],execute:(function(){const t={components:{OutputDialog:k},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 w(n,s,_,j,a,C){const S=e("v-list-item-title"),V=e("v-btn"),y=e("v-list-item"),N=e("v-divider"),B=e("v-list"),b=e("output-dialog");return l(),r("div",null,[o(B,{class:"list","data-test":"routerList"},{default:i(()=>[(l(!0),r(g,null,p(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=>C.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(b,{key:0,modelValue:a.showDialog,"onUpdate:modelValue":s[0]||(s[0]=u=>a.showDialog=u),content:a.jsonContent,type:"Router",name:a.dialogTitle,onSubmit:C.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):D("",!0)])}const T=f("default",d(t,[["render",w],["__scopeId","data-v-ead3d1f6"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","vue-router","pinia","single-spa","vuetify"],(function(C,$){"use strict";var V,o,n,u,d,l,s,c,p,m,v,g,k,N;return{setters:[a=>{V=a.k,o=a.D},a=>{n=a.resolveComponent,u=a.openBlock,d=a.createElementBlock,l=a.createVNode,s=a.withCtx,c=a.createTextVNode,p=a.createElementVNode,m=a.toDisplayString,v=a.Fragment,g=a.renderList,k=a.createBlock,N=a.createCommentVNode},null,null,null,null],execute:(function(){const a={data(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1,isEnterprise:!1}},created(){o.get("/openc3-api/info").then(({data:i})=>{this.isEnterprise=i.enterprise})},mounted(){this.update()},methods:{update(){o.get("/openc3-api/secrets").then(i=>{this.secrets=i.data})},upload:function(){this.loadingSecret=!0;let i=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),i=o.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else i=o.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});i.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(i){this.$dialog.confirm(`Are you sure you want to remove: ${i}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return o.delete(`/openc3-api/secrets/${i}`)}).then(e=>{this.alert=`Removed secret ${i}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function w(i,e,F,j,t,b){const y=n("v-alert"),T=n("v-file-input"),f=n("v-col"),x=n("v-row"),S=n("v-text-field"),D=n("v-icon"),_=n("v-btn"),E=n("v-list-item-title"),B=n("v-list-item"),U=n("v-divider"),A=n("v-list");return u(),d("div",null,[l(y,{modelValue:t.isEnterprise,"onUpdate:modelValue":e[0]||(e[0]=r=>t.isEnterprise=r),class:"ma-4"},{default:s(()=>[...e[6]||(e[6]=[c(" Note: This cannot be used for setting Kubernetes secrets. You must set them in Kubernetes as a ",-1),p("a",{href:"https://kubernetes.io/docs/concepts/configuration/secret/",target:"_blank"}," Secrets object ",-1),c(" instead. ",-1)])]),_:1},8,["modelValue"]),l(x,{"no-gutters":""},{default:s(()=>[l(f,null,{default:s(()=>[l(T,{ref:"fileInput",modelValue:t.file,"onUpdate:modelValue":e[1]||(e[1]=r=>t.file=r),"show-size":"",accept:"*",class:"mx-2",label:"Click to select a file to create a secret from or enter a secret value"},null,8,["modelValue"])]),_:1})]),_:1}),l(x,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:s(()=>[l(f,{cols:"3"},{default:s(()=>[l(S,{modelValue:t.secretName,"onUpdate:modelValue":e[2]||(e[2]=r=>t.secretName=r),label:"Secret Name",class:"px-2"},null,8,["modelValue"])]),_:1}),l(f,{cols:"3",class:"px-2"},{default:s(()=>[l(S,{modelValue:t.secretValue,"onUpdate:modelValue":e[3]||(e[3]=r=>t.secretValue=r),disabled:t.file,label:"Secret Value"},null,8,["modelValue","disabled"])]),_:1}),l(f,{cols:"3",class:"px-2"},{default:s(()=>[l(_,{class:"mx-2",color:"primary","data-test":"secretUpload",disabled:t.secretName===""||t.file==null&&t.secretValue==="",loading:t.loadingSecret,onClick:e[4]||(e[4]=r=>b.upload())},{loader:s(()=>[...e[8]||(e[8]=[p("span",null,"Loading...",-1)])]),default:s(()=>[l(D,{start:"",theme:"dark"},{default:s(()=>[...e[7]||(e[7]=[c("mdi-cloud-upload",-1)])]),_:1}),e[9]||(e[9]=p("span",null," Set ",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),l(y,{modelValue:t.showAlert,"onUpdate:modelValue":e[5]||(e[5]=r=>t.showAlert=r),closable:"",type:t.alertType},{default:s(()=>[c(m(t.alert),1)]),_:1},8,["modelValue","type"]),l(A,{"data-test":"secretList"},{default:s(()=>[(u(!0),d(v,null,g(t.secrets,(r,h)=>(u(),d("div",{key:h},[l(B,null,{append:s(()=>[l(_,{icon:"mdi-delete",variant:"text","aria-label":"Delete Secret",onClick:I=>b.deleteSecret(r)},null,8,["onClick"])]),default:s(()=>[l(E,null,{default:s(()=>[c(m(r),1)]),_:2},1024)]),_:2},1024),h<t.secrets.length-1?(u(),k(U,{key:h})):N("",!0)]))),128))]),_:1})])}const L=C("default",V(a,[["render",w]]))})}}));
@@ -1,6 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","./settings-BrhbKDEv-791c3f57ac7979ee13b6.js","single-spa","vue-router","pinia","vuetify"],(function(te,$e){"use strict";var k,q,O,a,b,B,l,L,E,V,o,s,C,W,A,F,w,N,T;return{setters:[S=>{k=S.k,q=S.D,O=S.Z},S=>{a=S.resolveComponent,b=S.openBlock,B=S.createElementBlock,l=S.createVNode,L=S.Fragment,E=S.createCommentVNode,V=S.createBlock,o=S.withCtx,s=S.createTextVNode,C=S.toDisplayString,W=S.createSlots,A=S.mergeProps,F=S.withDirectives,w=S.vShow,N=S.renderList},S=>{T=S.n},null,null,null,null],execute:(function(){const S="__default",le={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 oe(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-checkbox"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return b(),V(v,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[2]||(e[2]=[s("Reset suppressed warnings",-1)])]),_:1}),l(i,null,{default:o(()=>[...e[3]||(e[3]=[s(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),l(m,null,{default:o(()=>[r.suppressedWarnings.length?(b(),B(L,{key:0},[l(u,{modelValue:r.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=n=>r.selectAllSuppressedWarnings=n),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(b(!0),B(L,null,N(r.suppressedWarnings,n=>(b(),V(u,{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)):(b(),B(L,{key:1},[s(" No warnings to reset ")],64))]),_:1}),l(p,{class:"px-2"},{default:o(()=>[l(g,{disabled:!r.selectedSuppressedWarnings.length,color:"warning",variant:"text","data-test":"reset-suppressed-warnings",onClick:f.resetSuppressedWarnings},{default:o(()=>[...e[4]||(e[4]=[s(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ae=k(le,[["render",oe]]),P="ai_chat",re={mixins:[T],data(){return{aiChatEnabled:!0}},created(){this.loadSetting(P)},methods:{save:function(){this.saveSetting(P,this.aiChatEnabled)},parseSetting:function(t){t!=null&&(this.aiChatEnabled=t)}}};function se(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return b(),V(v,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s("AI Chat Settings",-1)])]),_:1}),l(i,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{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(m,{class:"pb-0"},{default:o(()=>[l(u,{modelValue:r.aiChatEnabled,"onUpdate:modelValue":e[3]||(e[3]=n=>r.aiChatEnabled=n),label:`Enable the in-app AI Chatbot. When disabled, the AI
2
- chat button and drawer are hidden for all users.`,color:"primary","data-test":"ai-chat-enabled"},null,8,["modelValue"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-ai-chat",onClick:f.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ne=k(re,[["render",se]]),de={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(){localStorage.getItem(S)&&localStorage.removeItem(S),this.lastConfigs=Object.keys(localStorage).filter(t=>t.endsWith(S)).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)localStorage.removeItem(e)}}};function ie(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-checkbox"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return b(),V(v,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[2]||(e[2]=[s(" Clear default configs ",-1)])]),_:1}),l(i,null,{default:o(()=>[...e[3]||(e[3]=[s(" This clears the default tool configs on this browser ",-1)])]),_:1}),l(m,null,{default:o(()=>[r.lastConfigs.length?(b(),B(L,{key:0},[l(u,{modelValue:r.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=n=>r.selectAllLastConfigs=n),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(b(!0),B(L,null,N(r.lastConfigs,n=>(b(),V(u,{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)):(b(),B(L,{key:1},[s(" No configs to clear ")],64))]),_:1}),l(p,{class:"px-2"},{default:o(()=>[l(g,{disabled:!r.selectedLastConfigs.length,color:"warning",variant:"text","data-test":"clear-default-configs",onClick:f.clearLastConfigs},{default:o(()=>[...e[4]||(e[4]=[s(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ue=k(de,[["render",ie]]),Z="script_runner_locking",ce={mixins:[T],data(){return{vimMode:O.isVimModeEnabled(),scriptLockingEnabled:!0,defaultLanguage:O.getDefaultScriptingLanguage(),languageOptions:[{text:"Ruby",value:"ruby"},{text:"Python",value:"python"}]}},created(){this.loadSetting(Z)},methods:{save:function(){O.setVimMode(this.vimMode),O.setDefaultScriptingLanguage(this.defaultLanguage),this.saveSetting(Z,this.scriptLockingEnabled)},parseSetting:function(t){t!=null&&(this.scriptLockingEnabled=t)}}};function me(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),g=a("v-switch"),p=a("v-card-text"),v=a("v-btn"),n=a("v-card-actions"),d=a("v-card");return b(),V(d,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[6]||(e[6]=[s(" Code Editor Settings ",-1)])]),_:1}),l(i,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(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=_=>t.errorLoading=_),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=_=>t.errorSaving=_),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=_=>t.successSaving=_),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[8]||(e[8]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(p,{class:"pb-0"},{default:o(()=>[l(m,{modelValue:r.defaultLanguage,"onUpdate:modelValue":e[3]||(e[3]=_=>r.defaultLanguage=_),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(g,{modelValue:r.vimMode,"onUpdate:modelValue":e[4]||(e[4]=_=>r.vimMode=_),label:"Vim mode",color:"primary"},null,8,["modelValue"]),l(g,{modelValue:r.scriptLockingEnabled,"onUpdate:modelValue":e[5]||(e[5]=_=>r.scriptLockingEnabled=_),label:`Script File Locking - When enabled, a script being edited
3
- by one user is read-only for other users until they explicitly force
4
- unlock. Disable to allow multiple users to edit the same script
5
- 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:f.save},{default:o(()=>[...e[9]||(e[9]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ge=k(ce,[["render",me]]),j="astro",pe={mixins:[T],data(){return{hideClock:!1}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(t){if(t){let e=JSON.parse(t);this.hideClock=e.hideClock}}}};function fe(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return b(),V(v,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s("Astro Settings",-1)])]),_:1}),l(i,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{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(m,{class:"pb-0"},{default:o(()=>[l(u,{modelValue:r.hideClock,"onUpdate:modelValue":e[3]||(e[3]=n=>r.hideClock=n),label:"Hide Astro Clock",color:"primary"},null,8,["modelValue"])]),_:1}),l(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-astro-settings",onClick:f.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ve=k(pe,[["render",fe]]),I="theme",he={mixins:[T],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(I)},methods:{save(){this.saveSetting(I,this.selectedTheme)},parseSetting(t){t&&(this.selectedTheme=t)}}};function be(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-alert"),u=a("v-select"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return b(),V(v,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s("Theme",-1)])]),_:1}),l(i,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{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(m,{class:"pt-4 pb-0"},{default:o(()=>[l(u,{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(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-theme-settings",onClick:f.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ce=k(he,[["render",be]]),K="classification_banner",Se={mixins:[T],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(K)},methods:{save(){this.saveSetting(K,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 Ve(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-alert"),u=a("v-text-field"),m=a("v-col"),g=a("v-row"),p=a("v-icon"),v=a("v-list-item"),n=a("v-select"),d=a("v-switch"),_=a("v-number-input"),R=a("v-card-text"),H=a("v-btn"),D=a("v-card-actions"),M=a("v-card");return b(),V(M,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[12]||(e[12]=[s("Classification Banner Settings",-1)])]),_:1}),l(i,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=c=>t.errorLoading=c),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=c=>t.errorSaving=c),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=c=>t.successSaving=c),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(R,{class:"pb-0"},{default:o(()=>[l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(u,{modelValue:r.text,"onUpdate:modelValue":e[3]||(e[3]=c=>r.text=c),label:"Text","data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(n,{modelValue:r.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=c=>r.selectedBackgroundColor=c),label:"Background color",items:r.colors,"item-title":"text","data-test":"classification-banner-background-color"},W({item:o(({props:c,item:x})=>[l(v,A(c,{value:x.text}),{prepend:o(()=>[x.value?(b(),V(p,{key:0,color:x.value},{default:o(()=>[...e[15]||(e[15]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):E("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[l(p,{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(m,null,{default:o(()=>[l(u,{modelValue:r.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=c=>r.customBackgroundColor=c),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(()=>[F(l(p,{color:r.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,!r.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(m,null,{default:o(()=>[l(n,{modelValue:r.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=c=>r.selectedFontColor=c),label:"Font color",items:r.colors,"item-title":"text","data-test":"classification-banner-font-color"},W({item:o(({props:c,item:x})=>[l(v,A(c,{value:x.text}),{prepend:o(()=>[x.value?(b(),V(p,{key:0,color:x.value},{default:o(()=>[...e[18]||(e[18]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):E("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedFontColor?{name:"prepend-inner",fn:o(()=>[F(l(p,{color:r.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,r.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(m,null,{default:o(()=>[l(u,{modelValue:r.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=c=>r.customFontColor=c),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(()=>[F(l(p,{color:r.customFontColor},{default:o(()=>[...e[19]||(e[19]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,!r.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1}),l(g,{dense:""},{default:o(()=>[l(m,null,{default:o(()=>[l(d,{modelValue:r.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=c=>r.displayTopBanner=c),label:"Display top banner",color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),l(m,null,{default:o(()=>[l(_,{modelValue:r.topHeight,"onUpdate:modelValue":e[9]||(e[9]=c=>r.topHeight=c),"control-variant":"stacked",label:"Top height",disabled:!r.displayTopBanner,suffix:"px","data-test":"classification-banner-top-height"},null,8,["modelValue","disabled"])]),_:1}),l(m,null,{default:o(()=>[l(d,{modelValue:r.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=c=>r.displayBottomBanner=c),label:"Display bottom banner",color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),l(m,null,{default:o(()=>[l(_,{modelValue:r.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=c=>r.bottomHeight=c),"control-variant":"stacked",label:"Bottom height",disabled:!r.displayBottomBanner,suffix:"px","data-test":"classification-banner-bottom-height"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),l(D,null,{default:o(()=>[l(H,{disabled:!f.formValid,color:"success",variant:"text","data-test":"save-classification-banner",onClick:f.save},{default:o(()=>[...e[20]||(e[20]=[s(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ye=k(Se,[["render",Ve]]),z="time_zone",_e={mixins:[T],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.timeZone)},parseSetting:function(t){t&&(this.timeZone=t)}}};function ke(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return b(),V(n,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s("Time Zone",-1)])]),_:1}),l(i,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(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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(g,null,{default:o(()=>[l(m,{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(p,{color:"success",variant:"text","data-test":"save-time-zone",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const xe=k(_e,[["render",ke]]),J="time_format",Ue={mixins:[T],data(){return{timeFormats:[{title:"12-hour (AM/PM)",value:"ampm"},{title:"24-hour",value:"24hr"}],timeFormat:"ampm"}},created(){this.loadSetting(J)},methods:{save(){this.saveSetting(J,this.timeFormat)},parseSetting:function(t){t&&(this.timeFormat=t)}}};function Te(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-alert"),m=a("v-select"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return b(),V(n,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s("Time Format",-1)])]),_:1}),l(i,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(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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(g,null,{default:o(()=>[l(m,{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(p,{color:"success",variant:"text","data-test":"save-time-format",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Be=k(Ue,[["render",Te]]),$="news_feed",Le={mixins:[T],data(){return{newsFeed:!0}},created(){this.loadSetting($)},methods:{save(){this.saveSetting($,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(t){this.newsFeed=t}}};function Fe(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-alert"),u=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),p=a("v-card-actions"),v=a("v-card");return b(),V(v,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s("News Feed Settings",-1)])]),_:1}),l(i,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(i,{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(m,{class:"pb-0"},{default:o(()=>[l(u,{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.
6
- 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(p,null,{default:o(()=>[l(g,{color:"success",variant:"text","data-test":"save-news-feed",onClick:f.save},{default:o(()=>[...e[6]||(e[6]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const we=k(Le,[["render",Fe]]),G="subtitle",Ee={mixins:[T],data(){return{subtitle:""}},created(){this.loadSetting(G)},methods:{save(){this.saveSetting(G,this.subtitle)},parseSetting:function(t){t&&(this.subtitle=t)}}};function Oe(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return b(),V(n,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s("Subtitle",-1)])]),_:1}),l(i,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(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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(g,{class:"pb-0"},{default:o(()=>[l(m,{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(p,{color:"success",variant:"text","data-test":"save-subtitle",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const We=k(Ee,[["render",Oe]]),Y="source_url",Ae={mixins:[T],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(Y)},methods:{save(){this.saveSetting(Y,this.sourceUrl)},parseSetting:function(t){t&&(this.sourceUrl=t)}}};function Re(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return b(),V(n,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s(" Source code URL ",-1)])]),_:1}),l(i,null,{default:o(()=>[...e[5]||(e[5]=[s(' This sets the URL for the "Source" link in the footer. ',-1)])]),_:1}),l(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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(g,{class:"pb-0"},{default:o(()=>[l(m,{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(p,{color:"success",variant:"text","data-test":"save-source-url",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const He=k(Ae,[["render",Re]]),Q="rubygems_url",De={mixins:[T],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(Q)},methods:{save(){this.saveSetting(Q,this.rubygemsUrl)},parseSetting:function(t){t&&(this.rubygemsUrl=t)}}};function Me(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return b(),V(n,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s(" Rubygems URL ",-1)])]),_:1}),l(i,null,{default:o(()=>[...e[5]||(e[5]=[s(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ",-1)])]),_:1}),l(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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(g,{class:"pb-0"},{default:o(()=>[l(m,{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(p,{color:"success",variant:"text","data-test":"save-rubygems-url",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ne=k(De,[["render",Me]]),X="pypi_url",qe={mixins:[T],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(X)},methods:{save(){this.saveSetting(X,this.pypiUrl)},parseSetting:function(t){t&&(this.pypiUrl=t)}}};function Pe(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-card-text"),p=a("v-btn"),v=a("v-card-actions"),n=a("v-card");return b(),V(n,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[4]||(e[4]=[s(" Pypi URL ",-1)])]),_:1}),l(i,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(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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 "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{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(g,{class:"pb-0"},{default:o(()=>[l(m,{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(p,{color:"success",variant:"text","data-test":"save-pypi-url",onClick:f.save},{default:o(()=>[...e[7]||(e[7]=[s(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ze=k(qe,[["render",Pe]]),ee="context_tag",je={mixins:[T],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(ee)},methods:{save(){this.saveSetting(ee,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(y=>y.value===e.backgroundColor)?this.selectedBackgroundColor=e.backgroundColor:(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1)),e.fontColor&&(this.colors.some(y=>y.value===e.fontColor)?this.selectedFontColor=e.fontColor:(this.customFontColor=e.fontColor,this.selectedFontColor=!1))}}}};function Ie(t,e,y,U,r,f){const h=a("v-card-title"),i=a("v-card-subtitle"),u=a("v-alert"),m=a("v-text-field"),g=a("v-col"),p=a("v-row"),v=a("v-switch"),n=a("v-icon"),d=a("v-list-item"),_=a("v-select"),R=a("v-card-text"),H=a("v-btn"),D=a("v-card-actions"),M=a("v-card");return b(),V(M,null,{default:o(()=>[l(h,null,{default:o(()=>[...e[9]||(e[9]=[s("Context Tag Settings",-1)])]),_:1}),l(i,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(u,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=c=>t.errorLoading=c),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error loading previous configuration due to "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=c=>t.errorSaving=c),type:"error",closable:"",density:"compact"},{default:o(()=>[s(" Error saving due to "+C(t.errorText),1)]),_:1},8,["modelValue"]),l(u,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=c=>t.successSaving=c),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[11]||(e[11]=[s(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),l(R,{class:"pb-0"},{default:o(()=>[l(p,{dense:""},{default:o(()=>[l(g,null,{default:o(()=>[l(m,{modelValue:r.text,"onUpdate:modelValue":e[3]||(e[3]=c=>r.text=c),label:"Text","data-test":"context-tag-text",disabled:!r.displayContextTag},null,8,["modelValue","disabled"])]),_:1})]),_:1}),l(p,{dense:""},{default:o(()=>[l(g,null,{default:o(()=>[l(v,{modelValue:r.displayContextTag,"onUpdate:modelValue":e[4]||(e[4]=c=>r.displayContextTag=c),label:"Display context tag",color:"primary","data-test":"display-context-tag"},null,8,["modelValue"])]),_:1}),l(g,null,{default:o(()=>[l(_,{modelValue:r.selectedBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=c=>r.selectedBackgroundColor=c),label:"Background color",items:r.colors,"item-title":"text","data-test":"context-tag-background-color"},W({item:o(({props:c,item:x})=>[l(d,A(c,{value:x.text}),{prepend:o(()=>[x.value?(b(),V(n,{key:0,color:x.value},{default:o(()=>[...e[13]||(e[13]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):E("",!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(g,null,{default:o(()=>[l(m,{modelValue:r.customBackgroundColor,"onUpdate:modelValue":e[6]||(e[6]=c=>r.customBackgroundColor=c),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(()=>[F(l(n,{color:r.customBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,!r.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),l(g,null,{default:o(()=>[l(_,{modelValue:r.selectedFontColor,"onUpdate:modelValue":e[7]||(e[7]=c=>r.selectedFontColor=c),label:"Font color",items:r.colors,"item-title":"text","data-test":"context-tag-font-color"},W({item:o(({props:c,item:x})=>[l(d,A(c,{value:x.text}),{prepend:o(()=>[x.value?(b(),V(n,{key:0,color:x.value},{default:o(()=>[...e[16]||(e[16]=[s(" mdi-square ",-1)])]),_:1},8,["color"])):E("",!0)]),_:2},1040,["value"])]),_:2},[r.selectedFontColor?{name:"prepend-inner",fn:o(()=>[F(l(n,{color:r.selectedFontColor},{default:o(()=>[...e[15]||(e[15]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,r.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),l(g,null,{default:o(()=>[l(m,{modelValue:r.customFontColor,"onUpdate:modelValue":e[8]||(e[8]=c=>r.customFontColor=c),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(()=>[F(l(n,{color:r.customFontColor},{default:o(()=>[...e[17]||(e[17]=[s(" mdi-square ",-1)])]),_:1},8,["color"]),[[w,!r.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1})]),_:1}),l(D,null,{default:o(()=>[l(H,{disabled:!f.formValid,color:"success",variant:"text","data-test":"save-context-tag",onClick:f.save},{default:o(()=>[...e[18]||(e[18]=[s(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Ke=k(je,[["render",Ie]]),ze={components:{SuppressedSettings:ae,AiChatSettings:ne,DefaultConfigSettings:ue,EditorSettings:ge,AstroSettings:ve,ThemeSettings:Ce,ClassificationBannerSettings:ye,TimeZoneSettings:xe,TimeFormatSettings:Be,NewsFeedSettings:we,SubtitleSettings:We,SourceCodeSettings:He,RubyGemsSettings:Ne,PypiSettings:Ze,ContextTagSettings:Ke},data(){return{isEnterprise:!1}},created(){q.get("/openc3-api/info").then(({data:t})=>{this.isEnterprise=t.enterprise})}};function Je(t,e,y,U,r,f){const h=a("suppressed-settings"),i=a("v-divider"),u=a("default-config-settings"),m=a("editor-settings"),g=a("astro-settings"),p=a("theme-settings"),v=a("time-zone-settings"),n=a("time-format-settings"),d=a("news-feed-settings"),_=a("classification-banner-settings"),R=a("subtitle-settings"),H=a("source-code-settings"),D=a("ruby-gems-settings"),M=a("pypi-settings"),c=a("context-tag-settings"),x=a("ai-chat-settings");return b(),B("div",null,[l(h),l(i),l(u),l(i),l(m),l(i),l(g),l(i),l(p),l(i),l(v),l(i),l(n),l(i),l(d),l(i),l(_),l(i),l(R),l(i),l(H),l(i),l(D),l(i),l(M),l(i),l(c),r.isEnterprise?(b(),B(L,{key:0},[l(i),l(x)],64)):E("",!0)])}const Ge=te("default",k(ze,[["render",Je]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify"],(function(l,o){"use strict";var t,n,i,s,r;return{setters:[e=>{t=e.h},e=>{n=e.openBlock,i=e.createElementBlock,s=e.normalizeStyle},e=>{r=e.k},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(),i("div",{style:s(u.computedStyle)},null,4)}const c=l("default",r(e,[["render",a]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./GraphWidget-Cs9mvqUu-f9a29adafa014c1e26e4.js","./main-040488697a5f3eed5115.js","vue","./Graph-BKw7xw1a-947d95e03148698e323f.js","single-spa","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue-router","pinia","vuetify","./OpenC3TimePicker-B8Vu9GBz-c1433e91ea28dd0e883e.js"],(function(l,c){"use strict";var i,s,n,r,a,d,o;return{setters:[e=>{i=e.M},e=>{s=e.k},e=>{n=e.resolveComponent,r=e.openBlock,a=e.createBlock,d=e.normalizeStyle},e=>{o=e.Y},null,null,null,null,null,null],execute:(function(){const e={components:{Graph:o},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,f,k){const h=n("graph");return r(),a(h,{id:t.id,ref:"graph"+t.id,state:t.state,"selected-graph-id":t.id,"start-time":t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:d(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",s(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Layout--_zNJWnw-a75e57affb59e71889ad.js","vue","./main-040488697a5f3eed5115.js","./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue-router","pinia","single-spa","vuetify"],(function(k,h){"use strict";var f,l,n,i,g,w,a,c,u,o,T,d,b,y,v,V;return{setters:[e=>{f=e.r},e=>{l=e.resolveComponent,n=e.openBlock,i=e.createElementBlock,g=e.createVNode,w=e.normalizeStyle,a=e.withCtx,c=e.Fragment,u=e.renderList,o=e.createBlock,T=e.createTextVNode,d=e.toDisplayString,b=e.createElementVNode,y=e.resolveDynamicComponent,v=e.mergeProps},e=>{V=e.k},null,null,null,null,null],execute:(function(){const e={mixins:[f],emits:["min-max-screen"],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(r,m,L,P,j,U){const N=l("v-tab"),_=l("v-tabs"),z=l("v-tooltip"),C=l("v-window-item"),S=l("v-window");return n(),i("div",null,[g(_,{modelValue:r.curTab,"onUpdate:modelValue":m[0]||(m[0]=s=>r.curTab=s),style:w(r.computedStyle)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(N,{key:p},{default:a(()=>[T(d(s.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:r.curTab,"onUpdate:modelValue":m[1]||(m[1]=s=>r.curTab=s)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(C,{key:p},{default:a(()=>[(n(!0),i(c,null,u(s.widgets,(t,B)=>(n(),i(c,{key:`${p}-${B}`},[r.getTooltipText(t)?(n(),o(z,{key:0,"open-delay":r.getTooltipDelay(t),location:"top","activator-props":r.getTooltipActivatorProps(t)},{activator:a(({props:D})=>[(n(),o(y(t.type),v({ref_for:!0},{...r.listeners,...D},{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"]))]),default:a(()=>[b("span",null,d(r.getTooltipText(t)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),o(y(t.type),v({key:1,ref_for:!0},r.listeners,{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"]))],64))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const E=k("default",V(e,[["render",x]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","single-spa","./OutputDialog-B0DR879Y-1fe936426c84cb442ac4.js","vue-router","pinia","vuetify"],(function(N,F){"use strict";var k,u,t,d,g,n,o,C,D,m,f,h,y,b,w,T;return{setters:[e=>{k=e.k,u=e.D},e=>{t=e.resolveComponent,d=e.openBlock,g=e.createElementBlock,n=e.createVNode,o=e.withCtx,C=e.Fragment,D=e.renderList,m=e.createTextVNode,f=e.toDisplayString,h=e.createBlock,y=e.createElementVNode,b=e.mergeProps,w=e.createCommentVNode},null,e=>{T=e.S},null,null,null],execute:(function(){const e={components:{OutputDialog:T},data(){return{targets:[],jsonContent:"",dialogTitle:"",showDialog:!1}},mounted(){this.update()},methods:{update(){u.get("/openc3-api/targets_modified").then(l=>{this.targets=l.data})},showTarget(l){u.get(`/openc3-api/targets/${l}`).then(a=>{this.jsonContent=JSON.stringify(a.data,null," "),this.dialogTitle=l,this.showDialog=!0})},dialogCallback(l){this.showDialog=!1},downloadTarget:function(l){u.post(`/openc3-api/targets/${l}/download`).then(a=>{const p=window.atob(a.data.contents),v=new Uint8Array(p.length);for(let c=0;c<p.length;++c)v[c]=p.charCodeAt(c);const i=new Blob([v],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",a.data.filename),s.click()})}}};function S(l,a,p,v,i,s){const c=t("v-list-item-title"),x=t("v-list-item-subtitle"),V=t("v-btn"),B=t("v-tooltip"),j=t("v-list-item"),L=t("v-divider"),E=t("v-list"),O=t("output-dialog");return d(),g("div",null,[n(E,{class:"list","data-test":"targetList"},{default:o(()=>[(d(!0),g(C,null,D(i.targets,r=>(d(),g("div",{key:r},[n(j,null,{append:o(()=>[r.modified?(d(),h(B,{key:0,"open-delay":600,location:"top"},{activator:o(({props:_})=>[n(V,b({ref_for:!0},_,{class:"mx-3",icon:"mdi-folder-download",variant:"text","aria-label":"Download Modified Files",onClick:A=>s.downloadTarget(r.name)}),null,16,["onClick"])]),default:o(()=>[a[1]||(a[1]=y("span",null,"Download Modified Files",-1))]),_:2},1024)):w("",!0),n(V,{icon:"mdi-eye",variant:"text","aria-label":"View Target",onClick:_=>s.showTarget(r.name)},null,8,["onClick"])]),default:o(()=>[n(c,null,{default:o(()=>[m(f(r.name),1)]),_:2},1024),n(x,null,{default:o(()=>[m(" Plugin: "+f(r.plugin),1)]),_:2},1024)]),_:2},1024),n(L)]))),128))]),_:1}),i.showDialog?(d(),h(O,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":a[0]||(a[0]=r=>i.showDialog=r),content:i.jsonContent,type:"Target",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):w("",!0)])}const U=N("default",k(e,[["render",S],["__scopeId","data-v-85600496"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./main-040488697a5f3eed5115.js","vue","./DetailsDialog-DE7lK17G-434a9ce6dcc8e6636a47.js","single-spa","./VWidget-5qOYva88-4db083a6475508bbf7ce.js","vue-router","pinia","vuetify","./LimitsBar-DN1s8-MS-5fcc0dd234e18f768e31.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-CtYQauzA-ae8839a2e4146c799aec.js"],(function(w,_){"use strict";var c,a,s,o,n,u,d,l,m,h,p,g,v,x,C,f;return{setters:[e=>{c=e.k},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{C=e.Z},null,e=>{f=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:C},mixins:[f],data:function(){return{width:200,height:200}},computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},y={class:"textbox-widget-container"};function k(t,r,E,L,O,V){const D=a("v-textarea"),B=a("v-list-item-title"),S=a("v-list-item"),T=a("v-list"),z=a("v-menu"),M=a("details-dialog");return s(),o("div",y,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,V.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(z,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(T,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,N)=>(s(),p(S,{key:N,onClick:g(i.action,["stop"])},{default:l(()=>[n(B,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const j=w("default",c(e,[["render",k],["__scopeId","data-v-ce1e6683"]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var t,l,n,a,s,r;return{setters:[e=>{t=e.h},e=>{l=e.resolveComponent,n=e.openBlock,a=e.createBlock,s=e.normalizeStyle},e=>{r=e.k},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,i,y,f,o,k){const h=l("v-text-field");return n(),a(h,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=m=>o.value=m),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const v=u("default",r(e,[["render",c]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","./OpenC3TimePicker-B8Vu9GBz-c1433e91ea28dd0e883e.js","./main-040488697a5f3eed5115.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,k){"use strict";var l,i,n,a,r,s,u,o;return{setters:[e=>{l=e.h},e=>{i=e.w},e=>{n=e.k,a=e.R},e=>{r=e.resolveComponent,s=e.openBlock,u=e.createBlock,o=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:i},mixins:[l,a],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function p(h,m,y,T,t,v){const d=r("OpenC3TimePicker");return s(),u(d,{modelValue:t.timeValue,"onUpdate:modelValue":m[0]||(m[0]=V=>t.timeValue=V),label:t.label,style:o(h.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const f=c("default",n(e,[["render",p]]))})}}));
@@ -1 +0,0 @@
1
- System.register(["./Widget-CtYQauzA-ae8839a2e4146c799aec.js","vue","./main-040488697a5f3eed5115.js","vue-router","pinia","single-spa","vuetify"],(function(s,p){"use strict";var t,r,n,l,a,i;return{setters:[e=>{t=e.h},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,a=e.toDisplayString},e=>{i=e.k},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function o(c,f,h,y,d,u){return r(),n("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},a(u.labelText),5)}const m=s("default",i(e,[["render",o]]))})}}));