openc3-cosmos-tool-admin 6.10.1 → 6.10.3

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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/tools/admin/ArrayWidget-Bc-Awsbn-5a1d9ebaf5ba58e65eeb.js +2 -0
  3. data/tools/admin/{ArrayplotWidget-BeSfz3MR-62c6314f2795ec59c2c3.js → ArrayplotWidget-B9UGCr4--e4841947fbc1cd937df7.js} +1 -1
  4. data/tools/admin/BarColumn-ClLBRGll-572701c09620d10ecff0.js +1 -0
  5. data/tools/admin/BlockWidget-CoQp-LZM-769924a514409c909f83.js +2 -0
  6. data/tools/admin/ButtonWidget-CTTwpFec-3d5379f67b499b399f61.js +2 -0
  7. data/tools/admin/CanvasWidget-jFarbJ3t-c0776286cdb468e1c73c.js +1 -0
  8. data/tools/admin/CanvasdotWidget-BoyUcwiB-5b8968d3cbb415f81066.js +1 -0
  9. data/tools/admin/CanvasimageWidget-DmyCSnuQ-ca644207f5afe4d7570c.js +1 -0
  10. data/tools/admin/CanvasimagevalueWidget-CmbngMqv-dbb6d77a0c4b3e482826.js +1 -0
  11. data/tools/admin/CanvaslabelWidget-D8NzLKqi-5a6c5d0d7a834885df83.js +1 -0
  12. data/tools/admin/CanvaslabelvalueWidget-DOybGI9D-0276cd36efa5b8b21c8c.js +1 -0
  13. data/tools/admin/CanvaslineWidget-D2NEei7j-b97c834aa7985a240884.js +1 -0
  14. data/tools/admin/CanvaslinevalueWidget-Ctvv9owf-c6a75f8129a220989e96.js +1 -0
  15. data/tools/admin/CheckbuttonWidget-CQeR0BMF-fa5b02a8efe6c73d6691.js +1 -0
  16. data/tools/admin/ComboboxWidget-4N-MagvN-8422c68644befe797171.js +1 -0
  17. data/tools/admin/{DateWidget-BpnMzSBn-568b8523461c5b29d3b6.js → DateWidget-rYTjwUdb-2d2e8c2c53a80a8c66aa.js} +1 -1
  18. data/tools/admin/DetailsDialog-p_vutijL-76a071d9003f673bb43a.js +1 -0
  19. data/tools/admin/DynamicWidget-DEHWYr8i-e8f8825de95e4ed788f7.js +1 -0
  20. data/tools/admin/FilechecksumWidget-gcmXxJHl-d63bde36350aa6357d8e.js +1 -0
  21. data/tools/admin/FiledisplayWidget-CqM549A4-ebba7b99e9a59558276a.js +1 -0
  22. data/tools/admin/FormatvalueWidget-BEwH0C7S-45a5a2393368d0b3821b.js +1 -0
  23. data/tools/admin/Graph-CbjlChwf-52e2ec5c5915ed22c513.js +1 -0
  24. data/tools/admin/{GraphWidget-CAADBFV--5a0f42f620a95bceb78a.js → GraphWidget-CjxnC0Dc-5fc94ebc28f2be06cd4a.js} +1 -1
  25. data/tools/admin/HorizontalWidget-Dt8bkM3k-ecbde5177b812ef1e23d.js +1 -0
  26. data/tools/admin/HorizontalboxWidget-CdAZ5Sa6-a98e8795733c87edb7fe.js +1 -0
  27. data/tools/admin/{HorizontallineWidget-Cu2dDt7k-ca5bfd2bc99611a7daf6.js → HorizontallineWidget-CXZJTeU2-9a2e0e267c30229a1a06.js} +1 -1
  28. data/tools/admin/{IframeWidget-BBU3MkSq-3bd357450464e91b6e8a.js → IframeWidget-CrcWiAVE-f0cdcf9b840c392136c7.js} +1 -1
  29. data/tools/admin/{ImageLoader-XAGgjKkq-1e8835a62d6b86fae045.js → ImageLoader-DPqax8yu-f68ecbd7c46cbbfa9c38.js} +1 -1
  30. data/tools/admin/ImageviewerWidget-CTEl6iPg-3143b62bd3f0e7d447f3.js +1 -0
  31. data/tools/admin/{InterfacesTab-6hli9fcg-fa1490edce5e929d406b.js → InterfacesTab-B9ApLB5q-bb96464dd3bfc478c5ac.js} +1 -1
  32. data/tools/admin/{LabelWidget-BsOpolUL-480fcf63f4a393ec665b.js → LabelWidget-CPqKGMx0-eb6d4acaf548f6445cf7.js} +1 -1
  33. data/tools/admin/LabelledWidget-BHYzRMFd-d986f910b2bacd8e8ee2.js +1 -0
  34. data/tools/admin/LabelprogressbarWidget-D9deeUo7-5cb229e499a29b09a4ad.js +1 -0
  35. data/tools/admin/LabelsparklineWidget-7mYre3CP-2ef07e725fe66586803a.js +1 -0
  36. data/tools/admin/LabelvalueWidget-NLsD60n4-574557ba12df95aaa182.js +1 -0
  37. data/tools/admin/LabelvaluedescWidget-DXROG4Gs-cd788e81226c23824988.js +1 -0
  38. data/tools/admin/LabelvaluelimitsbarWidget-DqVqHF4W-f30ecd07eaf3d71afabe.js +1 -0
  39. data/tools/admin/LabelvaluelimitscolumnWidget-BK6_31pC-4fede4a06d630efecbd3.js +1 -0
  40. data/tools/admin/LabelvaluerangebarWidget-DR7C8gqw-b34f3f2d4967d77f16dc.js +1 -0
  41. data/tools/admin/Layout-B_Hgw3gd-bdff69864bbaf9af4133.js +1 -0
  42. data/tools/admin/LedWidget-CiAVs2tj-f0925ab9e8c2b5be6f37.js +1 -0
  43. data/tools/admin/LimitsBar-_UQG-M6e-b8c3d82a4d2cafcf8e4c.js +1 -0
  44. data/tools/admin/LimitsbarWidget-CIwcOhC8-0cef53ee5b2cccb38afc.js +1 -0
  45. data/tools/admin/LimitscolorWidget-CGPfJwvT-b8f81cf4eea6f46bff03.js +1 -0
  46. data/tools/admin/{LimitscolumnWidget-DSsz36tT-6fcdc5688973d90c5fec.js → LimitscolumnWidget-Bj_UPEC8-8264d41a1cea3eb8e1ff.js} +1 -1
  47. data/tools/admin/{LinegraphWidget-CeBijgDo-2d1fe80cbc5b9b60e16e.js → LinegraphWidget-DccnHbWa-fdda0d41317e3f87a341.js} +1 -1
  48. data/tools/admin/MatrixbycolumnsWidget-U_NZ6aW--76ce37a0548462d018ac.js +1 -0
  49. data/tools/admin/MicroservicesTab-DG3rdksb-35f3fc3e162eb6c433a0.js +1 -0
  50. data/tools/admin/OutputDialog-Di-pSmJE-abdcc64ec68a9fb24179.js +1 -0
  51. data/tools/admin/{PackagesTab-BascLTCK-cca24f27d8349907a8fa.js → PackagesTab-Bui5q3rX-b1963482967f42c96e55.js} +1 -1
  52. data/tools/admin/{PluginsTab-Yz9HZqpp-910a6e5d7b19d45b11b7.js → PluginsTab-zR9eZuvc-c57dae61047523f89750.js} +2 -2
  53. data/tools/admin/ProgressbarWidget-D4JtVzyk-83283130b1429c6828cd.js +1 -0
  54. data/tools/admin/RadiobuttonWidget-BUaW7pRx-848fe80075b32c47d70b.js +1 -0
  55. data/tools/admin/RadiogroupWidget-NIv4CaUQ-545c9956ea6936dc8658.js +1 -0
  56. data/tools/admin/RangebarWidget-1-CsFpcl-9c19b38a9b6312ce2b74.js +1 -0
  57. data/tools/admin/{RedisTab-C00rFmdl-7e2ccc5bd3fadaa12005.js → RedisTab-DuO-zUV3-21f27e0f3f96b000592e.js} +1 -1
  58. data/tools/admin/RollupWidget-ChasTJYP-7a4c2edc943344b62451.js +1 -0
  59. data/tools/admin/{RoutersTab-CEe4oS0x-b49f6b75042daef01df4.js → RoutersTab-C0UHSj-S-ed231a6d8c25eb3cb67e.js} +1 -1
  60. data/tools/admin/ScrollwindowWidget-Y2J758y6-2df0a4d71fb133314d26.js +1 -0
  61. data/tools/admin/{SecretsTab-DFrxV8Q8-ca4a28befc3615d0adec.js → SecretsTab-c5g8Zk4g-5d84a9c474815520ba11.js} +1 -1
  62. data/tools/admin/SettingsTab-CTd3_Ipy-263b3fd497c7ad9c7647.js +2 -0
  63. data/tools/admin/SignalWidget-DFhHDicI-927c00e00aef21b95c78.js +1 -0
  64. data/tools/admin/SimpleTextDialog-CXIEKlX0-6b68d042e80fb3611e0b.js +1 -0
  65. data/tools/admin/{SpacerWidget-CaWx41K7-ee222bd1763dfcd9499b.js → SpacerWidget-D4KojaGb-24b0ca553a20484f4ecb.js} +1 -1
  66. data/tools/admin/SparklineWidget-DMHFzw8L-be6641d87f4449bf3abe.js +1 -0
  67. data/tools/admin/TabbookWidget-NVLYMdFG-e3811a0c1facfc366926.js +1 -0
  68. data/tools/admin/{TargetsTab-B6tf2hKl-20fdeb73e7732330db81.js → TargetsTab-b35HgnRl-e970ebd371c349ffe038.js} +1 -1
  69. data/tools/admin/TextboxWidget-CrMYPQIF-26e7b0822d504325a606.js +1 -0
  70. data/tools/admin/TextfieldWidget-DMBQwtnb-a7af187a886f30e870ce.js +1 -0
  71. data/tools/admin/{TimeWidget-BHybAfg8-2ef3652afaab371b26f8.js → TimeWidget-CWLJZ2bt-a73732192a9307483b41.js} +1 -1
  72. data/tools/admin/TitleWidget-V1FGI8l3-6c25cbce98d3073cbed3.js +1 -0
  73. data/tools/admin/{ToolsTab-CXoxIck8-cd6095dc9c1b215c3dde.js → ToolsTab-7qOQPnN3-7f87bbe2b3d53dbc4e60.js} +1 -1
  74. data/tools/admin/{VWidget-D06LY-Yc-1386bbd0ed7afc886d9d.js → VWidget-rAFU-0vj-222c8edcd992633f73a1.js} +1 -1
  75. data/tools/admin/ValueWidget-BI3uXmda-bcc8763defb2d1a2ada5.js +1 -0
  76. data/tools/admin/ValuelimitsbarWidget-BGSJLpw4-835ae41f7708a02adb0d.js +1 -0
  77. data/tools/admin/ValuelimitscolumnWidget-CaNjHy4v-edac88976e3fdab324d4.js +1 -0
  78. data/tools/admin/ValuerangebarWidget-Do40-aaL-edc4a5026d136a04d964.js +1 -0
  79. data/tools/admin/VerticalWidget-DZqghqIm-da2a75fa0fad1efa61b4.js +1 -0
  80. data/tools/admin/VerticalboxWidget-CQ__4FcS-bec849a14fb1f27df91e.js +1 -0
  81. data/tools/admin/Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js +1 -0
  82. data/tools/admin/{main-4560cb476d7e9d971b97.js → main-b8fe7a5cb2fa4e35ed6a.js} +35 -35
  83. data/tools/admin/main.js +1 -1
  84. data/tools/admin/{settings-DRNFiuf0-6eada366887f768e812b.js → settings-CHPWZcnU-934e5e82b5a20cfda7e6.js} +1 -1
  85. metadata +83 -80
  86. data/tools/admin/ArrayWidget-DQRQ7dPa-ec60f1a7547ad6b00d69.js +0 -2
  87. data/tools/admin/BarColumn-BdIaQfOz-3f372dcbd0e38e94beb7.js +0 -1
  88. data/tools/admin/BlockWidget-DSFKrUxl-40a0bfee90429f0fbd04.js +0 -2
  89. data/tools/admin/ButtonWidget-CFbjdxSr-3eb417f150aad49159da.js +0 -2
  90. data/tools/admin/CanvasWidget-BloYxuKE-bd7432f755c4dd08aadc.js +0 -1
  91. data/tools/admin/CanvasdotWidget-CZxUOPRd-2c149df34b30a8c42813.js +0 -1
  92. data/tools/admin/CanvasimageWidget-ULQq3nqZ-68511568bd9671b1395a.js +0 -1
  93. data/tools/admin/CanvasimagevalueWidget-jFCVXYhi-69a98787a537716d1eca.js +0 -1
  94. data/tools/admin/CanvaslabelWidget-DQhBI1vZ-5c678abaccd36a449807.js +0 -1
  95. data/tools/admin/CanvaslabelvalueWidget-C4REgztL-c7278cf0b63aa2576e5e.js +0 -1
  96. data/tools/admin/CanvaslineWidget-S4PCEvZM-58f0c96eae5b75e0d714.js +0 -1
  97. data/tools/admin/CanvaslinevalueWidget-597khOSA-8ec57bb2832d2ccf4c7f.js +0 -1
  98. data/tools/admin/CheckbuttonWidget-BcblKat3-c29e0b0e519f68962e5e.js +0 -1
  99. data/tools/admin/ComboboxWidget-BMcHS4g5-991790211f0df154fa60.js +0 -1
  100. data/tools/admin/DetailsDialog-q9piPmHq-5fd592fa0232fc721f08.js +0 -1
  101. data/tools/admin/DynamicWidget-DHL7pbgW-ddb50949e471ca798597.js +0 -1
  102. data/tools/admin/FormatvalueWidget-Cm-HmAmw-cc32c9f0e3a6440dc3f7.js +0 -1
  103. data/tools/admin/Graph-BEodMaxQ-dc069ff0863bb1b79a14.js +0 -1
  104. data/tools/admin/HorizontalWidget-NcXIXxh7-ac4430c2bd179fac7e53.js +0 -1
  105. data/tools/admin/HorizontalboxWidget-CW9XX4uH-5b9955591fadf92383d4.js +0 -1
  106. data/tools/admin/ImageviewerWidget-UByjeO63-6a1aa341aad3f5e3a1fa.js +0 -1
  107. data/tools/admin/LabelledWidget-DVOGpgZ--be6e8ae8ae73a9e8ac0e.js +0 -1
  108. data/tools/admin/LabelprogressbarWidget-BeE9fDs6-4c6a74a14a60af91654c.js +0 -1
  109. data/tools/admin/LabelsparklineWidget-Bj7trKML-366bdc6967968c3df270.js +0 -1
  110. data/tools/admin/LabelvalueWidget-Dwqsh5o2-eb6928f5259e5721a1cc.js +0 -1
  111. data/tools/admin/LabelvaluedescWidget-Cfu2vuja-9ff7549a39dfd631a158.js +0 -1
  112. data/tools/admin/LabelvaluelimitsbarWidget-DYV68AJ_-14ed76ef50306d433241.js +0 -1
  113. data/tools/admin/LabelvaluelimitscolumnWidget-CtaoTixt-8a607f68160af332179e.js +0 -1
  114. data/tools/admin/LabelvaluerangebarWidget-3EaUB6E6-9d23a3bdfcc0902cfeae.js +0 -1
  115. data/tools/admin/Layout-DNR3xnku-a01a9b3a62428bfb1b78.js +0 -1
  116. data/tools/admin/LedWidget-Gi6GXtrW-dae81febb3ae6042fe79.js +0 -1
  117. data/tools/admin/LimitsbarWidget-BTZQY9XQ-8c4fb603d49357ccf95a.js +0 -1
  118. data/tools/admin/LimitscolorWidget-CFnmvlrA-37fbe4cc91eef4c5ecbe.js +0 -1
  119. data/tools/admin/MatrixbycolumnsWidget-DX9uhjAv-4b1ae2738aef8ffa3842.js +0 -1
  120. data/tools/admin/MicroservicesTab-BSSCh5Ss-e353932e75faf48047d5.js +0 -1
  121. data/tools/admin/OutputDialog-BMzp6wy3-6270642e99f9befcc694.js +0 -1
  122. data/tools/admin/ProgressbarWidget-DJepvOip-8ff70f5f860011c00bc0.js +0 -1
  123. data/tools/admin/RadiobuttonWidget-4e8ROIfg-8f6efea6ff9b37a4afc4.js +0 -1
  124. data/tools/admin/RadiogroupWidget-CUucj6aT-4e1289cf1681d9dd871b.js +0 -1
  125. data/tools/admin/RangebarWidget-Bu4rqlrx-b13f4d05894e17b35f93.js +0 -1
  126. data/tools/admin/RollupWidget-ByLvEEau-cb3a4775a6f72a2dcd9e.js +0 -1
  127. data/tools/admin/ScrollwindowWidget-CXJ9QGN1-376ce5b224c4ca4390cf.js +0 -1
  128. data/tools/admin/SettingsTab-CpLxrjTc-c8622ca1e0fa0aa3c324.js +0 -2
  129. data/tools/admin/SignalWidget-qvL2YZJA-d4926d5b69e8d205ea30.js +0 -1
  130. data/tools/admin/SimpleTextDialog--iSWgPgq-dabd517064950fe3d362.js +0 -1
  131. data/tools/admin/SparklineWidget-BkNSRypJ-578f0450fc9c2ec01ee6.js +0 -1
  132. data/tools/admin/TabbookWidget-MsrRG1vn-f49576da2086555d3772.js +0 -1
  133. data/tools/admin/TextboxWidget-DbwpPVGB-965cd84f13108a2dfe6b.js +0 -1
  134. data/tools/admin/TextfieldWidget-DzMlTMYW-44d5799795c0663b983e.js +0 -1
  135. data/tools/admin/TitleWidget-DL_sE5YE-2e10d96d64ba14f84323.js +0 -1
  136. data/tools/admin/ValueWidget-CGT0LV_n-f28fb61ddd02224a739a.js +0 -1
  137. data/tools/admin/ValuelimitsbarWidget-CmpyPO-1-417db70aadb1a08ea6f3.js +0 -1
  138. data/tools/admin/ValuelimitscolumnWidget-jzxrQd-f-1f0d66b078567bf94726.js +0 -1
  139. data/tools/admin/ValuerangebarWidget-C8ckuAeh-a0f589394f5fdcd0125c.js +0 -1
  140. data/tools/admin/VerticalWidget-qN82km_m-8cc1d779b219f6f880d8.js +0 -1
  141. data/tools/admin/VerticalboxWidget-CiJZDlHJ-445ff2aa6dd1d842fee3.js +0 -1
  142. data/tools/admin/Widget-DXvVFSH5-911ef7faeb56d94116a8.js +0 -1
@@ -0,0 +1 @@
1
+ System.register(["./main-b8fe7a5cb2fa4e35ed6a.js","vue","./DetailsDialog-p_vutijL-76a071d9003f673bb43a.js","single-spa","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","vuex","vuetify","./LimitsBar-_UQG-M6e-b8c3d82a4d2cafcf8e4c.js"],function(k,B){"use strict";var v,i,p,o,u,c,g,x,l,h,m,w,f,C,y,I,S,_;return{setters:[e=>{v=e.d},e=>{i=e.resolveComponent,p=e.createElementBlock,o=e.openBlock,u=e.createBlock,c=e.createVNode,g=e.normalizeStyle,x=e.normalizeClass,l=e.withCtx,h=e.createElementVNode,m=e.toDisplayString,w=e.mergeProps,f=e.Fragment,C=e.renderList,y=e.withModifiers,I=e.createTextVNode},e=>{S=e.q},null,e=>{_=e.o},null,null,null,null],execute:function(){const e={components:{DetailsDialog:S},mixins:[_],emits:["addItem","deleteItem"],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"},viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2])+"/","_blank")}}]}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let t=this.screenValues[this.valueId][0],s=this.colors[t];return s||(s=this.colors.ANY),s||(s="openc3-black"),{"--color":s}},fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},getClass(){let t="ledwidget mt-2";return this.screenValues[this.valueId][1]==="STALE"&&(t+=" stale"),t}},created(){this.appliedSettings.forEach(t=>{switch(t[0]){case"LED_COLOR":this.colors[t[1]]=t[2];break}}),this.appliedSettings.push(["WIDTH",this.width]),this.appliedSettings.push(["HEIGHT",this.height]),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}};function M(t,s,U,$,r,n){const D=i("v-tooltip"),V=i("v-list-item-title"),E=i("v-list-item"),N=i("v-list"),T=i("v-menu"),L=i("details-dialog");return o(),p("div",null,[t.tooltipText?(o(),p("div",{key:1,class:x(n.getClass),style:g([n.cssProps,t.computedStyle]),onContextmenu:s[1]||(s[1]=(...a)=>n.showContextMenu&&n.showContextMenu(...a))},null,38)):(o(),u(D,{key:0,"open-delay":600,location:"top"},{activator:l(({props:a})=>[h("div",w({class:n.getClass,style:[n.cssProps,t.computedStyle]},a,{onContextmenu:s[0]||(s[0]=(...d)=>n.showContextMenu&&n.showContextMenu(...d))}),null,16)]),default:l(()=>[h("span",null,m(n.fullName),1)]),_:1})),c(T,{modelValue:r.contextMenuShown,"onUpdate:modelValue":s[2]||(s[2]=a=>r.contextMenuShown=a),target:[r.x,r.y],style:{"z-index":"3000"}},{default:l(()=>[c(N,null,{default:l(()=>[(o(!0),p(f,null,C(r.contextMenuOptions,(a,d)=>(o(),u(E,{key:d,onClick:y(a.action,["stop"])},{default:l(()=>[c(V,null,{default:l(()=>[I(m(a.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),c(L,{modelValue:r.viewDetails,"onUpdate:modelValue":s[3]||(s[3]=a=>r.viewDetails=a),"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 R=k("default",v(e,[["render",M],["__scopeId","data-v-2a39f3fe"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["vue","./main-b8fe7a5cb2fa4e35ed6a.js"],function(L,N){"use strict";var w,v,g,c,m,y,u,t,_,p,b;return{setters:[e=>{w=e.resolveComponent,v=e.createElementBlock,g=e.createBlock,c=e.openBlock,m=e.normalizeStyle,y=e.createStaticVNode,u=e.withCtx,t=e.createElementVNode,_=e.toDisplayString,p=e.mergeProps},e=>{b=e.d}],execute:function(){const e={props:{redLow:{type:Number,required:!0},yellowLow:{type:Number,required:!0},yellowHigh:{type:Number,required:!0},redHigh:{type:Number,required:!0},greenLow:{type:Number,default:null},greenHigh:{type:Number,default:null},value:{type:Number,default:null},width:{type:Number,default:160},height:{type:Number,default:22},computedStyle:{type:Object,default:null},hideTooltip:{type:Boolean,default:!1}},computed:{hasGreenLimits(){return this.greenLow!==null&&this.greenHigh!==null},limitsTooltip(){return this.hasGreenLimits?`RL/${this.redLow} YL/${this.yellowLow} YH/${this.yellowHigh} RH/${this.redHigh} GL/${this.greenLow} GH/${this.greenHigh}`:`RL/${this.redLow} YL/${this.yellowLow} YH/${this.yellowHigh} RH/${this.redHigh}`},barStyle(){if(this.computedStyle)return this.computedStyle;const h=10,i=10,l=(this.redHigh-this.redLow)/80,d=Math.round((this.yellowLow-this.redLow)/l),n=Math.round((this.redHigh-this.yellowHigh)/l);let s,r,o;this.hasGreenLimits?(s=Math.round((this.greenLow-this.yellowLow)/l),r=Math.round((this.yellowHigh-this.greenHigh)/l),o=Math.round(100-h-d-s-r-n-i)):(s=Math.round(100-h-d-n-i),r=0,o=0);let a=50;if(this.value!==null&&!isNaN(this.value)){const f=this.redLow-10*l;a=Math.round((this.value-f)/l),a>100&&(a=100),a<0&&(a=0)}return{"--width":this.width+"px","--height":this.height+"px","--container-height":this.height-5+"px","--redlow-width":h+"%","--redhigh-width":i+"%","--yellowlow-width":d+"%","--yellowhigh-width":n+"%","--greenlow-width":s+"%","--greenhigh-width":r+"%","--blue-width":o+"%","--position":a+"%"}}}};function H(h,i,l,d,n,s){const r=w("v-tooltip");return l.hideTooltip?(c(),v("div",{key:1,class:"limitsbar",style:m(s.barStyle)},[...i[1]||(i[1]=[y('<div class="limitsbar__container" data-v-2e81a9e5><div class="limitsbar__redlow" data-v-2e81a9e5></div><div class="limitsbar__redhigh" data-v-2e81a9e5></div><div class="limitsbar__yellowlow" data-v-2e81a9e5></div><div class="limitsbar__yellowhigh" data-v-2e81a9e5></div><div class="limitsbar__greenlow" data-v-2e81a9e5></div><div class="limitsbar__greenhigh" data-v-2e81a9e5></div><div class="limitsbar__blue" data-v-2e81a9e5></div><div class="limitsbar__line" data-v-2e81a9e5></div><div class="limitsbar__arrow" data-v-2e81a9e5></div></div>',1)])],4)):(c(),g(r,{key:0,"open-delay":600,location:"top"},{activator:u(({props:o})=>[t("div",p({class:"limitsbar",style:s.barStyle},o),[...i[0]||(i[0]=[t("div",{class:"limitsbar__container"},[t("div",{class:"limitsbar__redlow"}),t("div",{class:"limitsbar__redhigh"}),t("div",{class:"limitsbar__yellowlow"}),t("div",{class:"limitsbar__yellowhigh"}),t("div",{class:"limitsbar__greenlow"}),t("div",{class:"limitsbar__greenhigh"}),t("div",{class:"limitsbar__blue"}),t("div",{class:"limitsbar__line"}),t("div",{class:"limitsbar__arrow"})],-1)])],16)]),default:u(()=>[t("span",null,_(s.limitsTooltip),1)]),_:1}))}const S=L("x",b(e,[["render",H],["__scopeId","data-v-2e81a9e5"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./BarColumn-ClLBRGll-572701c09620d10ecff0.js","./LimitsBar-_UQG-M6e-b8c3d82a4d2cafcf8e4c.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","single-spa","vuex","vuetify"],function(d,g){"use strict";var l,s,r,o,n,m,h;return{setters:[e=>{l=e.u},e=>{s=e.x},e=>{r=e.resolveComponent,o=e.createBlock,n=e.createCommentVNode,m=e.openBlock},e=>{h=e.d},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 c(i,p,y,B,u,t){const a=r("LimitsBar");return t.limits?(m(),o(a,{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"])):n("",!0)}const w=d("default",h(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./VWidget-rAFU-0vj-222c8edcd992633f73a1.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","single-spa","vuex","vuetify"],function(d,b){"use strict";var l,i,n,a,s,o,p,m,u,c;return{setters:[e=>{l=e.h},e=>{i=e.resolveComponent,n=e.createElementBlock,a=e.openBlock,s=e.normalizeStyle,o=e.createElementVNode,p=e.createBlock,m=e.createCommentVNode,u=e.normalizeClass},e=>{c=e.d},null,null,null,null,null],execute:function(){const e={mixins:[l],data(){return{radius:15,fullLabelDisplay:!1,displayLabel:!0}},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px"}},myComputedStyle(){const t={...this.computedStyle};return delete t.flex,t}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&(this.parameters[5].toLowerCase()==="true"?this.fullLabelDisplay=!0:this.parameters[5].toLowerCase()==="nil"?this.displayLabel=!1:this.parameters[5].toLowerCase()==="none"&&(this.displayLabel=!1))},methods:{getType(){let t="CONVERTED";return this.parameters[3]&&(t=this.parameters[3]),t}}};function h(t,C,v,L,y,r){const f=i("label-widget");return a(),n("div",{ref:"container",class:"d-flex flex-row",style:s(r.myComputedStyle)},[o("div",{class:u(`led align-self-center ${t.limitsColor}`),style:s(r.cssProps)},null,6),y.displayLabel?(a(),p(f,{key:0,parameters:r.labelName,settings:t.appliedSettings,style:s(t.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])):m("",!0)],4)}const g=d("default",c(e,[["render",h],["__scopeId","data-v-2908b131"]]))}}});
@@ -1 +1 @@
1
- System.register(["./BarColumn-BdIaQfOz-3f372dcbd0e38e94beb7.js","vue","./main-4560cb476d7e9d971b97.js","./Widget-DXvVFSH5-911ef7faeb56d94116a8.js","vue-router","single-spa","vuex","vuetify"],function(n,v){"use strict";var a,s,l,r,h,d;return{setters:[i=>{a=i.l},i=>{s=i.createElementBlock,l=i.openBlock,r=i.normalizeStyle,h=i.createStaticVNode},i=>{d=i.d},null,null,null,null,null],execute:function(){const i={mixins:[a],data(){return{width:22,height:120}},computed:{cssProps:function(){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 o(e,t,g,u,b,c){return l(),s("div",{class:"limitsbar",style:r([c.cssProps,e.computedStyle])},[...t[0]||(t[0]=[h('<div class="limitsbar__container" data-v-a4a8f4ab><div class="limitsbar__redlow" data-v-a4a8f4ab></div><div class="limitsbar__redhigh" data-v-a4a8f4ab></div><div class="limitsbar__yellowlow" data-v-a4a8f4ab></div><div class="limitsbar__yellowhigh" data-v-a4a8f4ab></div><div class="limitsbar__greenlow" data-v-a4a8f4ab></div><div class="limitsbar__greenhigh" data-v-a4a8f4ab></div><div class="limitsbar__blue" data-v-a4a8f4ab></div><div class="limitsbar__line" data-v-a4a8f4ab></div><div class="limitsbar__arrow" data-v-a4a8f4ab></div></div>',1)])],4)}const m=n("default",d(i,[["render",o],["__scopeId","data-v-a4a8f4ab"]]))}}});
1
+ System.register(["./BarColumn-ClLBRGll-572701c09620d10ecff0.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","single-spa","vuex","vuetify"],function(n,v){"use strict";var a,s,l,r,h,d;return{setters:[i=>{a=i.u},i=>{s=i.createElementBlock,l=i.openBlock,r=i.normalizeStyle,h=i.createStaticVNode},i=>{d=i.d},null,null,null,null,null],execute:function(){const i={mixins:[a],data(){return{width:22,height:120}},computed:{cssProps:function(){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 o(e,t,u,g,b,c){return l(),s("div",{class:"limitsbar",style:r([c.cssProps,e.computedStyle])},[...t[0]||(t[0]=[h('<div class="limitsbar__container" data-v-a4a8f4ab><div class="limitsbar__redlow" data-v-a4a8f4ab></div><div class="limitsbar__redhigh" data-v-a4a8f4ab></div><div class="limitsbar__yellowlow" data-v-a4a8f4ab></div><div class="limitsbar__yellowhigh" data-v-a4a8f4ab></div><div class="limitsbar__greenlow" data-v-a4a8f4ab></div><div class="limitsbar__greenhigh" data-v-a4a8f4ab></div><div class="limitsbar__blue" data-v-a4a8f4ab></div><div class="limitsbar__line" data-v-a4a8f4ab></div><div class="limitsbar__arrow" data-v-a4a8f4ab></div></div>',1)])],4)}const m=n("default",d(i,[["render",o],["__scopeId","data-v-a4a8f4ab"]]))}}});
@@ -1 +1 @@
1
- System.register(["./GraphWidget-CAADBFV--5a0f42f620a95bceb78a.js","./main-4560cb476d7e9d971b97.js","vue","./Graph-BEodMaxQ-dc069ff0863bb1b79a14.js","single-spa","./Widget-DXvVFSH5-911ef7faeb56d94116a8.js","vue-router","vuex","vuetify"],function(p,u){"use strict";var s,n,a,r,o,d,l;return{setters:[t=>{s=t.M},t=>{n=t.d},t=>{a=t.resolveComponent,r=t.createBlock,o=t.openBlock,d=t.normalizeStyle},t=>{l=t.M},null,null,null,null,null],execute:function(){const t={components:{Graph:l},mixins:[s]};function h(e,i,g,v,f,y){const c=a("graph");return o(),r(c,{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:d(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
+ System.register(["./GraphWidget-CjxnC0Dc-5fc94ebc28f2be06cd4a.js","./main-b8fe7a5cb2fa4e35ed6a.js","vue","./Graph-CbjlChwf-52e2ec5c5915ed22c513.js","single-spa","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","vuex","vuetify"],function(p,u){"use strict";var s,n,r,a,o,d,l;return{setters:[t=>{s=t.M},t=>{n=t.d},t=>{r=t.resolveComponent,a=t.createBlock,o=t.openBlock,d=t.normalizeStyle},t=>{l=t.M},null,null,null,null,null],execute:function(){const t={components:{Graph:l},mixins:[s]};function h(e,i,g,v,f,y){const c=r("graph");return o(),a(c,{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:d(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]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-B_Hgw3gd-bdff69864bbaf9af4133.js","./main-b8fe7a5cb2fa4e35ed6a.js","vue","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","single-spa","vuex","vuetify"],function(w,S){"use strict";var m,d,y,v,s,r,f,l,o,i,c,h,k,p,u;return{setters:[t=>{m=t.u},t=>{d=t.d,y=t.O},t=>{v=t.resolveComponent,s=t.createElementBlock,r=t.openBlock,f=t.normalizeStyle,l=t.Fragment,o=t.renderList,i=t.createBlock,c=t.withCtx,h=t.createElementVNode,k=t.toDisplayString,p=t.resolveDynamicComponent,u=t.mergeProps},null,null,null,null,null],execute:function(){const t={mixins:[m],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return y.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(g=>{g.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&g.settings.push(["MARGIN",n])})}}};function C(n,g,a,D,E,N){const T=v("v-tooltip");return r(),s("table",{style:f(n.computedStyle),role:"presentation"},[(r(!0),s(l,null,o(N.widgetChunks,(b,x)=>(r(),s("tr",{key:"r"+x},[(r(!0),s(l,null,o(b,(e,B)=>(r(),s("td",{key:"c"+B},[n.getTooltipText(e)?(r(),i(T,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:c(({props:z})=>[(r(),i(p(e.type),u({ref_for:!0},{...n.listeners,...z},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:c(()=>[h("span",null,k(n.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(r(),i(p(e.type),u({key:1,ref_for:!0},n.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]))),128))]))),128))],4)}const A=w("default",d(t,[["render",C]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-b8fe7a5cb2fa4e35ed6a.js","vue","single-spa","./OutputDialog-Di-pSmJE-abdcc64ec68a9fb24179.js","vue-router","vuex","vuetify"],function(I,P){"use strict";var k,m,E,A,r,f,u,n,a,x,d,w,y,C,$,N,j,B,U;return{setters:[o=>{k=o.d,m=o.F,E=o.p,A=o.l},o=>{r=o.resolveComponent,f=o.createBlock,u=o.openBlock,n=o.withCtx,a=o.createVNode,x=o.createElementVNode,d=o.toDisplayString,w=o.createTextVNode,y=o.createElementBlock,C=o.createCommentVNode,$=o.Fragment,N=o.renderList,j=o.withDirectives,B=o.vShow},null,o=>{U=o.E},null,null,null],execute:function(){const o={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(t){this.$emit("update:modelValue",t)}}},methods:{download:function(){const t=new Blob([this.dialogText],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.title}__error.txt`),e.click()}}},F={class:"mx-2"},J={class:"pa-2"};function L(t,e,c,h,i,s){const g=r("v-spacer"),_=r("v-btn"),T=r("v-toolbar"),p=r("v-textarea"),S=r("v-card-text"),V=r("v-card-actions"),b=r("v-card"),D=r("v-dialog");return u(),f(D,{modelValue:s.show,"onUpdate:modelValue":e[2]||(e[2]=v=>s.show=v),width:"600"},{default:n(()=>[a(b,null,{default:n(()=>[a(T,{height:"24"},{default:n(()=>[a(g),x("span",null,d(c.title),1),a(g),x("div",F,[a(_,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:s.download},null,8,["onClick"])])]),_:1}),x("div",J,[a(S,null,{default:n(()=>[a(p,{modelValue:s.dialogText,"onUpdate:modelValue":e[0]||(e[0]=v=>s.dialogText=v),readonly:"",rows:"15","data-test":"dialogText"},null,8,["modelValue"])]),_:1})]),a(V,{class:"px-2"},{default:n(()=>[a(g),a(_,{variant:"flat",onClick:e[1]||(e[1]=v=>s.show=!s.show)},{default:n(()=>[...e[3]||(e[3]=[w(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const H={components:{OutputDialog:U,TextBoxDialog:k(o,[["render",L]])},data(){return{microservices:[],microservice_status:{},microservice_id:null,jsonContent:"",dialogTitle:"",showDialog:!1,showError:!1,alert:"",alertType:"success",showAlert:!1,updater:null}},mounted(){this.update(),this.updater=setInterval(()=>{this.update()},2e3)},beforeUnmount(){clearInterval(this.updater),this.updater=null},methods:{update:function(){m.get("/openc3-api/microservice_status/all").then(t=>{this.microservice_status=t.data}),m.get("/openc3-api/microservices/all").then(t=>{let e=[];for(const[c,h]of Object.entries(t.data))e.push(h);e.sort((c,h)=>c.name.localeCompare(h.name)),this.microservices=e})},startMicroservice:function(t){this.$dialog.confirm(`Are you sure you want to restart microservice: ${t}?`,{okText:"Start",cancelText:"Cancel"}).then(e=>{m.post(`/openc3-api/microservices/${t}/start`).then(c=>{this.alert=`Started ${t}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3)}).then(()=>{this.update()})})},stopMicroservice:function(t){this.$dialog.confirm(`Are you sure you want to stop microservice: ${t}?`,{okText:"Stop",cancelText:"Cancel"}).then(e=>{m.post(`/openc3-api/microservices/${t}/stop`).then(c=>{this.alert=`Stopped ${t}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3)}).then(()=>{this.update()})})},showMicroservice:function(t){m.get(`/openc3-api/microservices/${t}`).then(e=>{this.microservice_id=t,this.dialogTitle=t,this.jsonContent=JSON.stringify(e.data,null," "),this.showDialog=!0})},showMicroserviceError:function(t){this.dialogTitle=t;const e=this.microservice_status[t].error;this.jsonContent=JSON.stringify(e,null," "),this.showError=!0},formatDate(t){return E(A(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},dialogCallback:function(t){if(this.showDialog=!1,t!==null){let e=JSON.parse(t),c="put",h=`/openc3-api/microservices/${this.microservice_id}`;e.name!==this.microservice_id&&(c="post",h="/openc3-api/microservices"),m[c](h,{data:{json:t}}).then(i=>{this.alert="Modified Microservice",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}}};function R(t,e,c,h,i,s){const g=r("v-alert"),_=r("v-list-item-title"),T=r("v-list-item-subtitle"),p=r("v-btn"),S=r("v-list-item"),V=r("v-divider"),b=r("v-list"),D=r("output-dialog"),v=r("text-box-dialog");return u(),y("div",null,[a(g,{modelValue:i.showAlert,"onUpdate:modelValue":e[0]||(e[0]=l=>i.showAlert=l),closable:"",type:i.alertType},{default:n(()=>[w(d(i.alert),1)]),_:1},8,["modelValue","type"]),a(b,{class:"list","data-test":"microserviceList"},{default:n(()=>[(u(!0),y($,null,N(i.microservices,l=>(u(),y("div",{key:l},[a(S,null,{append:n(()=>{var O;return[j(a(p,{icon:"mdi-alert",variant:"text",onClick:M=>s.showMicroserviceError(l.name)},null,8,["onClick"]),[[B,(O=i.microservice_status[l.name])==null?void 0:O.error]]),a(p,{"aria-label":"Start Microservice",icon:"mdi-play",variant:"text",onClick:M=>s.startMicroservice(l.name)},null,8,["onClick"]),a(p,{"aria-label":"Stop Microservice",icon:"mdi-stop",variant:"text",onClick:M=>s.stopMicroservice(l.name)},null,8,["onClick"]),a(p,{"aria-label":"Show Microservice Details",icon:"mdi-eye",variant:"text",onClick:M=>s.showMicroservice(l.name)},null,8,["onClick"])]}),default:n(()=>[a(_,null,{default:n(()=>[w(d(l.name),1)]),_:2},1024),i.microservice_status[l.name]?(u(),f(T,{key:0},{default:n(()=>[w(" Updated: "+d(s.formatDate(i.microservice_status[l.name].updated_at))+", State: "+d(i.microservice_status[l.name].state)+", Enabled: "+d(l.enabled===!1?"False":"True")+", Count: "+d(i.microservice_status[l.name].count),1)]),_:2},1024)):C("",!0)]),_:2},1024),a(V)]))),128))]),_:1}),i.showDialog?(u(),f(D,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":e[1]||(e[1]=l=>i.showDialog=l),content:i.jsonContent,type:"Microservice",name:i.dialogTitle,onSubmit:s.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):C("",!0),i.showError?(u(),f(v,{key:1,modelValue:i.showError,"onUpdate:modelValue":e[2]||(e[2]=l=>i.showError=l),text:i.jsonContent,title:i.dialogTitle},null,8,["modelValue","text","title"])):C("",!0)])}const z=I("default",k(H,[["render",R],["__scopeId","data-v-71cd70be"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-b8fe7a5cb2fa4e35ed6a.js","vue"],function(M,S){"use strict";var g,i,f,l,w,b,a,r,u,_,y;return{setters:[n=>{g=n.d,i=n.b,f=n.B},n=>{l=n.resolveComponent,w=n.createBlock,b=n.openBlock,a=n.withCtx,r=n.createVNode,u=n.createElementVNode,_=n.toDisplayString,y=n.createTextVNode}],execute:function(){const n={methods:{buildLanguageMode(t,e){let o=i.require("ace/lib/oop"),h=Object.getOwnPropertyNames(f.prototype).filter(d=>d!=="constructor").filter(d=>d!=="exec").concat(["check","check_raw","check_formatted","check_with_units","check_exception","check_tolerance","check_expression","wait","wait_tolerance","wait_expression","wait_check","wait_check_tolerance","wait_check_expression","wait_packet","wait_check_packet","disable_instrumentation","set_line_delay","get_line_delay","set_max_output","get_max_output"]),p=new RegExp(`(\\b${h.join("\\b|\\b")}\\b)`),s=function(){t.call(this);for(let d in this.$rules)this.$rules[d].unshift({regex:p,token:"support.function"})};o.inherits(s,t);let c=i.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,m=i.require("ace/mode/behaviour/cstyle").CstyleBehaviour;return[o,function(){this.HighlightRules=s,this.$outdent=new c,this.$behaviour=new m,this.foldingRules=new e,this.indentKeywords=this.foldingRules.indentKeywords}]},buildRubyMode(){const[t,e]=this.buildLanguageMode(i.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,i.require("ace/mode/folding/ruby").FoldMode);let o=i.require("ace/mode/ruby").Mode;return t.inherits(e,o),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildPythonMode(){const[t,e]=this.buildLanguageMode(i.require("ace/mode/python_highlight_rules").PythonHighlightRules,i.require("ace/mode/folding/pythonic").FoldMode);let o=i.require("ace/mode/python").Mode;return t.inherits(e,o),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildJsonMode(){const[t,e]=this.buildLanguageMode(i.require("ace/mode/json_highlight_rules").JsonHighlightRules,i.require("ace/mode/folding/ruby").FoldMode);let o=i.require("ace/mode/json").Mode;return t.inherits(e,o),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e},buildMarkdownMode(){const[t,e]=this.buildLanguageMode(i.require("ace/mode/markdown_highlight_rules").MarkdownHighlightRules,i.require("ace/mode/folding/markdown").FoldMode);let o=i.require("ace/mode/markdown").Mode;return t.inherits(e,o),(function(){this.$id="ace/mode/openc3"}).call(e.prototype),e}}},x={mixins:[n],props:{content:{type:String,required:!0},type:{type:String,default:null},name:{type:String,default:null},modelValue:Boolean,filename:{type:String,default:null}},emits:["update:modelValue"],data(){return{editor:null,mode:null}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},title:function(){return`${this.type}: ${this.name}`}},mounted(){this.editor=ace.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");let t=null;switch(this.filename?this.filename.split(".").pop():"txt"){case"json":const e=this.buildJsonMode();t=new e,this.editor.setOptions({useWorker:!1});break;case"py":case"pyi":const o=this.buildPythonMode();t=new o;break;case"md":const h=this.buildMarkdownMode();t=new h;break;default:const p=this.buildRubyMode();t=new p;break}this.editor.session.setMode(t),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.content),this.editor.clearSelection(),this.editor.focus(),this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},methods:{close:function(){this.show=!this.show},download:function(){const t=new Blob([this.editor.getValue()],{type:"text/plain"});let e=`${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`;this.filename&&(e=this.filename);const o=document.createElement("a");o.href=URL.createObjectURL(t),o.setAttribute("download",e),o.click()}}},v=["textContent"],q={class:"mx-2"},$={ref:"editor",class:"editor"};function V(t,e,o,h,p,s){const c=l("v-spacer"),m=l("v-btn"),d=l("v-toolbar"),R=l("v-card-text"),C=l("v-card-actions"),B=l("v-card"),L=l("v-dialog");return b(),w(L,{modelValue:s.show,"onUpdate:modelValue":e[1]||(e[1]=k=>s.show=k),width:"85vw"},{default:a(()=>[r(B,null,{default:a(()=>[r(d,{height:"24"},{default:a(()=>[r(c),u("span",{textContent:_(s.title)},null,8,v),r(c),u("div",q,[r(m,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:s.download},null,8,["onClick"])])]),_:1}),r(R,null,{default:a(()=>[u("pre",$,null,512)]),_:1}),r(C,{class:"pr-6 pb-4 pt-0"},{default:a(()=>[r(c),r(m,{variant:"flat",onClick:e[0]||(e[0]=k=>s.show=!s.show)},{default:a(()=>[...e[2]||(e[2]=[y(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const j=M("E",g(x,[["render",V],["__scopeId","data-v-e0692b60"]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-4560cb476d7e9d971b97.js","vue","single-spa","./SimpleTextDialog--iSWgPgq-dabd517064950fe3d362.js","vue-router","vuex","vuetify"],function(U,W){"use strict";var w,D,f,b,O,i,u,c,e,S,V,t,h,d,y,v,$,m,T,F,N;return{setters:[a=>{w=a.d,D=a.q,f=a.F,b=a.p,O=a.l},a=>{i=a.resolveComponent,u=a.createElementBlock,c=a.openBlock,e=a.createVNode,S=a.createBlock,V=a.createCommentVNode,t=a.withCtx,h=a.createElementVNode,d=a.createTextVNode,y=a.Fragment,v=a.renderList,$=a.createSlots,m=a.toDisplayString,T=a.normalizeClass,F=a.mergeProps},null,a=>{N=a.E},null,null,null],execute:function(){const a={components:{DownloadDialog:D,SimpleTextDialog:N},data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,progress:0,gems:[],python:[],processes:{}}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(o){this.processOutput=o.output,this.showProcessOutput=!0},update(){f.get("/openc3-api/packages").then(o=>{this.gems=o.data.ruby,this.python=o.data.python})},updateProcesses:function(){f.get("/openc3-api/process_status/package_?substr=true").then(o=>{this.processes=o.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},2500)})},formatDate(o){return b(O(parseInt(o)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},selectFile(){this.progress=0,this.$refs.fileInput.click()},fileChange(o){const s=o.target.files;if(s.length>0){this.loadingPackage=!0;let E=this;const B=[...s].map(n=>{const r=new FormData;return r.append("package",n,n.name),f.post("/openc3-api/packages",{data:r,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(n=>{this.$notify.normal({body:`Uploaded ${n.length} package${n.length>1?"s":""}`}),this.loadingPackage=!1,this.files=[],setTimeout(()=>{this.updateProcesses()},2500)}).catch(n=>{this.loadingPackage=!1})}},deletePackage(o){this.$dialog.confirm(`Are you sure you want to remove: ${o}`,{okText:"Delete",cancelText:"Cancel"}).then(s=>f.delete(`/openc3-api/packages/${o}`)).then(s=>{this.$notify.normal({body:`Removed package ${o}`}),setTimeout(()=>{this.updateProcesses()},2500)}).catch(s=>{this.$notify.serious({body:`Failed to remove package ${o}`})})}}},j=["textContent"],R=["textContent"];function q(o,s,E,B,n,r){const g=i("v-btn"),p=i("v-col"),z=i("rux-progress"),C=i("v-row"),P=i("v-list-item-title"),A=i("v-list-item-subtitle"),G=i("v-tooltip"),_=i("v-list-item"),x=i("v-divider"),I=i("v-list"),H=i("download-dialog"),M=i("simple-text-dialog");return c(),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:r.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)=>r.fileChange&&r.fileChange(...l))},null,544)]),_:1}),e(p,{class:"ml-4 mr-2",cols:"4"},{default:t(()=>[e(z,{value:n.progress},null,8,["value"])]),_:1})]),_:1}),Object.keys(n.processes).length>0?(c(),S(I,{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}),(c(!0),u(y,null,v(n.processes,l=>(c(),u("div",{key:l.name},[e(_,null,$({default:t(()=>[e(P,null,{default:t(()=>[h("span",{class:T(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: "+r.formatDate(l.updated_at))},null,8,R)]),_:2},1024)]),_:2},[l.state!=="Running"?{name:"append",fn:t(()=>[e(G,{"open-delay":600,location:"top"},{activator:t(({props:k})=>[e(g,F({ref_for:!0},k,{icon:"mdi-eye",variant:"text","aria-label":"Show Output",onClick:L=>r.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(x)]))),128))]),_:1})):V("",!0),e(I,{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}),(c(!0),u(y,null,v(n.gems,(l,k)=>(c(),u("div",{key:k},[e(_,null,{append:t(()=>[e(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Ruby Gem",onClick:L=>r.deletePackage(l)},null,8,["onClick"])]),default:t(()=>[e(P,null,{default:t(()=>[d(m(l),1)]),_:2},1024)]),_:2},1024),e(x)]))),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}),(c(!0),u(y,null,v(n.python,(l,k)=>(c(),u("div",{key:k},[e(_,null,{append:t(()=>[e(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Python Package",onClick:L=>r.deletePackage(l)},null,8,["onClick"])]),default:t(()=>[e(P,null,{default:t(()=>[d(m(l),1)]),_:2},1024)]),_:2},1024),e(x)]))),128))]),_:1}),e(H,{modelValue:n.showDownloadDialog,"onUpdate:modelValue":s[1]||(s[1]=l=>n.showDownloadDialog=l)},null,8,["modelValue"]),e(M,{modelValue:n.showProcessOutput,"onUpdate:modelValue":s[2]||(s[2]=l=>n.showProcessOutput=l),title:"Process Output",text:n.processOutput},null,8,["modelValue","text"])])}const Z=U("default",w(a,[["render",q],["__scopeId","data-v-e97741ba"]]))}}});
1
+ System.register(["./main-b8fe7a5cb2fa4e35ed6a.js","vue","single-spa","./SimpleTextDialog-CXIEKlX0-6b68d042e80fb3611e0b.js","vue-router","vuex","vuetify"],function(U,X){"use strict";var w,D,f,b,O,i,u,c,e,V,$,t,h,d,y,v,S,m,T,F,E;return{setters:[a=>{w=a.d,D=a.q,f=a.F,b=a.p,O=a.l},a=>{i=a.resolveComponent,u=a.createElementBlock,c=a.openBlock,e=a.createVNode,V=a.createBlock,$=a.createCommentVNode,t=a.withCtx,h=a.createElementVNode,d=a.createTextVNode,y=a.Fragment,v=a.renderList,S=a.createSlots,m=a.toDisplayString,T=a.normalizeClass,F=a.mergeProps},null,a=>{E=a.E},null,null,null],execute:function(){const a={components:{DownloadDialog:D,SimpleTextDialog:E},data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,progress:0,gems:[],python:[],processes:{}}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(o){this.processOutput=o.output,this.showProcessOutput=!0},update(){f.get("/openc3-api/packages").then(o=>{this.gems=o.data.ruby,this.python=o.data.python})},updateProcesses:function(){f.get("/openc3-api/process_status/package_?substr=true").then(o=>{this.processes=o.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},2500)})},formatDate(o){return b(O(parseInt(o)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},selectFile(){this.progress=0,this.$refs.fileInput.click()},fileChange(o){const s=o.target.files;if(s.length>0){this.loadingPackage=!0;let N=this;const B=[...s].map(n=>{const r=new FormData;return r.append("package",n,n.name),f.post("/openc3-api/packages",{data:r,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(g){let p=Math.round(g.loaded*100/g.total);N.progress=p}})});Promise.all(B).then(n=>{this.$notify.normal({body:`Uploaded ${n.length} package${n.length>1?"s":""}`}),this.loadingPackage=!1,this.files=[],setTimeout(()=>{this.updateProcesses()},2500)}).catch(n=>{this.loadingPackage=!1})}},deletePackage(o){this.$dialog.confirm(`Are you sure you want to remove: ${o}`,{okText:"Delete",cancelText:"Cancel"}).then(s=>f.delete(`/openc3-api/packages/${o}`)).then(s=>{this.$notify.normal({body:`Removed package ${o}`}),setTimeout(()=>{this.updateProcesses()},2500)}).catch(s=>{this.$notify.serious({body:`Failed to remove package ${o}`})})}}},j=["textContent"],R=["textContent"];function z(o,s,N,B,n,r){const g=i("v-btn"),p=i("v-col"),A=i("rux-progress"),C=i("v-row"),_=i("v-list-item-title"),G=i("v-list-item-subtitle"),H=i("v-tooltip"),x=i("v-list-item"),P=i("v-divider"),I=i("v-list"),M=i("download-dialog"),q=i("simple-text-dialog");return c(),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:r.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)=>r.fileChange&&r.fileChange(...l))},null,544)]),_:1}),e(p,{class:"ml-4 mr-2",cols:"4"},{default:t(()=>[e(A,{value:n.progress},null,8,["value"])]),_:1})]),_:1}),Object.keys(n.processes).length>0?(c(),V(I,{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}),(c(!0),u(y,null,v(n.processes,l=>(c(),u("div",{key:l.name},[e(x,null,S({default:t(()=>[e(_,null,{default:t(()=>[h("span",{class:T(l.state.toLowerCase()),textContent:m(`Processing ${l.process_type}: ${l.detail} - ${l.state}`)},null,10,j)]),_:2},1024),e(G,null,{default:t(()=>[h("span",{textContent:m(" Updated At: "+r.formatDate(l.updated_at))},null,8,R)]),_:2},1024)]),_:2},[l.state!=="Running"?{name:"append",fn:t(()=>[e(H,{"open-delay":600,location:"top"},{activator:t(({props:k})=>[e(g,F({ref_for:!0},k,{icon:"mdi-eye",variant:"text","aria-label":"Show Output",onClick:L=>r.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})):$("",!0),e(I,{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}),(c(!0),u(y,null,v(n.gems,(l,k)=>(c(),u("div",{key:k},[e(x,null,{append:t(()=>[e(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Ruby Gem",onClick:L=>r.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}),(c(!0),u(y,null,v(n.python,(l,k)=>(c(),u("div",{key:k},[e(x,null,{append:t(()=>[e(g,{icon:"mdi-delete",variant:"text","aria-label":"Delete Python Package",onClick:L=>r.deletePackage(l)},null,8,["onClick"])]),default:t(()=>[e(_,null,{default:t(()=>[d(m(l),1)]),_:2},1024)]),_:2},1024),e(P)]))),128))]),_:1}),e(M,{modelValue:n.showDownloadDialog,"onUpdate:modelValue":s[1]||(s[1]=l=>n.showDownloadDialog=l)},null,8,["modelValue"]),e(q,{modelValue:n.showProcessOutput,"onUpdate:modelValue":s[2]||(s[2]=l=>n.showProcessOutput=l),title:"Process Output",text:n.processOutput},null,8,["modelValue","text"])])}const K=U("default",w(a,[["render",z],["__scopeId","data-v-e97741ba"]]))}}});
@@ -1,5 +1,5 @@
1
- System.register(["./main-4560cb476d7e9d971b97.js","vue","single-spa","./SimpleTextDialog--iSWgPgq-dabd517064950fe3d362.js","./settings-DRNFiuf0-6eada366887f768e812b.js","vue-router","vuex","vuetify"],function(Z,Ft){"use strict";var I,F,q,T,H,W,A,i,x,u,l,f,C,o,d,w,$,L,y,j,O,E,N,z,G,J,K;return{setters:[c=>{I=c.d,F=c.U,q=c.Y,T=c.F,H=c.p,W=c.l,A=c.B},c=>{i=c.resolveComponent,x=c.createElementBlock,u=c.openBlock,l=c.createVNode,f=c.createBlock,C=c.createCommentVNode,o=c.withCtx,d=c.createElementVNode,w=c.createTextVNode,$=c.Fragment,L=c.renderList,y=c.toDisplayString,j=c.normalizeClass,O=c.mergeProps,E=c.normalizeProps,N=c.guardReactiveProps,z=c.withModifiers,G=c.renderSlot},null,c=>{J=c.E},c=>{K=c.n},null,null,null],execute:function(){const c="store_url",R={props:{id:Number,name:String,title:String,author:String,description:String,keywords:Array,img_path:String,image_url:String,licenses:Array,verified:Boolean,homepage:String,repository:String,gem_url:String,checksum:String},data:function(){return{_api:new A,_storeUrl:"",imageContents:null}},computed:{plugin:function(){return{id:this.id,name:this.name,title:this.title,author:this.author,description:this.description,keywords:this.keywords,img_path:this.img_path,image_url:this.image_url,licenses:this.licenses,verified:this.verified,homepage:this.homepage,repository:this.repository,gem_url:this.gem_url,checksum:this.checksum}},imageContentsWithMimeType:function(){if(this.imageContents){const t={"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]},e=new TextEncoder().encode(globalThis.atob(this.imageContents.slice(0,6))).slice(1),a=Object.entries(t).find(([g,n])=>n.every((s,r)=>s===e[r]));if(a){const[g]=a;return`data:${g};base64,${this.imageContents}`}}},storeLink:function(){return this.hasStoreListing?new URL(`/cosmos_plugins/${this.id}`,this._storeUrl):null},hasStoreListing:function(){return!!this.id},hasDetails:function(){return this.hasStoreListing?!0:!!this.title&&!!this.description},isPluginInstalled:function(){return!!this.name}},created:async function(){const t="https://store.openc3.com";try{this._storeUrl=await this._api.get_setting(c)||t}catch{this._storeUrl=t}if(this.img_path)try{const e=new URLSearchParams({volume:"OPENC3_GEMS_VOLUME",scope:globalThis.openc3Scope}),{data:a}=await T.get(`/openc3-api/storage/download_file/${encodeURIComponent(this.img_path)}?${e}`);this.imageContents=a.contents}catch{}}},tt={mixins:[R],props:{modelValue:Boolean},emits:["triggerInstall","triggerUninstall","update:modelValue"],data(){return{showDialog:!1,showCopiedTooltip:!1}},computed:{isDialogOpen:{get:function(){return this.modelValue||this.showDialog},set:function(t){this.showDialog=t,this.$emit("update:modelValue",t)}}},methods:{openDialog:function(){this.isDialogOpen=!0},closeDialog:function(){this.isDialogOpen=!1},install:function(){this.$emit("triggerInstall",this.gemUrl)},uninstall:function(){this.$emit("triggerUninstall",this.gemUrl)},copyChecksum:function(){navigator.clipboard.writeText(this.checksum),this.showCopiedTooltip=!0,setTimeout(()=>{this.showCopiedTooltip=!1},1e3)}}},et=["textContent"],lt={key:0},it=["textContent"],nt={class:"mt-3 text-caption"},st={key:1,class:"font-italic"},ot={class:"mt-3 text-caption font-italic"};function at(t,e,a,g,n,s){const r=i("v-spacer"),h=i("v-btn"),p=i("v-tooltip"),k=i("v-toolbar"),b=i("v-badge"),S=i("v-card-subtitle"),V=i("v-img"),v=i("v-chip"),U=i("v-text-field"),_=i("v-card-text"),M=i("v-card-actions"),D=i("v-card"),B=i("v-dialog");return u(),x($,null,[G(t.$slots,"activator",{props:{onClick:s.openDialog}}),l(B,{modelValue:s.isDialogOpen,"onUpdate:modelValue":e[2]||(e[2]=P=>s.isDialogOpen=P),"max-width":"500"},{default:o(()=>[l(D,null,{default:o(()=>[l(k,{height:"24"},{default:o(()=>[l(r),d("span",{textContent:y(t.title)},null,8,et),l(r),l(p,{location:"top"},{activator:o(({props:P})=>[d("div",E(N(P)),[l(h,{href:t.storeLink,target:"_blank",icon:"mdi-open-in-new",size:"small",variant:"plain"},null,8,["href"])],16)]),default:o(()=>[e[3]||(e[3]=d("span",null," View at store.openc3.com ",-1))]),_:1}),l(h,{icon:"mdi-close-box",variant:"text",density:"compact",onClick:s.closeDialog},null,8,["onClick"])]),_:1}),l(S,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[d("div",null,y(t.author),1),l(r),t.verified?(u(),x("div",lt,[e[4]||(e[4]=w(" Verified ",-1)),l(b,{inline:"",icon:"mdi-shield-check",color:"success"})])):C("",!0)]),_:1}),l(_,null,{default:o(()=>[t.image_url?(u(),f(V,{key:0,src:t.image_url},null,8,["src"])):C("",!0),t.imageContentsWithMimeType?(u(),f(V,{key:1,src:t.imageContentsWithMimeType},null,8,["src"])):C("",!0),d("div",{class:"mt-3",textContent:y(t.description)},null,8,it),d("div",nt,[e[5]||(e[5]=w(" Keywords: ",-1)),t.keywords?(u(!0),x($,{key:0},L(t.keywords,P=>(u(),f(v,{key:P,variant:"flat",color:"primary",size:"x-small",class:"ml-1"},{default:o(()=>[w(y(P),1)]),_:2},1024))),128)):(u(),x("span",st," none "))]),d("div",ot,[e[6]||(e[6]=w(" Licenses: ",-1)),(u(!0),x($,null,L(t.licenses,P=>(u(),f(v,{key:P,size:"x-small",class:"ml-1"},{default:o(()=>[w(y(P),1)]),_:2},1024))),128))]),l(U,{modelValue:t.checksum,"onUpdate:modelValue":e[1]||(e[1]=P=>t.checksum=P),class:"mt-3",label:"SHA256",variant:"solo",density:"compact","hide-details":"",readonly:""},{append:o(()=>[l(p,{modelValue:n.showCopiedTooltip,"onUpdate:modelValue":e[0]||(e[0]=P=>n.showCopiedTooltip=P),location:"top","open-on-hover":!1},{activator:o(({props:P})=>[l(h,O(P,{icon:"mdi-content-copy",variant:"text",density:"compact",onClick:s.copyChecksum}),null,16,["onClick"])]),default:o(()=>[e[7]||(e[7]=d("span",null,"Copied!",-1))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),l(M,{class:"justify-start px-6"},{default:o(()=>[t.isPluginInstalled?(u(),f(h,{key:0,text:"Uninstall","append-icon":"mdi-puzzle-remove",variant:"outlined",color:"red",onClick:s.uninstall},null,8,["onClick"])):(u(),f(h,{key:1,text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",onClick:s.install},null,8,["onClick"])),t.repository?(u(),f(h,{key:2,text:"Repository","append-icon":"mdi-open-in-new",variant:"outlined",href:t.repository,target:"_blank"},null,8,["href"])):C("",!0),t.homepage?(u(),f(h,{key:3,text:"Homepage","append-icon":"mdi-open-in-new",variant:"outlined",href:t.homepage,target:"_blank"},null,8,["href"])):C("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}const Y=I(tt,[["render",at]]),rt={components:{PluginDetailsDialog:Y},mixins:[R],emits:["triggerInstall"],methods:{install:function(){this.$emit("triggerInstall",this.plugin)}}},ut=["textContent"];function dt(t,e,a,g,n,s){const r=i("v-spacer"),h=i("v-badge"),p=i("v-card-title"),k=i("v-card-subtitle"),b=i("v-img"),S=i("v-card-text"),V=i("v-btn"),v=i("v-card-actions"),U=i("v-card"),_=i("plugin-details-dialog");return u(),f(_,O(t.plugin,{onTriggerInstall:s.install}),{activator:o(({props:M})=>[l(U,O(M,{height:"350",class:"d-flex flex-column"}),{default:o(()=>[l(p,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[w(y(t.title)+" ",1),l(r),t.verified?(u(),f(h,{key:0,inline:"",icon:"mdi-shield-check",color:"success"})):C("",!0)]),_:1}),l(k,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[d("div",null,y(t.author),1)]),_:1}),l(S,null,{default:o(()=>[t.image_url?(u(),f(b,{key:0,src:t.image_url,"max-height":"160"},null,8,["src"])):C("",!0),d("div",{class:j({"truncate-description":!0,"truncate-2":!!t.image_url,"truncate-10":!t.image_url}),textContent:y(t.description)},null,10,ut)]),_:1}),l(r),l(v,{class:"flex-wrap"},{default:o(()=>[l(V,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",onClick:z(s.install,["stop"])},null,8,["onClick"])]),_:1})]),_:1},16)]),_:1},16,["onTriggerInstall"])}const ct=I(rt,[["render",dt],["__scopeId","data-v-83d9d7a7"]]),Q="store_url",X="DEFAULT",pt={mixins:[K],props:{modelValue:Boolean},emits:["update:modelValue","update:storeUrl"],data(){return{showDialog:!1,storeUrl:"",rules:{required:t=>!!t||"Required",url:t=>{try{new URL(t)}catch{return"Not a valid URL"}return!0}}}},watch:{modelValue:function(t){t&&(this.showDialog=t)},showDialog:function(t){t||this.$emit("update:modelValue",t)}},created:function(){this.loadSetting(Q,{scope:X})},methods:{save(){this.saveSetting(Q,this.storeUrl,{scope:X}),this.$emit("update:storeUrl",this.storeUrl),this.showDialog=!1},parseSetting:function(t){t?this.storeUrl=t:this.storeUrl="https://store.openc3.com"}}};function gt(t,e,a,g,n,s){const r=i("v-spacer"),h=i("v-toolbar"),p=i("v-alert"),k=i("v-text-field"),b=i("v-card-text"),S=i("v-btn"),V=i("v-card-actions"),v=i("v-card"),U=i("v-dialog");return u(),f(U,{modelValue:n.showDialog,"onUpdate:modelValue":e[4]||(e[4]=_=>n.showDialog=_),width:"600"},{default:o(()=>[l(h,{height:"24"},{default:o(()=>[l(r),e[5]||(e[5]=d("span",null,"Plugin Store Settings",-1)),l(r)]),_:1}),l(v,{class:"pa-3"},{default:o(()=>[l(p,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=_=>t.errorLoading=_),type:"error",closable:"",density:"compact"},{default:o(()=>[w(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),l(p,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=_=>t.errorSaving=_),type:"error",closable:"",density:"compact"},{default:o(()=>[w(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),l(p,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=_=>t.successSaving=_),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[w(" Saved! ",-1)])]),_:1},8,["modelValue"]),l(b,null,{default:o(()=>[l(k,{modelValue:n.storeUrl,"onUpdate:modelValue":e[3]||(e[3]=_=>n.storeUrl=_),label:"Store URL",rules:[n.rules.required,n.rules.url]},null,8,["modelValue","rules"])]),_:1}),l(V,null,{default:o(()=>[l(S,{color:"success",variant:"text",text:"Save","data-test":"save-store-settings-btn",onClick:s.save},null,8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ht=I(pt,[["render",gt]]),mt={components:{PluginCard:ct,PluginStoreSettingsDialog:ht},emits:["close","triggerInstall"],data(){return{api:new A,search:"",verifiedOnly:!1,showSettingsDialog:!1,plugins:[]}},computed:{filteredPlugins:function(){let t=this.plugins;return this.verifiedOnly&&(t=t.filter(e=>e.verified)),this.search.length&&(t=t.filter(e=>e.title.toLowerCase().includes(this.search.toLowerCase()))),t}},mounted:function(){this.fetchPluginStoreData()},methods:{fetchPluginStoreData:function(){T.get("/openc3-api/pluginstore").then(t=>{this.plugins=t.data})},close:function(){this.$emit("close")},install:function(t){this.$emit("triggerInstall",t),this.close()},openSettings:function(){this.showSettingsDialog=!0},updatePluginStore:function(){this.api.update_plugin_store().then(t=>{this.fetchPluginStoreData()})}}},ft={class:"d-flex justify-content-space-between"},vt={class:"d-inline-flex align-center w-100"};function wt(t,e,a,g,n,s){const r=i("v-spacer"),h=i("v-btn"),p=i("v-tooltip"),k=i("v-text-field"),b=i("v-switch"),S=i("plugin-card"),V=i("v-col"),v=i("v-row"),U=i("v-container"),_=i("v-sheet"),M=i("plugin-store-settings-dialog");return u(),x($,null,[l(_,{class:"pb-11 pt-8 px-8",height:"100%"},{default:o(()=>[d("div",ft,[e[4]||(e[4]=d("div",null,[d("div",{class:"text-h3 mb-3"},"OpenC3 Plugin Store"),d("div",{class:"text-subtitle-1"}," Browse plugins made by OpenC3 and the COSMOS community ")],-1)),l(r),l(h,{icon:"mdi-cog",variant:"text",onClick:s.openSettings},null,8,["onClick"]),l(p,{location:"top"},{activator:o(({props:D})=>[d("div",E(N(D)),[l(h,{href:"https://store.openc3.com",target:"_blank",icon:"mdi-open-in-new",variant:"text",class:"mx-2"})],16)]),default:o(()=>[e[3]||(e[3]=d("span",null," Open store.openc3.com ",-1))]),_:1}),l(h,{icon:"mdi-close",variant:"text",onClick:s.close},null,8,["onClick"])]),d("div",vt,[l(k,{modelValue:n.search,"onUpdate:modelValue":e[0]||(e[0]=D=>n.search=D),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"search-plugin-store"},null,8,["modelValue"]),l(b,{modelValue:n.verifiedOnly,"onUpdate:modelValue":e[1]||(e[1]=D=>n.verifiedOnly=D),label:"Verified only",density:"compact","hide-details":"",class:"ml-4"},null,8,["modelValue"])]),l(r),e[5]||(e[5]=d("span",{class:""}," Click on a plugin to see more information about it ",-1)),l(U,null,{default:o(()=>[l(v,null,{default:o(()=>[(u(!0),x($,null,L(s.filteredPlugins,D=>(u(),f(V,{key:D.id,cols:"4"},{default:o(()=>[l(S,O({ref_for:!0},D,{onTriggerInstall:s.install}),null,16,["onTriggerInstall"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),l(M,{modelValue:n.showSettingsDialog,"onUpdate:modelValue":e[2]||(e[2]=D=>n.showSettingsDialog=D),"onUpdate:storeUrl":s.updatePluginStore},null,8,["modelValue","onUpdate:storeUrl"])],64)}const xt=I(mt,[["render",wt]]),_t={components:{PluginDetailsDialog:Y},mixins:[R],props:{targets:{type:Array,default:()=>[]},isModified:Boolean},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+)?$/,"")}},methods:{openDetails:function(){this.hasDetails&&(this.showCard=!0)},downloadPlugin:function(){T.post(`/openc3-api/packages/${this.name}/download`).then(t=>{const e=window.atob(t.data.contents),a=new Uint8Array(e.length);for(let s=0;s<e.length;++s)a[s]=e.charCodeAt(s);const g=new Blob([a],{type:"application/zip"}),n=document.createElement("a");n.href=URL.createObjectURL(g),n.setAttribute("download",t.data.filename),n.click()})},downloadTarget:function(t){T.post(`/openc3-api/targets/${t}/download`).then(e=>{const a=window.atob(e.data.contents),g=new Uint8Array(a.length);for(let r=0;r<a.length;++r)g[r]=a.charCodeAt(r);const n=new Blob([g],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(n),s.setAttribute("download",e.data.filename),s.click()})},edit:function(){this.$emit("edit")},upgrade:function(){this.$emit("upgrade")},deletePrompt:function(){this.showCard=!1,this.$emit("delete")}}},yt=["textContent"],Pt={class:"text-subtitle-2 v-list-item-subtitle pl-0"},Ct={key:0},kt=["onClick","textContent"],bt=["textContent"];function Dt(t,e,a,g,n,s){var r;const h=i("v-img"),p=i("v-icon"),k=i("v-list-item"),b=i("v-list"),S=i("v-menu"),V=i("plugin-details-dialog");return u(),x($,null,[d("tr",{class:j({"cursor-pointer":t.hasDetails}),"data-test":"plugin-list-item"},[d("td",null,[t.imageContentsWithMimeType?(u(),f(h,{key:0,src:t.imageContentsWithMimeType,"max-height":"56","min-width":"56"},null,8,["src"])):C("",!0)]),d("td",null,[d("div",{class:"text-h6",textContent:y(s.displayTitle),onClick:e[0]||(e[0]=(...v)=>s.openDetails&&s.openDetails(...v))},null,8,yt),d("div",Pt,[a.isModified?(u(),x($,{key:0},[w(" * ")],64)):C("",!0),w(" "+y(t.name),1)]),(r=a.targets)!=null&&r.length?(u(),x("div",Ct,[(u(!0),x($,null,L(a.targets,(v,U)=>(u(),x("span",{key:U,class:"mr-2"},[v.modified?(u(),x("a",{key:0,style:{cursor:"pointer"},onClick:z(_=>s.downloadTarget(v.name),["prevent"]),textContent:y(v.name)},null,8,kt)):(u(),x("span",{key:1,textContent:y(v.name)},null,8,bt))]))),128))])):C("",!0)]),d("td",null,[l(S,null,{activator:o(({props:v})=>[l(p,O(v,{icon:"mdi-dots-horizontal","data-test":"plugin-actions"}),null,16)]),default:o(()=>[l(b,null,{default:o(()=>[l(k,{title:"Download","prepend-icon":"mdi-download","data-test":"download-plugin",onClick:s.downloadPlugin},null,8,["onClick"]),l(k,{title:"Edit Details","prepend-icon":"mdi-pencil","data-test":"edit-plugin",onClick:s.edit},null,8,["onClick"]),l(k,{title:"Upgrade","prepend-icon":"mdi-update","data-test":"upgrade-plugin",onClick:s.upgrade},null,8,["onClick"]),l(k,{title:"Delete","prepend-icon":"mdi-delete","data-test":"delete-plugin",onClick:s.deletePrompt},null,8,["onClick"])]),_:1})]),_:1})])],2),l(V,O({modelValue:n.showCard,"onUpdate:modelValue":e[1]||(e[1]=v=>n.showCard=v)},t.plugin,{onTriggerUninstall:s.deletePrompt}),null,16,["modelValue","onTriggerUninstall"])],64)}const Tt=I(_t,[["render",Dt]]),St={components:{PluginListItem:Tt},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}},computed:{shownPlugins(){const t=[],e=[];return this.plugins.forEach(a=>{const g=a.name.split("__")[0].split("-").slice(0,-1).join("-");this.defaultPlugins.includes(g)?e.push(a):t.push(a)}),t.sort((a,g)=>a.name<g.name?-1:a.name>g.name?1:0),this.showDefaultTools?(e.sort((a,g)=>a.name<g.name?-1:a.name>g.name?1:0),t.concat(e)):t}},methods:{showDetails:function(t){this.detailPlugin=t,this.showPluginDetails=!0},pluginTargets:function(t){let e=[];for(const a in this.targets)this.targets[a].plugin===t&&e.push(this.targets[a]);return e},isModified:function(t){return Object.entries(this.targets).some(([e,a])=>a.plugin===t&&a.modified===!0)},editPlugin:function(t){this.$emit("edit",t)},upgradePlugin(t){this.$emit("upgrade",t)},deletePrompt:function(t){this.$emit("delete",t)}}};function Vt(t,e,a,g,n,s){const r=i("plugin-list-item"),h=i("v-data-table");return u(),f(h,{headers:[],items:s.shownPlugins,density:"compact",class:"list","data-test":"plugin-list"},{item:o(({item:p})=>[l(r,O(p,{targets:s.pluginTargets(p.name),"is-modified":s.isModified(p.name),onEdit:()=>s.editPlugin(p.name),onUpgrade:()=>s.upgradePlugin(p.name),onDelete:()=>s.deletePrompt(p.name)}),null,16,["targets","is-modified","onEdit","onUpgrade","onDelete"])]),_:1},8,["items"])}const Ut=I(St,[["render",Vt],["__scopeId","data-v-94f3dd91"]]),$t={components:{PluginDialog:q,PluginList:Ut,PluginStore:xt,ModifiedPluginDialog:F,SimpleTextDialog:J},data(){return{pluginName:null,variables:{},storeId:null,pluginTxt:"",file:null,currentPlugin:null,pluginHashTmp:null,existingPluginTxt:null,progress:0,pluginDelete:!1,api:new A,plugins:[],targets:{},processes:{},alert:"",alertType:"success",showAlert:!1,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginStore:!1,showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,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-systemhealth","openc3-cosmos-tool-logexplorer","openc3-enterprise-tool-base","openc3-tool-base"]}},watch:{showPluginDialog:function(t,e){t===!1&&(this.file=null,this.$refs.fileInput.value=null)}},created(){this.api.update_plugin_store()},mounted(){this.update(),this.updateProcesses();const t=this;window.onpopstate=function(){t.showPluginStore&&(t.showPluginStore=!1,history.go(1))}},methods:{resetControlState:function(){this.pluginName=null,this.variables={},this.storeId=null,this.pluginTxt="",this.file=null,this.currentPlugin=null,this.pluginHashTmp=null,this.existingPluginTxt=null,this.progress=0,this.pluginDelete=!1},pluginTargets:function(t){let e=[];for(const a in this.targets)this.targets[a].plugin===t&&e.push(this.targets[a]);return e},isModified:function(t){return Object.entries(this.targets).some(([e,a])=>a.plugin===t&&a.modified===!0)},showOutput:function(t){this.processOutput=t.output,this.showProcessOutput=!0},update:function(){T.get("/openc3-api/plugins/all").then(t=>{this.plugins=Object.entries(t.data).map(([e,a])=>a)}),T.get("/openc3-api/targets_modified").then(t=>{this.targets=t.data})},updateProcesses:function(){T.get("openc3-api/process_status/plugin_?substr=true").then(t=>{this.processes=t.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},5e3)})},formatDate(t){return H(W(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(t=null,e=null){const a=t?"put":"post",g=t?`/openc3-api/plugins/${t}`:"/openc3-api/plugins",n=new FormData;e===null?n.append("plugin",this.file,this.file.name):n.append("store_id",e.id);let s=this;T[a](g,{data:n,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(r){let h=Math.round(r.loaded*100/r.total);s.progress=h}}).then(r=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let h=null;r.data.existing_plugin_txt_lines!==void 0&&(h=r.data.existing_plugin_txt_lines.join(`
1
+ System.register(["./main-b8fe7a5cb2fa4e35ed6a.js","vue","single-spa","./SimpleTextDialog-CXIEKlX0-6b68d042e80fb3611e0b.js","./settings-CHPWZcnU-934e5e82b5a20cfda7e6.js","vue-router","vuex","vuetify"],function(Z,Ft){"use strict";var I,F,H,T,q,W,A,i,x,u,l,f,C,o,d,w,$,L,y,j,O,E,N,z,K,X,G;return{setters:[c=>{I=c.d,F=c.U,H=c.Y,T=c.F,q=c.p,W=c.l,A=c.B},c=>{i=c.resolveComponent,x=c.createElementBlock,u=c.openBlock,l=c.createVNode,f=c.createBlock,C=c.createCommentVNode,o=c.withCtx,d=c.createElementVNode,w=c.createTextVNode,$=c.Fragment,L=c.renderList,y=c.toDisplayString,j=c.normalizeClass,O=c.mergeProps,E=c.normalizeProps,N=c.guardReactiveProps,z=c.withModifiers,K=c.renderSlot},null,c=>{X=c.E},c=>{G=c.n},null,null,null],execute:function(){const c="store_url",B={props:{id:Number,name:String,title:String,author:String,description:String,keywords:Array,img_path:String,image_url:String,licenses:Array,verified:Boolean,homepage:String,repository:String,gem_url:String,checksum:String},data:function(){return{_api:new A,_storeUrl:"",imageContents:null}},computed:{plugin:function(){return{id:this.id,name:this.name,title:this.title,author:this.author,description:this.description,keywords:this.keywords,img_path:this.img_path,image_url:this.image_url,licenses:this.licenses,verified:this.verified,homepage:this.homepage,repository:this.repository,gem_url:this.gem_url,checksum:this.checksum}},imageContentsWithMimeType:function(){if(this.imageContents){const t={"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]},e=new TextEncoder().encode(globalThis.atob(this.imageContents.slice(0,6))).slice(1),a=Object.entries(t).find(([g,n])=>n.every((s,r)=>s===e[r]));if(a){const[g]=a;return`data:${g};base64,${this.imageContents}`}}},storeLink:function(){return this.hasStoreListing?new URL(`/cosmos_plugins/${this.id}`,this._storeUrl):null},hasStoreListing:function(){return!!this.id},hasDetails:function(){return this.hasStoreListing?!0:!!this.title&&!!this.description},isPluginInstalled:function(){return!!this.name}},created:async function(){const t="https://store.openc3.com";try{this._storeUrl=await this._api.get_setting(c)||t}catch{this._storeUrl=t}if(this.img_path)try{const e=new URLSearchParams({volume:"OPENC3_GEMS_VOLUME",scope:globalThis.openc3Scope}),{data:a}=await T.get(`/openc3-api/storage/download_file/${encodeURIComponent(this.img_path)}?${e}`);this.imageContents=a.contents}catch{}}},tt={mixins:[B],props:{modelValue:Boolean},emits:["triggerInstall","triggerUninstall","update:modelValue"],data(){return{showDialog:!1,showCopiedTooltip:!1}},computed:{isDialogOpen:{get:function(){return this.modelValue||this.showDialog},set:function(t){this.showDialog=t,this.$emit("update:modelValue",t)}}},methods:{openDialog:function(){this.isDialogOpen=!0},closeDialog:function(){this.isDialogOpen=!1},install:function(){this.$emit("triggerInstall",this.gemUrl)},uninstall:function(){this.$emit("triggerUninstall",this.gemUrl)},copyChecksum:function(){navigator.clipboard.writeText(this.checksum),this.showCopiedTooltip=!0,setTimeout(()=>{this.showCopiedTooltip=!1},1e3)}}},et=["textContent"],lt={key:0},it=["textContent"],nt={class:"mt-3 text-caption"},st={key:1,class:"font-italic"},ot={class:"mt-3 text-caption font-italic"};function at(t,e,a,g,n,s){const r=i("v-spacer"),h=i("v-btn"),p=i("v-tooltip"),k=i("v-toolbar"),b=i("v-badge"),S=i("v-card-subtitle"),V=i("v-img"),v=i("v-chip"),U=i("v-text-field"),_=i("v-card-text"),M=i("v-card-actions"),D=i("v-card"),R=i("v-dialog");return u(),x($,null,[K(t.$slots,"activator",{props:{onClick:s.openDialog}}),l(R,{modelValue:s.isDialogOpen,"onUpdate:modelValue":e[2]||(e[2]=P=>s.isDialogOpen=P),"max-width":"500"},{default:o(()=>[l(D,null,{default:o(()=>[l(k,{height:"24"},{default:o(()=>[l(r),d("span",{textContent:y(t.title)},null,8,et),l(r),l(p,{location:"top"},{activator:o(({props:P})=>[d("div",E(N(P)),[l(h,{href:t.storeLink,target:"_blank",icon:"mdi-open-in-new",size:"small",variant:"plain"},null,8,["href"])],16)]),default:o(()=>[e[3]||(e[3]=d("span",null," View at store.openc3.com ",-1))]),_:1}),l(h,{icon:"mdi-close-box",variant:"text",density:"compact",onClick:s.closeDialog},null,8,["onClick"])]),_:1}),l(S,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[d("div",null,y(t.author),1),l(r),t.verified?(u(),x("div",lt,[e[4]||(e[4]=w(" Verified ",-1)),l(b,{inline:"",icon:"mdi-shield-check",color:"success"})])):C("",!0)]),_:1}),l(_,null,{default:o(()=>[t.image_url?(u(),f(V,{key:0,src:t.image_url},null,8,["src"])):C("",!0),t.imageContentsWithMimeType?(u(),f(V,{key:1,src:t.imageContentsWithMimeType},null,8,["src"])):C("",!0),d("div",{class:"mt-3",textContent:y(t.description)},null,8,it),d("div",nt,[e[5]||(e[5]=w(" Keywords: ",-1)),t.keywords?(u(!0),x($,{key:0},L(t.keywords,P=>(u(),f(v,{key:P,variant:"flat",color:"primary",size:"x-small",class:"ml-1"},{default:o(()=>[w(y(P),1)]),_:2},1024))),128)):(u(),x("span",st," none "))]),d("div",ot,[e[6]||(e[6]=w(" Licenses: ",-1)),(u(!0),x($,null,L(t.licenses,P=>(u(),f(v,{key:P,size:"x-small",class:"ml-1"},{default:o(()=>[w(y(P),1)]),_:2},1024))),128))]),l(U,{modelValue:t.checksum,"onUpdate:modelValue":e[1]||(e[1]=P=>t.checksum=P),class:"mt-3",label:"SHA256",variant:"solo",density:"compact","hide-details":"",readonly:""},{append:o(()=>[l(p,{modelValue:n.showCopiedTooltip,"onUpdate:modelValue":e[0]||(e[0]=P=>n.showCopiedTooltip=P),location:"top","open-on-hover":!1},{activator:o(({props:P})=>[l(h,O(P,{icon:"mdi-content-copy",variant:"text",density:"compact",onClick:s.copyChecksum}),null,16,["onClick"])]),default:o(()=>[e[7]||(e[7]=d("span",null,"Copied!",-1))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),l(M,{class:"justify-start px-6"},{default:o(()=>[t.isPluginInstalled?(u(),f(h,{key:0,text:"Uninstall","append-icon":"mdi-puzzle-remove",variant:"outlined",color:"red",onClick:s.uninstall},null,8,["onClick"])):(u(),f(h,{key:1,text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",onClick:s.install},null,8,["onClick"])),t.repository?(u(),f(h,{key:2,text:"Repository","append-icon":"mdi-open-in-new",variant:"outlined",href:t.repository,target:"_blank"},null,8,["href"])):C("",!0),t.homepage?(u(),f(h,{key:3,text:"Homepage","append-icon":"mdi-open-in-new",variant:"outlined",href:t.homepage,target:"_blank"},null,8,["href"])):C("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}const J=I(tt,[["render",at]]),rt={components:{PluginDetailsDialog:J},mixins:[B],emits:["triggerInstall"],methods:{install:function(){this.$emit("triggerInstall",this.plugin)}}},ut=["textContent"];function dt(t,e,a,g,n,s){const r=i("v-spacer"),h=i("v-badge"),p=i("v-card-title"),k=i("v-card-subtitle"),b=i("v-img"),S=i("v-card-text"),V=i("v-btn"),v=i("v-card-actions"),U=i("v-card"),_=i("plugin-details-dialog");return u(),f(_,O(t.plugin,{onTriggerInstall:s.install}),{activator:o(({props:M})=>[l(U,O(M,{height:"350",class:"d-flex flex-column"}),{default:o(()=>[l(p,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[w(y(t.title)+" ",1),l(r),t.verified?(u(),f(h,{key:0,inline:"",icon:"mdi-shield-check",color:"success"})):C("",!0)]),_:1}),l(k,{class:"d-flex align-center justify-content-space-between"},{default:o(()=>[d("div",null,y(t.author),1)]),_:1}),l(S,null,{default:o(()=>[t.image_url?(u(),f(b,{key:0,src:t.image_url,"max-height":"160"},null,8,["src"])):C("",!0),d("div",{class:j({"truncate-description":!0,"truncate-2":!!t.image_url,"truncate-10":!t.image_url}),textContent:y(t.description)},null,10,ut)]),_:1}),l(r),l(v,{class:"flex-wrap"},{default:o(()=>[l(V,{text:"Install","append-icon":"mdi-puzzle-plus",variant:"elevated",onClick:z(s.install,["stop"])},null,8,["onClick"])]),_:1})]),_:1},16)]),_:1},16,["onTriggerInstall"])}const ct=I(rt,[["render",dt],["__scopeId","data-v-83d9d7a7"]]),Y="store_url",Q="DEFAULT",pt={mixins:[G],props:{modelValue:Boolean},emits:["update:modelValue","update:storeUrl"],data(){return{showDialog:!1,storeUrl:"",rules:{required:t=>!!t||"Required",url:t=>{try{new URL(t)}catch{return"Not a valid URL"}return!0}}}},watch:{modelValue:function(t){t&&(this.showDialog=t)},showDialog:function(t){t||this.$emit("update:modelValue",t)}},created:function(){this.loadSetting(Y,{scope:Q})},methods:{save(){this.saveSetting(Y,this.storeUrl,{scope:Q}),this.$emit("update:storeUrl",this.storeUrl),this.showDialog=!1},parseSetting:function(t){t?this.storeUrl=t:this.storeUrl="https://store.openc3.com"}}};function gt(t,e,a,g,n,s){const r=i("v-spacer"),h=i("v-toolbar"),p=i("v-alert"),k=i("v-text-field"),b=i("v-card-text"),S=i("v-btn"),V=i("v-card-actions"),v=i("v-card"),U=i("v-dialog");return u(),f(U,{modelValue:n.showDialog,"onUpdate:modelValue":e[4]||(e[4]=_=>n.showDialog=_),width:"600"},{default:o(()=>[l(h,{height:"24"},{default:o(()=>[l(r),e[5]||(e[5]=d("span",null,"Plugin Store Settings",-1)),l(r)]),_:1}),l(v,{class:"pa-3"},{default:o(()=>[l(p,{modelValue:t.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=_=>t.errorLoading=_),type:"error",closable:"",density:"compact"},{default:o(()=>[w(" Error loading previous configuration due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),l(p,{modelValue:t.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=_=>t.errorSaving=_),type:"error",closable:"",density:"compact"},{default:o(()=>[w(" Error saving due to "+y(t.errorText),1)]),_:1},8,["modelValue"]),l(p,{modelValue:t.successSaving,"onUpdate:modelValue":e[2]||(e[2]=_=>t.successSaving=_),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[w(" Saved! ",-1)])]),_:1},8,["modelValue"]),l(b,null,{default:o(()=>[l(k,{modelValue:n.storeUrl,"onUpdate:modelValue":e[3]||(e[3]=_=>n.storeUrl=_),label:"Store URL",rules:[n.rules.required,n.rules.url]},null,8,["modelValue","rules"])]),_:1}),l(V,null,{default:o(()=>[l(S,{color:"success",variant:"text",text:"Save","data-test":"save-store-settings-btn",onClick:s.save},null,8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ht=I(pt,[["render",gt]]),mt={components:{PluginCard:ct,PluginStoreSettingsDialog:ht},emits:["close","triggerInstall"],data(){return{api:new A,search:"",verifiedOnly:!1,showSettingsDialog:!1,plugins:[]}},computed:{filteredPlugins:function(){let t=this.plugins;return this.verifiedOnly&&(t=t.filter(e=>e.verified)),this.search.length&&(t=t.filter(e=>e.title.toLowerCase().includes(this.search.toLowerCase()))),t}},mounted:function(){this.fetchPluginStoreData()},methods:{fetchPluginStoreData:function(){T.get("/openc3-api/pluginstore").then(t=>{this.plugins=t.data})},close:function(){this.$emit("close")},install:function(t){this.$emit("triggerInstall",t),this.close()},openSettings:function(){this.showSettingsDialog=!0},updatePluginStore:function(){this.api.update_plugin_store().then(t=>{this.fetchPluginStoreData()})}}},ft={class:"d-flex justify-content-space-between"},vt={class:"d-inline-flex align-center w-100"};function wt(t,e,a,g,n,s){const r=i("v-spacer"),h=i("v-btn"),p=i("v-tooltip"),k=i("v-text-field"),b=i("v-switch"),S=i("plugin-card"),V=i("v-col"),v=i("v-row"),U=i("v-container"),_=i("v-sheet"),M=i("plugin-store-settings-dialog");return u(),x($,null,[l(_,{class:"pb-11 pt-8 px-8",height:"100%"},{default:o(()=>[d("div",ft,[e[4]||(e[4]=d("div",null,[d("div",{class:"text-h3 mb-3"},"OpenC3 Plugin Store"),d("div",{class:"text-subtitle-1"}," Browse plugins made by OpenC3 and the COSMOS community ")],-1)),l(r),l(h,{icon:"mdi-cog",variant:"text",onClick:s.openSettings},null,8,["onClick"]),l(p,{location:"top"},{activator:o(({props:D})=>[d("div",E(N(D)),[l(h,{href:"https://store.openc3.com",target:"_blank",icon:"mdi-open-in-new",variant:"text",class:"mx-2"})],16)]),default:o(()=>[e[3]||(e[3]=d("span",null," Open store.openc3.com ",-1))]),_:1}),l(h,{icon:"mdi-close",variant:"text",onClick:s.close},null,8,["onClick"])]),d("div",vt,[l(k,{modelValue:n.search,"onUpdate:modelValue":e[0]||(e[0]=D=>n.search=D),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"search-plugin-store"},null,8,["modelValue"]),l(b,{modelValue:n.verifiedOnly,"onUpdate:modelValue":e[1]||(e[1]=D=>n.verifiedOnly=D),label:"Verified only",density:"compact","hide-details":"",class:"ml-4"},null,8,["modelValue"])]),l(r),e[5]||(e[5]=d("span",{class:""}," Click on a plugin to see more information about it ",-1)),l(U,null,{default:o(()=>[l(v,null,{default:o(()=>[(u(!0),x($,null,L(s.filteredPlugins,D=>(u(),f(V,{key:D.id,cols:"4"},{default:o(()=>[l(S,O({ref_for:!0},D,{onTriggerInstall:s.install}),null,16,["onTriggerInstall"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),l(M,{modelValue:n.showSettingsDialog,"onUpdate:modelValue":e[2]||(e[2]=D=>n.showSettingsDialog=D),"onUpdate:storeUrl":s.updatePluginStore},null,8,["modelValue","onUpdate:storeUrl"])],64)}const xt=I(mt,[["render",wt]]),_t={components:{PluginDetailsDialog:J},mixins:[B],props:{targets:{type:Array,default:()=>[]},isModified:Boolean},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+)?$/,"")}},methods:{openDetails:function(){this.hasDetails&&(this.showCard=!0)},downloadPlugin:function(){T.post(`/openc3-api/packages/${this.name}/download`).then(t=>{const e=window.atob(t.data.contents),a=new Uint8Array(e.length);for(let s=0;s<e.length;++s)a[s]=e.charCodeAt(s);const g=new Blob([a],{type:"application/zip"}),n=document.createElement("a");n.href=URL.createObjectURL(g),n.setAttribute("download",t.data.filename),n.click()})},downloadTarget:function(t){T.post(`/openc3-api/targets/${t}/download`).then(e=>{const a=window.atob(e.data.contents),g=new Uint8Array(a.length);for(let r=0;r<a.length;++r)g[r]=a.charCodeAt(r);const n=new Blob([g],{type:"application/zip"}),s=document.createElement("a");s.href=URL.createObjectURL(n),s.setAttribute("download",e.data.filename),s.click()})},edit:function(){this.$emit("edit")},upgrade:function(){this.$emit("upgrade")},deletePrompt:function(){this.showCard=!1,this.$emit("delete")}}},yt=["textContent"],Pt={class:"text-subtitle-2 v-list-item-subtitle pl-0"},Ct={key:0},kt=["onClick","textContent"],bt=["textContent"];function Dt(t,e,a,g,n,s){var r;const h=i("v-img"),p=i("v-icon"),k=i("v-list-item"),b=i("v-list"),S=i("v-menu"),V=i("plugin-details-dialog");return u(),x($,null,[d("tr",{class:j({"cursor-pointer":t.hasDetails}),"data-test":"plugin-list-item"},[d("td",null,[t.imageContentsWithMimeType?(u(),f(h,{key:0,src:t.imageContentsWithMimeType,"max-height":"56","min-width":"56"},null,8,["src"])):C("",!0)]),d("td",null,[d("div",{class:"text-h6",onClick:e[0]||(e[0]=(...v)=>s.openDetails&&s.openDetails(...v)),textContent:y(s.displayTitle)},null,8,yt),d("div",Pt,[a.isModified?(u(),x($,{key:0},[w(" * ")],64)):C("",!0),w(" "+y(t.name),1)]),(r=a.targets)!=null&&r.length?(u(),x("div",Ct,[(u(!0),x($,null,L(a.targets,(v,U)=>(u(),x("span",{key:U,class:"mr-2"},[v.modified?(u(),x("a",{key:0,style:{cursor:"pointer"},onClick:z(_=>s.downloadTarget(v.name),["prevent"]),textContent:y(v.name)},null,8,kt)):(u(),x("span",{key:1,textContent:y(v.name)},null,8,bt))]))),128))])):C("",!0)]),d("td",null,[l(S,null,{activator:o(({props:v})=>[l(p,O(v,{icon:"mdi-dots-horizontal","data-test":"plugin-actions"}),null,16)]),default:o(()=>[l(b,null,{default:o(()=>[l(k,{title:"Download","prepend-icon":"mdi-download","data-test":"download-plugin",onClick:s.downloadPlugin},null,8,["onClick"]),l(k,{title:"Edit Details","prepend-icon":"mdi-pencil","data-test":"edit-plugin",onClick:s.edit},null,8,["onClick"]),l(k,{title:"Upgrade","prepend-icon":"mdi-update","data-test":"upgrade-plugin",onClick:s.upgrade},null,8,["onClick"]),l(k,{title:"Delete","prepend-icon":"mdi-delete","data-test":"delete-plugin",onClick:s.deletePrompt},null,8,["onClick"])]),_:1})]),_:1})])],2),l(V,O({modelValue:n.showCard,"onUpdate:modelValue":e[1]||(e[1]=v=>n.showCard=v)},t.plugin,{onTriggerUninstall:s.deletePrompt}),null,16,["modelValue","onTriggerUninstall"])],64)}const Tt=I(_t,[["render",Dt]]),St={components:{PluginListItem:Tt},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}},computed:{shownPlugins(){const t=[],e=[];return this.plugins.forEach(a=>{const g=a.name.split("__")[0].split("-").slice(0,-1).join("-");this.defaultPlugins.includes(g)?e.push(a):t.push(a)}),t.sort((a,g)=>a.name<g.name?-1:a.name>g.name?1:0),this.showDefaultTools?(e.sort((a,g)=>a.name<g.name?-1:a.name>g.name?1:0),t.concat(e)):t}},methods:{showDetails:function(t){this.detailPlugin=t,this.showPluginDetails=!0},pluginTargets:function(t){let e=[];for(const a in this.targets)this.targets[a].plugin===t&&e.push(this.targets[a]);return e},isModified:function(t){return Object.entries(this.targets).some(([e,a])=>a.plugin===t&&a.modified===!0)},editPlugin:function(t){this.$emit("edit",t)},upgradePlugin(t){this.$emit("upgrade",t)},deletePrompt:function(t){this.$emit("delete",t)}}};function Vt(t,e,a,g,n,s){const r=i("plugin-list-item"),h=i("v-data-table");return u(),f(h,{headers:[],items:s.shownPlugins,density:"compact",class:"list","data-test":"plugin-list"},{item:o(({item:p})=>[l(r,O(p,{targets:s.pluginTargets(p.name),"is-modified":s.isModified(p.name),onEdit:()=>s.editPlugin(p.name),onUpgrade:()=>s.upgradePlugin(p.name),onDelete:()=>s.deletePrompt(p.name)}),null,16,["targets","is-modified","onEdit","onUpgrade","onDelete"])]),_:1},8,["items"])}const Ut=I(St,[["render",Vt],["__scopeId","data-v-774343d7"]]),$t={components:{PluginDialog:H,PluginList:Ut,PluginStore:xt,ModifiedPluginDialog:F,SimpleTextDialog:X},data(){return{pluginName:null,variables:{},storeId:null,pluginTxt:"",file:null,currentPlugin:null,pluginHashTmp:null,existingPluginTxt:null,progress:0,pluginDelete:!1,api:new A,plugins:[],targets:{},processes:{},alert:"",alertType:"success",showAlert:!1,showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",showPluginStore:!1,showPluginDialog:!1,showModifiedPluginDialog:!1,showDefaultTools:!1,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-systemhealth","openc3-cosmos-tool-logexplorer","openc3-enterprise-tool-base","openc3-tool-base"]}},watch:{showPluginDialog:function(t,e){t===!1&&(this.file=null,this.$refs.fileInput.value=null)}},created(){this.api.update_plugin_store()},mounted(){this.update(),this.updateProcesses();const t=this;window.onpopstate=function(){t.showPluginStore&&(t.showPluginStore=!1,history.go(1))}},methods:{resetControlState:function(){this.pluginName=null,this.variables={},this.storeId=null,this.pluginTxt="",this.file=null,this.currentPlugin=null,this.pluginHashTmp=null,this.existingPluginTxt=null,this.progress=0,this.pluginDelete=!1},pluginTargets:function(t){let e=[];for(const a in this.targets)this.targets[a].plugin===t&&e.push(this.targets[a]);return e},isModified:function(t){return Object.entries(this.targets).some(([e,a])=>a.plugin===t&&a.modified===!0)},showOutput:function(t){this.processOutput=t.output,this.showProcessOutput=!0},update:function(){T.get("/openc3-api/plugins/all").then(t=>{this.plugins=Object.entries(t.data).map(([e,a])=>a)}),T.get("/openc3-api/targets_modified").then(t=>{this.targets=t.data})},updateProcesses:function(){T.get("openc3-api/process_status/plugin_?substr=true").then(t=>{this.processes=t.data,Object.keys(this.processes).length>0&&setTimeout(()=>{this.updateProcesses(),this.update()},5e3)})},formatDate(t){return q(W(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(t=null,e=null){const a=t?"put":"post",g=t?`/openc3-api/plugins/${t}`:"/openc3-api/plugins",n=new FormData;e===null?n.append("plugin",this.file,this.file.name):n.append("store_id",e.id);let s=this;T[a](g,{data:n,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(r){let h=Math.round(r.loaded*100/r.total);s.progress=h}}).then(r=>{this.progress=100,this.alert="Uploaded file",this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update();let h=null;r.data.existing_plugin_txt_lines!==void 0&&(h=r.data.existing_plugin_txt_lines.join(`
2
2
  `));let p=r.data.plugin_txt_lines.join(`
3
3
  `);this.pluginName=r.data.name,this.variables=r.data.variables,this.storeId=r.data.store_id,this.pluginTxt=p,this.existingPluginTxt=h,this.showPluginDialog=!0,this.file=void 0}).catch(r=>{this.currentPlugin=null,this.file=void 0})},pluginCallback:function(t){this.showPluginDialog=!1,this.currentPlugin!==null&&(t.name=this.currentPlugin),this.pluginHashTmp=t,this.isModified(this.currentPlugin)?(this.pluginDelete=!1,this.showModifiedPluginDialog=!0):this.pluginInstall()},modifiedSubmit:async function(t){if(t===!0)for(let e of this.pluginTargets(this.currentPlugin))e.modified==!0&&await T.post(`/openc3-api/targets/${e.name}/delete_modified`);this.pluginDelete?this.deletePlugin(this.currentPlugin):this.pluginInstall()},pluginInstall:function(){T.post(`/openc3-api/plugins/install/${this.pluginName}`,{data:{plugin_hash:JSON.stringify(this.pluginHashTmp)}}).then(t=>{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.storeId=null,setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3),this.update()})},editPlugin:function(t){this.resetControlState(),T.get(`/openc3-api/plugins/${t}`).then(e=>{let a=null;e.data.existing_plugin_txt_lines!==void 0&&(a=e.data.existing_plugin_txt_lines.join(`
4
4
  `)),this.pluginName=e.data.name,this.variables=e.data.variables,this.pluginTxt=e.data.plugin_txt_lines.join(`
5
- `),this.existingPluginTxt=a,this.showPluginDialog=!0})},deletePrompt:function(t){this.resetControlState(),this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>{this.isModified(t)?(this.currentPlugin=t,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(t)})},deletePlugin:function(t){this.alert=`Removing plugin ${t} ...`,this.alertType="success",this.showAlert=!0,T.delete(`/openc3-api/plugins/${t}`).then(e=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}),this.update()},upgradePlugin(t){this.resetControlState(),this.currentPlugin=t,this.$refs.fileInput.click()},selectFile(){this.resetControlState(),this.$refs.fileInput.click()},fileChange(t){const e=t.target.files;if(e.length>0)if(this.file=e[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(r=>r.includes(".")),n=a.slice(0,g).join("-");a=this.currentPlugin.split("-"),g=a.findIndex(r=>r.includes("."));let s=a.slice(0,g).join("-");n!==s?this.$dialog.confirm(`The new gem base name ${n} doesn't match the existing ${s}. 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}}},Ot={class:"mt-2"},It=["textContent"],Mt=["textContent"];function Lt(t,e,a,g,n,s){const r=i("v-btn"),h=i("v-icon"),p=i("v-col"),k=i("rux-progress"),b=i("v-row"),S=i("v-divider"),V=i("v-alert"),v=i("v-list-item-title"),U=i("v-list-item-subtitle"),_=i("v-progress-circular"),M=i("v-tooltip"),D=i("v-list-item"),B=i("v-list"),P=i("v-switch"),At=i("plugin-list"),jt=i("plugin-dialog"),Et=i("modified-plugin-dialog"),Nt=i("simple-text-dialog"),zt=i("plugin-store"),Rt=i("v-bottom-sheet");return u(),x("div",null,[l(b,{"no-gutters":"",align:"center",class:"px-2"},{default:o(()=>[l(p,{class:"pa-2 mt-2"},{default:o(()=>[l(r,{"append-icon":"mdi-store",onClick:s.openStore},{default:o(()=>[...e[9]||(e[9]=[w(" Browse Plugins ",-1)])]),_:1},8,["onClick"]),l(r,{"append-icon":"mdi-paperclip",class:"mx-2",onClick:s.selectFile},{default:o(()=>[...e[10]||(e[10]=[w(" Install From File ",-1)])]),_:1},8,["onClick"]),d("input",{ref:"fileInput",accept:".gem",style:{display:"none"},type:"file",onChange:e[0]||(e[0]=(...m)=>s.fileChange&&s.fileChange(...m))},null,544),e[14]||(e[14]=d("br",null,null,-1)),d("p",Ot,[e[12]||(e[12]=w(" Note: Use ",-1)),l(h,null,{default:o(()=>[...e[11]||(e[11]=[w(" mdi-dots-horizontal ",-1)])]),_:1}),e[13]||(e[13]=w(" in the Installed Plugins list to upgrade existing plugins ",-1))])]),_:1}),l(p,{class:"ml-4 mr-2",cols:"4"},{default:o(()=>[l(k,{value:n.progress},null,8,["value"])]),_:1})]),_:1}),l(b,{"no-gutters":"",class:"px-2"},{default:o(()=>[l(p,{align:"right",class:"mr-2"},{default:o(()=>[...e[15]||(e[15]=[d("div",null,"* indicates a modified plugin",-1),d("div",null,"Click target link to download modifications",-1)])]),_:1})]),_:1}),l(S),l(V,{modelValue:n.showAlert,"onUpdate:modelValue":e[1]||(e[1]=m=>n.showAlert=m),closable:"",type:n.alertType,text:n.alert,"data-test":"plugin-alert"},null,8,["modelValue","type","text"]),Object.keys(n.processes).length>0?(u(),f(B,{key:0,class:"list","data-test":"process-list"},{default:o(()=>[l(b,{"no-gutters":"",class:"px-4"},{default:o(()=>[l(p,{class:"text-h5"},{default:o(()=>[...e[16]||(e[16]=[w(" Process List ",-1)])]),_:1}),l(p,{align:"right"},{default:o(()=>[...e[17]||(e[17]=[d("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(u(!0),x($,null,L(n.processes,m=>(u(),x("div",{key:m.name},[l(D,null,{append:o(()=>[m.state==="Running"?(u(),f(_,{key:0,indeterminate:"",color:"primary"})):(u(),f(M,{key:1,"open-delay":600,location:"top"},{activator:o(({props:Bt})=>[l(r,O({ref_for:!0},Bt,{icon:"mdi-eye",variant:"text","aria-label":"Show Output","data-test":"show-output",onClick:Ht=>s.showOutput(m)}),null,16,["onClick"])]),default:o(()=>[e[18]||(e[18]=d("span",null," Show Output ",-1))]),_:2},1024))]),default:o(()=>[l(v,null,{default:o(()=>[d("span",{class:j(m.state.toLowerCase()),textContent:y(`Processing ${m.process_type}: ${m.detail} - ${m.state}`)},null,10,It)]),_:2},1024),l(U,null,{default:o(()=>[d("span",{textContent:y(" Updated At: "+s.formatDate(m.updated_at))},null,8,Mt)]),_:2},1024)]),_:2},1024),l(S)]))),128))]),_:1})):C("",!0),l(b,{"no-gutters":"",class:"px-4"},{default:o(()=>[l(p,{class:"text-h5"},{default:o(()=>[...e[19]||(e[19]=[w(" Installed Plugins ",-1)])]),_:1}),l(p,{class:"v-col-auto"},{default:o(()=>[l(P,{modelValue:n.showDefaultTools,"onUpdate:modelValue":e[2]||(e[2]=m=>n.showDefaultTools=m),label:"Show Default Tools",density:"compact","hide-details":"","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1})]),_:1}),l(At,{plugins:n.plugins,targets:n.targets,"show-default-tools":n.showDefaultTools,"default-plugins":n.defaultPlugins,onEdit:s.editPlugin,onUpgrade:s.upgradePlugin,onDelete:s.deletePrompt},null,8,["plugins","targets","show-default-tools","default-plugins","onEdit","onUpgrade","onDelete"]),n.showPluginDialog?(u(),f(jt,{key:1,modelValue:n.showPluginDialog,"onUpdate:modelValue":e[3]||(e[3]=m=>n.showPluginDialog=m),"plugin-name":n.pluginName,variables:n.variables,"plugin-txt":n.pluginTxt,"existing-plugin-txt":n.existingPluginTxt,"store-id":n.storeId,onCallback:s.pluginCallback},null,8,["modelValue","plugin-name","variables","plugin-txt","existing-plugin-txt","store-id","onCallback"])):C("",!0),n.showModifiedPluginDialog?(u(),f(Et,{key:2,modelValue:n.showModifiedPluginDialog,"onUpdate:modelValue":e[4]||(e[4]=m=>n.showModifiedPluginDialog=m),"plugin-name":n.currentPlugin,targets:s.pluginTargets(n.currentPlugin),"plugin-delete":n.pluginDelete,onSubmit:s.modifiedSubmit},null,8,["modelValue","plugin-name","targets","plugin-delete","onSubmit"])):C("",!0),l(Nt,{modelValue:n.showProcessOutput,"onUpdate:modelValue":e[5]||(e[5]=m=>n.showProcessOutput=m),title:"Process Output",text:n.processOutput},null,8,["modelValue","text"]),l(Rt,{modelValue:n.showPluginStore,"onUpdate:modelValue":e[8]||(e[8]=m=>n.showPluginStore=m),fullscreen:""},{default:o(()=>[l(zt,{onClose:e[6]||(e[6]=()=>n.showPluginStore=!1),onTriggerInstall:e[7]||(e[7]=m=>s.upload(null,m))})]),_:1},8,["modelValue"])])}const qt=Z("default",I($t,[["render",Lt],["__scopeId","data-v-eb302876"]]))}}});
5
+ `),this.existingPluginTxt=a,this.showPluginDialog=!0})},deletePrompt:function(t){this.resetControlState(),this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>{this.isModified(t)?(this.currentPlugin=t,this.pluginDelete=!0,this.showModifiedPluginDialog=!0):this.deletePlugin(t)})},deletePlugin:function(t){this.alert=`Removing plugin ${t} ...`,this.alertType="success",this.showAlert=!0,T.delete(`/openc3-api/plugins/${t}`).then(e=>{setTimeout(()=>{this.showAlert=!1,this.updateProcesses()},5e3)}),this.update()},upgradePlugin(t){this.resetControlState(),this.currentPlugin=t,this.$refs.fileInput.click()},selectFile(){this.resetControlState(),this.$refs.fileInput.click()},fileChange(t){const e=t.target.files;if(e.length>0)if(this.file=e[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(r=>r.includes(".")),n=a.slice(0,g).join("-");a=this.currentPlugin.split("-"),g=a.findIndex(r=>r.includes("."));let s=a.slice(0,g).join("-");n!==s?this.$dialog.confirm(`The new gem base name ${n} doesn't match the existing ${s}. 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}}},Ot={class:"mt-2"},It=["textContent"],Mt=["textContent"];function Lt(t,e,a,g,n,s){const r=i("v-btn"),h=i("v-icon"),p=i("v-col"),k=i("rux-progress"),b=i("v-row"),S=i("v-divider"),V=i("v-alert"),v=i("v-list-item-title"),U=i("v-list-item-subtitle"),_=i("v-progress-circular"),M=i("v-tooltip"),D=i("v-list-item"),R=i("v-list"),P=i("v-switch"),At=i("plugin-list"),jt=i("plugin-dialog"),Et=i("modified-plugin-dialog"),Nt=i("simple-text-dialog"),zt=i("plugin-store"),Bt=i("v-bottom-sheet");return u(),x("div",null,[l(b,{"no-gutters":"",align:"center",class:"px-2"},{default:o(()=>[l(p,{class:"pa-2 mt-2"},{default:o(()=>[l(r,{"append-icon":"mdi-store",onClick:s.openStore},{default:o(()=>[...e[9]||(e[9]=[w(" Browse Plugins ",-1)])]),_:1},8,["onClick"]),l(r,{"append-icon":"mdi-paperclip",class:"mx-2",onClick:s.selectFile},{default:o(()=>[...e[10]||(e[10]=[w(" Install From File ",-1)])]),_:1},8,["onClick"]),d("input",{ref:"fileInput",accept:".gem",style:{display:"none"},type:"file",onChange:e[0]||(e[0]=(...m)=>s.fileChange&&s.fileChange(...m))},null,544),e[14]||(e[14]=d("br",null,null,-1)),d("p",Ot,[e[12]||(e[12]=w(" Note: Use ",-1)),l(h,null,{default:o(()=>[...e[11]||(e[11]=[w(" mdi-dots-horizontal ",-1)])]),_:1}),e[13]||(e[13]=w(" in the Installed Plugins list to upgrade existing plugins ",-1))])]),_:1}),l(p,{class:"ml-4 mr-2",cols:"4"},{default:o(()=>[l(k,{value:n.progress},null,8,["value"])]),_:1})]),_:1}),l(b,{"no-gutters":"",class:"px-2"},{default:o(()=>[l(p,{align:"right",class:"mr-2"},{default:o(()=>[...e[15]||(e[15]=[d("div",null,"* indicates a modified plugin",-1),d("div",null,"Click target link to download modifications",-1)])]),_:1})]),_:1}),l(S),l(V,{modelValue:n.showAlert,"onUpdate:modelValue":e[1]||(e[1]=m=>n.showAlert=m),closable:"",type:n.alertType,text:n.alert,"data-test":"plugin-alert"},null,8,["modelValue","type","text"]),Object.keys(n.processes).length>0?(u(),f(R,{key:0,class:"list","data-test":"process-list"},{default:o(()=>[l(b,{"no-gutters":"",class:"px-4"},{default:o(()=>[l(p,{class:"text-h5"},{default:o(()=>[...e[16]||(e[16]=[w(" Process List ",-1)])]),_:1}),l(p,{align:"right"},{default:o(()=>[...e[17]||(e[17]=[d("div",null,"Showing last 10 min of activity",-1)])]),_:1})]),_:1}),(u(!0),x($,null,L(n.processes,m=>(u(),x("div",{key:m.name},[l(D,null,{append:o(()=>[m.state==="Running"?(u(),f(_,{key:0,indeterminate:"",color:"primary"})):(u(),f(M,{key:1,"open-delay":600,location:"top"},{activator:o(({props:Rt})=>[l(r,O({ref_for:!0},Rt,{icon:"mdi-eye",variant:"text","aria-label":"Show Output","data-test":"show-output",onClick:qt=>s.showOutput(m)}),null,16,["onClick"])]),default:o(()=>[e[18]||(e[18]=d("span",null," Show Output ",-1))]),_:2},1024))]),default:o(()=>[l(v,null,{default:o(()=>[d("span",{class:j(m.state.toLowerCase()),textContent:y(`Processing ${m.process_type}: ${m.detail} - ${m.state}`)},null,10,It)]),_:2},1024),l(U,null,{default:o(()=>[d("span",{textContent:y(" Updated At: "+s.formatDate(m.updated_at))},null,8,Mt)]),_:2},1024)]),_:2},1024),l(S)]))),128))]),_:1})):C("",!0),l(b,{"no-gutters":"",class:"px-4"},{default:o(()=>[l(p,{class:"text-h5"},{default:o(()=>[...e[19]||(e[19]=[w(" Installed Plugins ",-1)])]),_:1}),l(p,{class:"v-col-auto"},{default:o(()=>[l(P,{modelValue:n.showDefaultTools,"onUpdate:modelValue":e[2]||(e[2]=m=>n.showDefaultTools=m),label:"Show Default Tools",density:"compact","hide-details":"","data-test":"show-default-tools"},null,8,["modelValue"])]),_:1})]),_:1}),l(At,{plugins:n.plugins,targets:n.targets,"show-default-tools":n.showDefaultTools,"default-plugins":n.defaultPlugins,onEdit:s.editPlugin,onUpgrade:s.upgradePlugin,onDelete:s.deletePrompt},null,8,["plugins","targets","show-default-tools","default-plugins","onEdit","onUpgrade","onDelete"]),n.showPluginDialog?(u(),f(jt,{key:1,modelValue:n.showPluginDialog,"onUpdate:modelValue":e[3]||(e[3]=m=>n.showPluginDialog=m),"plugin-name":n.pluginName,variables:n.variables,"plugin-txt":n.pluginTxt,"existing-plugin-txt":n.existingPluginTxt,"store-id":n.storeId,onCallback:s.pluginCallback},null,8,["modelValue","plugin-name","variables","plugin-txt","existing-plugin-txt","store-id","onCallback"])):C("",!0),n.showModifiedPluginDialog?(u(),f(Et,{key:2,modelValue:n.showModifiedPluginDialog,"onUpdate:modelValue":e[4]||(e[4]=m=>n.showModifiedPluginDialog=m),"plugin-name":n.currentPlugin,targets:s.pluginTargets(n.currentPlugin),"plugin-delete":n.pluginDelete,onSubmit:s.modifiedSubmit},null,8,["modelValue","plugin-name","targets","plugin-delete","onSubmit"])):C("",!0),l(Nt,{modelValue:n.showProcessOutput,"onUpdate:modelValue":e[5]||(e[5]=m=>n.showProcessOutput=m),title:"Process Output",text:n.processOutput},null,8,["modelValue","text"]),l(Bt,{modelValue:n.showPluginStore,"onUpdate:modelValue":e[8]||(e[8]=m=>n.showPluginStore=m),fullscreen:""},{default:o(()=>[l(zt,{onClose:e[6]||(e[6]=()=>n.showPluginStore=!1),onTriggerInstall:e[7]||(e[7]=m=>s.upload(null,m))})]),_:1},8,["modelValue"])])}const Ht=Z("default",I($t,[["render",Lt],["__scopeId","data-v-eb302876"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","vue-router","single-spa","vuex","vuetify"],function(u,h){"use strict";var s,a,l,r,i,n;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.createBlock,r=e.openBlock,i=e.normalizeStyle},e=>{n=e.d},null,null,null,null],execute:function(){const e={mixins:[s],props:{value:{type:[Number,String],default:null}},emits:["addItem","deleteItem"],data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,m,v,f,I,c){const d=a("rux-progress");return r(),l(d,{value:c._value,class:"progress",style:i(t.computedStyle)},null,8,["value","style"])}const p=u("default",n(e,[["render",o],["__scopeId","data-v-f2642a05"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","vue-router","single-spa","vuex","vuetify"],function(o,p){"use strict";var l,t,n,r,a,u;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.createBlock,r=e.openBlock,a=e.normalizeStyle},e=>{u=e.d},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 s(i,y,c,b,d,f){const v=t("v-radio");return r(),n(v,{"hide-details":"",dense:"",label:d.label,style:a(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=o("default",u(e,[["render",s]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-B_Hgw3gd-bdff69864bbaf9af4133.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","single-spa","vuex","vuetify"],function(f,B){"use strict";var a,l,s,r,c,o,i,u,d,m,p,g;return{setters:[e=>{a=e.u},e=>{l=e.resolveComponent,s=e.createBlock,r=e.openBlock,c=e.normalizeStyle,o=e.withCtx,i=e.createElementBlock,u=e.Fragment,d=e.renderList,m=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.d},null,null,null,null,null],execute:function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function h(n,v,I,w,y,z){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:c(n.computedStyle)},{default:o(()=>[(r(!0),i(u,null,d(n.widgets,(t,x)=>(r(),s(m(t.type),p({ref_for:!0},n.listeners,{key:x,value:x,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 C=f("default",g(e,[["render",h]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","vue-router","single-spa","vuex","vuetify"],function(c,m){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.createElementBlock,n=t.openBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.d},null,null,null,null],execute:function(){const t={mixins:[r],emits:["addItem","deleteItem"],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function d(e,s,p,g,v,o){return n(),a("div",{class:"rangebar",style:h([o.cssProps,e.computedStyle])},[...s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)])],4)}const u=c("default",l(t,[["render",d],["__scopeId","data-v-d56a0c51"]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-4560cb476d7e9d971b97.js","vue","vue-router","single-spa","vuex","vuetify"],function(R,K){"use strict";var h,y,a,l,r,n,o,d,c,f,x,m;return{setters:[s=>{h=s.d,y=s.F},s=>{a=s.resolveComponent,l=s.createElementBlock,r=s.openBlock,n=s.createVNode,o=s.withCtx,d=s.createTextVNode,c=s.createElementVNode,f=s.createCommentVNode,x=s.Fragment,m=s.toDisplayString},null,null,null,null],execute:function(){const s={data(){return{redisCommandText:"",redisResponse:null,redisEndpoint:"/openc3-api/redis/exec",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,y.post(this.redisEndpoint,{data:this.redisCommandText,headers:{Accept:"application/json","Content-Type":"plain/text"}}).then(t=>{this.redisResponse=t.data.result;let e="Ephemeral";this.redisEndpoint==="/openc3-api/redis/exec"&&(e="Persistent"),this.commands.unshift({redis:e,command:this.redisCommandText,response:this.redisResponse})})}}},g=["textContent"],C={key:1,class:"monospace"};function V(t,e,F,J,i,u){const b=a("v-card-title"),w=a("v-card-subtitle"),E=a("v-text-field"),k=a("v-checkbox"),N=a("v-card-text"),_=a("v-btn"),v=a("v-radio"),S=a("v-radio-group"),T=a("v-card-actions"),P=a("v-data-table"),A=a("v-card");return r(),l("div",null,[n(A,null,{default:o(()=>[n(b,null,{default:o(()=>[...e[3]||(e[3]=[d(" Send Raw Redis Commands ",-1)])]),_:1}),n(w,null,{default:o(()=>[...e[4]||(e[4]=[d(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. ",-1),c("br",null,null,-1),c("br",null,null,-1),d(" Enter commands like you would at the Redis cli prompt: ",-1),c("code",null,"ping",-1),d(" or ",-1),c("code",null,"hget openc3__settings version",-1)])]),_:1}),n(N,{class:"pb-0 ml-2"},{default:o(()=>[n(E,{modelValue:i.redisCommandText,"onUpdate:modelValue":e[0]||(e[0]=p=>i.redisCommandText=p),"hide-details":"",label:"Redis command",class:"monospace",onKeydown:u.commandKeydown},null,8,["modelValue","onKeydown"]),n(k,{modelValue:i.prettyPrint,"onUpdate:modelValue":e[1]||(e[1]=p=>i.prettyPrint=p),label:"Pretty print",density:"compact","hide-details":"",class:"mb-2"},null,8,["modelValue"]),i.redisResponse?(r(),l(x,{key:0},[i.prettyPrint?(r(),l("pre",{key:0,textContent:m(u.formattedResponse)},null,8,g)):(r(),l("span",C," Response: "+m(i.redisResponse),1))],64)):f("",!0)]),_:1}),n(T,{class:"px-2"},{default:o(()=>[n(_,{disabled:!i.redisCommandText.length,color:"success",variant:"text",onClick:u.executeRaw},{default:o(()=>[...e[5]||(e[5]=[d(" Execute ",-1)])]),_:1},8,["disabled","onClick"]),n(S,{modelValue:i.redisEndpoint,"onUpdate:modelValue":e[2]||(e[2]=p=>i.redisEndpoint=p),inline:"","hide-details":"",class:"mt-0"},{default:o(()=>[n(v,{label:"Persistent",value:"/openc3-api/redis/exec","data-test":"persistent-radio"}),n(v,{label:"Ephemeral",value:"/openc3-api/redis/exec?ephemeral=1","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"])]),_:1}),n(P,{headers:i.headers,items:i.commands,class:"monospace","items-per-page":-1,"hide-default-footer":"",density:"compact",height:"45vh"},null,8,["headers","items"])]),_:1})])}const B=R("default",h(s,[["render",V],["__scopeId","data-v-42ef013f"]]))}}});
1
+ System.register(["./main-b8fe7a5cb2fa4e35ed6a.js","vue","vue-router","single-spa","vuex","vuetify"],function(R,K){"use strict";var h,y,a,l,r,n,o,d,c,f,x,m;return{setters:[s=>{h=s.d,y=s.F},s=>{a=s.resolveComponent,l=s.createElementBlock,r=s.openBlock,n=s.createVNode,o=s.withCtx,d=s.createTextVNode,c=s.createElementVNode,f=s.createCommentVNode,x=s.Fragment,m=s.toDisplayString},null,null,null,null],execute:function(){const s={data(){return{redisCommandText:"",redisResponse:null,redisEndpoint:"/openc3-api/redis/exec",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,y.post(this.redisEndpoint,{data:this.redisCommandText,headers:{Accept:"application/json","Content-Type":"plain/text"}}).then(t=>{this.redisResponse=t.data.result;let e="Ephemeral";this.redisEndpoint==="/openc3-api/redis/exec"&&(e="Persistent"),this.commands.unshift({redis:e,command:this.redisCommandText,response:this.redisResponse})})}}},g=["textContent"],C={key:1,class:"monospace"};function V(t,e,F,J,i,u){const b=a("v-card-title"),w=a("v-card-subtitle"),E=a("v-text-field"),k=a("v-checkbox"),N=a("v-card-text"),_=a("v-btn"),v=a("v-radio"),S=a("v-radio-group"),T=a("v-card-actions"),P=a("v-data-table"),A=a("v-card");return r(),l("div",null,[n(A,null,{default:o(()=>[n(b,null,{default:o(()=>[...e[3]||(e[3]=[d(" Send Raw Redis Commands ",-1)])]),_:1}),n(w,null,{default:o(()=>[...e[4]||(e[4]=[d(" THIS IS DANGEROUS. This allows you to interact directly with the underlying Redis database, making it easy to modify or delete data. ",-1),c("br",null,null,-1),c("br",null,null,-1),d(" Enter commands like you would at the Redis cli prompt: ",-1),c("code",null,"ping",-1),d(" or ",-1),c("code",null,"hget openc3__settings version",-1)])]),_:1}),n(N,{class:"pb-0 ml-2"},{default:o(()=>[n(E,{modelValue:i.redisCommandText,"onUpdate:modelValue":e[0]||(e[0]=p=>i.redisCommandText=p),"hide-details":"",label:"Redis command",class:"monospace",onKeydown:u.commandKeydown},null,8,["modelValue","onKeydown"]),n(k,{modelValue:i.prettyPrint,"onUpdate:modelValue":e[1]||(e[1]=p=>i.prettyPrint=p),label:"Pretty print",density:"compact","hide-details":"",class:"mb-2"},null,8,["modelValue"]),i.redisResponse?(r(),l(x,{key:0},[i.prettyPrint?(r(),l("pre",{key:0,textContent:m(u.formattedResponse)},null,8,g)):(r(),l("span",C," Response: "+m(i.redisResponse),1))],64)):f("",!0)]),_:1}),n(T,{class:"px-2"},{default:o(()=>[n(_,{disabled:!i.redisCommandText.length,color:"success",variant:"text",onClick:u.executeRaw},{default:o(()=>[...e[5]||(e[5]=[d(" Execute ",-1)])]),_:1},8,["disabled","onClick"]),n(S,{modelValue:i.redisEndpoint,"onUpdate:modelValue":e[2]||(e[2]=p=>i.redisEndpoint=p),inline:"","hide-details":"",class:"mt-0"},{default:o(()=>[n(v,{label:"Persistent",value:"/openc3-api/redis/exec","data-test":"persistent-radio"}),n(v,{label:"Ephemeral",value:"/openc3-api/redis/exec?ephemeral=1","data-test":"ephemeral-radio"})]),_:1},8,["modelValue"])]),_:1}),n(P,{headers:i.headers,items:i.commands,class:"monospace","items-per-page":-1,"hide-default-footer":"",density:"compact",height:"45vh"},null,8,["headers","items"])]),_:1})])}const B=R("default",h(s,[["render",V],["__scopeId","data-v-42ef013f"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","vue-router","single-spa","vuex","vuetify"],function(m,p){"use strict";var l,r,c,a,o,u;return{setters:[t=>{l=t.o},t=>{r=t.resolveComponent,c=t.createBlock,a=t.openBlock,o=t.normalizeStyle},t=>{u=t.d},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 d(e,n,s,f,E,i){const h=r("rux-monitoring-icon");return a(),c(h,{class:"rux-icon",style:o([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",u(t,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-4560cb476d7e9d971b97.js","vue","single-spa","./OutputDialog-BMzp6wy3-6270642e99f9befcc694.js","vue-router","vuex","vuetify"],function(f,T){"use strict";var d,c,e,r,l,o,g,p,i,h,v,m,C,k;return{setters:[t=>{d=t.d,c=t.F},t=>{e=t.resolveComponent,r=t.createElementBlock,l=t.openBlock,o=t.createVNode,g=t.createBlock,p=t.createCommentVNode,i=t.withCtx,h=t.Fragment,v=t.renderList,m=t.createTextVNode,C=t.toDisplayString},null,t=>{k=t.E},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 D(n,s,j,F,a,w){const y=e("v-list-item-title"),V=e("v-btn"),N=e("v-list-item"),S=e("v-divider"),b=e("v-list"),x=e("output-dialog");return l(),r("div",null,[o(b,{class:"list","data-test":"routerList"},{default:i(()=>[(l(!0),r(h,null,v(a.routers,(u,B)=>(l(),r("div",{key:B},[o(N,null,{append:i(()=>[o(V,{"aria-label":"Show Router Details",icon:"mdi-eye",variant:"text",onClick:R=>w.showRouter(u)},null,8,["onClick"])]),default:i(()=>[o(y,null,{default:i(()=>[m(C(u),1)]),_:2},1024)]),_:2},1024),o(S)]))),128))]),_:1}),a.showDialog?(l(),g(x,{key:0,modelValue:a.showDialog,"onUpdate:modelValue":s[0]||(s[0]=u=>a.showDialog=u),content:a.jsonContent,type:"Router",name:a.dialogTitle,onSubmit:w.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):p("",!0)])}const _=f("default",d(t,[["render",D],["__scopeId","data-v-400627ab"]]))}}});
1
+ System.register(["./main-b8fe7a5cb2fa4e35ed6a.js","vue","single-spa","./OutputDialog-Di-pSmJE-abdcc64ec68a9fb24179.js","vue-router","vuex","vuetify"],function(f,T){"use strict";var d,c,e,r,l,o,g,p,i,h,m,v,C,k;return{setters:[t=>{d=t.d,c=t.F},t=>{e=t.resolveComponent,r=t.createElementBlock,l=t.openBlock,o=t.createVNode,g=t.createBlock,p=t.createCommentVNode,i=t.withCtx,h=t.Fragment,m=t.renderList,v=t.createTextVNode,C=t.toDisplayString},null,t=>{k=t.E},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,E,a,D){const V=e("v-list-item-title"),y=e("v-btn"),S=e("v-list-item"),N=e("v-divider"),b=e("v-list"),x=e("output-dialog");return l(),r("div",null,[o(b,{class:"list","data-test":"routerList"},{default:i(()=>[(l(!0),r(h,null,m(a.routers,(u,B)=>(l(),r("div",{key:B},[o(S,null,{append:i(()=>[o(y,{"aria-label":"Show Router Details",icon:"mdi-eye",variant:"text",onClick:F=>D.showRouter(u)},null,8,["onClick"])]),default:i(()=>[o(V,null,{default:i(()=>[v(C(u),1)]),_:2},1024)]),_:2},1024),o(N)]))),128))]),_:1}),a.showDialog?(l(),g(x,{key:0,modelValue:a.showDialog,"onUpdate:modelValue":s[0]||(s[0]=u=>a.showDialog=u),content:a.jsonContent,type:"Router",name:a.dialogTitle,onSubmit:D.dialogCallback},null,8,["modelValue","content","name","onSubmit"])):p("",!0)])}const _=f("default",d(t,[["render",w],["__scopeId","data-v-400627ab"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-B_Hgw3gd-bdff69864bbaf9af4133.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","single-spa","vuex","vuetify"],function(h,C){"use strict";var m,u,s,r,v,l,y,i,o,d,f,c,p,w;return{setters:[t=>{m=t.u},t=>{u=t.resolveComponent,s=t.createElementBlock,r=t.openBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,d=t.createElementVNode,f=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{w=t.d},null,null,null,null,null],execute:function(){const t={mixins:[m],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(g=>{g.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&g.settings.push(["MARGIN",n])})}}};function k(n,g,a,z,b,A){const N=u("v-tooltip");return r(),s("div",{ref:"container",style:v(n.computedStyle),class:"overflow-y-auto"},[(r(!0),s(l,null,y(n.widgets,(e,x)=>(r(),s(l,{key:x},[n.getTooltipText(e)?(r(),i(N,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:o(({props:B})=>[(r(),i(c(e.type),p({ref_for:!0},{...n.listeners,...B},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[d("span",null,f(n.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(r(),i(c(e.type),p({key:1,ref_for:!0},n.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const T=h("default",w(t,[["render",k]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-4560cb476d7e9d971b97.js","vue","vue-router","single-spa","vuex","vuetify"],function(C,D){"use strict";var v,i,r,d,o,t,s,f,u,m,V,g,x,y;return{setters:[l=>{v=l.d,i=l.F},l=>{r=l.resolveComponent,d=l.createElementBlock,o=l.openBlock,t=l.createVNode,s=l.withCtx,f=l.createElementVNode,u=l.createTextVNode,m=l.toDisplayString,V=l.Fragment,g=l.renderList,x=l.createBlock,y=l.createCommentVNode},null,null,null,null],execute:function(){const l={data(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted(){this.update()},methods:{update(){i.get("/openc3-api/secrets").then(c=>{this.secrets=c.data})},upload:function(){this.loadingSecret=!0;let c=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),c=i.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else c=i.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});c.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(c){this.$dialog.confirm(`Are you sure you want to remove: ${c}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return i.delete(`/openc3-api/secrets/${c}`)}).then(e=>{this.alert=`Removed secret ${c}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function b(c,e,L,j,a,N){const w=r("v-file-input"),p=r("v-col"),k=r("v-row"),S=r("v-text-field"),T=r("v-icon"),_=r("v-btn"),A=r("v-alert"),B=r("v-list-item-title"),F=r("v-list-item"),U=r("v-divider"),$=r("v-list");return o(),d("div",null,[t(k,{"no-gutters":""},{default:s(()=>[t(p,null,{default:s(()=>[t(w,{ref:"fileInput",modelValue:a.file,"onUpdate:modelValue":e[0]||(e[0]=n=>a.file=n),"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}),t(k,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:s(()=>[t(p,{cols:"3"},{default:s(()=>[t(S,{modelValue:a.secretName,"onUpdate:modelValue":e[1]||(e[1]=n=>a.secretName=n),label:"Secret Name",class:"px-2"},null,8,["modelValue"])]),_:1}),t(p,{cols:"3",class:"px-2"},{default:s(()=>[t(S,{modelValue:a.secretValue,"onUpdate:modelValue":e[2]||(e[2]=n=>a.secretValue=n),disabled:a.file,label:"Secret Value"},null,8,["modelValue","disabled"])]),_:1}),t(p,{cols:"3",class:"px-2"},{default:s(()=>[t(_,{class:"mx-2",color:"primary","data-test":"secretUpload",disabled:a.secretName===""||a.file==null&&a.secretValue==="",loading:a.loadingSecret,onClick:e[3]||(e[3]=n=>N.upload())},{loader:s(()=>[...e[6]||(e[6]=[f("span",null,"Loading...",-1)])]),default:s(()=>[t(T,{start:"",theme:"dark"},{default:s(()=>[...e[5]||(e[5]=[u("mdi-cloud-upload",-1)])]),_:1}),e[7]||(e[7]=f("span",null," Set ",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),t(A,{modelValue:a.showAlert,"onUpdate:modelValue":e[4]||(e[4]=n=>a.showAlert=n),closable:"",type:a.alertType},{default:s(()=>[u(m(a.alert),1)]),_:1},8,["modelValue","type"]),t($,{"data-test":"secretList"},{default:s(()=>[(o(!0),d(V,null,g(a.secrets,(n,h)=>(o(),d("div",{key:h},[t(F,null,{append:s(()=>[t(_,{icon:"mdi-delete",variant:"text","aria-label":"Delete Secret",onClick:z=>N.deleteSecret(n)},null,8,["onClick"])]),default:s(()=>[t(B,null,{default:s(()=>[u(m(n),1)]),_:2},1024)]),_:2},1024),h<a.secrets.length-1?(o(),x(U,{key:h})):y("",!0)]))),128))]),_:1})])}const E=C("default",v(l,[["render",b]]))}}});
1
+ System.register(["./main-b8fe7a5cb2fa4e35ed6a.js","vue","vue-router","single-spa","vuex","vuetify"],function(C,D){"use strict";var v,i,r,d,o,t,s,f,u,m,V,g,x,y;return{setters:[l=>{v=l.d,i=l.F},l=>{r=l.resolveComponent,d=l.createElementBlock,o=l.openBlock,t=l.createVNode,s=l.withCtx,f=l.createElementVNode,u=l.createTextVNode,m=l.toDisplayString,V=l.Fragment,g=l.renderList,x=l.createBlock,y=l.createCommentVNode},null,null,null,null],execute:function(){const l={data(){return{file:null,loadingSecret:!1,secrets:[],secretName:"",secretValue:"",alert:"",alertType:"success",showAlert:!1}},mounted(){this.update()},methods:{update(){i.get("/openc3-api/secrets").then(c=>{this.secrets=c.data})},upload:function(){this.loadingSecret=!0;let c=null;if(this.file){const e=new FormData;e.append("file",this.file,this.file.name),c=i.post(`/openc3-api/secrets/${this.secretName}`,{data:e,headers:{"Content-Type":"multipart/form-data"}})}else c=i.post(`/openc3-api/secrets/${this.secretName}`,{data:{value:this.secretValue}});c.then(e=>{this.loadingSecret=!1,this.file=null,this.secretName="",this.secretValue="",this.update()}).catch(e=>{this.loadingSecret=!1})},deleteSecret:function(c){this.$dialog.confirm(`Are you sure you want to remove: ${c}`,{okText:"Delete",cancelText:"Cancel"}).then(function(e){return i.delete(`/openc3-api/secrets/${c}`)}).then(e=>{this.alert=`Removed secret ${c}`,this.alertType="success",this.showAlert=!0,setTimeout(()=>{this.showAlert=!1},5e3),this.update()})}}};function b(c,e,L,j,a,N){const w=r("v-file-input"),p=r("v-col"),k=r("v-row"),S=r("v-text-field"),T=r("v-icon"),_=r("v-btn"),A=r("v-alert"),B=r("v-list-item-title"),F=r("v-list-item"),U=r("v-divider"),$=r("v-list");return o(),d("div",null,[t(k,{"no-gutters":""},{default:s(()=>[t(p,null,{default:s(()=>[t(w,{ref:"fileInput",modelValue:a.file,"onUpdate:modelValue":e[0]||(e[0]=n=>a.file=n),"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}),t(k,{"no-gutters":"",align:"center",style:{"padding-left":"10px"}},{default:s(()=>[t(p,{cols:"3"},{default:s(()=>[t(S,{modelValue:a.secretName,"onUpdate:modelValue":e[1]||(e[1]=n=>a.secretName=n),label:"Secret Name",class:"px-2"},null,8,["modelValue"])]),_:1}),t(p,{cols:"3",class:"px-2"},{default:s(()=>[t(S,{modelValue:a.secretValue,"onUpdate:modelValue":e[2]||(e[2]=n=>a.secretValue=n),disabled:a.file,label:"Secret Value"},null,8,["modelValue","disabled"])]),_:1}),t(p,{cols:"3",class:"px-2"},{default:s(()=>[t(_,{class:"mx-2",color:"primary","data-test":"secretUpload",disabled:a.secretName===""||a.file==null&&a.secretValue==="",loading:a.loadingSecret,onClick:e[3]||(e[3]=n=>N.upload())},{loader:s(()=>[...e[6]||(e[6]=[f("span",null,"Loading...",-1)])]),default:s(()=>[t(T,{start:"",theme:"dark"},{default:s(()=>[...e[5]||(e[5]=[u("mdi-cloud-upload",-1)])]),_:1}),e[7]||(e[7]=f("span",null," Set ",-1))]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),t(A,{modelValue:a.showAlert,"onUpdate:modelValue":e[4]||(e[4]=n=>a.showAlert=n),closable:"",type:a.alertType},{default:s(()=>[u(m(a.alert),1)]),_:1},8,["modelValue","type"]),t($,{"data-test":"secretList"},{default:s(()=>[(o(!0),d(V,null,g(a.secrets,(n,h)=>(o(),d("div",{key:h},[t(F,null,{append:s(()=>[t(_,{icon:"mdi-delete",variant:"text","aria-label":"Delete Secret",onClick:z=>N.deleteSecret(n)},null,8,["onClick"])]),default:s(()=>[t(B,null,{default:s(()=>[u(m(n),1)]),_:2},1024)]),_:2},1024),h<a.secrets.length-1?(o(),x(U,{key:h})):y("",!0)]))),128))]),_:1})])}const E=C("default",v(l,[["render",b]]))}}});
@@ -0,0 +1,2 @@
1
+ System.register(["vue","./main-b8fe7a5cb2fa4e35ed6a.js","./settings-CHPWZcnU-934e5e82b5a20cfda7e6.js","vue-router","single-spa","vuex","vuetify"],function(Y,Ee){"use strict";var a,B,h,t,S,o,r,V,H,E,O,w,L,T,D,k,R,U;return{setters:[y=>{a=y.resolveComponent,B=y.createElementBlock,h=y.openBlock,t=y.createVNode,S=y.createBlock,o=y.withCtx,r=y.createTextVNode,V=y.toDisplayString,H=y.createSlots,E=y.mergeProps,O=y.createCommentVNode,w=y.withDirectives,L=y.vShow,T=y.Fragment,D=y.renderList},y=>{k=y.d,R=y.Z},y=>{U=y.n},null,null,null,null],execute:function(){const y={data(){return{suppressedWarnings:[],selectedSuppressedWarnings:[],selectAllSuppressedWarnings:!1}},watch:{selectAllSuppressedWarnings:function(l){l?this.selectedSuppressedWarnings=this.suppressedWarnings.map(e=>e.key):this.selectedSuppressedWarnings=[]}},created(){this.loadSuppressedWarnings()},methods:{loadSuppressedWarnings:function(){this.suppressedWarnings=Object.keys(localStorage).filter(l=>l.startsWith("suppresswarning__")).map(this.localStorageKeyToDisplayObject),this.selectedSuppressedWarnings=[]},localStorageKeyToDisplayObject:function(l){const e=l.split("__")[1].replaceAll("_"," ");return{key:l,text:e.charAt(0).toUpperCase()+e.slice(1),value:localStorage[l]}},resetSuppressedWarnings:function(){this.deleteLocalStorageKeys(this.selectedSuppressedWarnings),this.loadSuppressedWarnings()},deleteLocalStorageKeys:function(l){for(const e of l)delete localStorage[e]}}};function I(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),b=a("v-card");return h(),S(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[r("Reset suppressed warnings",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[r(` This resets "don't show this again" dialogs on this browser `,-1)])]),_:1}),t(c,null,{default:o(()=>[s.suppressedWarnings.length?(h(),B(T,{key:0},[t(i,{modelValue:s.selectAllSuppressedWarnings,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selectAllSuppressedWarnings=d),label:"Select All Warnings",density:"compact"},null,8,["modelValue"]),(h(!0),B(T,null,D(s.suppressedWarnings,d=>(h(),S(i,{key:d.key,modelValue:s.selectedSuppressedWarnings,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedSuppressedWarnings=n),label:d.text,value:d.key,density:"compact","hide-details":""},null,8,["modelValue","label","value"]))),128))],64)):(h(),B(T,{key:1},[r(" No warnings to reset ")],64))]),_:1}),t(g,{class:"px-2"},{default:o(()=>[t(m,{disabled:!s.selectedSuppressedWarnings.length,color:"warning",variant:"text","data-test":"reset-suppressed-warnings",onClick:v.resetSuppressedWarnings},{default:o(()=>[...e[4]||(e[4]=[r(" Reset ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Q=k(y,[["render",I]]),X={data(){return{lastConfigs:[],selectedLastConfigs:[],selectAllLastConfigs:!1}},watch:{selectAllLastConfigs:function(l){l?this.selectedLastConfigs=this.lastConfigs.map(e=>e.key):this.selectedLastConfigs=[]}},created(){this.loadLastConfigs()},methods:{loadLastConfigs:function(){this.lastConfigs=Object.keys(localStorage).filter(l=>l.endsWith("__default")).map(l=>{const e=l.split("__")[0].replaceAll("_"," ");return{key:l,text:e.charAt(0).toUpperCase()+e.slice(1)}}),this.selectedLastConfigs=[]},clearLastConfigs:function(){this.deleteLocalStorageKeys(this.selectedLastConfigs),this.loadLastConfigs()},deleteLocalStorageKeys:function(l){for(const e of l)delete localStorage[e]}}};function ee(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-checkbox"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),b=a("v-card");return h(),S(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[r(" Clear default configs ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[r(" This clears the default tool configs on this browser ",-1)])]),_:1}),t(c,null,{default:o(()=>[s.lastConfigs.length?(h(),B(T,{key:0},[t(i,{modelValue:s.selectAllLastConfigs,"onUpdate:modelValue":e[0]||(e[0]=d=>s.selectAllLastConfigs=d),label:"Select All Configs",density:"compact"},null,8,["modelValue"]),(h(!0),B(T,null,D(s.lastConfigs,d=>(h(),S(i,{key:d.key,modelValue:s.selectedLastConfigs,"onUpdate:modelValue":e[1]||(e[1]=n=>s.selectedLastConfigs=n),label:d.text,value:d.key,"hide-details":"",density:"compact"},null,8,["modelValue","label","value"]))),128))],64)):(h(),B(T,{key:1},[r(" No configs to clear ")],64))]),_:1}),t(g,{class:"px-2"},{default:o(()=>[t(m,{disabled:!s.selectedLastConfigs.length,color:"warning",variant:"text","data-test":"clear-default-configs",onClick:v.clearLastConfigs},{default:o(()=>[...e[4]||(e[4]=[r(" Clear ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const te=k(X,[["render",ee]]),le={data(){return{vimMode:R.isVimModeEnabled(),defaultLanguage:R.getDefaultScriptingLanguage(),languageOptions:[{text:"Ruby",value:"ruby"},{text:"Python",value:"python"}]}},methods:{save:function(){R.setVimMode(this.vimMode),R.setDefaultScriptingLanguage(this.defaultLanguage)}}};function oe(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-select"),c=a("v-switch"),m=a("v-card-text"),g=a("v-btn"),b=a("v-card-actions"),d=a("v-card");return h(),S(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[2]||(e[2]=[r(" Code Editor Settings ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[3]||(e[3]=[r(" Settings for the code editors built into COSMOS (e.g. in Script Runner) ",-1)])]),_:1}),t(m,{class:"pb-0"},{default:o(()=>[t(i,{modelValue:s.defaultLanguage,"onUpdate:modelValue":e[0]||(e[0]=n=>s.defaultLanguage=n),label:"Default scripting language",items:s.languageOptions,"item-title":"text","item-value":"value",color:"primary",class:"mt-4","data-test":"default-language"},null,8,["modelValue","items"]),t(c,{modelValue:s.vimMode,"onUpdate:modelValue":e[1]||(e[1]=n=>s.vimMode=n),label:"Vim mode",color:"primary"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-editor-settings",onClick:v.save},{default:o(()=>[...e[4]||(e[4]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ae=k(le,[["render",oe]]),M="astro",se={mixins:[U],data(){return{hideClock:!1}},created(){this.loadSetting(M)},methods:{save(){this.saveSetting(M,JSON.stringify({hideClock:this.hideClock}))},parseSetting:function(l){if(l){let e=JSON.parse(l);this.hideClock=e.hideClock}}}};function re(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),b=a("v-card");return h(),S(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Astro Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(c,{class:"pb-0"},{default:o(()=>[t(i,{modelValue:s.hideClock,"onUpdate:modelValue":e[3]||(e[3]=d=>s.hideClock=d),label:"Hide Astro Clock",color:"primary"},null,8,["modelValue"])]),_:1}),t(g,null,{default:o(()=>[t(m,{color:"success",variant:"text","data-test":"save-astro-settings",onClick:v.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ne=k(se,[["render",re]]),P="classification_banner",de={mixins:[U],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:l=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(l)||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(l){l?this.topHeight=20:this.topHeight=0},displayBottomBanner:function(l){l?this.bottomHeight=20:this.bottomHeight=0},customFontColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customFontColor=`#${l}`)},customBackgroundColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customBackgroundColor=`#${l}`)}},created(){this.loadSetting(P)},methods:{save(){this.saveSetting(P,this.saveObj)},parseSetting:function(l){if(l){const e=JSON.parse(l);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 ie(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-text-field"),c=a("v-col"),m=a("v-row"),g=a("v-icon"),b=a("v-list-item"),d=a("v-select"),n=a("v-switch"),W=a("v-card-text"),A=a("v-btn"),N=a("v-card-actions"),q=a("v-card");return h(),S(q,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[12]||(e[12]=[r("Classification Banner Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=p=>l.errorLoading=p),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=p=>l.errorSaving=p),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=p=>l.successSaving=p),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[13]||(e[13]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(W,{class:"pb-0"},{default:o(()=>[t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(i,{modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=p=>s.text=p),label:"Text","data-test":"classification-banner-text"},null,8,["modelValue"])]),_:1})]),_:1}),t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(d,{modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[4]||(e[4]=p=>s.selectedBackgroundColor=p),label:"Background color",items:s.colors,"item-title":"text","data-test":"classification-banner-background-color"},H({item:o(({props:p,item:f})=>[t(b,E(p,{value:f.text}),{prepend:o(()=>[f.value?(h(),S(g,{key:0,color:f.value},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[t(g,{color:s.selectedBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),t(c,null,{default:o(()=>[t(i,{modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=p=>s.customBackgroundColor=p),label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,rules:[s.rules.customColor],"data-test":"classification-banner-custom-background-color"},{"prepend-inner":o(()=>[w(t(g,{color:s.customBackgroundColor},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[L,!s.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),t(c,null,{default:o(()=>[t(d,{modelValue:s.selectedFontColor,"onUpdate:modelValue":e[6]||(e[6]=p=>s.selectedFontColor=p),label:"Font color",items:s.colors,"item-title":"text","data-test":"classification-banner-font-color"},H({item:o(({props:p,item:f})=>[t(b,E(p,{value:f.text}),{prepend:o(()=>[f.value?(h(),S(g,{key:0,color:f.value},{default:o(()=>[...e[18]||(e[18]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[w(t(g,{color:s.selectedFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[L,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),t(c,null,{default:o(()=>[t(i,{modelValue:s.customFontColor,"onUpdate:modelValue":e[7]||(e[7]=p=>s.customFontColor=p),label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,rules:[s.rules.customColor],"data-test":"classification-banner-custom-font-color"},{"prepend-inner":o(()=>[w(t(g,{color:s.customFontColor},{default:o(()=>[...e[19]||(e[19]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[L,!s.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1}),t(m,{dense:""},{default:o(()=>[t(c,null,{default:o(()=>[t(n,{modelValue:s.displayTopBanner,"onUpdate:modelValue":e[8]||(e[8]=p=>s.displayTopBanner=p),label:"Display top banner",color:"primary","data-test":"display-top-banner"},null,8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{modelValue:s.topHeight,"onUpdate:modelValue":e[9]||(e[9]=p=>s.topHeight=p),label:"Top height",disabled:!s.displayTopBanner,type:"number",suffix:"px","data-test":"classification-banner-top-height"},null,8,["modelValue","disabled"])]),_:1}),t(c,null,{default:o(()=>[t(n,{modelValue:s.displayBottomBanner,"onUpdate:modelValue":e[10]||(e[10]=p=>s.displayBottomBanner=p),label:"Display bottom banner",color:"primary","data-test":"display-bottom-banner"},null,8,["modelValue"])]),_:1}),t(c,null,{default:o(()=>[t(i,{modelValue:s.bottomHeight,"onUpdate:modelValue":e[11]||(e[11]=p=>s.bottomHeight=p),label:"Bottom height",disabled:!s.displayBottomBanner,type:"number",suffix:"px","data-test":"classification-banner-bottom-height"},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),t(N,null,{default:o(()=>[t(A,{disabled:!v.formValid,color:"success",variant:"text","data-test":"save-classification-banner",onClick:v.save},{default:o(()=>[...e[20]||(e[20]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const ue=k(de,[["render",ie]]),Z="time_zone",ce={mixins:[U],data(){return{timeZones:["local","UTC"],timeZone:"local"}},created(){this.loadSetting(Z)},methods:{save(){this.saveSetting(Z,this.timeZone)},parseSetting:function(l){l&&(this.timeZone=l)}}};function me(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-select"),m=a("v-card-text"),g=a("v-btn"),b=a("v-card-actions"),d=a("v-card");return h(),S(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Time Zone",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" 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}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,null,{default:o(()=>[t(c,{modelValue:s.timeZone,"onUpdate:modelValue":e[3]||(e[3]=n=>s.timeZone=n),items:s.timeZones,label:"Select time display","hide-details":"","prepend-icon":"mdi-map-clock","single-line":"","data-test":"time-zone"},null,8,["modelValue","items"])]),_:1}),t(b,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-time-zone",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const ge=k(ce,[["render",me]]),j="news_feed",pe={mixins:[U],data(){return{newsFeed:!0}},created(){this.loadSetting(j)},methods:{save(){this.saveSetting(j,this.newsFeed),this.newsFeed&&this.api.update_news()},parseSetting:function(l){this.newsFeed=l}}};function fe(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-alert"),i=a("v-switch"),c=a("v-card-text"),m=a("v-btn"),g=a("v-card-actions"),b=a("v-card");return h(),S(b,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("News Feed Settings",-1)])]),_:1}),t(u,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=d=>l.errorLoading=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=d=>l.errorSaving=d),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(u,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=d=>l.successSaving=d),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[5]||(e[5]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(c,{class:"pb-0"},{default:o(()=>[t(i,{modelValue:s.newsFeed,"onUpdate:modelValue":e[3]||(e[3]=d=>s.newsFeed=d),label:`Allow COSMOS backend to pull the news feed from the COSMOS external news site.
2
+ 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}),t(g,null,{default:o(()=>[t(m,{color:"success",variant:"text","data-test":"save-news-feed",onClick:v.save},{default:o(()=>[...e[6]||(e[6]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const he=k(pe,[["render",fe]]),$="subtitle",ve={mixins:[U],data(){return{subtitle:""}},created(){this.loadSetting($)},methods:{save(){this.saveSetting($,this.subtitle)},parseSetting:function(l){l&&(this.subtitle=l)}}};function be(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),b=a("v-card-actions"),d=a("v-card");return h(),S(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r("Subtitle",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets a subtitle to display below the COSMOS logo in the Navigation bar. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{modelValue:s.subtitle,"onUpdate:modelValue":e[3]||(e[3]=n=>s.subtitle=n),label:"Subtitle","data-test":"subtitle"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-subtitle",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ce=k(ve,[["render",be]]),z="source_url",ye={mixins:[U],data(){return{sourceUrl:"https://github.com/OpenC3/cosmos"}},created(){this.loadSetting(z)},methods:{save(){this.saveSetting(z,this.sourceUrl)},parseSetting:function(l){l&&(this.sourceUrl=l)}}};function Se(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),b=a("v-card-actions"),d=a("v-card");return h(),S(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Source code URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(' This sets the URL for the "Source" link in the footer. This is required under the AGPL license. ',-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{modelValue:s.sourceUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.sourceUrl=n),label:"Source URL","data-test":"source-url"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-source-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const Ve=k(ye,[["render",Se]]),J="rubygems_url",_e={mixins:[U],data(){return{rubygemsUrl:"https://rubygems.org"}},created(){this.loadSetting(J)},methods:{save(){this.saveSetting(J,this.rubygemsUrl)},parseSetting:function(l){l&&(this.rubygemsUrl=l)}}};function ke(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),b=a("v-card-actions"),d=a("v-card");return h(),S(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Rubygems URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets the URL for installing dependency rubygems. Also used for rubygem discovery. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{modelValue:s.rubygemsUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.rubygemsUrl=n),label:"Rubygems URL","data-test":"rubygems-url"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-rubygems-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const xe=k(_e,[["render",ke]]),K="pypi_url",Ue={mixins:[U],data(){return{pypiUrl:"https://pypi.org"}},created(){this.loadSetting(K)},methods:{save(){this.saveSetting(K,this.pypiUrl)},parseSetting:function(l){l&&(this.pypiUrl=l)}}};function Be(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-card-text"),g=a("v-btn"),b=a("v-card-actions"),d=a("v-card");return h(),S(d,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[4]||(e[4]=[r(" Pypi URL ",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[5]||(e[5]=[r(" This sets the URL for installing dependency python packages. Also used for package discovery. ",-1)])]),_:1}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=n=>l.errorLoading=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=n=>l.errorSaving=n),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=n=>l.successSaving=n),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[6]||(e[6]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(m,{class:"pb-0"},{default:o(()=>[t(c,{modelValue:s.pypiUrl,"onUpdate:modelValue":e[3]||(e[3]=n=>s.pypiUrl=n),label:"Pypi URL","data-test":"pypi-url"},null,8,["modelValue"])]),_:1}),t(b,null,{default:o(()=>[t(g,{color:"success",variant:"text","data-test":"save-pypi-url",onClick:v.save},{default:o(()=>[...e[7]||(e[7]=[r(" Save ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})}const we=k(Ue,[["render",Be]]),G="context_tag",Le={mixins:[U],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:l=>/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(l)||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(l){l?this.text||(this.text="REPLACEME"):this.text=null},customFontColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customFontColor=`#${l}`)},customBackgroundColor:function(l){l&&l.length&&!l.startsWith("#")&&(this.customBackgroundColor=`#${l}`)}},created(){this.loadSetting(G)},methods:{save(){this.saveSetting(G,this.saveObj)},parseSetting:function(l){if(l){const e=JSON.parse(l);this.text=e.text,this.displayContextTag=!!e.text,e.backgroundColor&&(this.colors.some(_=>_.value===e.backgroundColor)?this.selectedBackgroundColor=e.backgroundColor:(this.customBackgroundColor=e.backgroundColor,this.selectedBackgroundColor=!1)),e.fontColor&&(this.colors.some(_=>_.value===e.fontColor)?this.selectedFontColor=e.fontColor:(this.customFontColor=e.fontColor,this.selectedFontColor=!1))}}}};function Te(l,e,_,x,s,v){const C=a("v-card-title"),u=a("v-card-subtitle"),i=a("v-alert"),c=a("v-text-field"),m=a("v-col"),g=a("v-row"),b=a("v-switch"),d=a("v-icon"),n=a("v-list-item"),W=a("v-select"),A=a("v-card-text"),N=a("v-btn"),q=a("v-card-actions"),p=a("v-card");return h(),S(p,null,{default:o(()=>[t(C,null,{default:o(()=>[...e[9]||(e[9]=[r("Context Tag Settings",-1)])]),_:1}),t(u,null,{default:o(()=>[...e[10]||(e[10]=[r(" 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}),t(i,{modelValue:l.errorLoading,"onUpdate:modelValue":e[0]||(e[0]=f=>l.errorLoading=f),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error loading previous configuration due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.errorSaving,"onUpdate:modelValue":e[1]||(e[1]=f=>l.errorSaving=f),type:"error",closable:"",density:"compact"},{default:o(()=>[r(" Error saving due to "+V(l.errorText),1)]),_:1},8,["modelValue"]),t(i,{modelValue:l.successSaving,"onUpdate:modelValue":e[2]||(e[2]=f=>l.successSaving=f),type:"success",closable:"",density:"compact"},{default:o(()=>[...e[11]||(e[11]=[r(" Saved! (Refresh the page to see changes) ",-1)])]),_:1},8,["modelValue"]),t(A,{class:"pb-0"},{default:o(()=>[t(g,{dense:""},{default:o(()=>[t(m,null,{default:o(()=>[t(c,{modelValue:s.text,"onUpdate:modelValue":e[3]||(e[3]=f=>s.text=f),label:"Text","data-test":"context-tag-text",disabled:!s.displayContextTag},null,8,["modelValue","disabled"])]),_:1})]),_:1}),t(g,{dense:""},{default:o(()=>[t(m,null,{default:o(()=>[t(b,{modelValue:s.displayContextTag,"onUpdate:modelValue":e[4]||(e[4]=f=>s.displayContextTag=f),label:"Display context tag",color:"primary","data-test":"display-context-tag"},null,8,["modelValue"])]),_:1}),t(m,null,{default:o(()=>[t(W,{modelValue:s.selectedBackgroundColor,"onUpdate:modelValue":e[5]||(e[5]=f=>s.selectedBackgroundColor=f),label:"Background color",items:s.colors,"item-title":"text","data-test":"context-tag-background-color"},H({item:o(({props:f,item:F})=>[t(n,E(f,{value:F.text}),{prepend:o(()=>[F.value?(h(),S(d,{key:0,color:F.value},{default:o(()=>[...e[13]||(e[13]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedBackgroundColor?{name:"prepend-inner",fn:o(()=>[t(d,{color:s.selectedBackgroundColor},{default:o(()=>[...e[12]||(e[12]=[r(" mdi-square ",-1)])]),_:1},8,["color"])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),t(m,null,{default:o(()=>[t(c,{modelValue:s.customBackgroundColor,"onUpdate:modelValue":e[6]||(e[6]=f=>s.customBackgroundColor=f),label:"Custom background color",hint:s.customColorHint,disabled:s.selectedBackgroundColor!==!1,rules:[s.rules.customColor],"data-test":"context-tag-custom-background-color"},{"prepend-inner":o(()=>[w(t(d,{color:s.customBackgroundColor},{default:o(()=>[...e[14]||(e[14]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[L,!s.selectedBackgroundColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1}),t(m,null,{default:o(()=>[t(W,{modelValue:s.selectedFontColor,"onUpdate:modelValue":e[7]||(e[7]=f=>s.selectedFontColor=f),label:"Font color",items:s.colors,"item-title":"text","data-test":"context-tag-font-color"},H({item:o(({props:f,item:F})=>[t(n,E(f,{value:F.text}),{prepend:o(()=>[F.value?(h(),S(d,{key:0,color:F.value},{default:o(()=>[...e[16]||(e[16]=[r(" mdi-square ",-1)])]),_:1},8,["color"])):O("",!0)]),_:2},1040,["value"])]),_:2},[s.selectedFontColor?{name:"prepend-inner",fn:o(()=>[w(t(d,{color:s.selectedFontColor},{default:o(()=>[...e[15]||(e[15]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[L,s.selectedFontColor]])]),key:"0"}:void 0]),1032,["modelValue","items"])]),_:1}),t(m,null,{default:o(()=>[t(c,{modelValue:s.customFontColor,"onUpdate:modelValue":e[8]||(e[8]=f=>s.customFontColor=f),label:"Custom font color",hint:s.customColorHint,disabled:s.selectedFontColor!==!1,rules:[s.rules.customColor],"data-test":"context-tag-custom-font-color"},{"prepend-inner":o(()=>[w(t(d,{color:s.customFontColor},{default:o(()=>[...e[17]||(e[17]=[r(" mdi-square ",-1)])]),_:1},8,["color"]),[[L,!s.selectedFontColor]])]),_:1},8,["modelValue","hint","disabled","rules"])]),_:1})]),_:1})]),_:1}),t(q,null,{default:o(()=>[t(N,{disabled:!v.formValid,color:"success",variant:"text","data-test":"save-context-tag",onClick:v.save},{default:o(()=>[...e[18]||(e[18]=[r(" Save ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})}const Fe=k(Le,[["render",Te]]),We={components:{SuppressedSettings:Q,DefaultConfigSettings:te,EditorSettings:ae,AstroSettings:ne,ClassificationBannerSettings:ue,TimeZoneSettings:ge,NewsFeedSettings:he,SubtitleSettings:Ce,SourceCodeSettings:Ve,RubyGemsSettings:xe,PypiSettings:we,ContextTagSettings:Fe}};function He(l,e,_,x,s,v){const C=a("suppressed-settings"),u=a("v-divider"),i=a("default-config-settings"),c=a("editor-settings"),m=a("astro-settings"),g=a("time-zone-settings"),b=a("news-feed-settings"),d=a("classification-banner-settings"),n=a("subtitle-settings"),W=a("source-code-settings"),A=a("ruby-gems-settings"),N=a("pypi-settings"),q=a("context-tag-settings");return h(),B("div",null,[t(C),t(u),t(i),t(u),t(c),t(u),t(m),t(u),t(g),t(u),t(b),t(u),t(d),t(u),t(n),t(u),t(W),t(u),t(A),t(u),t(N),t(u),t(q)])}const Oe=Y("default",k(We,[["render",He]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./VWidget-rAFU-0vj-222c8edcd992633f73a1.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","single-spa","vuex","vuetify"],function(c,p){"use strict";var r,l,n,a,i,s;return{setters:[t=>{r=t.h},t=>{l=t.resolveComponent,n=t.createBlock,a=t.openBlock,i=t.normalizeStyle},t=>{s=t.d},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{type:[Number,String],default:null}},emits:["open"],data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function u(e,m,g,v,B,o){const h=l("v-btn");return a(),n(h,{icon:o.displayedIcon,variant:"text",style:i(e.computedStyle),"aria-label":"Signal Strength",onClick:o.clickHandler},null,8,["icon","style","onClick"])}const d=c("default",s(t,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["vue","./main-b8fe7a5cb2fa4e35ed6a.js"],function(x,N){"use strict";var o,u,p,l,e,n,s,h,m;return{setters:[t=>{o=t.resolveComponent,u=t.createBlock,p=t.openBlock,l=t.withCtx,e=t.createVNode,n=t.createElementVNode,s=t.toDisplayString,h=t.createTextVNode},t=>{m=t.d}],execute:function(){const t={props:{modelValue:Boolean,text:{type:String,default:null},title:{type:String,default:null},width:{type:Number,default:800}},emits:["update:modelValue"],computed:{show:{get(){return this.modelValue},set(i){this.$emit("update:modelValue",i)}}},methods:{download:function(){const i=new Blob([this.text],{type:"text/plain"}),a=document.createElement("a");a.href=URL.createObjectURL(i),a.setAttribute("download",`${this.title}.txt`),a.click()}}},f={class:"mx-2"},V={class:"pa-3"},g={class:"text"};function k(i,a,c,E,D,d){const r=o("v-spacer"),v=o("v-btn"),y=o("v-toolbar"),C=o("v-card-text"),b=o("v-card-actions"),_=o("v-card"),B=o("v-dialog");return p(),u(B,{modelValue:d.show,"onUpdate:modelValue":a[1]||(a[1]=w=>d.show=w),width:c.width,scrollable:""},{default:l(()=>[e(_,null,{default:l(()=>[e(y,{height:"24"},{default:l(()=>[e(r),n("span",null,s(c.title),1),e(r),n("div",f,[e(v,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:d.download},null,8,["onClick"])])]),_:1}),e(C,{style:{"max-height":"80vh"}},{default:l(()=>[n("div",V,[n("span",g,s(c.text),1)])]),_:1}),e(b,{class:"px-2"},{default:l(()=>[e(r),e(v,{variant:"flat",onClick:a[0]||(a[0]=w=>d.show=!d.show)},{default:l(()=>[...a[2]||(a[2]=[h(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const S=x("E",m(t,[["render",k],["__scopeId","data-v-5176446d"]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-DXvVFSH5-911ef7faeb56d94116a8.js","vue","./main-4560cb476d7e9d971b97.js","vue-router","single-spa","vuex","vuetify"],function(l,o){"use strict";var t,n,s,i,r;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,i=e.normalizeStyle},e=>{r=e.d},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,d,m,v,h){return s(),n("div",{style:i(u.computedStyle)},null,4)}const c=l("default",r(e,[["render",a]]))}}});
1
+ System.register(["./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","vue-router","single-spa","vuex","vuetify"],function(l,o){"use strict";var t,n,s,i,r;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,i=e.normalizeStyle},e=>{r=e.d},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 u(a,p,d,m,v,h){return s(),n("div",{style:i(a.computedStyle)},null,4)}const c=l("default",r(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./GraphWidget-CjxnC0Dc-5fc94ebc28f2be06cd4a.js","./main-b8fe7a5cb2fa4e35ed6a.js","vue","./Graph-CbjlChwf-52e2ec5c5915ed22c513.js","single-spa","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var i,s,n,r,a,d,o;return{setters:[e=>{i=e.M},e=>{s=e.d},e=>{n=e.resolveComponent,r=e.createBlock,a=e.openBlock,d=e.normalizeStyle},e=>{o=e.M},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,y){const h=n("graph");return a(),r(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]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-B_Hgw3gd-bdff69864bbaf9af4133.js","vue","./main-b8fe7a5cb2fa4e35ed6a.js","./Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js","vue-router","single-spa","vuex","vuetify"],function(k,E){"use strict";var w,l,i,n,g,f,a,c,u,o,T,d,b,v,y,V;return{setters:[e=>{w=e.u},e=>{l=e.resolveComponent,i=e.createElementBlock,n=e.openBlock,g=e.createVNode,f=e.normalizeStyle,a=e.withCtx,c=e.Fragment,u=e.renderList,o=e.createBlock,T=e.createTextVNode,d=e.toDisplayString,b=e.createElementVNode,v=e.resolveDynamicComponent,y=e.mergeProps},e=>{V=e.d},null,null,null,null,null],execute:function(){const e={mixins:[w],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"),B=l("v-tooltip"),S=l("v-window-item"),z=l("v-window");return n(),i("div",null,[g(_,{modelValue:r.curTab,"onUpdate:modelValue":m[0]||(m[0]=s=>r.curTab=s),style:f(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(z,{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(S,{key:p},{default:a(()=>[(n(!0),i(c,null,u(s.widgets,(t,C)=>(n(),i(c,{key:`${p}-${C}`},[r.getTooltipText(t)?(n(),o(B,{key:0,"open-delay":r.getTooltipDelay(t),location:"top","activator-props":r.getTooltipActivatorProps(t)},{activator:a(({props:D})=>[(n(),o(v(t.type),y({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(v(t.type),y({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 h=k("default",V(e,[["render",x]]))}}});